/* Palette and composition drawn from the original homepage photograph. */
:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #242b39; background: transparent; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #975037; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 12px; background: #f2eddf; z-index: 2; }
.skip-link:focus { top: 12px; }
.site-frame { max-width: 1200px; margin: 24px auto; background: #eee9db; box-shadow: 0 12px 50px #050a1240; }
/* The header owns the full page width; the media retains its complete frame. */
.hero { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; background: none; line-height: 0; isolation: isolate; }
.hero video { display: block; width: 100%; height: auto; object-fit: initial; object-position: center; background: transparent; margin: 0; }
.hero, .navigation-band, .content { width: 100%; }
.navigation-band { background: linear-gradient(#b0ada6, #d3cec1 55%, #e4dfd1); border-top: 1px solid #d9d5c9; border-bottom: 1px solid #a6a394; box-shadow: 0 2px 3px #524e3c20; }
nav { display: flex; min-height: 56px; align-items: stretch; padding: 7px 0; }
nav a { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; padding: 9px 12px; text-align: center; font-size: 14px; font-weight: bold; text-decoration: none; text-shadow: 0 1px #ffffff70; }
nav a + a::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: #8e8c83; box-shadow: 2px 0 1px #f5f0e2; }
nav a:hover { background: #fff5dd40; }
.content { padding: 26px 28px 0; background: transparent; }
.feature-panels { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; }
.feature { position: relative; min-width: 0; min-height: 300px; padding: 62px 26px 24px 80px; border: 1px solid #c3bdab; box-shadow: inset 1px 1px #fff9eb, inset -1px -1px #b6ae9930; }
/* A single beveled cross, rotated into an X, shares the piece's center. */
.feature { --piece-x: 42px; --piece-y: 48px; overflow: hidden; isolation: isolate; }
.feature::before { content: ''; position: absolute; left: var(--piece-x); top: var(--piece-y); width: 220px; height: 220px; transform: translate(-50%, -50%); background: url('./assets/branding/panel-cross.svg') center / contain no-repeat; pointer-events: none; z-index: -1; }
.demo-panel::before { width: 230px; height: 230px; }
.play-panel { background: linear-gradient(135deg, #dedbcb, #f5f1e5 65%); }
.demo-panel { background: linear-gradient(145deg, #b7a581, #d1c4a6 60%, #ece5d3); }
.emblem { position: absolute; left: 4px; top: 10px; display: block; width: 76px; height: 76px; object-fit: contain; }
/* BMP source corners are green; retain the original piece artwork inside. */
.emblem-round { clip-path: circle(35% at 50% 50%); }
.emblem-diamond { clip-path: polygon(50% 4%, 96% 50%, 50% 96%, 4% 50%); }
h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.panel-content { display: flex; flex-direction: column; height: 100%; }
.panel-tagline { margin: 20px 0 30px; font-size: 16px; line-height: 1.6; color: #48483f; }
.action-area { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.play-link { display: inline-flex; justify-content: center; align-items: center; min-height: 60px; width: min(100%, 280px); padding: 12px 20px; border-radius: 10px; border: 1px solid #9c5037; background: linear-gradient(#bf7957, #ad533d); box-shadow: inset 0 2px 2px #f3c29899, 0 2px 3px #6e59413b; color: #fff1d4; text-shadow: 0 2px 1px #623626; font-size: 25px; font-weight: bold; text-decoration: none; }
.play-link[href]:hover { background: linear-gradient(#cf8962, #b96146); }
.play-link[aria-disabled=true] { cursor: default; }
.demo-button { min-height: 40px; width: min(100%, 172px); border: 1px solid #66615c; border-radius: 6px; background: linear-gradient(#6e6864, #494651); box-shadow: inset 0 2px 2px #dfd6bd88, 0 2px 3px #6e594133; color: #f2e6c8; font-size: 18px; font-weight: bold; letter-spacing: .04em; opacity: 1; }
.action-status { color: #555348; font-size: 11px; text-align: center; }
[hidden] { display: none !important; }
.section-placeholders { display: flex; flex-wrap: wrap; column-gap: 32px; padding: 26px 0; }
.section-placeholders section { flex: 1 1 180px; padding: 12px 0; }
.section-placeholders h2 { font-size: 13px; color: #eee5cd; }
.section-placeholders p { margin: 8px 0 0; font-size: 12px; color: #d6d0bd; }
section { scroll-margin-top: 20px; }
footer { display: flex; justify-content: space-between; gap: 16px; margin: 0 28px; padding: 18px 0 22px; border-top: 1px solid #c6bfad; color: #706751; font-size: 11px; }
footer span:first-child { color: #273244; font-weight: bold; letter-spacing: .06em; }
@media (max-width: 1248px) { .site-frame { margin: 16px 24px; } }
@media (max-width: 800px) {
 .site-frame { margin: 0; }
 nav a { font-size: 12px; padding: 9px 7px; }
 .content { padding: 20px 18px 0; }
 .feature-panels { gap: 16px; }
 .feature { padding: 88px 22px 24px; }
 .feature { --piece-x: 48px; }
 .emblem { left: 10px; }
 h2 { font-size: 16px; }
 footer { margin: 0 18px; }
}
@media (max-width: 560px) {
 nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 0; }
 nav a { min-height: 40px; }
 nav a:nth-child(4)::before { display: none; }
 .feature-panels { grid-template-columns: 1fr; }
 .feature { min-height: 250px; padding: 32px 20px 24px 80px; }
 .feature { --piece-x: 39px; --piece-y: 49px; }
 .emblem { left: 4px; top: 14px; width: 70px; height: 70px; }
 .panel-tagline { font-size: 15px; }
 .play-link { font-size: 23px; }
 .section-placeholders { column-gap: 18px; padding: 18px 0; }
 .section-placeholders section { flex-basis: 130px; }
}

.audio-toggle { z-index: 1; position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 8px 11px; border: 1px solid #b6ad9270; border-radius: 3px; background: #142031dc; box-shadow: inset 0 1px #eee5cd18; color: #eee5cd; font: 11px Arial, sans-serif; cursor: pointer; }
.audio-toggle:hover { background: #283449; border-color: #cfc3a5; }
.audio-toggle .audio-on, .audio-toggle[aria-pressed=true] .audio-off { display: none; }
.audio-toggle[aria-pressed=true] .audio-on { display: block; }
@media (max-width: 560px) { .audio-toggle { right: 8px; bottom: 8px; } .audio-toggle span { display: none; } }

/* Replaceable Limited Edition media: full frames, photo followed by video. */
.limited-edition { position: relative; padding: 28px 0 36px; border-top: 1px solid #c6bfad; }
.limited-edition h2 { margin: 0 0 24px; color: #273244; font-size: 22px; letter-spacing: .06em; }
.limited-edition figure { margin: 0; padding: 5px; border: 1px solid #bdb5a2; background: #ded7c5; box-shadow: inset 0 1px #fff8e8; }
.limited-edition .limited-edition-video { margin-top: 32px; }
.limited-edition img, .limited-edition video { display: block; width: 100%; height: auto; object-fit: contain; }
.limited-edition video { background: #17283d; }
.limited-edition-about { margin: 0; }
.limited-edition-photos { margin-top: -12px; }
.limited-edition-about[open] { margin-bottom: 24px; }
.limited-edition-about summary { display: block; width: max-content; max-width: 100%; padding: 2px 0; color: #676457; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.limited-edition-about summary::-webkit-details-marker { display: none; }
.limited-edition-about summary::marker { content: ''; }
.limited-edition-about summary:hover { color: #693c2c; }
.limited-edition-about-content { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; padding-top: 30px; }
.limited-edition-text-content { width: 100%; padding-top: 30px; color: #48483f; }
.limited-edition-text-content h3 { margin: 0; color: #273244; font: 700 18px/1.35 Georgia, 'Times New Roman', serif; letter-spacing: .045em; text-align: center; }
.limited-edition-text-content p { margin: 11px 0 0; font-size: 14px; line-height: 1.65; }
.limited-edition-text-content h4 { margin: 24px 0 10px; color: #273244; font: 700 14px/1.4 Georgia, 'Times New Roman', serif; letter-spacing: .035em; }
.limited-edition-values { width: 100%; overflow-x: auto; }
.limited-edition-values table { width: 100%; border-collapse: collapse; color: #48483f; font-size: 13px; line-height: 1.45; }
.limited-edition-values th, .limited-edition-values td { padding: 5px 16px 5px 0; text-align: left; white-space: nowrap; }
.limited-edition-values th { color: #343a45; font-weight: 700; }
.limited-edition-real-game { margin-top: 32px; }
.limited-edition-real-game h3 { margin: 0; color: #273244; font-size: 18px; letter-spacing: .04em; }
.limited-edition-real-game p { margin: 8px 0 0; color: #48483f; font-size: 14px; line-height: 1.5; }
.limited-edition .limited-edition-real-game-video { margin-top: 14px; }
.limited-edition-real-game-video video { background: #17283d url('./assets/limited-edition/full-game-poster.jpg') center / contain no-repeat; }
.limited-edition-video:not(.limited-edition-real-game-video) video { background: #17283d url('./assets/limited-edition/game-opening-poster.jpg') center / contain no-repeat; }
@media (max-width: 560px) {
 .limited-edition { padding: 22px 0 28px; }
 .limited-edition h2 { font-size: 19px; }
 .limited-edition .limited-edition-video { margin-top: 24px; }
 .limited-edition-about summary { font-size: 10px; }
 .limited-edition-about[open] { margin-bottom: 20px; }
 .limited-edition-about-content { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(144px, 68vw); gap: 10px; padding-top: 27px; overflow-x: auto; overscroll-behavior-inline: contain; }
 .limited-edition-text-content { padding-top: 27px; }
 .limited-edition-text-content h3 { font-size: 16px; }
 .limited-edition-text-content p { font-size: 13px; line-height: 1.58; }
 .limited-edition-text-content h4 { font-size: 13px; }
 .limited-edition-values table { font-size: 12px; }
 .limited-edition-real-game { margin-top: 24px; }
 .limited-edition-real-game h3 { font-size: 16px; }
 .limited-edition .limited-edition-real-game-video { margin-top: 12px; }
}

/* History media follows the site's existing native-video behavior. */
.history-page h3 { margin: 18px 0 12px; font-size: 15px; color: #273244; }
.history-story { margin: 22px 0 42px; }
.history-story h3 { margin: 0; font: 700 18px/1.35 Georgia, 'Times New Roman', serif; letter-spacing: .045em; text-align: center; }
.history-page .history-story p { margin: 11px 0 0; color: #48483f; font-size: 14px; line-height: 1.65; }
.history-video { margin: 0; }
.history-video video { display: block; width: 100%; height: auto; object-fit: contain; background: #17283d url('./assets/history/frontiers-on-tv-en-subs-poster.jpg') center / contain no-repeat; }
@media (max-width: 560px) {
 .history-story { margin: 18px 0 34px; }
 .history-story h3 { font-size: 16px; }
 .history-page .history-story p { font-size: 13px; line-height: 1.58; }
}

/* Standalone How to Play video; the existing presentation remains separate. */
.how-to-play-page > .how-to-play-video { margin: 0; }
.how-to-play-page > .how-to-play-video video { display: block; width: 100%; height: auto; object-fit: contain; background: #17283d url('./assets/media/game-start-en-subs-poster.jpg') center / contain no-repeat; }

/* Extend the existing native PLAY link across its complete panel. */
.play-link[href]::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.play-panel:has(.play-link[href]) { cursor: pointer; }
.play-panel:has(.play-link:focus-visible) { outline: 3px solid #1a2a44; outline-offset: 3px; }
