:root {
  --paper: #f5f0e6;
  --paper-deep: #e8dfcf;
  --white: #fffdf8;
  --navy: #17324d;
  --teal: #2b7a78;
  --mustard: #e2ad36;
  --coral: #d96955;
  --ink: #203241;
  --muted: #64727b;
  --line: #c9c0b2;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .65rem 1rem; background: var(--navy); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.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; }
.landing-page { width: min(72rem, calc(100% - 2rem)); margin: auto; }
.landing-header { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.landing-header-actions { min-width: 0; display: flex; align-items: center; gap: .85rem; }
.back-button { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 2px solid var(--navy); border-radius: 8px; background: var(--white); color: var(--navy); font-size: .82rem; font-weight: 850; text-decoration: none; white-space: nowrap; box-shadow: 3px 3px 0 var(--paper-deep); transition: transform .16s ease, box-shadow .16s ease; }
.back-button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--paper-deep); }
.landing-profile { min-width: 0; max-width: 13rem; display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .55rem .25rem .25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); box-shadow: 2px 2px 0 var(--paper-deep); }
.landing-profile > img { width: 2.25rem; height: 2.25rem; flex: none; border: 1px solid var(--navy); border-radius: 50%; object-fit: cover; }
.landing-profile > span { min-width: 0; display: grid; gap: .05rem; }
.landing-profile small { color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.landing-profile strong { overflow: hidden; font-size: .72rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); font-weight: 800; text-decoration: none; }
.brand img { width: 2.75rem; height: 2.75rem; padding: .14rem; border: 2px solid var(--navy); border-radius: 8px; background: white; object-fit: contain; }
.brand span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.07em; }
.brand i { color: var(--teal); font-style: normal; }
.brand strong { font-weight: 950; }
.domain-brand { display: inline-flex; align-items: baseline; color: var(--navy); font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: -.07em; }
.domain-brand::before, .domain-brand::after { color: var(--coral); font-weight: 900; letter-spacing: 0; }
.domain-brand::before { content: "["; margin-right: .45rem; }
.domain-brand::after { content: "]"; margin-left: .45rem; }
.domain-brand i { color: var(--teal); font-style: normal; }
.domain-brand strong { color: var(--navy); font-weight: 900; }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.landing-hero { display: grid; justify-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.landing-copy { width: min(100%, 42rem); text-align: center; }
.landing-copy h1 { width: 100%; min-width: 0; margin: 0 0 1rem; overflow: hidden; color: var(--navy); font: 700 clamp(2.8rem, 6vw, 4.8rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.landing-copy > p:not(.eyebrow) { max-width: 42rem; margin: 0 auto 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.65; }
.game-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: -.2rem 0 1.35rem; }
.game-facts span { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-size: .68rem; font-weight: 800; text-transform: capitalize; }
.game-facts .is-offline-ready { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); color: var(--teal); }
.game-facts .is-online-only { border-color: color-mix(in srgb, var(--coral) 55%, var(--line)); color: #983d2c; }
.landing-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem 1.2rem; }
.play-button { min-height: 3.6rem; display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.25rem; border: 2px solid var(--navy); border-radius: 9px; background: var(--mustard); color: var(--navy); font-weight: 900; text-decoration: none; box-shadow: 5px 5px 0 rgba(23, 50, 77, .17); transition: transform .16s ease, box-shadow .16s ease; }
.play-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(23, 50, 77, .17); }
.guide-jump { min-height: 3.6rem; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem; border: 2px solid var(--navy); border-radius: 9px; background: var(--white); color: var(--navy); font-size: .9rem; font-weight: 850; text-decoration: none; box-shadow: 3px 3px 0 var(--paper-deep); transition: transform .16s ease, box-shadow .16s ease; }
.favorite-button[aria-pressed="true"] { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--white)); color: #923624; }
.landing-tool { min-width: 7.25rem; justify-content: center; cursor: pointer; }
.landing-tool[disabled] { opacity: .45; cursor: not-allowed; }
.guide-jump:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--paper-deep); }
.landing-status { margin: .85rem 0 0 !important; color: var(--teal) !important; font-size: .78rem !important; font-weight: 750; }
.landing-copy > small { display: block; margin-top: .85rem; color: var(--muted); }
.landing-media { width: min(100%, 18rem); display: grid; gap: .75rem; }
.landing-art { width: 100%; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--navy); border-radius: 14px; background: var(--white); box-shadow: 7px 7px 0 var(--paper-deep); }
.landing-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.landing-art-fallback { width: 100%; height: 100%; display: grid; place-content: center; gap: 1.5rem; padding: 2rem; background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.16), transparent 32%), repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 3px, transparent 3px 10px), var(--navy); color: #fff8e7; text-align: center; }
.landing-art-fallback span { color: var(--mustard); font: 700 clamp(1.4rem, 4vw, 2.4rem)/1 Georgia, serif; letter-spacing: .3em; }
.landing-art-fallback strong { font: 800 clamp(2rem, 5vw, 3.5rem)/.95 Georgia, serif; text-wrap: balance; }
.player-record { display: grid; padding: .65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 3px 3px 0 var(--paper-deep); }
.landing-guides h2 { margin: 0 0 .65rem; color: var(--navy); font: 700 clamp(1.8rem, 4vw, 2.7rem)/1.1 Georgia, serif; }
.player-record dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin: 0; }
.player-record dl div { min-width: 0; display: grid; gap: .08rem; padding: .35rem .4rem; }
.player-record dt { color: var(--muted); font-size: .54rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.player-record dd { margin: 0; overflow: hidden; color: var(--navy); font-size: .9rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.game-information { margin: clamp(1.5rem, 4vw, 3rem) 0; padding: clamp(1rem, 4vw, 1.6rem); border: 2px solid var(--navy); border-radius: 12px; background: var(--white); box-shadow: 6px 6px 0 var(--paper-deep); }
.info-tabs { display: flex; gap: .45rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.info-tabs button { padding: .7rem .9rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: 850 .82rem/1 inherit; cursor: pointer; }
.info-tabs button[aria-selected="true"] { border-bottom-color: var(--coral); color: var(--navy); }
.game-information [role="tabpanel"][hidden] { display: none; }
.game-information h2, .recommendations h2 { margin: 0 0 .6rem; color: var(--navy); font: 700 clamp(1.6rem, 4vw, 2.45rem)/1.1 Georgia, serif; }
.game-information p { max-width: 56rem; margin: 0; color: var(--muted); line-height: 1.65; }
.gameplay-guide { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper-deep) 45%, var(--white)); }
.gameplay-guide-heading { max-width: 48rem; margin-bottom: 1.5rem; }
.gameplay-guide-heading h2 { margin: 0; color: var(--navy); font: 700 clamp(1.8rem, 4vw, 2.8rem)/1.05 Georgia, serif; }
.gameplay-guide-heading > p:last-child { margin: .7rem 0 0; color: var(--muted); line-height: 1.65; }
.gameplay-screenshot { max-width: 60rem; margin: 0; }
.gameplay-screenshot img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; box-shadow: 6px 6px 0 var(--paper-deep); }
.gameplay-screenshot figcaption { margin-top: .75rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.gameplay-guide-columns { max-width: 60rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 2rem; }
.gameplay-guide-columns section { padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.gameplay-guide-columns h3 { margin: 0; color: var(--navy); font: 700 1.35rem/1.2 Georgia, serif; }
.gameplay-guide-columns :is(ol, ul) { margin: 1rem 0 0; padding-left: 1.35rem; }
.gameplay-guide-columns li { padding-left: .2rem; line-height: 1.65; }
.gameplay-guide-columns li + li { margin-top: .75rem; }
.recommendations { padding: clamp(2rem, 5vw, 4rem) 0; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.recommendation-card { min-width: 0; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: .8rem; padding: .65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--navy); text-decoration: none; box-shadow: 3px 3px 0 var(--paper-deep); }
.recommendation-card:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--paper-deep); }
.recommendation-card img { width: 5.5rem; height: 5.5rem; display: block; flex: none; border-radius: 7px; object-fit: cover; }
.recommendation-card span { min-width: 0; display: grid; gap: .3rem; }
.recommendation-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recommendation-card small { color: var(--muted); line-height: 1.35; }
.ad-placeholder { min-height: 7rem; width: min(100%, 60rem); display: grid; place-content: center; gap: .2rem; margin: clamp(2rem, 5vw, 4rem) auto; padding: 1rem; border: 1px dashed #9ba6aa; border-radius: 9px; background: repeating-linear-gradient(135deg, rgba(23, 50, 77, .025) 0 8px, transparent 8px 16px), rgba(255, 253, 248, .65); color: var(--muted); text-align: center; }
.ad-placeholder span { font-size: .65rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.ad-placeholder strong { color: var(--navy); font-size: .9rem; }
.ad-placeholder small { font-size: .7rem; }
.landing-guides { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem); }
.landing-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.5rem; }
.landing-guide-grid a { min-height: 6.5rem; display: grid; align-content: space-between; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); font-weight: 800; text-decoration: none; }
.landing-guide-grid a:hover span { text-decoration: underline; text-underline-offset: .2rem; }
.landing-guide-grid small { color: var(--muted); font-weight: 600; }
footer { min-height: 8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer a { color: var(--navy); font-weight: 750; }
.brand:focus-visible, .landing-header a:focus-visible, .play-button:focus-visible, .guide-jump:focus-visible, .landing-guide-grid a:focus-visible, footer a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

@media (min-width: 761px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem); grid-template-areas: "copy media"; align-items: center; justify-items: stretch; }
  .landing-copy { grid-area: copy; text-align: left; }
  .landing-copy > p:not(.eyebrow) { margin-inline: 0; }
  .landing-actions { justify-content: flex-start; }
  .game-facts { justify-content: flex-start; }
  .landing-media { grid-area: media; justify-self: end; }
}

@media (max-width: 760px) {
  .landing-hero { padding-top: 0; }
  .landing-media { width: min(82%, 18rem); }
  .gameplay-guide-columns { grid-template-columns: 1fr; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .recommendation-card { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .recommendation-card img { width: 4.5rem; height: 4.5rem; }
}

@media (max-width: 540px) {
  .landing-page { width: calc(100% - 1rem); }
  .landing-header { min-height: 3.6rem; }
  .brand span { display: none; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .landing-header-actions { gap: .45rem; }
  .landing-profile { max-width: 7.5rem; padding-block: .15rem; }
  .landing-profile > img { width: 1.7rem; height: 1.7rem; }
  .landing-profile small { display: none; }
  .landing-profile strong { font-size: .6rem; }
  .back-button { min-height: 2.25rem; padding: .35rem .55rem; font-size: .7rem; }
  .landing-hero { grid-template-columns: minmax(0, 1fr) 7.75rem; grid-template-areas: "copy media"; align-items: start; justify-items: stretch; gap: .7rem; min-height: calc(100svh - 3.6rem); padding: .65rem 0 1rem; }
  .landing-copy { grid-area: copy; text-align: left; }
  .landing-copy .eyebrow { margin-bottom: .3rem; font-size: .57rem; letter-spacing: .08em; }
  .landing-copy h1 { margin-bottom: .45rem; font-size: clamp(1.55rem, 8vw, 2.2rem); white-space: normal; }
  .landing-copy > p:not(.eyebrow) { display: -webkit-box; margin: 0 0 .55rem; overflow: hidden; font-size: .72rem; line-height: 1.35; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .game-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; gap: .3rem; margin: 0 0 .55rem; }
  .game-facts span { min-width: 0; padding: .27rem .32rem; overflow: hidden; font-size: .53rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .landing-actions { display: grid; grid-template-columns: 1fr; gap: .45rem; }
  .play-button, .guide-jump { width: 100%; min-height: 2.65rem; justify-content: center; padding: .55rem .65rem; font-size: .72rem; box-shadow: 2px 2px 0 var(--paper-deep); }
  .landing-status { margin-top: .55rem !important; font-size: .62rem !important; line-height: 1.3; }
  .landing-media { grid-area: media; width: 100%; gap: .5rem; }
  .landing-art { border-radius: 9px; box-shadow: 3px 3px 0 var(--paper-deep); }
  .player-record { padding: .25rem; box-shadow: 2px 2px 0 var(--paper-deep); }
  .player-record dl { grid-template-columns: 1fr; gap: 0; }
  .player-record dl div { padding: .28rem .3rem; border-bottom: 1px solid var(--line); }
  .player-record dl div:last-child { border-bottom: 0; }
  .player-record dt { font-size: .45rem; }
  .player-record dd { font-size: .72rem; }
  .landing-guide-grid { grid-template-columns: 1fr; }
  footer { align-items: start; flex-direction: column; justify-content: center; padding-block: 2rem; }
}

@media (max-width: 360px) {
  .landing-profile { max-width: 8.5rem; }
  .landing-profile > img { width: 1.5rem; height: 1.5rem; }
  .back-button { padding-inline: .55rem; }
  .landing-profile { gap: .3rem; padding-right: .4rem; }
  .landing-profile strong { font-size: .55rem; }
  .landing-copy h1 { font-size: clamp(1.65rem, 8.6vw, 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Ad placements stay dormant until the production ad loader opts in. */
html:not(.ads-enabled) .ad-placeholder { display: none !important; }
