/* A tall, quiet clocktower: native CSS, real game imagery, restrained motion.
   DESIGN_VARIANCE 6 / MOTION_INTENSITY 3 / VISUAL_DENSITY 3.
   Squared editorial surfaces; rounding is reserved for app icons and hardware. */
:root {
  color-scheme: dark;
  --ink: #0B0B0A;
  --bone: #EDE6D6;
  --amber: #F2A93B;
  --dim: #B8B2A4;
  --faint: #8F897C;
  --line: #3A372F;
  --card: #15140F;
  --phone: #1D1C19;
  --shadow: #000000;
  --clear: transparent;
  --font-display: "DotGothic16", "Hiragino Sans", "PingFang SC", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, monospace;
  --step: clamp(1rem, .95rem + .25vw, 1.125rem);
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/Silkscreen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 var(--step)/1.7 var(--font-body); }
body > header, body > main, body > footer { position: relative; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--bone); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; overflow-wrap: anywhere; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.7vw, 3rem); line-height: 1.4; letter-spacing: -.025em; }
p { overflow-wrap: break-word; }
.shell { width: min(1120px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 10; padding: 10px 16px; color: var(--ink); background: var(--bone); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
#atmosphere { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .19; pointer-events: none; image-rendering: pixelated; }

.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); z-index: 3; padding-block: 16px; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.brand img { border-radius: 7px; flex: 0 0 28px; }
.header-tools, #navigation { display: flex; align-items: center; gap: 25px; }
#navigation a { font-size: 14px; text-decoration: none; white-space: nowrap; }
#navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
select { max-width: 112px; min-height: 44px; background: var(--ink); color: var(--dim); border: 1px solid var(--line); border-radius: 0; padding: 7px; font-size: 13px; }
.menu-button, .copy-button { background: var(--clear); color: var(--bone); border: 1px solid var(--line); min-height: 44px; padding: 8px 14px; }
.menu-button { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 52px 72px; }
.hero-copy { min-width: 0; padding-bottom: 40px; }
.eyebrow { font-family: var(--font-pixel); font-size: 11px; line-height: 1.8; letter-spacing: .025em; color: var(--dim); max-width: 36em; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1.08; letter-spacing: -.05em; margin-block: 24px 30px; max-width: 7.8em; }
.hero-tagline { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.5; max-width: 20em; text-wrap: balance; }
.hero-intro { max-width: 34em; margin-top: 20px; color: var(--dim); font-size: 16px; line-height: 1.8; }
.hero-actions { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.store-button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 52px; padding: 13px 20px; background: var(--amber); border: 1px solid var(--amber); border-radius: 2px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; }
.store-button:disabled { color: var(--dim); background: var(--card); border-color: var(--line); }
a.store-button:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.text-link { font-size: 14px; }
.theme-preview { min-width: 0; width: 100%; text-align: center; }
.phone { width: 286px; max-width: 100%; margin-inline: auto; border: 10px solid var(--phone); border-radius: 44px; background: var(--ink); box-shadow: 0 0 0 1px var(--line), inset 0 0 16px var(--shadow), 0 24px 60px -32px var(--shadow); overflow: hidden; }
.phone-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 33px; }
.theme-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; }
.theme-slide.is-active { opacity: 1; }
.preview-controls { margin-top: 20px; }
.theme-choices { display: flex; justify-content: center; gap: 8px; }
.theme-choice { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 4px; border: 1px solid var(--clear); border-radius: 50%; background: var(--clear); }
.theme-choice img { border-radius: 50%; }
.theme-choice[aria-pressed="true"] { border-color: var(--bone); }
.theme-choice:hover { border-color: var(--dim); }
.preview-toggle { display: block; margin: 4px auto 0; padding: 8px 12px; min-height: 40px; font-size: 12px; line-height: 1.5; color: var(--dim); background: var(--clear); border: 0; text-decoration: underline; text-underline-offset: 4px; }
.theme-preview figcaption { font-size: 13px; color: var(--dim); min-height: 2em; margin-top: 4px; }

.section { padding-block: 88px; }
.play { border-top: 1px solid var(--line); }
.play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.play-crop { width: 100%; height: 205px; object-fit: cover; }
.crop-drag { object-position: 50% 69%; }
.crop-wait { object-position: 90% 34%; }
.crop-tide { object-position: 50% 100%; }
.play-step h3 { font-size: 22px; line-height: 1.5; margin-block: 24px 10px; }
.play-step p { font-size: 15px; color: var(--dim); max-width: 30ch; }
.features { padding-block: 28px 40px; border-bottom: 1px solid var(--line); }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.features svg { width: 24px; height: 24px; flex: 0 0 24px; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section-intro { color: var(--dim); margin-top: 14px; }
.theme-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.theme-card { min-width: 0; background: var(--card); border: 1px solid var(--line); }
.theme-art { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 59%; border-bottom: 1px solid var(--line); }
.theme-info { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px 8px; padding: 16px 14px 24px; }
.theme-info > img { border-radius: 9px; }
.theme-tier { align-self: center; justify-self: end; font-family: var(--font-pixel); color: var(--dim); font-size: 11px; }
.theme-info h3 { grid-column: 1 / -1; font-size: 19px; line-height: 1.5; min-height: 3em; }
.theme-info p { grid-column: 1 / -1; color: var(--dim); font-size: 14px; line-height: 1.7; }
.promise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 72px; align-items: start; border-block: 1px solid var(--line); }
.promise h2 { max-width: 11em; font-size: clamp(2.25rem, 4.4vw, 3.8rem); line-height: 1.3; }
.promise-copy { color: var(--dim); }
.promise-copy p + p { margin-top: 20px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 76px 100px; }
.closing h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.closing-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 18px; }

.floor-ruler { display: none; }
.ruler-track { position: relative; height: min(52vh, 460px); border-left: 1px solid var(--line); margin-block: 16px; }
.ruler-tick { position: absolute; left: 0; top: calc(var(--tick) / 30 * 100%); width: 6px; border-top: 1px solid var(--line); }
.ruler-tick:nth-child(5n + 1) { width: 12px; border-color: var(--faint); }
.ruler-end { display: block; color: var(--faint); font: 10px var(--font-pixel); }
.ruler-pointer { position: absolute; bottom: var(--progress, 0%); left: -4px; width: 9px; height: 9px; transform: translateY(50%); background: var(--amber); }
.ruler-pointer span { position: absolute; left: 17px; top: -3px; white-space: nowrap; font: 9px/1.5 var(--font-pixel); color: var(--dim); }

.document { width: min(680px, calc(100% - var(--gutter) * 2)); margin: 72px auto 110px; }
.document-header h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); line-height: 1.25; }
.date { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--font-pixel); font-size: 11px; color: var(--dim); }
.date time { white-space: nowrap; }
.privacy-summary { margin-block: 44px 56px; padding: 16px 0 16px 24px; border-left: 2px solid var(--bone); font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.55; }
.policy-sections section + section { margin-top: 36px; }
.policy-sections h2 { font-size: 23px; margin-bottom: 12px; }
.policy-sections p { color: var(--dim); line-height: 1.9; max-width: 65ch; }
.contact-card { padding: clamp(24px, 5vw, 44px); background: var(--card); border: 1px solid var(--line); }
.contact-card h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.4; }
.contact-email { display: block; width: fit-content; margin-block: 24px 18px; font-size: clamp(1.05rem, 4vw, 2rem); line-height: 1.5; letter-spacing: -.035em; overflow-wrap: anywhere; }
.email { user-select: text; }
.copy-button { font-size: 13px; }
.copy-button:hover { border-color: var(--bone); }
.contact-card > p:last-child { font-size: 15px; color: var(--dim); margin-top: 20px; }
.copy-status { font-size: 13px; color: var(--dim); margin-top: 12px; }
.copy-status:empty { display: none; }
.faq { margin-top: 64px; }
.faq h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 30px; }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-weight: 500; line-height: 1.6; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font: 22px/1.5 var(--font-body); color: var(--dim); }
details[open] summary::after { content: "−"; }
details p { padding: 0 24px 26px 0; color: var(--dim); font-size: 16px; line-height: 1.9; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.copyright { white-space: nowrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { text-decoration: none; }

@media (min-width: 1024px) {
  .shell { width: min(1120px, calc(100% - 200px)); }
  .floor-ruler { display: block; position: fixed; left: 22px; top: 25vh; z-index: 2; pointer-events: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .hero { grid-template-columns: minmax(0, 1fr) 286px; gap: 32px; }
  .header-tools, #navigation { gap: 16px; }
  .brand { font-size: 16px; }
  #navigation a { font-size: 13px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .site-header { flex-wrap: wrap; gap: 12px; min-height: 76px; }
  .header-tools { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
  .js .menu-button { display: block; padding-inline: 10px; font-size: 13px; }
  .js #navigation { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 24px -16px var(--shadow); }
  .js #navigation.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  #navigation a { padding-block: 10px; }
  html:not(.js) .header-tools { width: 100%; }
  html:not(.js) #navigation { flex-wrap: wrap; gap: 8px 20px; }
  select { width: 94px; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 42px; padding-block: 48px 56px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: none; margin-block: 20px 24px; }
  .hero-tagline { max-width: 24em; font-size: 23px; }
  .hero-intro { max-width: 35em; }
  .hero-actions { margin-top: 26px; }
  .phone { width: 280px; }
  .theme-preview { width: min(100%, 330px); margin-inline: auto; }
  .section { padding-block: 56px; }
  .play-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 28px; }
  .play-crop { height: 220px; }
  .play-step h3 { margin-top: 18px; }
  .play-step p { max-width: 40ch; }
  .features { padding-block: 0 36px; }
  .promise { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .promise h2 { max-width: 12em; }
  .closing { flex-direction: column; align-items: flex-start; gap: 28px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .document { margin-block: 44px 72px; }
}
@media (max-width: 639px) {
  .features ul { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .theme-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-color: var(--faint) var(--card); scrollbar-width: thin; }
  .theme-card { scroll-snap-align: start; }
  .theme-info h3 { min-height: 0; }
}
@media (max-width: 380px) {
  .brand { font-size: 14px; }
  select { width: 80px; padding-inline: 4px; }
  .js .menu-button { font-size: 12px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
