/* Слав Чибс — ДСО «Чибс». Tracksuit green, cotton stripes, Soviet red, ushanka brass, panel concrete. */
:root {
  --green: #1e3a2c;
  --green-2: #16301f;
  --green-3: #2a4c3a;
  --stripe: #f1ede2;
  --red: #c4161c;
  --red-2: #9e0f14;
  --brass: #c9a24a;
  --brass-2: #a8842f;
  --concrete: #8e8b83;
  --concrete-l: #d6d3cb;
  --ink: #161616;
  --display: "Russo One", "Arial Black", Impact, sans-serif;
  --body: "PT Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --bar-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0; color: var(--stripe); font: 400 18px/1.55 var(--body);
  background: var(--green);
  /* fabric: a faint twill weave */
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 5px);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); }
a:hover { color: var(--stripe); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 400 16px/1 var(--display); text-decoration: none; cursor: pointer;
  padding: .8em 1.15em; border: 2px solid transparent; border-radius: 3px;
  color: var(--stripe); background: transparent; transition: transform .08s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-2); border-color: var(--red-2); color: var(--stripe); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--stripe); border-color: var(--stripe); color: var(--ink); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--stripe); color: var(--ink); border-color: var(--stripe); }
.btn-big { font-size: 18px; padding: .95em 1.4em; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.linkish { background: none; border: 0; color: var(--brass); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; word-break: break-all; text-align: left; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gut);
  background: rgba(22, 48, 31, .92); backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--stripe);
  box-shadow: 0 6px 0 -3px var(--green-2), 0 9px 0 -3px var(--stripe);
}
.bar-brand { display: flex; align-items: center; gap: 10px; color: var(--stripe); text-decoration: none; font: 400 20px/1 var(--display); white-space: nowrap; }
.bar-brand img { border-radius: 50%; border: 2px solid var(--brass); }
.bar-nav { display: flex; gap: 4px; margin-left: 8px; }
.bar-nav a { color: var(--stripe); text-decoration: none; font: 400 15px/1 var(--display); padding: 8px 10px; border-radius: 3px; }
.bar-nav a:hover { background: var(--green-3); }
.bar-act { margin-left: auto; display: flex; gap: 8px; }
.bar-act .btn { padding: .6em .9em; font-size: 14px; }
.btn-x, .btn-tg { border-color: var(--stripe); min-width: 42px; }
.btn-x:hover, .btn-tg:hover { background: var(--stripe); color: var(--ink); }

/* ---------- hero: the jacket ---------- */
.hero-wrap { position: relative; height: 175svh; }
.hero-wrap.opened { height: auto; }
.hero-wrap.opened .hero { position: relative; height: auto; min-height: 100svh; overflow: hidden; }
.hero-wrap.opened .poster { position: relative; inset: auto; min-height: 100svh; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.poster {
  position: absolute; inset: 0; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--bar-h) + 24px) var(--gut) 32px;
}
.rays {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--red) 0deg 7deg, var(--red-2) 7deg 14deg);
  opacity: .9;
}
.poster-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 56px); align-items: center; max-width: var(--wrap); width: 100%;
}
.poster-pic { margin: 0; justify-self: end; width: min(100%, 520px); border: 10px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); transform: rotate(-2deg); background: var(--ink); }
.poster-title { font-size: clamp(64px, 11vw, 168px); line-height: .88; color: var(--stripe); text-shadow: 6px 6px 0 var(--ink); letter-spacing: -.01em; }
.poster-title span { display: block; }
.poster-ticker { margin: 14px 0 0; font: 400 clamp(22px, 2.6vw, 34px)/1.1 var(--display); color: var(--ink); }
.poster-pray { margin: 10px 0 18px; font-size: clamp(19px, 1.8vw, 24px); font-style: italic; }
.ca {
  display: flex; align-items: stretch; width: 100%; max-width: 560px; padding: 0; cursor: pointer;
  background: var(--ink); color: var(--stripe); border: 2px solid var(--ink); border-radius: 3px; font: inherit; text-align: left;
}
.ca-k { background: var(--brass); color: var(--ink); font: 400 15px/1 var(--display); padding: 12px; display: flex; align-items: center; }
.ca-v { flex: 1; padding: 10px 12px; font-size: 15px; line-height: 1.35; word-break: break-all; }
.ca-c { padding: 0 14px; display: flex; align-items: center; font: 400 14px/1 var(--display); border-left: 1px solid #333; }
.ca:hover .ca-c { color: var(--brass); }
.poster-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.poster-btns .btn-ghost { color: var(--stripe); }
.poster-sub { margin: 14px 0 0; font-size: 16px; color: var(--stripe); opacity: .92; }

.jacket { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.half {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.07) 0 2px, transparent 2px 5px);
  transition: transform .7s cubic-bezier(.6,0,.2,1);
  overflow: hidden; pointer-events: auto; cursor: pointer;
}
.half-l { left: 0; clip-path: var(--clip-l, none); }
.half-r { right: 0; clip-path: var(--clip-r, none); }
/* sleeve stripes on the outer edges */
.half::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px;
  background: linear-gradient(90deg, var(--stripe) 0 14px, transparent 14px 25px, var(--stripe) 25px 39px, transparent 39px 50px, var(--stripe) 50px 64px);
}
.half-l::before { left: clamp(12px, 4vw, 48px); }
.half-r::before { right: clamp(12px, 4vw, 48px); }
/* zipper teeth on the inner edges */
.half::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 9px;
  background: repeating-linear-gradient(180deg, #b9b5aa 0 5px, #6d6a62 5px 6px, transparent 6px 10px);
}
.half-l::after { right: 0; }
.half-r::after { left: 0; background-position: 0 5px; }
.chest {
  position: absolute; top: 36%; font: 400 clamp(56px, 12vw, 190px)/1 var(--display); color: var(--stripe);
  text-shadow: 0 4px 0 var(--green-2);
}
.half-l .chest { right: clamp(18px, 3vw, 44px); }
.half-r .chest { left: clamp(18px, 3vw, 44px); }
.crest {
  position: absolute; top: calc(var(--bar-h) + 7vh); right: clamp(28px, 6vw, 90px);
  font: 400 clamp(13px, 1.3vw, 17px)/1.15 var(--display); text-align: center; color: var(--stripe);
  border: 2px dashed var(--stripe); border-radius: 50% 50% 46% 46%; padding: 16px 14px; opacity: .85;
}
.jacket.open .half-l { transform: translateX(-102%); }
.jacket.open .half-r { transform: translateX(102%); }
.jacket.gone { display: none; }

.zip {
  position: absolute; z-index: 6; left: 50%; top: var(--zip-y, 120px); transform: translate(-50%, 0);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0 12px; cursor: grab; touch-action: none; color: var(--stripe);
}
.zip:active { cursor: grabbing; }
.zip-tab {
  width: 34px; height: 82px; border-radius: 8px 8px 16px 16px;
  background: linear-gradient(90deg, #8a867c, #e6e2d8 45%, #9c988e);
  box-shadow: 0 4px 0 #4d4a44, inset 0 -18px 0 -10px #6d6a62;
  position: relative;
}
.zip-tab::after { content: ""; position: absolute; left: 50%; top: 46px; width: 12px; height: 22px; transform: translateX(-50%); border-radius: 6px; background: var(--green-2); }
.zip-hint { font: 400 18px/1 var(--display); background: var(--red); padding: 6px 10px; border-radius: 3px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.zip.done { display: none; }

/* ---------- stats strip + radio ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--wrap); margin: 0 auto;
  padding: 18px var(--gut); gap: 12px;
}
.stats div { border-left: 4px solid var(--stripe); padding-left: 12px; }
.stats .k { display: block; font-size: 14px; color: var(--concrete-l); }
.stats b { font: 400 22px/1.2 var(--display); }
.stats .up { color: #7bd88f; } .stats .down { color: #ff7a7a; }

.radio { background: var(--stripe); color: var(--ink); overflow: hidden; border-block: 6px solid var(--green-2); }
.radio-track { display: flex; width: max-content; animation: radio 46s linear infinite; }
.radio-track span { font: 400 18px/1 var(--display); padding: 14px 28px; white-space: nowrap; }
.radio-track span:nth-child(odd) { color: var(--red); }
@keyframes radio { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.h2 { font-size: clamp(40px, 6vw, 76px); color: var(--stripe); }
.h2-sm { font-size: clamp(34px, 4.5vw, 56px); margin-top: 72px; }
.lede { max-width: 62ch; margin: 14px 0 36px; font-size: 19px; color: var(--concrete-l); }
.hint { color: var(--concrete-l); font-size: 16px; }
.tiny { font-size: 14px; color: var(--concrete-l); margin: 8px 0 0; }

/* lore: concrete file */
.sec-lore { background: var(--concrete-l); color: var(--ink); }
.sec-lore .h2 { color: var(--ink); }
.sec-lore .lede { color: #3e3c37; }
.file { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dossier { position: sticky; top: calc(var(--bar-h) + 20px); background: #ece9e1; border: 2px solid var(--ink); padding: 18px; box-shadow: 8px 8px 0 var(--ink); }
.dossier img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); filter: grayscale(.25) contrast(1.05); }
.dossier dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; line-height: 1.35; }
.dossier dt { font-weight: 700; color: #4a4741; }
.dossier dd { margin: 0; }
.dossier .bonk { font: 400 20px/1 var(--display); color: var(--red); }
.stamp {
  position: absolute; top: 26px; right: -14px; z-index: 2; transform: rotate(9deg);
  border: 4px solid var(--red); color: var(--red); padding: 6px 10px; border-radius: 4px;
  font: 400 15px/1.05 var(--display); text-align: center; background: rgba(236,233,225,.75); mix-blend-mode: multiply;
}
.timeline { list-style: none; margin: 0; padding: 0; border-left: 6px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 34px 28px; }
.timeline li::before { content: ""; position: absolute; left: -15px; top: 5px; width: 24px; height: 24px; background: var(--red); border: 4px solid var(--ink); border-radius: 50%; }
.timeline time { font: 400 16px/1 var(--display); color: var(--red); }
.timeline h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 6px 0 6px; }
.timeline p { margin: 0; max-width: 60ch; }
.timeline .rip::before { background: var(--ink); border-color: var(--concrete); }
.timeline .rip time { color: #4a4741; }
.srcs { margin-top: 28px; font-size: 14px; color: #4a4741; max-width: 90ch; }
.sec-lore a { color: var(--red-2); }

/* memes: honor board */
.sec-memes { background: var(--red-2); background-image: radial-gradient(ellipse at 50% 0, var(--red) 0, var(--red-2) 70%); }
.board-head .h2 { color: var(--brass); text-shadow: 3px 3px 0 #5b0709; }
.board-head .lede { color: #f6d9d0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font: 400 15px/1 var(--display); padding: 9px 14px; border-radius: 3px; cursor: pointer; background: transparent; color: var(--stripe); border: 2px solid rgba(241,237,226,.6); }
.filters button[aria-pressed="true"] { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.board { columns: 3 300px; column-gap: 22px; }
.portrait { break-inside: avoid; margin: 0 0 22px; background: #2a0b0b; padding: 10px; border: 3px solid var(--brass); box-shadow: inset 0 0 0 3px #5b0709, 6px 6px 0 rgba(0,0,0,.35); }
.portrait > button { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.portrait img { width: 100%; height: auto; }
.portrait figcaption { padding: 12px 4px 4px; font-size: 16px; line-height: 1.4; }
.portrait .ru { display: block; color: var(--brass); font-size: 15px; margin-top: 4px; }
.portrait .by { display: block; font-size: 13px; color: #d9b8b0; margin-top: 6px; }
.portrait .by a { color: #f0cfc6; }
.board-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.board-foot .hint { color: #f6d9d0; margin: 0; }
.board-foot .hint a { color: var(--brass); }

/* semki */
.sec-semki { background: var(--green-2); }
.semki { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.yard { position: relative; display: flex; flex-direction: column; align-items: center; }
.cracker { position: relative; z-index: 2; width: min(78vw, 340px); aspect-ratio: 1; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; border: 8px solid var(--stripe); background: var(--green); box-shadow: 0 10px 0 var(--ink); transform-origin: 50% 100%; touch-action: manipulation; }
.cracker img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cracker.squat { animation: squat .16s ease-out; }
@keyframes squat { 40% { transform: scale(1.06, .9); } 100% { transform: none; } }
.asphalt { position: relative; width: 100%; height: 120px; margin-top: -10px; background: #3a3a38; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px); background-size: 7px 7px; border-top: 6px solid #55534f; overflow: hidden; }
.shell { position: absolute; width: 11px; height: 17px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: linear-gradient(90deg, #111 0 30%, #9a978e 30% 40%, #111 40% 60%, #9a978e 60% 70%, #111 70%); }
.plus { position: absolute; z-index: 3; pointer-events: none; font: 400 22px/1 var(--display); color: var(--brass); text-shadow: 2px 2px 0 var(--ink); }
.panel .count { margin: 0; font-size: 20px; }
.panel .count b { display: block; font: 400 clamp(56px, 8vw, 92px)/1 var(--display); color: var(--brass); }
.panel .pocket { margin: 6px 0 0; font-size: 15px; color: var(--concrete-l); }
.panel .pocket b { color: var(--stripe); }
.panel .rank { margin: 14px 0 8px; font-size: 19px; }
.panel .rank b { font-family: var(--display); font-weight: 400; color: var(--stripe); }
.panel .rank span { color: var(--concrete-l); }
.meter { height: 16px; background: var(--green); border: 2px solid var(--stripe); }
.meter i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--stripe) 0 10px, var(--brass) 10px 20px); transition: width .2s; }
.panel .next { color: var(--concrete-l); font-size: 15px; margin: 8px 0 20px; }
.lads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.lads p { margin: 0; font-size: 15px; color: var(--concrete-l); }
#hbInline[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--stripe); }

/* bilet */
.bilet { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.bilet-form { display: flex; flex-direction: column; gap: 12px; }
.bilet-form label { font-family: var(--display); font-size: 17px; }
.bilet-form input { font: 400 20px/1.2 var(--body); padding: 12px 14px; border: 3px solid var(--stripe); background: var(--green-2); color: var(--stripe); border-radius: 3px; }
.bilet-form input::placeholder { color: var(--concrete); }
.bilet-out { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bilet-card { width: 100%; height: auto; border-radius: 10px; box-shadow: 10px 10px 0 var(--ink); background: var(--green-2); }

/* slovar */
.sec-slovar { background: var(--stripe); color: var(--ink); }
.sec-slovar .h2 { color: var(--ink); }
.sec-slovar .lede { color: #4a4741; }
.slovar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; margin: 0; border-top: 3px solid var(--ink); }
.slovar div { padding: 18px 18px 20px 0; border-bottom: 1px solid #bdb9ae; }
.slovar dt { font: 400 26px/1.1 var(--display); color: var(--red-2); }
.slovar dt i { display: block; font: italic 400 16px/1.4 var(--body); color: #5e5b54; margin-top: 2px; }
.slovar dd { margin: 6px 0 0; font-size: 17px; }

/* join */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; padding: 18px 18px 22px; border: 3px solid var(--stripe); border-radius: 3px; position: relative; }
.steps li::before { content: counter(s); font: 400 44px/1 var(--display); color: var(--brass); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 16px; color: var(--concrete-l); }
.join-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.plan { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 3px solid var(--stripe); }
.plan div { padding: 18px 16px 20px 0; border-bottom: 1px solid var(--green-3); }
.plan dt { font: 400 24px/1.1 var(--display); color: var(--brass); }
.plan dd { margin: 6px 0 0; font-size: 16px; color: var(--concrete-l); }

/* chart */
.sec-chart { background: var(--green-2); }
.chart { position: relative; height: min(70vh, 620px); min-height: 420px; border: 3px solid var(--stripe); background: #0e1a13; }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--concrete-l); }

/* footer */
.foot { background: var(--ink); padding: 56px 0 120px; color: var(--concrete-l); border-top: 8px solid var(--red); }
.foot-pray { font: 400 clamp(26px, 4vw, 44px)/1.1 var(--display); color: var(--stripe); margin: 0 0 16px; }
.foot-ca { font-size: 15px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px 24px; font: 400 18px/1.3 var(--display); }
.foot-legal { font-size: 14px; max-width: 80ch; }
.foot-rip { font-size: 15px; color: var(--brass); }

/* hardbass button */
.hb {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 40px; cursor: pointer; border: 3px solid var(--stripe);
  background: var(--green-2); color: var(--stripe); font: 400 16px/1 var(--display); box-shadow: 0 6px 0 var(--ink);
}
.hb[aria-pressed="true"] { background: var(--red); }
.hb-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.hb-eq i { width: 4px; height: 6px; background: currentColor; }
.hb[aria-pressed="true"] .hb-eq i { animation: eq .4s ease-in-out infinite alternate; }
.hb[aria-pressed="true"] .hb-eq i:nth-child(2) { animation-delay: .1s; }
.hb[aria-pressed="true"] .hb-eq i:nth-child(3) { animation-delay: .2s; }
.hb[aria-pressed="true"] .hb-eq i:nth-child(4) { animation-delay: .3s; }
@keyframes eq { to { height: 18px; } }
body.bass .poster-pic, body.bass .cracker { animation: thump .387s ease-out infinite; } /* 155 bpm */
@keyframes thump { 0% { scale: 1.035; } 100% { scale: 1; } }

/* lightbox */
.lb { padding: 0; border: 0; overflow: visible; background: transparent; max-width: min(1100px, 96vw); width: 100%; color: var(--stripe); }
.lb::backdrop { background: rgba(10, 18, 13, .92); }
.lb-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); background: var(--green-2); border: 3px solid var(--brass); max-height: 92vh; }
.lb-in img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; background: #000; }
.lb-cap { padding: 22px; overflow: auto; }
.lb-cap p { margin: 0 0 10px; }
#lbCaption { font-size: 20px; }
.lb-ru { color: var(--brass); }
.lb-by { font-size: 14px; color: var(--concrete-l); }
.lb-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lb-btns .btn { font-size: 14px; padding: .7em .9em; }
.lb-x { position: absolute; top: -16px; right: -16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--brass); background: var(--red); color: var(--stripe); font: 400 26px/1 var(--display); cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .25s, visibility 0s .25s; background: var(--brass); color: var(--ink); font: 400 16px/1 var(--display); padding: 14px 18px; border-radius: 3px; box-shadow: 0 5px 0 var(--ink); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; line-height: 1.25; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .25s; }

/* ---------- chaos layer ---------- */
.rays { animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.portrait:nth-child(4n+1) { rotate: -1.2deg; } .portrait:nth-child(4n+2) { rotate: .9deg; }
.portrait:nth-child(4n+3) { rotate: -.6deg; } .portrait:nth-child(4n) { rotate: 1.4deg; }
.portrait.cutout > button { background: radial-gradient(circle at 50% 40%, var(--stripe), #c9c2b0); }
.has-peek { position: relative; overflow-x: clip; }
.peek { position: absolute; z-index: 4; width: clamp(92px, 11vw, 168px); padding: 0; border: 0; background: none; cursor: grab; touch-action: none; filter: drop-shadow(4px 6px 0 rgba(0,0,0,.35)); }
.peek img { width: 100%; height: auto; pointer-events: none; user-select: none; }
.peek.grab { cursor: grabbing; z-index: 40; }
.peek.wiggle img { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.08); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
.walker { position: fixed; left: 0; bottom: 0; z-index: 45; width: 120px; padding: 0; border: 0; background: none; cursor: pointer; }
.walker img { width: 100%; height: auto; animation: bob .36s ease-in-out infinite alternate; pointer-events: none; }
.walker.flip img { scale: -1 1; }
@keyframes bob { from { translate: 0 0; rotate: -3deg; } to { translate: 0 -8px; rotate: 3deg; } }
.dock { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 8px; }
.still-btn { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 40px; cursor: pointer; border: 3px solid var(--stripe); background: var(--green-2); color: var(--stripe); font: 400 14px/1 var(--display); box-shadow: 0 6px 0 var(--ink); }
.still-btn[aria-pressed="true"] { background: var(--stripe); color: var(--ink); border-color: var(--ink); }
body.still .rays, body.still .radio-track, body.still .zip-hint, body.still .walker img,
body.still .poster-pic, body.still .cracker, body.still .poster-title, body.still .hb-eq i, body.still .chaos-btn { animation: none !important; }
body.still .walker { display: none; }
.chaos-btn { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 40px; cursor: pointer; border: 3px solid var(--ink); background: var(--brass); color: var(--ink); font: 400 16px/1 var(--display); box-shadow: 0 6px 0 var(--ink); }
.chaos-btn[aria-pressed="true"] { background: var(--stripe); animation: alarm .5s steps(2) infinite; }
@keyframes alarm { 50% { background: var(--red); color: var(--stripe); } }
.chaos-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.drop { position: absolute; top: 0; height: auto; filter: drop-shadow(3px 5px 0 rgba(0,0,0,.4)); }
.shout { position: absolute; font-family: var(--display); color: var(--stripe); white-space: nowrap; text-shadow: 3px 3px 0 var(--red), 6px 6px 0 var(--ink); }
body.chaos .rays { animation-duration: 12s; }
body.chaos .radio-track { animation-duration: 18s; }
body.chaos.bass .poster-title { animation: thump .387s ease-out infinite; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .bar-nav { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file { grid-template-columns: 1fr; }
  .dossier { position: relative; top: 0; max-width: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .poster { align-items: flex-start; }
  .poster-grid { grid-template-columns: 1fr; gap: 18px; }
  .poster-pic { justify-self: center; width: min(70vw, 300px); border-width: 6px; box-shadow: 8px 8px 0 var(--ink); }
  .poster-copy { text-align: left; }
  .poster-title { font-size: clamp(56px, 17vw, 96px); }
  .poster-title span { display: inline; }
  .poster-pray { margin-bottom: 12px; }
  .ca-v { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .semki, .bilet { grid-template-columns: 1fr; }
  .lb-in { grid-template-columns: 1fr; max-height: 94vh; overflow: auto; }
  .lb-in img { max-height: 60vh; }
  .lb-x { top: 8px; right: 8px; }
  .bar-act .btn-tg { display: none; }
  .bar-brand span { display: none; }
  .crest { display: none; }
  .chest { font-size: 11.5vw; top: 40%; }
  .half-l .chest { right: 14px; }
  .half-r .chest { left: 14px; }
  .half::before { width: 40px; background: linear-gradient(90deg, var(--stripe) 0 9px, transparent 9px 15px, var(--stripe) 15px 24px, transparent 24px 31px, var(--stripe) 31px 40px); }
  .half-l::before { left: 8px; }
  .half-r::before { right: 8px; }
  .hb, .chaos-btn, .still-btn { padding: 10px 12px; font-size: 14px; }
  .dock { left: 10px; bottom: 12px; gap: 6px; }
  .hb { right: 10px; bottom: 12px; }
  .walker { width: 90px; }
  .peek { width: 74px; top: auto !important; bottom: -8px !important; }
  .foot .peek { bottom: auto !important; top: -46px !important; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .bar-act .btn { padding: .55em .7em; }
}
@media (max-width: 360px) {
  .hb-t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .radio-track, .zip-hint, .rays, .chaos-btn { animation: none !important; }
  body.bass .poster-pic, body.bass .cracker, .hb[aria-pressed="true"] .hb-eq i { animation: none; }
  .half { transition: none; }
}
