/* Arcade lobby composition. Scoped to the homepage; shared catalog cards,
   storage contracts and player geometry remain owned by their existing modules. */
.platform-home{--panel-edge:#426b87;--panel-dark:#10202f}
/* A screen bezel and lower console lip, without clipping focus rings or links. */
.featured-discovery{padding:12px 12px 22px;background:#142738;border:1px solid var(--panel-edge);border-radius:2px;position:relative}
.featured-discovery:after{content:'';position:absolute;bottom:7px;left:40%;right:40%;height:5px;background:#080f19;border-top:1px solid #537b98;pointer-events:none}
.hero-game,.spotlight{border-radius:2px;outline:1px solid #304e65;outline-offset:-1px}
.hero-game:before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;border:7px solid #0a17244d}
.hero-game-copy{padding-left:32px}.feature-label{border-radius:2px}.spotlight-stack{gap:14px}
/* Three native links read as one segmented player console. */
.discovery-shortcuts{gap:1px;margin-top:12px;background:var(--panel-edge);border:1px solid var(--panel-edge);border-radius:2px;overflow:visible}
.discovery-shortcuts a{border-radius:0;background:#172c3d;min-height:62px;padding:15px 22px;font-weight:700}
.discovery-shortcuts a>svg:first-child{width:21px;height:21px;color:var(--rose)}
.discovery-shortcuts a:hover,.discovery-shortcuts a:focus-visible{background:#24445b;color:#fff}
.home-recent-links{gap:18px}.home-recent-links>a{position:relative;border-radius:0;background:#132636;border-bottom:3px solid #3e6988;padding:14px 14px 18px;transition:background 180ms,translate 180ms}
.home-recent-links>a:after{content:'';position:absolute;bottom:4px;left:20%;right:20%;height:3px;background:#080f19;pointer-events:none}
.home-recent-links img{border-radius:0;width:100px;height:65px;border:2px solid #35546c}
.home-recent-links>a:hover{background:#213d52;translate:0 -2px}
/* Genre controls use actual category icons and inventory counts, not game ranks. */
.genre-rail{gap:0;border-top:1px solid var(--panel-edge);border-left:1px solid var(--panel-edge)}
.genre-rail a{grid-template-columns:48px 1fr 20px;column-gap:16px;row-gap:6px;position:relative;padding:22px;border-radius:0;background:#142536;border-right:1px solid var(--panel-edge);border-bottom:1px solid var(--panel-edge);transition:background 180ms}
.genre-rail .genre-control-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:46px;height:46px;background:#0d1927;color:var(--accent);border:1px solid #36556e}
.genre-rail .genre-control-icon svg{grid-column:auto;grid-row:auto;color:inherit}
.genre-rail a>span:not(.genre-control-icon){grid-column:2;grid-row:1;align-self:end;font-size:15px}
.genre-rail small{grid-column:2;grid-row:2}.genre-rail a>svg{grid-column:3;grid-row:1/3;transition:translate 180ms}
.genre-rail a:hover,.genre-rail a:focus-visible{background:#23425a;box-shadow:inset 0 0 0 1px var(--accent)}
.genre-rail a:hover>svg{translate:3px 0}
/* Theme racks: compact headings and recessed horizontal cartridges. */
.mood-shelves{gap:22px}.mood-shelf,.mood-shelf:last-child{padding:20px;background:#111f2d;border:0;border-top:3px solid #70b6df;position:relative}
.mood-shelf.gentle{border-top-color:#a8c7b1}.mood-shelf.challenge{border-top-color:var(--rose)}
.mood-shelf header{padding-bottom:18px}.mood-sign{display:inline-flex;color:var(--accent);margin:0 0 14px}.gentle .mood-sign{color:#a8c7b1}.challenge .mood-sign{color:var(--rose)}
.mood-shelf h3{font-size:21px;min-height:0;margin-bottom:10px}.mood-shelf header p{min-height:0;margin-bottom:0}
.mood-picks{gap:12px}.mood-pick,.mood-pick:first-child{border:1px solid #30485c;border-bottom:3px solid #3a5d77;padding:12px;background:#182c3d;grid-template-columns:88px minmax(0,1fr);gap:12px;transition:background 180ms,translate 180ms}
.mood-pick img{width:88px;height:74px;border-radius:0}.mood-pick:hover{background:#244258;translate:0 -2px}.mood-pick small{font-size:11px}.mood-pick b{margin-top:3px}
/* Guide panel: no blank sidebar or large rounded backing plate. */
.home-play-notes{border-radius:0;background:transparent;border-block:1px solid var(--panel-edge);padding:28px 0;gap:24px}
.play-note-items{gap:0}.play-note-items article{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:0 24px;border-left:1px solid var(--line)}
.play-note-items article:first-child{padding-left:0;border-left:0}.play-note-items article:last-child{padding-right:0}
.play-note-items article>span{display:block;color:var(--accent);padding-top:2px}.play-note-items h3{font-size:16px}
/* End-of-lobby sign is a single full-width destination, with a cut-corner badge. */
.collection-ticket{background:#173044;border:1px solid #426d8a;padding:28px 32px;margin-top:30px;position:relative}
.collection-ticket:before{content:'';position:absolute;left:0;top:0;border-top:12px solid var(--paper);border-right:12px solid transparent;pointer-events:none}
.collection-ticket h2{font-size:28px}.collection-ticket .button{background:var(--accent);color:#092033;border-color:var(--accent);border-radius:2px}
@media(max-width:1100px){.mood-shelves{gap:16px}.mood-shelf,.mood-shelf:last-child{padding:18px 14px}.mood-pick,.mood-pick:first-child{grid-template-columns:70px minmax(0,1fr);gap:10px;padding:10px}.mood-pick img{width:70px;height:65px}.genre-rail a{padding:18px;column-gap:12px}.play-note-items article{padding-inline:16px}}
@media(max-width:820px){.mood-shelf,.mood-shelf:last-child{padding:22px;grid-template-columns:1fr 1.5fr;gap:24px}.mood-pick,.mood-pick:first-child{grid-template-columns:84px minmax(0,1fr)}.mood-pick img{width:84px;height:70px}.genre-rail a{padding:17px 14px;grid-template-columns:40px 1fr 17px;gap:8px 12px}.genre-rail .genre-control-icon{width:40px;height:40px}.genre-rail a>span:not(.genre-control-icon){font-size:14px}.discovery-shortcuts a{padding:14px 12px;font-size:11px}.play-note-items article{display:block;padding:0 14px}.play-note-items article>span{margin-bottom:14px}.home-recent-links>a{max-width:100%}}
@media(max-width:560px){.featured-discovery{padding:7px 7px 17px;gap:10px}.featured-discovery:after{height:3px;bottom:6px}.hero-game-copy{padding-left:22px}.hero-game:before{border-width:4px}.spotlight-stack{gap:10px}.spotlight-copy{padding:13px 10px}.spotlight h3{font-size:18px}.discovery-shortcuts{gap:1px}.discovery-shortcuts a{min-height:50px;padding:13px 16px;font-size:12px}.genre-rail{grid-template-columns:1fr}.genre-rail a{grid-template-columns:40px 1fr 20px;padding:15px 17px}.genre-rail a>span:not(.genre-control-icon){font-size:15px}.mood-shelf,.mood-shelf:last-child{display:block;padding:20px 16px}.mood-sign{margin-bottom:10px}.mood-pick,.mood-pick:first-child{grid-template-columns:88px minmax(0,1fr);padding:12px}.mood-pick img{width:88px;height:74px}.home-play-notes{padding:25px 0;gap:22px}.play-note-items{gap:20px}.play-note-items article,.play-note-items article:first-child,.play-note-items article:last-child{display:grid;border-left:0;padding:0 0 20px;border-bottom:1px solid var(--line);grid-template-columns:28px minmax(0,1fr);gap:12px}.play-note-items article:last-child{padding-bottom:0;border:0}.play-note-items article>span{margin:0}.collection-ticket{padding:24px 20px}.collection-ticket h2{font-size:25px}.home-recent-links img{width:92px;height:65px}}
@media(prefers-reduced-motion:reduce){.home-recent-links>a,.mood-pick,.genre-rail a,.genre-rail a>svg{transition:none;translate:none}.home-recent-links>a:hover,.mood-pick:hover,.genre-rail a:hover>svg{translate:none}}
@media(forced-colors:active){.featured-discovery,.discovery-shortcuts,.genre-rail a,.mood-shelf,.mood-pick,.collection-ticket{border:1px solid CanvasText}.hero-game:before,.featured-discovery:after,.collection-ticket:before{display:none}}

/* Wide cabinet: independent silhouette pieces avoid clipping the interactive
   screen or its keyboard outlines. Only decorative components carry motion. */
.lobby-cabinet{padding:0 15px 0;background:#27748e;border:1px solid #6cb9d2;border-radius:8px 8px 3px 3px;box-shadow:0 16px 28px #0003;position:relative}
.cabinet-marquee{display:flex;align-items:center;justify-content:center;gap:24px;min-height:68px;margin:0 -16px 14px;padding:15px 24px;background:#17374b;border:7px solid #55b9de;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%,0 12px);color:#dbf4ff;font-size:25px;font-weight:800;letter-spacing:.16em}
.cabinet-lamp{height:4px;width:65px;background:#f1b884}
.lobby-cabinet .featured-discovery{background:#091522;border:8px solid #14384c;border-radius:7px;padding:10px;gap:16px;box-shadow:inset 0 3px 8px #0008}
.lobby-cabinet .featured-discovery:after{display:none}
.lobby-cabinet .hero-game,.lobby-cabinet .spotlight{border-radius:2px}
.cabinet-control-deck{display:grid;grid-template-columns:110px minmax(0,1fr) 110px;align-items:center;gap:24px;background:#1b536b;border-top:3px solid #6bb6ce;border-bottom:5px solid #103347;padding:18px 24px;margin:16px -24px 0;position:relative;border-radius:3px}
.cabinet-control-deck .discovery-shortcuts{margin:0;border-color:#52849c;background:#52849c;grid-template-columns:repeat(3,minmax(0,1fr))}
.cabinet-control-deck .discovery-shortcuts a{background:#102d40;min-height:58px;padding:12px 16px;font-size:12px}
.cabinet-control-deck .discovery-shortcuts a:hover{background:#244e65}
.cabinet-joystick{position:relative;width:100px;height:72px;pointer-events:none}
.joystick-base{position:absolute;left:16px;bottom:3px;width:72px;height:23px;border-radius:50%;background:#092333;border:3px solid #478aa2}
.joystick-stick{position:absolute;left:47px;bottom:16px;width:9px;height:40px;background:#c5e8ee;border-radius:3px;transform-origin:50% 100%}
.joystick-stick i{position:absolute;left:-10px;top:-12px;width:29px;height:29px;background:#f1b884;border-radius:50%;box-shadow:inset -4px -4px 0 #d18a56}
.cabinet-buttons{display:flex;align-items:center;justify-content:center;gap:14px;height:65px;pointer-events:none;transform:rotate(-15deg)}
.cabinet-buttons i{display:block;width:36px;height:36px;border-radius:50%;background:#f1b884;border:3px solid #f8d4b2;box-shadow:0 5px 0 #9a5b35}
.cabinet-buttons i:last-child{background:#e79d68}
.cabinet-plinth{height:35px;display:flex;align-items:center;justify-content:center;background:#16445a;margin:0 -15px;border-bottom:6px solid #0b2535}
.cabinet-plinth span{height:8px;width:100px;background:#081a26;border-top:2px solid #3f7d94;border-radius:2px}
@media(prefers-reduced-motion:no-preference){
 .joystick-stick{animation:cabinet-stick 1.2s ease-in-out infinite alternate}
 .cabinet-buttons i{animation:cabinet-key .8s ease-in-out infinite alternate}
 .cabinet-buttons i:last-child{animation-delay:-.8s}
}
@keyframes cabinet-stick{from{transform:rotate(-18deg)}to{transform:rotate(18deg)}}
@keyframes cabinet-key{from{translate:0 0}to{translate:0 3px}}
@media(max-width:1100px){.cabinet-control-deck{grid-template-columns:80px minmax(0,1fr) 85px;gap:15px;padding-inline:18px}.cabinet-joystick{scale:.85;transform-origin:left center}.cabinet-buttons{gap:10px}.cabinet-buttons i{width:30px;height:30px}.cabinet-control-deck .discovery-shortcuts a{padding:11px;font-size:11px;gap:7px}}
@media(max-width:820px){.cabinet-control-deck{grid-template-columns:60px minmax(0,1fr) 64px;gap:10px;padding:14px}.cabinet-joystick{scale:.7}.cabinet-buttons{gap:8px}.cabinet-buttons i{width:25px;height:25px;border-width:2px}.cabinet-control-deck .discovery-shortcuts a{flex-wrap:wrap;justify-content:center;text-align:center;font-size:10px;padding:10px 7px;gap:6px}.cabinet-control-deck .discovery-shortcuts a>svg:last-child{display:none}.cabinet-marquee{font-size:22px;min-height:60px}}
@media(max-width:560px){.lobby-cabinet{padding:0 8px}.cabinet-marquee{margin:0 -9px 9px;border-width:5px;font-size:20px;letter-spacing:.1em;gap:14px;min-height:54px;padding:12px}.cabinet-lamp{width:28px;height:3px}.lobby-cabinet .featured-discovery{border-width:4px;padding:5px;gap:9px}.lobby-cabinet .hero-game-copy{padding:20px 16px}.lobby-cabinet .hero-game h2{font-size:32px}.lobby-cabinet .spotlight h3{font-size:17px}.lobby-cabinet .spotlight-copy{padding:12px 8px}.cabinet-control-deck{grid-template-columns:1fr 1fr;gap:5px 15px;margin:10px -13px 0;padding:8px 13px 14px}.cabinet-joystick{height:55px;scale:.75;transform-origin:left bottom;justify-self:start}.cabinet-buttons{justify-self:end;height:45px;gap:13px;grid-column:2;grid-row:1}.cabinet-buttons i{width:29px;height:29px}.cabinet-control-deck .discovery-shortcuts{grid-column:1/-1;grid-row:2;width:100%}.cabinet-control-deck .discovery-shortcuts a{min-height:64px;font-size:10px;flex-direction:column;padding:9px 5px}.cabinet-control-deck .discovery-shortcuts a>svg:first-child{width:18px;height:18px}.cabinet-plinth{margin:0 -8px;height:27px}.cabinet-plinth span{width:70px;height:6px}}
@media(forced-colors:active){.lobby-cabinet,.cabinet-marquee,.cabinet-control-deck,.cabinet-plinth{border:1px solid CanvasText}.cabinet-joystick,.cabinet-buttons,.cabinet-lamp{display:none}.cabinet-control-deck{display:block}.cabinet-marquee{clip-path:none}}

/* Real gameplay previews retain the existing screen geometry and text scrims. */
.spotlight>.game-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 220ms ease-out,filter 220ms ease-out}
.hero-game>.game-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.spotlight>.preview-star-rift-strike{object-fit:contain;background:#081b26}
.preview-toggle{display:block;margin:10px auto;color:#e2f4ff;background:#103347;border:1px solid #74b8d2;border-radius:4px;min-height:36px;padding:7px 15px;font-size:11px}
@media(hover:hover) and (pointer:fine){.spotlight:hover>.game-preview{transform:scale(1.04);filter:brightness(1.12)}}
.spotlight:focus-visible>.game-preview{filter:brightness(1.12)}
@media(prefers-reduced-motion:reduce){.spotlight>.game-preview{transition:none}.spotlight:hover>.game-preview{transform:none}}

/* Portrait gameplay sits above a full-bleed, softened copy of the same footage.
   No z-index above the existing caption/scrim; the entire source remains visible. */
.spotlight>.preview-backdrop{position:absolute;inset:-12%;width:124%;height:124%;max-width:none;object-fit:cover;filter:blur(16px) brightness(.52) saturate(.85);pointer-events:none}
.spotlight>.preview-star-rift-strike{background:transparent}
@media(prefers-reduced-motion:reduce){.spotlight>.preview-backdrop{filter:blur(16px) brightness(.52) saturate(.85)}}

/* Fill the aircraft screen as approved; crop the portrait top/bottom around the action. */
.spotlight>.preview-star-rift-strike{object-fit:cover;object-position:center 62%;background:#081b26}

/* Graphite cabinet finish: restrained edge lighting leaves gameplay as the
   brightest large surface. These tokens apply only to the physical cabinet. */
.lobby-cabinet{background:#202b36;border-color:#485968;box-shadow:0 16px 28px #0005}
.cabinet-marquee{background:#161f29;border-color:#354858;border-top-color:#74bddb;border-bottom-color:#597b90;color:#edf6fc}
.cabinet-lamp{background:#f1b884}
.lobby-cabinet .featured-discovery{background:#080f18;border-color:#101a25;box-shadow:inset 0 3px 8px #0009,0 1px 0 #59788c}
.cabinet-control-deck{background:#2a3947;border-top-color:#75b9d2;border-bottom-color:#111c28}
.cabinet-control-deck .discovery-shortcuts{border-color:#496173;background:#496173}
.cabinet-control-deck .discovery-shortcuts a{background:#162431}
.cabinet-control-deck .discovery-shortcuts a:hover{background:#294355}
.joystick-base{background:#111d28;border-color:#58788e}
.joystick-stick{background:#d1e5ec}
.cabinet-plinth{background:#18232e;border-bottom-color:#0b121b}
.cabinet-plinth span{background:#080f16;border-top-color:#496174}
.lobby-cabinet .preview-toggle{background:#1a2936;border-color:#526e82;color:#dcebf4}
.lobby-cabinet .preview-toggle:hover{background:#2a4052}

/* Original geometric pixel mascots perch on the cabinet, outside interactive
   content. Shared overlay stays decorative and never captures pointer events. */
.cabinet-mascots{position:absolute;inset:0 0 auto;height:0;pointer-events:none;z-index:3}
.cabinet-mascot{position:absolute;bottom:0;width:54px;height:54px;overflow:visible;shape-rendering:crispEdges;filter:drop-shadow(0 3px 2px #0005)}
.mascot-robot{left:32%;transform:rotate(5deg)}
.mascot-monster{right:32%;transform:rotate(-5deg)}
.platform-home .discovery-intro{padding-bottom:65px}
@media(prefers-reduced-motion:no-preference){.cabinet-mascot{animation:mascot-hover 2.6s ease-in-out infinite alternate}.mascot-monster{animation-delay:-1.3s}}
@keyframes mascot-hover{from{translate:0 0}to{translate:0 -5px}}
@media(max-width:560px){.cabinet-mascot{width:36px;height:36px}.mascot-robot{left:18%}.mascot-monster{right:18%}.platform-home .discovery-intro{padding-bottom:48px}}
@media(forced-colors:active){.cabinet-mascots{display:none}}

/* Cabinet-top vignettes: crisp original vector characters share a small stage.
   Ornament is pointer-transparent and excluded from the accessibility tree. */
.mascot-scene{position:absolute;bottom:0;width:126px;height:98px;pointer-events:none}
.scene-robot{left:calc(32% - 36px)}.scene-monster{right:calc(32% - 36px)}
.scene-character{position:absolute;left:20px;bottom:7px;width:80px;height:72px;overflow:visible;shape-rendering:crispEdges;filter:drop-shadow(0 3px 2px #0005)}
.pixel-pedestal{position:absolute;bottom:0;left:30px;width:64px;height:9px;background:#293d4e;border-top:3px solid #7cb9d0;box-shadow:0 4px 0 #0a131c}
.scene-monster .pixel-pedestal{border-top-color:#d5a176}
.pixel-coin{position:absolute;width:12px;height:16px;background:#f1b884;border:3px solid #bf8051;outline:2px solid #f8d5a7;box-shadow:inset 2px 0 #ffe8c4}
.scene-robot .coin-one{left:3px;top:38px}.scene-monster .coin-one{right:1px;top:30px}
.pixel-star{position:absolute;width:5px;height:5px;background:#a9dfff;box-shadow:0 -5px #a9dfff,0 5px #a9dfff,-5px 0 #a9dfff,5px 0 #a9dfff}
.star-one{left:8px;top:15px}.star-two{right:6px;top:52px;scale:.6}
.scene-monster .pixel-star{background:#f4c799;box-shadow:0 -5px #f4c799,0 5px #f4c799,-5px 0 #f4c799,5px 0 #f4c799}.scene-monster .star-one{left:10px;top:29px}.scene-monster .star-two{right:9px;top:5px}
.platform-home .discovery-intro{padding-bottom:103px}
@media(prefers-reduced-motion:no-preference){
 .scene-character{animation:scene-bob 2.8s ease-in-out infinite alternate}
 .scene-monster .scene-character{animation-delay:-1.4s}
 .mascot-eyes{transform-box:fill-box;transform-origin:center;animation:scene-blink 5s linear infinite}
 .robot-wave{transform-origin:57px 46px;animation:scene-wave 3.8s ease-in-out infinite}
 .monster-tail{transform-origin:53px 50px;animation:scene-tail 2s ease-in-out infinite alternate}
 .pixel-star{animation:scene-spark 2.4s ease-in-out infinite alternate}
 .star-two{animation-delay:-1.2s}.robot-chest{animation:scene-spark 1.8s ease-in-out infinite alternate}
}
@keyframes scene-bob{to{translate:0 -3px}}
@keyframes scene-blink{0%,92%,96%,100%{transform:scaleY(1)}94%{transform:scaleY(.1)}}
@keyframes scene-wave{0%,60%,100%{transform:rotate(0)}70%,86%{transform:rotate(-16deg)}78%,94%{transform:rotate(8deg)}}
@keyframes scene-tail{from{transform:rotate(-8deg)}to{transform:rotate(10deg)}}
@keyframes scene-spark{from{opacity:.5}to{opacity:1}}
@media(max-width:560px){.mascot-scene{width:85px;height:72px}.scene-robot{left:calc(18% - 16px)}.scene-monster{right:calc(18% - 16px)}.scene-character{width:60px;height:54px;left:12px}.pixel-pedestal{left:20px;width:48px;height:7px}.pixel-star.star-two{display:none}.pixel-coin{width:9px;height:12px;border-width:2px;outline-width:1px}.scene-robot .coin-one{left:0;top:25px}.scene-monster .coin-one{right:0;top:24px}.star-one{scale:.65;top:6px}.scene-monster .star-one{left:1px;top:9px}.platform-home .discovery-intro{padding-bottom:78px}}

/* Center astronaut completes the cabinet crew without shifting either side. */
.scene-astronaut{left:50%;margin-left:-63px}
.scene-astronaut .pixel-pedestal{border-top-color:#c0d9e5}
.scene-astronaut .star-one{left:6px;top:23px}.scene-astronaut .star-two{right:5px;top:12px}
@media(prefers-reduced-motion:no-preference){.scene-astronaut .scene-character{animation-delay:-.7s}.astronaut-wave{transform-origin:55px 42px;animation:scene-wave 4.6s ease-in-out -1s infinite}}
@media(max-width:560px){.scene-astronaut{margin-left:-42.5px}.scene-astronaut .star-one{display:none}}
