/* The game deck: illuminated controls, inset screens, and a shared play station. */
.game-console{position:relative;padding:26px;border:1px solid #52718d;border-radius:22px;background:linear-gradient(135deg,#203b59,#0b1b30 62%);box-shadow:inset 0 2px #b6def530,0 16px 40px #0004;overflow:hidden}
.console-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px;padding:0 3px 18px;border-bottom:1px solid #496580}
.console-header p{margin:0;color:#bfd3e4;font-size:11px;font-weight:700;letter-spacing:2px}.console-status{display:flex;align-items:center;gap:9px;color:#9cf1cd;font-size:10px;letter-spacing:1px}.console-status::before{content:"";width:7px;height:7px;background:#8bf1bf;border-radius:50%;box-shadow:0 0 12px #6fffb0}
.game-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
.game-switch{position:relative;display:flex;flex-direction:column;align-items:stretch;min-height:290px;padding:22px;border:1px solid var(--control-edge);border-bottom:7px solid var(--control-base);border-radius:14px;color:var(--control-ink);background:linear-gradient(145deg,var(--control-light),var(--control-dark));box-shadow:inset 0 2px #ffffff50,0 6px 0 #030c19,0 12px 22px #0004;transition:transform .15s,filter .15s}
.game-switch::before,.game-switch::after{content:"";position:absolute;top:10px;width:5px;height:5px;border:1px solid #ffffff55;background:#0004;border-radius:50%}.game-switch::before{left:10px}.game-switch::after{right:10px}.game-switch:hover{transform:translateY(-3px);filter:brightness(1.08)}.game-switch:active{transform:translateY(3px);box-shadow:inset 0 2px #ffffff50,0 2px 0 #030c19}
.switch-display{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;margin-bottom:20px;min-height:110px;background:#071426e8;border:1px solid #ffffff36;border-radius:9px;box-shadow:inset 0 4px 12px #0008;color:#c5b0ff}
.mint .switch-display{color:#8ff0d4}.blue .switch-display{color:#8ed7ff}.peach .switch-display{color:#ffdc85}.switch-display>svg{width:78px;height:78px;stroke-width:1.6;filter:drop-shadow(0 0 9px #ffffff22)}.switch-readout{text-align:right;font-family:Consolas,monospace;font-size:10px;line-height:1.7;letter-spacing:1px}.switch-readout b{display:block;font-size:30px;line-height:1.25;font-weight:400}.switch-readout small{display:block;color:#afc7dc;font-size:9px;letter-spacing:1px}
.game-switch h2{font-size:24px;letter-spacing:-.5px;line-height:1.2;margin:0 0 10px;color:inherit}.game-switch p{font-size:14px;line-height:1.65;margin:0 0 21px;max-width:330px}.switch-launch{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:750;margin-top:auto;padding-top:14px;border-top:1px solid #ffffff38}.switch-launch svg{width:19px;height:19px}.peach .switch-launch{border-color:#553b223d}
.console-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:26px 3px 0;color:#a8c3d8;font-size:10px;letter-spacing:1px}.console-bars{display:flex;gap:4px;align-items:flex-end;height:17px}.console-bars i{display:block;width:5px;height:8px;background:#73c8db}.console-bars i:nth-child(2){height:13px}.console-bars i:nth-child(3){height:17px}.console-bars i:nth-child(4){height:11px}.console-bars i:nth-child(5){height:14px;background:#ffd172}
.game-back{display:inline-flex;align-items:center;gap:8px;color:#a4def1;font-size:13px;margin:0 0 20px;padding:8px 0}.game-back svg{width:17px;transform:rotate(180deg)}.game-page-heading{margin-bottom:22px}.game-page-heading p:last-child{max-width:760px;font-size:15px;line-height:1.8}
.game-station{padding:20px;background:linear-gradient(140deg,#1b3551,#0a192d);border:1px solid #4a6c88;border-radius:18px;box-shadow:inset 0 2px #b6def522,0 12px 30px #0003}
.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding-bottom:16px}.game-toolbar>span{color:#ffd172;font-size:10px;font-weight:700;letter-spacing:1.8px}.game-actions{display:flex;gap:8px;flex-wrap:wrap}.game-actions button{min-height:42px;background:#203b58;color:#ecf5ff;border:1px solid #6a89a6;border-radius:7px;padding:9px 13px;font-size:12px;box-shadow:inset 0 1px #ffffff20,0 3px #030c19}.game-actions button:hover{background:#304e70}
.game-stage{position:relative;overflow:hidden;border:1px solid #486580;border-radius:10px;background:#10243c;min-height:170px;isolation:isolate}.game-stage:fullscreen{display:flex;align-items:center;justify-content:center;border:0;border-radius:0;background:#071426}.game-stage:fullscreen #phaser-example{width:100%;height:100%;max-height:100vh;max-width:1144px;aspect-ratio:auto}
#phaser-example{position:relative;width:100%;max-width:1024px;aspect-ratio:var(--game-ratio,4 / 3);margin:auto;overflow:hidden}#phaser-example canvas{display:block;max-width:100%;max-height:100%;touch-action:none}
.game-stage.is-html-game #phaser-example{aspect-ratio:auto;max-width:none;overflow:visible}
.game-exit-fullscreen{display:none;position:absolute;z-index:6;top:12px;right:12px;min-height:44px;padding:10px 15px;background:#10243cf2;color:#fff3d3;border:1px solid #a8c6df;border-radius:7px;font-size:13px}.game-stage:fullscreen .game-exit-fullscreen{display:block}
#game-status{position:absolute;z-index:4;top:12px;left:12px;right:12px;padding:12px 15px;border:1px solid #698aab;border-radius:7px;color:#fff3d3;background:#0b1b30f5;font-size:13px;pointer-events:none}#game-status[hidden],#phaser-example[hidden],.faith-launch[hidden],.game-credits[hidden],.game-actions button[hidden]{display:none}
.faith-launch{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:350px;padding:40px 25px;background:radial-gradient(ellipse at 50% 100%,#7352ac55,transparent 70%),linear-gradient(#10243cb5,#10243ce8),url('../nasa-starfield.jpg') center/cover}.faith-launch>svg{width:65px;height:65px;color:#ffd172;margin-bottom:20px}.faith-launch h2{font-size:29px;color:#fff3d3}.faith-launch p{color:#c7daec;font-size:14px}.faith-launch .button{margin-top:8px}.game-help{margin:18px 0 0;color:#b7cde0;font-size:12px;line-height:1.8}.game-credits{font-size:11px;color:#a9c2d8;line-height:1.8;margin:17px 3px 0}.game-credits a{text-decoration:underline;text-underline-offset:3px}
@media(min-width:1450px){.game-switch{min-height:325px;padding:26px}.switch-display{min-height:125px}.switch-display>svg{width:90px;height:90px}}
@media(max-width:950px){.game-console{padding:22px}.game-switches{gap:20px}.game-switch{padding:20px}.game-switch h2{font-size:22px}}
@media(max-width:540px){.game-console{padding:19px 16px;border-radius:17px}.console-header{align-items:flex-start;margin-bottom:20px}.console-header p{font-size:10px;letter-spacing:1.3px}.console-status{font-size:8px;letter-spacing:.5px}.game-switches{grid-template-columns:1fr;gap:23px}.game-switch{min-height:280px}.switch-display{min-height:100px;margin-bottom:18px}.game-switch h2{font-size:25px}.game-switch p{font-size:14px}.console-footer{font-size:8px;letter-spacing:.6px}.game-station{padding:13px}.game-toolbar{gap:12px}.game-actions{gap:6px}.game-actions button{padding:8px 10px;font-size:11px;min-height:44px}.game-page-heading p:last-child{font-size:14px}.faith-launch{min-height:330px;padding:30px 20px}.faith-launch h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.game-switch{transition:none}.game-switch:hover,.game-switch:active{transform:none}}
.h5p-station-screen{background:#10243c;border:1px solid #486580;border-radius:10px;padding:18px;overflow:hidden;min-height:200px}.h5p-station-screen iframe.h5p-iframe{display:block;width:100%;max-width:100%;border:0}.h5p-station-screen .h5p-content{border:0}@media(max-width:540px){.h5p-station-screen{padding:10px}}
@media(min-width:1250px){.game-switches{grid-template-columns:repeat(3,minmax(0,1fr))}.switch-display>svg{width:62px;height:62px}.game-switch h2{font-size:22px}.switch-readout{font-size:9px}.switch-readout small{font-size:8px}}@media(min-width:1600px){.game-switches{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Ribbon deck: change red to purple here to recolor every game button. */
:root{--games-ribbon:url('../ribbon-red.png')}
.game-console{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}.console-header{border:0;margin:0 0 22px;padding:0 6px;justify-content:center;gap:24px}.console-header p{font-size:10px;letter-spacing:2px;color:#c9d9ed}.console-status{color:#ffe175;font-size:10px}.console-status::before{background:#ffdb60;box-shadow:0 0 9px #ffb900}.game-switches{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 35px}.game-switch.banner-game{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0;min-height:0;background:transparent;border:0;border-radius:8px;box-shadow:none;color:#fff;--banner:var(--games-ribbon)}.game-switch.banner-game::before,.game-switch.banner-game::after{display:none}.game-switch.banner-game h2.banner-label{width:100%;min-height:0;aspect-ratio:3.02;flex-shrink:0;margin:0;font:900 clamp(30px,3.1vw,45px)/.94 var(--display-font);letter-spacing:-.5px;color:#fffdf0;padding:6% 8% 4%;text-shadow:0 2px #7c130b,1px 3px #30110c;background:var(--banner) center/100% auto no-repeat}.game-switch.banner-game p{margin:12px 12px 0;max-width:310px;font-size:16px;line-height:1.55;font-weight:600;color:#ecf3ff}.game-switch.banner-game .switch-launch{margin:12px 0 0;padding:0;border:0;color:#ffdb67;font-size:13px;gap:8px;justify-content:center}.game-switch.banner-game:hover{transform:translateY(-4px);filter:brightness(1.12)}.game-switch.banner-game:active{box-shadow:none;transform:translateY(1px)}.console-footer{justify-content:center;padding:42px 0 0;font-size:10px;color:#d3e2f4}.game-back{color:#ffdf68}
@media(max-width:1000px){.game-switches{gap:32px 24px}.game-switch.banner-game h2.banner-label{font-size:clamp(28px,3.5vw,38px)}.game-switch.banner-game p{font-size:14px;margin-left:7px;margin-right:7px}}
@media(max-width:760px){.game-switches{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}.game-switch.banner-game h2.banner-label{font-size:clamp(26px,5.6vw,39px)}.game-switch.banner-game p{font-size:14px}.console-header{gap:14px;margin-bottom:24px}}
@media(max-width:480px){.game-switches{gap:27px 10px}.game-switch.banner-game h2.banner-label{font-size:clamp(23px,6.4vw,31px);padding:5% 8% 3%;line-height:.92;min-height:64px;aspect-ratio:2.7}.game-switch.banner-game p{font-size:12px;line-height:1.45;margin:9px 5px 0}.game-switch.banner-game .switch-launch{font-size:12px;margin-top:8px}.switch-launch svg{width:16px;height:16px}.console-header p,.console-status{font-size:9px}.console-header{gap:15px}.console-footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){.game-switch.banner-game{transition:none}.game-switch.banner-game:hover,.game-switch.banner-game:active{transform:none}}
.game-switch.banner-game h2.banner-label{white-space:nowrap}
@media(max-width:480px){.game-switch.banner-game h2.banner-label{font-size:clamp(18px,5.4vw,24px);letter-spacing:-.3px;min-height:0;aspect-ratio:3.02;padding:6% 6% 4%}}
