/* Game showcase — extends the existing SeaOne Education palette. */
.games-page { background: #fff; -webkit-font-smoothing: antialiased; }
.games-main { padding-top: 84px; }
.game-container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.games-main h1,.games-main h2,.games-main h3,.games-main p { margin: 0; }
.games-main section[id],.work-card[id] { scroll-margin-top: 110px; }
.games-main a:focus-visible,.games-main button:focus-visible { outline: 3px solid #e14b38; outline-offset: 5px; }
.game-eyebrow { color: #005bac; font-size: .875rem; font-weight: 800; letter-spacing: .13em; }
.game-hero { padding: 25px 0 66px; background: linear-gradient(125deg,#f2f8ff 0%,#e2f1ff 75%,#daeaff 100%); overflow: hidden; border-bottom: 1px solid #c9dff2; }
.game-breadcrumb { display:flex; gap:14px; font-size:.875rem; color:#486888; margin-bottom: 43px !important; }
.game-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 34px; }
.game-label { font-size: 1rem; font-weight: 800; margin: 18px 0 14px !important; }
.game-hero h1 { font-size: clamp(2rem,3.7vw,3.25rem); letter-spacing: -.045em; line-height: 1.5; font-weight: 900; }
.game-hero h1 em { font-style: normal; color: #005bac; }
.game-hero-lead { font-size: 1.06rem; color: #33537f; margin-top: 20px !important; line-height: 1.95; }
.game-actions { display: flex; flex-wrap: wrap; gap: 18px 25px; align-items: center; margin-top: 28px; }
.games-main .button { font-size: 1rem; min-height: 54px; text-align: center; }
.game-text-link { display: inline-block; font-weight: 800; color: #005bac; text-decoration: underline; text-underline-offset: 5px; }
.game-hero-art { position: relative; padding: 0 0 0 15px; }
.hero-work-label { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; font-weight: 800; margin-bottom: 13px; color: #005bac; }
.hero-screen { display: block; background: #072e61; padding: 12px; border-radius: 19px; box-shadow: 0 22px 45px #00346624; transform: rotate(-2deg); transition: transform .2s; }
.hero-screen:hover { transform: rotate(0); }
.hero-screen img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 9px; }
.hero-screen-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 2px; color: #fff; font-size: .875rem; }
.hero-screen-caption strong { font-size: 1.3rem; }
.hero-mini-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 23px; }
.hero-mini-row img { width: 36%; aspect-ratio: 16/10; object-fit: cover; border: 5px solid #fff; border-radius: 11px; transform: rotate(3deg); box-shadow: 0 8px 24px #00346622; }
.hero-mini-row p { font-size: .95rem; color: #33537f; }
.hero-mini-row strong { color: #005bac; }
.game-intro { padding: 64px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 65px; align-items: center; }
.games-main h2 { font-size: clamp(1.65rem,2.8vw,2.4rem); line-height: 1.55; letter-spacing: -.03em; }
.game-intro h2 { margin-top: 12px; }
.intro-grid>div>p:not(.game-eyebrow) { font-size: 1rem; line-height: 2; color: #33537f; }
.intro-grid>div>p+p { margin-top: 13px; }
.game-showcase { background: #f0f6fd; padding: 75px 0; }
.showcase-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.showcase-heading h2 { margin: 9px 0 13px; }
.showcase-heading p { color: #33537f; }
.work-total { display: flex; flex-direction: column; align-items: end; white-space: nowrap; }
.work-total strong { color: #005bac; font-size: 4rem; line-height: 1.1; letter-spacing: -.06em; }
.work-total span { font-size: .875rem; margin-top: 8px; }
.game-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; border-bottom: 1px solid #bbd3ed; padding-bottom: 16px; margin-bottom: 30px; }
.game-tabs button { background: #fff; color: #33537f; border: 1px solid #c0d5ec; border-radius: 10px; padding: 14px 18px; font-size: 1.5rem; font-weight: 800; cursor: pointer; display: flex; justify-content: center; gap: 14px; align-items: center; transition: background .15s; }
.game-tabs button span { font-size: .875rem; font-weight: 600; }
.game-tabs button:hover { background: #e1eeff; }
.game-tabs button[aria-selected="true"] { background: #005bac; color: #fff; border-color: #005bac; box-shadow: 0 7px 16px #005bac26; }
.year-panel[hidden] { display: none; }
.year-panel { margin-bottom: 30px; }
.year-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 19px; }
.year-heading h3 { font-size: 1.15rem; }
.year-heading>span { font-size: .875rem; color: #476481; letter-spacing: .1em; }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; align-items: start; }
.work-card { background: #fff; border: 1px solid #d7e3f1; border-radius: 17px; overflow: hidden; box-shadow: 0 6px 20px #0c396809; }
.work-player { aspect-ratio: 16/9; position: relative; background: #082a51; }
.work-play { display: block; width: 100%; height: 100%; padding: 0; border: 0; position: relative; cursor: pointer; overflow: hidden; background: #082a51; color: #fff; }
.work-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.work-play:hover img { transform: scale(1.025); }
.work-play::after { content: ''; position:absolute; inset: 45% 0 0; background: linear-gradient(transparent,#062645d9); pointer-events: none; }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #005bac; font-size: 24px; z-index: 1; padding-left: 4px; box-shadow: 0 4px 20px #0003; }
.play-caption { position: absolute; z-index: 1; left: 22px; bottom: 17px; font-size: .875rem; font-weight: 800; }
.work-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.work-body { padding: 24px; }
.work-meta { color: #526b86; font-size: .875rem; }
.work-body h3 { font-size: 1.35rem; line-height: 1.55; margin-top: 6px; overflow-wrap: anywhere; }
.work-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top: 13px; }
.work-tags span { color:#005bac; background:#edf5ff; padding:4px 9px; border-radius:5px; font-size:.875rem; }
.work-description { color:#33537f; font-size:1rem; line-height:1.85; margin-top:16px !important; }
.youtube-link { margin-top: 20px; display:flex; justify-content:space-between; border-top:1px solid #e3ebf4; padding-top:13px; font-size:.875rem; font-weight:800; color:#005bac; }
.youtube-link:hover { text-decoration: underline; }
.works-empty { padding: 65px 24px; text-align: center; border: 1px dashed #a2c3e4; border-radius: 17px; background: #fff; }
.works-empty h3 { font-size: 1.6rem; margin-top: 13px; }
.works-empty p:not(.game-eyebrow) { color:#33537f; margin:16px 0 23px; }
.showcase-note { font-size: .875rem; color:#526b86; line-height:1.9; margin-top:28px !important; }
.showcase-note a { text-decoration: underline; text-underline-offset:3px; }
.game-learning { padding:75px 0 85px; }
.game-learning>.game-container>h2 { margin-top:12px; }
.learning-lead { color:#33537f; margin-top:15px !important; }
.learning-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin:35px 0 55px; }
.learning-grid article { border-top:2px solid #005bac; padding-top:19px; }
.learning-grid article>span { color:#005bac; font-size:.875rem; font-weight:800; letter-spacing:.07em; }
.learning-grid h3 { margin:12px 0 9px; font-size:1.25rem; }
.learning-grid p { font-size:1rem; color:#33537f; }
.game-cta { background:#073c78; color:#fff; border-radius:20px; padding:40px; display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:30px; }
.game-cta .game-eyebrow { color:#bcddff; }
.game-cta h2 { font-size:1.85rem; margin:10px 0; }
.game-cta p { font-size:1rem; }
.game-cta-actions { display:flex; flex-direction:column; align-items:center; gap:19px; }
.game-cta .game-text-link { color:#fff; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mobile-break { display:none; }
@media(max-width:980px) {
 .game-hero-grid { gap:26px; } .game-hero h1 { font-size:2.2rem; }
 .hero-mini-row { gap:12px; } .hero-mini-row p { font-size:.875rem; }
 .intro-grid { gap:30px; } .game-cta { grid-template-columns:1fr; }
 .game-cta-actions { align-items:flex-start; } .learning-grid { gap:20px; }
}
@media(max-width:720px) {
 .games-main { padding-top:76px; } .game-container { width:calc(100% - 36px); }
 .game-hero { padding:20px 0 40px; } .game-breadcrumb { margin-bottom:28px !important; }
 .game-hero-grid { grid-template-columns:1fr; gap:38px; } .game-hero-art { padding:0 7px; }
 .game-hero h1 { font-size:clamp(1.75rem,7.8vw,3rem); } .game-hero-lead { font-size:1rem; }
 .game-hero-art { max-width:520px; } .hero-screen img { aspect-ratio:16/9; }
 .hero-mini-row { margin-top:19px; justify-content:flex-start; }
 .intro-grid { grid-template-columns:1fr; gap:22px; } .game-intro { padding:45px 0; }
 .game-showcase { padding:45px 0; } .showcase-heading { align-items:start; gap:12px; }
 .work-total strong { font-size:2.7rem; } .work-total span { font-size:.75rem; white-space:normal; max-width:6em; text-align:right; }
 .showcase-heading h2 { font-size:1.6rem; } .showcase-heading>div>p:last-child { font-size:.95rem; }
 .mobile-break { display:initial; } .game-tabs { gap:7px; }
 .game-tabs button { flex-direction:column; gap:0; padding:11px 3px; font-size:1.25rem; }
 .game-tabs button span { font-size:.875rem; }
 .work-grid { grid-template-columns:1fr; gap:23px; } .work-body { padding:21px; }
 .game-learning { padding:45px 0; } .learning-grid { grid-template-columns:1fr; gap:25px; margin-bottom:35px; }
 .game-cta { padding:28px 22px; } .game-cta h2 { font-size:1.5rem; }
 .game-cta .button { width:100%; font-size:.95rem; padding:14px; }
 .game-eyebrow { letter-spacing:.08em; font-size:.875rem; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .games-main * { transition:none !important; } }

/* 2026-09-08: single photographic hero, paired with the education page. */
.game-hero-photo { min-width: 0; }
.game-hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: 0 22px 45px #00346624; }
@media (max-width: 720px) { .game-hero-photo img { border-radius: 16px; } }

/* v4: edge-to-edge photographic hero with a soft transition into the copy. */
.game-hero { position:relative; isolation:isolate; min-height:620px; padding:25px 0 0; background:#eaf4ff; }
.game-hero>.game-container { position:static; }
.game-breadcrumb { position:relative; z-index:2; margin-bottom:35px !important; }
.game-hero-grid { display:block; }
.game-hero-copy { position:relative; z-index:2; width:46%; max-width:490px; padding:12px 0 60px; }
.game-hero h1 { font-size:clamp(2rem,3.35vw,3.25rem); }
.game-hero-photo { position:absolute; z-index:0; inset:0 0 0 44%; margin:0; }
.game-hero-photo img { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:50% 40%; border-radius:0; box-shadow:none; }
.game-hero-photo::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,#eaf4ff 0%,rgba(234,244,255,.9) 3%,rgba(234,244,255,.28) 12%,transparent 23%); }
.game-photo-note { position:absolute; right:18px; bottom:14px; z-index:1; padding:4px 9px; border-radius:4px; background:rgba(255,255,255,.9); color:#334c65; font-size:.875rem; line-height:1.6; }
@media(min-width:1600px) { .game-hero-photo { left:calc(50% - 155px); } }
@media(max-width:1100px) {
 .game-hero { min-height:0; padding:24px 0 0; }
 .game-hero-copy { width:100%; max-width:none; padding:0 0 30px; }
 .game-hero h1 { font-size:clamp(2rem,4.5vw,3.2rem); }
 .game-hero-photo { position:relative; inset:auto; width:100vw; margin-left:calc(50% - 50vw); height:clamp(300px,52vw,560px); }
 .game-hero-photo img { object-position:center 40%; }
 .game-hero-photo::after { background:linear-gradient(180deg,#eaf4ff 0%,rgba(234,244,255,.25) 10%,transparent 24%); }
 .game-photo-note { right:16px; bottom:12px; }
}
@media(max-width:520px) {
 .game-hero h1 { font-size:clamp(1.75rem,7.8vw,2.5rem); }
 .game-hero-photo { height:auto; aspect-ratio:3/2; }
 .game-photo-note { right:10px; bottom:10px; font-size:.75rem; }
}

/* v5: Megumi Games video showcase. */
.megumi-work-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.megumi-official-link { display:block; margin-top:20px; padding:12px 14px; border-radius:8px; background:#005bac; color:#fff; text-align:center; font-size:.875rem; font-weight:800; }
.megumi-official-link:hover { background:#08477e; }
.work-body .megumi-platform-note { margin-top:8px; font-size:.875rem; color:#526b86; }
@media(max-width:1000px) { .megumi-work-grid { grid-template-columns:1fr; } }
