/* Application boundaries only; game surfaces/cards/animations come from version28. */
#sg-games { --bg-base:#19191f; --bg-elevated:#24232d; --accent-gradient:linear-gradient(110deg,#ff006e,#8338ec); --border-color:#ffffff16; color:#f4f2f8; color-scheme:dark; }
#sg-games[hidden] { display:none!important; }
#sg-games *,#sg-games *::before,#sg-games *::after { box-sizing:border-box; }
#sg-games button { cursor:pointer; font-family:inherit; }
#sg-games button:disabled { cursor:default; }
#sg-games .fa-solid { font-family:SGSolid!important; font-style:normal; font-weight:900; line-height:1; display:inline-block; font-variant:normal; text-rendering:auto; -webkit-font-smoothing:antialiased; }
#sg-games .nl-view { max-width:1450px; margin:0 auto; }
.sg-root[data-stage="games"] .sg-screen { max-width:1514px; width:100%; padding-top:32px; }
.sg-root[data-stage="games"] .sg-mode-badge { display:none; }
#sg-games .nl-primary,#sg-games .btn-primary,#sg-games .btn-secondary-purple { background:linear-gradient(110deg,#ff006e,#8338ec); border:1px solid #ffffff12; color:#fff; font-weight:700; min-height:48px; border-radius:12px; padding:12px 20px; display:flex; align-items:center; justify-content:center; gap:10px; }
#sg-games .nl-primary:hover,#sg-games .btn-primary:hover,#sg-games .btn-secondary-purple:hover { filter:brightness(1.1); }
#sg-games .nl-primary:disabled,#sg-games .btn-secondary-purple:disabled { opacity:.5; }
#sg-games .nl-center-label>div { justify-content:center; }
#sg-games .nl-mix-player[hidden],#sg-games #dc-after[hidden] { display:none!important; }
#sg-games .mg-player { background:#24232c; border:1px solid #ffffff18; border-radius:18px; padding:18px; margin:0; min-width:0; }
#sg-games .reference-player-heading { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
#sg-games .reference-player-heading strong { font-size:13px; }
#sg-games .reference-player-heading>span { color:#aaa5b7; font-size:11px; }
#sg-games .reference-player-row { display:flex; align-items:center; gap:12px; min-width:0; }
#sg-games .reference-player-row button { width:44px; height:44px; flex:none; display:grid; place-items:center; }
#sg-games .musicaia-reference-wave { height:40px; flex:1; min-width:0; display:flex; align-items:center; gap:3px; }
#sg-games .musicaia-reference-wave>span { flex:1; height:var(--reference-height); min-height:3px; background:#a377c7; border-radius:4px; }
#sg-games .reference-player-row time { color:#a9a2b6; font-size:11px; }
#sg-games .reference-player-state { margin:9px 0 0; color:#aaa5b7; font-size:11px; }
#sg-games .mg-status { font-size:12px; line-height:1.7; min-height:20px; color:#c6b4d8; margin:16px 0 0; }
#sg-games .mg-status.is-error { color:#ff8fbc; }
#sg-games .mg-game-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:1060px; margin:0 auto; }
#sg-games .mg-game-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:14px; min-height:260px; border:1px solid #aa539958; border-radius:22px; padding:28px; background:radial-gradient(ellipse at 0 0,#b92a721c,transparent 75%),#211e29; color:#f7f4fa; transition:border-color .2s,transform .2s; }
#sg-games .mg-game-card:hover { border-color:#f50083; transform:translateY(-3px); }
#sg-games .mg-card-number { position:absolute; top:24px; right:25px; color:#b78bcd; font-size:12px; }
#sg-games .mg-card-icon { width:54px; height:54px; border-radius:15px; background:linear-gradient(135deg,#f5007930,#8338ec38); border:1px solid #c74d9b55; color:#ef94cd; display:grid; place-items:center; font-size:24px; }
#sg-games .mg-game-card>strong { font:700 24px 'SGDisplay',Inter,sans-serif; }
#sg-games .mg-game-card>span:not(.mg-card-number):not(.mg-card-icon):not(.mg-card-footer) { font-size:13px; line-height:1.7; color:#c9bfd4; }
#sg-games .mg-game-card>small { color:#b5a3c6; font-size:11px; }
#sg-games .mg-card-footer { width:100%; display:flex; align-items:center; justify-content:space-between; margin-top:auto; border-top:1px solid #ffffff10; padding-top:16px; color:#ee98d4; font-size:12px; font-weight:700; }
#sg-games .musical-games-heading h2 { font-size:30px; font-weight:750; margin:10px 0; }
#sg-games .musical-games-heading p { font-size:13px; line-height:1.7; color:#bfb4cc; }
#sg-games .musical-games-eyebrow { color:#c894de!important; font-size:10px!important; letter-spacing:.16em; font-weight:700; }
#sg-games .dc-layout { gap:18px; }
#sg-games .dc-after { margin:0; }
#sg-games .dc-anchor summary .fa-lock { margin-left:auto; }
#nav-games[aria-current="page"] { background:linear-gradient(110deg,#331c3d,#282034); color:#fff; }
.sg-games-entry { margin-top:26px; padding:26px; display:flex; justify-content:space-between; align-items:center; gap:24px; border:1px solid #ffffff13; border-radius:22px; background:linear-gradient(120deg,#29222e,#20212a); }
.sg-games-entry h2 { font-size:23px; margin:6px 0 10px; font-weight:700; }
.sg-games-entry p { margin:0; color:#bcb4cc; font-size:12px; line-height:1.7; }
.sg-games-entry small { color:#4ce5ec; font-size:10px; letter-spacing:.13em; font-weight:700; }
.sg-games-entry button { white-space:nowrap; }
@media(max-width:900px){#sg-games .mg-game-grid {gap:14px;} .sg-games-entry {align-items:flex-start;flex-direction:column;} }
@media(max-width:640px){.sg-root[data-stage="games"] .sg-screen {padding:20px 14px;}#sg-games .mg-game-grid {grid-template-columns:1fr;}#sg-games .mg-game-card{min-height:230px;padding:22px;}#sg-games .nl-view{padding:0;} }
@media(prefers-reduced-motion:reduce){#sg-games .mg-game-card{transition:none;} }
