/* v28 · общее. Раста-стиль: красный, золото, зелёный на тёплой ночи; светлая тема — кремовая.
   Вёрстки: .m (телефон) и .d (компьютер) — свои файлы. Анимации гасит prefers-reduced-motion. */
:root {
  --red: #e0263c; --gold: #f7c21a; --green: #1fa35a;
  --bg: #14110b; --ink: #fbf3df; --mut: #c9b994; --card: #1d1810; --line: #3a3020;
  --chip: #262015; --ok: #63d48f; --bad: #ff7a6b; --warn: #f7c21a; --focus: #7fb0ff;
  --vinyl: #0b0907; --groove: #2a241a;
  --r: 18px;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --red: #c4162c; --gold: #b98a00; --green: #12813f;
    --bg: #fbf4e2; --ink: #1d160b; --mut: #6a5a3a; --card: #fffaf0; --line: #e4d4ad;
    --chip: #f2e7c9; --ok: #12813f; --bad: #b3261e; --warn: #8a6100; --focus: #1d64d8;
    --vinyl: #1b1610; --groove: #3b3226;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.fatal { padding: 24px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg);
  padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.o-body { fill: currentColor; }
.o-det { fill: var(--o-det, var(--vinyl)); }
.c0 { --c: var(--red); } .c1 { --c: var(--gold); } .c2 { --c: var(--green); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 0; background: var(--gold); color: #1d160b; font: inherit; font-weight: 750;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 3px 0 var(--red), 0 6px 0 var(--green); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red), 0 2px 0 var(--green); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand b { font-size: 18px; letter-spacing: -.01em; }
.brand span { color: var(--mut); font-size: 13px; white-space: nowrap; }
.flag { width: 18px; height: 14px; border-radius: 3px; flex: none;
  background: linear-gradient(var(--green) 0 33.3%, var(--gold) 0 66.6%, var(--red) 0); }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 8px;
  border-radius: 999px; border: 2px solid var(--red); color: var(--ink); font-size: 13px; font-weight: 800;
  letter-spacing: .02em; vertical-align: middle; }
.age.big { min-width: 72px; height: 48px; font-size: 22px; border-width: 3px; }
.grow { flex: 1; }
.lang, .cartlink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px;
  min-height: 40px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 650; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.cart-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 800; }
.cart-n[hidden] { display: none; }

/* 18+ */
.gated body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 82%, #000); backdrop-filter: blur(14px); }
.gate-box { max-width: 460px; width: 100%; display: grid; gap: 14px; justify-items: start; padding: 24px;
  border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 6px 0 var(--red), 0 12px 0 var(--gold), 0 18px 0 var(--green); }
.gate-box h2 { font-size: 28px; }
.gate-box p { color: var(--mut); }

/* герой: кинетика «one drop» */
.hero { position: relative; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.kin { font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; outline: none; }
.kin .mask { display: inline-block; line-height: 1.02; padding: 0 .06em .2em; margin-bottom: -.12em;
  clip-path: inset(-0.4em -0.25em 0 -0.25em); vertical-align: bottom; }
/* слово выезжает из маски, потом «падает» на слабую долю (регги one drop) и полосы флага
   текут по буквам */
.kin .w { display: inline-block; transform: translateY(110%); padding-bottom: .18em; margin-bottom: -.18em;
  color: var(--c);
  background: linear-gradient(180deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--red) 66% 100%) 0 0 / 100% 300%;
  -webkit-background-clip: text; background-clip: text;
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards, drop 1.6s ease-in-out infinite,
    flow 4.8s linear infinite;
  animation-delay: calc(var(--i) * 140ms + 80ms), calc(var(--i) * 200ms + 1.1s), calc(var(--i) * -1.6s); }
.kin .w.c0, .kin .w.c1, .kin .w.c2 { -webkit-text-fill-color: transparent; }
@keyframes rise { to { transform: none; } }
@keyframes drop {
  0%, 40%, 100% { transform: none; }
  50% { transform: translateY(.06em); }
  60% { transform: translateY(-.02em); }
  70% { transform: none; }
}
@keyframes flow { to { background-position: 0 150%; } }
.lead { color: var(--ink); opacity: .92; }
.note { color: var(--mut); font-size: 14px; }

.hero-art { position: relative; display: grid; place-items: center; }
.disc { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, var(--vinyl) 0 2px, var(--groove) 2px 3px);
  box-shadow: inset 0 0 0 2px #000, 0 10px 30px -12px rgba(0, 0, 0, .6); }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 40deg, transparent 0 20%, rgba(255, 255, 255, .12) 25%, transparent 30% 70%,
    rgba(255, 255, 255, .08) 75%, transparent 80%); pointer-events: none; }
.disc .label { position: relative; z-index: 1; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--c, var(--gold)); color: #1d160b; --o-det: var(--c, var(--gold)); }
.disc .label .st { position: absolute; left: 0; right: 0; height: 33.4%; }
.disc .label .s0 { top: 0; background: var(--green); }
.disc .label .s1 { top: 33.3%; background: var(--gold); }
.disc .label .s2 { top: 66.6%; background: var(--red); }
.disc .label::after { content: ""; position: absolute; width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--vinyl); }
.disc.big { width: min(78%, 420px); animation: spin 5s linear infinite; }
.eq { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); display: flex; align-items: flex-end;
  gap: 5px; height: 56px; }
.eq i { width: 9px; height: 100%; border-radius: 3px; transform-origin: bottom;
  background: linear-gradient(var(--red) 0 33%, var(--gold) 33% 66%, var(--green) 66%);
  animation: eq 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -170ms); }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 25% { transform: scaleY(.9); } 50% { transform: scaleY(.45); }
  75% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* бегущая лента */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); }
.tick-line { display: flex; width: max-content; gap: 28px; padding: 10px 0; animation: tick 28s linear infinite; }
.tick-line span { font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--c); white-space: nowrap; }
.tick-line span::after { content: "✦"; margin-left: 28px; color: var(--mut); }
@keyframes tick { to { transform: translateX(-50%); } }

/* разделы */
.sec h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; }
.sub { color: var(--mut); margin-top: 8px; }
.rise { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.rise.in { opacity: 1; transform: none; }
.state { color: var(--mut); padding: 16px 0; }
.state.bad { color: var(--bad); }

/* сет-лист */
.sides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.side, .col { min-width: 0; }
.side-h { font-size: 20px; font-weight: 850; display: flex; align-items: center; gap: 10px; }
.side-h::before { content: ""; width: 26px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--green) 66%); }
.row { display: grid; gap: 10px; margin-top: 12px; }
.track { position: relative; width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s; }
.track:hover { transform: translateX(3px); border-color: var(--gold); }
.track.on { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--card)); }
.track .disc { width: 64px; }
.track.on .disc { animation: spin 1.8s linear infinite; }
.track .label { width: 52%; }
.track .lsym { width: 78%; height: 78%; color: #1d160b; }
.cells { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; width: 62%; }
.cells i { aspect-ratio: 1; border-radius: 2px; background: #3d2414; }
.cells i.s1 { background: #6b3f22; } .cells i.s2 { background: #2a170c; }
.track .no { font-weight: 900; color: var(--mut); font-variant-numeric: tabular-nums; }
.track .tt { display: grid; min-width: 0; }
.track .tt b { font-size: 17px; line-height: 1.25; }
.track .tt small { color: var(--mut); font-size: 13px; }
.track .play { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.track .play::before { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid;
  border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #1d160b; }
.track.on .play { background: var(--green); }
.track.on .play::before { left: 13px; top: 13px; width: 5px; height: 14px; border: 0;
  box-shadow: 9px 0 0 #fff; background: #fff; }

/* сцена (вьюер) */
.viewer { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); }
.grab { display: none; }
.v-head { display: flex; align-items: center; gap: 8px; }
.v-title { font-size: 22px; font-weight: 850; flex: 1; min-width: 0; }
.v-close { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.stage { position: relative; border-radius: var(--r); overflow: hidden; touch-action: none;
  background: radial-gradient(120% 90% at 50% 35%, #2c2616 0%, #0c0a06 80%); transition: background .5s; }
.stage[data-bg="light"] { background: radial-gradient(120% 90% at 50% 35%, #fffaf0 0%, #eadcb8 85%); }
.stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 1;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--green) 66%); }
.stage-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.stage-canvas:active { cursor: grabbing; }
.idle { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .4s; }
.idle .disc { width: 46%; animation: spin 5s linear infinite; }
.stage.has3d .idle { opacity: 0; }
.pill { position: absolute; left: 10px; top: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 6px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 650; background: rgba(12, 10, 6, .74); color: #fbf3df;
  backdrop-filter: blur(6px); pointer-events: none; }
.stage[data-bg="light"] .pill { background: rgba(255, 250, 240, .9); color: #1d160b; box-shadow: 0 0 0 1px #e4d4ad; }
.pill[data-mode]:not([data-mode=""])::before { content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: #f7c21a; }
.pill[data-mode="ok"]::before { background: #4cc27c; }
.pill[data-mode="bad"]::before { background: #ff6b57; }
.pill[data-mode="busy"]::before { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px;
  color: rgba(251, 243, 223, .72); pointer-events: none; }
.stage[data-bg="light"] .hint { color: rgba(29, 22, 11, .62); }
.stage.loading::after { content: ""; position: absolute; left: 0; bottom: 5px; z-index: 2; height: 3px; width: 40%;
  background: var(--gold); animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.v-body { display: flex; flex-direction: column; gap: 14px; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.seg[hidden], .knobs[hidden], .swatches[hidden] { display: none; }
.seg-b { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.seg-b[aria-checked="true"] { background: var(--green); color: #fff; }
.seg.wrap { flex-wrap: wrap; border-radius: 18px; gap: 2px; }
.seg.wrap .seg-b { flex: 1 1 auto; padding: 0 12px; }
.knob { display: block; }
.knob-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.knob-v { font-weight: 750; font-variant-numeric: tabular-nums; }
.knob input { width: 100%; height: 32px; accent-color: var(--green); touch-action: pan-y; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--gold); }
.sw.labelled { width: auto; height: auto; min-height: 40px; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--chip); color: var(--ink); font: inherit;
  font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.sw.labelled::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.sw.labelled[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--gold); }
.proto h3 { font-size: 15px; margin-bottom: 6px; }
.proto dl { margin: 0; display: grid; gap: 4px; }
.proto dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px; }
.proto dt { color: var(--mut); }
.proto dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.proto .bad { color: var(--bad); font-size: 15px; }
.proto ul.bad { margin: 6px 0 0; padding-left: 18px; }
.proto .fine { color: var(--mut); font-size: 14px; }
.cart-msg { font-size: 15px; }
.cart-msg:empty { display: none; }

/* как это работает */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.step { position: relative; padding: 16px 16px 16px 64px; border-radius: var(--r); background: var(--card);
  border: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.step.in { opacity: 1; transform: none; }
.step .n { position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid;
  place-items: center; background: var(--c); color: #1d160b; font-weight: 900; }
.step b { display: block; font-size: 17px; }
.step p { color: var(--mut); margin-top: 4px; }

/* чесно */
.fair { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.fair li { position: relative; padding: 10px 12px 10px 34px; border-radius: 12px; background: var(--chip);
  opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .5s; }
.fair li.in { opacity: 1; transform: none; }
.fair li::before { content: ""; position: absolute; left: 12px; top: 17px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); }
.fair li:nth-child(3n+2)::before { background: var(--gold); }
.fair li:nth-child(3n)::before { background: var(--red); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 28px 0 40px;
  color: var(--mut); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot a { display: inline-flex; align-items: center; min-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kin .w { animation: none; transform: none; }
  .disc.big, .idle .disc, .track.on .disc, .eq i, .tick-line, .pill[data-mode="busy"]::before,
  .stage.loading::after { animation: none; }
  .rise, .step, .fair li { opacity: 1; transform: none; transition: none; }
  .track, .btn { transition: none; }
}
