/* Звёздный паспорт — «приборная панель»: петроль, бирюза, кислотный лайм, сигнальный янтарь, срезанные углы, моноширинные показания */
@font-face { font-family: "Unb"; src: url(fonts/unbounded-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unb"; src: url(fonts/unbounded-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Golos"; src: url(fonts/golos-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos"; src: url(fonts/golos-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JBM"; src: url(fonts/jbmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JBM"; src: url(fonts/jbmono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Glyphs"; src: url(fonts/glyphs.woff2) format("woff2"); font-display: block; }

:root {
  --void: #06141B;
  --hull: #0B2129;
  --hull-2: #0F2C36;
  --wire: rgba(62, 242, 224, .22);
  --wire-2: rgba(62, 242, 224, .45);
  --cyan: #3EF2E0;
  --lime: #C6FF4A;
  --pink: #FFAE2B;   /* сигнальный янтарь (имя переменной историческое) */
  --text: #ECFAF8;
  --dim: #7FA3AA;
  --mute: #4D6F77;
  --cut: 14px;
  --disp: "Unb", "Arial Black", system-ui, sans-serif;
  --body: "Golos", system-ui, -apple-system, sans-serif;
  --mono: "JBM", ui-monospace, Menlo, monospace;
  --glyph: "Glyphs", "Apple Symbols", "Segoe UI Symbol", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--void); color: var(--text); }
body { font: 15px/1.5 var(--body); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--wire) 1px, transparent 1px), linear-gradient(90deg, var(--wire) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px; background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(90% 60% at 50% 0%, rgba(6,20,27,.2), var(--void) 75%); pointer-events: none; z-index: 0; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(62,242,224,.025) 0 1px, transparent 1px 4px); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
#stage { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 18px 16px calc(96px + var(--safe-b)); min-height: 100vh; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 27px; line-height: 1.12; }
h2 { font-size: 19px; line-height: 1.2; }
h3 { font-size: 14px; line-height: 1.3; }
p { margin: 0 0 10px; }
.mono { font-family: var(--mono); }
.tag { font: 700 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.dim { color: var(--dim); }
.glyph { font-family: var(--glyph); font-variant-emoji: text; }

/* ---------- срезанные панели ---------- */
.panel { position: relative; background: linear-gradient(160deg, var(--hull-2), var(--hull)); padding: 16px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid var(--wire-2);
  clip-path: inherit; }
.brackets { position: relative; }
.brackets::before, .brackets::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--lime); pointer-events: none; }
.brackets::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.brackets::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }

/* ---------- кнопки ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px;
  font: 700 14px/1 var(--disp); letter-spacing: .04em; text-transform: uppercase; color: var(--void); background: var(--lime);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform .12s, filter .2s; }
.btn:active { transform: scale(.98); filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px var(--wire-2); }
.btn.pink { background: var(--pink); color: var(--void); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.link { color: var(--cyan); font: 600 13px var(--mono); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* ---------- шапка мастера ---------- */
.hud { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font: 11px var(--mono); color: var(--dim); letter-spacing: .12em; }
.hud b { color: var(--cyan); font-weight: 700; }
.segs { display: flex; gap: 4px; margin-bottom: 26px; }
.segs i { flex: 1; height: 3px; background: var(--mute); transition: background .4s; }
.segs i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.step { animation: stepIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.q { margin: 4px 0 6px; }
.q + .dim { font-size: 13px; margin-bottom: 22px; }

/* ---------- плитки он/она ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.tile { height: 150px; display: grid; place-items: center; align-content: center; gap: 10px; font: 700 15px var(--disp);
  background: var(--hull); box-shadow: inset 0 0 0 1px var(--wire); transition: box-shadow .2s, background .2s, transform .15s;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.tile i { font-style: normal; font-family: var(--glyph); font-size: 46px; color: var(--cyan); line-height: 1; }
.tile:active { transform: scale(.97); }
.tile.on { background: rgba(198,255,74,.1); box-shadow: inset 0 0 0 2px var(--lime); }
.tile.on i { color: var(--lime); }

/* ---------- поля ---------- */
.field { width: 100%; height: 58px; padding: 0 18px; font: 600 20px var(--body); background: var(--hull); color: var(--text);
  border: 0; outline: none; box-shadow: inset 0 0 0 1px var(--wire-2); border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.field:focus { box-shadow: inset 0 0 0 2px var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { padding: 9px 13px; font: 600 13px var(--body); background: rgba(62,242,224,.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--wire); }
.chip.on, .chip:active { background: rgba(198,255,74,.14); box-shadow: inset 0 0 0 1px var(--lime); color: var(--lime); }
.hits { margin-top: 10px; display: grid; gap: 6px; }
.hit { text-align: left; padding: 12px 14px; background: var(--hull); box-shadow: inset 0 0 0 1px var(--wire); }
.hit b { display: block; font-weight: 600; }
.hit small { color: var(--dim); font-size: 12px; }
.hit.on { box-shadow: inset 0 0 0 2px var(--lime); }

/* ---------- барабаны ---------- */
.drums { position: relative; display: flex; gap: 8px; height: 230px; margin: 10px 0 18px; }
.drums::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 46px; transform: translateY(-50%);
  background: rgba(198,255,74,.08); box-shadow: inset 0 1px 0 var(--lime), inset 0 -1px 0 var(--lime); pointer-events: none; }
.drums::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--void), transparent 30%, transparent 70%, var(--void)); }
.drum { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 92px 0; overscroll-behavior: contain; }
.drum::-webkit-scrollbar { display: none; }
.drum div { height: 46px; display: grid; place-items: center; scroll-snap-align: center; font: 700 21px var(--mono); color: var(--mute); transition: color .15s, transform .15s; }
.drum div.on { color: var(--text); transform: scale(1.08); }
.drum.wide { flex: 1.6; }
.drum.wide div { font: 600 18px var(--body); }
.drums.off { opacity: .2; pointer-events: none; }
.toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; margin-bottom: 14px;
  font: 600 14px var(--body); color: var(--dim); box-shadow: inset 0 0 0 1px var(--wire); }
.toggle.on { color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.toggle i { width: 18px; height: 18px; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.small { font-size: 12.5px; color: var(--dim); }
.stick { position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 3; box-shadow: 0 -12px 30px var(--void); }

/* ---------- сканер ---------- */
.scan { text-align: center; }
.scan .hud { justify-content: space-between; }
.sound { font: 700 11px var(--mono); color: var(--dim); padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--wire); letter-spacing: .1em; }
.sound.on { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.big-pct { font: 700 44px/1 var(--disp); color: var(--text); margin: 0 0 6px; }
.big-pct small { font-size: 18px; color: var(--dim); }

.calc .wheel-box { position: relative; width: 300px; height: 300px; margin: 0 auto 14px; }
.wheel { width: 100%; height: 100%; overflow: visible; }
.wheel .w-ring, .wheel .w-faint, .wheel .w-cusp, .wheel .w-axis, .wheel .w-planet, .wheel .w-soft, .wheel .w-hard { fill: none; }
.wheel .w-ring { stroke: var(--cyan); }
.wheel .w-faint { stroke: rgba(62,242,224,.35); }
.wheel .w-cusp { stroke: rgba(127,163,170,.6); }
.wheel .w-axis { stroke: var(--lime); }
.wheel line.w-planet { stroke: var(--text); }
.wheel .w-soft { stroke: var(--cyan); opacity: .75; }
.wheel .w-hard { stroke: var(--pink); opacity: .8; }
.wheel text { font-family: var(--mono); }
.wheel text[font-family="Glyphs"] { font-family: var(--glyph); }
.wheel text.w-sign { fill: var(--lime); }
.wheel text.w-planet { fill: var(--text); }
.wheel text.w-num { fill: var(--dim); }
.wheel text.w-axis { fill: var(--lime); font-weight: 700; }
.wheel circle.w-planet { fill: var(--text); }
.calc .wheel line, .calc .wheel circle { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.calc .wheel.drawn line, .calc .wheel.drawn circle:not(.w-planet) { transition: stroke-dashoffset 1.6s ease; stroke-dashoffset: 0; }
.calc .wheel text, .calc .wheel circle.w-planet { opacity: 0; transition: opacity .4s; }
.calc .wheel .lit { opacity: 1 !important; stroke-dashoffset: 0 !important; }
.calc .wheel .w-asp { opacity: 0; transition: opacity .6s, stroke-dashoffset 1.2s; }
.calc .wheel.asp .w-asp { opacity: 1; stroke-dashoffset: 0; }
.calc .wheel.drawn text.w-sign, .calc .wheel.drawn text.w-num { opacity: 1; }
.term { text-align: left; font: 12px/1.75 var(--mono); height: 172px; overflow: hidden; padding: 10px 12px; background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 1px var(--wire); display: flex; flex-direction: column; justify-content: flex-end; }
.term div { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; animation: termIn .25s ease both; }
.term div span:first-child { color: var(--dim); }
.term div span:last-child { color: var(--text); }
.term div.ok span:last-child { color: var(--lime); }
@keyframes termIn { from { opacity: 0; transform: translateY(6px); } }
.bar { height: 6px; background: var(--hull); margin: 12px 0 6px; box-shadow: inset 0 0 0 1px var(--wire); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width .3s linear; }

/* ---------- испытания ---------- */
.rite { text-align: center; }
.rite .segs { margin-bottom: 14px; }
.rite [data-skip] { display: inline-block; margin-top: 10px; color: var(--dim); }
.orrery { width: 270px; height: 270px; margin: 6px auto 4px; }
.orrery svg, .board svg { width: 100%; height: 100%; overflow: visible; }
.o-ring { fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.o-ring.dim { stroke: rgba(62,242,224,.3); stroke-width: 1; }
.o-tick { stroke: rgba(62,242,224,.5); stroke-width: 1; }
.o-sign { fill: var(--lime); font: 15px var(--glyph); text-anchor: middle; dominant-baseline: central; }
.o-pl { fill: var(--text); font: 17px var(--glyph); text-anchor: middle; dominant-baseline: central; filter: drop-shadow(0 0 4px rgba(62,242,224,.8)); }
.o-pl[data-k="sun"] { fill: var(--lime); font-size: 21px; }
.o-year { fill: var(--text); font: 700 30px var(--disp); text-anchor: middle; }
.o-day { fill: var(--cyan); font: 13px var(--mono); text-anchor: middle; }
.knob { position: relative; width: 150px; height: 150px; margin: 4px auto 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.knob-face { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(62,242,224,.55) 0 2deg, transparent 2deg 10deg), radial-gradient(circle, var(--hull-2) 52%, var(--hull) 53%);
  box-shadow: inset 0 0 0 2px var(--wire-2), 0 0 30px rgba(62,242,224,.18); }
.knob-face i { position: absolute; left: 50%; top: 10px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.knob-hint { position: absolute; inset: 0; display: grid; place-items: center; font: 34px var(--body); color: var(--cyan); pointer-events: none; opacity: .7; }
.knob.lock .knob-face { box-shadow: inset 0 0 0 3px var(--lime), 0 0 40px rgba(198,255,74,.4); }
.scope { position: relative; width: 100%; height: 340px; margin: 6px 0 10px; overflow: hidden; touch-action: none; border-radius: 50% / 46%; box-shadow: inset 0 0 0 2px var(--wire-2), 0 0 40px rgba(62,242,224,.12); }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope .cross { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1.5px solid rgba(198,255,74,.7); pointer-events: none; }
.scope .cross::before, .scope .cross::after { content: ""; position: absolute; background: rgba(198,255,74,.7); }
.scope .cross::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.scope .cross::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.scope.aim .cross { border-color: var(--lime); box-shadow: 0 0 18px var(--lime); animation: pulse .3s infinite alternate; }
.scope.lock .cross { border-width: 3px; border-color: var(--lime); transform: scale(1.5); transition: transform .4s; }
.scope .arrow { position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -10px; color: var(--pink); font-size: 22px; pointer-events: none; text-shadow: 0 0 8px var(--pink); }
.scope-data { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 18px; font: 10px var(--mono); color: var(--lime); letter-spacing: .1em; pointer-events: none; }
.sky-pad { width: 300px; height: 300px; margin: 6px auto 10px; background: radial-gradient(circle, rgba(62,242,224,.08), transparent 70%); touch-action: none; }
.sky-pad svg { width: 100%; height: 100%; overflow: visible; }
.cs-star { fill: #cfeee9; transition: fill .2s, r .2s; }
.cs-star.on { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
.cs-star.next { fill: var(--pink); animation: starPulse .7s ease-in-out infinite alternate; }
@keyframes starPulse { to { r: 12; filter: drop-shadow(0 0 10px var(--pink)); } }
.cs-line { stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--cyan)); animation: lineIn .25s ease both; }
@keyframes lineIn { from { opacity: 0; } }
.cs-rubber { stroke: rgba(255,174,43,.6); stroke-width: 1.5; stroke-dasharray: 4 5; }
#cs.lit .cs-line { stroke: var(--lime); filter: drop-shadow(0 0 7px var(--lime)); transition: stroke .5s; }
.board { width: 290px; height: 290px; margin: 4px auto 8px; }
.sec { fill: rgba(62,242,224,.04); stroke: rgba(62,242,224,.35); stroke-width: 1; transition: fill .2s; }
.sec.hint { fill: rgba(198,255,74,.22); stroke: var(--lime); }
.sec.ok { fill: rgba(198,255,74,.45); }
.pl-on { fill: var(--text); font: 17px var(--glyph); text-anchor: middle; dominant-baseline: central; filter: drop-shadow(0 0 4px var(--cyan)); animation: lineIn .3s; }
#bd.lit .sec { fill: rgba(62,242,224,.1); }
.tray { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.pl { padding: 7px 0 6px; background: var(--hull); box-shadow: inset 0 0 0 1px var(--wire-2); touch-action: none; transition: opacity .3s, transform .2s; }
.pl b { display: block; font-size: 21px; line-height: 1.1; color: var(--lime); font-weight: 400; }
.pl small { display: block; font: 8.5px var(--mono); color: var(--dim); letter-spacing: .02em; }
.pl.gone { opacity: .18; }
.pl.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.drag-ghost { position: fixed; z-index: 60; transform: translate(-50%, -70%); font-size: 40px; color: var(--lime); pointer-events: none; text-shadow: 0 0 14px var(--lime); }

/* ---------- фокус ---------- */
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fcs { text-align: left; padding: 14px 12px; min-height: 118px; background: var(--hull); box-shadow: inset 0 0 0 1px var(--wire);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: background .2s, box-shadow .2s; }
.fcs i { display: block; font: 22px var(--glyph); font-style: normal; color: var(--cyan); margin-bottom: 10px; }
.fcs b { display: block; font: 700 14px/1.2 var(--disp); }
.fcs small { display: block; font-size: 12px; color: var(--dim); margin-top: 4px; }
.fcs.on { background: rgba(198,255,74,.1); box-shadow: inset 0 0 0 2px var(--lime); }
.fcs.on i { color: var(--lime); }

/* ---------- приборная панель ---------- */
.dash { margin-top: 14px; }
.dash-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.dash-top div { padding: 8px 6px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--wire); }
.dash-top small { display: block; font: 9px var(--mono); color: var(--dim); letter-spacing: .1em; }
.dash-top b { display: block; font: 700 14px var(--disp); margin-top: 4px; color: var(--lime); }
.gauge { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 0 10px; margin: 9px 0; }
.gauge span { font: 11px var(--mono); color: var(--text); letter-spacing: .06em; text-transform: uppercase; }
.gauge i { height: 8px; background: repeating-linear-gradient(90deg, rgba(62,242,224,.18) 0 6px, transparent 6px 8px); position: relative; }
.gauge em { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 8px);
  animation: fill 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fill { from { width: 0; } }
.gauge b { font: 700 14px var(--mono); text-align: right; }
.gauge p { grid-column: 2 / 4; margin: 3px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- календарь решений ---------- */
.plan-row { padding: 9px 0; border-bottom: 1px dashed var(--wire); }
.plan-row b { font: 700 13px var(--disp); }
.plan-row > span { float: right; color: var(--lime); font-size: 12px; }
.plan-row .blur p { font-size: 12px; margin: 4px 0 0; }
.day { padding: 8px 0; border-bottom: 1px dashed var(--wire); }
.day b { font: 700 14px var(--body); }
.day .stars { float: right; color: var(--lime); font: 13px var(--glyph); letter-spacing: 1px; }
.day .stars i { color: var(--mute); font-style: normal; }
.day p { margin: 3px 0 0; font-size: 12.5px; color: var(--dim); }
.pause { margin-top: 8px; font: 11.5px var(--mono); color: var(--pink); }

/* ---------- паспорт ---------- */
.doc { position: relative; padding: 20px 18px 18px; overflow: hidden; color: var(--text); background: #0A2029;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.doc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 25%, rgba(62,242,224,.22) 40%, rgba(198,255,74,.16) 50%, transparent 65%);
  background-size: 250% 250%; animation: holo 6s ease-in-out infinite; }
@keyframes holo { 0% { background-position: 100% 0; } 50% { background-position: 0 100%; } 100% { background-position: 100% 0; } }
.doc::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--wire-2); clip-path: inherit; pointer-events: none; }
.doc.reveal { animation: docIn 1.1s cubic-bezier(.2,.9,.2,1) both; }
@keyframes docIn { 0% { opacity: 0; transform: perspective(700px) rotateX(70deg) translateY(40px); filter: blur(8px) brightness(3); }
  60% { filter: blur(0) brightness(1.4); } 100% { opacity: 1; transform: none; filter: none; } }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font: 10px var(--mono); color: var(--lime); letter-spacing: .14em; }
.doc-name { font: 700 24px/1.1 var(--disp); margin: 14px 0 4px; word-break: break-word; }
.doc-meta { font: 11.5px/1.5 var(--mono); color: var(--dim); }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.doc-grid div { padding: 10px 8px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--wire); }
.doc-grid small { display: block; font: 9.5px var(--mono); color: var(--dim); letter-spacing: .1em; }
.doc-grid b { display: block; font: 700 14px var(--disp); margin: 6px 0 2px; }
.doc-grid i { font-style: normal; font: 11px var(--mono); color: var(--cyan); }
.doc-grid .sg { font-family: var(--glyph); color: var(--lime); font-size: 18px; float: right; margin-top: -2px; }
.stamp { position: absolute; right: 12px; bottom: 10px; transform: rotate(-10deg); padding: 4px 10px 6px; font: 700 13px/1.1 var(--disp); color: var(--pink);
  border: 2px solid var(--pink); letter-spacing: .06em; opacity: .92; text-align: center; background: rgba(10,32,41,.55); }
.stamp small { display: block; font: 700 8px var(--mono); letter-spacing: .2em; margin-bottom: 2px; }
.stamp.hit { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { from { transform: rotate(-10deg) scale(2.6); opacity: 0; } }
.mrz { margin-top: 14px; font: 10.5px/1.45 var(--mono); color: var(--mute); letter-spacing: .12em; word-break: break-all; }

.block { margin-top: 14px; }
.block h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.block h3 span { font: 11px var(--mono); color: var(--cyan); font-weight: 400; }
.k { font: 10px var(--mono); color: var(--lime); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.sky { padding: 8px; }
.sky .wheel { max-width: 340px; display: block; margin: 0 auto; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.meter { height: 8px; background: var(--hull); box-shadow: inset 0 0 0 1px var(--wire); margin: 8px 0; }
.meter i { display: block; height: 100%; background: var(--lime); }

/* ---------- витрина ---------- */
.offer { margin-top: 12px; }
.offer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer .price { font: 700 22px var(--disp); color: var(--lime); white-space: nowrap; }
.offer .price small { display: block; font: 10px var(--mono); color: var(--dim); text-align: right; letter-spacing: .1em; }
.offer ul { margin: 10px 0 12px; padding: 0; list-style: none; }
.offer li { padding-left: 18px; position: relative; margin: 4px 0; font-size: 14px; }
.offer li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.offer.best { box-shadow: 0 0 0 0 transparent; }
.offer.best .ribbon { position: absolute; top: 0; right: 22px; font: 700 9.5px var(--mono); color: var(--void); background: var(--pink); padding: 4px 8px; letter-spacing: .12em; }
.offer.own .price { color: var(--cyan); font-size: 14px; }
.cmp { width: 100%; border-collapse: collapse; font: 11.5px var(--mono); margin-top: 8px; }
.cmp th, .cmp td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--wire); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--dim); }
.cmp td b { color: var(--lime); }
.demo { margin-top: 10px; }
.demo .open p { font-size: 14px; }
.blur { position: relative; margin-top: 10px; }
.blur p { filter: blur(5px); user-select: none; -webkit-user-select: none; font-size: 13.5px; opacity: .8; }
.blur h4 { font: 700 13px var(--disp); margin: 12px 0 4px; }
.blur .lock { position: absolute; inset: auto 0 0 0; padding: 40px 0 0; text-align: center; background: linear-gradient(transparent, var(--hull) 55%); }
.ev { font: 11px var(--mono); color: var(--cyan); }

/* ---------- образцы PDF ---------- */
.sample-link { display: block; margin: -2px 0 12px; font: 600 13px var(--mono); color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.viewer .pages { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -18px 8px; padding: 0 18px; scrollbar-width: none; }
.viewer .pages::-webkit-scrollbar { display: none; }
.viewer .pages img { flex: 0 0 100%; width: 100%; height: min(50vh, 460px); object-fit: contain; scroll-snap-align: center;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.6)); }
.redo { display: block; margin-top: 10px; font: 12px var(--mono); color: var(--dim); position: relative; z-index: 2; }
.redo u { color: var(--cyan); text-underline-offset: 3px; }

/* ---------- ещё ---------- */
.list { display: grid; gap: 8px; margin-top: 12px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; background: var(--hull); box-shadow: inset 0 0 0 1px var(--wire); text-align: left; width: 100%; }
.item small { display: block; color: var(--dim); font-size: 12px; }
.item .go { font: 700 11px var(--mono); color: var(--lime); letter-spacing: .1em; }
.sw { width: 46px; height: 26px; background: var(--mute); position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--text); transition: transform .2s; }
.sw.on { background: var(--lime); }
.sw.on::after { transform: translateX(20px); background: var(--void); }
textarea.field { height: 120px; padding: 14px; font-size: 15px; resize: none; }
.ask { padding: 12px; margin-top: 8px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--wire); font-size: 14px; }
.ask .ans { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--wire-2); color: var(--lime); }
.terms h3 { margin: 18px 0 6px; color: var(--cyan); }
.terms p, .terms li { font-size: 14px; color: #CFE4E2; }

/* ---------- док-панель ---------- */
#dock { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: min(488px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(11,33,41,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--wire-2); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
#dock button { padding: 10px 0 9px; display: grid; justify-items: center; gap: 2px; color: var(--dim); font: 600 11px var(--body); }
#dock button i { font-style: normal; font-size: 17px; line-height: 1; }
#dock button.on { color: var(--lime); }

/* ---------- лист оплаты ---------- */
#sheet { position: fixed; inset: 0; z-index: 30; background: rgba(2,8,11,.72); display: flex; align-items: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet-body { width: 100%; max-width: 520px; margin: 0 auto; background: var(--hull); padding: 22px 18px calc(22px + var(--safe-b));
  box-shadow: inset 0 1px 0 var(--lime); animation: up .3s cubic-bezier(.2,.9,.2,1); max-height: 88vh; overflow: auto; }
@keyframes up { from { transform: translateY(100%); } }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: 13.5px; text-align: left; }
.check i { flex: none; width: 22px; height: 22px; box-shadow: inset 0 0 0 1.5px var(--cyan); display: grid; place-items: center; font-style: normal; color: var(--void); }
.check.on i { background: var(--lime); box-shadow: none; }
.note { padding: 12px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--wire); font: 13px/1.55 var(--mono); white-space: pre-wrap; margin: 10px 0; }
#toast { position: fixed; z-index: 40; left: 50%; top: 16px; transform: translateX(-50%); padding: 10px 16px; background: var(--lime); color: var(--void);
  font: 700 12px var(--mono); letter-spacing: .06em; animation: fade .2s; max-width: 90%; text-align: center; }

/* ---------- заставки ---------- */
.boot { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.boot .orb { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cyan), 0 0 40px rgba(62,242,224,.4);
  position: relative; animation: spin 2.4s linear infinite; }
.boot .orb::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }
.intro { text-align: center; padding-top: 4vh; }
.intro .emblem { width: 190px; height: 190px; margin: 6px auto 20px; }
.intro .emblem circle, .intro .emblem path { fill: none; stroke: var(--cyan); }
.intro .emblem .spin { transform-origin: 50% 50%; animation: spin 18s linear infinite; }
.intro .emblem .spin2 { transform-origin: 50% 50%; animation: spin 11s linear infinite reverse; }
.intro h1 { font-size: 30px; margin-bottom: 10px; }
.intro .steps { display: flex; justify-content: center; gap: 16px; margin: 18px 0 26px; font: 10px var(--mono); color: var(--dim); letter-spacing: .1em; }
.intro .steps b { display: block; font-size: 20px; color: var(--lime); font-family: var(--disp); margin-bottom: 4px; }
.glitch { animation: glitch 2.8s steps(1) infinite; }
@keyframes glitch { 0%, 92%, 100% { transform: none; text-shadow: none; } 93% { transform: translateX(-2px); text-shadow: 2px 0 var(--pink), -2px 0 var(--cyan); }
  95% { transform: translateX(2px); text-shadow: -2px 0 var(--pink), 2px 0 var(--cyan); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* оплата USDT */
.usdt-sum { margin: 10px 0 4px; font-size: 15px; color: var(--cyan); }
.usdt-sum b { font-size: 30px; color: var(--lime); margin-right: 4px; }
.usdt-sum .link { margin-left: 10px; font-size: 12px; }
.usdt-wallet { display: flex; gap: 14px; align-items: center; margin: 14px 0; padding: 12px; box-shadow: inset 0 0 0 1px var(--wire-2); }
.usdt-wallet img { flex: none; }
.usdt-addr { font-size: 12.5px; word-break: break-all; margin: 6px 0; }
