:root {
  --bg: #F4F1EA;
  --fg: #121212;
  --muted: #5b5750;
  --accent: #FF5A36;
  --line: #d9d3c7;
  --card: #ffffff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --fg: #F4F1EA; --muted: #a9a39a; --line: #2e2c29; --card: #1b1a19; }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.home { max-width: 680px; margin: 0 auto; padding: 48px 16px 32px; }
.kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-size: .85rem; }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 900; }
mark { background: var(--accent); color: #fff; padding: 0 .12em; border-radius: 6px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 160px; padding: 24px; border: 2px dashed var(--fg); border-radius: 20px;
  background: var(--card); cursor: pointer; text-align: center; transition: transform .15s, border-color .15s;
}
.drop:hover, .drop.over { transform: translateY(-2px); border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop-title { font-weight: 800; font-size: 1.2rem; }
.drop-hint { color: var(--muted); font-size: .95rem; }
.error { color: #c0261b; font-weight: 600; margin: 12px 0 0; }
.privacy { margin: 16px 0 40px; font-weight: 600; }

.howto h2 { font-size: 1.4rem; margin: 0 0 12px; letter-spacing: -.01em; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.steps h3 { margin: 0 0 8px; font-size: 1.05rem; }
.steps ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.steps li + li { margin-top: 4px; }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.foot { margin-top: 40px; color: var(--muted); font-size: .85rem; }

.story { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; background: #0b0b0b; }
.stage { position: relative; height: min(78dvh, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; }
.stage canvas { width: 100%; height: 100%; border-radius: 20px; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.tap { position: absolute; top: 0; bottom: 0; width: 40%; background: none; border: 0; cursor: pointer; }
.tap.prev { left: 0; } .tap.next { right: 0; width: 60%; }
.tap:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.btn { font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 999px; border: 0; background: #F4F1EA; color: #121212; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: #F4F1EA; border: 1px solid #444; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
