.cabinet-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body .coin-entry { --coin-gold: #efb93f; --coin-highlight: #ffe7a1; --coin-shadow: #855018; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 32px; }
body .coin-callout { margin: 0; color: var(--cream); font: 14px/1.6 var(--pixel); letter-spacing: 2px; }
.coin-hardware { display: flex; align-items: center; justify-content: center; gap: 24px; }
.coin-direction { color: var(--cream60); font: 24px/1 var(--mono); }
body .coin-entry[hidden], body #lobby-controls[hidden] { display: none; }
body #coin-slot { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 88px; padding: 0; border: 2px solid var(--steel); border-radius: 5px; background: linear-gradient(150deg, var(--steel), var(--ink) 48%); color: var(--cream); box-shadow: inset 0 1px 0 var(--cream60), 0 3px 0 var(--ink) !important; cursor: pointer; }
#coin-slot::before, #coin-slot::after { content: ''; position: absolute; width: 3px; height: 3px; background: var(--cream60); box-shadow: 1px 1px 0 var(--ink); }
#coin-slot::before { top: 7px; left: 7px; }
#coin-slot::after { right: 7px; bottom: 7px; }
.slot-mouth { display: block; width: 9px; height: 62px; border: 2px solid var(--steel); border-left-color: var(--ink); border-right-color: var(--cream60); background: var(--ink); }
body #coin-slot:is(.coin-over, :focus-visible), .coin-selected #coin-slot { border-color: var(--lav); }
#coin-slot.coin-over .slot-mouth, .coin-selected .slot-mouth { border-bottom-color: var(--lav); }
.coin-rest { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; }
body #insert-coin { --coin-x: 0px; --coin-y: 0px; position: relative; z-index: 6; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--lav); cursor: grab; touch-action: none; user-select: none; transform: translate(var(--coin-x), var(--coin-y)); transition: transform .25s ease-out; -webkit-user-select: none; }
.coin-token { position: relative; display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border: 3px solid var(--coin-highlight); border-radius: 50%; background: linear-gradient(135deg, var(--coin-highlight), var(--coin-gold) 42%, var(--coin-shadow)); color: var(--coin-shadow); box-shadow: 0 4px 0 var(--coin-shadow), 0 5px 0 var(--coin-gold), inset 0 0 0 2px var(--coin-shadow), inset 0 0 0 4px var(--coin-gold) !important; }
#coin-face { display: block; width: 39px; height: 30px; image-rendering: pixelated; filter: drop-shadow(0 1px 0 var(--coin-highlight)); }
body #insert-coin:focus-visible, body #coin-slot:focus-visible { outline: 2px dashed var(--lav); outline-offset: 8px; }
body [data-cabinet='dragging'] #insert-coin { cursor: grabbing; transition: none; }
body [data-cabinet='entering'] #insert-coin { pointer-events: none; }
body .arcade-home:not([data-cabinet='ready']) .roboflow-credit { display: none; }
body[data-screen='screen-title']:has(.arcade-home:not([data-cabinet='ready'])) #mutebtn { font-size: 0; width: 44px; height: 44px; min-width: 44px; padding: 0; flex: 0 0 44px; color: var(--cream60); }
body[data-screen='screen-title']:has(.arcade-home:not([data-cabinet='ready'])) #mutebtn::after { content: ''; display: block; width: 20px; height: 18px; margin: auto; background: currentColor; clip-path: polygon(0 35%, 25% 35%, 55% 5%, 55% 95%, 25% 65%, 0 65%, 0 35%, 70% 35%, 80% 25%, 90% 50%, 80% 75%, 70% 65%, 77% 50%, 70% 35%); }
body[data-screen='screen-title']:has(.arcade-home:not([data-cabinet='ready'])) #mutebtn[aria-pressed='false']::after { opacity: .45; }
body .lobby-selection { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 16px; }
body #screen-title .lobby-selection .game-lobby { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; margin: 0; }
body #screen-title .lobby-card { position: relative; justify-content: center; padding: 10px 28px; min-height: 44px; }
body #screen-title .lobby-card::before { position: absolute; left: 7px; }
body #screen-title .lobby-card:not(.menu-active)::before { visibility: hidden; }
body #screen-title .lobby-card.menu-active::before { visibility: visible; }
body #screen-title .lobby-card strong { white-space: nowrap; }
body #screen-title .lobby-card:focus-visible { outline: 1px dashed var(--lav); outline-offset: 1px; }
.mini-map-source { position: fixed; left: -9999px; top: 0; width: 240px; height: 88px; pointer-events: none; }
body .arcade-home { display: flex; flex-direction: column; align-items: center; padding-top: 0; }
body #screen-title .arcade-home .arcade-marquee { min-height: 260px; margin-top: 0; }
body .arcade-home > .arcade-marquee, body #lobby-controls { width: 100%; }
.pixel-scene { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(576px, 100%); }
.scene-caption { display: flex; justify-content: space-between; font: 14px/1.5 var(--mono); color: var(--cream); letter-spacing: 1px; }
.scene-demo { color: var(--cream60); }
#menu-scene { display: block; width: 100%; height: auto; aspect-ratio: 18 / 7; object-fit: contain; image-rendering: pixelated; border: 1px solid var(--steel); }
.player-legend { display: flex; justify-content: center; gap: 24px; font: 14px/1.5 var(--mono); }
.player-human { color: var(--human); }
.player-machine { color: var(--machine); }
body .arcade-home[data-cabinet='ready'] .pixel-scene { order: 2; margin-top: 24px; }
body .arcade-home .roboflow-credit { order: 3; }
body .arcade-home.departing .pixel-scene { opacity: 0; }
body #screen-title #lobby-controls .arcade-links { margin-top: 20px; }
body #screen-title .roboflow-credit { margin: 24px 0 20px; color: var(--cream60); font: 14px/1.6 var(--mono); letter-spacing: 1px; }
.roboflow-credit a { color: var(--cream); text-underline-offset: 4px; }
body .arcade-home.departing #lobby-controls { opacity: 0; }
body #arcade-share { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; overflow-y: auto; }
body #arcade-share .dialog-head { margin-bottom: 16px; }
body #arcade-share .dialog-head h2 { color: var(--cream); font-size: 14px; }
#share-card { display: block; width: min(100%, max(160px, calc((100dvh - 220px) * .8))); height: auto; aspect-ratio: 4 / 5; margin-inline: auto; background: var(--ink); color: var(--cream); border: 1px solid var(--steel); }
#share-card[aria-busy='true'] { opacity: .4; }
body #arcade-share #share-status { margin: 12px 0 0; color: var(--cream60); font: 14px/1.6 var(--mono); }
body #arcade-share #share-status:empty { margin: 0; }
body #arcade-share .arcade-result-actions { gap: 12px; margin: 16px 0 0; }
body #arcade-share .arcade-result-actions .mbtn { flex: 1; min-height: 44px; font-size: 14px; }
body #arcade-share #share-native[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-cabinet='waiting']:not(:has(.coin-selected)) .coin-token { animation: token-shimmer 3s ease-in-out infinite; }
  [data-cabinet='entering'] #insert-coin { animation: feed-token .6s ease-in forwards; }
  .logo-ready .logo-art { animation: metal-startup 1.25s ease-out both; }
  .logo-ready .logo-glint::after { animation: metal-idle 8s linear 1.1s infinite; }
  [data-cabinet='entering'].logo-ready .logo-art { animation: metal-power-on 1.5s ease-out both; }
  [data-cabinet='entering'].logo-ready .logo-glint::after { animation: metal-sweep 1.5s ease-in-out both; }
  .cabinet-powered[data-cabinet='ready'] .logo-art { animation: none; }
  [data-cabinet='ready'] #lobby-controls { animation: cabinet-menu .3s ease-out both; }
  .cabinet-paused .logo-art, .cabinet-paused .logo-glint::after, .cabinet-paused .coin-token { animation-play-state: paused !important; }
  [data-cabinet='ready'] .menu-active::before { animation: menu-blink 1.1s steps(1) infinite; }
}
.logo-glint::after { background: linear-gradient(110deg, transparent 41%, color-mix(in srgb, var(--cream) 40%, transparent) 46%, var(--cream) 50%, color-mix(in srgb, var(--cream) 40%, transparent) 54%, transparent 59%); background-size: 350% 100%; mix-blend-mode: screen; }
@keyframes token-shimmer { 0%,100% { filter: brightness(1); transform: translateY(0); } 50% { filter: brightness(1.25); transform: translateY(-3px); } }
@keyframes feed-token { 0% { transform: translate(var(--coin-x), var(--coin-y)); } 65% { transform: translate(var(--slot-x), var(--slot-y)) scaleX(.18); opacity: 1; } 100% { transform: translate(var(--slot-x), var(--slot-y)) scale(0, .7); opacity: 0; } }
@keyframes metal-startup { 0% { opacity: .2; filter: brightness(.3); clip-path: inset(48% 0); } 40% { opacity: 1; clip-path: inset(0); filter: brightness(.65); } 75% { filter: brightness(1.45); } 100% { opacity: 1; filter: brightness(1); clip-path: inset(0); } }
@keyframes metal-power-on { 0% { filter: brightness(.35) saturate(.5); } 35% { filter: brightness(.65); } 70% { filter: brightness(1.65); } 100% { filter: brightness(1); } }
@keyframes metal-sweep { 0%,20% { opacity: 0; background-position: 100% 0; } 30%,80% { opacity: 1; } 95%,100% { opacity: 0; background-position: 0% 0; } }
@keyframes metal-idle { 0% { opacity: 0; background-position: 100% 0; } 3%,13% { opacity: .85; } 19%,100% { opacity: 0; background-position: 0% 0; } }
@keyframes menu-blink { 0%,74% { opacity: 1; } 75%,100% { opacity: .3; } }
@keyframes cabinet-menu { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 701px) {
  body .arcade-marquee .character-control { flex: 0 0 180px; width: 180px; justify-content: center; }
}
@media (max-width: 700px) {
  body #screen-title .arcade-home .arcade-marquee { min-height: 240px; margin: 8px 0; }
  body .lobby-selection { gap: 12px; padding-top: 8px; }
  body .coin-entry { padding-top: 24px; gap: 32px; }
  body #screen-title .title-matchup { font-size: 14px; }
  body #screen-title .lobby-card strong { font-size: 14px; }
  body #screen-title .arcade-links { gap: 12px; }
  body #arcade-share { padding: 16px; }
}
@media (max-width: 400px) {
  body #screen-title .title-matchup { font: 14px/1.6 var(--mono); letter-spacing: 1px; }
  .pixel-scene { gap: 8px; }
  .scene-caption { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body #insert-coin { transition: none; }
  .logo-art, .logo-glint::after { animation: none !important; }
  .logo-art { opacity: 1; filter: none; clip-path: none; }
}
