.retro-home {
  --bg: #101214;
  --bg-elevated: #171a1d;
  --panel: #1e2226;
  --panel-2: #292d32;
  --border: #444a50;
  --text: #f4f1e8;
  --muted: #b5bac0;
  --accent: #ffbd54;
  --accent-2: #ffcd82;
  --container: 1220px;
  --armor-cut: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

:root[data-theme="light"] .retro-home {
  --bg: #e4e3dd;
  --bg-elevated: #f6f3eb;
  --panel: #f6f3eb;
  --panel-2: #deded8;
  --border: #a9a8a0;
  --text: #202428;
  --muted: #50565b;
  --accent: #885000;
  --accent-2: #754300;
}

.retro-home .home-masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--border);
}

.home-masthead > .topbar,
.home-masthead > .account-bar {
  position: relative;
  top: auto;
  background: transparent;
  backdrop-filter: none;
  border: 0;
}

.home-masthead .brand {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.home-masthead .brand .pill {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 23px;
}

.home-masthead .brand > span:last-child {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.home-masthead .nav { gap: 4px; }
.home-masthead .nav a { font-size: 13px; font-weight: 650; border-radius: 2px; }
.home-masthead .nav a.is-active { color: var(--accent); }
.home-masthead .account-guest-actions { gap: 12px; }
.home-masthead .account-link-guest { font-size: 13px; color: var(--text); }
.home-masthead .account-link-guest::before { display: none; }
.home-masthead .account-link-guest:last-child { border: 1px solid var(--border); border-radius: 2px; }

@media (min-width: 1050px) {
  .home-masthead:has(> .is-logged-out) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1068px) 152px minmax(0, 1fr);
    align-items: center;
  }
  .home-masthead:has(> .is-logged-out) > .topbar { grid-column: 2; }
  .home-masthead > .is-logged-out { grid-column: 3; }
}

.retro-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 365px;
  margin-top: 22px;
  border: 1px solid #50545a;
  clip-path: var(--armor-cut);
  background: #15181a;
  color: #f7f1e5;
}

.home-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 42%;
  background: url('home-51-field.jpg') right center / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #15181a 31%, #15181ae8 46%, transparent 74%),
              linear-gradient(0deg, #0c0e1290, transparent 35%);
  pointer-events: none;
}

.retro-home .home-hero > .container {
  width: auto;
  margin: 0;
  padding: 36px 34px 32px;
}

.home-kicker,
.home-capture {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.home-kicker { color: #ffcc78; }

.home-kicker::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: #ffba52;
  box-shadow: 0 0 8px #ffae4c7a;
}

.home-hero h1 {
  margin: 12px 0 0;
  font: 900 clamp(3.25rem, 8.8vw, 6.4rem)/.92 Impact, 'Arial Black', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.home-hero h1 em { font-style: normal; color: #ffbd54; }
.home-hero p { margin: 16px 0 0; max-width: 330px; color: #d3d3cf; }
.home-actions { align-items: center; gap: 10px; margin-top: 12px; }

.home-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2px;
}

.home-store-badges a { display: block; }
.home-store-badges a:focus-visible { outline: 2px solid #ffbd54; outline-offset: 3px; }
.home-store-badges img { width: auto; max-width: none; }
.home-store-apple { height: 40px; margin-block: 10px; }
/* Google's original image includes its required clear space. */
.home-store-google { height: 60px; }

.retro-home .home-actions .button {
  min-height: 44px;
  border-radius: 2px;
  gap: 8px;
  color: #f4f1e8;
  background: #24272b;
  border-color: #5b5e62;
  font-weight: 750;
}

.home-capture {
  position: absolute;
  right: 13px;
  bottom: 12px;
  background: #171a1ce8;
  color: #f2d09e;
  padding: 5px 8px;
}

.retro-home .section { padding: 0 0 12px; }
.retro-home .home-live { padding-top: 22px; }
#home-live-title { margin: 0 0 10px; font-size: 18px; }
.retro-home .grid3 { gap: 10px; }

.retro-home .card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 0;
  clip-path: var(--armor-cut);
  background: linear-gradient(145deg, var(--panel-2), var(--panel) 56%);
  box-shadow: inset 0 2px color-mix(in srgb, var(--border), transparent 40%), inset 0 -2px var(--bg);
}

.retro-home .card::before {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 15px;
  height: 2px;
  content: '';
  background: var(--accent);
  pointer-events: none;
}

.retro-home .card h2 { font-size: 16px; }
.retro-home .card .big { font-size: clamp(1.65rem, 3.45vw, 2.5rem); letter-spacing: -.045em; }
.retro-home .card .pill { border-radius: 2px; }
.retro-home .home-live .card > .pill,
.retro-home .home-live .card > div > .pill { text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.retro-home #dailyLeaderboard { min-height: 0 !important; }
.retro-home #globalKillsGraph {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--muted);
  opacity: .58;
  overflow: hidden;
}

.retro-home .footer { margin-top: 0; color: var(--muted); }

@media (min-width: 681px) {
  .retro-home .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .retro-home .home-hero { min-height: 0; margin-top: 12px; }
  .retro-home .home-hero > .container { padding: 25px 16px 48px; }
  .home-hero-art { left: 13%; }
  .home-hero::after {
    background: linear-gradient(90deg, #15181a 5%, #15181ae8 31%, #15181a77 82%),
                linear-gradient(0deg, #15181a, transparent 64%);
  }
  .retro-home .home-live .grid3 {
    container-type: inline-size;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .retro-home .home-live .card:last-child { grid-column: 1 / -1; }
  .retro-home .card { padding: 12px; }
  .retro-home .card .big { font-size: clamp(1.05rem, 5.7cqi, 2rem); }
}
