@font-face { font-family: Sphercoil; src: url('fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Sphercoil; src: url('fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --night: #06171a; --ivory: #f3eedc; --mint: #b0e7c9; --gold: #e4c080; --muted: #bdd0c7; }
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 1.125rem/1.6 Sphercoil, Arial, sans-serif; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--night); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 6px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 30; padding: .6rem 1rem; background: var(--ivory); color: var(--night); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.masthead { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 2rem; padding: 1.3rem 2rem; background: linear-gradient(#031215c9, transparent); }
.masthead > *, .scene > * { min-width: 0; }
.studio-link { font-weight: 700; text-decoration: none; }
.game-nav, .languages { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; }
.game-nav a { padding: .4rem 0; font-size: .95rem; text-decoration: none; }
.game-nav a:hover { color: var(--mint); }
.languages { gap: .2rem; border: 1px solid #e4c08060; border-radius: 2rem; padding: .15rem; background: #03121570; }
.languages a { min-width: 2.5rem; min-height: 2.5rem; display: grid; place-items: center; padding: .2rem .4rem; font-size: .9rem; text-decoration: none; border-radius: 2rem; }
.languages [aria-current="page"] { color: #142922; background: var(--ivory); }
.hero { position: relative; overflow: hidden; min-height: 680px; height: 100svh; max-height: 1100px; isolation: isolate; }
.cover { position: absolute; inset: 0; z-index: -2; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #031316d9, #03131625 33%, #06171a00 57%, #06171a 100%); }
.hero-title { position: relative; z-index: 1; padding: 5.8rem 1.5rem 0; text-align: center; }
.hero-title h1 { font-size: clamp(3rem, 10.5vw, 8.5rem); font-weight: 700; letter-spacing: .035em; text-shadow: 0 4px 26px #001012b0; }
.hero-title h1 span { color: var(--gold); }
.hero-title p { width: fit-content; margin: .9rem auto 0; max-width: 34ch; padding: .3em .8em; border-radius: .35rem; background: #031316b3; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; font-weight: 400; text-wrap: balance; text-shadow: 0 1px 4px #000; }
.hero-actions { position: absolute; bottom: 2rem; inset-inline: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; max-width: 100%; min-height: 3.2rem; padding: .85rem 1.8rem; border: 1px solid #ebd9ae; border-radius: 3rem; background: linear-gradient(#f7f1dc, #dcd8b8); color: #14362a; box-shadow: 0 4px 0 #778f72, 0 10px 35px #0005; text-decoration: none; font-size: 1rem; line-height: 1.4; font-weight: 700; }
.button:hover { background: var(--mint); }
.quiet-action { font-size: .95rem; }
.play-section { padding-block: 5rem 4rem; }
.section-title { max-width: 800px; text-align: center; margin-inline: auto; }
.section-title h2 { max-width: 24ch; margin: 0 auto 1.1rem; font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.section-title > p:last-child { color: var(--muted); max-width: 58ch; margin-inline: auto; font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }
.selector { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; width: fit-content; max-width: 100%; padding: .35rem; margin: 2rem auto 1.5rem; border: 1px solid #8ba68880; border-radius: 2rem; background: #0c2527; }
.selector button { min-height: 2.75rem; padding: .65rem 1.4rem; border: 0; border-radius: 1.6rem; background: transparent; color: #d6e7dc; font-size: 1rem; line-height: 1.4; font-weight: 700; }
.selector button:hover { background: #1f443d; }
.selector button[aria-pressed="true"] { background: var(--ivory); color: #183729; box-shadow: inset 0 -3px #d6bc85; }
.scenes { max-width: 1020px; margin-inline: auto; }
.scene { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 3rem; padding-block: 1rem; }
.scene-copy h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; margin-bottom: 1rem; }
.scene-copy p { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }
.capture { position: relative; overflow: hidden; aspect-ratio: 1; width: 100%; }
.capture img { position: absolute; height: auto; width: 100%; max-width: none; }
.capture.porcelain, .capture.artwork { mask-image: radial-gradient(ellipse at center, #000 60%, transparent 75%); }
.porcelain img { transform: translateY(-22.5%); mask-image: radial-gradient(ellipse at center, #000 58%, transparent 74%); }
.artwork img { width: 140%; left: -20%; transform: translateY(-20%); mask-image: linear-gradient(transparent, #000 12%, #000 75%, transparent 92%); }
.world-section { padding-block: 4rem; background: radial-gradient(ellipse at 50% 65%, #244a352d, transparent 64%); }
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 860px; margin-inline: auto; }
.worlds[data-enhanced] { display: block; max-width: 530px; }
.worlds figure { text-align: center; }
.worlds figcaption { color: var(--gold); margin-top: .5rem; }
.worlds[data-enhanced] figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.worlds .capture { aspect-ratio: 1; width: 100%; margin: 0; mask-image: radial-gradient(ellipse at center, #000 60%, transparent 75%); }
.worlds .living img { width: 150%; left: -25%; transform: translateY(-40%); mask-image: radial-gradient(ellipse at 50% 57%, #000 25%, transparent 43%); }
.memories-section { padding-block: 4rem 5rem; }
.memory-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 3.5rem auto 0; }
.memory { min-width: 0; padding: 1rem 1rem 1.5rem; border: 1px solid #d6bc854d; border-radius: 45% 45% 1.5rem 1.5rem; background: linear-gradient(#193a33, #0d2220); box-shadow: 0 18px 55px #0005; transform: rotate(-2deg); }
.memory:nth-child(2) { transform: rotate(2deg); }
.memory figcaption { font-size: 1.125rem; line-height: 1.4; font-weight: 700; color: var(--gold); text-align: center; margin-top: .75rem; }
.outro { text-align: center; padding-block: 2rem 5rem; }
footer { border-top: 1px solid #d6bc8526; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; padding-block: 2rem; font-size: .9rem; color: #aec5b9; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { position: relative; inset: auto; padding: 1rem 1.25rem; gap: .5rem; background: #061b1e; }
  .game-nav { order: 3; flex-basis: 100%; justify-content: center; gap: .3rem 1.2rem; }
  .game-nav a { font-size: .85rem; }
  .hero { display: flex; flex-direction: column; align-items: center; height: auto; min-height: 620px; max-height: none; padding: 1.5rem 1.25rem 2rem; background: #061b1e; }
  .hero-title { padding: 0; order: 1; }
  .hero-title h1 { font-size: clamp(2rem, 9.4vw, 4rem); letter-spacing: .025em; }
  .hero-title p { max-width: 28ch; padding: 0; background: transparent; font-size: 1.125rem; }
  .cover { position: relative; inset: auto; width: 155%; order: 2; margin: -.5rem 0 -2rem; z-index: -2; }
  .cover img { height: auto; width: 100%; object-fit: contain; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
  .hero::after { background: linear-gradient(#061b1e00 70%, #06171a); }
  .hero-actions { position: relative; inset: auto; order: 3; margin-top: auto; padding-top: 2rem; gap: 1.2rem; }
  .play-section { padding-block: 3rem; }
  .scene { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-top: 0; }
  .scene-copy { max-width: 29rem; margin-inline: auto; text-align: center; }
  .scene-copy h3 { font-size: 1.5rem; }
  .selector { border-radius: 1.5rem; gap: .2rem; padding: .25rem; }
  .selector button { font-size: 1rem; padding: .65rem .85rem; }
  .world-section, .memories-section { padding-block: 3rem; }
  .worlds { grid-template-columns: minmax(0, 1fr); }
  .memory-shelf { grid-template-columns: minmax(0, 1fr); max-width: 380px; gap: 1.5rem; margin-top: 2rem; }
  .memory, .memory:nth-child(2) { transform: none; }
  .outro { padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .selector button { transition: background-color .18s, box-shadow .18s; }
  .scenes[data-enhanced] .scene, .worlds[data-enhanced] figure { animation: reveal .3s ease-out; }
  @keyframes reveal { from { opacity: .3; } to { opacity: 1; } }
}
@media print {
  body { color: #222; background: #fff; }
  .masthead, .skip, .hero-actions, .selector, .outro, footer { display: none; }
  .hero { min-height: 450px; height: 450px; }
  .hero-title { color: #fff; }
  .wrap { width: 100%; }
  .scene-copy p, .section-title > p:last-child { color: #333; }
  .play-section, .world-section, .memories-section { padding-block: 2rem; }
  .scene { break-inside: avoid; }
}
