/* Night by the fire: the fire is the only light. Single, deliberate dark theme. */
:root {
  color-scheme: dark;
  --bg: #04060d;
  --bg-2: #0a0f1e;
  --bg-3: #111829;
  --line: rgba(243, 236, 224, 0.12);
  --line-2: rgba(243, 236, 224, 0.22);
  --text: #f3ece0;
  --muted: #a9b0c3;
  --dim: #78809a;
  --paper: #efe4cf;
  --paper-edge: #d6c6a8;
  --ink: #2a1f16;
  --ink-soft: #7a5f45;
  --ember: #ff8a3d;
  --flame: #ffc46b;
  --gold: #e9c77b;
  --gold-deep: #a9792a;
  --danger: #ff9b7a;
  --ok: #9fdcab;
  --serif: "Noto Serif Armenian", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --page-l: max(var(--gutter), clamp(20px, 3vw, 48px));
  --page-r: max(var(--gutter-r), clamp(20px, 3vw, 48px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --flick: 1;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 138, 61, 0.35); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.selectable { user-select: all; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }

.wrap { width: 100%; margin-inline: auto; padding-left: var(--page-l); padding-right: var(--page-r); }
.wrap-narrow { max-width: 760px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
.h-section { font-size: clamp(2rem, 6.2vw, 3.6rem); }
.h-sub { font-size: clamp(1.35rem, 3.6vw, 1.9rem); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 40ch; margin: 0; text-wrap: pretty; }
.prose { max-width: 66ch; }
.prose p, .prose li { color: #d9d4ca; }
.muted { color: var(--muted); }
.kicker { font-family: var(--serif); color: var(--flame); font-weight: 600; margin: 0 0 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  padding: 15px 22px; font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-fire { color: #1c0e05; background: linear-gradient(180deg, #ffd27a, #ff8a3d); box-shadow: 0 14px 34px -14px rgba(255, 120, 40, .9), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-fire:hover { box-shadow: 0 18px 40px -12px rgba(255, 120, 40, 1), inset 0 1px 0 rgba(255,255,255,.45); transform: translateY(-1px); }
.btn-paper { background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 1px 0 var(--paper-edge), 0 14px 30px -16px rgba(255, 110, 40, .55); }
.btn-paper:hover { transform: translateY(-1px) rotate(-.6deg); }
.btn-ghost { background: rgba(6, 10, 22, .35); color: var(--text); border: 1px solid var(--line-2); font-family: var(--sans); font-weight: 500; font-size: 15px; }
.btn-ghost:hover { border-color: rgba(255, 196, 107, .55); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.price-tag { font-family: var(--sans); font-weight: 600; font-size: 15px; padding-left: 12px; border-left: 1px solid rgba(28, 14, 5, .25); font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(6, 10, 22, .3); display: inline-grid; place-items: center; cursor: pointer; color: var(--muted);
}
.icon-btn[aria-pressed="true"] { color: var(--flame); border-color: rgba(255, 196, 107, .5); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: rgba(4, 6, 13, .72); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; padding-left: var(--page-l); padding-right: var(--page-r); }
body.is-app .topbar-inner { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 16px; white-space: nowrap; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang a { text-decoration: none; padding: 5px 9px; font-size: 12.5px; color: var(--muted); border-radius: 999px; line-height: 1.2; }
.lang a[aria-current="true"] { background: rgba(243, 236, 224, .12); color: var(--text); }
.topbar-cta { display: none; }
.topbar-mine { white-space: nowrap; }
.has-room .topbar-cta { display: none; }
@media (max-width: 560px) { .has-room .wordmark span { display: none; } }
.menu-btn { display: inline-grid; }
.top-lang { display: none; }
.menu-lang { margin-top: 26px; align-self: flex-start; }
.menu-lang a { font-family: var(--sans) !important; font-size: 14px !important; padding: 8px 14px !important; border: 0 !important; }
@media (min-width: 560px) { .top-lang { display: flex; } }
@media (min-width: 980px) {
  .nav { display: flex; }
  .nav + .tools { margin-left: 20px; }
  .topbar-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
.menu {
  position: fixed; inset: 0; z-index: 39; background: rgba(4, 6, 13, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.menu-inner { display: flex; flex-direction: column; gap: 6px; }
.menu-inner a:not(.btn) { font-family: var(--serif); font-size: 26px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-inner .btn { margin-top: 22px; }

/* ---------- scene ---------- */
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-fixed { position: fixed; inset: 0; z-index: 0; }
.scene-poster {
  position: absolute; inset: 0; pointer-events: none; transition: opacity 1.2s ease;
  background:
    radial-gradient(28% 22% at var(--fx, 50%) 86%, rgba(255, 140, 50, .55), rgba(255, 90, 30, 0) 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(80, 30, 20, .55), rgba(0,0,0,0) 70%),
    linear-gradient(to bottom, #04060d 0%, #0b1226 50%, #23172a 78%, #0b0709 100%);
}
.scene-ready .scene-poster { opacity: 0; }
.no-webgl .scene-poster { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 70%; background: linear-gradient(to bottom, rgba(4,6,13,.62), rgba(4,6,13,0)); pointer-events: none; z-index: 1; }
.hero .sub { margin: 0; max-width: 34ch; font-size: clamp(1rem, 3.7vw, 1.15rem); line-height: 1.55; color: #c9cbd6; text-wrap: pretty; }
.counter { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.counter b { font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,138,61,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,138,61,0); } }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 899px) {
  .hero .sub { display: none; }
}

/* ---------- paper ---------- */
.paper {
  position: relative; color: var(--ink);
  background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), var(--paper);
  border-radius: 3px; padding: 18px 20px 26px;
  box-shadow: 0 1px 0 var(--paper-edge), 0 24px 50px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.04);
  transform: rotate(-1deg);
}
.paper::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(0deg, rgba(110,85,55,.05) 0 1px, transparent 1px 3px); }
.paper .paper-year { position: absolute; top: 8px; right: 14px; font-family: var(--serif); font-size: 12px; color: #9b8466; }
.paper textarea, .paper .paper-text {
  display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; padding: 0; margin: 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 5vw, 24px); line-height: 1.35; color: var(--ink);
}
.paper textarea::placeholder { color: rgba(42, 31, 22, .34); }
.paper .count { position: absolute; bottom: 7px; right: 14px; font-size: 11.5px; color: #9b8466; font-variant-numeric: tabular-nums; }
.paper:focus-within { box-shadow: 0 1px 0 var(--paper-edge), 0 0 0 2px rgba(255,196,107,.6), 0 24px 50px -24px rgba(0,0,0,.85); }
@keyframes shake { 20%,60% { transform: translateX(-6px) rotate(-1deg); } 40%,80% { transform: translateX(6px) rotate(-1deg); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 6vw, 64px); }
.bg-deep { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.rule-top { border-top: 1px solid var(--line); }

/* how it works */
.step { display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 1.5rem; }
.step p { margin: 0; color: var(--muted); max-width: 36ch; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flick { 0% { transform: translateX(-50%) scale(1, 1); opacity: .85; } 50% { transform: translateX(-52%) scale(1.04, 1.1); opacity: 1; } 100% { transform: translateX(-48%) scale(.97, .95); opacity: .8; } }

/* feed / marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* options */
.option {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--bg-3);
  transition: border-color .25s, transform .25s var(--ease);
}
.option:hover { border-color: var(--line-2); transform: translateY(-2px); }
.option h3 { font-size: 1.45rem; }
.option p { margin: 0; color: var(--muted); }
.option .price { font-family: var(--serif); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.option .btn { margin-top: auto; align-self: flex-start; }

/* wish */

/* gifts */
.gift-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .gift-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.big-pct { font-family: var(--serif); font-weight: 700; font-size: clamp(6rem, 26vw, 12rem); line-height: .85; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffe1a6, #ff8a3d 70%, #c4421d); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 18px; }
.fund { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-3); display: flex; flex-direction: column; gap: 6px; }
.fund .label { font-size: 13px; color: var(--muted); }
.fund .value { font-family: var(--serif); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.link-arrow { color: var(--flame); text-decoration: none; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* live teaser */
.live-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }

/* faq */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem, 2.6vw, 1.25rem); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--flame); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }
.faq-item .answer p { margin: 0; }

/* final cta */
.final { text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 120vw; max-width: 1200px; height: 80%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 70%, rgba(255,130,50,.35), rgba(255,80,20,0) 70%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
.final .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final h2 { font-size: clamp(2.4rem, 8vw, 5rem); max-width: 14ch; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--dx, 20px), -70vh); opacity: 0; } }

/* footer */
.footer { border-top: 1px solid var(--line); background: #03050a; padding-block: 56px 28px; font-size: 14px; position: relative; z-index: 2; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 10px; letter-spacing: .02em; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-about p { color: var(--muted); max-width: 34ch; margin: 12px 0; }
.footer-company p { color: var(--muted); margin: 0; line-height: 1.8; }
.cards { display: flex; gap: 6px; flex-wrap: wrap; }
.card-badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 8px; color: var(--text); background: rgba(255,255,255,.04); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ---------- page shells ---------- */
.page-head { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); padding-bottom: 40px; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }
.page-head .lead { margin-top: 16px; }
.legal { padding-bottom: 100px; }
.legal .prose h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.legal .prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.legal .prose a { color: var(--flame); }
.legal .prose ul, .legal .prose ol { padding-left: 1.3em; }
.legal .prose li { margin: .3em 0; }
.legal .prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.legal .prose th, .legal .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- burn flow ---------- */
.flow-page { position: relative; min-height: 100vh; min-height: 100svh; }
.flow-wrap { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 80px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 32px) var(--gutter); }
@media (min-width: 900px) { .flow-wrap { justify-content: flex-start; padding-left: max(6vw, var(--gutter)); align-items: center; } }
.progress { display: flex; gap: 6px; }
.progress i { width: 26px; height: 3px; border-radius: 3px; background: var(--line-2); }
.progress i.on { background: var(--flame); }
.hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.error { margin: 0; font-size: 14px; color: var(--danger); min-height: 0; }
.error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #d9d4ca; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: rgba(255,255,255,.03); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--flame); border-color: var(--flame); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #1c0e05; border-bottom: 2px solid #1c0e05; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--flame); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; color: #d9d4ca; }
.input { width: 100%; padding: 14px 15px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 16px; outline: 0; transition: border-color .2s, background-color .2s; }
.input:focus { border-color: rgba(255,196,107,.7); background: rgba(255,255,255,.06); }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input, select.input:focus { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a9b0c3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: rgba(255,255,255,.02); transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--line-2); }
.choice input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.choice input:checked { border-color: var(--flame); }
.choice input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--flame); }
.choice:has(input:checked) { border-color: rgba(255,196,107,.6); background: rgba(255,196,107,.06); }
.summary { border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary .line span { flex: none; max-width: 45%; }
.summary .line b { color: var(--text); font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); }
.summary .total span:last-child { font-family: var(--serif); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .gift { font-size: 13px; color: var(--flame); }
.actions { display: flex; gap: 10px; align-items: center; }
.actions .btn-fire { flex: 1; }
.secure { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.secure span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(28,14,5,.25); border-top-color: #1c0e05; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* result / paper page */
.result { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 560px; }
.result-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 14vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.result-line { margin: 0; font-size: clamp(1.1rem, 4.4vw, 1.35rem); line-height: 1.45; max-width: 28ch; }
.result-line b { font-family: var(--serif); font-weight: 700; color: var(--flame); font-variant-numeric: tabular-nums; }
.result .meta { display: flex; flex-direction: column; gap: 8px; }
.result .meta p { margin: 0; font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 2px solid rgba(255,196,107,.5); }
.result .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translate(-50%, 20px); z-index: 60; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* story modal */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(3,5,10,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 20px) calc(env(safe-area-inset-bottom, 0px) + 20px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.modal img { height: min(66vh, 640px); max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.modal p { margin: 0; font-size: 14px; color: var(--muted); text-align: center; max-width: 36ch; }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* live page */
.page-live .topbar { background: transparent; }
.live-overlay { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.live-head { position: absolute; left: var(--page-l); top: calc(env(safe-area-inset-top, 0px) + 84px); display: flex; flex-direction: column; gap: 8px; pointer-events: auto; max-width: 520px; }
.live-head h1 { font-size: clamp(1.7rem, 6.4vw, 3.4rem); }
.live-stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.live-stats b { display: block; font-family: var(--serif); font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .live-head { right: var(--page-r); max-width: none; }
  .live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; font-size: 13px; }
  .live-stats span { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,8,18,.55); }
  .live-stats b { font-size: clamp(20px, 6vw, 26px); white-space: nowrap; }
}
.now-burning { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; width: min(560px, 90vw); }
.now-burning .label { font-size: 13px; color: var(--muted); }
.now-burning .num { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3.6rem); color: var(--flame); text-shadow: 0 0 40px rgba(255,140,50,.5); font-variant-numeric: tabular-nums; }
.now-burning .txt { font-family: var(--serif); font-size: clamp(1.2rem, 4.5vw, 1.8rem); color: var(--text); text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.live-below { position: relative; z-index: 3; margin-top: 100vh; margin-top: 100svh; background: var(--bg); }
.stream-box { aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-3); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); overflow: hidden; }
.stream-box iframe { width: 100%; height: 100%; border: 0; }
.stream-mode .topbar, .stream-mode .live-below, .stream-mode .footer, .stream-mode .skip { display: none !important; }
.stream-mode .live-head { top: 40px; }

/* gifts page */
.split { display: grid; gap: 18px; }
.split-bar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.split-bar .g { flex: 0 0 20%; background: linear-gradient(180deg, #ffd27a, #ff8a3d); color: #1c0e05; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.split-bar .c { flex: 1; background: var(--bg-3); display: grid; place-items: center; color: var(--muted); font-family: var(--serif); font-size: 20px; }
.gp-lead { max-width: 62ch; }
.gp-sec { padding-bottom: 80px; }
.gp-panel { display: grid; gap: 30px; padding: clamp(22px, 4vw, 40px); border: 1px solid rgba(255,196,107,.24); border-radius: var(--radius); background: radial-gradient(80% 160% at 100% 0%, rgba(255,138,61,.16), transparent 62%), var(--bg-3); }
.gp-panel .split-bar { background: rgba(255,255,255,.04); }
.gp-panel .split-bar .c { background: transparent; }
.gp-label { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.gp-fund { display: flex; flex-direction: column; gap: 8px; }
.gp-value { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 4.4rem); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffe1a6, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gp-note { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .gp-panel { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .gp-fund { padding-left: 56px; border-left: 1px solid var(--line); }
}
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--line-2); margin-left: 6px; }
.timeline li { list-style: none; position: relative; padding: 0 0 28px 26px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--flame); }
.timeline h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); max-width: 60ch; }
.timeline ol { padding: 0; margin: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-3); }

/* 404 */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter-r) 60px var(--gutter); }
.nf h1 { font-size: clamp(2.4rem, 9vw, 5rem); margin-bottom: 14px; }
.nf p { color: var(--muted); margin: 0 0 26px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js .revealed[data-reveal]{ opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===================== Light up Armenia (map page) ===================== */
.lt-bar { height: 8px; border-radius: 99px; background: rgba(243,236,224,.08); overflow: hidden; border: 1px solid var(--line); }
.lt-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8a3d, #ffd27a); box-shadow: 0 0 18px rgba(255,180,90,.8); transition: width 1.2s var(--ease); }

.lt-stage { position: relative; height: min(80svh, 820px); min-height: 460px; margin: 0 auto; max-width: 1400px; border-block: 1px solid var(--line); overflow: hidden; background: #03050c; }
@media (min-width: 1440px) { .lt-stage { border: 1px solid var(--line); border-radius: 18px; } }
.lt-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; outline: none; }
.lt-stage > canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,196,107,.7); }
.lt-tools { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 3; max-width: calc(100% - 28px); }
.lt-select { width: auto; min-width: 180px; padding: 9px 12px; font-size: 14px; background: rgba(6,10,22,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 10px; }
.lt-select option { background: #0a0f1e; }
.lt-tools .btn-ghost { background: rgba(6,10,22,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lt-zoom { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.lt-zoom .icon-btn { width: 40px; height: 40px; font-size: 20px; background: rgba(6,10,22,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lt-ticker { position: absolute; left: 66px; bottom: 18px; margin: 0; z-index: 3; font-size: 13.5px; color: var(--paper); background: rgba(6,10,22,.8); border: 1px solid rgba(255,196,107,.35); border-radius: 99px; padding: 7px 14px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; max-width: calc(100% - 90px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-ticker.on { opacity: 1; transform: none; }
.lt-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; z-index: 2; font-size: 13.5px; color: var(--muted); background: rgba(6,10,22,.7); border-radius: 99px; padding: 7px 14px; pointer-events: none; white-space: nowrap; }
@media (min-width: 980px) { .lt-hint { display: none; } }
@media (max-width: 979px) { .lt-ticker { bottom: 60px; left: 66px; } }

.lt-panel { position: absolute; z-index: 4; overflow-y: auto; overscroll-behavior: contain; background: rgba(10,15,30,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); }
.lt-panel > [data-view], .lt-panel > form, #lBuy:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.lt-panel [hidden] { display: none !important; }
.lt-panel .h-sub { margin: 0; padding-right: 36px; }
.lt-panel p { margin: 0; }
.lt-panel .muted + .btn-block { margin-top: 16px; }
.lt-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; font-size: 20px; }
@media (min-width: 980px) {
  .lt-panel { top: 14px; right: 14px; bottom: 14px; width: 380px; border-radius: 16px; padding: 22px; }
  .lt-panel:not(.open) .lt-close { display: none; }
}
@media (max-width: 979px) {
  .lt-panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82svh; border-radius: 18px 18px 0 0; padding: 22px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateY(105%); transition: transform .45s var(--ease); box-shadow: 0 -30px 60px -20px rgba(0,0,0,.8); }
  .lt-panel.open { transform: none; }
  .lt-panel::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 9px; background: var(--line-2); margin: -10px auto 12px; }
}
.lt-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; }
.lt-steps li::marker { color: var(--flame); font-family: var(--serif); font-weight: 600; }
.lt-steps-big { font-size: 16px; gap: 14px; margin-top: 18px; }

.lt-fs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lt-fs legend { font-size: 14px; color: #d9d4ca; padding: 0; margin-bottom: 10px; }
.lt-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lt-icon { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.02); transition: border-color .2s, background-color .2s, transform .2s; }
.lt-icon:hover { border-color: var(--line-2); }
.lt-icon input, .lt-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lt-icon:has(input:checked) { border-color: rgba(255,196,107,.7); background: rgba(255,196,107,.08); transform: translateY(-1px); }
.lt-icon:has(input:focus-visible), .lt-color:has(input:focus-visible) { outline: 2px solid var(--flame); outline-offset: 2px; }
.lt-il { display: block; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.25; }
.lt-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.lt-color { position: relative; cursor: pointer; }
.lt-color .sw { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); transition: transform .2s, box-shadow .2s; }
.lt-color:has(input:checked) .sw { transform: scale(1.1); border-color: #fff; box-shadow: 0 0 0 3px rgba(4,6,13,1), 0 0 18px 2px currentColor; }
.sw-amber { background: #ffc46b; color: #ffc46b; } .sw-red { background: #ff6b57; color: #ff6b57; } .sw-green { background: #74e6a0; color: #74e6a0; }
.sw-white { background: #fff4e2; color: #fff4e2; } .sw-blue { background: #7cc2ff; color: #7cc2ff; } .sw-violet { background: #c7a0ff; color: #c7a0ff; }
.lt-panel textarea.input { resize: none; min-height: 64px; }
.lt-soon { display: flex; flex-direction: column; gap: 6px; border-color: rgba(255,196,107,.35); }
.lt-soon b { font-family: var(--serif); font-size: 1.2rem; color: var(--flame); }
.lt-soon p { margin: 0; color: var(--muted); font-size: 14.5px; }

.lt-badge { width: 110px; height: 110px; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,196,107,.12), rgba(0,0,0,0) 70%); border: 1px solid var(--line); }
.lt-msg { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--paper); }
.lt-msg.muted { font-family: var(--sans); font-size: 14.5px; color: var(--muted); }
.lt-sig { color: var(--flame); font-size: 14.5px; }
.lt-sig:empty, .hint:empty { display: none; }
.lt-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* home teaser */
.lt-ic { display: block; width: 40px; height: 40px; }
.lt-stage { scroll-margin-top: 64px; }
@media (max-width: 979px) { .lt-panel { max-height: 64svh; } }

/* ---------- hero: the two choices ---------- */
@media (max-width: 899px) { .hero .sub { display: block; font-size: 1rem; } }

.blogger-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid rgba(233,199,123,.35); border-radius: var(--radius); background: radial-gradient(120% 120% at 0% 0%, rgba(233,199,123,.1), rgba(0,0,0,0) 60%), var(--bg-3); }
.blogger-cta h3 { margin: 0 0 4px; font-size: 1.2rem; }
.blogger-cta p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bl-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .bl-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.bl-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.bl-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .bl-row { grid-template-columns: 1fr; } }
.bl-form select.input option { background: #0a0f1e; }
.bl-form textarea.input { resize: vertical; min-height: 80px; }
.bl-done { grid-column: -2; }
@media (min-width: 900px) { .bl-grid > div:first-child { position: sticky; top: 110px; } }

/* ===================== The room (3D) ===================== */
.lt-room { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 10px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,196,107,.45); background: radial-gradient(120% 140% at 0% 0%, rgba(255,196,107,.14), rgba(0,0,0,0) 60%), rgba(255,255,255,.03); color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.lt-room:hover { border-color: rgba(255,196,107,.8); transform: translateY(-1px); }
.lt-room-img { position: relative; width: 104px; height: 72px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a2f55, #0b1022); display: grid; place-items: center; }
.lt-room-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lt-room-ph { font-size: 30px; filter: drop-shadow(0 0 12px rgba(255,190,100,.7)); }
.lt-room-img img:not([hidden]) + .lt-room-ph { display: none; }
.lt-room-t { display: flex; flex-direction: column; gap: 4px; }
.lt-room-t b { font-family: var(--serif); font-size: 1.05rem; color: var(--flame); }
.lt-room-t span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.rm { position: fixed; inset: 0; z-index: 90; background: radial-gradient(110% 80% at 50% 35%, #18234d 0%, #070a16 60%, #03050c 100%); overflow: hidden; }
.rm[hidden] { display: none !important; }
.rm > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.rm.is-edit > canvas { height: calc(100% - var(--dock-h, 200px)); }
.rm-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rm-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) 16px; background: linear-gradient(rgba(3,5,12,.7), rgba(3,5,12,0)); pointer-events: none; }
.rm-top > * { pointer-events: auto; }
.rm-head { flex: 1; min-width: 0; }
.rm-head .kicker { margin: 0 0 2px; font-size: 14px; }
.rm-head h2 { margin: 0; font-size: clamp(1.3rem, 4.4vw, 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-x { width: 42px; height: 42px; font-size: 22px; background: rgba(6,10,22,.6); }
.rm.is-edit .rm-x { display: none; }
.rm-zoom { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.rm-zoom .icon-btn { background: rgba(6,10,22,.6); font-size: 20px; }
.rm-msg { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%) rotate(-1deg); z-index: 2; max-width: min(520px, calc(100% - 40px));
  background: var(--paper); color: var(--ink); border-radius: 4px; padding: 16px 20px; box-shadow: 0 1px 0 var(--paper-edge), 0 24px 50px -20px rgba(0,0,0,.8); }
.rm-msg p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.35; }
.rm-msg span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }
.rm-msg span:empty { display: none; }
.rm-sel { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h, 200px) + 12px); z-index: 3; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 99px; background: rgba(10,15,30,.9); border: 1px solid rgba(255,196,107,.45); white-space: nowrap; }
.rm-sel[hidden] { display: none; }
.rm-sel > span { font-family: var(--serif); font-weight: 600; color: var(--flame); margin-right: 4px; }
.rm-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 10px); background: linear-gradient(rgba(5,8,18,0), rgba(5,8,18,.88) 22%, rgba(5,8,18,.96)); }
.rm-dock[hidden] { display: none; }
.rm-styles { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 0 var(--gutter) 10px; font-size: 13px; color: var(--muted); }
.rm-sw { display: flex; gap: 7px; align-items: center; }
.rm-sw > span { margin-right: 3px; }
.sw-btn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; }
.sw-btn[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,196,107,.6); }
.wall-cream { background: #d9c7a6; } .wall-sage { background: #8aa38c; } .wall-night { background: #2b375a; } .wall-berry { background: #7e3340; }
.floor-oak { background: repeating-linear-gradient(90deg, #b9824f 0 9px, #a06e42 9px 10px); } .floor-walnut { background: repeating-linear-gradient(90deg, #5d3a26 0 9px, #4b2e1e 9px 10px); }
.floor-tile { background: conic-gradient(#d9d2c3 25%, #3b4152 0 50%, #d9d2c3 0 75%, #3b4152 0) 0 0 / 13px 13px; }
.rm-glow { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.rm-glow input { accent-color: #ffc46b; }
.rm-items { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rm-item { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; scroll-snap-align: start; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.rm-item:hover { border-color: rgba(255,196,107,.6); background: rgba(255,196,107,.07); transform: translateY(-2px); }
.rm-item:active { transform: scale(.96); }
.rm-item img { width: 66px; height: 66px; }
.rm-item span { font-size: 12px; line-height: 1.2; text-align: center; color: #d9d4ca; }
.rm-hint { margin: 2px 0 0; padding: 0 var(--gutter); font-size: 12px; color: var(--dim); }
@media (max-width: 640px) { .rm-hint { display: none; } .rm-item { width: 78px; } .rm-item img { width: 56px; height: 56px; } .rm-zoom { top: 34%; } }
@media (max-width: 640px) { .rm-zoom { display: none; } }

/* map home: how it works + the fire card */
.fire-card-glow { position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,140,50,.55), rgba(255,90,30,.15) 45%, rgba(0,0,0,0) 70%); filter: blur(6px); animation: fireGlow 2.4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes fireGlow { from { transform: scale(.92); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
.lt-hint-img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.lt-room-img img.lt-room-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.lt-room-img #dRoomImg:not([hidden]) ~ .lt-room-ph { display: none; }
/* room: visiting + templates */
.rm-visit { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(560px, calc(100% - 32px)); }
.rm-visit[hidden] { display: none; }
.rm-visit .rm-msg { position: static; transform: rotate(-1deg); max-width: 100%; }
.rm-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rm-warm { gap: 8px; }
.rm-warm span[aria-hidden] { color: #c8283c; transition: transform .2s; }
.rm-warm.is-on { background: #ffe1e4; }
.rm-warm:active span[aria-hidden] { transform: scale(1.4); }
.rm-warm b { font-variant-numeric: tabular-nums; }
.rm-visits { margin: 0; font-size: 12.5px; color: var(--muted); }
.rm-visits:empty { display: none; }
.rm-heart { position: fixed; z-index: 120; pointer-events: none; color: #ff5a6e; font-size: 22px; animation: heartUp 1.5s var(--ease) forwards; text-shadow: 0 0 12px rgba(255,90,110,.7); }
@keyframes heartUp { from { transform: translate(0, 0) scale(.6); opacity: 1; } to { transform: translate(var(--dx), -180px) scale(1.3); opacity: 0; } }
.rm-tap { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 86px); transform: translateX(-50%); z-index: 2; margin: 0; padding: 7px 14px; border-radius: 99px; background: rgba(10,15,30,.78); border: 1px solid rgba(255,196,107,.4); color: var(--paper); font-size: 13.5px; white-space: nowrap; transition: opacity .6s; pointer-events: none; animation: tapPulse 1.6s ease-in-out infinite; }
.rm-tap.gone { opacity: 0; }
@keyframes tapPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,196,107,.3); } 50% { box-shadow: 0 0 0 8px rgba(255,196,107,0); } }
.rm-mute { width: 42px; height: 42px; background: rgba(6,10,22,.6); font-size: 17px; }
.rm-tpls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 var(--gutter) 10px; font-size: 13px; color: var(--muted); }
.rm-tpls > span:first-child { margin-right: 4px; }
.rm-tpl { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; cursor: pointer; }
.rm-tpl:hover { border-color: rgba(255,196,107,.6); }
.rm-count { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--dim); }

/* ===================== Map app: full screen, no page scroll ===================== */
body.is-app { overflow: hidden; height: 100vh; height: 100dvh; overscroll-behavior: none; }
body.is-app .topbar { background: rgba(4,6,13,.92); border-bottom: 1px solid var(--line); }
body.is-app .lt-stage { position: fixed; left: 0; right: 0; bottom: 0; top: calc(env(safe-area-inset-top, 0px) + 64px); height: auto; min-height: 0; max-width: none; margin: 0; border: 0; border-radius: 0; }
body.is-app .lt-hint { display: none; }
.app-dock { position: absolute; z-index: 5; display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: rgba(10,15,30,.92); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
.app-dock button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 8px 10px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; transition: background-color .2s, color .2s; }
.app-dock button .i { font-size: 18px; line-height: 1; filter: saturate(.7); }
.app-dock button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.app-dock button[aria-pressed="true"] { color: #1c0e05; background: linear-gradient(180deg, #ffd27a, #ff9a4a); }
.app-dock button[aria-pressed="true"] .i { filter: none; }
.app-status { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 99px; background: rgba(10,15,30,.82); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.app-status .lt-bar { width: 90px; height: 6px; }
.app-status b { color: var(--flame); }
.app-list { display: flex; flex-direction: column; gap: 8px; }
.app-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.app-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: none; border: 0; padding: 2px 0; color: var(--text); text-align: left; cursor: pointer; }
.app-row-main b { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.app-row-main b i { font-style: normal; color: var(--dim); margin-right: 4px; }
.app-row-main span { font-size: 12.5px; color: var(--muted); }
.app-warm { color: #ff7a8a; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-paper { transform: rotate(-.6deg); }
.app-paper textarea { font-size: 19px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.app-links a { color: var(--flame); text-decoration: none; }
.lt-steps-big b { color: var(--text); }

@media (min-width: 980px) {
  .app-dock { left: calc((100% - 410px) / 2); transform: translateX(-50%); bottom: 18px; }
  .app-status { top: 14px; right: 424px; }
  body.is-app .lt-zoom { bottom: 18px; }
  body.is-app .lt-ticker { left: 66px; bottom: 26px; }
  body.is-app .lt-panel { bottom: 14px; }
}
/* Too narrow for the tools and the status pill on one row: the pill drops below the tools. */
@media (min-width: 980px) and (max-width: 1239px) {
  .app-status { top: 62px; }
}
@media (max-width: 979px) {
  .app-dock { left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; justify-content: space-around; padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px); border-bottom: 0; }
  .app-dock button { min-width: 0; flex: 1; padding: 7px 2px; font-size: 11px; }
  .app-status { top: 62px; left: 14px; font-size: 12px; padding: 5px 10px; }
  .app-status .lt-bar { width: 56px; }
  body.is-app .lt-zoom { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
  body.is-app .lt-ticker { bottom: calc(env(safe-area-inset-bottom, 0px) + 90px); }
  body.is-app .lt-panel { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 66px); max-height: calc(100% - 140px); z-index: 4; border-radius: 18px 18px 0 0; }
}

/* ===================== Home: introduction ===================== */
.ld-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 70% 40%, #101a3a, #03050c 70%); }
.ld-map { position: absolute; inset: 0; z-index: 0; display: block; }
.ld-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(3,5,12,.92) 0%, rgba(3,5,12,.7) 38%, rgba(3,5,12,0) 64%); }
.ld-inner { position: relative; z-index: 2; padding-top: calc(env(safe-area-inset-top, 0px) + 100px); padding-bottom: 60px; }
.ld-inner h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 1; max-width: 12ch; }
.ld-inner .lead { margin-top: 18px; max-width: 46ch; color: #c9cbd6; }
.ld-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; max-width: 520px; margin-top: 30px; padding: 18px 22px; border-radius: 18px; text-decoration: none; color: #1c0e05;
  background: linear-gradient(180deg, #ffd27a, #ff8a3d); box-shadow: 0 24px 50px -18px rgba(255,120,40,.85), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .25s var(--ease), box-shadow .25s; }
.ld-banner:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -18px rgba(255,120,40,1), inset 0 1px 0 rgba(255,255,255,.5); }
.ld-banner-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(28,14,5,.12); font-size: 24px; }
.ld-banner-t { display: flex; flex-direction: column; gap: 2px; }
.ld-banner-t b { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.ld-banner-t span { font-size: 14px; opacity: .8; }
.ld-banner-go { font-size: 26px; font-weight: 700; }
.ld-count { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14.5px; }
.ld-count b { color: var(--flame); }
@media (max-width: 899px) {
  /* The map gets its own space above the text and fills whatever the text leaves free. */
  .ld-hero { flex-direction: column; align-items: stretch; padding-top: calc(env(safe-area-inset-top, 0px) + 64px); }
  .ld-map { position: relative; inset: auto; flex: 1 1 180px; min-height: 180px; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
  .ld-shade { display: none; }
  .ld-inner { padding-top: 0; padding-bottom: 24px; }
  .ld-inner h1 { font-size: clamp(2.1rem, 9.4vw, 3.4rem); line-height: 1.08; max-width: none; }
  .ld-inner .lead { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .ld-banner { gap: 12px; margin-top: 20px; padding: 13px 16px; }
  .ld-banner-ic { width: 44px; height: 44px; font-size: 20px; }
  .ld-banner-t b { font-size: 1.3rem; }
  .ld-count { margin-top: 14px; }
}
.ld-do { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 900px) { .ld-do { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.ld-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-3); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), border-color .3s; }
.ld-card:hover { transform: translateY(-3px); border-color: rgba(255,196,107,.5); }
.ld-card img, .ld-card-art { width: 100%; aspect-ratio: 720 / 530; height: auto; border-radius: 12px; object-fit: cover; margin-bottom: 8px; }
.ld-card .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,196,107,.12); color: var(--flame); font-family: var(--serif); font-weight: 700; margin: 0 8px; }
.ld-card b { font-family: var(--serif); font-size: 1.3rem; margin: 0 8px; }
.ld-card p { margin: 0 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ld-card .link-arrow { margin: 6px 8px 0; }
.ld-card-art { position: relative; overflow: hidden; display: block; }
.ld-art-visit { background: radial-gradient(circle at 50% 60%, #3a1a2a, #0b1022 70%); display: flex; align-items: center; justify-content: center; gap: 18px; }
.ld-art-visit span { font-size: 38px; color: #ff5a6e; text-shadow: 0 0 24px rgba(255,90,110,.8); animation: heartFloat 2.4s ease-in-out infinite; }
.ld-art-visit span:nth-child(2) { font-size: 56px; animation-delay: .3s; } .ld-art-visit span:nth-child(3) { animation-delay: .6s; }
@keyframes heartFloat { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-8px); } }
.ld-art-fire { background: linear-gradient(180deg, #0d1226, #1a0d0c); }
.ld-art-fire .fire-card-glow { left: 50%; right: auto; bottom: -110px; transform: translateX(-50%); width: 320px; height: 320px; }
.ld-paper { position: absolute; left: 50%; top: 32%; transform: translateX(-50%) rotate(-6deg); background: var(--paper); color: var(--ink-soft); font-family: var(--serif); font-size: 13px; padding: 26px 40px 10px 46px; border-radius: 2px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); animation: paperRise 4s ease-in-out infinite; }
@keyframes paperRise { 0%, 100% { transform: translateX(-50%) translateY(6px) rotate(-6deg); } 50% { transform: translateX(-50%) translateY(-8px) rotate(-3deg); } }
@media (max-width: 979px) { .app-status { top: auto; left: auto; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); } }

/* ===================== Live: the map next to the fire ===================== */
.live-side { position: absolute; z-index: 3; right: var(--page-r); top: calc(env(safe-area-inset-top, 0px) + 84px); bottom: 24px; width: min(36vw, 620px); display: flex; flex-direction: column; gap: 12px; pointer-events: auto; }
.live-side[hidden] { display: none; }
.stream-mode .live-side { top: 40px; bottom: 40px; right: 40px; width: 36vw; }
.ls-card { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(5,8,18,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.ls-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.ls-head .live-pill { align-self: center; }
.ls-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-count b { color: var(--flame); font-size: 20px; font-family: var(--serif); }
.ls-stage { position: relative; flex: 1; min-height: 0; }
.ls-stage > canvas, .ls-room, .ls-room canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ls-room { opacity: 0; transition: opacity .7s; background: radial-gradient(110% 80% at 50% 35%, #18234d 0%, #070a16 70%); }
.ls-room.on { opacity: 1; }
.ls-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 12px 16px; border-radius: 14px; background: rgba(10,15,30,.88); border: 1px solid rgba(255,196,107,.35); }
.ls-cap .kicker { margin: 0 0 2px; font-size: 13px; }
.ls-cap b { font-family: var(--serif); font-size: 1.25rem; display: block; }
.ls-cap p:last-child { margin: 4px 0 0; color: var(--paper); font-size: 15px; }
.ls-ticker { margin: 0; padding: 10px 16px 14px; min-height: 42px; font-size: 15px; color: var(--paper); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-ticker.on { opacity: 1; transform: none; }
/* the fire moves left to make room for the map */
@media (min-width: 1100px) { .page-live .scene-fixed { right: 30vw; } .stream-mode .scene-fixed { right: 36vw; } }
@media (min-width: 1100px) { .page-live .now-burning { left: 35vw; } .stream-mode .now-burning { left: 32vw; top: 38%; } .stream-mode .now-burning .label { font-size: 16px; } }

/* scarcity line: the map has a fixed number of places this year */
.ld-scarce, .lt-scarce { margin: .6rem 0 0; font-size: .92rem; color: var(--gold, #e9c77b); max-width: 34rem; }
.lt-scarce { padding: .55rem .75rem; border: 1px solid rgba(233,199,123,.3); border-radius: 12px; background: rgba(233,199,123,.06); }
