/* Rocko's World — arcade-ui.css
   Shared "leveled" component finish: one source of truth for buttons, pills,
   the account chip, cards, frames and the header wordmark — matching the
   homepage hero's glossy / gradient / glow material so the whole site reads
   as one world.

   HOW TO ADOPT (brand pages): link this AFTER the page's own <style> and
   candy.css, so it wins:
       <link rel="stylesheet" href="/arcade-ui.css?v=b425bf9">
   It upgrades the common class names (.btn, .card, .wm) in place and adds
   .pill / .acct / .rw-frame. It reads each page's --edge/--red/--gold/--cream
   tokens (with fallbacks), so per-page colors are preserved.

   DO NOT link this on the games — their in-game .btn/.card/.card mean other
   things; the games get a dedicated chrome pass instead. */

@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* ---- Header / brand wordmark (the banner font, header-sized, with depth) ---- */
.brand .wm, .wm{
  font-family:'Luckiest Guy', var(--disp,'Lilita One'), system-ui, sans-serif;
  letter-spacing:.5px; line-height:1;
  -webkit-text-stroke:2px var(--edge,#0b1020); paint-order:stroke fill;
  text-shadow:0 4px 0 var(--edge,#0b1020);
}
.wm .a{ color:var(--red,#d83a34); }
.wm .b{ color:var(--gold,#ffc93c); }

/* ---- Buttons — gloss baked into the background layer so bare-text labels
       (buttons whose text is set via JS) stay crisp and readable. ---- */
.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--disp,'Lilita One'), system-ui, sans-serif; font-weight:400;
  letter-spacing:.5px; color:#fff; cursor:pointer;
  border:4px solid var(--edge,#0b1020); border-radius:999px; padding:14px 26px;
  -webkit-text-stroke:.6px var(--edge,#0b1020); paint-order:stroke fill;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 46%),
    linear-gradient(180deg,#ff9166 0%,#ef4330 46%,#c62716 100%);
  box-shadow:0 8px 0 var(--edge,#0b1020), 0 16px 26px rgba(198,39,22,.42),
             inset 0 3px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,0,0,.22);
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform:translateY(-3px);
  box-shadow:0 11px 0 var(--edge,#0b1020), 0 22px 32px rgba(198,39,22,.5),
             inset 0 3px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,0,0,.22); }
.btn:active{ transform:translateY(5px);
  box-shadow:0 3px 0 var(--edge,#0b1020), inset 0 3px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.25); }
.btn:disabled{ opacity:.6; cursor:default; transform:none;
  box-shadow:0 8px 0 var(--edge,#0b1020), inset 0 3px 0 rgba(255,255,255,.4); }

/* colorways — add .blue or .gold alongside .btn */
.btn.blue{
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 46%),
    linear-gradient(180deg,#9fe6ff 0%,#3bb4ef 46%,#1d7cc6 100%);
  box-shadow:0 8px 0 var(--edge,#0b1020), 0 14px 22px rgba(29,124,198,.4),
             inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.2); }
.btn.gold{
  color:#5a3d06; -webkit-text-stroke:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 50%),
    linear-gradient(180deg,#ffe49a 0%,#ffc93c 50%,#e0a21f 100%);
  box-shadow:0 8px 0 var(--edge,#0b1020), 0 14px 22px rgba(224,162,31,.42),
             inset 0 3px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(0,0,0,.14); }

/* ---- Pills (the puffy glossy-gold chip) ---- */
.pill{
  display:inline-block; font-family:var(--disp,'Lilita One'), system-ui, sans-serif;
  font-size:.95rem; letter-spacing:.3px; color:var(--edge,#0b1020);
  border:2px solid var(--edge,#0b1020); border-radius:999px; padding:6px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 50%),
    linear-gradient(180deg,#ffe49a,#ffc93c 55%,#eab01f);
  box-shadow:0 3px 0 var(--edge,#0b1020), 0 7px 13px rgba(234,176,31,.4), inset 0 -3px 0 rgba(0,0,0,.12);
}

/* ---- Account chip (navy, glossy) ---- */
.acct{
  display:inline-flex; align-items:center; gap:9px; font-family:var(--body,'Nunito'), system-ui, sans-serif;
  font-weight:900; color:var(--cream,#fff8ec); font-size:.9rem;
  border:2px solid var(--edge,#0b1020); border-radius:999px; padding:7px 15px 7px 8px;
  background:radial-gradient(120% 150% at 10% 0%, rgba(89,201,240,.3), transparent 60%),
             linear-gradient(120deg,#2a2150,#241a2e);
  box-shadow:0 4px 0 var(--edge,#0b1020), 0 9px 18px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.14);
}
.acct b{ color:var(--gold,#ffc93c); }

/* ---- Cards (clean cream + inner highlight + soft shadow + faint gold glow) ---- */
.card{
  background:linear-gradient(180deg,#fffdf7,#fff0d4);
  border:4px solid var(--edge,#0b1020); border-radius:22px; color:var(--ink,#1b2333);
  box-shadow:0 10px 0 var(--edge,#0b1020), 0 24px 40px rgba(0,0,0,.4),
             inset 0 3px 0 rgba(255,255,255,.95), 0 0 34px rgba(255,201,60,.14);
}

/* ---- Frames (hero spots only) ---- */
.rw-frame{
  border:4px solid var(--edge,#0b1020); border-radius:14px;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.14), 0 0 26px rgba(255,201,60,.26), 0 8px 18px rgba(0,0,0,.4);
}
.rw-frame-rainbow{
  border:0; padding:4px; border-radius:18px;
  background:linear-gradient(120deg,#ff5a46,#ffb13d,#ffe24a,#7fe04a,#36c7e0,#8a7bff);
  box-shadow:0 0 0 4px var(--edge,#0b1020), 0 0 30px rgba(255,150,80,.32), 0 10px 22px rgba(0,0,0,.45);
}

@media (prefers-reduced-motion: reduce){ .btn{ transition:none; } }

/* ---- Shiny-bubble icon badges (shared from /join, 2026-11-10) — glossy colour-coded
       disc + a clean white inline-SVG glyph. Replaces the generic /img/icons PNGs. ---- */
.bubble{ position:relative; flex:0 0 auto; width:68px; height:68px; border-radius:999px; display:grid; place-items:center;
  border:3px solid var(--edge,#0b1020);
  box-shadow:0 6px 0 var(--edge,#0b1020), 0 13px 20px rgba(0,0,0,.38),
             inset 0 3px 0 rgba(255,255,255,.6), inset 0 -6px 0 rgba(0,0,0,.18); }
.bubble::before{ content:""; position:absolute; left:15%; right:15%; top:8%; height:38%; border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0)); pointer-events:none; }
.bubble svg{ position:relative; z-index:1; width:34px; height:34px; fill:#fff; filter:drop-shadow(0 2px 0 rgba(0,0,0,.28)); }
.b-gold{  background:linear-gradient(180deg,#ffe49a,#ffc93c 55%,#e0a21f); }
.b-red{   background:linear-gradient(180deg,#ff9166,#ef4330 50%,#c62716); }
.b-sky{   background:linear-gradient(180deg,#a7e8ff,#3bb4ef 50%,#1d7cc6); }
.b-grape{ background:linear-gradient(180deg,#cdb6ff,#8a7bff 50%,#6a4de0); }
.b-lime{  background:linear-gradient(180deg,#d8f29e,#9ad54f 50%,#5fae2f); }
.b-amber{ background:linear-gradient(180deg,#ffd49a,#ff9e2c 50%,#e07a1f); }

/* compact variant for inline / header-row use */
.bubble.sm{ width:42px; height:42px; border-width:2px;
  box-shadow:0 4px 0 var(--edge,#0b1020), 0 7px 11px rgba(0,0,0,.34), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.16); }
.bubble.sm svg{ width:22px; height:22px; }
.bubble.inline{ display:inline-grid; vertical-align:-0.42em; }  /* before a heading/label */

/* ---- Nav wrap fix: stop the mobile top-nav from clipping links (2026-11-10) ---- */
.nav{ flex-wrap:wrap; }
.nav-right{ flex-wrap:wrap; }
