/* Sắc Việt · oderyn.com/sac-viet (also /en and /ko). An open stamp book on hanji: ink type and warm-grey prints on paper;
   cinnabar is only for seals and the visitor's own counts; every other colour arrives where the visitor stamps.
   Every rule is scoped to main.sv2 so the site's header, footer and other pages are untouched. */
.sv2 {
  --paper: #efe6d4;
  --paper-2: #f6f0e3;
  --card: #fbf7ee;
  --ink: #1c1712;
  --ink-2: #4a3f35;
  --mute: #6a5d4f;
  --line: #d9cdb8;
  --line-2: #c4b69c;
  --red: #a8261d;
  --red-deep: #861b14;
  --desk: #e2d7c1;
  --night: #0c0a09;
  --night-2: #15110e;
  --night-line: #2c241d;
  --glow: #f2d6a2;
  --night-text: #efe6d4;
  --night-mute: #b3a48b;
  --f-serif: "Fraunces", "Gowun Batang", Georgia, serif;
  --f-sans: "Be Vietnam Pro", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-hand: "Nanum Pen Script", "Gowun Batang", cursive;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --wrap: 1240px;
  --bar: 64px;
  color-scheme: light;
}
.sv2 * { box-sizing: border-box; }
.sv2 {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.72 var(--f-serif);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.sv2 img { max-width: 100%; display: block; }
.sv2 button, .sv2 input, .sv2 select { font: inherit; color: inherit; }
.sv2 button { cursor: pointer; }
.sv2 a { color: inherit; }
.sv2 :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sv2 ::selection { background: rgba(168, 38, 29, 0.18); }
/* paper and grain over everything that is paper */
.sv2 .tex, .sv2 .grain, .sv2 .earned-bg { position: fixed; inset: 0; pointer-events: none; }
.sv2 .tex { z-index: 0; background: url(tex/paper.jpg) center / 620px auto repeat; mix-blend-mode: multiply; opacity: 0.42; }
.sv2 .earned-bg { z-index: 0; opacity: 0; transition: opacity 1.6s var(--ease); mix-blend-mode: multiply; }
.sv2 .earned-bg.on { opacity: 0.55; }
.sv2 .earned-bg canvas { width: 100%; height: 100%; display: block; }
.sv2 .grain { z-index: 80; background: url(tex/grain.png) 0 0 / 256px repeat; opacity: 0.07; mix-blend-mode: overlay; }
.sv2 > section, .sv2 > .wrap, .sv2 > .sv-foot, .sv2 .bar { position: relative; z-index: 2; }
.sv2 .wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * max(16px, env(safe-area-inset-left, 0px)));
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .sv2 .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
/* type */
.sv2 .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.2 var(--f-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}
.sv2 .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.sv2 .night .kicker { color: var(--night-mute); }
.sv2 h1, .sv2 h2, .sv2 h3 { margin: 0; font-family: var(--f-serif); font-weight: 700; text-wrap: balance; word-break: keep-all; }
.sv2 h1 { font-size: clamp(44px, 6.3vw, 92px); line-height: 1.06; letter-spacing: -0.035em; }
.sv2 h2 { font-size: clamp(34px, 4.3vw, 62px); line-height: 1.12; letter-spacing: -0.03em; }
.sv2 h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.sv2 p { margin: 0; word-break: keep-all; }
.sv2 .lede { font-size: clamp(17px, 1.45vw, 19px); color: var(--ink-2); max-width: 34em; }
.sv2 .night .lede { color: var(--night-mute); }
.sv2 .em-red { color: var(--red); font-style: normal; }
.sv2 .it { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; }
.sv2 .small { font: 500 13px/1.5 var(--f-sans); color: var(--mute); }
.sv2 .num { font-variant-numeric: tabular-nums; }
.sv2 .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* buttons */
.sv2 .btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--b); background: var(--b); color: var(--paper);
  font: 600 15px/1 var(--f-sans); letter-spacing: -0.01em; text-decoration: none;
  transition: transform 0.25s var(--spring), background 0.2s, color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.sv2 .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(28, 23, 18, 0.55); }
.sv2 .btn:active { transform: translateY(0) scale(0.98); }
.sv2 .btn.ghost { background: transparent; color: var(--ink); }
.sv2 .btn.ghost:hover { background: rgba(28, 23, 18, 0.05); }
.sv2 .btn.red { --b: var(--red); }
.sv2 .btn.sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.sv2 .night .btn.ghost { color: var(--night-text); --b: rgba(239, 230, 212, 0.55); }
.sv2 .night .btn.ghost:hover { background: rgba(239, 230, 212, 0.08); }
.sv2 .btn .arr { transition: transform 0.25s var(--ease); }
.sv2 .btn:hover .arr { transform: translateX(3px); }
.sv2 .linkish { background: none; border: 0; padding: 0; font: 600 14px/1.4 var(--f-sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.sv2 .linkish:hover { color: var(--red); text-decoration-color: currentColor; }
/* ===== top bar ===== */
.sv2 .bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--bar);
  background: rgba(239, 230, 212, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.4s, color 0.5s;
}
.sv2 .bar.scrolled { border-bottom-color: var(--line); }
.sv2 .bar.dark { background: rgba(12, 10, 9, 0.78); border-bottom-color: var(--night-line); color: var(--night-text); }
.sv2 .bar .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.sv2 .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.sv2 .brand-seal { width: 30px; height: 30px; flex: none; }
.sv2 .brand b { font: 600 21px/1 "Fraunces", serif; letter-spacing: -0.02em; }
.sv2 .bar nav { display: flex; gap: 4px; margin: 0 auto; }
.sv2 .bar nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font: 500 13px/1 var(--f-sans); color: var(--ink-2); transition: color 0.2s, background 0.2s;
}
.sv2 .bar.dark nav a { color: var(--night-mute); }
.sv2 .bar nav a:hover { color: var(--ink); background: rgba(28, 23, 18, 0.06); }
.sv2 .bar.dark nav a:hover { color: var(--night-text); background: rgba(239, 230, 212, 0.08); }
.sv2 .bar nav a.on { color: var(--ink); }
.sv2 .bar.dark nav a.on { color: var(--night-text); }
.sv2 .bar nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.sv2 .hud { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.sv2 .bar nav + .hud { margin-left: 0; }
.sv2 .meter {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(251, 247, 238, 0.7); text-decoration: none;
  font: 600 12px/1 var(--f-sans); color: var(--ink);
}
.sv2 .bar.dark .meter { background: rgba(28, 23, 18, 0.6); border-color: var(--night-line); color: var(--night-text); }
.sv2 .meter svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.sv2 .meter .trk { stroke: var(--line); }
.sv2 .bar.dark .meter .trk { stroke: var(--night-line); }
.sv2 .meter .val { stroke: var(--red); transition: stroke-dashoffset 1s var(--ease); }
.sv2 .meter .lbl { display: grid; gap: 3px; }
.sv2 .meter .lbl small { font-size: 10px; letter-spacing: 0.08em; color: var(--mute); font-weight: 500; }
.sv2 .bar.dark .meter .lbl small { color: var(--night-mute); }
.sv2 .meter .chips { display: flex; gap: 2px; }
.sv2 .meter .chips i { width: 7px; height: 12px; border-radius: 2px; background: var(--line); }
.sv2 .bar.dark .meter .chips i { background: var(--night-line); }
.sv2 .snd { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; color: inherit; }
.sv2 .bar.dark .snd { border-color: var(--night-line); }
.sv2 .snd svg { width: 16px; height: 16px; }
.sv2 .snd[aria-pressed="false"] .on-ico, .sv2 .snd[aria-pressed="true"] .off-ico { display: none; }
@media (max-width: 1080px) {
  .sv2 .bar nav { display: none; }
  .sv2 .meter .chips { display: none; }
}
@media (max-width: 520px) {
  .sv2 .bar .apply { display: none; }
  .sv2 .brand b { font-size: 19px; }
}
/* ===== sections ===== */
.sv2 section { position: relative; }
.sv2 .sec { padding-block: clamp(84px, 11vw, 150px); }
.sv2 .sec-head { display: grid; gap: 18px; max-width: 760px; }
.sv2 .sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sv2 .rule { height: 1px; background: var(--line); margin-block: 0; }
/* ===== hero ===== */
.sv2 .hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.sv2 .hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sv2 .hero-copy { display: grid; gap: 26px; align-content: center; }
.sv2 .hero-copy h1 .swap { display: block; position: relative; }
.sv2 .hero-copy h1 .line { display: block; }
.sv2 .hero-copy h1 .place-name { color: var(--placec, var(--ink)); transition: color 1.2s var(--ease); }
.sv2 .hero-copy .lede { min-height: 3.4em; }
.sv2 .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sv2 .place-invite { margin-top: 24px; }
.sv2 .place-invite .hero-actions { gap: 8px; }
.sv2 .place-invite .btn { white-space: normal; text-align: center; line-height: 1.25; }
.sv2 .place-invite .invite-status:not(:empty) { margin: 8px 0; color: var(--ink-2); }
.sv2 .place-invite details { margin-top: 10px; font: 500 14px/1.5 var(--f-sans); color: var(--ink-2); }
.sv2 .place-invite summary { cursor: pointer; width: fit-content; }
.sv2 .place-invite details p { margin: 8px 0; }
.sv2 .hold-hint { display: flex; align-items: center; gap: 14px; font: 500 14px/1.45 var(--f-sans); color: var(--ink-2); }
.sv2 .hold-hint kbd { font: 600 12px/1 var(--f-sans); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); }
.sv2 .hero-stage { position: relative; }
.sv2 .print {
  position: relative; margin: 0; padding: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) 0;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(28, 23, 18, 0.06), 0 30px 60px -38px rgba(60, 40, 20, 0.55), 0 8px 18px -12px rgba(60, 40, 20, 0.25);
  transform: rotate(-0.6deg);
}
.sv2 .print .frame { position: relative; overflow: hidden; background: #d9cfbd; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.sv2 .print .frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(28, 23, 18, 0.08); pointer-events: none; }
.sv2 .print canvas, .sv2 .print .fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sv2 .print .fallback { object-fit: cover; filter: grayscale(1) sepia(0.12) contrast(1.02); transition: filter 2.6s var(--ease); }
.sv2 .print .fallback.on { filter: none; }
.sv2 .print figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 2px 14px; }
.sv2 .print figcaption .where { font: 400 26px/1 var(--f-hand); color: var(--ink-2); white-space: nowrap; }
.sv2 .print figcaption .cred { font: 500 11px/1.45 var(--f-sans); color: var(--mute); text-align: right; }
.sv2 .print figcaption .cred a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.sv2 .corner { position: absolute; width: 34px; height: 34px; z-index: 3; pointer-events: none; }
.sv2 .corner::before { content: ""; position: absolute; inset: 0; background: rgba(28, 23, 18, 0.82); clip-path: polygon(0 0, 100% 0, 0 100%); }
.sv2 .corner.tl { left: 2px; top: 2px; }
.sv2 .corner.tr { right: 2px; top: 2px; transform: scaleX(-1); }
.sv2 .print.shake { animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 10%, 90% { transform: rotate(-0.6deg) translate(-1px, 1px); } 20%, 80% { transform: rotate(-0.6deg) translate(2px, -1px); } 30%, 50%, 70% { transform: rotate(-0.6deg) translate(-3px, 2px); } 40%, 60% { transform: rotate(-0.6deg) translate(3px, -1px); } }
/* the seal that is pressed */
.sv2 .press {
  position: absolute; right: clamp(-26px, -1.6vw, -10px); bottom: clamp(36px, 5vw, 64px); z-index: 6;
  width: clamp(112px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0;
  background: var(--paper-2);
  box-shadow: 0 16px 30px -18px rgba(60, 30, 15, 0.7), 0 0 0 8px rgba(239, 230, 212, 0.72);
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.sv2 .press:hover { transform: scale(1.04) rotate(-2deg); }
.sv2 .press.holding { transform: scale(0.94); box-shadow: 0 6px 12px -8px rgba(60, 30, 15, 0.7), 0 0 0 8px rgba(239, 230, 212, 0.72); }
.sv2 .press svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sv2 .press .ring-prog { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.sv2 .press .ghost-ring { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-dasharray: 3 4; }
.sv2 .press .label { font: 600 7px/1 var(--f-sans); letter-spacing: 1.4px; fill: var(--mute); }
.sv2 .press .face-hint { font: 700 13px/1 "Gowun Batang", serif; fill: var(--ink); }
.sv2 .press .face-sub { font: 500 7.5px/1 var(--f-sans); fill: var(--mute); }
.sv2 .press.done { cursor: default; }
.sv2 .press.done:hover { transform: none; }
.sv2 .press .impress { transform-origin: 50% 50%; }
.sv2 .press.thump .impress { animation: thump 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
@keyframes thump { 0% { transform: scale(1.5) rotate(-9deg); opacity: 0; } 45% { transform: scale(0.92) rotate(var(--rot, 4deg)); opacity: 1; } 100% { transform: scale(1) rotate(var(--rot, 4deg)); opacity: 1; } }
.sv2 .ink-ring { position: absolute; z-index: 5; border-radius: 50%; border: 2px solid var(--red); pointer-events: none; transform: translate(-50%, -50%) scale(0.4); opacity: 0.7; animation: inkring 1.1s var(--ease) forwards; }
@keyframes inkring { to { transform: translate(-50%, -50%) scale(2.6); opacity: 0; border-width: 0.5px; } }
.sv2 .hold-dot { position: absolute; z-index: 7; width: 84px; height: 84px; margin: -42px 0 0 -42px; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.sv2 .hold-dot.on { opacity: 1; }
.sv2 .hold-dot circle { fill: none; stroke-width: 3; }
.sv2 .hold-dot .t { stroke: rgba(251, 247, 238, 0.65); }
.sv2 .hold-dot .p { stroke: var(--red); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.sv2 .dropped-seal { position: absolute; z-index: 4; width: 92px; height: 92px; margin: -46px 0 0 -46px; pointer-events: none; }
.sv2 .dropped-seal svg { width: 100%; height: 100%; animation: thump 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
/* book strip */
.sv2 .book { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 14px; }
.sv2 .book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sv2 .book-head b { font: 700 22px/1 var(--f-serif); }
.sv2 .book-head .count { font: 700 22px/1 "Fraunces", serif; color: var(--red); }
.sv2 .book-head .count small { font: 500 13px/1 var(--f-sans); color: var(--mute); margin-left: 4px; }
.sv2 .book-row { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.sv2 .book-row::-webkit-scrollbar { height: 6px; }
.sv2 .book-row::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.sv2 .slot {
  flex: none; width: 92px; display: grid; justify-items: center; gap: 6px; padding: 8px 4px 6px; border-radius: 14px; border: 1px solid transparent;
  background: none; scroll-snap-align: start; transition: background 0.2s, border-color 0.2s, transform 0.25s var(--spring);
}
.sv2 .slot:hover { background: rgba(251, 247, 238, 0.75); border-color: var(--line); transform: translateY(-2px); }
.sv2 .slot[aria-current="true"] { border-color: var(--ink); background: var(--card); }
.sv2 .slot svg { width: 64px; height: 64px; }
.sv2 .slot span { font: 500 11.5px/1.25 var(--f-sans); color: var(--ink-2); text-align: center; word-break: keep-all; }
.sv2 .slot.got span { color: var(--ink); font-weight: 600; }
/* ===== daily ===== */
.sv2 .daily-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sv2 .flap-board { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 0 24px 48px -30px rgba(28, 23, 18, 0.8); }
.sv2 .flap-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; }
.sv2 .flap-row > span { font: 600 10.5px/1.2 var(--f-sans); letter-spacing: 0.14em; color: #a8987d; text-transform: uppercase; }
.sv2 .flaps { display: flex; gap: 3px; flex-wrap: wrap; }
.sv2 .flap {
  position: relative; width: 26px; height: 36px; border-radius: 4px; background: #2a231d; color: #f6efe1;
  font: 600 20px/36px "Be Vietnam Pro", sans-serif; text-align: center; overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.sv2 .flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55); }
.sv2 .flap.sp { background: transparent; box-shadow: none; width: 10px; }
.sv2 .flap.hit { color: #ffd9c9; }
.sv2 .flap.tick { animation: flaptick 0.07s linear; }
@keyframes flaptick { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.82); } 100% { transform: scaleY(1); } }
.sv2 .tile-wrap { margin-top: 16px; display: grid; gap: 12px; }
.sv2 .tile { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #d9cfbd; box-shadow: 0 1px 0 rgba(28, 23, 18, 0.06), 0 26px 50px -36px rgba(60, 40, 20, 0.7); }
.sv2 .tile canvas, .sv2 .tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv2 .tile .tile-seal { position: absolute; right: 14px; bottom: 14px; width: 104px; height: 104px; pointer-events: none; }
.sv2 .tile .zoom-tag { position: absolute; left: 12px; top: 12px; font: 600 11px/1 var(--f-sans); letter-spacing: 0.08em; padding: 7px 10px; border-radius: 999px; background: rgba(28, 23, 18, 0.72); color: var(--paper); }
.sv2 .tries { display: flex; gap: 6px; }
.sv2 .tries i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background 0.4s; }
.sv2 .tries i.miss { background: var(--ink-2); }
.sv2 .tries i.hit { background: var(--red); }
.sv2 .guess-panel { display: grid; gap: 18px; }
.sv2 .guess-form { position: relative; display: flex; gap: 10px; }
.sv2 .guess-form input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--card);
  font: 500 16px/1 var(--f-sans);
}
.sv2 .guess-form input::placeholder { color: #9b8d78; }
.sv2 .guess-form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(168, 38, 29, 0.14); }
.sv2 .sugg { position: absolute; left: 0; right: 0; top: 60px; z-index: 20; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 24px 40px -24px rgba(28, 23, 18, 0.55); max-height: 280px; overflow: auto; }
.sv2 .sugg li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: 500 15px/1.3 var(--f-sans); }
.sv2 .sugg li small { color: var(--mute); font-weight: 500; }
.sv2 .sugg li[aria-selected="true"], .sv2 .sugg li:hover { background: rgba(28, 23, 18, 0.06); }
.sv2 .guesses { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sv2 .guesses li {
  display: grid; grid-template-columns: minmax(0, 1fr) 74px 34px 52px; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--line-2); font: 500 15px/1.2 var(--f-sans);
}
.sv2 .guesses li.filled { border-style: solid; border-color: var(--line); background: var(--card); animation: rowin 0.45s var(--spring); }
.sv2 .guesses li.win { border-color: var(--red); background: #fbefe7; }
@keyframes rowin { from { transform: translateY(6px) scale(0.98); } }
.sv2 .guesses .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv2 .guesses .km { text-align: right; color: var(--ink-2); }
.sv2 .guesses .dir { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); }
.sv2 .guesses .dir svg { width: 14px; height: 14px; }
.sv2 .guesses .pct { text-align: right; font-weight: 700; }
.sv2 .guesses li .bar-in { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--line); margin: -4px 0 8px; overflow: hidden; }
.sv2 .guesses li .bar-in i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--ink-2), var(--red)); transition: width 0.8s var(--ease); }
.sv2 .daily-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: center; }
.sv2 .week { display: flex; gap: 8px; align-items: center; }
.sv2 .week i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; font: 600 10px/1 var(--f-sans); font-style: normal; color: var(--mute); }
.sv2 .week i.got { border: 0; background: var(--red); color: var(--paper); }
.sv2 .week i.today { border-color: var(--ink); color: var(--ink); }
.sv2 .result {
  display: none; gap: 16px; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -44px rgba(60, 40, 20, 0.8);
}
.sv2 .result.show { display: grid; animation: rowin 0.5s var(--spring); }
.sv2 .share-text { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); border: 1px dashed var(--line-2); font: 500 15px/1.6 var(--f-sans); white-space: pre-wrap; }
.sv2 .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sv2 .stat-row { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 13px/1.4 var(--f-sans); color: var(--mute); }
.sv2 .stat-row b { color: var(--ink); font-weight: 700; }
/* ===== map ===== */
.sv2 .map-grid { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sv2 .map-box { position: relative; }
.sv2 .map-box svg { width: 100%; height: auto; max-height: 860px; display: block; overflow: visible; }
.sv2 .map-box .prov { transition: fill-opacity 1.6s var(--ease); cursor: pointer; }
.sv2 .map-box .prov:hover { fill-opacity: 0.95 !important; }
.sv2 .map-tip {
  position: absolute; z-index: 10; pointer-events: none; min-width: 180px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font: 500 12.5px/1.45 var(--f-sans); transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity 0.15s;
}
.sv2 .map-tip.on { opacity: 1; }
.sv2 .map-tip b { display: block; font: 700 15px/1.3 var(--f-serif); }
.sv2 .map-side { display: grid; gap: 26px; position: sticky; top: calc(var(--bar) + 24px); }
.sv2 .big-num { display: grid; gap: 6px; }
.sv2 .big-num strong { font: 600 clamp(56px, 7vw, 96px)/0.95 "Fraunces", serif; letter-spacing: -0.04em; color: var(--red); font-variant-numeric: tabular-nums; }
.sv2 .big-num span { font: 500 14px/1.4 var(--f-sans); color: var(--ink-2); }
.sv2 .fill-bar { display: grid; gap: 8px; }
.sv2 .fill-bar .track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.sv2 .fill-bar .track i { display: block; height: 100%; width: var(--w, 0%); border-radius: 5px; background: var(--grad, var(--ink-2)); transition: width 1.2s var(--ease); }
.sv2 .fill-bar .lbl { display: flex; justify-content: space-between; font: 600 13px/1 var(--f-sans); }
.sv2 .top3 { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sv2 .top3 li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sv2 .top3 .rk { font: 600 32px/1 "Fraunces", serif; color: var(--line-2); }
.sv2 .top3 li:first-child .rk { color: var(--red); }
.sv2 .top3 b { font: 700 17px/1.2 var(--f-serif); display: block; }
.sv2 .top3 small { font: 500 12px/1.3 var(--f-sans); color: var(--mute); }
.sv2 .top3 .n { font: 600 14px/1 var(--f-sans); font-variant-numeric: tabular-nums; }
.sv2 .feed { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; min-height: 236px; }
.sv2 .feed li {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; background: rgba(251, 247, 238, 0.82); border: 1px solid var(--line);
  font: 500 13px/1.35 var(--f-sans); animation: feedin 0.6s var(--spring);
}
.sv2 .feed li.mine { border-color: var(--red); background: #fbefe7; }
@keyframes feedin { from { transform: translateY(-10px) scale(0.97); opacity: 0.3; } }
.sv2 .feed li svg { width: 36px; height: 36px; }
.sv2 .feed li time { color: var(--mute); font-size: 12px; }
.sv2 .feed li b { font-weight: 700; }
.sv2 .map-note { font: 500 13px/1.55 var(--f-sans); color: var(--mute); max-width: 36em; }
/* ===== lanterns (night) ===== */
.sv2 .night { background: var(--night); color: var(--night-text); }
.sv2 .river { position: relative; overflow: hidden; padding: 0; }
.sv2 .river canvas { display: block; width: 100%; height: clamp(640px, 82vh, 860px); touch-action: pan-y; }
.sv2 .river .over { position: absolute; inset: 0; pointer-events: none; }
.sv2 .river .over .wrap { height: 100%; position: relative; }
.sv2 .river .river-head { position: absolute; top: clamp(56px, 8vw, 96px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px; max-width: 640px; pointer-events: auto; }
@media (min-width: 720px) {
  .sv2 .river .river-head { left: max(32px, env(safe-area-inset-left, 0px)); }
}
.sv2 .river h2 { color: var(--night-text); }
.sv2 .moon-tag { position: absolute; top: clamp(60px, 8vw, 100px); right: max(16px, env(safe-area-inset-right, 0px)); text-align: right; font: 500 13px/1.5 var(--f-sans); color: var(--night-mute); pointer-events: auto; }
@media (min-width: 720px) {
  .sv2 .moon-tag { right: max(32px, env(safe-area-inset-right, 0px)); }
}
.sv2 .moon-tag b { display: block; font: 600 22px/1.2 "Fraunces", serif; color: var(--glow); }
.sv2 .composer {
  position: absolute; left: 50%; bottom: clamp(20px, 4vw, 40px); transform: translateX(-50%); width: min(680px, calc(100% - 32px));
  display: grid; gap: 10px; padding: 14px; border-radius: 22px; pointer-events: auto;
  background: rgba(22, 17, 14, 0.72); border: 1px solid rgba(242, 214, 162, 0.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.sv2 .composer form { display: flex; gap: 10px; }
.sv2 .composer input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(242, 214, 162, 0.25); background: rgba(12, 10, 9, 0.6); color: var(--night-text);
  font: 400 22px/1 var(--f-hand);
}
.sv2 .composer input::placeholder { color: rgba(239, 230, 212, 0.38); }
.sv2 .composer input:focus { outline: none; border-color: var(--glow); }
.sv2 .composer .btn { --b: var(--glow); color: var(--night); }
.sv2 .composer .meta { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.4 var(--f-sans); color: var(--night-mute); flex-wrap: wrap; }
.sv2 .composer .meta button { color: var(--night-mute); }
.sv2 .lan-card {
  position: absolute; z-index: 5; width: 260px; padding: 16px 16px 14px; border-radius: 16px; pointer-events: auto;
  background: rgba(246, 239, 225, 0.96); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, calc(-100% - 22px)) scale(0.96); opacity: 0; transition: opacity 0.18s, transform 0.25s var(--spring);
}
.sv2 .lan-card.on { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); }
.sv2 .lan-card .txt { font: 400 26px/1.15 var(--f-hand); word-break: keep-all; }
.sv2 .lan-card .txt.lat { font: italic 400 19px/1.3 "Fraunces", serif; }
.sv2 .lan-card .tr { margin-top: 6px; font: 500 12px/1.4 var(--f-sans); color: var(--mute); }
.sv2 .lan-card .row { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12px/1.3 var(--f-sans); color: var(--mute); }
.sv2 .lan-card .with { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font: 600 12.5px/1 var(--f-sans); }
.sv2 .lan-card .with.on { background: var(--red); border-color: var(--red); color: var(--paper); }
.sv2 .lan-list {
  position: absolute; inset: 0; z-index: 8; display: none; padding: 90px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); overflow: auto; pointer-events: auto;
  background: rgba(12, 10, 9, 0.92);
}
.sv2 .lan-list.on { display: block; }
.sv2 .lan-list ul { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.sv2 .lan-list li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--night-line); display: grid; gap: 4px; }
.sv2 .lan-list li .t { font: 400 24px/1.2 var(--f-hand); }
.sv2 .lan-list li .t.lat { font: italic 400 18px/1.35 "Fraunces", serif; }
.sv2 .lan-list li small { font: 500 12px/1.4 var(--f-sans); color: var(--night-mute); }
/* ===== relay ===== */
.sv2 .relay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sv2 .chain { margin-top: 34px; display: grid; gap: 0; position: relative; padding-left: 0; list-style: none; }
.sv2 .chain li { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; position: relative; font: 500 14px/1.35 var(--f-sans); }
.sv2 .chain li::before { content: ""; position: absolute; left: 22px; top: 44px; bottom: -8px; border-left: 1.5px dashed var(--line-2); }
.sv2 .chain li:last-child::before { display: none; }
.sv2 .chain li svg { width: 46px; height: 46px; position: relative; z-index: 1; background: var(--paper); border-radius: 50%; }
.sv2 .chain li b { font: 700 16px/1.2 var(--f-serif); display: block; }
.sv2 .chain li small { color: var(--mute); font-size: 12.5px; }
.sv2 .chain li .d { font: 500 12px/1 var(--f-sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.sv2 .chain li.you b { color: var(--red); }
.sv2 .relay-note { margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(251, 247, 238, 0.7); font: 500 13.5px/1.55 var(--f-sans); color: var(--ink-2); }
.sv2 .stage { position: relative; min-height: clamp(460px, 48vw, 600px); display: grid; place-items: center; perspective: 1600px; }
.sv2 .envelope {
  position: absolute; width: min(520px, 92%); aspect-ratio: 1.55; border-radius: 6px; background: #e9dcc3;
  box-shadow: 0 40px 70px -40px rgba(60, 40, 20, 0.8), inset 0 0 0 1px rgba(28, 23, 18, 0.06);
  transition: transform 0.9s var(--ease), opacity 0.6s; cursor: pointer; border: 0; padding: 0; text-align: left;
}
.sv2 .envelope .flap-top { position: absolute; left: 0; right: 0; top: 0; height: 58%; transform-origin: 50% 0; transition: transform 0.8s var(--ease); z-index: 3; }
.sv2 .envelope .flap-top::before { content: ""; position: absolute; inset: 0; background: #e2d3b6; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15)); }
.sv2 .envelope.open .flap-top { transform: rotateX(180deg); z-index: 0; }
.sv2 .envelope .body-l { position: absolute; inset: 0; background: #eadfc8; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); z-index: 2; }
.sv2 .envelope .addr { position: absolute; left: 9%; bottom: 14%; z-index: 4; display: grid; gap: 4px; }
.sv2 .envelope .addr .to { font: 400 34px/1 var(--f-hand); color: var(--ink); }
.sv2 .envelope .addr small { font: 600 11px/1.2 var(--f-sans); letter-spacing: 0.14em; color: var(--mute); }
.sv2 .envelope .stamp-sq { position: absolute; right: 7%; top: 9%; z-index: 4; width: 74px; height: 88px; padding: 5px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  -webkit-mask: radial-gradient(circle 3px at 3px 3px, #0000 98%, #000) -3px -3px / 8px 8px; mask: radial-gradient(circle 3px at 3px 3px, #0000 98%, #000) -3px -3px / 8px 8px; }
.sv2 .envelope .stamp-sq img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.15); }
.sv2 .envelope .pm { position: absolute; right: 11%; top: 20%; z-index: 5; width: 96px; height: 96px; transform: rotate(-12deg); opacity: 0.85; }
.sv2 .envelope .open-hint { position: absolute; left: 50%; top: 30%; z-index: 6; transform: translateX(-50%); font: 600 13px/1 var(--f-sans); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-6px); } }
.sv2 .envelope.open { transform: translateY(26%) scale(0.94); }
.sv2 .envelope.open .open-hint { display: none; }
.sv2 .envelope.gone { opacity: 0; pointer-events: none; transform: translateY(60%) scale(0.9); }
.sv2 .pcard { position: absolute; width: min(560px, 96%); aspect-ratio: 1.5; transform-style: preserve-3d; transition: transform 1s var(--ease); z-index: 4; opacity: 0; pointer-events: none; }
.sv2 .pcard.out { opacity: 1; pointer-events: auto; animation: cardout 1.1s var(--ease) both; }
@keyframes cardout { from { transform: translateY(30%) scale(0.85) rotate(0deg); opacity: 0; } to { transform: translateY(0) rotate(-1.2deg); opacity: 1; } }
.sv2 .pcard.flipped { transform: rotateY(180deg) rotate(1.2deg); }
.sv2 .pcard.out.flipped { animation: none; }
.sv2 .pcard .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; background: var(--card); padding: 12px; box-shadow: 0 40px 70px -40px rgba(60, 40, 20, 0.85), 0 0 0 1px rgba(28, 23, 18, 0.05); }
.sv2 .pcard .front .ph { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2px; background: #d9cfbd; touch-action: none; }
.sv2 .pcard .front canvas, .sv2 .pcard .front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv2 .pcard .front .press { right: 18px; bottom: 18px; width: 116px; box-shadow: 0 16px 30px -18px rgba(60, 30, 15, 0.7), 0 0 0 6px rgba(239, 230, 212, 0.7); }
.sv2 .pcard .back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; padding: 22px 24px; }
.sv2 .pcard .back .msg { padding-right: 20px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.sv2 .pcard .back .msg p { font: 400 25px/1.32 var(--f-hand); color: var(--ink); background-image: linear-gradient(transparent calc(100% - 1px), var(--line) 0); background-size: 100% 33px; }
.sv2 .pcard .back .msg .sig { font: 400 22px/1.3 var(--f-hand); color: var(--ink-2); text-align: right; margin-top: 4px; }
.sv2 .pcard .back .msg .add { color: var(--red); }
.sv2 .pcard .back .marks { position: relative; padding-left: 16px; }
.sv2 .pcard .back .marks .pm2 { position: absolute; width: 92px; height: 92px; }
.sv2 .pcard .back .route { position: absolute; left: 16px; right: 0; bottom: 0; height: 46%; }
.sv2 .pcard .back .route svg { width: 100%; height: 100%; overflow: visible; }
.sv2 .pcard .back .route path.trip { fill: none; stroke: var(--red); stroke-width: 1.4; stroke-dasharray: 3 3; }
.sv2 .relay-actions { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; z-index: 6; width: max-content; max-width: 100%; }
.sv2 .relay-actions[hidden] { display: none !important; }
/* share sheet */
.sv2 .sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(28, 23, 18, 0.42); display: none; align-items: flex-end; justify-content: center; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sv2 .sheet-back.on { display: flex; animation: fadein 0.2s; }
@keyframes fadein { from { opacity: 0; } }
.sv2 .sheet { width: min(520px, 100%); border-radius: 24px; background: var(--card); padding: 22px; display: grid; gap: 16px; animation: sheetup 0.4s var(--spring); max-height: calc(100vh - 32px); overflow: auto; }
@keyframes sheetup { from { transform: translateY(40px); } }
.sv2 .sheet h3 { font-size: 20px; }
.sv2 .sheet .apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sv2 .sheet .apps button { display: grid; justify-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper-2); font: 600 12px/1.2 var(--f-sans); }
.sv2 .sheet .apps button i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 800 15px/1 var(--f-sans); font-style: normal; color: #fff; }
.sv2 .sheet .preview { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper-2); }
.sv2 .sheet .preview img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.sv2 .sheet .preview b { display: block; font: 700 15px/1.3 var(--f-serif); }
.sv2 .sheet .preview small { font: 500 12px/1.4 var(--f-sans); color: var(--mute); }
.sv2 .sheet .story { width: 100%; border-radius: 14px; }
/* ===== palette ===== */
.sv2 .pal-grid { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sv2 .deck-area { display: grid; justify-items: center; gap: 20px; }
.sv2 .deck { position: relative; width: min(360px, 86vw); aspect-ratio: 0.74; }
.sv2 .dcard {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--card); padding: 10px 10px 0;
  box-shadow: 0 30px 60px -36px rgba(60, 40, 20, 0.85), 0 0 0 1px rgba(28, 23, 18, 0.06);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform;
  transition: transform 0.45s var(--spring);
}
.sv2 .dcard:active { cursor: grabbing; }
.sv2 .dcard .im { position: relative; height: 78%; border-radius: 14px; overflow: hidden; }
.sv2 .dcard .im img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.12) contrast(1.02); transition: filter 0.4s; }
.sv2 .dcard.peek .im img { filter: grayscale(0.15); }
.sv2 .dcard .cap { display: grid; gap: 2px; padding: 12px 8px; }
.sv2 .dcard .cap b { font: 700 22px/1.2 var(--f-serif); }
.sv2 .dcard .cap small { font: 500 12px/1.4 var(--f-sans); color: var(--mute); }
.sv2 .dcard .stamp-yes, .sv2 .dcard .stamp-no { position: absolute; top: 22px; padding: 6px 12px; border-radius: 8px; border: 3px solid; font: 800 18px/1 var(--f-sans); letter-spacing: 0.06em; opacity: 0; z-index: 3; }
.sv2 .dcard .stamp-yes { left: 20px; color: var(--red); border-color: var(--red); transform: rotate(-12deg); background: rgba(251, 247, 238, 0.85); }
.sv2 .dcard .stamp-no { right: 20px; color: var(--ink-2); border-color: var(--ink-2); transform: rotate(12deg); background: rgba(251, 247, 238, 0.85); }
.sv2 .deck-btns { display: flex; gap: 12px; }
.sv2 .deck-btns .btn { min-width: 132px; }
.sv2 .deck-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; border-radius: 22px; border: 1.5px dashed var(--line-2); padding: 24px; font: 500 14px/1.5 var(--f-sans); color: var(--mute); }
.sv2 .tray { width: min(420px, 100%); display: grid; gap: 10px; }
.sv2 .tray-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.sv2 .tray-row i { aspect-ratio: 0.62; border-radius: 8px; border: 1.5px dashed var(--line-2); position: relative; overflow: hidden; }
.sv2 .tray-row i.full { border: 0; background: var(--c); animation: dropfill 0.7s var(--spring); }
@keyframes dropfill { from { transform: scaleY(0.2); transform-origin: 50% 100%; } }
.sv2 .tray small { font: 500 12.5px/1.4 var(--f-sans); color: var(--mute); text-align: center; }
.sv2 .drop { position: fixed; z-index: 95; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); pointer-events: none; }
.sv2 .pal-side { display: grid; gap: 22px; }
.sv2 .story-card {
  position: relative; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--paper-2); justify-self: center;
  box-shadow: 0 40px 70px -44px rgba(60, 40, 20, 0.9), 0 0 0 1px rgba(28, 23, 18, 0.06);
}
.sv2 .story-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv2 .story-inner { position: absolute; inset: 0; padding: 22px 20px; display: grid; grid-template-rows: auto 1fr auto; }
.sv2 .story-top { display: flex; justify-content: space-between; align-items: center; font: 600 11px/1 var(--f-sans); letter-spacing: 0.14em; color: var(--ink-2); }
.sv2 .story-top svg { width: 30px; height: 30px; }
.sv2 .story-mid { align-self: end; display: grid; gap: 10px; }
.sv2 .story-mid .type { font: 700 30px/1.15 var(--f-serif); letter-spacing: -0.02em; }
.sv2 .story-mid .desc { font: 500 13px/1.5 var(--f-sans); color: var(--ink-2); }
.sv2 .swatches { display: grid; gap: 6px; margin-top: 8px; }
.sv2 .swatches div { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font: 500 12px/1.2 var(--f-sans); }
.sv2 .swatches i { width: 26px; height: 26px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.sv2 .swatches span { color: var(--mute); font-variant-numeric: tabular-nums; }
.sv2 .story-bot { margin-top: 14px; display: flex; justify-content: space-between; align-items: end; font: 500 11px/1.3 var(--f-sans); color: var(--ink-2); }
.sv2 .story-bot b { font: 600 14px/1.2 "Fraunces", serif; color: var(--ink); }
.sv2 .story-card.empty .story-inner > * { opacity: 0.55; }
.sv2 .match { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(251, 247, 238, 0.75); display: grid; gap: 12px; }
.sv2 .match .bars { display: grid; gap: 6px; }
.sv2 .match .bars div { height: 18px; border-radius: 9px; display: flex; overflow: hidden; }
.sv2 .match .bars i { flex: 1; }
.sv2 .match p { font: 500 14px/1.5 var(--f-sans); color: var(--ink-2); }
.sv2 .match b.where { font: 700 20px/1.2 var(--f-serif); color: var(--ink); }
/* ===== app ===== */
.sv2 .app-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sv2 .facts { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sv2 .facts div { padding: 16px 14px 16px 0; display: grid; gap: 4px; }
.sv2 .facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.sv2 .facts b { font: 600 26px/1 "Fraunces", serif; color: var(--red); }
.sv2 .facts span { font: 500 12.5px/1.4 var(--f-sans); color: var(--ink-2); }
.sv2 .ticket { margin-top: 34px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; max-width: 640px; filter: drop-shadow(0 26px 30px rgba(60, 40, 20, 0.22)); }
.sv2 .ticket .main, .sv2 .ticket .stub { background: var(--card); position: relative; }
.sv2 .ticket .main { border-radius: 18px 0 0 18px; padding: 20px 22px; display: grid; gap: 14px; -webkit-mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) bottom right / 100% 51% no-repeat; mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) bottom right / 100% 51% no-repeat; }
.sv2 .ticket .stub { border-radius: 0 18px 18px 0; padding: 18px 14px; display: grid; align-content: space-between; justify-items: center; gap: 10px; border-left: 2px dashed var(--line-2); touch-action: none; cursor: grab; transition: transform 0.5s var(--spring); -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 98%, #000) bottom left / 100% 51% no-repeat; mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 98%, #000) bottom left / 100% 51% no-repeat; }
.sv2 .ticket .stub.torn { transition: transform 0.9s var(--ease), opacity 0.9s; transform: translate(120px, 60px) rotate(18deg); opacity: 0; pointer-events: none; }
.sv2 .tk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 11px/1 var(--f-sans); letter-spacing: 0.18em; color: var(--mute); }
.sv2 .tk-top .brandline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.sv2 .tk-top svg { width: 22px; height: 22px; }
.sv2 .tk-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.sv2 .tk-route b { display: block; font: 600 34px/1 "Fraunces", serif; letter-spacing: -0.02em; }
.sv2 .tk-route small { font: 500 12px/1.3 var(--f-sans); color: var(--mute); }
.sv2 .tk-route .to { text-align: right; }
.sv2 .tk-route .plane { width: 60px; height: 20px; }
.sv2 .tk-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sv2 .tk-fields div { display: grid; gap: 3px; min-width: 0; }
.sv2 .tk-fields small { font: 600 9.5px/1 var(--f-sans); letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; }
.sv2 .tk-fields span { font: 600 13.5px/1.3 var(--f-sans); word-break: keep-all; }
.sv2 .barcode { height: 34px; display: flex; gap: 2px; align-items: stretch; }
.sv2 .barcode i { background: var(--ink); }
.sv2 .stub .tear-hint { writing-mode: vertical-rl; font: 600 12px/1 var(--f-sans); letter-spacing: 0.12em; color: var(--red); }
.sv2 .stub .seat { font: 600 30px/1 "Fraunces", serif; }
.sv2 .stub small { font: 600 9px/1 var(--f-sans); letter-spacing: 0.14em; color: var(--mute); }
.sv2 .ticket .reveal { position: absolute; right: 0; top: 0; bottom: 0; width: 132px; display: grid; place-items: center; text-align: center; padding: 10px; z-index: -1; }
.sv2 .ticket .reveal a { font: 700 13px/1.4 var(--f-sans); color: var(--red); }
.sv2 .app-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.sv2 .phone { position: relative; width: min(320px, 78vw); aspect-ratio: 720 / 1600; justify-self: center; border-radius: 46px; padding: 10px; background: #1c1712; box-shadow: 0 50px 80px -50px rgba(28, 23, 18, 0.95), inset 0 0 0 2px #3a3029; }
.sv2 .phone .scr { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--paper); }
.sv2 .phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease), transform 6s linear; transform: scale(1.02); }
.sv2 .phone .scr img.on { opacity: 1; transform: scale(1); }
.sv2 .phone-tabs { margin-top: 16px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.sv2 .phone-tabs button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 600 12px/1 var(--f-sans); color: var(--ink-2); }
.sv2 .phone-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* ===== footer ===== */
.sv2 > .sv-foot { padding-block: 64px calc(110px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sv2 .foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.sv2 .foot-grid h3 { font-size: 18px; margin-bottom: 10px; }
.sv2 .credits { columns: 2 260px; column-gap: 28px; font: 500 12px/1.6 var(--f-sans); color: var(--mute); margin: 0; padding: 0; list-style: none; }
.sv2 .credits li { break-inside: avoid; padding: 2px 0; }
.sv2 .credits a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
/* floating compare chip + toast */
.sv2 .toast {
  position: fixed; z-index: 96; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 24px 40px -24px rgba(28, 23, 18, 0.7); font: 600 14px/1.35 var(--f-sans); max-width: calc(100% - 32px);
  transition: opacity 0.25s, transform 0.4s var(--spring);
}
.sv2 .toast.on { opacity: 1; transform: translate(-50%, 0); }
.sv2 .toast svg { width: 34px; height: 34px; flex: none; }
.sv2 .toast small { display: block; font-weight: 500; color: var(--mute); font-size: 12px; }
/* finale */
.sv2 .finale { position: fixed; inset: 0; z-index: 97; display: none; place-items: center; background: rgba(239, 230, 212, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 24px; }
.sv2 .finale.on { display: grid; animation: fadein 0.4s; }
.sv2 .finale .box { max-width: 460px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.sv2 .finale svg { width: 170px; height: 170px; }
.sv2 .finale .strip { display: flex; width: 100%; height: 22px; border-radius: 11px; overflow: hidden; }
.sv2 .finale .strip i { flex: 1; }
/* scroll reveals: start visible, only move */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sv2 .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes rise { from { transform: translateY(36px); } to { transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .sv2 *, .sv2 *::before, .sv2 *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* ===== responsive ===== */
@media (max-width: 960px) {
  .sv2 .hero-grid, .sv2 .daily-grid, .sv2 .map-grid, .sv2 .relay-grid, .sv2 .pal-grid, .sv2 .app-grid, .sv2 .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .sv2 .hero-stage { order: -1; }
  .sv2 .map-side { position: static; }
  .sv2 .stage { min-height: 520px; }
}
@media (max-width: 560px) {
  .sv2 { font-size: 16px; }
  .sv2 .press { right: -6px; bottom: 52px; width: 104px; }
  .sv2 .print { transform: none; }
  .sv2 .print.shake { animation: none; }
  .sv2 .print figcaption { flex-direction: column; gap: 6px; align-items: flex-start; }
  .sv2 .print figcaption .cred { text-align: left; }
  .sv2 .guesses li { grid-template-columns: minmax(0, 1fr) 62px 30px 44px; gap: 8px; padding: 0 10px; font-size: 14px; }
  .sv2 .flap { width: 21px; height: 30px; font-size: 16px; line-height: 30px; }
  .sv2 .flap-row { grid-template-columns: 58px 1fr; }
  .sv2 .tk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv2 .ticket { grid-template-columns: minmax(0, 1fr) 96px; }
  .sv2 .ticket .reveal { width: 96px; }
  .sv2 .tk-route b { font-size: 26px; }
  .sv2 .facts { grid-template-columns: minmax(0, 1fr); }
  .sv2 .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sv2 .pcard .back { grid-template-columns: 1fr; padding: 16px; }
  .sv2 .pcard .back .marks { display: none; }
  .sv2 .pcard .back .msg { border-right: 0; padding-right: 0; }
  .sv2 .pcard .back .msg p { font-size: 21px; background-size: 100% 28px; }
  .sv2 .sheet .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv2 .composer form { flex-direction: column; }
  .sv2 .composer .btn { width: 100%; }
  .sv2 .stage { min-height: 440px; }
  .sv2 .relay-actions { flex-direction: column; align-items: stretch; width: 92%; bottom: -24px; }
}
/* ===== the interactive layer ===== */
.sv2 [hidden] { display: none !important; }
.sv2 .inkline { position: relative; display: inline-block; }
.sv2 .inkline svg { position: absolute; left: -2%; width: 104%; bottom: -0.06em; height: 0.22em; overflow: visible; pointer-events: none; }
.sv2 .inkline path { stroke-dasharray: 140; animation: inkdraw 1.1s var(--ease) 0.25s both; }
@keyframes inkdraw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
.sv2 .hero-copy h1 .place-name { transition: color 1.4s var(--ease); }
.sv2 .print .frame { touch-action: pan-y; -webkit-touch-callout: none; }
.sv2 .press { -webkit-touch-callout: none; }
.sv2 .press > * { grid-area: 1 / 1; }
.sv2 .press .pr { width: 100%; height: 100%; }
.sv2 .press .impress { display: block; width: 84%; height: 84%; --rot: 0deg; }
.sv2 .press .impress svg { width: 100%; height: 100%; display: block; }
.sv2 .press:not(.done)::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; pointer-events: none; animation: invite 2.6s var(--ease) infinite; }
.sv2 .press.holding::after { animation: none; opacity: 0; }
@keyframes invite { 0% { transform: scale(0.92); opacity: 0; } 25% { opacity: 0.5; } 100% { transform: scale(1.18); opacity: 0; } }
.sv2 .print .frame canvas { transition: opacity 0.35s var(--ease); }
.sv2 .print .frame.fading canvas, .sv2 .print .frame.fading .fallback { opacity: 0.15; }
.sv2 .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.12) contrast(1.02); transition: filter 2.6s var(--ease), transform 1.4s var(--ease), opacity 0.35s; }
.sv2 .fallback.on { filter: none !important; }
.sv2 .dropped-seal.still svg { animation: none; }
.sv2 .slot.fresh svg { animation: thump 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.sv2 .meter.pulse svg { animation: mpulse 0.9s var(--spring); }
@keyframes mpulse { 40% { transform: rotate(-90deg) scale(1.2); } }
.sv2 .toast svg { width: 38px; height: 38px; }
/* daily */
.sv2 .tile-seal svg { width: 100%; height: 100%; display: block; }
.sv2 .tile-seal.thump svg { animation: thump 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.sv2 .guesses .nm small { font-size: 12px; color: var(--mute); font-weight: 500; margin-left: 4px; }
.sv2 .guesses .dir { color: var(--ink); }
.sv2 .guesses .dir.ok { background: none; border: 0; }
.sv2 .guesses .dir.ok svg { width: 30px; height: 30px; }
.sv2 .guess-form.off { opacity: 0.5; pointer-events: none; }
.sv2 .next-in { font: 500 13px/1.45 var(--f-sans); color: var(--mute); }
.sv2 .next-in b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sv2 .week .small { margin-left: 4px; }
/* map: a wash on canvas, lines in SVG, fresh stamps on top */
.sv2 .map-box { aspect-ratio: 3 / 5; width: min(100%, 470px, calc((100vh - 150px) * 0.6)); margin-inline: auto; }
.sv2 .map-box canvas.wash, .sv2 .map-box svg.mapsvg, .sv2 .map-box .pings { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.sv2 .mapsvg .prov { fill: transparent; stroke: transparent; stroke-width: 0.9; stroke-linejoin: round; cursor: pointer; transition: stroke 0.2s; }
.sv2 .mapsvg .prov:hover, .sv2 .mapsvg .prov.on { stroke: var(--ink); }
.sv2 .mapsvg .inner { fill: none; stroke: rgba(251, 247, 238, 0.92); stroke-width: 0.6; pointer-events: none; }
.sv2 .mapsvg .outline { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-linejoin: round; pointer-events: none; }
.sv2 .mapsvg .isle { fill: var(--ink-2); }
.sv2 .mapsvg .isl-l { font: 600 6.6px/1 var(--f-sans); fill: var(--mute); }
.sv2 .mapsvg .cdot { fill: var(--ink); pointer-events: none; }
.sv2 .mapsvg .city { font: 600 7.4px/1 var(--f-sans); fill: var(--ink-2); pointer-events: none; }
.sv2 .pings { pointer-events: none; }
.sv2 .map-ping { position: absolute; width: 0; height: 0; z-index: 4; }
.sv2 .map-ping::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--pc); animation: ping 1.9s var(--ease) forwards; }
.sv2 .map-box .map-ping svg { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; max-height: none; animation: pingseal 2s var(--ease) forwards; }
.sv2 .map-ping.mine::before { border-color: var(--red); border-width: 2.5px; animation-duration: 2.6s; }
.sv2 .map-box .map-ping.mine svg { left: -17px; top: -17px; width: 34px; height: 34px; animation-duration: 4.2s; }
@keyframes ping { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
@keyframes pingseal { 0% { transform: scale(1.7) rotate(-10deg); opacity: 0; } 16% { transform: scale(1) rotate(3deg); opacity: 1; } 78% { opacity: 1; } 100% { transform: scale(0.92) rotate(3deg); opacity: 0; } }
.sv2 .map-tip { white-space: nowrap; }
/* sheets */
.sv2 .pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sv2 .pick button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-2); text-align: left; transition: transform 0.2s var(--spring), border-color 0.2s; }
.sv2 .pick button:hover { transform: translateY(-2px); border-color: var(--ink); }
.sv2 .pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) sepia(0.12); }
.sv2 .pick span { display: block; padding: 7px 9px; font: 600 12.5px/1.3 var(--f-sans); }
.sv2 .pick span small { display: block; margin-top: 2px; font: 500 11px/1.3 var(--f-sans); color: var(--mute); }
.sv2 .pick em { font-style: normal; color: var(--red); font-size: 11px; }
.sv2 .sheet .apps button i { background: var(--ink); color: var(--paper); }
.sv2 .sheet .preview small.url { display: block; margin-top: 4px; color: var(--ink-2); }
/* a preview without a picture (a lantern's words) uses the whole width */
.sv2 .sheet .preview.text { grid-template-columns: minmax(0, 1fr); }
.sv2 .hand-input { width: 100%; height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--paper-2); font: 400 26px/1 var(--f-hand); }
.sv2 .hand-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(168, 38, 29, 0.14); }
.sv2 .sheet .story { max-height: 58vh; width: auto; max-width: 100%; justify-self: center; box-shadow: 0 20px 40px -24px rgba(28, 23, 18, 0.6); }
/* river */
.sv2 .moon-tag.inhead { position: static; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sv2 .moon-tag.inhead b { display: inline; font-size: 19px; }
.sv2 .composer { z-index: 9; }
.sv2 .lan-list { padding-bottom: 210px; }
/* relay */
.sv2 .pcard.settled { animation: none; opacity: 1; pointer-events: auto; transform: rotate(-1.2deg); }
.sv2 .pcard.settled.flipped { transform: rotateY(180deg) rotate(1.2deg); }
.sv2 .pcard .front .ph { touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.sv2 .pcard .back .marks .pm2 svg { width: 100%; height: 100%; display: block; }
.sv2 .pcard .back .route .rl text { font: 700 6.5px/1 var(--f-sans); fill: var(--mute); letter-spacing: 0.06em; }
.sv2 .pcard .back .route .rl text.me { fill: var(--red); }
.sv2 .envelope .pm { width: 150px; height: 94px; right: 5%; top: 17%; }
.sv2 .envelope .pm svg { width: 100%; height: 100%; }
.sv2 .envelope[aria-expanded="true"] { cursor: default; }
.sv2 .chain li .pmi { display: block; width: 46px; height: 46px; }
.sv2 .chain li.next { opacity: 0.6; }
/* palette */
.sv2 .dcard { touch-action: pan-y; }
.sv2 .dcard.peek .im img { filter: grayscale(0.55) sepia(0.06); }
.sv2 .deck:focus-visible { outline: 2px solid var(--red); outline-offset: 8px; border-radius: 24px; }
.sv2 .story-card:not(.empty) .story-top { color: var(--paper-2); }
.sv2 .match .bars { display: grid; grid-template-columns: 40px 1fr; gap: 6px 10px; align-items: center; }
.sv2 .match .bars span { font: 600 12px/1 var(--f-sans); color: var(--mute); }
.sv2 .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
/* performance: no live backdrop blur over the animated river, and no grain layer on top of it */
.sv2 .composer { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 17, 14, 0.9); }
.sv2 .bar.dark { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 10, 9, 0.94); }
html.night .sv2 .grain { visibility: hidden; }
/* the postcard has no 3D layer: it turns over in 2D (see setFlip), which every renderer draws cheaply */
.sv2 .pcard { transform-style: flat; transition: none; }
.sv2 .pcard .side { backface-visibility: visible; -webkit-backface-visibility: visible; }
.sv2 .pcard .back { transform: none; visibility: hidden; }
.sv2 .pcard.flipped .back { visibility: visible; }
.sv2 .pcard.flipped .front { visibility: hidden; }
.sv2 .pcard.flipped, .sv2 .pcard.settled.flipped { transform: rotate(1.2deg); }
/* the river's heading and moon line up with the page's own column on wide screens */
@media (min-width: 720px) {
  .sv2 .river .river-head { left: max(32px, env(safe-area-inset-left, 0px), calc((100% - var(--wrap) - 32px) / 2 + 32px)); }
  .sv2 .moon-tag { right: max(32px, env(safe-area-inset-right, 0px), calc((100% - var(--wrap) - 32px) / 2 + 32px)); }
}
/* a seal's pulse ring or a card flung off the deck never widens the page */
.sv2 > section { overflow-x: clip; }
@supports not (overflow: clip) {
  .sv2 > section { overflow-x: hidden; }
}
/* the boarding pass on a phone: drop the second label and tighten the route so nothing is cut */
@media (max-width: 560px) {
  .sv2 .tk-top > span:last-child { display: none; }
  .sv2 .tk-route { gap: 8px; }
  .sv2 .tk-route b { font-size: 24px; }
  .sv2 .tk-route .plane { width: 34px; }
}
.sv2 .ticket .main > * { min-width: 0; }
.sv2 .barcode { overflow: hidden; }
.sv2 .barcode i { flex: none; }
/* a lantern card opens beside or over a far lantern so it never covers the heading or the composer */
.sv2 .lan-card[data-side="right"] { transform: translate(0, -50%) scale(0.96); transform-origin: 0 50%; }
.sv2 .lan-card[data-side="right"].on { transform: translate(0, -50%) scale(1); }
.sv2 .lan-card[data-side="left"] { transform: translate(-100%, -50%) scale(0.96); transform-origin: 100% 50%; }
.sv2 .lan-card[data-side="left"].on { transform: translate(-100%, -50%) scale(1); }
.sv2 .lan-card[data-side="over"] { transform: translate(-50%, -50%) scale(0.96); }
.sv2 .lan-card[data-side="over"].on { transform: translate(-50%, -50%) scale(1); }
/* the postcard stays in view while the chain is read */
@media (min-width: 961px) {
  .sv2 .relay-grid { align-items: start; }
  .sv2 .relay-grid > .stage { position: sticky; top: 92px; }
}
.sv2 .lan-card .with { white-space: nowrap; flex: none; }

/* ===== on oderyn.com =====
   The page lives inside the site's shell. The floating site header stays on top; the scene bar
   sticks under it and moves up when the header steps aside; paper and grain cover this page's
   own <main> and nothing outside it. */
html:has(body > main.sv2) { scroll-padding-top: calc(var(--header) + 84px); }
.sv2 { position: relative; margin-top: calc(-1 * var(--header)); padding-top: var(--header); }
.sv2 .tex, .sv2 .grain, .sv2 .earned-bg { position: absolute; inset: 0; }
.sv2 .grain { z-index: 35; }
.sv2 .earned-bg canvas { position: sticky; top: 0; height: 100vh; }
.sv2 .bar { top: var(--header); z-index: 30; transition: top 0.5s var(--ease), background 0.5s var(--ease), border-color 0.4s, color 0.5s; }
body:has(> .site-header[data-hidden]) .sv2 .bar { top: 0; }
.sv2 .map-side { top: calc(var(--header) + var(--bar) + 24px); transition: top 0.5s var(--ease); }
body:has(> .site-header[data-hidden]) .sv2 .map-side { top: calc(var(--bar) + 24px); }
@media (min-width: 961px) {
  .sv2 .relay-grid > .stage { top: calc(var(--header) + var(--bar) + 28px); transition: top 0.5s var(--ease); }
  body:has(> .site-header[data-hidden]) .sv2 .relay-grid > .stage { top: calc(var(--bar) + 28px); }
}
.sv2 .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.sv2 > .sv-foot { padding-block: 64px 72px; }

/* the site's own rules for the same class and element names stop at this page */
.sv2 .hero { isolation: auto; overflow-x: clip; overflow-y: visible; min-height: 0; display: block; }
.sv2 .hero-stage { display: block; }
.sv2 .stage { height: auto; }
.sv2 .sheet .apps { padding-top: 0; }
.sv2 svg { display: revert; max-width: revert; }

/* without the script the page says what needs it */
.sv2 .noscript-note { font: 500 13.5px/1.5 var(--f-sans); color: var(--mute); }
html.ready .sv2 .noscript-note { display: none; }

/* my map: the latest stamps */
.sv2 .mine-list li { grid-template-columns: 44px minmax(0, 1fr) auto; }
.sv2 .mine-list .rk svg { width: 40px; height: 40px; display: block; }
.sv2 .mine-list .n { font: 500 12px/1 var(--f-sans); color: var(--mute); white-space: nowrap; }
.sv2 .mine-list li.none { grid-template-columns: minmax(0, 1fr); font: 500 13.5px/1.55 var(--f-sans); color: var(--ink-2); }
.sv2 .my-rec:empty { display: none; }

/* fields in the send sheets */
.sv2 .fld { display: grid; gap: 6px; font: 600 13px/1.3 var(--f-sans); color: var(--ink-2); }
.sv2 .fld small { font-weight: 500; color: var(--mute); }
.sv2 .fld input:not(.hand-input) { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper-2); font: 500 16px/1 var(--f-sans); }
.sv2 .fld input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168, 38, 29, 0.14); }

/* share targets: the links look like the buttons beside them */
.sv2 .sheet .apps a { display: grid; justify-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper-2); font: 600 12px/1.2 var(--f-sans); color: var(--ink); text-decoration: none; }
.sv2 .sheet .apps a i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 800 15px/1 var(--f-sans); font-style: normal; background: var(--ink); color: var(--paper); }

/* a friend's colours, when the page was opened from their link */
.sv2 .pal-friend { margin-top: 28px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(251, 247, 238, 0.8); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 14px/1.55 var(--f-sans); color: var(--ink-2); }
.sv2 .pal-friend b { color: var(--ink); }
.sv2 .pal-friend .dots { display: inline-flex; gap: 4px; }
.sv2 .pal-friend .dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }

/* questions */
.sv2 .faq-list { margin-top: clamp(28px, 4vw, 44px); max-width: 860px; border-top: 1px solid var(--line); }
.sv2 .faq-list details { border-bottom: 1px solid var(--line); }
.sv2 .faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font: 700 18px/1.45 var(--f-serif); word-break: keep-all; }
.sv2 .faq-list summary::-webkit-details-marker { display: none; }
.sv2 .faq-list summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 18px/1 var(--f-sans); color: var(--ink-2); transition: transform 0.3s var(--ease); }
.sv2 .faq-list details[open] summary::after { transform: rotate(45deg); }
.sv2 .faq-list details p { max-width: 46em; padding: 0 2px 22px; font: 500 15px/1.75 var(--f-sans); color: var(--ink-2); }

/* footer links */
.sv2 .foot-links { margin-top: 18px; display: grid; gap: 8px; justify-items: start; font: 600 13.5px/1.45 var(--f-sans); }
.sv2 .foot-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.sv2 .foot-links a:hover { color: var(--red); text-decoration-color: currentColor; }

/* empty colour slots keep a paper fill so they still read on a tinted page */
.sv2 .tray-row i:not(.full) { background: rgba(246, 240, 227, 0.6); }

/* Vietnamese and English write by hand in Patrick Hand, which runs larger than Nanum Pen Script at
   the same size; Korean words typed on these pages still fall back to Nanum Pen Script */
html:not([lang="ko"]) .sv2 { --f-hand: "Patrick Hand", "Nanum Pen Script", "Gowun Batang", cursive; }
html:not([lang="ko"]) .sv2 .print figcaption .where { font-size: 21px; }
html:not([lang="ko"]) .sv2 .composer input { font-size: 19px; }
html:not([lang="ko"]) .sv2 .lan-card .txt { font-size: 20px; line-height: 1.2; }
html:not([lang="ko"]) .sv2 .lan-list li .t { font-size: 19px; line-height: 1.3; }
html:not([lang="ko"]) .sv2 .envelope .addr .to { font-size: 27px; }
html:not([lang="ko"]) .sv2 .pcard .back .msg p { font-size: 20px; line-height: 33px; }
html:not([lang="ko"]) .sv2 .pcard .back .msg .sig { font-size: 18px; }
html:not([lang="ko"]) .sv2 .hand-input { font-size: 21px; }
/* the flap board's labels ("Destination") get the room they need */
html:not([lang="ko"]) .sv2 .flap-row { grid-template-columns: 80px 1fr; }
@media (max-width: 560px) {
  html:not([lang="ko"]) .sv2 .flap-row { grid-template-columns: 68px 1fr; }
  html:not([lang="ko"]) .sv2 .flap-row > span { font-size: 10px; letter-spacing: 0.08em; }
}
/* longer kickers wrap as one line of text rather than as separate flex items */
html:not([lang="ko"]) .sv2 .kicker { display: inline-block; }
html:not([lang="ko"]) .sv2 .kicker::before { display: inline-block; margin-right: 10px; vertical-align: 0.1em; }
/* the marked phrase ("black & white") stays on one line: the English heading steps down to fit it */
html[lang="en"] .sv2 .hero-copy h1 { font-size: clamp(40px, 5.6vw, 72px); }
@media (max-width: 560px) {
  html:not([lang="ko"]) .sv2 .pcard .back .msg p { font-size: 17px; line-height: 28px; }
}
