/* Genzo 現像 — direction D「ネオン」. Tokens are mirrored in lp/genzo/brand-kit/tokens.css */
:root {
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --weight-display: 900;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --radius-sm: 6px; --radius-md: 12px; --radius-pill: 999px;
  --tap: 48px;
  --dur-fast: 120ms; --dur: 220ms; --dur-slow: 520ms;
  --ease: cubic-bezier(.2,.7,.2,1);
  --line-green: #06C755;

  /* 夜 (default for everyone, whatever the device setting: docs/adr/0010-dark-by-default.md) */
  --bg: #0B1A1C;
  --surface: #10252A;
  --surface-2: #163238;
  --text: #F4F1EA;
  --text-muted: #A9BDBA;
  --magenta: #FF3D8A;
  --on-magenta: #120910;
  --magenta-hover: #FF5C9C;
  --cyan: #3DE0FF;
  --on-cyan: #07262C;
  --cyan-text: #3DE0FF;
  --paper: #F4F1EA;
  --on-paper: #0B1A1C;
  --line: #234C52;
  --line-strong: #3D7079;
  --danger: #FF7B6B;
  --focus: #3DE0FF;
  --scrim: rgba(4, 12, 14, .86);
  --grain-opacity: .075;
  --glow-a: rgba(255, 61, 138, .42);
  --glow-b: rgba(61, 224, 255, .30);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF3F2; --surface: #FFFFFF; --surface-2: #DCE7E6; --text: #0B1A1C; --text-muted: #4C6361;
  --magenta: #D8156A; --on-magenta: #FFFFFF; --magenta-hover: #B80F58; --cyan: #3DE0FF; --on-cyan: #07262C; --cyan-text: #0B6B79;
  --paper: #0B1A1C; --on-paper: #F4F1EA; --line: #B9CBC9; --line-strong: #7E9A98; --danger: #B3261E; --focus: #0E5BD8;
  --scrim: rgba(11, 26, 28, .80); --grain-opacity: .05; --glow-a: rgba(216, 21, 106, .22); --glow-b: rgba(61, 224, 255, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
.app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 0 var(--space-4) var(--space-8); }
@media (min-width: 768px) { .app { padding-left: var(--space-6); padding-right: var(--space-6); } }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; }
h2 { font-size: 1.25rem; } h3 { font-size: 1rem; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.display { font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: .02em; line-height: 1.15; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; flex-basis: 18px; }
.hint { font-weight: 500; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
.error { color: var(--danger); font-size: .875rem; font-weight: 700; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
.rule-under { border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }

/* the tape — one memorable thing */
.tape {
  display: inline-block; position: relative; padding: 5px 16px 6px; max-width: 100%;
  background: var(--magenta); color: var(--on-magenta); font-family: var(--font-display); font-weight: var(--weight-display); line-height: 1.3;
  transform: rotate(-1.6deg); transform-origin: left center; letter-spacing: .01em;
  clip-path: polygon(0 10%, 1.2% 0, 2.6% 12%, 4% 2%, 5.2% 10%, 96% 10%, 97% 0, 98.2% 12%, 99.2% 3%, 100% 10%, 100% 92%, 98.8% 100%, 97.6% 90%, 96.4% 100%, 95.2% 92%, 4.5% 92%, 3.2% 100%, 2% 90%, .9% 100%, 0 92%);
}
.tape-cyan { background: var(--cyan); color: var(--on-cyan); transform: rotate(2.2deg); }
.tape-paper { background: var(--paper); color: var(--on-paper); transform: rotate(-2.4deg); }
.tape-sm { padding: 2px 10px 3px; font-size: .78rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.tape-title { font-size: clamp(1.3rem, 5.6vw, 1.7rem); padding: 6px 18px 8px; }
.tape-right { transform: rotate(2.2deg); transform-origin: right center; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 60px; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.15rem; letter-spacing: .03em; }
.brand small { font-weight: 700; font-size: .95rem; color: var(--text-muted); }

/* buttons */
.btn {
  -webkit-tap-highlight-color: transparent; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-5); border-radius: var(--radius-pill);
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  color: var(--text); background: var(--surface-2); text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--surface-2) 75%, var(--text) 10%); }
.btn:active { transform: scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--magenta); color: var(--on-magenta); font-weight: var(--weight-display); font-size: 1.05rem; letter-spacing: .04em; }
.btn-primary:hover { background: var(--magenta-hover); }
.btn-outline { background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-line { background: transparent; border-color: var(--line-green); box-shadow: inset 6px 0 0 var(--line-green); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 1.12rem; }
.btn-icon { width: var(--tap); min-width: var(--tap); padding: 0; border-radius: 50%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.actions { display: grid; gap: var(--space-2); }
.actions-2 { grid-template-columns: 1fr 1fr; }
.actions-2 .btn { padding-left: var(--space-3); padding-right: var(--space-3); font-size: .95rem; }

/* layout helpers */
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-7); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); background: var(--surface); }
.section-title { display: block; margin-bottom: var(--space-4); }

/* forms */
label.field { display: block; }
.field > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: var(--space-1); }
.field .hint { margin-top: var(--space-1); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; font-weight: 700; font-size: .9rem; margin-bottom: var(--space-2); }
.input {
  width: 100%; min-height: var(--tap); padding: 10px 14px; font: inherit; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
}
.input::placeholder { color: var(--text-muted); opacity: .8; }
.input:focus { border-color: var(--cyan-text); outline: 3px solid var(--focus); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; font-weight: 700; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chip input:checked + span { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-md); }
.segmented .chip span { width: 100%; justify-content: center; border: 0; background: transparent; border-radius: 9px; }
.segmented .chip input:checked + span { background: var(--cyan); color: var(--on-cyan); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--magenta); flex: 0 0 22px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.plan { position: relative; }
.plan input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.plan span { display: flex; flex-direction: column; gap: 2px; min-height: 88px; padding: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; transition: border-color var(--dur-fast), background var(--dur-fast); }
.plan b { font-size: .95rem; }
.plan em { font-style: normal; font-family: var(--font-mono); font-size: 1.1rem; }
.plan small { font-size: .72rem; color: var(--text-muted); line-height: 1.35; }
.plan input:checked + span { border-color: var(--magenta); box-shadow: inset 0 0 0 1px var(--magenta); background: color-mix(in srgb, var(--magenta) 10%, transparent); }
.plan input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* landing hero */
.hero { position: relative; padding: var(--space-5) 0 var(--space-6); }
.hero .tag { position: absolute; right: 0; top: var(--space-3); }
.hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); margin-top: var(--space-6); }
.hero .underline { display: block; width: min(62%, 240px); height: auto; margin: -6px 0 var(--space-4) 2px; }
.hero .lead { font-size: 1.05rem; max-width: 34ch; }
.how { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-3); }
.how div { font-size: .85rem; line-height: 1.45; }
.how p { margin-top: 6px; }
.tape-chip { padding: 1px 10px 2px; font-family: var(--font-sans); font-weight: 700; font-size: .78rem; letter-spacing: .02em; transform: rotate(-2deg); transform-origin: left center; }
@media (max-width: 360px) { .how { grid-template-columns: 1fr; } }

/* film page */
.film-head { position: relative; padding-bottom: var(--space-4); }
.film-head .tag { position: absolute; right: 0; top: 0; }
.cover { position: relative; overflow: hidden; border-radius: var(--radius-md); min-height: 200px; padding: var(--space-5) var(--space-4) var(--space-4); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3); background: var(--surface); isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: -30%; z-index: -1; background:
  radial-gradient(42% 46% at 22% 30%, var(--glow-a), transparent 70%),
  radial-gradient(38% 42% at 80% 72%, var(--glow-b), transparent 70%); filter: blur(10px); }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.cover .developed-photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cover .quote { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.05rem; color: var(--text); opacity: .9; }
.stats3 { display: grid; grid-template-columns: auto auto 1fr; column-gap: var(--space-2); margin-top: var(--space-5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats3 > div { padding: var(--space-3) var(--space-3) var(--space-3) 0; min-width: 0; }
.stats3 > div + div { border-left: 1px solid var(--line); padding-left: var(--space-3); }
.stats3 > div > span { display: block; font-size: .75rem; color: var(--text-muted); font-weight: 700; }
.stats3 b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.25rem, 5.4vw, 1.7rem); line-height: 1.15; white-space: nowrap; }
.stats3 b.hot { color: var(--magenta); }
.stats3 i { font-style: normal; font-family: var(--font-sans); font-size: .8rem; color: var(--text-muted); margin-left: 2px; white-space: nowrap; }
.roll { display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: 3px; margin-top: var(--space-4); }
.roll i { display: block; height: 14px; border-radius: 2px; border: 1px solid var(--line-strong); }
.roll i.used { background: var(--magenta); border-color: var(--magenta); }
.roll-note { margin-top: var(--space-2); display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-muted); }
.cta { margin-top: var(--space-5); }
.meta-row { display: flex; gap: var(--space-4); font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }

/* invite */
.qr-wrap { background: #fff; border-radius: var(--radius-md); padding: 10px; width: min(228px, 62vw); margin: var(--space-4) auto; }
.qr { display: block; width: 100%; height: auto; }
.share-url { font-family: var(--font-mono); font-size: .85rem; word-break: break-all; border: 1px dashed var(--line-strong); padding: var(--space-3); border-radius: var(--radius-sm); color: var(--text-muted); }

/* join */
.join-intro { min-height: calc(100dvh - 160px); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.join-intro .tag { position: absolute; right: 0; top: 0; }
.join-intro .quote { margin-top: 20vh; }
.join-intro .quote h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
.join-intro .quote p { margin-top: var(--space-3); font-size: 1.05rem; color: var(--text-muted); }
.join-intro .film-line { margin-top: var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.join-intro .bottom { padding-bottom: var(--space-4); }
.join-sheet { border-top: 1px solid var(--line); padding-top: var(--space-5); }

/* gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: var(--space-4); }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid button { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--surface-2); cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.04) saturate(1.06); }
.grid button:focus-visible { outline-offset: -3px; z-index: 1; }
.grid .who { position: absolute; left: 4px; bottom: 6px; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--cyan); color: var(--on-cyan); font-size: .68rem; font-weight: 700; padding: 1px 7px 2px; transform: rotate(-2deg); transform-origin: left bottom;
  clip-path: polygon(0 12%, 3% 0, 6% 14%, 94% 14%, 97% 0, 100% 12%, 100% 90%, 97% 100%, 94% 88%, 6% 88%, 3% 100%, 0 90%); }
.empty { text-align: center; padding: var(--space-7) var(--space-4); color: var(--text-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); margin-top: var(--space-4); }

/* viewer */
dialog.viewer { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #050B0C; color: #F4F1EA; }
dialog.viewer::backdrop { background: #050B0C; }
.viewer-body { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.viewer-img { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: calc(var(--space-2) + env(safe-area-inset-top)) var(--space-3) var(--space-2); }
.viewer-bottom { padding: var(--space-2) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom)); }
.viewer .btn { color: #F4F1EA; background: rgba(255,255,255,.1); }
.viewer .btn:hover { background: rgba(255,255,255,.2); }
.viewer .btn-danger { color: #FF9C94; border-color: rgba(255,156,148,.6); background: transparent; }
.viewer .meta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.viewer .meta .when { font-size: .78rem; color: #A9BDBA; font-family: var(--font-mono); }

/* camera overlay */
.camera { position: fixed; inset: 0; z-index: 50; background: #061012; color: #F4F1EA; display: flex; flex-direction: column; }
.cam-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: calc(var(--space-2) + env(safe-area-inset-top)) var(--space-3) var(--space-2); }
.cam-top .btn, .cam-bottom .btn { color: #F4F1EA; background: rgba(255,255,255,.1); }
.cam-top .btn:hover, .cam-bottom .btn:hover { background: rgba(255,255,255,.2); }
.cam-top .btn[aria-pressed="true"] { background: var(--cyan); color: var(--on-cyan); }
.cam-counter { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .06em; background: #3DE0FF; color: #07262C; padding: 3px 12px 4px; transform: rotate(-2deg);
  clip-path: polygon(0 12%, 3% 0, 6% 14%, 94% 14%, 97% 0, 100% 12%, 100% 90%, 97% 100%, 94% 88%, 6% 88%, 3% 100%, 0 90%); }
.cam-counter small { font-family: var(--font-sans); letter-spacing: 0; font-size: .75rem; margin-left: 4px; font-weight: 700; }
.viewfinder { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #000; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder video.mirror { transform: scaleX(-1); }
.viewfinder.filtered video { filter: contrast(1.06) saturate(1.12) brightness(1.02); }
.gate { position: absolute; inset: 14px; pointer-events: none; }
.gate i { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(61,224,255,.9); }
.gate i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.gate i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.gate i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.gate i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash var(--dur-slow) var(--ease); }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.cam-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-6); text-align: center; color: #A9BDBA; }
.cam-fallback .icon { width: 48px; height: 48px; flex-basis: 48px; color: #FF3D8A; }
.cam-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--space-4) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); }
.cam-bottom > :first-child { justify-self: start; } .cam-bottom > :last-child { justify-self: end; }
.shutter { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #F4F1EA; background: #FF3D8A; cursor: pointer; padding: 0; display: grid; place-items: center; color: #120910; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast); -webkit-tap-highlight-color: transparent; }
.shutter:active { transform: scale(.93); background: #FF5C9C; }
.shutter:focus:not(:focus-visible) { outline: none; }
.shutter:disabled { opacity: .4; cursor: not-allowed; }
.shutter .icon { width: 30px; height: 30px; flex-basis: 30px; }
.cam-note { text-align: center; font-size: .85rem; color: #A9BDBA; padding: 0 var(--space-4) var(--space-2); min-height: 1.4em; }
.advance { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #3DE0FF; color: #07262C; padding: 8px 16px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; clip-path: polygon(0 12%, 3% 0, 6% 14%, 94% 14%, 97% 0, 100% 12%, 100% 90%, 97% 100%, 94% 88%, 6% 88%, 3% 100%, 0 90%); }
.advance.show { animation: advance 1.4s var(--ease); }
@keyframes advance { 0% { opacity: 0; transform: translate(-50%, -30%) rotate(-3deg); } 15%, 75% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg); } 100% { opacity: 0; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); transform: translateX(-50%) rotate(-1.5deg); z-index: 60; background: var(--cyan); color: var(--on-cyan); padding: 9px 18px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); max-width: calc(100vw - 32px); text-align: center;
  clip-path: polygon(0 10%, 2% 0, 4% 12%, 96% 12%, 98% 0, 100% 10%, 100% 92%, 98% 100%, 96% 90%, 4% 90%, 2% 100%, 0 92%); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px) rotate(-1.5deg); }

/* reveal: the one orchestrated moment */
.reveal-in { animation: revealIn var(--dur-slow) var(--ease) both; }
@keyframes revealIn { from { opacity: 0; filter: blur(8px) saturate(0); } to { opacity: 1; filter: none; } }
.footer { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--text-muted); font-size: .8rem; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.footer a { color: var(--text-muted); }

/* about */
.prose { max-width: 60ch; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* round 5: host account, banners, messages, legal */
.lang-btn { min-height: 40px; padding: 0 14px; font-size: .85rem; }
.standin .tape-paper { font-family: var(--font-mono); font-size: .7rem; padding: 1px 8px 2px; margin-right: 6px; }
.rolls { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.rolls li + li { border-top: 1px solid var(--line); }
.rolls a { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3) 0; text-decoration: none; color: inherit; }
.rolls a b { font-size: 1.05rem; }
.plan-quiet span { opacity: .75; }
.banner { border: 1px solid var(--magenta); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-5); background: color-mix(in srgb, var(--magenta) 10%, transparent); }
.banner p { margin: 0 0 var(--space-3); font-weight: 700; }
.banner .hint { margin: var(--space-2) 0 0; font-weight: 500; }
.msgbox { font-family: var(--font-sans); font-size: .9rem; line-height: 1.5; resize: vertical; min-height: 84px; margin-bottom: var(--space-2); }
.grid button.is-hidden img { opacity: .35; filter: grayscale(1); }
.grid .hidden-tag, .grid .report-tag { position: absolute; top: 6px; left: 6px; font-size: .64rem; font-weight: 700; padding: 1px 6px; background: var(--paper); color: var(--on-paper); transform: rotate(-2deg); }
.grid .report-tag { top: auto; bottom: 28px; background: var(--magenta); color: var(--on-magenta); }
dl.legal { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-2) var(--space-4); }
dl.legal dt { font-weight: 700; font-size: .85rem; color: var(--text-muted); margin-top: var(--space-2); }
dl.legal dd { margin: 0; }
details summary { cursor: pointer; font-weight: 700; }
