/* Stage build game */
.sbg{margin-top:8px}
.sbg-stage{position:relative;overflow:hidden;border-radius:14px;background:#06090d;box-shadow:0 18px 48px #0a18252e}
.sbg-stage canvas{display:block;width:100%;height:auto;aspect-ratio:1200/675}
.sbg-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:16px}
.sbg-row .sbg-label{font-size:13px;color:#5d625b;min-width:64px}
#sbg .sbg-row button{min-height:44px;padding:8px 16px;border-radius:10px;border:1px solid #9aa39b;background:#fffdf7;color:#1f2a24;font:600 14px system-ui;cursor:pointer}
#sbg .sbg-row button[aria-pressed=true]{background:#1f3a34;color:#fff;border-color:#1f3a34}
.sbg-row input[type=range]{flex:1 1 220px;min-width:0;accent-color:#a65f24}
.sbg-row output{font:600 15px system-ui;color:#1f2a24}
#sbg .sbg-start{background:#a65f24!important;border-color:#a65f24!important;color:#fff!important;padding:10px 22px!important}
.sbg-stats{font-size:13px;line-height:1.8;color:#4c524b;margin:10px 0 0}
.sbg-proc{margin-top:18px;padding:16px;border-radius:12px;background:linear-gradient(180deg,#1b2026,#0d1013);color:#d9e2e7;box-shadow:inset 0 1px 0 #ffffff14}
.sbg-proc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.sbg-proc-head strong{font:700 13px/1.4 system-ui;letter-spacing:.14em}
.sbg-proc-head span{font-size:12px;color:#9fb0b9}
.sbg-proc .sbg-row{margin-top:10px}
.sbg-proc .sbg-row .sbg-label{color:#9fb0b9}
.sbg-proc #sbg .sbg-row button{background:#262d34;color:#dbe4ea;border-color:#3a434c}
.sbg-proc #sbg .sbg-row button[aria-pressed=true]{background:#4fd2ff;color:#06131a;border-color:#4fd2ff}
.sbg-proc:not([data-ready]) .sbg-row{opacity:.45;pointer-events:none}
#sbg .sbg-proc #sbg-black[aria-pressed=true]{background:#ff5470;border-color:#ff5470;color:#fff}
@media(max-width:600px){#sbg .sbg-row button{flex:1 1 auto;padding:8px 10px;font-size:13px}.sbg-row .sbg-label{min-width:100%}.sbg-proc{padding:12px}}
.sbg #sbg .sbg-row button{background:#fffdf7!important;color:#1f2a24!important;border-color:#9aa39b!important;box-shadow:none!important}
.sbg #sbg .sbg-row button[aria-pressed=true]{background:#1f3a34!important;color:#fff!important;border-color:#1f3a34!important}
.sbg .sbg-row #sbg .sbg-start{background:#a65f24!important;border-color:#a65f24!important;color:#fff!important}
.sbg .sbg-proc #sbg .sbg-row button{background:#262d34!important;color:#dbe4ea!important;border-color:#3a434c!important}
.sbg .sbg-proc #sbg .sbg-row button[aria-pressed=true]{background:#4fd2ff!important;color:#06131a!important;border-color:#4fd2ff!important}
.sbg #sbg .sbg-proc #sbg-black[aria-pressed=true]{background:#ff5470!important;border-color:#ff5470!important;color:#fff!important}
.sbg .sbg-proc output{color:#dbe4ea}
#sbg .sbg-proc output{color:#d9e2e7}#sbg .sbg-row button{box-shadow:none;background-image:none}
/* retro game console (2135) */
#sbg .sbg-row,#sbg .sbg-stats,#sbg .sbg-proc{font-family:"DotGothic16","Press Start 2P",ui-monospace,monospace!important;letter-spacing:.04em}
#sbg .sbg-controls,#sbg>.sbg-row{background:#10142a!important}
#sbg .sbg-row{padding:12px;margin-top:14px;background:#10142a;border:4px solid #000;box-shadow:inset 0 0 0 3px #3b4cca,6px 6px 0 #000;border-radius:0!important;color:#f8f8f8}
#sbg .sbg-row button{border-radius:0!important;border:3px solid #000!important;background:#e8e8e8!important;color:#111!important;font:inherit!important;font-size:14px!important;font-weight:400!important;box-shadow:inset -3px -3px 0 #9a9a9a,inset 3px 3px 0 #fff,4px 4px 0 #000!important;text-transform:uppercase;transition:none!important}
#sbg .sbg-row button:hover{background:#fff!important}
#sbg .sbg-row button:active,#sbg .sbg-row button[aria-pressed=true]{transform:translate(4px,4px);box-shadow:inset 3px 3px 0 #9a9a9a,0 0 0 #000!important;background:#ffd84a!important}
#sbg .sbg-row button[aria-pressed=true]::before{content:"▶ ";color:#c00}
#sbg .sbg-start{background:#e43b44!important;color:#fff!important;box-shadow:inset -3px -3px 0 #8a1c22,inset 3px 3px 0 #ff8a90,4px 4px 0 #000!important}
#sbg .sbg-row label,#sbg .sbg-row output,#sbg .sbg-row span{color:#f8f8f8!important;font:inherit!important}
#sbg .sbg-row output{background:#000;color:#5cff5c!important;padding:4px 8px;border:2px solid #5cff5c;min-width:4.5em;text-align:right}
#sbg input[type=range]{-webkit-appearance:none;appearance:none;height:14px;background:repeating-linear-gradient(90deg,#5cff5c 0 10px,#0b3d0b 10px 14px)!important;border:3px solid #000;box-shadow:3px 3px 0 #000;border-radius:0!important;accent-color:#ffd84a}
#sbg input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:26px;background:#ffd84a;border:3px solid #000;border-radius:0;box-shadow:inset -3px -3px 0 #b8901a;cursor:pointer}
#sbg input[type=range]::-moz-range-thumb{width:16px;height:24px;background:#ffd84a;border:3px solid #000;border-radius:0;cursor:pointer}
#sbg .sbg-stats{background:#000!important;color:#5cff5c!important;border:4px solid #000;box-shadow:inset 0 0 0 2px #5cff5c,6px 6px 0 #000;border-radius:0!important;padding:10px 14px!important;text-shadow:0 0 6px rgba(92,255,92,.6)}
#sbg .sbg-stats *{color:inherit!important;font:inherit!important}
#sbg .sbg-proc{border-radius:0!important;background:#10142a!important;background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 2px,transparent 2px 4px)!important;border:4px solid #000!important;box-shadow:inset 0 0 0 3px #f8f8f8,inset 0 0 0 6px #000,6px 6px 0 #000!important;padding:18px!important;color:#f8f8f8!important}
#sbg .sbg-proc h3,#sbg .sbg-proc strong,#sbg .sbg-proc p{font-family:inherit!important;color:#f8f8f8!important}
#sbg .sbg-proc .sbg-row{box-shadow:none;border:0;background:transparent;padding:0}
#sbg .sbg-stage{border-radius:0!important;border:4px solid #000;box-shadow:6px 6px 0 #000;image-rendering:pixelated}
/* retro game console (2135) */
#sbg .sbg-row,#sbg .sbg-stats,#sbg .sbg-proc{font-family:"DotGothic16","Press Start 2P",ui-monospace,monospace!important;letter-spacing:.04em}
#sbg>.sbg-row,#sbg .sbg-stage~.sbg-row{padding:12px;background:#10142a;border:4px solid #000;box-shadow:inset 0 0 0 3px #3b4cca,6px 6px 0 #000;border-radius:0!important;color:#f8f8f8}
#sbg .sbg-row button{border-radius:0!important;border:3px solid #000!important;background:#e8e8e8!important;color:#111!important;font:inherit!important;font-size:14px!important;font-weight:400!important;box-shadow:inset -3px -3px 0 #9a9a9a,inset 3px 3px 0 #fff,4px 4px 0 #000!important;transition:none!important}
#sbg .sbg-row button:hover{background:#fff!important}
#sbg .sbg-row button:active,#sbg .sbg-row button[aria-pressed=true]{transform:translate(4px,4px);box-shadow:inset 3px 3px 0 #9a9a9a!important;background:#ffd84a!important}
#sbg .sbg-row button[aria-pressed=true]::before{content:"▶ ";color:#c00}
#sbg .sbg-row .sbg-start{background:#e43b44!important;color:#fff!important;box-shadow:inset -3px -3px 0 #8a1c22,inset 3px 3px 0 #ff8a90,4px 4px 0 #000!important}
#sbg .sbg-row label,#sbg .sbg-row output,#sbg .sbg-label{color:#f8f8f8!important;font-family:inherit!important}
#sbg .sbg-row output{background:#000;color:#5cff5c!important;padding:4px 8px;border:2px solid #5cff5c;min-width:4.5em;text-align:right}
#sbg input[type=range]{-webkit-appearance:none;appearance:none;height:14px;background:repeating-linear-gradient(90deg,#5cff5c 0 10px,#0b3d0b 10px 14px)!important;border:3px solid #000;box-shadow:3px 3px 0 #000;border-radius:0!important}
#sbg input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:26px;background:#ffd84a;border:3px solid #000;border-radius:0;box-shadow:inset -3px -3px 0 #b8901a;cursor:pointer}
#sbg input[type=range]::-moz-range-thumb{width:16px;height:24px;background:#ffd84a;border:3px solid #000;border-radius:0;cursor:pointer}
#sbg .sbg-stats{background:#000!important;color:#5cff5c!important;border:4px solid #000;box-shadow:inset 0 0 0 2px #5cff5c,6px 6px 0 #000;border-radius:0!important;padding:10px 14px!important;text-shadow:0 0 6px rgba(92,255,92,.6)}
#sbg .sbg-stats *{color:inherit!important;font-family:inherit!important}
#sbg .sbg-proc{border-radius:0!important;background-color:#10142a!important;background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 2px,transparent 2px 4px)!important;border:4px solid #000!important;box-shadow:inset 0 0 0 3px #f8f8f8,inset 0 0 0 6px #000,6px 6px 0 #000!important;padding:20px!important;color:#f8f8f8!important}
#sbg .sbg-proc *{font-family:inherit!important}
#sbg .sbg-proc .sbg-row{box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
#sbg .sbg-stage{border-radius:0!important;border:4px solid #000;box-shadow:6px 6px 0 #000}
/* size: smaller with breathing room (2152) */
#sbg.sbg{max-width:860px;margin:56px auto 72px!important;padding:0 clamp(0px,3vw,32px)}
#fr-try .fr-head{max-width:860px;margin-left:auto;margin-right:auto}
#fr-try{padding-top:clamp(56px,7vw,96px);padding-bottom:clamp(40px,5vw,72px)}
#sbg .sbg-row button{font-size:13px!important;min-height:38px!important;padding:6px 12px!important}
@media(max-width:600px){#sbg.sbg{margin:32px auto 48px!important;padding:0}}
#fr-try .fr-try-links{max-width:860px;margin-left:auto;margin-right:auto;padding:0 clamp(0px,3vw,32px)}
/* arcade band (2325) */
#fr-try{background:#0b0d0f;box-shadow:0 0 0 100vmax #0b0d0f;clip-path:inset(0 -100vmax);color:#eee9df;padding-top:clamp(72px,8vw,120px)!important;padding-bottom:clamp(64px,7vw,104px)!important;position:relative}
#fr-try::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(201,163,90,.14),transparent 60%);pointer-events:none}
#fr-try>*{position:relative}
#fr-try .fr-head{text-align:center;max-width:760px!important}
#fr-try .fr-head .eyebrow{color:#c9a35a!important;letter-spacing:.3em}
#fr-try .fr-head h2{color:#f3efe6!important;font-family:"Shippori Mincho","Hiragino Mincho ProN",serif;font-weight:500;letter-spacing:.04em}
#fr-try .fr-head p:not(.eyebrow){color:#a8a195!important}
#sbg .sbg-stage{border:10px solid #15181c!important;border-radius:18px!important;box-shadow:0 0 0 1px rgba(201,163,90,.55),0 30px 80px rgba(0,0,0,.6),0 0 60px rgba(201,163,90,.12)!important}
#sbg .sbg-stage canvas{border-radius:8px}
#sbg>.sbg-row,#sbg .sbg-stats,#sbg .sbg-proc{box-shadow:none!important;border-color:#2a2f35!important}
#sbg .sbg-go{background:#2fbf71!important;color:#fff!important}
.sbg-missions{list-style:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:0;margin:26px auto 0;max-width:860px;font-family:"DotGothic16",ui-monospace,monospace}
.sbg-missions li{padding:7px 12px;border:2px solid #3a414b;color:#a8a195;font-size:13px;background:#101317}
.sbg-missions li::before{content:"□ ";color:#5c646e}
.sbg-missions li.ok{border-color:#5cff5c;color:#eaffea;background:#0f2412}
.sbg-missions li.ok::before{content:"■ ";color:#5cff5c}
.sbg-clear{text-align:center;color:#ffd84a;font-family:"DotGothic16",monospace;margin:14px 0 0;letter-spacing:.06em;animation:sbgBlink 1s steps(2) infinite}
@keyframes sbgBlink{50%{opacity:.4}}
#fr-try .fr-try-links{text-align:center;justify-content:center;display:flex;gap:28px;flex-wrap:wrap;margin-top:32px}
#fr-try .fr-try-links a{color:#c9a35a!important;border-color:rgba(201,163,90,.5)!important}
