@font-face { font-family: Minecraft; src: url('../assets/fonts/minecraft-regular.woff') format('woff'); font-display: swap; }
:root { color-scheme: dark; --bg:#070707; --surface:#111112; --text:#f4eee7; --muted:#b4aca8; --line:#302929; --accent:#ed332b; --red:#c82020; --red-fill:#b91c1c; font-family:Minecraft,monospace; }
* { box-sizing:border-box; }
html { background:var(--bg); scroll-padding-top:30px; }
body { margin:0; color:var(--text); background:linear-gradient(#ffffff02 1px,transparent 1px),linear-gradient(90deg,#ffffff02 1px,transparent 1px),var(--bg); background-size:48px 48px; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--accent); }
button,input { font:inherit; }
button { cursor:pointer; }
button,a,input,summary,canvas { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
[hidden] { display:none!important; }
button { color:var(--text); }
p { color:var(--muted); line-height:1.7; margin:0 0 18px; }
h1,h2,h3 { font-weight:400; margin:0 0 20px; }
h1,h2,h3,.brand { font-family:Minecraft,monospace; }
h1 { font-size:clamp(2.6rem,5.5vw,5rem); line-height:1.12; letter-spacing:-.04em; }
h2 { font-size:clamp(1.35rem,2.5vw,2rem); line-height:1.25; }
h3 { font-size:1.08rem; font-weight:400; margin-bottom:10px; }
code,kbd { color:var(--text); font:inherit; font-family:monospace; background:#ffffff09; border:1px solid var(--line); padding:2px 6px; border-radius:3px; }
.skip-link { position:absolute; top:-100px; left:20px; z-index:10; padding:12px; background:var(--text); color:var(--bg); }
.skip-link:focus { top:10px; }
.site-header { max-width:1280px; margin:auto; display:flex; align-items:center; gap:36px; padding:22px 40px; min-height:80px; }
.brand { display:flex; align-items:center; gap:10px; font-size:1.2rem; }
.site-header nav { display:flex; gap:28px; margin:auto; }
.site-header nav a { color:var(--muted); font-size:.9rem; padding:8px 0; border-bottom:2px solid transparent; }
.site-header nav a[aria-current] { color:var(--text); border-color:var(--accent); }
.header-discord { font-size:.85rem; }
.server-ribbon { max-width:1200px; margin:auto; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:12px 0; display:flex; justify-content:space-between; gap:15px; align-items:center; font-size:.75rem; color:var(--muted); }
.server-ribbon>div { display:flex; align-items:center; gap:12px; }
.server-ribbon strong { font-weight:500; color:var(--text); }
.status-dot { width:8px; height:8px; flex-shrink:0; border-radius:50%; background:#8c9389; }
.server-ribbon>div:has([data-server-status][data-state="online"]) .status-dot { background:#4ade80; box-shadow:0 0 0 3px #4ade801a, 0 0 8px #4ade8033; }
[data-server-status][data-state="online"] { color:#a7e9bb; }
.server-ribbon button,.inline-address button { border:0; background:transparent; color:var(--accent); font-size:.75rem; padding:6px 8px; }
main { max-width:1200px; margin:auto; min-height:60vh; }
.home-hero { padding:75px 0 65px; display:grid; grid-template-columns:.85fr 1.3fr; gap:60px; align-items:center; }
.home-hero p:not(.eyebrow) { max-width:380px; font-size:1.05rem; }
.eyebrow { color:var(--accent); text-transform:uppercase; font-size:.7rem; letter-spacing:.13em; margin:0 0 18px; }
.button-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.button { display:inline-flex; align-items:center; justify-content:center; padding:14px 20px; font-size:.85rem; border:1px solid var(--line); border-radius:3px; }
.button.primary { background:#c52d28; border-color:#c52d28; color:#fff4ec; }
.button.primary:hover { background:#ee453f; }
.button.secondary { background:#ffffff04; }
figure { margin:0; }
video { width:100%; height:auto; display:block; background:#000; }
.hero-video { border:1px solid var(--line); background:#0c0d0e; transform:none; box-shadow:0 18px 45px #0005; }
.hero-video figcaption { padding:14px 18px; font-size:.75rem; color:var(--muted); display:flex; justify-content:space-between; }
.hero-video figcaption a { color:var(--text); }
.section { margin:0; padding:48px 0; border-top:1px solid var(--line); }
.section-heading { margin-bottom:28px; }
.section-heading h2 { margin-bottom:10px; }
.section-heading p { margin:0; }
.setup-steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px; }
.setup-steps li { display:flex; align-items:flex-start; gap:16px; min-width:0; }
.setup-steps li>div { min-width:0; }
.step-number { color:var(--accent); font:1.6rem Minecraft,monospace; line-height:1; }
.setup-steps p { font-size:.9rem; }
.text-link { color:var(--accent); font-size:.88rem; }
.inline-address { border:1px solid var(--line); display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; padding:7px; gap:3px; }
.inline-address strong { font-size:.8rem; font-weight:500; }
.help-details { margin-top:30px; color:var(--muted); font-size:.85rem; }
summary { cursor:pointer; padding:15px 0; color:var(--text); }
.help-details p { max-width:800px; }
.basics { display:grid; grid-template-columns:1.2fr 1fr; gap:80px; }
.basics p { font-size:.95rem; }
.command-list { margin:0; }
.command-list div { display:grid; grid-template-columns:100px 1fr; gap:20px; padding:14px 0; border-bottom:1px solid var(--line); }
.command-list dt { color:var(--accent); font-family:monospace; }
.command-list dd { margin:0; color:var(--muted); font-size:.9rem; }
.trailer-details { max-width:960px; }
.trailer-details summary { font-family:Minecraft,monospace; font-size:1.25rem; }
.trailer-details summary span { color:var(--muted); font:.8rem Minecraft,monospace; margin-left:15px; }
.page-heading { padding:60px 0 40px; max-width:800px; }
.page-heading h1 { font-size:clamp(2.6rem,5vw,4rem); }
.page-heading p:last-child { margin-bottom:0; }
.map-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.map-card { border:1px solid var(--line); background:#191b1d66; overflow:hidden; }
.map-card-content { padding:20px; }
.map-card h2 { font-size:clamp(1.35rem, 2vw, 1.65rem); line-height:1.35; margin:15px 0 4px; overflow-wrap:anywhere; }
.map-card p { font-size:.85rem; margin:0; }
.map-card img { width:100%; height:auto; display:block; aspect-ratio:5/3; object-fit:cover; }
.card-topline { font-size:.65rem; color:var(--muted); }
.map-card:not(.map-card-photo) { display:grid; align-items:end; background:#111; }
.kit-browser { position:relative; display:grid; grid-template-columns:230px minmax(0,1fr); gap:80px; padding:36px; margin:0 0 45px; min-height:720px; background:#0b0b0c; border:1px solid var(--line); }
.kit-sidebar h2 { font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; margin:5px 0 20px; color:var(--muted); }
#kit-list { display:grid; gap:5px; }
#kit-list button { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:11px 14px; background:#121619a8; border:1px solid transparent; text-align:left; }
#kit-list button span { font-family:Minecraft,monospace; font-size:.88rem; }
#kit-list button small { font-size:.68rem; color:var(--muted); }
#kit-list button:hover { border-color:#6d7271; }
#kit-list button[aria-pressed=true] { background:#8d201d; border-color:#ef4738; color:#fff5ee; box-shadow:inset 3px 0 var(--accent); }
#kit-list button[aria-pressed=true] small { color:#efd6cf; }
.kit-preview { min-width:0; }
.kit-preview-heading h2 { font-size:2rem; margin-bottom:8px; }
.kit-preview-heading p { font-size:.85rem; margin:0; }
.model-stage { position:relative; width:100%; height:425px; }
#kit-canvas { display:block; width:100%; height:100%; cursor:grab; touch-action:pan-y; }
#kit-canvas:active { cursor:grabbing; }
#kit-fallback { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:space-around; pointer-events:none; }
#kit-fallback img { width:70%; height:40%; object-fit:contain; image-rendering:auto; }
#weapon-labels { position:absolute; inset:0; pointer-events:none; display:grid; grid-template-rows:1fr 1fr; }
#weapon-labels>div { align-self:end; display:flex; justify-content:space-between; align-items:baseline; border-bottom:1px solid #7f838477; padding:0 6px 8px; }
#weapon-labels strong { font-family:Minecraft,monospace; font-weight:400; font-size:.95rem; }
.one-weapon #weapon-labels { grid-template-rows:1fr; }
.model-hint { margin:14px 0 25px; font-size:.7rem; color:#b1b5b4; }
.kit-equipment { display:flex; gap:15px; }
.kit-equipment>button { flex:1; min-width:0; display:flex; align-items:center; flex-direction:column; gap:15px; border:0; border-bottom:1px solid #7f838477; background:transparent; color:var(--text); padding:8px 5px 12px; cursor:pointer; }
.kit-equipment>button:hover, .kit-equipment>button:focus-visible { background:#ffffff0a; border-bottom-color:var(--accent); }
.help-title { color:var(--text); padding-top:15px; }
.kit-equipment img { image-rendering:pixelated; object-fit:contain; }
.kit-equipment span { font-size:.72rem; text-align:center; }
.stats-controls { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:25px; }
.stats-search { display:grid; gap:10px; width:320px; max-width:100%; font-size:.8rem; }
.stats-search input { width:100%; border:1px solid var(--line); border-radius:3px; background:var(--surface); padding:12px; color:var(--text); }
.stats-sort { display:flex; gap:7px; flex-wrap:wrap; }
.sort-button { background:transparent; border:1px solid var(--line); padding:11px 15px; border-radius:3px; font-size:.8rem; }
.sort-button.active { color:var(--text); background:var(--red-fill); border-color:var(--red-fill); }
.stats-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:24px; }
.leaderboard-panel,.player-panel { padding:22px; border:1px solid var(--line); background:#191b1d66; min-width:0; }
.panel-topline { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.75rem; padding-bottom:20px; border-bottom:1px solid var(--line); }
.stats-message { margin-top:22px; font-size:.9rem; }
.leaderboard-head,.leaderboard-row { display:grid; grid-template-columns:36px minmax(80px,1fr) 42px 50px 42px; align-items:center; gap:10px; padding:14px 0; font-size:.75rem; }
.leaderboard-head { color:var(--muted); }
.leaderboard-row { width:100%; text-align:left; background:transparent; border:0; border-top:1px solid var(--line); }
.leaderboard-row.active { color:var(--accent); }
.leaderboard-row strong { overflow-wrap:anywhere; }
.player-identity { display:flex; gap:14px; align-items:center; margin:25px 0; }
.avatar { background:var(--red-fill); color:var(--text); display:grid; place-items:center; width:45px; height:45px; flex-shrink:0; }
.player-identity h2 { margin:0 0 6px; font-size:1.2rem; overflow-wrap:anywhere; }
.player-identity p { font-size:.75rem; margin:0; }
.player-rating { display:flex; align-items:baseline; justify-content:space-between; border-bottom:1px solid var(--line); padding-bottom:20px; }
.player-rating strong { font-size:2rem; color:var(--accent); }
.player-stat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; margin:25px 0; }
.player-stat-grid>div { display:flex; flex-direction:column; gap:8px; }
.player-stat-grid span,.player-rating span,.player-streak span { color:var(--muted); font-size:.8rem; }
.player-streak { display:flex; align-items:center; gap:20px; padding-top:20px; border-top:1px solid var(--line); }
footer { max-width:1200px; margin:0 auto; padding:28px 0; display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); color:var(--muted); font-size:.75rem; }
@media(max-width:1280px) { main,.server-ribbon,footer { margin-left:40px; margin-right:40px; } }
@media(max-width:950px) { .home-hero { gap:30px; } .setup-steps { gap:25px; } .setup-steps li { display:block; } .step-number { display:block; margin-bottom:15px; } .basics { gap:35px; } .kit-browser { gap:30px; grid-template-columns:190px minmax(0,1fr); padding:25px; } .map-gallery { grid-template-columns:repeat(2,1fr); } .stats-layout { grid-template-columns:1fr; } }
@media(max-width:700px) { main,.server-ribbon,footer { margin-left:20px; margin-right:20px; } .site-header { padding:18px 20px; gap:16px; flex-wrap:wrap; } .site-header nav { order:3; width:100%; justify-content:space-between; gap:20px; } .header-discord { margin-left:auto; } .server-ribbon { font-size:.65rem; flex-wrap:wrap; } .server-ribbon>div { gap:7px; } .home-hero { grid-template-columns:1fr; padding:45px 0; gap:35px; } .home-hero h1 { font-size:3.4rem; } .home-hero p:not(.eyebrow) { max-width:500px; } .hero-video { transform:none; } .setup-steps { grid-template-columns:1fr; gap:30px; } .setup-steps li { display:flex; gap:18px; } .basics { grid-template-columns:1fr; } .section { padding:35px 0; } .page-heading { padding:40px 0 30px; } .map-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; } .kit-browser { grid-template-columns:1fr; gap:30px; padding:18px; } #kit-list { grid-template-columns:repeat(2,minmax(0,1fr)); } #kit-list button { padding:10px; } #kit-list button small { font-size:.65rem; } .model-stage { height:350px; } .kit-preview-heading h2 { font-size:1.65rem; } .stats-controls { align-items:stretch; flex-direction:column; } .stats-search { width:100%; } }
@media(max-width:440px) { .map-grid,.map-gallery { grid-template-columns:1fr; } .leaderboard-panel,.player-panel { padding:14px; } .leaderboard-head,.leaderboard-row { gap:6px; grid-template-columns:25px minmax(65px,1fr) 30px 40px 30px; font-size:.68rem; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }

/* Gambit branding: black surfaces, red card suits, and red controls. */
.site-header { padding-top:12px; padding-bottom:12px; }
.brand img { display:block; width:205px; height:auto; }
.brand { position:relative; isolation:isolate; }
.brand img { position:relative; z-index:1; }
.basics-card { display:block; width:112px; height:152px; margin:0 auto 25px; transform:rotate(8deg); image-rendering:pixelated; }
.header-discord, footer a[data-discord-link] { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:40px; }
.header-discord { border:1px solid var(--line); padding:8px 12px; background:#121010; }
.discord-icon { display:inline-block; flex-shrink:0; image-rendering:auto; }
.header-discord:hover { border-color:var(--red); background:#251010; }
.server-ribbon { border-top:2px solid #b62520; }
.home-hero { position:relative; }
.home-hero h1 { text-shadow:4px 4px 0 #50100d; }
.home-hero .eyebrow::before { content:'♦'; color:var(--red); padding-right:10px; }
.hero-video { border-top:3px solid var(--red); box-shadow:6px 6px 0 #1e1010; }
.hero-video figcaption::before { content:'♠'; color:var(--red); margin-right:10px; }
.hero-video figcaption { justify-content:initial; align-items:center; }
.hero-video figcaption a { margin-left:auto; }
.button { border-radius:0; box-shadow:inset 0 -3px #0004; }
.button.secondary { border-color:#783026; background:#1d0b09; }
.button.secondary:hover { border-color:var(--red); }
.section-heading .eyebrow { margin-bottom:14px; }

.kit-browser { border-top:2px solid #8b221d; overflow:hidden; }
#kit-list button:hover { border-color:var(--red); }
#weapon-labels button { font-family:Minecraft,monospace; font-size:.95rem; color:#d1c5bf; background:#0b0b0c; border:1px solid transparent; padding:8px 10px; margin-left:-6px; pointer-events:auto; }
#weapon-labels button[aria-pressed=true] { color:var(--accent); border-color:#582a1c; }
#weapon-labels button:hover { border-color:var(--red); }
#weapon-labels strong { font-size:1rem; }
.map-card { background:#0c0c0d; border-color:#332727; }
.map-card:hover { border-color:#9d2b23; }
@media(hover:hover) {
  .map-card { transition:border-color 180ms ease, box-shadow 180ms ease; }
  .map-card img { transition:filter 180ms ease; }
  .map-card h2 { transition:color 180ms ease; }
  .map-card:hover { border-color:var(--accent); box-shadow:0 0 0 1px #a82c20, 0 5px 22px #e3342c20, inset 0 -3px #df342e; }
  .map-card:hover img { filter:brightness(1.08) saturate(1.08); }
  .map-card:hover h2 { color:var(--accent); }
}
@media(prefers-reduced-motion:reduce) {
  .map-card,.map-card img,.map-card h2 { transition:none; }
}
.map-card:not(.map-card-photo)::before { content:'♠'; display:grid; place-items:center; min-height:150px; aspect-ratio:5/3; color:#68251f; font:3.5rem Minecraft,monospace; border-bottom:1px solid var(--line); }
.card-topline { color:var(--accent); font-size:.75rem; }
.card-topline::after { content:'♦'; color:var(--red); float:right; }
footer { border-top-color:#70211c; }
@media(max-width:700px) {
  .brand img { width:170px; }
  .header-discord { padding:8px; }
  .header-discord span { display:none; }
  .home-hero h1 { font-size:3rem; }
  #weapon-labels button { font-size:.85rem; }
  #weapon-labels strong { font-size:.85rem; }
  .server-ribbon { line-height:1.8; }
  .setup-steps { gap:35px; }
}

/* Card motifs belong to headings and content edges, never empty page space. */
.card-title { display:flex; align-items:center; gap:22px; }
.card-title img { flex:0 0 auto; width:48px; height:auto; transform:rotate(-6deg); image-rendering:pixelated; }
.card-title span { min-width:0; }
.page-heading .eyebrow { margin-bottom:16px; }
.page-heading p:last-child { max-width:620px; }
.kit-preview { position:relative; padding:26px 44px 38px; border:1px solid #69312e; background:#100c0d; box-shadow:5px 5px 0 #271011, 9px 9px 0 #170b0c; transform-origin:30% 80%; }
.loadout-index { position:absolute; left:12px; top:25px; display:flex; flex-direction:column; align-items:center; gap:5px; width:20px; color:var(--accent); font-size:.85rem; line-height:1; pointer-events:none; }
.loadout-index-bottom { left:auto; top:auto; right:12px; bottom:14px; transform:rotate(180deg); }
.index-suit { font-size:.8rem; }
#kit-list .kit-option-name { display:flex; gap:10px; align-items:center; }
#kit-list .kit-option-rank { width:18px; flex-shrink:0; font-size:.72rem; color:var(--muted); }
#kit-list button[aria-pressed=true] .kit-option-rank { color:#fff4ec; }
#kit-list button small { padding-left:28px; }
.command-reference { align-self:start; display:grid; grid-template-columns:76px minmax(0,1fr); gap:26px; align-items:center; padding:24px; border-top:1px solid #70211c; border-bottom:1px solid var(--line); background:#100c0d; }
.command-reference .basics-card { width:70px; height:95px; margin:0; transform:rotate(-7deg); }
.command-reference .command-list div:last-child { border-bottom:0; }
.command-reference .command-list div { grid-template-columns:65px 1fr; gap:12px; }
.card-topline { display:flex; align-items:center; gap:8px; }
.card-topline::after { float:none; font-size:.65rem; }
@media(max-width:950px) { .command-reference { padding:20px 16px; grid-template-columns:52px minmax(0,1fr); gap:18px; } .command-reference .basics-card { width:48px; height:auto; } .command-reference .command-list div { grid-template-columns:1fr; gap:6px; } }
@media(max-width:700px) { .kit-preview { padding:24px 22px 34px; } .loadout-index { left:6px; top:25px; width:12px; font-size:.65rem; } .loadout-index-bottom { left:auto; top:auto; right:8px; bottom:12px; } .index-suit { font-size:.6rem; } .card-title { gap:14px; } .card-title img { width:34px; } .page-heading h1 { font-size:clamp(2rem,8vw,3rem); } .command-reference .command-list div { grid-template-columns:65px 1fr; } }

/* One suit per page; black suits use ivory marks on the dark interface. */
.suit-spade .home-hero .eyebrow::before { content:'♠'; color:var(--text); }
.suit-spade .hero-video figcaption::before { color:var(--text); }
.suit-club { --accent:#e5dfd4; --red:#aaa69e; --line:#303033; }
.suit-club .server-ribbon { border-top-color:#5b5b60; }
.suit-club footer { border-top-color:#4a4a4f; }
.suit-club .header-discord { background:#111113; }
.suit-club .header-discord:hover { background:#222225; }
.suit-club .map-card { background:#0b0b0d; border-color:#303033; }
.suit-club .card-topline { color:#b9b7b1; }
.suit-club .card-topline::after { content:'♣'; color:#d6d1c8; }
.suit-club .map-card:not(.map-card-photo)::before { content:'♣'; color:#77777e; background:#111113; }
.suit-club .map-card:hover { border-color:#8e8e94; }
@media(hover:hover) {
  .suit-club .map-card:hover { border-color:#d6d1c8; box-shadow:0 0 0 1px #68686e, 0 5px 22px #ffffff0c, inset 0 -3px #b4b0a8; }
  .suit-club .map-card:hover h2 { color:#fff7e9; }
}

.suit-diamond .panel-topline { border-bottom-color:#663135; }
.suit-diamond #leaderboard-title::before { content:'♦'; color:var(--accent); margin-right:9px; }

/* Weapon details use the loadout's existing card face. */
.weapon-stats { position:fixed; inset:0; margin:auto; width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; color:var(--text); padding:24px; border:1px solid #64302e; border-left:3px solid var(--red); background:#180e10; box-shadow:8px 8px 0 #0c0808; }
.weapon-stats-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.weapon-stats-heading h3 { margin:0; }
.weapon-stats-heading button { background:transparent; border:1px solid var(--line); width:32px; height:32px; font-size:1.2rem; }
.weapon-stats dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 14px; margin:0; }
.weapon-stats dl[hidden] { display:none; }
.weapon-stats dl[hidden] + p { margin-top:0; }
.weapon-stats dt { font-size:.65rem; color:var(--muted); margin-bottom:8px; line-height:1.5; }
.weapon-stats dd { margin:0; font-size:.95rem; color:var(--text); }
.weapon-stats p { margin:18px 0 0; font-size:.8rem; line-height:1.8; }
#weapon-labels button span { color:var(--accent); }
.suit-club .site-header nav a[aria-current] { border-bottom-color:#e3342c; }
.suit-club .card-topline::after { color:#de635c; }
@media(hover:hover) {
  .suit-club .map-card:hover { border-color:#b9847e; box-shadow:0 0 0 1px #69413f, 0 5px 22px #e3342c12, inset 0 -3px #bc4640; }
}
@media(max-width:700px) { .weapon-stats { padding:14px 10px; } .weapon-stats dl { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; } .weapon-stats dd { font-size:.8rem; } }

.weapon-stats::backdrop { background:#0009; }
.weapon-stats-heading button { flex-shrink:0; width:40px; height:40px; }
.kit-equipment { margin-top:25px; }
.map-image-button { position:relative; display:block; width:100%; padding:0; border:0; background:#0b0b0d; cursor:zoom-in; }
.map-image-button:focus-visible { outline-offset:-4px; }
.map-expand { position:absolute; right:12px; bottom:12px; display:grid; place-items:center; width:30px; height:30px; background:#100b0cdc; border:1px solid #8f514b; font-size:1rem; color:#f4eee7; }
.map-viewer { position:fixed; inset:0; margin:auto; width:min(1100px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:20px; overflow:auto; color:var(--text); background:#101012; border:1px solid #76504c; box-shadow:6px 6px 0 #080708; }
.map-viewer::backdrop { background:#000c; }
.map-viewer-heading,.map-viewer-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.map-viewer-heading { margin-bottom:16px; }
.map-viewer-heading h2 { margin:0; font-size:1.3rem; }
.map-viewer button { padding:10px 14px; background:#171214; border:1px solid #64423e; color:var(--text); }
.map-viewer-heading button { flex-shrink:0; font-size:1.2rem; }
#map-viewer-image { display:block; width:100%; height:auto; max-height:calc(100dvh - 210px); object-fit:contain; background:#070707; }
.map-viewer-controls { margin-top:16px; font-size:.75rem; }
#map-viewer-count { color:var(--muted); }
@media(max-width:700px) { .map-viewer { padding:12px; } .map-viewer-heading h2 { font-size:1rem; } .map-viewer-controls { gap:8px; font-size:.65rem; } .map-viewer button { padding:10px; } }

/* Logo-led home page, with connection details in the navigation bar. */
.site-header { min-height:100px; border-bottom:1px solid var(--line); }
.site-header .server-ribbon { margin:0 0 0 auto; padding:0; border:0; flex-direction:column; align-items:flex-end; gap:4px; font-size:.65rem; }
.site-header .server-ribbon>div { gap:8px; }
.site-header .server-ribbon strong { font-size:.8rem; }
.site-header nav { margin:0 auto; }
.home-hero { display:flex; flex-direction:column; align-items:center; gap:0; padding:48px 0 44px; text-align:center; }
.home-hero .hero-brand { display:block; position:relative; width:min(820px,100%); margin:0 auto 6px; line-height:1; }
.hero-brand img:not(.entrance-ace) { width:100%; height:auto; }
.home-hero p:not(.eyebrow) { max-width:620px; margin:0 0 16px; font-size:1rem; }
.home-hero .hero-tagline { color:var(--text); font-size:clamp(1.5rem,3vw,2.2rem)!important; text-shadow:3px 3px #50100d; }
.home-hero .button-row { justify-content:center; margin-top:10px; }
.home-gameplay { max-width:900px; margin:0 auto 55px; }
#kit-list button[aria-pressed=true] { background:#121012; border-color:#9d3934; box-shadow:none; }
.kit-preview { background:#0b0b0c; }
@media(max-width:950px) { .site-header { gap:20px; } .site-header .brand img { width:160px; } .site-header nav { gap:18px; } }
@media(max-width:700px) {
 .site-header { padding:16px 20px; gap:18px; }
 .site-header .brand img { width:130px; }
 .site-header .server-ribbon { order:2; font-size:.55rem; max-width:180px; }
 .site-header .server-ribbon strong { font-size:.65rem; }
 .site-header .server-ribbon button { font-size:.6rem; padding:4px; }
 .site-header nav { order:3; }
 .home-hero { padding:38px 0 32px; }
 .home-hero p:not(.hero-tagline) { font-size:.9rem; }
 .home-gameplay { margin-bottom:35px; }
}

/* Balanced navigation, with the logo reserved for the home hero. */
.site-header { display:grid; grid-template-columns:1fr auto 1fr; gap:24px; }
.site-header nav { grid-column:2; margin:0; gap:36px; }
.site-header nav a { font-size:1.4rem; padding:14px 0; }
.site-header .server-ribbon { grid-column:3; justify-self:end; }
#kit-list button[aria-pressed=true] { background:#982c27; border-color:#982c27; box-shadow:none; }
.weapon-slot-label { font-size:.9rem; color:#c1b3ad; padding:8px 0; }
@media(max-width:850px) { .site-header { grid-template-columns:1fr; gap:12px; } .site-header nav { grid-column:1; grid-row:1; justify-content:center; width:100%; gap:28px; } .site-header .server-ribbon { grid-column:1; grid-row:2; justify-self:center; align-items:center; margin:0; max-width:none; } }
@media(max-width:440px) { .site-header nav { gap:20px; } .site-header nav a { font-size:1.1rem; } }

#kit-fallback .fallback-gun { pointer-events:auto; width:70%; height:40%; border:0; padding:0; background:transparent; cursor:pointer; }
#kit-fallback .fallback-gun img { width:100%; height:100%; }

.home-hero .hero-brand { width:min(940px,100%); aspect-ratio:1870/560; }
.hero-brand img:not(.entrance-ace) { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; mix-blend-mode:lighten; }
.hero-brand .entrance-ace { position:absolute; z-index:2; left:50%; top:22%; width:15%; height:auto; pointer-events:none; opacity:0; image-rendering:pixelated; }
.hero-brand { isolation:auto; }
.hero-brand.is-entering>img:not(.entrance-ace) { opacity:.18; }
/* Full-window Gambit visual effects sit behind all page content. */
body { isolation:isolate; background:#070707; }
.background-fx { position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }

.home-hero .hero-brand { margin-bottom:0; }
.home-hero { padding:28px 0 22px; }

/* Community link balances the centered navigation and server details. */
.site-header .header-discord { grid-column:1; grid-row:1; justify-self:start; margin:0; }
.map-card .card-topline::after { content:none; }
@media(max-width:850px) {
 .site-header { grid-template-columns:1fr 1fr; }
 .site-header nav { grid-column:1 / -1; }
 .site-header .header-discord { grid-row:2; }
 .site-header .header-discord span { display:inline; }
 .site-header .server-ribbon { grid-column:2; justify-self:end; align-items:flex-end; }
}

/* Larger connection details and map titles, with a compact player profile. */
.site-header .server-ribbon { font-size:.8rem; }
.site-header .server-ribbon strong { font-size:1.05rem; }
.site-header .server-ribbon button { font-size:.85rem; padding:8px; }
.map-card h2 { font-size:clamp(1.65rem, 2.5vw, 2rem); line-height:1.3; }
.stats-layout { align-items:start; }
.player-panel { position:sticky; top:24px; }
.avatar { position:relative; width:64px; height:64px; }
.skin-head { position:absolute; inset:0; width:100%; height:100%; image-rendering:pixelated; }
.avatar-small { width:26px; height:26px; }
.leaderboard-player { display:flex; align-items:center; gap:10px; min-width:0; }
.leaderboard-player strong { min-width:0; }
@media(max-width:1100px) {
 .site-header { grid-template-columns:1fr 1fr; gap:12px; }
 .site-header nav { grid-column:1 / -1; grid-row:1; justify-content:center; }
 .site-header .header-discord { grid-column:1; grid-row:2; }
 .site-header .server-ribbon { grid-column:2; grid-row:2; margin:0; }
}
@media(max-width:950px) { .player-panel { position:static; grid-row:1; } }
@media(max-width:440px) {
 .site-header .server-ribbon { font-size:.65rem; }
 .site-header .server-ribbon strong { font-size:.9rem; }
 .site-header .server-ribbon button { font-size:.75rem; padding:6px 2px; }
 .site-header .header-discord { padding:8px; font-size:.75rem; gap:6px; }
 .map-card-content { padding:14px; }
 .map-card h2 { font-size:1.5rem; }
 .leaderboard-head,.leaderboard-row { grid-template-columns:22px minmax(0,1fr) 32px 40px 30px; gap:5px; font-size:.65rem; }
 .leaderboard-panel,.player-panel { padding:15px; }
 .leaderboard-player { gap:6px; }
 .avatar-small { width:20px; height:20px; }
}
/* Shared finishing: retain the pixel identity and the animated background. */
:root {
  --muted:#bdb2ac;
  --control-border:#4b3433;
  --control-surface:#171011;
  --type-small:.8rem;
  --type-body:.95rem;
  --section-space:clamp(36px,5vw,60px);
}
p { font-size:var(--type-body); line-height:1.75; }
h2,h3 { line-height:1.35; }
.section-heading p,.setup-steps p,.kit-preview-heading p { font-size:var(--type-body); }
.eyebrow,.panel-topline,.card-topline,.model-hint { font-size:var(--type-small); line-height:1.6; }
.section-heading .eyebrow { font-size:var(--type-small); }
.section { padding:var(--section-space) 0; border-top-color:#ffffff14; }
.section-heading { margin-bottom:28px; }
.page-heading { padding:48px 0 32px; }
.page-heading h1 { margin-bottom:16px; }
.home-gameplay { margin-bottom:var(--section-space); }
.join-section { padding-top:var(--section-space); }
.help-details { margin-top:36px; border-top:1px solid #ffffff12; }
footer { padding:28px 0; border-top-color:#ffffff18; }
.button,.header-discord,.sort-button,[data-copy-address] {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:11px 16px; border:1px solid var(--control-border);
  border-radius:3px; background:var(--control-surface); color:var(--text);
  font-size:var(--type-small); line-height:1.4; white-space:nowrap; flex-shrink:0; box-shadow:inset 0 1px #ffffff07;
}
.text-link { display:inline-flex; align-items:center; }
.button { min-height:48px; padding:13px 20px; }
.button.primary { background:#c52d28; border-color:#e7493e; box-shadow:inset 0 1px #ffffff24,0 3px 10px #0004; }
.button.secondary,.site-header .header-discord { background:var(--control-surface); border-color:var(--control-border); }
.site-header .server-ribbon button,.inline-address button { min-height:36px; padding:8px 12px; border:1px solid var(--control-border); color:var(--text); background:var(--control-surface); font-size:.75rem; }
.inline-address { padding:6px 6px 6px 12px; gap:12px; border-color:var(--control-border); background:#110d0e; border-radius:3px; }
.sort-button.active { background:#8e2823; border-color:#c04b42; color:#fff4ec; }
.button:active,.header-discord:active,.sort-button:active,[data-copy-address]:active { transform:translateY(1px); box-shadow:inset 0 2px 5px #0005; }
.button:focus-visible,.header-discord:focus-visible,button:focus-visible { outline:2px solid #f0786d; outline-offset:4px; }
.hero-video.gameplay-showcase { position:relative; overflow:hidden; border:1px solid #393032; border-top:2px solid #b8332c; border-radius:4px; background:#0d0b0c; box-shadow:0 16px 40px #0007,0 0 0 5px #ffffff02; }
.gameplay-showcase video { aspect-ratio:16/9; object-fit:contain; }
.map-media { position:relative; overflow:hidden; aspect-ratio:5/3; background:#1c1719; border-bottom:1px solid #ffffff12; }
.map-media img { width:100%; height:100%; object-fit:cover; object-position:center; filter:brightness(1.04) contrast(1.03) saturate(.94); }
.map-card .map-media img { transition:opacity 240ms ease; }
.map-media.is-loading img { opacity:0; }
.map-media.is-loading::after,.skeleton-row i::after { content:''; position:absolute; inset:0; background:linear-gradient(100deg,transparent 25%,#ffffff09 50%,transparent 75%); transform:translateX(-100%); animation:loading-sheen 1.8s ease-in-out infinite; }
.map-media.image-error::after { content:'Preview unavailable'; position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); font-size:.8rem; }
.map-media.image-error img { opacity:0; }
.map-card,.suit-club .map-card { border-color:#393033; border-radius:3px; background:#100d0f; box-shadow:0 4px 16px #0003; }
.map-card-content { padding:22px; }
.map-card h2 { font-size:clamp(1.4rem,2.2vw,1.8rem); line-height:1.4; margin-top:12px; }
.map-card .card-topline { font-size:.75rem; color:#baaaa3; }
/* Map previews are informational, so movement is reserved for actual controls. */
@media(hover:hover) {
  .button,.header-discord,.sort-button,[data-copy-address],.text-link,#kit-list button { transition:transform 160ms ease,border-color 160ms ease,background-color 160ms ease,box-shadow 160ms ease; }
  .button:hover,.site-header .header-discord:hover,.sort-button:hover,[data-copy-address]:hover { transform:translateY(-2px); border-color:#aa5c52; color:#fff4ec; box-shadow:inset 0 1px #ffffff12,0 5px 14px #0004; }
  .button.primary:hover { background:#db3930; border-color:#f66a58; }
  .text-link:hover { transform:translateY(-2px); }
  #kit-list button:hover { transform:translateX(2px); border-color:#9e5a50; }
  .leaderboard-row:hover { background:#ffffff04; }
  .map-card:hover,.suit-club .map-card:hover { border-color:#66504b; box-shadow:0 4px 16px #0003; }
  .map-card:hover img { filter:brightness(1.04) contrast(1.03) saturate(.94); }
  .map-card:hover h2,.suit-club .map-card:hover h2 { color:var(--text); }
}
.stats-search input { min-height:44px; border-radius:3px; border-color:var(--control-border); background:#130f10; }
.leaderboard-panel,.player-panel { background:#100d0fee; border-color:#393033; border-radius:3px; box-shadow:0 6px 24px #0003; }
#leaderboard-table { min-height:480px; }
#player-card { min-height:410px; }
#leaderboard-table[aria-busy=true]>.leaderboard-row { opacity:.55; }
.stats-skeleton { padding-top:18px; }
.skeleton-row { display:grid; grid-template-columns:28px 1fr 48px; gap:14px; align-items:center; height:54px; border-bottom:1px solid #ffffff08; }
.skeleton-row i { display:block; position:relative; overflow:hidden; height:12px; background:#292123; border-radius:2px; }
.skeleton-row:nth-child(even) i:nth-child(2) { width:75%; }
.profile-skeleton .skeleton-row { height:70px; grid-template-columns:44px 1fr 36px; }
.profile-skeleton .skeleton-row:first-child i:first-child { height:44px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@keyframes loading-sheen { to { transform:translateX(100%); } }
@media(max-width:700px) {
  .page-heading { padding:36px 0 24px; }
  .section-heading { margin-bottom:24px; }
  .map-card-content { padding:16px; }
  .map-card h2 { font-size:1.4rem; }
  .sort-button { flex:1; padding:10px; }
  .stats-sort { gap:8px; }
  .site-header .server-ribbon button { min-height:36px; padding:6px 10px; }
  .site-header .header-discord { min-height:44px; padding:10px; }
  .button-row { gap:10px; }
  .button { padding:12px 16px; }
  #player-card { min-height:360px; }
}
@media(prefers-reduced-motion:reduce) {
  .button,.header-discord,.sort-button,[data-copy-address],.text-link,#kit-list button,.map-card .map-media img { transition:none; }
  .button:hover,.header-discord:hover,.sort-button:hover,[data-copy-address]:hover,.text-link:hover,#kit-list button:hover { transform:none; }
  .map-media.is-loading::after,.skeleton-row i::after { animation:none; transform:none; }
}
/* Stable copy-button width and four quiet footer shortcuts. */
[data-copy-address] { min-width:88px; }
footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; }
footer>a { justify-self:end; }
.footer-suits { display:flex; gap:4px; align-items:center; }
.footer-suits a { display:grid; place-items:center; width:32px; height:32px; color:#b7aba5; font:17px/1 Georgia,serif; border-radius:3px; }
.footer-suits a:nth-child(even) { color:#d65147; }
@media(hover:hover) {
  .footer-suits a { transition:transform 160ms ease,color 160ms ease,background-color 160ms ease; }
  .footer-suits a:hover { transform:translateY(-2px) rotate(-7deg); color:#fff1df; background:#ffffff06; }
  .footer-suits a:nth-child(even):hover { transform:translateY(-2px) rotate(7deg); color:#fa7866; }
}
@media(max-width:440px) { footer { gap:8px; } .footer-suits { gap:0; } .footer-suits a { width:30px; } footer>a { gap:6px; } }
@media(prefers-reduced-motion:reduce) {
  .footer-suits a { transition:none; }
  .footer-suits a:hover,.footer-suits a:nth-child(even):hover { transform:none; }
}

/* Keep mode selection and search usable on narrow screens. */
.stats-controls { flex-wrap:wrap; }
.stats-period { display:flex; gap:7px; flex-wrap:wrap; }
.stats-categories { display:flex; gap:28px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.stats-categories button { padding:0 0 15px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font:inherit; font-size:1.25rem; min-height:44px; }
.stats-categories button.active { color:var(--text); border-bottom-color:var(--accent); }
.stats-modes { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; }
.stats-modes [hidden], .stats-sort [hidden] { display:none; }
@media(max-width:700px) {
  #leaderboard-table:not([aria-busy=true]) { min-height:0; }
}
