@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; }
  [hidden] { display: none !important; }
}
@layer base {
  :root {
    --paper: #fffcf2; --wash: #e8fff6; --ink: #103634; --gold: #fac03e;
    --muted: #34524a; --teal: #1a7c74; --border: #b9d2bf;
    --serif: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --sans: 'Trebuchet MS', 'Avenir Next', sans-serif;
    --type-game: 56px;
    --type-section: 44px;
    --type-card: 34px; --type-lead: 28px; --type-body: 18px;
    --type-control: 16px; --type-caption: 14px;
    color-scheme: light;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { font: var(--type-body)/1.65 var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
  h2 { font-size: var(--type-section); letter-spacing: -.03em; }
  a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  button, summary { cursor: pointer; }
  :focus-visible { outline: 3px solid #0b5b9e; outline-offset: 5px; }
  ::selection { background: #ffe280; color: var(--ink); }
  section[id] { scroll-margin-top: 24px; }
}
@layer layout {
  .wrap { width: calc(100% - 112px); max-width: 1190px; margin-inline: auto; }
  .hero-world { position: relative; isolation: isolate; background: var(--paper); overflow: clip; }
  .hero-landscape { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 43%; z-index: -1; }
  .site-header { background: #fffcf2f5; padding-inline: 24px; min-height: 94px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
  .site-header nav { display: flex; gap: 34px; font-size: var(--type-control); }
  .hero { min-height: 650px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 54px 90px; }
  .hero-title-frame { display: flex; flex-direction: column; align-items: center; }
  .hero-message { width: min(100%, 610px); background: #fffcf2f5; border: 1px solid #f2ce80; border-radius: 8px; padding: 26px 30px 29px; margin-top: 32px; }
  .hero-line { font: 36px/1.2 var(--serif); letter-spacing: -.02em; }
  .hero-description { color: var(--muted); font-size: var(--type-body); margin-top: 15px; }
  .hero-message > .button { margin-top: 23px; }
  .game-paths { padding-block: 58px 64px; }
  .game-paths > h2 { text-align: center; margin-bottom: 16px; }
  .collection-note { font-size: var(--type-control); color: var(--muted); text-align: center; max-width: 58ch; margin: 0 auto 34px; }
  .paths { display: grid; grid-template-columns: 1fr 1fr; }
  .game-path { padding: 8px 38px; display: flex; gap: 24px; align-items: flex-start; }
  .game-path:first-child { border-right: 1px solid var(--border); }
  .showcase-layout { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; position: relative; padding-block: 76px; }
  .game-showcase { position: relative; isolation: isolate; overflow: clip; border-top: 1px solid var(--border); }
  .game-summary { grid-column: 1; grid-row: 1; align-self: end; }
  .game-support { grid-column: 1; grid-row: 2; align-self: start; }
  .game-showcase .game-visual { grid-column: 2; grid-row: 1 / span 2; }
  .showcase-scenery { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: -1; }
  .showcase-scenery > img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
  .showcase-strategy { background: var(--wash); }
  .showcase-strategy .game-summary, .showcase-strategy .game-support { grid-column: 2; }
  .showcase-strategy .game-visual { grid-column: 1; }
  .showcase-strategy .showcase-scenery { left: 0; right: auto; }
  .connection-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; padding-block: 90px; }
  .connection-copy p { max-width: 480px; color: var(--muted); margin-top: 24px; }
  .availability-section { background: var(--wash); border-top: 1px solid var(--border); padding-block: 76px; }
  .availability-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 70px; }
  .availability-intro { max-width: 490px; color: var(--muted); margin-top: 24px; }
  .questions > h3 { font-size: var(--type-section); margin-bottom: 16px; }
  .site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-block: 34px; }
  .site-footer > a:not(.brand) { font-size: var(--type-control); text-decoration: underline; text-underline-offset: 5px; }
  .site-footer small { flex-basis: 100%; text-align: center; font-size: var(--type-caption); color: var(--muted); }
}
@layer components {
  .skip-link { position: absolute; left: 15px; top: 10px; z-index: 50; padding: 12px 20px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
  .skip-link:focus { transform: none; }
  .brand { display: inline-flex; align-items: center; gap: 12px; font: 24px/1 var(--serif); white-space: nowrap; }
  .brand-seal { display: grid; place-content: center; width: 33px; height: 36px; font: 26px/1 var(--serif); border: 1px solid #c47818; background: #ffe280; border-radius: 3px; }
  nav a { padding-block: 12px; }
  nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .menu-toggle { display: none; }
  .stack-wordmark { display: flex; align-items: center; gap: 20px; }
  .wordmark-word { display: flex; gap: 6px; }
  .wordmark-letter { display: grid; place-content: center; width: 58px; height: 67px; border: 1px solid #f2ce80; border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 42px/1 var(--serif); letter-spacing: 0; box-shadow: 0 5px #d6b674; }
  .wordmark-word > .wordmark-letter:first-child { background: #ffe280; }
  .title-rule { width: 160px; height: 2px; background: #ffe280; margin-top: 23px; }
  .button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; border-radius: 4px; padding: 12px 24px; font: 600 var(--type-control)/1.5 var(--sans); transition: background-color 180ms, box-shadow 180ms; text-align: center; }
  .button-gold { background: linear-gradient(#fff49c, #fac03e); color: var(--ink); border: 1px solid #c47818; box-shadow: 0 3px #c47818; }
  .button-gold:hover { background: #ffe280; }
  .button-outline { border: 1px solid var(--teal); color: var(--ink); background: var(--paper); }
  .button-outline:hover { background: #d8f7e8; }
  .button-dark { background: var(--ink); color: var(--paper); }
  .scroll-cue { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; place-content: center; width: 44px; height: 44px; background: var(--paper); border-radius: 50%; color: var(--ink); font-size: 29px; }
  .game-path > img { width: 84px; height: 84px; border-radius: 18px; box-shadow: 0 4px 12px #10363425; flex-shrink: 0; margin-top: 4px; }
  .game-path h3 { font-size: var(--type-card); }
  .game-path p { color: var(--muted); margin-top: 12px; line-height: 1.6; }
  .path-action { display: inline-block; font-size: var(--type-control); font-weight: 600; margin-top: 18px; text-decoration: underline; text-underline-offset: 5px; }
  .game-path:hover .path-action { text-decoration-thickness: 2px; }
  .series-name { font: 24px/1.2 var(--serif); margin-bottom: 8px; }
  .game-summary > h2 { font-size: var(--type-game); line-height: 1.05; letter-spacing: -.045em; }
  .game-lead { font: var(--type-lead)/1.3 var(--serif); margin-top: 24px; max-width: 440px; }
  .game-method { max-width: 465px; margin-block: 28px; border-top: 1px solid var(--border); padding-top: 22px; }
  .game-method h3 { font: 600 var(--type-control)/1.5 var(--sans); }
  .game-method ol { padding-left: 23px; margin: 16px 0 0; font-size: var(--type-body); color: var(--muted); }
  .game-method li { padding-left: 7px; padding-bottom: 12px; line-height: 1.65; }
  .game-method li::marker { color: var(--ink); font-weight: 600; }
  .game-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 12px; }
  .screen-button { display: block; width: 290px; max-width: 100%; border: 0; border-radius: 24px; padding: 0; background: transparent; position: relative; }
  .phone-shell { display: block; border: 5px solid #ffe280; border-radius: 23px; overflow: hidden; box-shadow: 0 10px 22px #4b653f35; }
  .phone-shell img { width: 100%; }
  .enlarge-label { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 12px; margin-top: 10px; border-radius: 4px; background: var(--paper); font-size: var(--type-control); }
  .enlarge-label > span { font-size: 24px; line-height: 1; }
  .screen-button:hover .enlarge-label { text-decoration: underline; text-underline-offset: 4px; }
  .game-visual figcaption { max-width: 320px; font-size: var(--type-caption); text-align: center; background: var(--paper); padding: 6px 10px; border-radius: 4px; margin-top: 12px; }
  .bonus-button { display: flex; align-items: center; gap: 14px; border: 1px solid var(--teal); background: var(--paper); width: 290px; max-width: 100%; padding: 10px 14px; margin-top: 14px; font-size: var(--type-control); border-radius: 4px; text-align: left; }
  .bonus-button > img { width: 56px; height: 124px; object-fit: cover; border-radius: 3px; }
  .bonus-button:hover > span { text-decoration: underline; text-underline-offset: 4px; }
  .nojs-screen { width: 290px; border: 5px solid #ffe280; border-radius: 20px; }
  .connection-illustration { position: relative; width: 280px; height: 280px; justify-self: center; }
  .word-tile { position: absolute; width: 80px; height: 80px; display: grid; place-content: center; background: var(--paper); color: var(--ink); font: 700 46px/1 var(--serif); border: 1px solid #f2ce80; border-radius: 10px; box-shadow: 0 5px #d6b674; }
  .word-t { top: 0; left: 95px; }
  .word-e { top: 94px; left: 95px; }
  .word-c { bottom: 0; left: 0; }
  .word-a { bottom: 0; left: 95px; background: #ffe280; }
  .word-end { bottom: 0; left: 190px; }
  .connection-copy .illustration-note { font-size: var(--type-caption); margin-top: 18px; }
  .release-list { margin-top: 30px; }
  .release-row { display: grid; grid-template-columns: 48px 1fr; column-gap: 15px; row-gap: 10px; padding-block: 22px; border-top: 1px solid var(--border); }
  .release-row > img { width: 48px; height: 48px; border-radius: 10px; align-self: center; }
  .release-row h3 { font-size: 24px; }
  .release-row p { color: var(--muted); font-size: var(--type-control); margin-top: 5px; }
  .release-status { color: var(--muted); font-size: var(--type-control); grid-column: 2; }
  .release-row > .button { grid-column: 2; justify-self: start; }
  details { border-bottom: 1px solid var(--border); }
  summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 21px; min-height: 65px; font-size: var(--type-body); }
  summary::-webkit-details-marker { display: none; }
  summary > span { font-size: 25px; color: var(--ink); }
  details[open] summary > span { transform: rotate(45deg); }
  details > p { color: var(--muted); padding: 0 24px 24px 0; font-size: var(--type-control); line-height: 1.75; }
  dialog { width: min(94vw, 600px); max-height: 92dvh; border: 1px solid var(--teal); border-radius: 8px; padding: 0; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: 0 20px 70px #0008; }
  dialog::backdrop { background: #194b42b8; backdrop-filter: blur(4px); }
  .dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; background: var(--paper); position: sticky; top: 0; border-bottom: 1px solid var(--border); z-index: 1; }
  .dialog-top h2 { font-size: 24px; letter-spacing: -.025em; }
  .dialog-close { min-height: 44px; padding: 7px 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--teal); background: transparent; border-radius: 3px; font-size: var(--type-control); }
  .dialog-close > span { font-size: 24px; }
  .dialog-body { padding: 22px; }
  .dialog-body > img { width: min(100%, 360px); margin-inline: auto; }
  .dialog-body > p { font-size: var(--type-caption); color: var(--muted); margin-top: 20px; text-align: center; }
  .dialog-open { overflow: hidden; }
  .not-found { padding-block: 60px; }
  .not-found h1 { font-size: clamp(45px, 8vw, 90px); margin-block: 100px 25px; }
  .not-found p { max-width: 450px; color: var(--muted); margin-bottom: 30px; }
  .legal-page { padding-block: 36px 80px; }
  .legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
  .legal-content { max-width: 760px; }
  .legal-content h1 { font-size: var(--type-section); margin-block: 8px 12px; }
  .legal-meta { color: var(--muted); margin-bottom: 28px; }
  .legal-content h2 { font-size: 24px; margin-block: 36px 12px; }
  .legal-content p, .legal-content li { color: var(--ink); line-height: 1.75; margin-bottom: 16px; }
  .legal-content ul { padding-left: 22px; margin-bottom: 20px; }
  .legal-content a { text-decoration: underline; color: var(--teal); }
  .legal-content code { font-size: 0.92em; background: #efe8d8; padding: 2px 6px; border-radius: 3px; }
  @keyframes title-arrive { from { opacity: 0; } to { opacity: 1; } }
  .hero-title-frame { animation: title-arrive 900ms ease-out both; }
}
@layer responsive {
  @media (max-width: 1100px) {
    .wrap { width: calc(100% - 72px); }
    .game-path { padding-inline: 24px; }
    .showcase-layout { column-gap: 48px; }
    .availability-layout { gap: 45px; }
    .connection-section { gap: 55px; }
  }
  @media (max-width: 760px) {
    :root { --type-game: 44px; --type-section: 36px; --type-card: 32px; --type-lead: 26px; --type-body: 17px; }
    .wrap { width: calc(100% - 40px); }
    .site-header { min-height: 82px; padding-inline: 12px; }
    .brand { font-size: 23px; gap: 9px; }
    .brand-seal { width: 29px; height: 32px; font-size: 24px; }
    .menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--teal); border-radius: 3px; background: var(--paper); font-size: var(--type-control); }
    .menu-toggle > span { font-size: 17px; }
    .site-header:has(.menu-toggle:not([hidden])) nav { display: none; }
    .site-header:has(.menu-toggle:not([hidden])) nav.is-open { display: flex; }
    .site-header nav { position: absolute; top: 75px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-block: 1px solid var(--border); padding: 12px; }
    .site-header nav a { padding: 13px 10px; }
    .site-header:has(.menu-toggle[hidden]) { margin-bottom: 200px; }
    .hero { min-height: 650px; padding-block: 35px 90px; }
    .hero-landscape { object-position: center; }
    .stack-wordmark { flex-direction: column; gap: 14px; }
    .wordmark-letter { width: 46px; height: 54px; font-size: 34px; }
    .title-rule { width: 115px; margin-top: 20px; }
    .hero-message { padding: 22px 18px 25px; margin-top: 28px; }
    .hero-line { font-size: 31px; }
    .hero-description { margin-top: 16px; }
    .hero-description br { display: none; }
    .game-paths { padding-block: 44px; }
    .game-paths > h2 { margin-bottom: 16px; }
    .collection-note { margin-bottom: 18px; }
    .paths { grid-template-columns: 1fr; }
    .game-path { padding: 27px 0; gap: 22px; }
    .game-path:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .game-path > img { width: 72px; height: 72px; }
    .game-path p { margin-top: 10px; }
    .path-action { margin-top: 14px; }
    .showcase-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 50px 30px; }
    .game-showcase .game-summary, .game-showcase .game-support, .game-showcase .game-visual { grid-column: 1; grid-row: auto; }
    .series-name { font-size: 23px; }
    .game-lead { margin-top: 22px; }
    .game-method { max-width: 490px; margin-block: 0 26px; }
    .showcase-scenery { display: none; }
    .game-visual { margin-inline: -20px; padding: 30px 20px; background-size: cover; background-position: center; }
    .showcase-fall .game-visual { background-image: url('/assets/golden-lagoon.webp'); }
    .showcase-strategy .game-visual { background-image: url('/assets/sunny-conservatory.webp'); }
    .connection-section { grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
    .connection-copy { max-width: 480px; }
    .connection-copy p { margin-top: 22px; }
    .connection-illustration { transform: scale(.9); margin-block: -12px; }
    .availability-section { padding-block: 52px; }
    .availability-layout { grid-template-columns: 1fr; gap: 45px; }
    .availability-intro { margin-top: 22px; }
    .release-row { padding-block: 22px; }
    .questions > h3 { margin-bottom: 10px; }
    .site-footer { gap: 22px; padding-block: 30px; }
    .dialog-top { padding: 12px; gap: 10px; }
    .dialog-top h2 { font-size: 21px; }
    .dialog-body { padding: 12px; }
  }
  @media (max-width: 360px) {
    :root { --type-game: 44px; --type-section: 35px; --type-card: 30px; }
    .wrap { width: calc(100% - 32px); }
    .site-header { padding-inline: 8px; }
    .brand { font-size: 20px; }
    .menu-toggle:not([hidden]) { gap: 8px; padding-inline: 9px; }
    .hero-message { padding-inline: 14px; }
    .game-path { gap: 16px; }
    .game-path > img { width: 60px; height: 60px; }
    .release-row h3 { font-size: 22px; }
    .game-visual { margin-inline: -16px; }
    .screen-button, .bonus-button { width: 280px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
