:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --white: #fffef9;
  --ink: #183d34;
  --muted: #59665e;
  --line: #dbdfd3;
  --orange: #f9b66c;
  --green: #dce9ce;
  --radius: 26px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #ae4b14; outline-offset: 5px; border-radius: 6px; }
main:focus { outline: none; }
svg { display: block; flex-shrink: 0; }
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.shell { width: min(100%, 1184px); margin-inline: auto; padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 16px; padding: 14px 20px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: calc(8px + env(safe-area-inset-top)); }
.site-header { padding-top: env(safe-area-inset-top); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.brand-light { font-weight: 500; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.main-nav, .footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.main-nav a, .footer-nav a { min-width: 44px; min-height: 48px; padding: 14px 12px; display: inline-flex; justify-content: center; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.main-nav a[aria-current], .footer-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.main-nav a:hover, .footer-nav a:hover { color: #a94511; }
main { flex: 1; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.home-main { padding-top: 46px; padding-bottom: 26px; }
.home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.home-heading h1 { font-size: clamp(42px, 4.8vw, 64px); font-weight: 750; line-height: .99; letter-spacing: -.06em; margin-top: 14px; }
.home-heading h1 span { color: #57764b; }
.home-intro { font-size: 16px; line-height: 1.65; color: var(--muted); padding-bottom: 4px; }
.game-card { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--white); }
.card-visual { position: relative; aspect-ratio:3/2; min-height: 328px; background: var(--green); isolation: isolate; overflow: hidden; }
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 7px 12px; color: var(--ink); background: var(--white); border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .015em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.card-visual > .status { position: absolute; z-index: 2; top: 22px; left: 22px; }
.status-light { background: #e8ecdf; }
.cover-image { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:center; }
.card-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 34px 42px; }
.card-body .eyebrow { color: #607451; }
.card-body h2 { margin-top: 13px; font-size: clamp(29px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.1; font-weight: 700; }
.card-body > p:not(.eyebrow) { color: var(--muted); margin-top: 15px; font-size: 15px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 50px; margin-top: 26px; padding: 14px 20px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 650; }
.button svg, .text-link svg { width: 18px; height: 18px; }
.home-note { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 0 8px; color: var(--muted); font-size: 12px; }
.note-line { width: 32px; height: 1px; background: var(--line); }
.site-footer { padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; border-top: 1px solid var(--line); }
.footer-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: #7a8b62; flex: 0 0 auto; }
.footer-nav { gap: 2px; }
.footer-nav a { padding-inline: 10px; font-size: 12px; }
.game-main { padding-top: 30px; padding-bottom: 24px; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.game-heading h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.04em; margin-top: 7px; }
.game-heading .eyebrow { color: var(--muted); font-size: 10px; }
.game-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 320px; min-height: clamp(280px, 49svh, 470px); padding: 26px; background: var(--ink); color: var(--white); border-radius: var(--radius); text-align: center; }
.embedded-game { position: relative; overflow: hidden; min-height: 330px; border: 1px solid var(--line); border-radius: var(--radius); background: #f4f5ee; }
.embedded-game iframe { display: block; width: 100%; height: 760px; border: 0; }
.embedded-game[data-state="loading"] iframe, .embedded-game[data-state="error"] iframe { height: 330px !important; visibility: hidden; }
.embed-message { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; color: var(--ink); }
.embedded-game[data-state="ready"] .embed-message { display: none; }
.embed-message p { max-width: 36ch; line-height: 1.6; }
.embed-retry { min-height: 48px; padding: 11px 18px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white); font: inherit; font-weight: 650; cursor: pointer; }
.embed-retry:focus-visible { outline: 3px solid #ae4b14; outline-offset: 4px; }
.embedded-game:not([data-state="error"]) .embed-retry { display: none; }
.stage-decoration { position: absolute; z-index: -1; width: min(68vw, 540px); height: min(68vw, 540px); border: 1px solid #426056; border-radius: 50%; }
.stage-decoration::before, .stage-decoration::after { content: ""; position: absolute; inset: -56px; border: 1px solid rgba(171,193,148,.13); border-radius: 50%; }
.stage-decoration::after { inset: -116px; }
.stage-mark { display: block; width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 21px; background: var(--orange); color: var(--ink); transform: rotate(-8deg); }
.stage-mark svg { width: 100%; height: 100%; transform: rotate(8deg); }
.stage-label { color: #c0cdae; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.stage-content h2 { margin-top: 10px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.045em; line-height: 1.1; font-weight: 650; }
.stage-content > p:last-child { margin-top: 16px; color: #d2ddcc; font-size: 14px; line-height: 1.65; }
.game-under { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 15px; }
.game-under p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.game-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; padding: 8px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.game-guide .article-section + .article-section { border-top: 0; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; font-size: 13px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.info-main { padding-top: 22px; padding-bottom: 55px; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.info-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.info-heading h1 { font-size: clamp(34px, 4vw, 50px); margin: 14px 0; letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; }
.info-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 16px; margin-bottom: 24px; }
.article-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 8px 30px; }
.article-section { padding-block: 25px; }
.article-section + .article-section { border-top: 1px solid var(--line); }
.article-section h2 { font-size: 17px; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 10px; }
.article-section p { color: var(--muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.article-section a { color: var(--ink); font-weight: 600; }
@media (hover: hover) {
  .game-card { transition: border-color .18s; }
  .game-card:hover { border-color: #778b6f; }
  .game-card:hover .button { background: #285d4c; }
  .text-link:hover, .back-link:hover { color: #a94511; text-decoration: underline; }
}
@media (max-width: 760px) {
  .shell { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .header-inner { min-height: 74px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding-inline: 9px; font-size: 13px; }
  .home-main { padding-top: 26px; }
  .home-heading { display: block; margin-bottom: 24px; }
  .home-heading h1 { font-size: 43px; margin-top: 10px; }
  .home-heading h1 br { display: none; }
  .home-intro { margin-top: 12px; font-size: 14px; }
  .home-intro br { display: none; }
  .game-card { grid-template-columns: 1fr; }
  .card-visual { min-height: 232px; }
  .card-visual > .status { left: 16px; top: 14px; }
  .card-body { padding: 23px; }
  .card-body h2 { font-size: 27px; margin-top: 9px; }
  .card-body > p:not(.eyebrow) { margin-top: 10px; font-size: 14px; }
  .card-body > p br { display: none; }
  .button { align-self: stretch; margin-top: 20px; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 3px; padding-top: 18px; padding-bottom: 12px; }
  .footer-nav { justify-content: center; }
  .game-main { padding-top: 23px; }
  .game-heading { margin-bottom: 18px; }
  .game-heading .status { font-size: 10px; padding-inline: 9px; }
  .game-under { align-items: flex-start; }
  .game-under p { padding-top: 12px; max-width: 52%; }
  .game-under .text-link { white-space: normal; text-align: right; }
  .game-guide { grid-template-columns: 1fr; gap: 0; padding-inline: 22px; }
  .game-guide .article-section + .article-section { border-top: 1px solid var(--line); }
  .info-layout { grid-template-columns: 1fr; gap: 25px; }
  .info-heading > p:not(.eyebrow) { margin-bottom: 16px; }
  .info-heading h1 { font-size: 38px; }
  .article-card { padding-inline: 22px; }
}
@media (max-width: 380px) {
  .shell { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { font-size: 18px; gap: 7px; }
  .header-inner { gap: 7px; }
  .main-nav a { padding-inline: 6px; font-size: 12px; }
  .home-heading h1 { font-size: 37px; }
  .game-heading { flex-wrap: wrap; gap: 10px; }
  .card-body { padding: 21px; }
  .stage-content h2 { font-size: 34px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-inner { min-height: 60px; }
  .game-main { padding-top: 14px; }
  .game-heading { margin-bottom: 12px; }
  .game-heading .eyebrow { display: none; }
  .game-stage { min-height: 230px; padding-block: 22px; }
  .stage-mark { width: 46px; height: 46px; margin-bottom: 10px; border-radius: 14px; }
  .stage-content h2 { font-size: 32px; }
  .stage-content > p:last-child { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media (max-width:760px) {
  .game-page .shell { padding-inline:max(12px,env(safe-area-inset-left)); }
  .game-page .header-inner { min-height:64px; }
  .game-page .game-main { padding-top:16px; }
  .game-page .game-heading { margin-bottom:14px; }
}

/* The loader is immediately available, before the iframe's modules arrive. */
.embed-message { background:radial-gradient(ellipse at 50% 35%,#fff7d4,#f4f5ee 75%); gap:19px; transition:opacity .22s; }
.embed-message p { font-size:17px; font-weight:700; color:#56775d; }
.loading-toy { position:relative; width:150px; height:120px; }
.loading-box { position:absolute; bottom:5px; left:5px; width:140px; height:62px; display:flex; align-items:center; justify-content:center; gap:8px; border-radius:17px; border:2px solid #fff4c0; background:linear-gradient(#ffdc82,#ffbb55); box-shadow:0 6px 0 #dc9a45; }
.loading-box i { width:30px; height:30px; border-radius:50%; background:#b9823530; box-shadow:inset 0 2px 3px #78562133; }
.loading-box i:first-child { background:#f87f97; border:2px solid #ffb8bf; box-shadow:0 2px 0 #cf557a; }
.loading-screw { position:absolute; z-index:2; top:2px; left:58px; width:36px; height:36px; display:grid; place-items:center; color:white; font-size:27px; font-weight:900; border-radius:50%; background:linear-gradient(135deg,#a38bff,#8160e5); box-shadow:inset 0 3px 0 #d1bfff,0 3px 0 #6346b0; animation:loader-screw 1.5s ease-in-out infinite; }
.loading-spark { position:absolute; top:25px; right:0; color:#ffb728; font-size:27px; animation:loader-spark 1.5s ease-in-out infinite; }
.embed-progress { width:min(235px,75%); height:12px; padding:3px; overflow:hidden; border-radius:20px; background:#dde7d6; box-shadow:inset 0 1px 3px #6a88532e; }
.embed-progress span { display:block; width:40%; height:100%; border-radius:20px; background:linear-gradient(90deg,#8acdb7,#ffc86a); animation:loader-progress 1.5s ease-in-out infinite alternate; }
.embedded-game[data-state="finishing"] .embed-progress span { animation:none; width:100%; transform:none; }
.embedded-game[data-state="finishing"] .embed-message { opacity:0; pointer-events:none; }
.embedded-game[data-state="error"] .embed-progress { display:none; }
.embedded-game[data-state="error"] .loading-screw,.embedded-game[data-state="error"] .loading-spark { animation:none; }
@keyframes loader-screw { 0%,15% { transform:translateY(-6px) rotate(-60deg) scale(1.1); } 60%,80% { transform:translateY(59px) rotate(180deg) scale(.8); } 100% { transform:translateY(-6px) rotate(300deg) scale(1.1); } }
@keyframes loader-spark { 0%,25%,100% { transform:scale(.5); opacity:.25; } 65% { transform:scale(1.2) rotate(30deg); opacity:1; } }
@keyframes loader-progress { from { transform:translateX(0); } to { transform:translateX(150%); } }
@media(prefers-reduced-motion:reduce) { .loading-screw,.loading-spark,.embed-progress span { animation:none; } .embed-progress span { width:60%; } .embed-message { transition:none; } }
