/* AMAZING WEEKLY - газета подпольной редакции.
   Раскладка: одна колонка для телефона, на компьютере обложка - главная история слева, оглавление справа.
   Днём - газетная бумага и чернила, ночью - тёмная полоса с неоновым отсветом сервера NIGHT. */
:root {
  --paper: #e9e4d8;
  --paper-2: #ddd6c6;
  --ink: #18151d;
  --ink-2: #4b4653;
  --rule: #b3aa98;
  --stamp: #b3222b;
  --neon: #7d02ff;
  --neon-2: #0e9fd6;
  --hatch: rgba(125, 2, 255, .55);
  --shadow: rgba(24, 21, 29, .16);
  --f-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-body: "PT Serif", Georgia, "Times New Roman", serif;
  --f-mono: "PT Mono", "Courier New", ui-monospace, monospace;
  --f-label: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --measure: 40rem;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15121b; --paper-2: #1f1a28; --ink: #ebe5d7; --ink-2: #b4abbf; --rule: #3d3549;
    --stamp: #ff5d64; --neon: #b47dff; --neon-2: #4fd3ff; --hatch: rgba(180, 125, 255, .6); --shadow: rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15121b; --paper-2: #1f1a28; --ink: #ebe5d7; --ink-2: #b4abbf; --rule: #3d3549;
  --stamp: #ff5d64; --neon: #b47dff; --neon-2: #4fd3ff; --hatch: rgba(180, 125, 255, .6); --shadow: rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
.view, .egg-in { overflow-x: clip; }
body.aw, .aw { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); overflow-x: hidden; }
body.aw::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.aw img { max-width: 100%; height: auto; display: block; }
.aw a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aw a:hover { text-decoration-color: var(--stamp); }
.aw :focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; border-radius: 2px; }
.aw [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip-link:focus { top: 8px; }

/* бумажное зерно: один статичный слой, без анимации */
.paper { position: relative; isolation: isolate; }
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- верхняя плашка ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--paper); }
.topbar-in { display: flex; align-items: center; gap: 12px; padding-block: 6px; padding-left: var(--gut); padding-right: var(--gut-r); max-width: 72rem; margin: 0 auto; }
.brand { font: 600 1.15rem/1 var(--f-label); letter-spacing: .08em; text-decoration: none; display: flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center; }
.brand span { font: 400 .8rem var(--f-mono); opacity: .7; letter-spacing: 0; }
.progress { margin: 0 auto 0 0; font: 400 .72rem/1.3 var(--f-mono); opacity: .85; min-width: 0; }
.tb-btn { font: 500 .85rem/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: transparent; border: 1px solid currentColor; border-radius: 2px; min-height: 44px; padding: 0 14px; cursor: pointer; }
.tb-btn:active { transform: translateY(1px); }
.readbar { height: 3px; background: transparent; }
.readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--neon), var(--neon-2)); transition: width .15s linear; }

/* ---------- общая сетка ---------- */
main.paper { padding-left: var(--gut); padding-right: var(--gut-r); padding-block: 0 48px; max-width: 72rem; margin: 0 auto; outline: none; }
.view { padding-top: 20px; }
.section-h { font: 600 .82rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; padding-top: 10px; border-top: 3px double var(--ink); }

/* ---------- обложка ---------- */
.masthead { text-align: center; padding-bottom: 14px; border-bottom: 3px double var(--ink); position: relative; }
.type-line { font: 400 .82rem/1.4 var(--f-mono); margin: 0; min-height: 1.4em; letter-spacing: .02em; }
.type-line-2 { color: var(--stamp); }
.logo { margin: 10px 0 2px; line-height: .86; display: flex; flex-direction: column; align-items: center; }
.logo-a { font: 900 clamp(3.1rem, 15vw, 7.6rem)/0.9 var(--f-display); letter-spacing: -.02em; position: relative; }
.logo-w { font: 600 clamp(1rem, 4.4vw, 1.9rem)/1 var(--f-label); letter-spacing: .62em; margin-right: -.62em; padding-top: 6px; }
.mast-sub { font: italic 400 .95rem/1.4 var(--f-body); margin: 10px auto 0; max-width: 36rem; color: var(--ink-2); }
.skip-intro { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; font: 400 .85rem var(--f-mono); background: var(--ink); color: var(--paper); border: 0; min-height: 48px; padding: 0 18px; cursor: pointer; box-shadow: 3px 3px 0 var(--neon); white-space: nowrap; }
.caret::after { content: "▌"; margin-left: 1px; animation: caret .9s steps(1) infinite; color: var(--stamp); }
@keyframes caret { 50% { opacity: 0; } }

.front { display: grid; gap: 22px; }
.lead { display: grid; gap: 10px; text-decoration: none; padding-top: 4px; }
.lead-rubric, .toc-rubric, .kicker { font: 600 .78rem/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); }
.lead-title { font: 900 clamp(1.9rem, 7.4vw, 3.4rem)/1.04 var(--f-display); text-wrap: balance; }
.lead:hover .lead-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lead-dek { font-size: 1.08rem; color: var(--ink-2); max-width: var(--measure); }
.lead-cta { font: 600 .9rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.lead-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; filter: grayscale(.25) contrast(1.05); border: 1px solid var(--ink); }
.lead-credit, figcaption, .chart-kicker { font: 400 .74rem/1.4 var(--f-mono); color: var(--ink-2); }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.toc-item a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 44px; }
.toc-item .toc-rubric, .toc-item .toc-title, .toc-item .toc-dek { grid-column: 1; }
.toc-item .read-mark { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.toc-title { font: 700 1.28rem/1.18 var(--f-display); text-wrap: balance; }
.toc-dek { font-size: .94rem; color: var(--ink-2); line-height: 1.45; }
.toc-item a:hover .toc-title { text-decoration: underline; }
.progress-note { font: 400 .76rem/1.45 var(--f-mono); color: var(--ink-2); margin: 12px 0 0; }
.next-issue { font: 400 .82rem/1.45 var(--f-mono); border: 1px dashed var(--rule); padding: 10px 12px; margin: 0; }

.read-mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; flex: none; opacity: .55; }
.read-mark.is-open { opacity: 1; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.read-mark.is-done { opacity: 1; background: currentColor; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--neon); }
.read-mark.is-none { visibility: hidden; }
.just-done .read-mark.is-done { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

@media (min-width: 900px) {
  .front { grid-template-columns: 1.35fr 1fr; column-gap: 40px; align-items: start; }
  .masthead, .collect, .next-issue { grid-column: 1 / -1; }
  .lead { padding-right: 40px; border-right: 1px solid var(--rule); }
  .lead-img { order: -1; aspect-ratio: 16 / 9; }
  .lead-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
}

/* ---------- статья ---------- */
.story { max-width: 46rem; margin: 0 auto; }
.story-head { position: relative; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.kicker { margin: 0 0 8px; min-height: 1.2em; }
.story h1 { font: 900 clamp(1.85rem, 7vw, 3rem)/1.06 var(--f-display); margin: 0 0 12px; text-wrap: balance; letter-spacing: -.01em; }
.dek { font-size: 1.14rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 10px; }
.byline { font: 400 .76rem var(--f-mono); margin: 0; color: var(--ink-2); padding-right: 110px; min-height: 44px; }
.stamp { position: absolute; right: 6px; bottom: 8px; font: 600 .62rem/1.15 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); border: 2px solid var(--stamp); border-radius: 3px; padding: 6px 7px; transform: rotate(8deg); text-align: center; opacity: .88; mix-blend-mode: multiply; }
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { mix-blend-mode: normal; } }
.stamp-in { animation: stamp .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes stamp { 0% { transform: rotate(-12deg) scale(2.2); opacity: 0; } 60% { opacity: .95; } 100% { transform: rotate(8deg) scale(1); opacity: .88; } }
.hero-fig { margin: 18px 0; }
.hero-fig img { width: 100%; max-height: 72vh; object-fit: cover; object-position: center 25%; border: 1px solid var(--ink); }
.story-body { max-width: var(--measure); }
.story-body h2 { font: 700 1.45rem/1.2 var(--f-display); margin: 1.8em 0 .5em; text-wrap: balance; }
.story-body h3, .brief h2 { font: 700 1.15rem/1.25 var(--f-display); margin: 0 0 .3em; text-wrap: balance; }
.lead-title, .toc-title { margin: 0; }
.story-body p { margin: 0 0 1em; }
.story-body .lead { display: block; font-size: 1.16rem; padding: 0; }
.story-body .lead::first-letter { font: 900 3.4em/.8 var(--f-display); float: left; margin: .06em .08em 0 0; color: var(--stamp); }
.story-body ul { padding-left: 1.2em; }
.story-body li { margin-bottom: .5em; }
.facts li::marker { content: "▪  "; color: var(--stamp); }
.ledger { list-style: none; padding: 0 !important; border-top: 1px solid var(--ink); font-family: var(--f-mono); font-size: .95rem; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--rule); padding: 8px 0; margin: 0 !important; flex-wrap: wrap; }
.ledger span { color: var(--ink-2); }
.rules { list-style: none; padding: 0 !important; }
.rules li { padding-left: 30px; position: relative; }
.rules li::before { position: absolute; left: 0; top: .05em; font: 700 1rem var(--f-mono); }
.rules-yes li::before { content: "✓"; color: var(--neon-2); }
.rules-no li::before { content: "✕"; color: var(--stamp); }
.glossary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 1em; }
.glossary dt { font: 700 1rem var(--f-mono); color: var(--neon); }
.glossary dd { margin: 0; }
.opinion { border: 1px solid var(--ink); background: var(--paper-2); padding: 14px 16px 4px; margin: 1.6em 0; position: relative; }
.opinion-label { font: 600 .72rem/1 var(--f-label) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); }
.method { border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); padding: 4px 0; margin: 1.4em 0; }
.method summary, details summary { cursor: pointer; font: 600 .85rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.method[open] p { animation: unfold .35s ease-out; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sources-inline { font: 400 .8rem/1.6 var(--f-mono); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 10px; }
.inline-fig { margin: 1.4em 0; }
.inline-fig img { border: 1px solid var(--ink); width: 100%; max-height: 60vh; object-fit: cover; }
.status-note { font-size: .95rem; }
.tag { display: inline-block; font: 600 .68rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; border: 1.5px solid currentColor; border-radius: 2px; margin-right: 8px; vertical-align: .15em; }
.tag-ann { color: var(--neon); }
.tag-live { color: var(--neon-2); }
.tag-done { color: var(--ink-2); }
.tag-ctx { color: var(--ink-2); border-style: dashed; }
.tag-wait { color: var(--stamp); }

/* график замера */
.chart { margin: 1.6em 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; }
.chart-kicker { margin: 0 0 8px; color: var(--stamp); font-weight: 700; }
.chart-scroll { overflow-x: auto; }
.chart table { width: 100%; border-collapse: collapse; font: 400 .82rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.chart thead th { text-align: left; font: 600 .66rem var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 0 6px; }
.chart th[scope="row"] { text-align: left; white-space: nowrap; padding: 5px 10px 5px 0; width: 1%; font-weight: 400; }
.chart td { padding: 5px 0; position: relative; }
.chip { display: inline-block; width: 9px; height: 9px; background: var(--c); border: 1px solid var(--ink); margin-right: 6px; border-radius: 50%; }
.bar { display: flex; height: 12px; width: 100%; background: transparent; }
.bar .on { background: var(--ink); transform-origin: left; }
.bar .qu { background: repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 6px); border: 1px solid var(--neon); border-left: 0; }
.val { display: block; margin-top: 3px; color: var(--ink-2); }
.val .q { color: var(--neon); margin-left: 8px; font-weight: 700; }
.srv.is-hot th { font-weight: 700; color: var(--neon); }
.srv.is-hot .bar .on { background: linear-gradient(90deg, var(--ink), var(--neon)); }
.chart.in-view .bar .on { animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.egg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; cursor: pointer; opacity: .32; color: var(--neon); }
.egg svg { width: 100%; height: 100%; fill: currentColor; }
.egg text { font: 700 7px var(--f-mono); fill: var(--paper); }
.egg:hover, .egg:focus-visible { opacity: 1; }
.egg.is-found { opacity: .9; }

/* коротко */
.briefs { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 0; }
.brief { border-top: 1px solid var(--ink); padding: 14px 0 6px; margin: 0 !important; }
.brief-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px !important; }
.server { font: 400 .74rem var(--f-mono); color: var(--ink-2); }
.brief .src { font: 400 .76rem var(--f-mono); color: var(--ink-2); }
.perks { display: grid; gap: 10px; margin-bottom: 1em; font-size: .95rem; }
.perks > div { border: 1px solid var(--rule); padding: 10px 12px; }
.perks p { margin: 0 !important; }
.perks-h { font: 600 .72rem var(--f-label) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); margin-bottom: 4px !important; }
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr; } }

/* афиша-билеты */
.tickets { display: grid; gap: 12px; margin: 1.4em 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ticket { border: 1.5px solid var(--ink); padding: 12px 14px; position: relative; background: var(--paper-2);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket p { margin: 0 !important; }
.t-server { font: 600 .7rem var(--f-label); letter-spacing: .16em; color: var(--stamp); }
.t-film { font: 700 1.2rem/1.2 var(--f-display); margin: 4px 0 !important; }
.t-when, .t-where { font: 400 .78rem var(--f-mono); color: var(--ink-2); }

/* викторина */
.quiz-static { padding-left: 1.2em; }
.quiz-static details { margin: 4px 0 14px; }
.qz { border: 1.5px solid var(--ink); padding: 16px; background: var(--paper-2); position: relative; overflow: hidden; }
.qz-count { font: 400 .76rem var(--f-mono); color: var(--ink-2); margin: 0 0 8px !important; }
.qz-q { font: 700 clamp(1.2rem, 4.6vw, 1.5rem)/1.3 var(--f-display); margin: 0 0 16px !important; min-height: 3.9em; }
.qz-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-verdict { margin-top: 14px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.qz-verdict .stamp { position: static; display: inline-block; font-size: .9rem; padding: 6px 10px; margin: 4px 6px 10px 4px; }
.qz-verdict .stamp.is-false { color: var(--ink-2); border-color: var(--ink-2); }
.qz-right { font: 600 .82rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; margin-left: 10px; }
.qz-src { font: 400 .8rem var(--f-mono); }
.qz-dots { display: flex; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.qz-dots li { width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 50%; margin: 0 !important; }
.qz-dots li.ok { background: var(--neon-2); border-color: var(--neon-2); }
.qz-dots li.no { background: var(--stamp); border-color: var(--stamp); }
.qz-dots li.cur { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 3px var(--ink); }
.qz-final h2 { font-size: 1.6rem !important; margin-top: .4em; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; font: 600 .86rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--neon); }
.btn-ink:hover { box-shadow: 4px 4px 0 var(--neon); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.is-picked { opacity: 1; outline: 3px solid var(--neon); outline-offset: 2px; }
.btn.is-picked::before { content: "Ваш ответ: "; font-weight: 400; margin-right: 4px; }

/* конец статьи */
.end-mark { text-align: center; color: var(--stamp); margin: 24px 0; letter-spacing: 1em; }
.share { border: 1.5px solid var(--ink); padding: 14px 16px 16px; margin: 0 0 22px; }
.share-h { font: 600 .8rem/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pager { display: grid; gap: 12px; }
.pager a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); text-decoration: none; font: 700 1.08rem/1.25 var(--f-display); min-height: 64px; }
.pager a span { font: 600 .72rem var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); }
.pager-next { background: var(--ink); color: var(--paper) !important; border-color: var(--ink) !important; }
.pager-next span { color: var(--neon-2) !important; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 2fr; } }

/* находка-коллекция */
.collect { border: 1.5px dashed var(--neon); padding: 14px 16px; }
.card { border: 1.5px solid var(--ink); padding: 16px; background: linear-gradient(135deg, var(--paper-2), var(--paper)); position: relative; list-style: none; box-shadow: 4px 4px 0 var(--neon); max-width: 22rem; }
.card p { margin: 0; }
.card-k { font: 600 .7rem var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); }
.card-l { font: 900 1.3rem/1.2 var(--f-display); margin: 6px 0 !important; }
.card-d { font: 400 .76rem var(--f-mono); color: var(--ink-2); }
.note h3 { font: 700 1.1rem var(--f-display); margin: 16px 0 6px; }
.note ul, .egg-in ul { padding-left: 1.2em; margin: 0; }

/* почтовый ящик редакции */
.mailbox { border: 1.5px solid currentColor; padding: 16px; display: grid; gap: 10px; }
.mailbox-h { font: 900 1.4rem/1.1 var(--f-display); margin: 0; }
.mailbox p { margin: 0; }
.mailbox-lead { font-family: var(--f-body); font-size: .95rem; opacity: .9; }
.fb { display: grid; gap: 8px; }
.fb label { font: 600 .74rem var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.fb label small { font: 400 .72rem var(--f-mono); text-transform: none; letter-spacing: 0; opacity: .75; }
.fb textarea, .fb input { width: 100%; font: 400 1rem/1.45 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--paper); border-radius: 2px; padding: 10px 12px; min-height: 48px; }
.fb textarea { resize: vertical; }
.fb-row { display: grid; gap: 8px; }
.fb-row > div { display: grid; gap: 6px; min-width: 0; }
@media (min-width: 640px) { .fb-row { grid-template-columns: 1fr 1fr; } }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 4px; }
.colophon .btn-ink { background: var(--paper); color: var(--ink); }
.fb-status { font: 400 .82rem var(--f-mono); }
.fb.is-sent .fb-status { color: var(--neon-2); }

/* подвал */
.colophon { background: var(--ink); color: var(--paper); }
.colophon-in { max-width: 72rem; margin: 0 auto; padding-block: 22px 28px; padding-left: var(--gut); padding-right: var(--gut-r); font: 400 .8rem/1.6 var(--f-mono); display: grid; gap: 10px; }
.colophon p { margin: 0; }
.hint { color: var(--neon-2); }

/* содержание (диалог) */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(26rem, 100%); background: var(--paper); color: var(--ink); border-left: 3px double var(--ink); }
.drawer::backdrop { background: rgba(10, 8, 14, .55); }
.drawer[open] { animation: slidein .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { transform: translateX(30%); opacity: 0; } }
.drawer-in { padding-block: max(20px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-bottom, 0px)); padding-left: 20px; padding-right: max(20px, env(safe-area-inset-right, 0px)); display: grid; gap: 14px; }
.drawer-k { font: 400 .76rem var(--f-mono); margin: 0; color: var(--ink-2); }
.drawer h2 { font: 900 1.8rem var(--f-display); margin: 0; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 48px; line-height: 1.35; }
.drawer-list .read-mark { margin-top: 3px; }
.drawer-list b { display: block; font: 600 .7rem var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); }
.drawer-list a[aria-current="page"] { font-weight: 700; }
.legend { font: 400 .74rem/2 var(--f-mono); color: var(--ink-2); margin: 0; }
.legend .read-mark { width: 12px; height: 12px; vertical-align: -2px; }
.settings { display: grid; gap: 4px; border-top: 3px double var(--ink); padding-top: 10px; }
.toggle { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-height: 52px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--neon); grid-row: span 2; }
.toggle span { font: 600 .9rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.toggle small { font: 400 .74rem var(--f-mono); color: var(--ink-2); }
.drawer-archive { margin: 0; font: 400 .85rem var(--f-mono); }

/* тост и модалка находки */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--paper); font: 400 .85rem/1.4 var(--f-mono); padding: 12px 16px; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; box-shadow: 4px 4px 0 var(--neon); }
.toast button { font: 600 .8rem var(--f-label); text-transform: uppercase; letter-spacing: .08em; background: var(--paper); color: var(--ink); border: 0; min-height: 40px; padding: 0 12px; cursor: pointer; }
.egg-modal { position: fixed; inset: 0; z-index: 45; background: rgba(10, 8, 14, .6); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gut-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gut); overflow-y: auto; }
.egg-in { background: var(--paper); color: var(--ink); border: 3px double var(--ink); padding: 22px 18px; max-width: 30rem; width: 100%; position: relative; display: grid; gap: 12px; }
.egg-in h2 { font: 900 1.6rem var(--f-display); margin: 0; }
.egg-in h3 { font: 700 1.05rem var(--f-display); margin: 4px 0 0; }
.egg-small { font: 400 .74rem/1.5 var(--f-mono); color: var(--ink-2); margin: 0; }
.stamp-big { position: absolute; right: 14px; top: 14px; font-size: .9rem; }

/* переходы */
.ink-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 25; display: none; }
.view.is-leaving { animation: leave .3s ease-in forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }
.view.is-entering { animation: enter .48s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes enter { from { opacity: 0; clip-path: inset(0 0 92% 0); } 60% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.view.is-fading { animation: fade .16s ease-out both; }
@keyframes fade { from { opacity: 0; } }
.intro .logo, .intro .mast-sub, .intro .lead, .intro .contents { opacity: 0; }
.intro-reveal .logo { animation: inkup .7s cubic-bezier(.2, .7, .2, 1) both; }
.intro-reveal .mast-sub { animation: inkup .6s .15s both; }
.intro-reveal .lead { animation: inkup .7s .25s both; }
.intro-reveal .contents { animation: inkup .6s .4s both; }
@keyframes inkup { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.glitch .logo-a { animation: glitch .6s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: 3px 0 var(--neon), -3px 0 var(--neon-2); transform: translateX(1px); }
  40% { text-shadow: -2px 0 var(--neon), 2px 0 var(--neon-2); transform: translateX(-1px); clip-path: inset(10% 0 40% 0); }
  60% { clip-path: none; }
  100% { text-shadow: none; transform: none; }
}

/* спокойный режим и reduced motion: декоративная анимация отключается */
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
.calm .intro .logo, .calm .intro .mast-sub, .calm .intro .lead, .calm .intro .contents { opacity: 1; }
.calm .caret::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .aw *, .aw *::before, .aw *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* архив */
.archive .masthead-static { padding-top: 24px; }
.lead-archive { margin: 22px 0; }
.arc-list { list-style: none; padding: 0; margin: 0 0 24px; }
.arc-list a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 48px; }
.arc-no { font: 900 1.6rem var(--f-display); grid-row: span 2; }
.arc-date { font: 400 .78rem var(--f-mono); color: var(--ink-2); }
.arc-title { font: 700 1.1rem/1.25 var(--f-display); }
.arc-cards { display: grid; gap: 14px; padding: 0; margin: 0 0 24px; }
.about p { max-width: var(--measure); }
@media (min-width: 900px) { .lead-archive { grid-template-columns: 1fr 1fr; column-gap: 32px; } .lead-archive .lead-img { grid-column: 2; grid-row: 1 / span 5; } }
