:root{
  --black:#070806;
  --deep:#10130d;
  --ink:#f4f0df;
  --muted:#aaa78c;
  --lime:#8fc74b;
  --lime2:#b5df6e;
  --amber:#f0ad45;
  --cyan:#38d6e8;
  --pink:#f45aa0;
  --violet:#8658ff;
  --red:#ef5b4f;
  --screen:#11170f;
  --line:rgba(244,240,223,.18);
  --line-soft:rgba(244,240,223,.12);
  --line-strong:rgba(244,240,223,.3);
  --panel:rgba(8,10,7,.82);
  --shadow:0 26px 80px rgba(0,0,0,.48);
  --go:var(--lime2);
  --coin:var(--amber);
  --alert:var(--red);
  --sp-1:4px;
  --sp-2:8px;
  --sp-3:12px;
  --sp-4:16px;
  --sp-5:24px;
  --sp-6:32px;
  --r-sm:6px;
  --r-md:8px;
  --r-lg:14px;
  --r-cab:28px;
  --fs-micro:10px;
}

/*
 * v3.2 partner theme skins. A cabinet reskin is a CSS-variable swap keyed by
 * data-theme on the html element (set by arcade-shared.js from ?theme= or the
 * persisted roamad.arcade.theme.v1 key). Roamad lime #8fc74b is reserved for
 * the default Roamad theme; partner themes must bring their own primaries.
 */
:root[data-theme="citrus"]{
  --lime:#f0ad45;
  --lime2:#ffcf4a;
  --amber:#ef5b4f;
  --screen:#171208;
  --deep:#141006;
  --go:var(--lime2);
  --coin:var(--amber);
}
/* v3.3 hub attract loop */
.attract-loop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:rgba(4,5,3,.94);}
.attract-loop[hidden]{display:none;}
.attract-card{display:grid;justify-items:center;gap:16px;padding:38px 48px;border:1px solid var(--line-strong);border-radius:var(--r-lg);background:var(--panel);text-align:center;box-shadow:var(--shadow);}
.attract-card i{transform:scale(1.7);margin-bottom:10px;}
.attract-card strong{font:800 44px/1 "Fraunces",serif;color:var(--ink);}
.attract-card em{font:900 12px/1.5 "JetBrains Mono",monospace;letter-spacing:1px;text-transform:uppercase;color:var(--card-accent,var(--lime));font-style:normal;max-width:320px;}
.attract-cta{font:900 11px/1 "JetBrains Mono",monospace;letter-spacing:2px;text-transform:uppercase;color:var(--muted);animation:attractPulse 1.6s ease-in-out infinite;}
.attract-card.cycle{animation:attractIn .5s cubic-bezier(.22,.61,.36,1);}
@keyframes attractIn{from{transform:translateY(18px) scale(.94);opacity:0;}to{transform:none;opacity:1;}}
@keyframes attractPulse{0%,100%{opacity:.45;}50%{opacity:1;}}

/*
 * v3.5 tablet landscape cabinet mode: on wide, height-tight screens the deck
 * moves to a right-hand column so gameplay keeps the vertical space, instead
 * of relying on a portrait-only layout.
 */
@media (orientation:landscape) and (min-width:900px) and (max-height:860px){
  body.arcade-game .cabinet{
    grid-template-rows:auto minmax(0,1fr);
    grid-template-columns:minmax(0,1fr) clamp(150px,20vw,230px);
  }
  body.arcade-game .cabinet--bar{grid-template-rows:auto auto minmax(0,1fr);}
  body.arcade-game .marquee{grid-column:1 / -1;}
  body.arcade-game .game-bar{grid-column:1 / -1;}
  body.arcade-game .cabinet--bar .screen-wrap{grid-row:3;}
  body.arcade-game .cabinet--bar .control-deck{grid-row:3;}
  body.arcade-game .screen-wrap{grid-column:1;grid-row:2;}
  body.arcade-game .control-deck{
    grid-column:2;
    grid-row:2;
    grid-template-columns:1fr;
    align-content:center;
    justify-items:center;
    gap:14px;
    border-top:none;
    border-left:1px solid rgba(244,240,223,.18);
    padding:18px 14px;
  }
  body.arcade-game .control-deck::after{right:12px;top:auto;bottom:8px;}
  body.arcade-game .deck-left,body.arcade-game .deck-center,body.arcade-game .deck-right{flex-direction:column;justify-content:center;width:100%;}
  body.arcade-game .deck-left .stick{display:none;}
  body.arcade-game .control-deck .arcade-button,body.arcade-game .control-deck .ghost-button,body.arcade-game .control-deck .coin-button{width:100%;}
}

:root[data-theme="frost"]{
  --lime:#38d6e8;
  --lime2:#8fe3ef;
  --amber:#8658ff;
  --screen:#0a1417;
  --deep:#081114;
  --go:var(--lime2);
  --coin:var(--amber);
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{min-height:100%;background:var(--black);}
html{overflow-x:hidden;}
body{
  min-height:100dvh;
  color:var(--ink);
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overscroll-behavior:none;
  user-select:none;
  -webkit-user-select:none;
}
a{color:inherit;text-decoration:none;}
button{
  font:900 12px/1 "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--ink);
  border:1px solid rgba(244,240,223,.28);
  background:#181b13;
  border-radius:8px;
  min-height:44px;
  padding:0 14px;
  cursor:pointer;
  touch-action:manipulation;
  transition:transform .14s ease,border-color .14s ease,filter .14s ease,background .14s ease;
}
button:active{transform:translateY(1px) scale(.985);}
button:disabled{
  cursor:not-allowed;
  opacity:.48;
  filter:saturate(.72);
  transform:none;
}
button:hover,.arcade-button:hover,.coin-button:hover,.ghost-button:hover,.game-card:hover,.stamp-card:hover,.note-card:hover{
  filter:brightness(1.08);
  border-color:rgba(244,240,223,.42);
}
button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:4px;}
.arcade-button,.coin-button,.ghost-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  font:900 12px/1 "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:1.2px;
  text-transform:uppercase;
  border-radius:8px;
  border:1px solid rgba(244,240,223,.28);
  text-align:center;
  cursor:pointer;
  touch-action:manipulation;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background:
    linear-gradient(90deg,rgba(56,214,232,.08) 1px,transparent 1px),
    linear-gradient(rgba(244,240,223,.05) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.8),rgba(0,0,0,.15));
}
.scanlines{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:20;
  opacity:.16;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.12) 0 1px,transparent 1px 4px);
  mix-blend-mode:soft-light;
}
.grain{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:19;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-shell{
  position:relative;
  z-index:1;
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px;
}
.cabinet{
  position:relative;
  width:min(1180px,100%);
  min-height:min(820px,calc(100dvh - 48px));
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  border:1px solid rgba(244,240,223,.22);
  border-radius:18px 18px 28px 28px;
  background:
    linear-gradient(135deg,rgba(244,90,160,.16),transparent 30%),
    linear-gradient(225deg,rgba(56,214,232,.14),transparent 36%),
    linear-gradient(180deg,#2b281d,#11130d 42%,#090a07);
  box-shadow:var(--shadow),inset 0 0 0 7px rgba(0,0,0,.34);
  overflow:hidden;
}
.cabinet::after{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:12px 12px 20px 20px;
  pointer-events:none;
  background:
    radial-gradient(circle at 0 0,#c9c2a6 0 2px,#3b3729 3px 5px,transparent 6px),
    radial-gradient(circle at 100% 0,#c9c2a6 0 2px,#3b3729 3px 5px,transparent 6px),
    radial-gradient(circle at 0 100%,#c9c2a6 0 2px,#3b3729 3px 5px,transparent 6px),
    radial-gradient(circle at 100% 100%,#c9c2a6 0 2px,#3b3729 3px 5px,transparent 6px);
  opacity:.42;
  z-index:1;
}
.cabinet::before{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  top:6px;
  height:5px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--pink),var(--amber),var(--lime2),var(--cyan),var(--pink));
  opacity:.58;
  filter:blur(.2px);
  pointer-events:none;
}
.marquee{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid rgba(244,240,223,.18);
  background:
    linear-gradient(90deg,rgba(244,90,160,.28),rgba(56,214,232,.18),rgba(181,223,110,.18)),
    #11130d;
}
.brand-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:44px;
  min-height:44px;
  font:900 12px/1 "JetBrains Mono",monospace;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--lime2);
  white-space:nowrap;
}
.brand-dot{
  width:26px;
  height:26px;
  border-radius:50%;
  border:2px solid var(--lime2);
  background:radial-gradient(circle at 40% 35%,var(--lime2),var(--lime) 44%,#283819 46%);
  box-shadow:0 0 18px rgba(181,223,110,.35);
}
.marquee-title{
  min-width:0;
  text-align:center;
  font:700 56px/.9 "Fraunces",Georgia,serif;
  color:var(--ink);
  text-shadow:3px 3px 0 rgba(244,90,160,.5),-3px -2px 0 rgba(56,214,232,.32);
}
.marquee-chip{
  justify-self:end;
  min-width:112px;
  min-height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(244,240,223,.24);
  border-radius:8px;
  background:rgba(0,0,0,.24);
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--amber);
  white-space:nowrap;
}
.marquee-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.marquee-actions .marquee-chip{
  justify-self:auto;
}
.marquee-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  min-width:0;
}
.marquee-nav-button{
  min-width:0;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(181,223,110,.28);
  border-radius:8px;
  background:rgba(0,0,0,.28);
  padding:0 14px;
  color:var(--lime2);
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:.7px;
  text-transform:uppercase;
  white-space:nowrap;
  touch-action:manipulation;
  cursor:pointer;
}
.marquee-nav-button:hover{
  filter:brightness(1.08);
  border-color:rgba(181,223,110,.48);
}
.lang-toggle,.sound-toggle{min-width:44px;}
/*
 * v3.6 phone nav collapse: the hamburger is always mounted by
 * arcade-shared.js but only phone widths reveal it, so window resizes keep
 * working with no script bookkeeping. Above 600px it stays display:none and
 * the marquee nav renders inline exactly as before.
 */
.marquee-nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  padding:0;
  border:1px solid rgba(181,223,110,.28);
  border-radius:8px;
  background:rgba(0,0,0,.28);
  color:var(--lime2);
  font-size:18px;
  line-height:1;
}
/*
 * Cabinet control strip: game actions (start, reset, sound) live here, under
 * the marquee, so the top bar stays navigation-only and labels never clip.
 */
.cabinet--bar{
  grid-template-rows:auto auto minmax(0,1fr) auto;
}
.game-bar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 18px;
  border-bottom:1px solid rgba(244,240,223,.14);
  background:rgba(0,0,0,.32);
}
.game-bar .marquee-chip{
  min-width:0;
  min-height:28px;
  padding:0 12px;
  justify-self:auto;
}
.game-bar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.bar-button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(244,240,223,.26);
  border-radius:8px;
  background:rgba(0,0,0,.3);
  padding:0 16px;
  color:var(--ink);
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:.7px;
  text-transform:uppercase;
  white-space:nowrap;
  touch-action:manipulation;
  cursor:pointer;
}
.bar-button:hover{
  filter:brightness(1.1);
  border-color:rgba(244,240,223,.44);
}
.bar-button--primary{
  border-color:transparent;
  background:linear-gradient(180deg,var(--lime2),var(--lime));
  color:#11140e;
}
.bar-button--sound{
  min-width:74px;
  color:var(--lime2);
  border-color:rgba(181,223,110,.3);
}
.bar-button--sound[aria-pressed="false"]{
  color:var(--muted);
  border-color:rgba(244,240,223,.2);
}
.screen-wrap{
  padding:18px;
  display:grid;
  min-height:0;
  position:relative;
  z-index:2;
}
.screen{
  position:relative;
  display:grid;
  min-height:0;
  border-radius:14px;
  border:10px solid #070806;
  background:var(--screen);
  box-shadow:inset 0 0 0 1px rgba(244,240,223,.16),inset 0 0 44px rgba(0,0,0,.7);
  overflow:hidden;
  contain:layout paint style;
}
.screen::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 50% 40%,transparent 0 58%,rgba(0,0,0,.38));
}
.arcade-content .screen{
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.screen-embed{
  min-height:0;
  background:#070a07;
}
.arcade-embed-frame{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  min-height:0;
  display:block;
  border:0;
  background:#0a0e0a;
  transform-origin:0 0;
}
.embed-loading{
  position:absolute;
  inset:0;
  z-index:3;
  display:grid;
  place-items:center;
  border:1px solid rgba(181,223,110,.18);
  background:
    repeating-linear-gradient(180deg,rgba(255,255,255,.04) 0 1px,transparent 1px 5px),
    radial-gradient(circle at 50% 42%,rgba(143,199,75,.16),transparent 42%),
    rgba(7,10,7,.96);
  pointer-events:none;
}
.embed-loading[hidden]{display:none;}
.embed-loading span{
  min-height:38px;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(181,223,110,.34);
  border-radius:6px;
  background:rgba(0,0,0,.32);
  padding:0 13px;
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--lime2);
  box-shadow:0 0 24px rgba(143,199,75,.11);
}
canvas{
  width:100%;
  height:100%;
  min-height:420px;
  display:block;
  touch-action:none;
}
.control-deck{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:16px 18px 18px;
  border-top:1px solid rgba(244,240,223,.18);
  background:
    linear-gradient(180deg,rgba(244,240,223,.06),transparent),
    repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 1px,transparent 1px 9px),
    #15150f;
}
.control-deck::after{
  content:"TOKEN RETURN";
  position:absolute;
  right:18px;
  top:8px;
  color:rgba(244,240,223,.28);
  font:900 var(--fs-micro)/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  pointer-events:none;
}
.deck-left,.deck-center,.deck-right{display:flex;align-items:center;gap:10px;}
.deck-center{justify-content:center;min-width:0;}
.deck-right{justify-content:flex-end;}
.control-deck--play{
  grid-template-columns:1fr;
  justify-items:center;
}
.control-deck--play .deck-center{
  width:min(520px,100%);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr));
  gap:10px;
}
.control-deck--play .deck-center > *{
  width:100%;
}
.arcade-button{
  min-width:96px;
  border-color:rgba(181,223,110,.62);
  color:#101409;
  background:linear-gradient(180deg,var(--lime2),var(--lime));
  box-shadow:0 10px 0 #344b1d,0 18px 28px rgba(0,0,0,.34);
}
.coin-button{
  min-width:80px;
  color:#141008;
  border-color:rgba(240,173,69,.78);
  background:linear-gradient(180deg,#ffcf6b,var(--amber));
  box-shadow:0 9px 0 #6f4713,0 16px 26px rgba(0,0,0,.32);
}
.ghost-button{
  min-width:80px;
  color:var(--ink);
  background:rgba(244,240,223,.06);
}
.stick{
  position:relative;
  width:72px;
  height:72px;
  border-radius:50%;
  border:1px solid rgba(244,240,223,.22);
  background:radial-gradient(circle,#222 0 28%,#080908 30% 100%);
  box-shadow:inset 0 0 24px rgba(0,0,0,.75);
}
.stick::before{
  content:"";
  position:absolute;
  left:50%;
  top:12px;
  width:18px;
  height:40px;
  transform:translateX(-50%);
  background:#2b2b25;
  border-radius:9px;
}
.stick::after{
  content:"";
  position:absolute;
  left:50%;
  top:3px;
  width:32px;
  height:32px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle at 38% 32%,#ffb8d6,var(--pink) 55%,#7e2451);
  box-shadow:0 7px 14px rgba(0,0,0,.42);
}
.deck-light{
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 14px rgba(239,91,79,.55);
}
.game-links{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:0;
  align-content:start;
}
.game-card{
  position:relative;
  min-height:158px;
  display:grid;
  align-content:space-between;
  gap:12px;
  border:1px solid rgba(244,240,223,.2);
  border-radius:8px;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.028) 0 1px,transparent 1px 5px),
    linear-gradient(135deg,color-mix(in srgb,var(--card-accent,#38d6e8) 18%,transparent),transparent 42%),
    rgba(4,6,4,.72);
  padding:14px;
  overflow:hidden;
  contain:layout paint;
  touch-action:manipulation;
  transition:transform .2s ease,filter .2s ease,border-color .2s ease,background .2s ease;
}
.game-card:hover{transform:translateY(-2px);}
.game-card.done{
  border-color:rgba(181,223,110,.62);
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--card-accent,#8fc74b) 26%,transparent),transparent 44%),
    rgba(4,6,4,.78);
}
.game-card.done span:first-child{
  border-color:rgba(181,223,110,.46);
  color:var(--lime2);
}
.game-card.next{
  border-color:rgba(240,173,69,.7);
  box-shadow:inset 0 0 0 1px rgba(240,173,69,.24),0 0 28px rgba(240,173,69,.12);
}
.game-card::before{
  content:"";
  position:absolute;
  inset:8px;
  opacity:.22;
  pointer-events:none;
  border:1px dashed rgba(244,240,223,.34);
  border-radius:5px;
}
.game-card:nth-child(2n)::after{
  content:"";
  position:absolute;
  right:12px;
  bottom:12px;
  width:48px;
  height:48px;
  border:3px solid rgba(244,90,160,.45);
  border-radius:12px;
  transform:rotate(12deg);
}
.game-card:nth-child(3n)::after{
  content:"";
  position:absolute;
  right:16px;
  bottom:16px;
  width:0;
  height:0;
  border-left:24px solid transparent;
  border-right:24px solid transparent;
  border-bottom:42px solid rgba(56,214,232,.36);
}
.game-card strong{
  position:relative;
  z-index:1;
  font:800 28px/.92 "Fraunces",Georgia,serif;
  color:var(--ink);
}
.game-card span{
  position:relative;
  z-index:1;
  display:inline-flex;
  width:max-content;
  max-width:100%;
  min-height:24px;
  align-items:center;
  border:1px solid rgba(244,240,223,.2);
  border-radius:6px;
  background:rgba(0,0,0,.28);
  padding:0 8px;
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:.9px;
  text-transform:uppercase;
  color:var(--lime2);
}
.game-card em{
  position:relative;
  z-index:1;
  font:700 11px/1.45 "JetBrains Mono",monospace;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:var(--muted);
  font-style:normal;
}
.welcome-copy{
  position:relative;
  z-index:4;
  max-width:640px;
  display:grid;
  gap:9px;
}
.welcome-copy p{
  font:900 11px/1.35 "JetBrains Mono",monospace;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--lime2);
}
.welcome-copy h1{
  max-width:9ch;
  font:700 76px/.82 "Fraunces",Georgia,serif;
  text-shadow:4px 4px 0 rgba(244,90,160,.42),-4px -2px 0 rgba(56,214,232,.28);
  text-wrap:balance;
}
.screen-menu{
  display:grid;
  grid-template-columns:clamp(250px,26%,340px) minmax(0,1fr);
  grid-template-areas:"hero games";
  gap:28px;
  min-height:100%;
  padding:34px 36px 42px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(181,223,110,.28) transparent;
  background:
    radial-gradient(circle at 20% 16%,rgba(244,90,160,.3),transparent 22%),
    radial-gradient(circle at 78% 22%,rgba(56,214,232,.23),transparent 26%),
    linear-gradient(180deg,#12160f,#090a07);
}
.screen-menu .welcome-copy{grid-area:hero;}
.screen-menu .welcome-copy h1{font-size:clamp(56px,5.4vw,70px);max-width:7.4ch;}
.screen-menu .game-links{grid-area:games;}
.game-hud{
  position:absolute;
  left:12px;
  right:12px;
  top:12px;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  pointer-events:none;
}
.hud-tile{
  min-height:48px;
  border:1px solid rgba(244,240,223,.16);
  border-radius:8px;
  background:rgba(3,5,3,.64);
  padding:8px 10px;
  backdrop-filter:blur(8px);
  contain:layout paint;
}
.hud-tile span{
  display:block;
  font:900 var(--fs-micro)/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted);
}
.hud-tile strong{
  display:block;
  margin-top:6px;
  font:900 20px/1 "Inter",sans-serif;
  font-variant-numeric:tabular-nums;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.best-ribbon{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:6;
  min-height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(181,223,110,.35);
  border-radius:8px;
  background:rgba(3,5,3,.68);
  padding:0 10px;
  backdrop-filter:blur(8px);
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--lime2);
  pointer-events:none;
}
.game-overlay{
  position:absolute;
  inset:0;
  z-index:10;
  display:grid;
  place-items:center;
  padding:22px;
  background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.62));
}
.game-overlay[hidden]{display:none;}
.overlay-card{
  width:min(480px,100%);
  border:1px solid rgba(244,240,223,.24);
  border-radius:8px;
  background:rgba(5,7,5,.92);
  box-shadow:0 24px 70px rgba(0,0,0,.5);
  padding:22px;
  text-align:center;
  contain:layout paint;
}
.overlay-card p{
  font:900 11px/1.45 "JetBrains Mono",monospace;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--muted);
}
.overlay-card h2{
  margin:8px 0 12px;
  font:700 58px/.92 "Fraunces",Georgia,serif;
  color:var(--ink);
}
.overlay-stats{
  margin-top:12px;
  color:var(--lime2)!important;
}
.overlay-actions{
  margin-top:18px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.modern .cabinet{
  background:
    linear-gradient(135deg,rgba(143,199,75,.12),transparent 40%),
    linear-gradient(180deg,#20241b,#0b0d09);
}
.modern .marquee-title{
  text-shadow:0 0 24px rgba(143,199,75,.32);
}
.modern .screen{
  border-color:#11140f;
  box-shadow:inset 0 0 0 1px rgba(181,223,110,.18),inset 0 0 54px rgba(143,199,75,.08);
}
.modern .screen::after{background:linear-gradient(180deg,transparent,rgba(0,0,0,.18));}
.arcade-embed-page .screen::after{
  background:
    repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),
    radial-gradient(circle at 50% 30%,transparent 0 56%,rgba(0,0,0,.32));
  opacity:.55;
}
.modern .scanlines{opacity:.07;}
.arcade-toast{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:50;
  transform:translate(-50%,18px);
  opacity:0;
  min-height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(181,223,110,.45);
  border-radius:8px;
  background:rgba(5,7,5,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.42);
  padding:0 14px;
  font:900 11px/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--lime2);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.arcade-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}
.install-hint{
  position:fixed;
  left:50%;
  bottom:calc(14px + env(safe-area-inset-bottom,0px));
  z-index:55;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  max-width:min(92vw,440px);
  padding:10px 12px;
  border:1px solid rgba(181,223,110,.45);
  border-radius:10px;
  background:rgba(5,7,5,.94);
  box-shadow:0 18px 44px rgba(0,0,0,.42);
}
.install-hint[hidden]{display:none;}
.install-hint-copy{
  font:700 11px/1.45 "JetBrains Mono",monospace;
  letter-spacing:.6px;
  color:var(--ink,#ecefe7);
}
.install-hint-action{
  flex:none;
  min-height:44px;
  padding:0 14px;
  border:1px solid rgba(181,223,110,.6);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(181,223,110,.94),rgba(143,199,75,.94));
  color:#0a0d09;
  font:900 11px/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  text-transform:uppercase;
  cursor:pointer;
}
.install-hint-close{
  flex:none;
  width:44px;
  min-height:44px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:transparent;
  color:var(--ink,#ecefe7);
  font:700 15px/1 "JetBrains Mono",monospace;
  cursor:pointer;
}
.touch-pad{
  display:grid;
  grid-template-columns:repeat(3,44px);
  grid-template-rows:repeat(2,44px);
  gap:6px;
}
.pad-btn{
  min-width:0;
  min-height:44px;
  padding:0;
  border-radius:7px;
  color:transparent;
  position:relative;
}
.pad-btn::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:0;
  height:0;
  transform:translate(-50%,-50%);
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:12px solid var(--cyan);
}
.pad-btn[data-dir="left"]{grid-column:1;grid-row:2;}
.pad-btn[data-dir="down"]{grid-column:2;grid-row:2;}
.pad-btn[data-dir="right"]{grid-column:3;grid-row:2;}
.pad-btn[data-dir="up"]{grid-column:2;grid-row:1;}
.pad-btn[data-dir="left"]::before{transform:translate(-50%,-50%) rotate(-90deg);}
.pad-btn[data-dir="right"]::before{transform:translate(-50%,-50%) rotate(90deg);}
.pad-btn[data-dir="down"]::before{transform:translate(-50%,-50%) rotate(180deg);}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}
.note-card,
.stamp-card{
  contain:layout paint;
  touch-action:manipulation;
}
@keyframes shine{
  0%,55%{transform:translateX(-120%);}
  100%{transform:translateX(120%);}
}
@media(max-width:900px){
  .page-shell{padding:10px;}
  .cabinet{height:calc(100dvh - 20px);min-height:0;border-radius:14px;}
  .marquee{grid-template-columns:auto 1fr auto;gap:8px;text-align:center;padding:10px;}
  .marquee-actions{gap:6px;}
  .marquee-nav-button{padding:0 10px;font-size:var(--fs-micro);}
  .game-bar{padding:6px 12px;}
  .bar-button{padding:0 12px;font-size:var(--fs-micro);}
  .brand-mark span:last-child{display:none;}
  .brand-dot{width:22px;height:22px;}
  .marquee-chip{min-width:76px;font-size:var(--fs-micro);}
  .marquee-title{font-size:36px;}
  .screen-wrap{padding:10px;}
  .control-deck{grid-template-columns:auto 1fr auto;gap:12px;padding:10px 12px;min-height:88px;}
  .deck-left,.deck-center,.deck-right{justify-content:center;flex-wrap:nowrap;min-width:0;}
  .stick{width:56px;height:56px;}
  .screen-menu{grid-template-columns:1fr;grid-template-areas:"hero" "games";padding:24px;gap:18px;}
  .game-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .game-card{min-height:144px;}
  .welcome-copy{max-width:none;}
  .welcome-copy h1{font-size:54px;max-width:10ch;}
  .game-hud{grid-template-columns:repeat(2,minmax(0,1fr));}
  canvas{min-height:420px;}
}
@media(max-width:560px){
  html,body{width:100%;overflow-x:clip;}
  button{min-height:46px;padding:0 12px;}
  .page-shell{
    height:100svh;
    min-height:100svh;
    overflow:hidden;
    place-items:stretch;
    padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
    background:#0b100d;
  }
  @supports (height:100dvh){
    .page-shell{height:100dvh;min-height:100dvh;}
  }
  .cabinet{width:100%;height:100%;min-height:0;border-radius:0;border-width:0;box-shadow:none,inset 0 0 0 4px rgba(0,0,0,.34);}
  .cabinet::before{left:14px;right:14px;top:8px;height:4px;}
  .marquee{padding:8px;gap:6px;}
  .arcade-game .marquee{
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:"brand title" "actions actions";
    align-items:center;
    gap:6px 8px;
  }
  .arcade-game .brand-mark{grid-area:brand;}
  .arcade-game .marquee-title{grid-area:title;}
  .arcade-game .marquee-actions{
    grid-area:actions;
    justify-self:stretch;
    width:100%;
  }
  .arcade-game .marquee-actions .marquee-chip{display:none;}
  .arcade-game .marquee-nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(72px,1fr));
    gap:6px;
  }
  .arcade-game .marquee-nav-button{
    width:100%;
    min-width:0;
    min-height:44px;
    padding:0 6px;
    font-size:var(--fs-micro);
    letter-spacing:.4px;
  }
  .game-bar{padding:6px 8px;gap:8px;}
  .game-bar .marquee-chip{display:grid;min-height:26px;padding:0 8px;}
  .game-bar-actions{gap:6px;flex:1;justify-content:flex-end;}
  .bar-button{min-height:44px;padding:0 10px;letter-spacing:.4px;}
  .bar-button--sound{min-width:60px;}
  .marquee-title{font-size:26px;text-shadow:2px 2px 0 rgba(244,90,160,.44),-2px -1px 0 rgba(56,214,232,.28);}
  .marquee-chip{min-width:64px;min-height:26px;font-size:var(--fs-micro);}
  .screen-wrap,.screen{min-height:0;overflow:hidden;}
  .screen-wrap{padding:6px;}
  .screen{border-width:7px;border-radius:12px;}
  .arcade-home .screen-menu{height:100%;padding:18px 14px 20px;gap:16px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;}
  .arcade-home .welcome-copy{gap:6px;}
  .arcade-home .welcome-copy p{font-size:10px;letter-spacing:1.25px;}
  .arcade-home .welcome-copy h1{font-size:38px;line-height:.86;max-width:8ch;}
  .arcade-home .game-links{display:grid;grid-template-columns:1fr;gap:10px;overflow:visible;padding:0;}
  .arcade-home .game-card{width:100%;min-height:116px;gap:8px;padding:12px;}
  .arcade-home .game-card:first-child{min-height:154px;}
  .game-card::before{animation:none;opacity:.14;}
  .game-card:nth-child(2n)::after,.game-card:nth-child(3n)::after{transform:scale(.68) rotate(12deg);right:8px;bottom:8px;}
  .game-card strong{font-size:28px;max-width:12ch;}
  .game-card em{font-size:10px;line-height:1.3;max-width:24ch;}
  .hud-tile{min-height:42px;padding:7px 8px;}
  .hud-tile,
  .best-ribbon,
  .arcade-toast{
    backdrop-filter:none;
  }
  .arcade-toast{
    bottom:calc(118px + env(safe-area-inset-bottom));
    max-width:calc(100vw - 28px);
    min-height:34px;
    padding:0 12px;
    font-size:10px;
    white-space:nowrap;
  }
  .hud-tile strong{font-size:16px;}
  .game-hud{left:8px;right:8px;top:8px;gap:6px;}
  .touch-pad{grid-template-columns:repeat(3,44px);}
  .arcade-button,.coin-button,.ghost-button{min-width:72px;padding:0 10px;}
  .control-deck{
    padding:8px max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    gap:6px;
    min-height:0;
  }
  .control-deck::after{display:none;}
  .control-deck a,.control-deck button{
    width:100%;
    min-width:0;
    min-height:44px;
    padding:0 7px;
    font-size:10px;
    letter-spacing:.8px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .deck-left,.deck-center,.deck-right{gap:6px;min-width:0;}
  .control-deck--home{grid-template-columns:1fr;}
  .control-deck--home .deck-left{display:none;}
  .control-deck--home .deck-center,.control-deck--home .deck-right{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;}
  .control-deck--home .deck-right{grid-template-columns:1fr;}
  .control-deck--home .deck-center .arcade-button,.control-deck--home .deck-center .coin-button{width:100%;min-height:54px;}
  .arcade-game .control-deck{grid-template-columns:minmax(0,.82fr) minmax(0,1.28fr) minmax(0,.9fr);align-items:stretch;}
  .arcade-game .deck-left,.arcade-game .deck-center,.arcade-game .deck-right{justify-content:stretch;flex-wrap:nowrap;min-width:0;}
  .arcade-game .deck-center{gap:4px;}
  .arcade-game .deck-left > *,.arcade-game .deck-center > *,.arcade-game .deck-right > *{flex:1 1 0;}
  .arcade-game .control-deck:not(.control-deck--pad):not(.control-deck--embed):not(.control-deck--play){
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"center center" "left right";
  }
  .arcade-game .control-deck:not(.control-deck--pad):not(.control-deck--embed):not(.control-deck--play) .deck-left{grid-area:left;display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));width:100%;}
  .arcade-game .control-deck:not(.control-deck--pad):not(.control-deck--embed):not(.control-deck--play) .deck-center{grid-area:center;display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));width:100%;}
  .arcade-game .control-deck:not(.control-deck--pad):not(.control-deck--embed):not(.control-deck--play) .deck-right{grid-area:right;display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));width:100%;}
  .arcade-game .control-deck--play{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .arcade-game .control-deck--play .deck-center{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(76px,1fr));
    width:100%;
    gap:6px;
  }
  body[data-game="terp-toss"] .game-hud{grid-template-columns:repeat(4,minmax(0,1fr));}
  body[data-game="terp-toss"] .hud-tile{min-height:36px;padding:6px;}
  body[data-game="terp-toss"] .hud-tile strong{font-size:13px;margin-top:4px;}
  .arcade-game canvas{height:100%;min-height:0;}
  .arcade-embed-page .screen-embed{height:100%;}
  .arcade-embed-page .control-deck--embed{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(0,.8fr);}
  .control-deck--pad{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"pad pad" "left right";
    align-items:center;
  }
  .control-deck--pad .deck-left{grid-area:left;display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));width:100%;}
  .control-deck--pad .deck-center{grid-area:pad;justify-content:center;width:100%;}
  .control-deck--pad .deck-right{grid-area:right;display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));width:100%;}
  .control-deck--pad .touch-pad{width:142px;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px;}
  .control-deck--pad .pad-btn{min-height:44px;}
  canvas{min-height:0;}
  .overlay-card{padding:18px;}
  .overlay-card h2{font-size:36px;}
  .best-ribbon{right:8px;bottom:8px;min-height:28px;font-size:var(--fs-micro);}
}
@media(min-width:360px) and (max-width:560px){
  .arcade-home .game-links{grid-template-columns:repeat(2,minmax(0,1fr));}
  .arcade-home .game-card{min-height:126px;}
}
@media(max-height:650px){
  .cabinet{min-height:calc(100dvh - 20px);}
  .arcade-home .game-card{min-height:118px;}
  .screen-menu{padding-top:18px;}
  .welcome-copy h1{font-size:44px;}
}
@media(max-width:560px) and (max-height:790px){
  .marquee{padding:6px 8px;}
  .marquee-title{font-size:23px;}
  .screen-wrap{padding:5px;}
  .arcade-home .screen-menu{padding:12px 12px 14px;gap:12px;}
  .arcade-home .welcome-copy p{font-size:var(--fs-micro);letter-spacing:1px;}
  .arcade-home .welcome-copy h1{font-size:32px;max-width:8ch;}
  .arcade-home .game-links{gap:8px;}
  .arcade-home .game-card{min-height:104px;padding:10px;}
  .arcade-home .game-card:first-child{min-height:126px;}
  .game-card strong{font-size:22px;}
  .game-card em{font-size:var(--fs-micro);line-height:1.28;letter-spacing:.65px;}
  .game-card span{min-height:22px;font-size:var(--fs-micro);}
  .control-deck--home .deck-center .arcade-button,.control-deck--home .deck-center .coin-button{min-height:48px;}
}
@media(max-width:420px){
  .marquee-title{font-size:22px;}
  .brand-dot{width:18px;height:18px;}
  .marquee-chip{display:none;}
  .screen{border-width:6px;border-radius:10px;}
  .game-hud{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hud-tile{min-height:38px;}
  .hud-tile span{font-size:var(--fs-micro);}
  .hud-tile strong{font-size:14px;margin-top:5px;}
  .stick,.deck-light{display:none;}
  .game-card strong{font-size:24px;}
  .arcade-home .game-card{min-height:108px;}
  .arcade-home .game-card:first-child{min-height:144px;}
}
@media(max-width:380px){
  .arcade-button,.coin-button,.ghost-button{min-width:66px;font-size:10px;}
  .welcome-copy h1{font-size:34px;}
  .game-card strong{font-size:22px;}
}

.arcade-home{
  background:#000;
}
.arcade-home::before{display:none;}
.arcade-home .page-shell{
  min-height:100dvh;
  height:100dvh;
  padding:10px;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 8%,rgba(244,240,223,.08),transparent 26%),
    linear-gradient(90deg,transparent 0 4%,rgba(255,255,255,.045) 4.4% 4.8%,transparent 5.2% 94.8%,rgba(255,255,255,.045) 95.2% 95.6%,transparent 96%),
    #000;
}
.arcade-home .cabinet{
  width:min(430px,calc(100vw - 18px));
  height:min(900px,calc(100dvh - 18px));
  min-height:0;
  border:2px solid rgba(203,202,190,.36);
  border-radius:40px;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:
    radial-gradient(circle at 18% 12%,rgba(240,173,69,.18),transparent 30%),
    radial-gradient(circle at 84% 24%,rgba(143,199,75,.12),transparent 34%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.028) 0 1px,transparent 1px 8px),
    linear-gradient(180deg,#1b1b13,#0d100b 38%,#080906);
  box-shadow:
    0 0 0 5px rgba(16,17,16,.92),
    0 0 0 8px rgba(106,112,104,.28),
    0 30px 80px rgba(0,0,0,.86),
    inset 0 0 0 7px rgba(0,0,0,.55),
    inset 0 0 42px rgba(240,173,69,.1);
}
.arcade-home .cabinet::before{
  content:"";
  position:absolute;
  left:50%;
  top:9px;
  width:132px;
  height:29px;
  transform:translateX(-50%);
  border-radius:0 0 18px 18px;
  background:#000;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.16),0 4px 14px rgba(0,0,0,.55);
  opacity:1;
  filter:none;
  z-index:6;
}
.arcade-home .cabinet::after{
  content:"";
  position:absolute;
  inset:12px;
  border:1px solid rgba(244,240,223,.16);
  border-radius:31px;
  pointer-events:none;
  background:
    radial-gradient(circle at 10px 10px,#1a1a13 0 3px,#877c52 4px 5px,transparent 6px),
    radial-gradient(circle at calc(100% - 10px) 10px,#1a1a13 0 3px,#877c52 4px 5px,transparent 6px),
    radial-gradient(circle at 10px calc(100% - 10px),#1a1a13 0 3px,#877c52 4px 5px,transparent 6px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px),#1a1a13 0 3px,#877c52 4px 5px,transparent 6px);
  opacity:.9;
  z-index:1;
}
.arcade-home .marquee{
  min-height:79px;
  grid-template-columns:auto 1fr auto;
  padding:30px 25px 12px;
  gap:12px;
  border-bottom:1px solid rgba(240,173,69,.22);
  background:
    linear-gradient(180deg,rgba(240,173,69,.08),rgba(0,0,0,.16)),
    rgba(6,8,5,.18);
}
.arcade-home .marquee-title{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}
.arcade-home .brand-mark{
  min-width:0;
  min-height:44px;
  color:var(--lime2);
}
.arcade-home .brand-mark span:last-child{
  display:inline!important;
  font-size:11px;
  letter-spacing:2.8px;
}
.arcade-home .brand-dot{
  width:24px;
  height:24px;
}
.arcade-home .marquee-chip{
  display:grid!important;
  min-width:82px;
  min-height:34px;
  border-color:rgba(240,173,69,.34);
  color:#ffc558;
  background:rgba(0,0,0,.32);
  box-shadow:inset 0 0 16px rgba(240,173,69,.06);
}
.arcade-home .screen-wrap{
  padding:0 26px 10px;
}
.arcade-home .screen{
  border:0;
  border-radius:11px;
  background:#090d08;
  box-shadow:none;
}
.arcade-home .screen::after{
  background:
    repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),
    radial-gradient(circle at 50% 15%,transparent 0 44%,rgba(0,0,0,.45));
  opacity:.72;
}
.arcade-home .screen-menu{
  display:grid;
  grid-template-columns:1fr;
  grid-template-areas:none;
  grid-template-rows:auto minmax(0,1fr);
  gap:14px;
  min-height:0;
  padding:14px 0 0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:rgba(181,223,110,.44) transparent;
  background:
    radial-gradient(circle at 50% 14%,rgba(143,199,75,.14),transparent 34%),
    linear-gradient(180deg,#0f150e,#080a06 72%);
}
.arcade-home .welcome-copy{
  grid-area:auto;
  max-width:none;
  margin:0 14px;
  padding:12px 13px 10px;
  gap:7px;
  text-align:center;
  border:1px solid rgba(244,90,160,.24);
  border-radius:8px;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 5px),
    linear-gradient(180deg,rgba(143,199,75,.1),rgba(0,0,0,.16));
  box-shadow:inset 0 0 22px rgba(143,199,75,.08);
}
.arcade-home .welcome-copy h1{
  max-width:none;
  font:700 clamp(58px,16vw,74px)/.82 "Fraunces",Georgia,serif;
  color:#f4f0df;
  text-shadow:3px 3px 0 rgba(244,90,160,.52),-3px -2px 0 rgba(56,214,232,.26);
}
.arcade-home .welcome-copy h1 span{
  display:block;
  color:var(--lime);
  font-size:clamp(27px,8vw,38px);
  line-height:.92;
  text-shadow:1px 1px 0 rgba(0,0,0,.65);
}
.arcade-home .welcome-copy p{
  order:2;
  color:var(--lime2);
  font-size:10px;
  letter-spacing:1.8px;
}
.arcade-home .game-links{
  grid-area:auto;
  display:grid;
  grid-template-columns:1fr!important;
  gap:7px;
  padding:0 14px 14px;
  align-content:start;
}
.arcade-home .game-section-label{
  margin:2px 5px 3px;
  font:900 10px/1 "JetBrains Mono",monospace;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:rgba(244,90,160,.74);
}
.arcade-home .game-card{
  width:100%;
  min-height:86px;
  border-color:rgba(244,240,223,.18);
  border-radius:7px;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 5px),
    linear-gradient(135deg,color-mix(in srgb,var(--card-accent,#8fc74b) 14%,transparent),transparent 54%),
    rgba(5,8,4,.72);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 10px 18px rgba(0,0,0,.22);
}
.arcade-home .game-card.bonus{
  border-color:rgba(56,214,232,.28);
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 5px),
    linear-gradient(135deg,rgba(56,214,232,.13),transparent 52%),
    rgba(4,8,8,.74);
}
.arcade-home .game-card::before{
  inset:9px;
  opacity:.15;
}
.arcade-home .game-card::after,
.arcade-home .game-card:nth-child(2n)::after,
.arcade-home .game-card:nth-child(3n)::after{
  display:none;
}
.arcade-home .game-kicker{
  width:max-content;
  min-height:21px;
  padding:0 7px;
  border-color:rgba(181,223,110,.28);
  border-radius:5px;
  background:rgba(0,0,0,.33);
  font-size:var(--fs-micro);
  letter-spacing:.9px;
  color:var(--lime2);
}
.arcade-home .featured-game{
  min-height:260px;
  display:grid;
  align-content:start;
  gap:0;
  padding:16px 124px 18px 16px;
  align-content:start;
  border-color:rgba(240,173,69,.82);
  box-shadow:
    inset 0 0 0 1px rgba(255,207,74,.18),
    0 0 22px rgba(240,173,69,.16),
    0 14px 26px rgba(0,0,0,.28);
}
.arcade-home .featured-game strong{
  margin-top:18px;
  font-size:clamp(27px,8vw,32px);
  line-height:.95;
}
.arcade-home .featured-game em{
  max-width:21ch;
  margin-top:10px;
  font-size:11px;
  line-height:1.28;
}
.arcade-home .play-cta{
  width:max-content;
  min-height:42px;
  margin-top:12px;
  position:relative;
  left:auto;
  bottom:auto;
  display:inline-flex;
  align-items:center;
  gap:15px;
  border:1px solid rgba(181,223,110,.38);
  border-radius:5px;
  background:rgba(143,199,75,.1);
  padding:0 15px;
  color:var(--lime2);
  font:900 11px/1 "JetBrains Mono",monospace;
  letter-spacing:1px;
  text-transform:uppercase;
}
.arcade-home .play-cta b{
  font-size:21px;
  line-height:1;
}
.arcade-home .game-meta{
  width:max-content;
  min-height:20px;
  border-color:color-mix(in srgb,var(--card-accent,#8fc74b) 52%,rgba(244,240,223,.2));
  color:var(--amber);
  background:rgba(0,0,0,.34);
  font-size:var(--fs-micro);
  letter-spacing:.85px;
}
.arcade-home .featured-game .game-meta{
  margin-top:9px;
}
.arcade-home .game-row{
  min-height:142px;
  display:grid;
  grid-template-columns:62px minmax(0,1fr) 20px;
  grid-template-rows:auto auto auto auto;
  column-gap:10px;
  row-gap:5px;
  align-items:start;
  padding:12px 10px;
}
.arcade-home .game-row .game-kicker{
  grid-column:2;
  grid-row:1;
}
.arcade-home .game-row strong{
  grid-column:2;
  grid-row:2;
  font-size:clamp(19px,5.6vw,22px);
  line-height:.96;
  max-width:100%;
}
.arcade-home .game-row em{
  grid-column:2;
  grid-row:3;
  max-width:24ch;
  font-size:var(--fs-micro);
  line-height:1.32;
}
.arcade-home .game-row .game-meta{
  grid-column:2;
  grid-row:4;
  align-self:start;
  min-height:22px;
  padding:0 7px;
  font-size:var(--fs-micro);
  letter-spacing:.5px;
}
.arcade-home .row-arrow{
  grid-column:3;
  grid-row:1 / 5;
  align-self:center;
  justify-self:center;
  color:var(--lime2);
  font:900 35px/1 "Inter",sans-serif;
}
.arcade-home .pixel-icon{
  position:relative;
  z-index:2;
  display:block;
  color:var(--lime2);
  filter:drop-shadow(0 0 5px rgba(181,223,110,.35));
}
.arcade-home .featured-game .pixel-icon{
  position:absolute;
  right:19px;
  top:27px;
  width:112px;
  height:128px;
}
.arcade-home .game-row .pixel-icon{
  grid-column:1;
  grid-row:1 / 5;
  width:52px;
  height:52px;
  align-self:center;
  justify-self:center;
}
.arcade-home .pixel-icon::before,
.arcade-home .pixel-icon::after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}
.arcade-home .pixel-terp-toss::before{
  left:30px;
  bottom:6px;
  width:50px;
  height:70px;
  border:5px solid currentColor;
  border-top-width:10px;
  box-shadow:inset 0 0 0 9px rgba(181,223,110,.08);
}
.arcade-home .pixel-terp-toss::after{
  right:15px;
  top:5px;
  width:7px;
  height:7px;
  background:currentColor;
  box-shadow:-10px 12px 0 currentColor,-20px 24px 0 currentColor,-30px 36px 0 currentColor,-42px 50px 0 currentColor,-38px 76px 0 5px currentColor;
}
.arcade-home .game-row .pixel-terp-toss::before{
  left:19px;
  bottom:4px;
  width:25px;
  height:36px;
  border-width:3px;
  border-top-width:6px;
  box-shadow:inset 0 0 0 4px rgba(181,223,110,.08);
}
.arcade-home .game-row .pixel-terp-toss::after{
  right:10px;
  top:5px;
  width:4px;
  height:4px;
  box-shadow:-7px 8px 0 currentColor,-14px 16px 0 currentColor,-21px 24px 0 currentColor,-29px 32px 0 currentColor;
}
.arcade-home .pixel-joint-catcher::before,
.arcade-home .pixel-joint-catcher::after{
  inset:12px 8px;
  border:4px solid currentColor;
  border-radius:2px 2px 11px 11px;
}
.arcade-home .pixel-joint-catcher::after{
  inset:7px 13px auto;
  height:13px;
  border-bottom:0;
}
.arcade-home .pixel-nug-sorter::before{
  inset:11px;
  border:5px solid currentColor;
  clip-path:polygon(50% 0,64% 30%,98% 22%,73% 50%,98% 78%,62% 69%,50% 100%,38% 69%,2% 78%,27% 50%,2% 22%,36% 30%);
}
.arcade-home .pixel-smoke-ring-rhythm::before{
  inset:10px;
  border:7px solid currentColor;
  border-radius:50%;
  box-shadow:inset 0 0 0 7px rgba(181,223,110,.12);
}
.arcade-home .pixel-blend-lab::before{
  left:16px;
  right:16px;
  bottom:7px;
  height:42px;
  border:5px solid currentColor;
  border-top:0;
  transform:skewX(-10deg);
}
.arcade-home .pixel-blend-lab::after{
  top:7px;
  left:23px;
  width:26px;
  height:29px;
  border-left:5px solid currentColor;
  border-right:5px solid currentColor;
}
.arcade-home .pixel-rolling-relay::before{
  left:11px;
  top:17px;
  width:40px;
  height:22px;
  border:5px solid currentColor;
  border-radius:12px;
}
.arcade-home .pixel-rolling-relay::after{
  right:8px;
  bottom:13px;
  width:31px;
  height:31px;
  border:5px solid currentColor;
  border-radius:50%;
}
.arcade-home .pixel-runner::before{
  left:19px;
  top:12px;
  width:20px;
  height:20px;
  background:currentColor;
  box-shadow:16px 20px 0 currentColor,-4px 39px 0 currentColor,29px 45px 0 currentColor;
}
.arcade-home .pixel-runner::after{
  left:21px;
  top:29px;
  width:29px;
  height:20px;
  border:5px solid currentColor;
  border-left:0;
  border-bottom:0;
  transform:skewX(-18deg);
}
.arcade-home .control-deck{
  min-height:151px;
  grid-template-columns:1fr;
  gap:8px;
  padding:42px 26px 16px;
  border-top:1px solid rgba(240,173,69,.28);
  background:
    radial-gradient(circle at 50% 22%,rgba(181,223,110,.2),transparent 11%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 8px),
    linear-gradient(180deg,#242217,#11110c);
}
.arcade-home .control-deck::before{
  content:"";
  position:absolute;
  left:50%;
  top:7px;
  width:58px;
  height:58px;
  transform:translateX(-50%);
  border-radius:50%;
  border:1px solid rgba(244,240,223,.18);
  background:radial-gradient(circle,#060706 0 31%,#1b1b16 32% 49%,#050605 50%);
  box-shadow:inset 0 0 16px rgba(0,0,0,.8),0 6px 14px rgba(0,0,0,.35);
}
.arcade-home .control-deck::after{
  content:"";
  display:block;
  position:absolute;
  left:50%;
  top:0;
  width:28px;
  height:48px;
  transform:translateX(-50%);
  border-radius:14px;
  background:linear-gradient(180deg,#455533,#1b2018);
  box-shadow:0 0 0 1px rgba(0,0,0,.7);
}
.arcade-home .deck-left{
  position:absolute;
  left:50%;
  top:0;
  width:116px;
  height:66px;
  transform:translateX(-50%);
  justify-content:center;
  display:flex!important;
  z-index:4;
  pointer-events:none;
}
.arcade-home .deck-left .stick{
  display:block!important;
  width:50px;
  height:50px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.arcade-home .deck-left .stick::before{
  display:none;
}
.arcade-home .deck-left .stick::after{
  top:1px;
  width:29px;
  height:29px;
  background:radial-gradient(circle at 36% 28%,#d9f88a,var(--lime) 57%,#41591f);
  box-shadow:0 6px 10px rgba(0,0,0,.5);
}
.arcade-home .deck-left .deck-light{
  display:block!important;
  position:absolute;
  right:12px;
  top:29px;
  width:17px;
  height:17px;
  background:radial-gradient(circle at 35% 28%,#ffc5ab,var(--red) 60%,#6c201c);
}
.arcade-home .deck-center{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  width:100%;
}
.arcade-home .deck-right{
  display:grid;
  grid-template-columns:1fr;
  width:100%;
}
.arcade-home .coin-button,
.arcade-home .arcade-button,
.arcade-home .ghost-button{
  min-height:55px;
  border-radius:7px;
  font-size:11px;
  letter-spacing:1.8px;
}
.arcade-home .coin-button{
  background:linear-gradient(180deg,#ffd06b,#efad42);
  box-shadow:0 7px 0 #6f4713,0 15px 22px rgba(0,0,0,.34);
}
.arcade-home .arcade-button{
  background:linear-gradient(180deg,#bdf077,#89bd43);
  box-shadow:0 7px 0 #344b1d,0 15px 22px rgba(0,0,0,.34);
}
.arcade-home .ghost-button{
  min-height:47px;
  color:var(--ink);
  background:rgba(244,240,223,.05);
  border-color:rgba(244,240,223,.22);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.42);
}
@media(max-width:430px){
  .arcade-home .page-shell{
    padding:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));
    background:#000;
  }
  .arcade-home .cabinet{
    width:100%;
    height:100%;
    border-radius:32px;
    border-width:2px;
    box-shadow:
      0 0 0 4px rgba(16,17,16,.92),
      0 0 0 7px rgba(106,112,104,.24),
      0 18px 48px rgba(0,0,0,.78),
      inset 0 0 0 6px rgba(0,0,0,.55);
  }
  .arcade-home .cabinet::before{top:7px;}
  .arcade-home .cabinet::after{inset:9px;border-radius:24px;}
  .arcade-home .marquee{padding:28px 24px 10px;}
  .arcade-home .screen-wrap{padding:0 23px 9px;}
  .arcade-home .featured-game{min-height:260px;padding-right:104px;padding-bottom:18px;}
  .arcade-home .featured-game .pixel-icon{right:8px;transform:scale(.76);transform-origin:right center;}
}
@media(max-height:760px){
  .arcade-home .marquee{min-height:68px;padding-top:24px;}
  .arcade-home .welcome-copy{padding:10px 12px 8px;}
  .arcade-home .welcome-copy h1{font-size:clamp(49px,14vw,62px);}
  .arcade-home .welcome-copy h1 span{font-size:clamp(24px,7vw,32px);}
  .arcade-home .featured-game{min-height:220px;padding-top:13px;padding-bottom:16px;}
  .arcade-home .featured-game strong{margin-top:12px;font-size:27px;}
  .arcade-home .featured-game em{margin-top:7px;font-size:var(--fs-micro);line-height:1.18;}
  .arcade-home .play-cta{min-height:34px;bottom:auto;padding:0 12px;font-size:10px;}
  .arcade-home .game-row{min-height:140px;}
  .arcade-home .control-deck{min-height:120px;padding-top:31px;padding-bottom:13px;}
  .arcade-home .control-deck::before{top:4px;width:52px;height:52px;}
  .arcade-home .control-deck::after{height:40px;}
  .arcade-home .deck-left{height:58px;}
  .arcade-home .coin-button,
  .arcade-home .arcade-button{min-height:46px;}
  .arcade-home .ghost-button{min-height:44px;}
}
@media(max-height:700px){
  .arcade-home .marquee{min-height:58px;padding-top:20px;padding-bottom:8px;}
  .arcade-home .brand-dot{width:20px;height:20px;}
  .arcade-home .marquee-chip{min-height:30px;min-width:74px;}
  .arcade-home .screen-wrap{padding-bottom:7px;}
  .arcade-home .welcome-copy{padding:8px 11px 7px;}
  .arcade-home .welcome-copy h1{font-size:clamp(43px,13vw,54px);}
  .arcade-home .welcome-copy h1 span{font-size:clamp(21px,6.4vw,28px);}
  .arcade-home .featured-game{min-height:210px;padding-top:12px;padding-right:100px;padding-bottom:14px;}
  .arcade-home .featured-game strong{margin-top:9px;font-size:25px;}
  .arcade-home .featured-game em{font-size:var(--fs-micro);line-height:1.18;}
  .arcade-home .featured-game .pixel-icon{transform:scale(.68);transform-origin:right top;}
  .arcade-home .game-row{min-height:138px;grid-template-columns:52px minmax(0,1fr) 17px;}
  .arcade-home .game-row .pixel-icon{width:44px;height:44px;}
  .arcade-home .game-row strong{font-size:19px;}
  .arcade-home .game-row em{font-size:var(--fs-micro);line-height:1.24;}
  .arcade-home .control-deck{min-height:106px;padding-top:27px;padding-bottom:10px;}
  .arcade-home .control-deck::before{width:46px;height:46px;}
  .arcade-home .control-deck::after{height:35px;}
  .arcade-home .deck-center{gap:12px;}
  .arcade-home .coin-button,
  .arcade-home .arcade-button{min-height:44px;}
  .arcade-home .ghost-button{min-height:44px;}
}
@media(max-width:360px){
  .arcade-home .screen-wrap{padding-left:18px;padding-right:18px;}
  .arcade-home .featured-game{padding-right:88px;}
  .arcade-home .featured-game .pixel-icon{right:3px;transform:scale(.66);transform-origin:right top;}
  .arcade-home .game-row{grid-template-columns:48px minmax(0,1fr) 16px;column-gap:8px;}
}
@media(max-width:360px) and (max-height:620px){
  .arcade-home .welcome-copy{padding:7px 10px 6px;gap:4px;}
  .arcade-home .welcome-copy h1{font-size:clamp(38px,12vw,48px);}
  .arcade-home .welcome-copy h1 span{font-size:clamp(19px,6vw,25px);}
  .arcade-home .featured-game{min-height:216px;padding:10px 78px 14px 12px;}
  .arcade-home .featured-game strong{margin-top:6px;font-size:23px;}
  .arcade-home .featured-game em{margin-top:6px;font-size:var(--fs-micro);line-height:1.12;max-width:18ch;}
  .arcade-home .play-cta{min-height:31px;margin-top:7px;padding:0 10px;font-size:var(--fs-micro);}
  .arcade-home .game-row{min-height:138px;padding-top:11px;padding-bottom:11px;row-gap:5px;}
}
@media(max-width:430px){
  .arcade-home .screen-wrap{
    padding-inline:clamp(12px,4vw,18px);
  }
  .arcade-home .screen-menu{
    scroll-padding-block:14px 20px;
  }
  .arcade-home .game-links{
    min-width:0;
    padding-inline:clamp(10px,3vw,14px);
    padding-bottom:20px;
  }
  .arcade-home .game-card{
    min-width:0;
    height:auto;
    align-content:start;
    scroll-snap-align:start;
  }
  .arcade-home .game-row{
    min-height:164px;
    grid-template-columns:clamp(40px,12vw,52px) minmax(0,1fr);
    grid-template-rows:auto auto auto auto;
    column-gap:8px;
    row-gap:6px;
    padding:12px 10px;
  }
  .arcade-home .row-arrow{
    display:none;
  }
  .arcade-home .game-row .pixel-icon{
    width:clamp(40px,12vw,48px);
    height:clamp(40px,12vw,48px);
  }
  .arcade-home .game-row .game-kicker,
  .arcade-home .game-row strong,
  .arcade-home .game-row em,
  .arcade-home .game-row .game-meta{
    grid-column:2;
    min-width:0;
    max-width:100%;
    overflow-wrap:break-word;
  }
  .arcade-home .game-row strong{
    font-size:clamp(20px,6.4vw,24px);
    line-height:.98;
  }
  .arcade-home .game-row em{
    font-size:var(--fs-micro);
    line-height:1.34;
  }
}
@media(max-width:360px) and (max-height:620px){
  .arcade-home .game-row{
    min-height:166px;
    padding-top:12px;
    padding-bottom:12px;
  }
  .arcade-home .featured-game{
    min-height:196px;
    padding:9px 72px 12px 12px;
  }
  .arcade-home .featured-game strong{
    margin-top:5px;
    font-size:22px;
  }
  .arcade-home .featured-game em{
    margin-top:5px;
    max-width:17ch;
    line-height:1.16;
  }
  .arcade-home .control-deck{
    min-height:98px;
    padding-top:23px;
  }
  .arcade-home .control-deck::before{
    width:42px;
    height:42px;
  }
  .arcade-home .control-deck::after{
    height:32px;
  }
  .arcade-home .game-row strong{
    font-size:20px;
  }
  .arcade-home .game-row em{
    font-size:var(--fs-micro);
    line-height:1.34;
  }
}
/* ---- shared result overlay: the stamp-earned moment ---- */
.overlay-result{
  display:grid;
  justify-items:center;
  gap:10px;
  margin-top:14px;
}
.overlay-result[hidden]{display:none;}
.overlay-score{
  font:700 46px/1 "Fraunces",Georgia,serif;
  color:var(--ink);
  letter-spacing:1px;
}
.overlay-seal{
  font:900 11px/1 "JetBrains Mono",monospace;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--go);
  border:2.5px solid var(--go);
  border-radius:99px;
  padding:9px 16px;
  transform:rotate(-8deg);
  background:rgba(181,223,110,.1);
  box-shadow:0 0 24px rgba(181,223,110,.22);
}
.overlay-seal[hidden]{display:none;}
.overlay-seal.punch{animation:seal-punch .5s cubic-bezier(.34,1.56,.64,1) both;}
@keyframes seal-punch{
  from{transform:rotate(-16deg) scale(1.7);opacity:0;}
  60%{transform:rotate(-7deg) scale(.94);opacity:1;}
  to{transform:rotate(-8deg) scale(1);}
}
.overlay-best{
  font:900 var(--fs-micro)/1 "JetBrains Mono",monospace;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--coin);
  border:1px solid rgba(240,173,69,.55);
  border-radius:99px;
  padding:6px 12px;
  background:rgba(240,173,69,.1);
}
.overlay-best[hidden]{display:none;}
.overlay-dots{display:flex;gap:8px;padding:2px 0;}
.overlay-dots i{
  width:12px;
  height:12px;
  border-radius:50%;
  border:2px solid var(--line-strong);
  background:transparent;
}
.overlay-dots i.on{
  background:var(--go);
  border-color:var(--go);
  box-shadow:0 0 12px rgba(181,223,110,.55);
}
.overlay-next[hidden]{display:none;}
/* entrance animations stay opacity-only so touch targets and layout keep stable geometry */
.game-overlay .overlay-card{animation:overlay-pop .2s ease both;}
@keyframes overlay-pop{
  from{opacity:0;}
  to{opacity:1;}
}
.arcade-home .game-card,.arcade-home .game-section-label{
  animation:card-in .34s ease both;
  animation-delay:calc(var(--i,0)*45ms);
}
@keyframes card-in{
  from{opacity:0;}
  to{opacity:1;}
}

/*
 * v3.6 phone chrome collapse (max-width 600px): the game-page marquee slims
 * to one row with a truly centered title, the nav folds into a hamburger
 * dropdown (#navToggle, mounted by arcade-shared.js), the control strip
 * tightens, and the HUD joins the flow above the canvas so nothing overlaps
 * the playfield. The closed dropdown hides via visibility (not display) so
 * its links keep real geometry for layout smoke checks. Desktop, tablet,
 * landscape cabinet mode, and the hub .arcade-home marquee are untouched.
 */
@media(max-width:600px){
  body.arcade-game .marquee{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    min-height:52px;
    padding:4px 10px;
    z-index:6;
  }
  body.arcade-game .brand-mark{min-width:44px;min-height:44px;gap:0;}
  body.arcade-game .brand-mark span:last-child{display:none;}
  body.arcade-game .brand-dot{width:22px;height:22px;}
  body.arcade-game .marquee-title{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    max-width:calc(100% - 124px);
    font-size:21px;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }
  body.arcade-game .marquee-actions{
    width:auto;
    flex:none;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
  }
  body.arcade-game .marquee-actions .marquee-chip{display:none;}
  body.arcade-game .marquee-nav-toggle{display:inline-flex;}
  body.arcade-game .marquee-nav{
    position:absolute;
    top:calc(100% + 4px);
    right:6px;
    width:min(230px,calc(100vw - 12px));
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    padding:8px;
    border:1px solid rgba(181,223,110,.34);
    border-radius:10px;
    background:rgba(6,8,5,.97);
    box-shadow:0 18px 44px rgba(0,0,0,.55);
    z-index:7;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
  }
  body.arcade-game .marquee-nav.open{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }
  body.arcade-game .marquee-nav .marquee-nav-button{
    width:100%;
    min-width:0;
    min-height:44px;
    padding:0 12px;
    font-size:var(--fs-micro);
    letter-spacing:.6px;
  }
  body.arcade-game .game-bar{min-height:40px;padding:2px 8px;gap:6px;}
  body.arcade-game .game-bar .marquee-chip{min-height:24px;padding:0 8px;font-size:var(--fs-micro);}
  body.arcade-game .bar-button{min-height:44px;padding:0 10px;font-size:var(--fs-micro);letter-spacing:.4px;}
  body.arcade-game .bar-button--sound{min-width:56px;}
  body.arcade-game:not(.arcade-embed-page):not(.arcade-content) .screen{grid-template-rows:auto minmax(0,1fr);}
  body.arcade-game .game-hud{
    position:static;
    order:-1;
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);
    gap:4px;
    min-height:32px;
    padding:3px 5px 2px;
    align-items:stretch;
  }
  body.arcade-game .hud-tile{
    min-height:32px;
    padding:3px 6px;
    border-radius:6px;
  }
  body.arcade-game .hud-tile span{
    font-size:9px;
    letter-spacing:.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.arcade-game .hud-tile strong{margin-top:2px;font-size:12px;}
  body.arcade-game .best-ribbon{display:none;}
  body.arcade-game canvas{height:100%;min-height:0;}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
