:root {
  /* ніч у лампі */
  --night: #07060d;
  --night-2: #0e0b18;
  --panel: #120e20;
  --panel-2: #181229;
  --line: #2a2142;
  --line-2: #3a2f5c;
  --text: #f1edff;
  --text-2: #c9c0e6;
  --muted: #8d84ab;
  /* неон з лого */
  --blue: #3d7bff;
  --violet: #8b3dff;
  --magenta: #c84bff;
  --lavender: #cdbaf5;
  --gold: #f4bd4f;
  --accent: var(--violet);
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--violet) 50%, var(--magenta) 100%);

  --f-display: "Rubik", system-ui, sans-serif;
  --f-body: "Onest", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--night); overflow-x: clip; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet); color: #fff; }

/* фонове сяйво */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 22s ease-in-out infinite alternate; }
.sky i:nth-child(1) { width: 46vw; height: 46vw; background: var(--blue); left: -12vw; top: -10vw; }
.sky i:nth-child(2) { width: 40vw; height: 40vw; background: var(--violet); right: -10vw; top: 30vh; animation-delay: -7s; opacity: .26; }
.sky i:nth-child(3) { width: 34vw; height: 34vw; background: var(--magenta); left: 30vw; bottom: -20vw; animation-delay: -14s; opacity: .18; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.1); } }

/* ---------- type ---------- */
.kicker {
  font: 600 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender);
  margin: 0 0 10px; display: flex; align-items: center; gap: 10px;
}
.section-head--center .kicker { justify-content: center; }
.h2 { font: 900 clamp(28px, 3.6vw, 46px)/1 var(--f-display); letter-spacing: -.03em; margin: 0 0 10px; font-style: italic; }
.h3 { font: 800 22px/1.15 var(--f-display); letter-spacing: -.01em; margin: 0 0 10px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.muted { color: var(--muted); max-width: 56ch; }
.mono { font-family: var(--f-mono); }
.small { font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--rec { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.section-head { margin-bottom: 28px; }
.section-head--center { text-align: center; }
.section-head--center .muted { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 18px;
  background: var(--panel-2); color: var(--text); font: 600 15px/1 var(--f-body); text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--lavender); }
.btn--accent { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -10px var(--violet); }
.btn--accent:hover { box-shadow: 0 10px 36px -8px var(--magenta); }
.btn--light { background: var(--text); color: var(--night); }
.btn--outline-light { background: transparent; border-color: var(--line-2); }
.btn--outline-light:hover { border-color: var(--lavender); }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { font: 600 15px var(--f-body); text-decoration: none; color: var(--text-2); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.link-arrow:hover { color: var(--text); border-color: var(--lavender); }

.lamp-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 14px 24px; border-radius: 16px; font: 800 17px var(--f-display); font-style: italic;
  color: #fff; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 40px -12px var(--violet);
  transition: background-position .6s ease, transform .2s;
  overflow: hidden;
}
.lamp-btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.lamp-btn__glow {
  position: absolute; inset: -40% auto -40% -30%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--gutter);
  background: rgba(7,6,13,.72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(139,61,255,.18);
}
.logo { display: flex; align-items: center; gap: 10px; font: 900 21px var(--f-display); font-style: italic; letter-spacing: -.02em; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--violet), 0 0 18px -2px var(--violet); object-fit: cover; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.top__nav { display: flex; gap: 22px; font-size: 14px; }
.top__nav a { text-decoration: none; color: var(--text-2); }
.top__nav a:hover { color: var(--text); }
.top__me { display: flex; align-items: center; gap: 10px; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 600 13px var(--f-mono); padding: 7px 11px; border-radius: 10px;
  background: rgba(139,61,255,.14); border: 1px solid rgba(139,61,255,.4);
}
.balance-pill b { color: var(--gold); }
.me-name { font-size: 14px; color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: clamp(24px, 3.5vw, 48px) var(--gutter) clamp(28px, 3.5vw, 44px);
}
.hero__title { font: 900 clamp(40px, 5.6vw, 84px)/.92 var(--f-display); font-style: italic; letter-spacing: -.035em; margin: 0 0 18px; }
.hero__title .line { display: block; }
.line--wish { min-height: 1em; }
#heroLabel {
  display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; filter: drop-shadow(0 0 28px rgba(139,61,255,.55));
  animation: swap .5s ease both;
}
@keyframes swap { from { opacity: 0; transform: translateY(.25em) skewX(-8deg); filter: blur(6px); } }
.hero__lead { font-size: clamp(16px, 1.2vw, 18px); max-width: 48ch; color: var(--text-2); margin: 0 0 22px; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 26px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; gap: 5px; }
/* тонкий розділювач між фактами — кожен читається окремим блоком */
.hero__facts li + li { padding-left: 26px; border-left: 1px solid var(--line-2); }
.hero__facts b { font: 900 24px var(--f-display); font-style: italic; color: var(--text); }
.hero__facts span { font: 400 13px var(--f-mono); color: var(--muted); }

.hero__art { position: relative; width: min(100%, 400px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }

.genie {
  position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 40px rgba(139,61,255,.35));
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 71%);
          mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 71%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
.smoke { position: absolute; inset: 0; pointer-events: none; }
.smoke i {
  position: absolute; bottom: 8%; left: 30%; width: 40%; height: 30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,61,255,.55), transparent);
  filter: blur(20px); animation: smoke 7s ease-in-out infinite;
}
.smoke i:nth-child(2) { left: 14%; animation-delay: -2.3s; background: radial-gradient(closest-side, rgba(61,123,255,.5), transparent); }
.smoke i:nth-child(3) { left: 48%; animation-delay: -4.6s; background: radial-gradient(closest-side, rgba(200,75,255,.45), transparent); }
@keyframes smoke { 0% { transform: translateY(20%) scale(.8); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-120%) scale(1.5); opacity: 0; } }
.note { position: absolute; font: 900 46px var(--f-display); color: var(--blue); text-shadow: 0 0 16px currentColor; animation: float 5s ease-in-out infinite; }
.note--1 { left: 0; top: 52%; }
.note--2 { right: 2%; top: 38%; color: var(--magenta); animation-delay: -1.5s; }
.note--3 { right: 14%; top: 8%; color: var(--lavender); font-size: 30px; animation-delay: -3s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: rgba(18,14,32,.7); }
.ticker__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker__track span { font: 500 14px/1 var(--f-body); padding: 12px 20px; white-space: nowrap; color: var(--text-2); }
.ticker__track span::before { content: "✦"; margin-right: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- how ---------- */
.how, .studio, .shelf, .prices, .faq { padding: clamp(36px, 5vw, 68px) var(--gutter); }
.wishes { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1180px; }
.wish {
  position: relative; padding: 20px 20px 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(24,18,41,.9), rgba(14,11,24,.9)); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.wish::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.wish__n {
  font: 900 44px/.9 var(--f-display); font-style: italic; letter-spacing: -.04em; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
}
.wish p { color: var(--text-2); margin: 0 0 14px; font-size: 15px; }
.wish__t { margin-top: auto; font: 600 12px var(--f-mono); color: var(--gold); letter-spacing: .08em; }

/* ---------- studio / console ---------- */
.console {
  max-width: 1240px; margin: 0 auto; border-radius: 24px; padding: 10px;
  background: linear-gradient(180deg, #1a1430, #0f0b1b);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(139,61,255,.55), 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.console__bar { display: flex; align-items: center; gap: 12px; padding: 4px 10px 10px; font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.console__bar #sessionNo { margin-left: auto; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; }
.console__knobs { display: flex; gap: 10px; margin-left: 18px; }
.console__knobs i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a416a, #1b1530); box-shadow: inset 0 0 0 1px #00000080; position: relative; }
.console__knobs i::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 6px; background: var(--lavender); transform: translateX(-50%); border-radius: 2px; }
.console__knobs i:nth-child(2) { transform: rotate(60deg); }
.console__knobs i:nth-child(3) { transform: rotate(-40deg); }
.console__knobs i:nth-child(4) { transform: rotate(120deg); }

.studio__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 10px; }
.desk {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(18px, 2.2vw, 28px); min-height: 440px; display: flex; flex-direction: column;
}
.desk__loading { color: var(--muted); font-family: var(--f-mono); margin: auto; }

.grooves { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.grooves button { height: 8px; border-radius: 3px; border: 0; padding: 0; background: var(--line); transition: background .25s, box-shadow .25s; }
.grooves button.on { background: var(--violet); }
.grooves button.now { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.grooves button:disabled { cursor: default; }

.step { flex: 1; display: flex; flex-direction: column; }
/* перехід між кроками (клас ставить app.js лише при зміні кроку): вперед — справа, назад — зліва */
.step--in-fwd { animation: step-in-fwd .26s cubic-bezier(.2,.8,.2,1) both; }
.step--in-back { animation: step-in-back .26s cubic-bezier(.2,.8,.2,1) both; }
@keyframes step-in-fwd { from { opacity: 0; transform: translateX(18px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-18px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.step__n { font: 600 12px var(--f-mono); color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.step__q { font: 900 clamp(22px, 2.4vw, 32px)/1.05 var(--f-display); font-style: italic; letter-spacing: -.025em; margin: 8px 0 6px; }
.step__q em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.step__hint { color: var(--muted); margin: 0 0 16px; font-size: 14px; max-width: 58ch; }

/* пади як на DJ-контролері */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.chip {
  position: relative; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 11px 12px 15px; border-radius: 11px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1f1835, #161127); color: var(--text); font-size: 15px; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 3px 0 #0a0812;
  transition: transform .1s, box-shadow .2s, border-color .2s;
}
.chip::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 2px;
  background: var(--line-2); transition: background .2s, box-shadow .2s;
}
.chip:nth-child(4n+1)::after { --pad: var(--blue); }
.chip:nth-child(4n+2)::after { --pad: var(--violet); }
.chip:nth-child(4n+3)::after { --pad: var(--magenta); }
.chip:nth-child(4n)::after { --pad: #3dd6ff; }
.chip:hover { border-color: var(--line-2); }
.chip:hover::after { background: var(--pad); }
.chip:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 0 #0a0812; }
.chip[aria-pressed="true"] { border-color: var(--violet); background: linear-gradient(180deg, #34205f, #221642); box-shadow: 0 0 24px -6px var(--violet), 0 3px 0 #0a0812; }
.chip[aria-pressed="true"]::after { background: var(--pad, var(--magenta)); box-shadow: 0 0 10px var(--pad, var(--magenta)); }
.chip__e { font-size: 20px; line-height: 1; }
.chip--custom { border-style: dashed; color: var(--text-2); background: transparent; box-shadow: none; }
.custom-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.field {
  flex: 1; min-width: 200px; background: var(--night-2); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--text); padding: 12px 14px; font: 400 16px var(--f-body);
}
.field:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,61,255,.25); }
textarea.field { min-height: 150px; resize: vertical; line-height: 1.55; width: 100%; }
.counter { font: 400 12px var(--f-mono); color: var(--muted); text-align: right; margin-top: 6px; }
.prompt-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-list li { font: 400 13px var(--f-mono); color: var(--text-2); background: rgba(139,61,255,.1); border: 1px solid rgba(139,61,255,.3); border-radius: 8px; padding: 6px 10px; }

.desk__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; flex-wrap: wrap; }
.back { background: none; border: 0; color: var(--muted); font: 500 14px var(--f-mono); padding: 8px 0; }
.back:hover { color: var(--text); }
.notice { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: 15px; background: rgba(244,189,79,.07); }
.notice a { color: var(--gold) !important; }
.notice--err { border-left-color: var(--magenta); background: rgba(200,75,255,.09); }

/* аркуш з текстом — як сувій джина */
.sheet-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sheet-tab { border: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 10px; font: 600 13px var(--f-mono); }
.sheet-tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.sheet-tab--add { border-style: dashed; color: var(--lavender); }
.sheet {
  background: var(--night-2); border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(18px, 3vw, 28px);
  box-shadow: inset 0 0 60px -30px rgba(139,61,255,.6);
}
.sheet__title {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font: 900 clamp(22px, 2.6vw, 30px)/1.15 var(--f-display); font-style: italic;
  padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.sheet__title:focus { outline: none; border-color: var(--violet); }
.sheet__body { width: 100%; border: 0; background: transparent; resize: vertical; min-height: 300px; font: 400 16px/1.75 var(--f-body); color: var(--text-2); }
.sheet__body:focus { outline: none; }
.sheet__foot { display: flex; justify-content: space-between; font: 400 12px var(--f-mono); color: var(--muted); margin-top: 8px; gap: 12px; flex-wrap: wrap; }

/* запис */
.recording { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 20px 0; }
.vu { display: flex; gap: 5px; align-items: flex-end; height: 70px; }
.vu i { width: 8px; border-radius: 3px; background: linear-gradient(to top, var(--blue), var(--violet) 55%, var(--magenta)); box-shadow: 0 0 10px rgba(139,61,255,.5); animation: vu 1s ease-in-out infinite alternate; }
@keyframes vu { from { height: 12%; } to { height: 100%; } }
.rec-status { font: 900 clamp(22px, 2.6vw, 30px)/1.15 var(--f-display); font-style: italic; max-width: 22ch; min-height: 2.3em; }
.rec-timer { font: 600 44px var(--f-mono); color: var(--text); text-shadow: 0 0 20px var(--magenta); }
.rec-timer::before { content: "● "; font-size: 22px; vertical-align: middle; color: var(--magenta); animation: blink 1.2s steps(2) infinite; }

/* результат */
.done__title { font: 900 clamp(26px, 3vw, 38px)/1.05 var(--f-display); font-style: italic; margin: 8px 0 22px; }
.player { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; margin-bottom: 12px; background: var(--night-2); }
.player__play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 0 22px -4px var(--violet); }
.player__play svg { width: 20px; height: 20px; fill: currentColor; }
.player__body { min-width: 0; }
.player__name { font: 600 14px var(--f-mono); color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.wave { display: flex; align-items: center; gap: 2px; height: 40px; cursor: pointer; }
.wave i { flex: 1; background: var(--line-2); border-radius: 2px; min-width: 2px; }
.wave i.on { background: var(--lavender); box-shadow: 0 0 6px var(--violet); }
.player__dl { color: var(--text); font: 600 13px var(--f-mono); text-decoration: none; border: 1px solid var(--line-2); padding: 10px 14px; border-radius: 12px; white-space: nowrap; }
.player__dl:hover { border-color: var(--lavender); }

/* дека: jog wheel + LCD */
.deck { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 16px; align-self: start; position: sticky; top: 70px; }
.jog {
  position: relative; width: min(100%, 220px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 8px #0c0916, 0 0 0 9px var(--line-2), 0 20px 50px -20px #000;
}
/* крутиться лише пластина, дисплей у центрі лишається читабельним */
.jog::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -3deg, var(--magenta) 0 6deg, transparent 6deg) center / 100% 100% no-repeat,
              repeating-conic-gradient(from 0deg, #1a1430 0 2deg, #120e22 2deg 4deg),
              radial-gradient(circle, transparent 60%, rgba(139,61,255,.25));
  background-blend-mode: screen;
  animation: spin 6s linear infinite; animation-play-state: paused;
}
.jog::after {
  content: ""; position: absolute; top: 3%; left: 50%; width: 4px; height: 12%; margin-left: -2px; border-radius: 2px;
  background: var(--magenta); box-shadow: 0 0 10px var(--magenta);
}
.jog.spinning::before { animation-play-state: running; }
.jog.spinning::after { animation: none; }
.jog.fast::before { animation-duration: 1.4s; }
.jog__ring {
  position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(var(--blue), var(--violet), var(--magenta), var(--blue));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 10px var(--violet));
  opacity: .5; transition: opacity .3s;
}
.jog.spinning .jog__ring { opacity: 1; }
.vinyl__label {
  position: absolute; inset: 22%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, #2a1e4d, #120d22); border: 1px solid var(--line-2); padding: 10%; gap: 2px;
}
.vinyl__label img { width: 34%; border-radius: 50%; margin-bottom: 4px; }
.vinyl__side { font: 600 9px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vinyl__name { font: 800 clamp(12px, 1.3vw, 16px)/1.1 var(--f-display); font-style: italic; max-width: 100%; overflow-wrap: anywhere; }
.vinyl__meta { font: 400 9px var(--f-mono); color: var(--muted); letter-spacing: .08em; }

.lcd {
  width: 100%; border-radius: 12px; padding: 12px 14px; background: #0a0d1c;
  border: 1px solid #1d2647; box-shadow: inset 0 0 30px rgba(61,123,255,.12);
  font-family: var(--f-mono);
}
.lcd__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .16em; color: #8fb2ff; margin-bottom: 6px; }
.lcd__blink { color: #3dff9a; animation: blink 1.4s steps(2) infinite; }
.credits { margin: 0; font-size: 14px; }
.credits div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #26305a; }
.credits div:last-child { border-bottom: 0; }
.credits dt { color: #9db1e8; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding-top: 3px; }
.credits dd { margin: 0; color: #f0f5ff; overflow-wrap: anywhere; text-shadow: 0 0 6px rgba(61,123,255,.35); }
.credits dd.empty { color: #66769f; text-shadow: none; }
/* назва треку — першим рядком, крупніше */
.credits .credits__title dd { font: 800 16px/1.2 var(--f-display); font-style: italic; color: #fff; }

/* ---------- shelf ---------- */
.shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.disc-card {
  border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 220px;
  background: linear-gradient(160deg, rgba(61,123,255,.14), rgba(200,75,255,.1)), var(--panel); border: 1px solid var(--line);
}
.disc-card__no { font: 600 11px var(--f-mono); color: var(--gold); letter-spacing: .12em; }
.disc-card__to { font: 900 24px/1.05 var(--f-display); font-style: italic; }
.disc-card__meta { font-size: 14px; color: var(--text-2); }
.disc-card__date { font: 400 12px var(--f-mono); color: var(--muted); margin-top: auto; }
.disc-card audio { width: 100%; height: 36px; color-scheme: dark; }

/* ---------- prices: лампи ---------- */
.lamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 960px; margin: 0 auto; align-items: end; }
.lamp {
  position: relative; border-radius: 20px; padding: 22px 20px 18px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.lamp:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px var(--violet); }
.lamp--hit { border-color: transparent; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; padding-block: 30px 22px; box-shadow: 0 30px 80px -30px var(--violet); }
.lamp__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1b1200; font: 700 12px var(--f-mono); letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.lamp__icon { font-size: 30px; filter: drop-shadow(0 0 16px rgba(244,189,79,.55)); margin-bottom: 2px; }
.lamp__count { font: 900 clamp(46px, 4.6vw, 64px)/.9 var(--f-display); font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lamp__word { font: 600 13px var(--f-mono); color: var(--text-2); margin: 2px 0 12px; text-transform: uppercase; letter-spacing: .12em; }
.lamp__bonus { font: 600 13px var(--f-mono); color: var(--gold); margin: -8px 0 16px; }
.lamp__price { font: 900 28px var(--f-display); }
.lamp__per { font: 400 12px var(--f-mono); color: var(--muted); margin: 2px 0 14px; }
.lamp .btn { width: 100%; }
.prices__note { margin: 22px auto 0; color: var(--text-2); text-align: center; max-width: 60ch; }
.prices__note a { color: var(--lavender); }

/* ---------- faq ---------- */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font: 600 clamp(15px, 1.3vw, 17px) var(--f-body); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--f-mono); color: var(--magenta); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.faq details a { color: var(--lavender); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px var(--gutter) 20px; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(139,61,255,.1)); }
.foot__word { font: 900 clamp(40px, 8vw, 120px)/.85 var(--f-display); font-style: italic; letter-spacing: -.05em; white-space: nowrap; margin: 0 0 14px -0.03em; color: var(--text); opacity: .95; }
.foot__word span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.foot__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a, .foot__links button { color: var(--text-2); }

/* ---------- modals / toast ---------- */
.modal { border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; width: min(460px, calc(100vw - 32px)); background: var(--panel); color: var(--text); box-shadow: 0 40px 100px -30px var(--violet); text-align: center; }
.modal .muted { margin-inline: auto; }
.modal .muted a { color: var(--lavender); }
.modal--wide { width: min(760px, calc(100vw - 32px)); max-height: 85vh; text-align: left; }
.modal::backdrop { background: rgba(5,4,10,.7); backdrop-filter: blur(6px); }
.modal__close { position: absolute; top: 12px; right: 12px; margin: 0; }
.modal__close button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 20px; }
.modal__genie { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; box-shadow: 0 0 0 2px var(--violet), 0 0 30px var(--violet); }
.tg-widget { min-height: 48px; margin: 16px 0 8px; display: flex; justify-content: center; }
.policy { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 200;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); padding: 14px 20px; border-radius: 14px; font-size: 15px;
  max-width: calc(100vw - 32px); box-shadow: 0 16px 40px -16px var(--violet);
  transition: transform .3s ease, opacity .3s ease, visibility .3s; opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .hero__art { width: min(40%, 170px); order: -1; justify-self: start; }
  .note { display: none; }
  .wishes { grid-template-columns: 1fr; max-width: 640px; gap: 10px; }
  .studio__grid { grid-template-columns: 1fr; }
  .deck { position: static; order: 1; flex-direction: row; padding: 14px; gap: 16px; }
  .jog { width: 92px; flex-shrink: 0; box-shadow: 0 0 0 5px #0c0916, 0 0 0 6px var(--line-2); }
  .jog__ring { inset: -6px; }
  .vinyl__label { inset: 14%; padding: 6%; }
  .vinyl__side, .vinyl__meta, .vinyl__name { display: none; }
  .vinyl__label img { width: 70%; margin: 0; }
  .lcd { padding: 8px 10px; }
  .credits { font-size: 11px; }
  .credits div { grid-template-columns: 62px 1fr; padding: 3px 0; }
  .credits dd.empty { display: none; }
  .credits div:has(dd.empty) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .console { padding: 8px; border-radius: 20px; }
  .console__knobs { display: none; }
  .desk { padding: 18px; min-height: 0; }
  .chips { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip { padding: 12px 10px 16px; font-size: 14px; }
  .deck { flex-direction: column; }
  .player { grid-template-columns: 48px 1fr; }
  .player__play { width: 48px; height: 48px; }
  .player__dl { grid-column: 1 / -1; text-align: center; }
  .me-name { display: none; }
  .rec-timer { font-size: 34px; }
  .hero__facts { gap: 22px; }
  .hero__facts li + li { padding-left: 22px; }
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- перемикач теми ---------- */
.top__right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; font-size: 18px; line-height: 1; padding: 0; transition: border-color .2s, transform .15s;
}
.theme-toggle:hover { border-color: var(--lavender); transform: translateY(-1px); }
.theme-toggle .ic-to-dark { display: none; }
[data-theme="light"] .theme-toggle .ic-to-dark { display: inline; }
[data-theme="light"] .theme-toggle .ic-to-light { display: none; }

/* ---------- світла тема ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --night: #f6f3fc;
  --night-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1ebfc;
  --line: #e6def5;
  --line-2: #cdbfe9;
  --text: #19132e;
  --text-2: #423963;
  --muted: #6c6390;
  --lavender: #6a3fd6;
  --gold: #a35f00;
}
[data-theme="light"] .sky i { opacity: .16; }
[data-theme="light"] .sky i:nth-child(2) { opacity: .13; }
[data-theme="light"] .sky i:nth-child(3) { opacity: .1; }
[data-theme="light"] .top { background: rgba(246,243,252,.8); border-bottom-color: rgba(139,61,255,.16); }
[data-theme="light"] .balance-pill { background: rgba(139,61,255,.08); border-color: rgba(139,61,255,.3); }
[data-theme="light"] #heroLabel { filter: drop-shadow(0 0 22px rgba(139,61,255,.3)); }
[data-theme="light"] .genie { filter: drop-shadow(0 0 40px rgba(139,61,255,.22)); }
[data-theme="light"] .smoke i { opacity: .6; }
[data-theme="light"] .note { text-shadow: 0 0 12px rgba(139,61,255,.25); }
[data-theme="light"] .ticker { background: rgba(255,255,255,.75); }
[data-theme="light"] .wish { background: linear-gradient(180deg, #ffffff, #faf7ff); box-shadow: 0 18px 40px -30px rgba(70,40,140,.35); }

[data-theme="light"] .console {
  background: linear-gradient(180deg, #ffffff, #f3eefc);
  box-shadow: 0 40px 100px -50px rgba(139,61,255,.45), 0 0 0 1px rgba(60,30,120,.04), inset 0 1px 0 #fff;
}
[data-theme="light"] .console__knobs i { background: radial-gradient(circle at 40% 35%, #ffffff, #d9cff0); box-shadow: inset 0 0 0 1px rgba(60,30,120,.25); }
[data-theme="light"] .desk, [data-theme="light"] .deck { background: #fcfaff; }

[data-theme="light"] .chip {
  background: linear-gradient(180deg, #ffffff, #f4effd);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #ddd2f2;
}
[data-theme="light"] .chip:active { box-shadow: inset 0 1px 0 #fff, 0 1px 0 #ddd2f2; }
[data-theme="light"] .chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #efe4ff, #e2d2ff);
  box-shadow: 0 0 22px -8px var(--violet), 0 3px 0 #cdb8f3;
}
[data-theme="light"] .field:focus { box-shadow: 0 0 0 3px rgba(139,61,255,.18); }
[data-theme="light"] .prompt-list li { background: rgba(139,61,255,.07); border-color: rgba(139,61,255,.25); }
[data-theme="light"] .notice { background: rgba(244,189,79,.14); }
[data-theme="light"] .notice--err { background: rgba(200,75,255,.08); }
[data-theme="light"] .sheet { box-shadow: inset 0 0 60px -36px rgba(139,61,255,.45); }
[data-theme="light"] .vu i { box-shadow: 0 0 8px rgba(139,61,255,.3); }
[data-theme="light"] .rec-timer { text-shadow: 0 0 16px rgba(200,75,255,.35); }
[data-theme="light"] .wave i.on { background: var(--violet); box-shadow: none; }

/* вініл і LCD лишаються «залізом» — темними, як справжня дека */
[data-theme="light"] .jog { box-shadow: 0 0 0 8px #1a1430, 0 0 0 9px var(--line-2), 0 20px 50px -20px rgba(40,20,90,.5); }
[data-theme="light"] .vinyl__name { color: #f1edff; }
[data-theme="light"] .vinyl__side { color: #f4bd4f; }
[data-theme="light"] .vinyl__meta { color: #8d84ab; }

[data-theme="light"] .disc-card { background: linear-gradient(160deg, rgba(61,123,255,.08), rgba(200,75,255,.07)), var(--panel); }
[data-theme="light"] .disc-card audio { color-scheme: light; }
[data-theme="light"] .lamp { box-shadow: 0 20px 50px -36px rgba(70,40,140,.35); }
[data-theme="light"] .lamp:hover { box-shadow: 0 30px 60px -30px rgba(139,61,255,.5); }
[data-theme="light"] .lamp--hit { box-shadow: 0 30px 80px -34px rgba(139,61,255,.6); }
[data-theme="light"] .lamp__tag { background: #f4bd4f; }
[data-theme="light"] .lamp__icon { filter: drop-shadow(0 0 12px rgba(244,189,79,.45)); }
[data-theme="light"] .foot { background: linear-gradient(180deg, transparent, rgba(139,61,255,.07)); }
[data-theme="light"] .modal { box-shadow: 0 40px 100px -40px rgba(139,61,255,.55); }
[data-theme="light"] .modal::backdrop { background: rgba(40,28,80,.35); }
[data-theme="light"] .modal__genie { box-shadow: 0 0 0 2px var(--violet), 0 0 22px rgba(139,61,255,.45); }
[data-theme="light"] .toast { box-shadow: 0 16px 40px -18px rgba(70,40,140,.45); }
@media (max-width: 980px) {
  [data-theme="light"] .jog { box-shadow: 0 0 0 5px #1a1430, 0 0 0 6px var(--line-2); }
}

/* ---------- приклади пісень ---------- */
.examples { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto; }
.ex {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
/* обкладинка — лише кольорове розмите тло; вуаль під колір теми тримає текст читабельним */
.ex::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background: var(--cover, none) center / cover no-repeat;
  filter: blur(36px) saturate(1.5); opacity: .9; transform: scale(1.1);
  transition: opacity .3s, transform .6s ease;
}
.ex::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ex-veil-top) 0%, var(--ex-veil) 55%, var(--ex-veil-bottom) 100%);
}
.ex--nocover::before {
  background: radial-gradient(circle at 20% 10%, rgba(61,123,255,.6), transparent 55%),
              radial-gradient(circle at 90% 90%, rgba(200,75,255,.6), transparent 55%);
}
:root { --ex-veil-top: rgba(18,14,32,.55); --ex-veil: rgba(18,14,32,.72); --ex-veil-bottom: rgba(18,14,32,.86); }
:root[data-theme="light"] { --ex-veil-top: rgba(255,255,255,.55); --ex-veil: rgba(255,255,255,.74); --ex-veil-bottom: rgba(255,255,255,.88); }
.ex:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 50px -32px var(--violet); }
.ex:hover::before { transform: scale(1.18); }
.ex.is-playing { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 26px 60px -30px var(--violet); }
.ex.is-playing::before { opacity: 1; }

.ex__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ex__thumb {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 14px; object-fit: cover; display: block;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12);
}
.ex__heading { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.exm__cover--empty, .ex__thumb.ex__thumb--empty {
  display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(61,123,255,.45), transparent 60%),
              radial-gradient(circle at 80% 90%, rgba(200,75,255,.45), transparent 60%), var(--panel-2);
}
.exm__cover--empty { font-size: 40px; }
.ex__play {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px var(--violet); transition: transform .15s;
}
.ex__play:hover { transform: scale(1.06); }
.ex__play svg { width: 18px; height: 18px; fill: currentColor; }
.ex__play.is-playing { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 8px 20px -8px var(--violet), 0 0 0 8px rgba(139,61,255,.22); } }
.ex__for { margin: 0; font: 600 11px var(--f-mono); color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.ex__title { margin: 0; font: 900 21px/1.1 var(--f-display); font-style: italic; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ex__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex__tags li { font-size: 12px; color: var(--text); border: 1px solid var(--line-2); background: var(--ex-veil-top); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.ex__player { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.ex-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.ex-progress::before { content: ""; position: absolute; inset: -8px 0; }
.ex-progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; }
.ex-time { font-size: 11px; color: var(--muted); min-width: 34px; text-align: right; white-space: nowrap; }
.ex__how {
  align-self: flex-start; background: none; border: 0; padding: 0;
  font: 600 14px var(--f-body); color: var(--lavender);
}
.ex__how:hover { color: var(--text); }

/* модалка «Як створено» */
.ex-modal { width: min(640px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; padding: 30px; }
.exm__head { display: flex; align-items: center; gap: 18px; padding-right: 40px; }
.exm__cover { width: 96px; height: 96px; flex-shrink: 0; border-radius: 16px; object-fit: cover; font-size: 40px; }
.exm__titles .kicker { margin-bottom: 6px; }
.exm__title { margin: 0 0 4px; font: 900 clamp(24px, 3vw, 34px)/1.05 var(--f-display); font-style: italic; letter-spacing: -.02em; }
.exm__for { margin: 0; color: var(--text-2); font-size: 15px; }
.exm__player { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--night-2); }
.exm__player .player__play { width: 44px; height: 44px; flex-shrink: 0; }
.exm__player .player__play svg { width: 16px; height: 16px; }
.exm__pbody { flex: 1; min-width: 0; }
.exm__pbody .ex__player { margin: 0; padding: 0; }
.exm__h { margin: 22px 0 10px; font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.exm__criteria { margin: 0; }
.exm__criteria div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.exm__criteria dt { font: 400 11px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.exm__criteria dd { margin: 0; font-size: 15px; }
.exm__story { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.exm__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.exm__foot .muted { margin: 0; }
@media (max-width: 760px) {
  .ex-modal { padding: 22px 18px; }
  .exm__head { gap: 14px; }
  .exm__cover { width: 72px; height: 72px; }
  .exm__foot .btn { width: 100%; }
}

/* ---------- міні-плеєр ---------- */
.np {
  position: fixed; left: 50%; bottom: 16px; z-index: 120; transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px));
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto minmax(0, 1.4fr) auto; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; border-radius: 18px;
  background: rgba(18,14,32,.86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(139,61,255,.12);
  animation: np-in .3s ease both;
}
[data-theme="light"] .np { background: rgba(255,255,255,.88); box-shadow: 0 20px 50px -22px rgba(70,40,140,.45); }
@keyframes np-in { from { opacity: 0; transform: translate(-50%, 20px); } }
.np[hidden] { display: none !important; }
.np__art {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 22px;
  background: var(--panel-2);
}
.np__art img { width: 100%; height: 100%; object-fit: cover; }
.np__info { display: flex; flex-direction: column; min-width: 0; }
.np__title { font: 800 15px/1.2 var(--f-display); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np__for { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np__play {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px -8px var(--violet);
}
.np__play svg { width: 16px; height: 16px; fill: currentColor; }
.np__seek { display: flex; align-items: center; gap: 10px; min-width: 0; }
.np__t { font-size: 11px; color: var(--muted); min-width: 32px; text-align: center; }
.np__range {
  --p: 0%; flex: 1; min-width: 0; height: 18px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.np__range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--violet) var(--p), var(--line-2) var(--p));
}
.np__range::-moz-range-track { height: 5px; border-radius: 3px; background: var(--line-2); }
.np__range::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--violet); }
.np__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4.5px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 3px var(--violet), 0 2px 6px rgba(0,0,0,.4);
}
.np__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px var(--violet); }
.np__close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.np__close:hover { border-color: var(--lavender); color: var(--text); }
body.np-on { padding-bottom: 96px; }
body.np-on .toast { bottom: 104px; }
@media (max-width: 620px) {
  .np { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px 12px; bottom: 10px; }
  .np__art { width: 44px; height: 44px; }
  .np__seek { grid-column: 1 / -1; grid-row: 2; }
  body.np-on { padding-bottom: 140px; }
  body.np-on .toast { bottom: 150px; }
}

/* посилання на адмінку в шапці (лише для ролі admin) */
.admin-link { white-space: nowrap; }
@media (max-width: 560px) {
  .admin-link { font-size: 0; padding: 10px 12px; }
  .admin-link::before { content: "⚙︎"; font-size: 16px; }
}
.dev-login__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* вхід через Google / Facebook */
.oauth { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 8px; }
.oauth__or { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.oauth__or::before, .oauth__or::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.oauth__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; height: 46px;
  border-radius: 999px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font: 600 15px var(--f-body); text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.oauth__btn:hover { box-shadow: 0 2px 12px rgba(0,0,0,.25); transform: translateY(-1px); }
.oauth__btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.oauth__btn[hidden] { display: none; }
.oauth__note { max-width: 320px; margin: 2px auto 0; text-align: center; }
.oauth__privacy { margin: 10px 0 0; text-align: center; }

/* ================= КАБІНЕТ ================= */
/* Після входу кабінет замінює перший екран; клас authed ставиться ще в <head>, щоб сторінка не стрибала. */
.cabinet { display: none; padding: clamp(16px, 2.4vw, 28px) var(--gutter) clamp(28px, 4vw, 48px); }
.authed .cabinet { display: block; }
.authed .hero { display: none; }

.cab {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: stretch;
  padding: clamp(18px, 2.4vw, 30px); border-radius: 22px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, rgba(61,123,255,.55), rgba(200,75,255,.55)) border-box;
  border: 1px solid transparent;
}
.cab::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 0% 0%, rgba(61,123,255,.18), transparent 70%),
              radial-gradient(500px 300px at 100% 100%, rgba(200,75,255,.16), transparent 70%);
}
.cab__main { min-width: 0; display: flex; flex-direction: column; }
.cab__greeting { font: 900 clamp(30px, 3.8vw, 50px)/.95 var(--f-display); font-style: italic; letter-spacing: -.035em; margin: 0 0 12px; overflow-wrap: anywhere; }
.cab__title {
  margin: 0 0 6px; font: 800 clamp(18px, 1.8vw, 22px)/1.2 var(--f-display); letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; max-width: 100%;
}
.cab__text { margin: 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.5; max-width: 62ch; }
.cab__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.cab__hint { margin: 12px 0 0; font-size: 13px; color: var(--gold); }
.cab__hint .linkish { color: inherit; font-weight: 600; }

.cab-balance {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  padding: 16px 16px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--line-2);
  transition: box-shadow .4s, border-color .4s;
}
.cab-balance__lamp { font-size: 28px; filter: drop-shadow(0 0 16px rgba(244,189,79,.55)); }
.cab-balance__label { font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.cab-balance__n {
  font: 900 clamp(48px, 4.6vw, 64px)/.95 var(--f-display); font-style: italic; padding-right: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cab-balance__word { font: 600 12px var(--f-mono); color: var(--text-2); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.cab-balance__stat { margin-top: 8px; font-size: 12px; color: var(--muted); min-height: 1em; }
.cab-balance.is-empty { border-color: rgba(244,189,79,.55); box-shadow: 0 0 0 4px rgba(244,189,79,.08); }
.cab-balance.is-empty .cab-balance__n { background: none; color: var(--muted); }
.cab-balance.is-up { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(244,189,79,.22), 0 0 60px -10px var(--gold); }

.cab-offer { max-width: 1240px; margin: 16px auto 0; }
.lamps--compact { gap: 16px; align-items: stretch; }
.lamps--compact .lamp { padding: 24px 20px 20px; border-radius: 20px; }
.lamps--compact .lamp--hit { padding-block: 30px 22px; }
.lamps--compact .lamp__icon { font-size: 30px; margin-bottom: 2px; }
.lamps--compact .lamp__count { font-size: clamp(44px, 5vw, 64px); }
.lamps--compact .lamp__word { margin: 2px 0 12px; font-size: 13px; }
.lamps--compact .lamp__price { font-size: 28px; }
.lamps--compact .lamp__per { margin-bottom: 16px; }

.cab-songs { max-width: 1240px; margin: clamp(28px, 3.5vw, 44px) auto 0; }
.cab-songs .section-head { margin-bottom: 16px; }
.cab-songs .h2 { font-size: clamp(24px, 2.6vw, 34px); }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.songs__empty { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); }
.songs__empty a { color: var(--lavender); }

.song-new {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 18px;
  border-radius: 18px; border: 1.5px dashed var(--line-2); background: transparent;
  transition: border-color .2s, background .2s;
}
.song-new:hover { border-color: var(--violet); background: rgba(139,61,255,.05); }
.song-new__plus {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 400 24px/1 var(--f-body);
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px var(--violet); margin-bottom: 6px;
}
.song-new__title { margin: 0; font: 900 22px/1.1 var(--f-display); font-style: italic; }
.song-new__text { margin: 0 0 8px; color: var(--text-2); font-size: 14px; }

.song__tracks { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.song__track { margin: 0; padding: 0; gap: 10px; }
.ex__play--sm { width: 38px; height: 38px; }
.ex__play--sm svg { width: 15px; height: 15px; }
.song__v { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.song__dl {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; background: var(--ex-veil-top);
}
.song__dl:hover { border-color: var(--lavender); color: var(--text); }
.song__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.song__date { font-size: 11px; color: var(--muted); }

.exm__pbody .song__v { display: block; margin-bottom: 6px; }
.exm__h--row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.exm__h--row .linkish { font: 600 13px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--lavender); }
.song-lyrics {
  white-space: pre-wrap; font-size: 15px; line-height: 1.65; color: var(--text); padding: 18px 20px; border-radius: 14px;
  background: var(--night-2); border: 1px solid var(--line-2); max-height: 420px; overflow: auto;
}
.lyr-tag {
  display: inline-block; margin: 6px 0 2px; font: 600 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--lavender); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px;
}

/* шапка: ім'я — посилання на кабінет, баланс — кнопка поповнення */
.me-name { text-decoration: none; }
.me-name:hover { color: var(--text); }
button.balance-pill { color: var(--text); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
button.balance-pill:hover { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,61,255,.18); }
.balance-pill__plus { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 13px/1 var(--f-body); }
.balance-pill.is-empty { border-color: rgba(244,189,79,.6); }
.balance-pill.is-empty b { color: var(--text-2); }

/* пульт: нагадування про порожній баланс */
.desk__balance { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.desk__balance .linkish { color: var(--gold); }

/* вікно поповнення */
.buy-modal { width: min(860px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; text-align: center; padding: 26px 24px 20px; }
.buy-modal .kicker { justify-content: center; }
.buy-modal .kicker b { color: var(--gold); }
.buy-modal__title { margin-bottom: 10px; }
.buy-modal .muted { margin: 0 auto 8px; }
.buy-modal__keep { max-width: 56ch; margin: 14px auto 0; text-align: left; }
.buy-modal .lamps { margin-top: 20px; max-width: none; }
.buy-modal .prices__note { margin-top: 14px; }

[data-theme="light"] .cab { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(61,123,255,.45), rgba(200,75,255,.45)) border-box; }
[data-theme="light"] .cab-balance, [data-theme="light"] .song-lyrics { background: #f6f3fc; }

@media (max-width: 860px) {
  .cab { grid-template-columns: 1fr; }
  .cab-balance { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: 2px 10px; padding: 10px 14px; order: -1; }
  .cab-balance__lamp { font-size: 24px; }
  .cab-balance__label { display: none; }
  .cab-balance__n { font-size: 40px; }
  .cab-balance__word { margin: 0; align-self: center; }
  .cab-balance .btn { margin-left: auto; }
  .cab-balance__stat { flex-basis: 100%; margin-top: 2px; }
}
@media (max-width: 760px) {
  .buy-modal { padding: 24px 14px 16px; }
}
@media (max-width: 560px) {
  .cab__cta .btn { flex: 1 1 100%; }
  .songs { grid-template-columns: 1fr; }
  .desk__balance { text-align: left; }
}
.cab-balance__stat:empty { display: none; }

/* ================= ЕКСПРЕС-РЕЖИМ ================= */
/* вибір способу створення: дві картки */
.mode-pick { margin-bottom: 20px; }
.mode-pick__title { margin: 0 0 8px; font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mode-pick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card {
  position: relative; display: flex; text-align: left;
  padding: 12px 40px 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--night-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .15s, background .2s;
}
.mode-card:hover { border-color: var(--lavender); }
.mode-card:active { transform: translateY(1px); }
.mode-card[aria-checked="true"] {
  border-color: transparent;
  background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 10px 28px -14px var(--violet);
}
.mode-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mode-card__title { font: 800 17px/1.15 var(--f-display); font-style: italic; letter-spacing: -.01em; white-space: nowrap; }
.mode-card__desc { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.mode-card__check {
  position: absolute; top: 11px; right: 11px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: #fff; font: 700 13px/1 var(--f-body);
}
.mode-card[aria-checked="true"] .mode-card__check { border: 0; background: var(--grad); }
.mode-card[aria-checked="true"] .mode-card__check::before { content: "✓"; }
[data-theme="light"] .mode-card { background: #fff; }
[data-theme="light"] .mode-card[aria-checked="true"] { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
@media (max-width: 560px) {
  .mode-card { padding: 10px 30px 10px 11px; }
  .mode-card__title { font-size: 15px; }
  .mode-card__desc { font-size: 12px; }
  .mode-card__check { width: 18px; height: 18px; font-size: 11px; top: 9px; right: 9px; }
}

.mode-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px;
  background: var(--night-2); border: 1px solid var(--line-2); align-self: flex-start;
}
.mode-tab {
  border: 0; background: none; color: var(--text-2); font: 600 14px var(--f-body); padding: 8px 16px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px var(--violet); }
textarea.express__input { min-height: 220px; }
.express__note { color: var(--muted); }
.express-note { margin: 0 0 14px; font-size: 14px; }
.express-note b { color: var(--text); font-weight: 600; }
[data-theme="light"] .mode-tabs { background: #f1ecfb; }
@media (max-width: 560px) {
  .mode-tabs { width: 100%; }
  .mode-tab { flex: 1; padding-inline: 8px; }
}

/* ================= КОМПАКТНІ РОЗКЛАДКИ ================= */
.examples { padding: clamp(36px, 5vw, 68px) var(--gutter); }
.ex-grid { gap: 12px; }
.ex { padding: 16px; gap: 12px; border-radius: 18px; }

/* шапка: швидкі дії */
.top__cta { white-space: nowrap; gap: .3em; }
.top__nav a { white-space: nowrap; }
.nav-cab { display: none; }
.authed .nav-cab { display: inline; color: var(--text) !important; font-weight: 600; }
.cab-logout { display: none; }

@media (max-width: 980px) {
  /* меню — через гамбургер (див. «ГАМБУРГЕР-МЕНЮ» нижче) */

  /* «Як це працює»: рядки номер + текст */
  .wish { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 14px 16px; }
  .wish__n { grid-row: span 3; font-size: 36px; margin: 0; }
  .wish .h3 { font-size: 18px; margin: 0 0 4px; }
  .wish p { margin: 0 0 6px; font-size: 14px; }

  .hero__facts { gap: 20px; margin-top: 22px; }
  .hero__facts li + li { padding-left: 20px; }
  .hero__facts b { font-size: 20px; }
}

@media (max-width: 760px) {
  /* ціни: компактні рядки «кількість · ціна · кнопка» */
  .lamps, .lamps--compact { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 10px; align-items: stretch; }
  .lamp, .lamps--compact .lamp {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "count word btn" "count price btn" "count per btn";
    align-items: center; column-gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px;
  }
  .lamp--hit, .lamps--compact .lamp--hit { padding: 20px 16px 14px; order: -1; }
  .lamp:hover { transform: none; }
  .lamp__icon, .lamps--compact .lamp__icon { display: none; }
  .lamp__count, .lamps--compact .lamp__count { grid-area: count; font-size: 46px; min-width: 1ch; text-align: center; }
  .lamp__word, .lamps--compact .lamp__word { grid-area: word; margin: 0; font-size: 11px; }
  .lamp__price, .lamps--compact .lamp__price { grid-area: price; font-size: 22px; line-height: 1.1; }
  .lamp__per, .lamps--compact .lamp__per { grid-area: per; margin: 0; font-size: 11px; }
  .lamp__bonus { grid-column: 2 / 4; margin: 6px 0 0; font-size: 12px; }
  .lamp .btn { grid-area: btn; width: auto; padding: 10px 14px; font-size: 14px; }
  .lamp__tag { left: 16px; transform: none; top: -10px; font-size: 10px; padding: 4px 9px; }
}

@media (max-width: 620px) {
  /* приклади: горизонтальна карусель замість довгого стовпчика */
  .ex-grid {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .ex-grid::-webkit-scrollbar { display: none; }
  .ex-grid .ex { scroll-snap-align: start; }
  .ex:hover { transform: none; }
}

@media (max-width: 560px) {
  .how, .studio, .shelf, .prices, .faq, .examples { padding-block: 32px; }
  .section-head { margin-bottom: 18px; }
  .h2 { font-size: 28px; }
  .hero { padding-top: 14px; }
  .hero__title { font-size: 40px; margin-bottom: 12px; }
  .hero__lead { font-size: 15px; margin-bottom: 18px; }
  .lamp-btn { padding: 12px 20px; font-size: 16px; }
  .top__cta { padding: 7px 10px; }
  .top .theme-toggle { width: 34px; height: 34px; }
  .top__me [data-action="logout"] { display: none; }
  .cab-logout { display: inline; font-size: 12px; color: var(--muted); }
  .desk { padding: 14px; }
  .faq details { padding: 0 14px; }
  .faq summary { font-size: 15px; padding: 12px 0; }
  .foot__word { font-size: 44px; }
  .hero__facts { flex-wrap: nowrap; gap: 14px; }
  .hero__facts li + li { padding-left: 14px; }
  .hero__facts span { font-size: 11px; }
  /* у кабінеті вже є головна кнопка — на телефоні не дублюємо її карткою */
  .song-new { display: none; }
  .cab-songs .muted { font-size: 14px; }
}
@media (max-width: 1100px) { .top__cta .cta-long, .balance-pill__word { display: none; } }
@media (max-width: 760px) {
  .balance-pill { padding: 7px 9px; gap: 6px; }
  .top .admin-link { padding: 7px 9px; }
}
@media (max-width: 340px) { .top .theme-toggle { display: none; } }
@media (max-width: 1200px) {
  .top .me-name, .admin-link__t { display: none; }
  .top__nav { gap: 16px; }
}

/* ================= СПОВІЩЕННЯ ================= */
.notices {
  position: fixed; top: 72px; right: 16px; z-index: 180; display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.ntf {
  pointer-events: auto; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 14px 12px 14px 14px; border-radius: 16px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-left: 4px solid var(--lavender);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.15);
  animation: ntf-in .25s ease both;
}
.ntf--out { animation: ntf-out .25s ease both; }
@keyframes ntf-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes ntf-out { to { opacity: 0; transform: translateX(16px); } }
.ntf__icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 700 16px/1 var(--f-body); color: #fff; background: var(--lavender);
}
.ntf--success { border-left-color: #2fbf71; } .ntf--success .ntf__icon { background: #2fbf71; }
.ntf--error { border-left-color: #e5484d; }   .ntf--error .ntf__icon { background: #e5484d; }
.ntf--warn { border-left-color: var(--gold); } .ntf--warn .ntf__icon { background: var(--gold); color: #1b1200; }
.ntf--pending { border-left-color: var(--violet); } .ntf--pending .ntf__icon { background: transparent; }
.ntf__spin {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--violet);
  animation: spin .8s linear infinite;
}
.ntf__body { min-width: 0; padding-top: 5px; }
.ntf__title { display: block; font: 700 15px/1.25 var(--f-body); }
.ntf__text { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.ntf__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ntf__close {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.ntf__close:hover { background: var(--night-2); color: var(--text); }
[data-theme="light"] .ntf { background: #fff; box-shadow: 0 18px 50px -20px rgba(70,40,140,.35); }
@media (max-width: 980px) { .notices { top: 66px; } }
@media (max-width: 560px) { .notices { top: auto; bottom: 16px; right: 16px; } body.np-on .notices { bottom: 96px; } }

/* ================= РОЗДІЛЕННЯ БЛОКІВ ================= */
/* Чергуємо тло: «Як це працює», «Створення пісні» і «Питання» — на власній смузі з межами й акцентною лінією,
   між ними — основне тло. Так секції не зливаються в одне полотно. */
:root {
  --band: linear-gradient(180deg, rgba(139,61,255,.08) 0%, rgba(61,123,255,.035) 100%), #0c0a17;
  --band-line: rgba(139,61,255,.24);
}
:root[data-theme="light"] {
  --band: linear-gradient(180deg, #e9defb 0%, #f1eafd 100%);
  --band-line: rgba(139,61,255,.3);
}
.how, .studio, .faq {
  position: relative; background: var(--band);
  border-block: 1px solid var(--band-line);
}
.how::before, .studio::before, .faq::before {
  content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  width: min(460px, 70%); height: 2px; border-radius: 2px; background: var(--grad); opacity: .85;
}
/* кабінет відділений від решти сторінки лінією */
.authed .cabinet { border-bottom: 1px solid var(--band-line); }
/* при переході з меню заголовок секції не ховається під липкою шапкою */
main > section { scroll-margin-top: 64px; }
@media (max-width: 980px) { main > section { scroll-margin-top: 60px; } }

/* ================= СЛАЙДЕР ПРИКЛАДІВ (телефон) ================= */
.ex-slider { display: none; }
@media (max-width: 620px) {
  /* затухання справа підказує, що далі є ще картки; на останній — прибираємо */
  .ex-grid {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  .ex-grid.at-end { -webkit-mask-image: none; mask-image: none; }
  .ex-slider { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
  .ex-slider[hidden] { display: none; }
  .ex-slider__arrow {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel);
    color: var(--text); font: 400 24px/1 var(--f-body); display: grid; place-items: center; padding: 0 0 3px;
    transition: opacity .2s, border-color .2s;
  }
  .ex-slider__arrow:not(:disabled):active { border-color: var(--violet); }
  .ex-slider__arrow:disabled { opacity: .35; }
  .ex-slider__dots { display: flex; align-items: center; }
  /* видима крапка маленька, а зона натискання — 20×32 */
  .ex-slider__dot { width: 20px; height: 32px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
  .ex-slider__dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-2);
    transition: width .2s, background .2s;
  }
  .ex-slider__dot[aria-current="true"]::before { width: 20px; background: var(--grad); }
  .ex-slider__count { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); }
}

/* ================= SCRAPBOOK-КОЛАЖ (перший екран) ================= */
/* Мудборд: велике фото в центрі, навколо менші — різного розміру й нахилу, з накладанням.
   Тонкий кант (3%) замість рамки полароїда; підпис — паперова бирка, наклеєна навскіс на нижній край.
   Скотч — або смужка по центру, або дві по кутах. Позиція/ширина/нахил — змінні --x/--y/--w/--r для кожного місця. */
.hero__art.collage {
  display: block; width: min(100%, 470px); aspect-ratio: 1 / 1.22; justify-self: center; margin-top: 6px;
}
.polaroid {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1);
  margin: 0; padding: 3%; background: #fdfbf6; border-radius: 4px;
  transform: rotate(var(--r));
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.6), 0 2px 5px rgba(0,0,0,.22);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  animation: polaroid-in .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 110ms);
}
@keyframes polaroid-in { from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--r) * 2.2)) scale(.96); } }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
/* бирка-підпис */
.polaroid figcaption {
  position: absolute; left: 7%; bottom: -12px; max-width: 88%; z-index: 2;
  padding: 3px 10px 4px; background: #fffaf0; color: #2b2240; border-radius: 2px;
  font: 700 clamp(13px, 1.35vw, 19px)/1 "Caveat", "Segoe Print", cursive; letter-spacing: .01em;
  transform: rotate(var(--lr, -3deg)); box-shadow: 0 3px 8px -3px rgba(0,0,0,.35);
}
/* скотч: смужка по центру (типово) */
.polaroid::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 36%; height: 18px; z-index: 3;
  transform: translateX(-50%) rotate(var(--tr, -4deg));
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.3) 0 5px, transparent 5px 10px), var(--tape, rgba(200,75,255,.55));
  box-shadow: 0 1px 2px rgba(0,0,0,.18); opacity: .92;
}
/* скотч: дві смужки по кутах */
.polaroid--corners::before, .polaroid--corners::after {
  content: ""; position: absolute; top: -4px; width: 28%; height: 16px; z-index: 3;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.3) 0 5px, transparent 5px 10px), var(--tape, rgba(200,75,255,.55));
  box-shadow: 0 1px 2px rgba(0,0,0,.18); opacity: .92;
}
.polaroid--corners::before { left: -7%; transform: rotate(-38deg); }
.polaroid--corners::after { right: -7%; left: auto; transform: rotate(38deg); }
@media (hover: hover) {
  .polaroid:hover { transform: rotate(0deg) scale(1.06); z-index: 10; box-shadow: 0 28px 48px -18px rgba(0,0,0,.7), 0 4px 10px rgba(0,0,0,.25); }
}
/* місця: 5-те — велике по центру і найвище; 4-те визирає знизу з-під нього */
.polaroid--1 { --i: 0; --x: 0%;  --y: 3%;  --w: 36%; --r: -7deg; --z: 2; --tape: rgba(139,61,255,.55); --lr: -4deg; }
.polaroid--2 { --i: 1; --x: 63%; --y: 0%;  --w: 36%; --r: 6deg;  --z: 1; --tape: rgba(255,120,170,.6);  --lr: 3deg; }
.polaroid--3 { --i: 2; --x: 0%;  --y: 48%; --w: 34%; --r: 5deg;  --z: 3; --tape: rgba(61,200,170,.6);   --lr: -2deg; }
.polaroid--4 { --i: 3; --x: 36%; --y: 64%; --w: 32%; --r: 3deg;  --z: 4; --tape: rgba(61,123,255,.55);  --lr: 2deg; --tr: 5deg; }
.polaroid--5 { --i: 4; --x: 25%; --y: 17%; --w: 48%; --r: -2deg; --z: 6; --tape: rgba(244,189,79,.7);   --lr: -3deg; }
.polaroid--6 { --i: 5; --x: 65%; --y: 45%; --w: 35%; --r: -6deg; --z: 5; --tape: rgba(200,75,255,.55);  --lr: 3deg; --tr: -6deg; }
/* у правих фото бирка праворуч, щоб її не закривало центральне фото */
.polaroid--2 figcaption, .polaroid--6 figcaption { left: auto; right: 7%; }
/* декор: ноти навколо колажу (різні розмір, колір, темп «плавання») і наліпка-серце */
.collage__notes { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.cn {
  position: absolute; font: 900 var(--s, 28px) / 1 var(--f-display); font-style: normal;
  left: var(--x, 0); top: var(--y, 0); color: var(--c, var(--lavender)); opacity: .95;
  /* світіння + тонка тінь: нота читається і на темному тлі, і поверх білих рамок фото */
  text-shadow: 0 0 14px currentColor, 0 1px 3px rgba(0,0,0,.45);
  animation: note-drift var(--d, 6s) ease-in-out infinite; animation-delay: var(--dl, 0s);
}
@keyframes note-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--rot, -8deg)); }
  50% { transform: translate(4px, -14px) rotate(calc(var(--rot, -8deg) * -1)); }
}
/* позиції, розмір, колір і темп задає app.js (scatterNotes) — щоразу випадково, з відстанню між нотами */
[data-theme="light"] .cn { text-shadow: 0 0 10px rgba(139,61,255,.3), 0 1px 2px rgba(40,20,80,.35); }
.cn[hidden] { display: none; }
.sticker {
  position: absolute; right: 4%; bottom: 2%; z-index: 7; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font: 700 26px/1 var(--f-body); color: #fff; background: var(--grad);
  transform: rotate(12deg); box-shadow: 0 8px 18px -6px var(--violet), inset 0 0 0 3px rgba(255,255,255,.55);
}
[data-theme="light"] .polaroid { box-shadow: 0 16px 30px -16px rgba(60,30,120,.45), 0 2px 6px rgba(60,30,120,.18); }

/* телефон і планшет: той самий мудборд під заголовком, трохи менші бирки й скотч */
@media (max-width: 980px) {
  .hero__art.collage { order: 1; width: min(100%, 430px); aspect-ratio: 1 / 1.22; justify-self: center; margin: 22px 0 8px; }
  .polaroid figcaption { font-size: clamp(12px, 3.3vw, 16px); padding: 2px 7px 3px; bottom: -9px; }
  .polaroid::before { height: 13px; top: -6px; }
  .polaroid--corners::before, .polaroid--corners::after { height: 12px; top: -3px; }
  .sticker { display: none; }
  /* на телефоні кількість і розмір нот зменшує app.js */
}

/* права панель пульта без диска: лише «Параметри пісні» на всю ширину */
.deck { padding: 14px; }
.deck .lcd { padding: 14px 16px; }
@media (max-width: 980px) { .deck { flex-direction: column; padding: 10px; } }

/* «Почати спочатку» в панелі параметрів */
.lcd__reset {
  display: block; width: 100%; margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px dashed #2f3b6b; background: transparent; color: #9db1e8;
  font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
}
.lcd__reset:hover { color: #fff; border-color: #8fb2ff; background: rgba(61,123,255,.1); }
.lcd__reset[hidden] { display: none; }

/* крок «Жанр»: лічильник вибраних для міксу */
.multi-note { margin: 12px 0 0; font: 600 12px var(--f-mono); color: var(--lavender); letter-spacing: .04em; }

/* ================= ШАПКА: поточний розділ, прогрес, стан прокрутки ================= */
.top { transition: background .25s, box-shadow .25s, border-color .25s; }
/* біля самого верху — легка, після прокрутки — щільніша, з тінню */
.top:not(.top--scrolled) { background: rgba(7,6,13,.45); border-bottom-color: transparent; }
.top--scrolled { background: rgba(10,8,20,.86); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
[data-theme="light"] .top:not(.top--scrolled) { background: rgba(246,243,252,.55); border-bottom-color: transparent; }
[data-theme="light"] .top--scrolled { background: rgba(250,248,255,.92); box-shadow: 0 10px 30px -20px rgba(70,40,140,.35); }
/* пункт меню поточного розділу */
.top__nav a { position: relative; padding: 6px 0; transition: color .2s; }
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .25s ease;
}
.top__nav a[aria-current="true"] { color: var(--text); font-weight: 600; }
.top__nav a[aria-current="true"]::after { transform: scaleX(1); }
/* «Створити пісню» в шапці не потрібна, коли користувач уже на пульті (місце лишається — нічого не зсувається) */
.top__cta { transition: opacity .2s, visibility .2s; }
.top--in-studio .top__cta { opacity: 0; visibility: hidden; }
/* ================= ГАМБУРГЕР-МЕНЮ (телефон і планшет) ================= */
.burger { display: none; }
@media (max-width: 980px) {
  .burger {
    display: grid; place-content: center; gap: 4px; width: 38px; height: 38px; padding: 0; flex-shrink: 0;
    border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
  .top--menu-open .burger { border-color: var(--violet); }
  .top--menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .top--menu-open .burger span:nth-child(2) { opacity: 0; }
  .top--menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* панель меню випадає під шапкою */
  .top__nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    display: flex; flex-direction: column; gap: 2px; padding: 10px var(--gutter) 16px;
    background: var(--panel); border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px -24px rgba(0,0,0,.8);
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .top--menu-open .top__nav { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .top__nav a {
    display: flex; align-items: center; padding: 13px 14px; border-radius: 12px; font-size: 16px; color: var(--text-2);
  }
  .top__nav a::after { display: none; }
  html:not(.authed) .top__nav .nav-cab { display: none; } /* «Кабінет» — лише після входу */
  .top__nav a:hover { background: var(--night-2); color: var(--text); }
  .top__nav a[aria-current="true"] { color: var(--text); background: var(--night-2); box-shadow: inset 3px 0 0 var(--violet); }
  .top__nav a[aria-current="true"]::before { content: "●"; margin-right: 10px; font-size: 9px; color: var(--magenta); }
  [data-theme="light"] .top__nav { background: #fff; box-shadow: 0 24px 40px -26px rgba(70,40,140,.35); }
  [data-theme="light"] .top__nav a:hover, [data-theme="light"] .top__nav a[aria-current="true"] { background: #f3eefd; }
}
@media (max-width: 370px) { .hero__facts { gap: 10px; } .hero__facts li + li { padding-left: 10px; } .hero__facts span { font-size: 10px; } }
