/* Chillwave site — the player's Arc (warm white) and Arc Black themes.
   Tokens follow ios/Player/App/UI/Appearance.swift: Arc #F2F0ED / ink #121213 / mark #E0283E,
   Arc Black #060607 / ink #F3F3F3 / mark #FF3D52. Helvetica Neue like the app. No external fonts, scripts or trackers. */

:root,
:root[data-theme="arc"] {
  color-scheme: light;
  --bg: #f2f0ed;
  --ink: #121213;
  --muted: #615e5b;
  --soft: rgba(18, 18, 19, 0.06);
  --line: rgba(18, 18, 19, 0.12);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 50px rgba(30, 20, 25, 0.14);
  --mark: #e0283e;
  --btn: #121213;
  --btn-ink: #f2f0ed;
  --phone: #f2f0ed;
  --wash: radial-gradient(70% 60% at 50% 30%, rgba(255, 150, 200, 0.55), transparent 70%),
          radial-gradient(60% 50% at 30% 70%, rgba(150, 140, 255, 0.35), transparent 70%), #f4ece9;
  --script: linear-gradient(90deg, #c8186a, #c2410c);
  --orb-shadow: 0 12px 30px rgba(60, 30, 50, 0.18);
  --eclipse: 0.55;
}

:root[data-theme="arcBlack"] {
  color-scheme: dark;
  --bg: #060607;
  --ink: #f3f3f3;
  --muted: #9a979d;
  --soft: rgba(243, 243, 243, 0.07);
  --line: rgba(243, 243, 243, 0.12);
  --glass: rgba(30, 30, 34, 0.62);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  --mark: #ff3d52;
  --btn: #f3f3f3;
  --btn-ink: #060607;
  --phone: #060607;
  --wash: radial-gradient(70% 60% at 50% 30%, rgba(214, 70, 160, 0.55), transparent 70%),
          radial-gradient(60% 50% at 30% 75%, rgba(80, 70, 200, 0.5), transparent 70%), #0b0a12;
  --script: linear-gradient(90deg, #ff5fa8, #ff9a4a);
  --orb-shadow: 0 0 34px rgba(255, 90, 170, 0.28);
  --eclipse: 0.9;
}

/* Без скрипта — по системной теме. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #060607; --ink: #f3f3f3; --muted: #9a979d; --soft: rgba(243, 243, 243, 0.07);
    --line: rgba(243, 243, 243, 0.12); --glass: rgba(30, 30, 34, 0.62); --glass-line: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.6); --mark: #ff3d52; --btn: #f3f3f3; --btn-ink: #060607; --phone: #060607;
    --script: linear-gradient(90deg, #ff5fa8, #ff9a4a); --orb-shadow: 0 0 34px rgba(255, 90, 170, 0.28); --eclipse: 0.9;
  }
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px; /* место под панель вкладок */
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }

/* Заголовок как в «Дуге»: плотный гротеск и счётчик в квадратных скобках сверху справа. */
.arc-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.arc-title sup {
  font-size: 0.28em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: 1.6em;
  margin-left: 0.15em;
}

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.brand sup { font-weight: 400; font-size: 0.65rem; color: var(--muted); margin-left: 2px; }

/* Первый экран — по центру, вокруг в глубину летят обложки (вдохновение пользователя, 2026-11-15) */
.hero {
  position: relative; display: grid; place-items: center; min-height: min(92vh, 900px);
  width: 100vw; margin-left: calc(50% - 50vw); /* на всю ширину окна, за пределы колонки */
  padding: 40px 16px 56px; text-align: center; overflow: hidden;
}
.hero::before { /* тихая подложка под текстом — контраст поверх обложек */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 50% 46% at 50% 50%, var(--bg) 42%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 56rem; }
.appicon { display: block; width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 22%; box-shadow: 0 14px 40px rgba(255, 79, 154, 0.35); }
.hero-title { font-size: clamp(3.3rem, 13.5vw, 8.6rem); letter-spacing: -0.06em; line-height: 0.9; }
:root[data-theme="arcBlack"] .hero-title { text-shadow: 0 0 60px rgba(255, 255, 255, 0.22); }
.script {
  display: block; width: max-content; margin: 0 auto -0.08em; padding: 0 0.1em 0.06em;
  font-family: "Bradley Hand", "Noteworthy", "Segoe Print", "Segoe Script", cursive;
  font-size: 0.36em; font-weight: 700; letter-spacing: 0; line-height: 1.1; text-shadow: none;
  transform: rotate(-5deg) translateX(-0.9em);
  background: var(--script); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 36rem; margin: 26px auto 0; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.orbs { position: absolute; inset: 0; z-index: 0; perspective: 700px; perspective-origin: 50% 50%; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: var(--orb-shadow); animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translate(-50%, -50%) translateZ(-520px) rotate(0deg); opacity: 0; }
  26% { opacity: 0; }
  40% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate(-50%, -50%) translateZ(230px) rotate(50deg); opacity: 0; }
}

/* Финал — светящееся кольцо-«затмение» вокруг значка */
.finale {
  position: relative; display: grid; place-items: center; text-align: center; padding: 150px 16px 120px; overflow: hidden;
  width: 100vw; margin: 40px 0 0 calc(50% - 50vw);
}
.finale > * { position: relative; z-index: 1; }
.finale h2 { font-size: clamp(2.8rem, 10vw, 6rem); letter-spacing: -0.06em; line-height: 0.92; margin: 0 0 30px; }
.eclipse {
  position: absolute; left: 50%; top: 50%; z-index: 0; width: min(640px, 130vw); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, #ff4f9a, #ff8a3d, #ffc233, #3db8ff, #9b6bff, #ff4f9a);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 58%, #000 62%, transparent 70%);
  mask: radial-gradient(circle, transparent 55%, #000 58%, #000 62%, transparent 70%);
  filter: blur(16px); opacity: var(--eclipse); animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
}
.pill.solid { background: var(--btn); color: var(--btn-ink); }
.pill.ghost { background: var(--soft); color: var(--ink); }
.pill[aria-disabled="true"] { cursor: default; }

/* Разделы */
.section { padding: 72px 0 8px; }
.section h2.arc-title { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.section .intro { max-width: 40rem; color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }

/* Вкладки «Внутри» */
.inside { display: grid; gap: 36px; align-items: center; margin-top: 32px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.tabs [role="tab"] {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
.panel { margin-top: 22px; }
.panel h3 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.03em; }
.panel p { margin: 0 0 12px; color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.panel ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.panel li { display: flex; gap: 10px; align-items: baseline; }
.panel li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--mark); transform: translateY(-2px); }
.panel[hidden] { display: none; }
.panel.enter { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Телефон */
.phone {
  position: relative; width: min(320px, 82vw); aspect-ratio: 9 / 19.5; margin: 0 auto;
  border-radius: 48px; padding: 10px; background: #0d0d0f;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen {
  position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: var(--phone); color: var(--ink);
  font-size: 13px;
}
.screen .island { position: absolute; top: 9px; left: 50%; width: 31%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 5; }
.view { position: absolute; inset: 0; padding: 50px 16px 0; opacity: 0; transform: scale(0.98); transition: opacity 0.45s ease, transform 0.45s ease; }
.view.on { opacity: 1; transform: none; }

.m-head { display: flex; align-items: flex-start; justify-content: space-between; }
.m-head .arc-title { font-size: 34px; }
.m-btns { display: flex; gap: 6px; margin-top: 2px; }
.m-btns span { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); }

.rows { margin-top: 18px; perspective: 400px; }
.row { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.row b { display: block; font-weight: 500; font-size: 13.5px; letter-spacing: -0.01em; }
.row i { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.row time { color: var(--muted); font-size: 11.5px; display: flex; gap: 8px; align-items: center; }
.row.curl { transform: rotateX(38deg) translateY(-4px) scale(0.96); filter: blur(1.6px); opacity: 0.55; }
.row.fade { opacity: 0.35; }
.cover { width: 38px; height: 38px; border-radius: 10px; }

.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.bars span { width: 2.5px; background: var(--mark); border-radius: 1px; animation: eq 0.9s ease-in-out infinite alternate; }
.bars span:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.bars span:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.bars span:nth-child(3) { height: 40%; animation-delay: -0.8s; }

.mini {
  position: absolute; left: 10px; right: 10px; bottom: 66px; height: 48px; display: grid; grid-template-columns: 30px 1fr auto;
  gap: 10px; align-items: center; padding: 0 14px 0 9px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 12.5px; font-weight: 500;
}
.mini .cover { width: 30px; height: 30px; border-radius: 50%; }
.mini em { font-style: normal; color: var(--muted); }
.mtabs {
  position: absolute; left: 10px; right: 58px; bottom: 10px; height: 48px; display: flex; justify-content: space-around; align-items: center;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 9px; color: var(--muted);
}
.mtabs span:first-child { color: var(--ink); font-weight: 600; }
.msearch { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 48px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }

/* Страница песни в макете */
.view.song { background: var(--wash); padding-top: 54px; }
.song .big {
  width: 76%; aspect-ratio: 1; margin: 6px auto 0; border-radius: 22px;
  box-shadow: 0 20px 60px rgba(200, 60, 140, 0.35);
}
.song h4 { margin: 22px 0 2px; font-size: 34px; line-height: 0.95; letter-spacing: -0.045em; }
.song .by { color: var(--muted); font-size: 13px; }
.track { position: relative; height: 3px; margin: 18px 0 6px; border-radius: 3px; background: var(--line); }
.track::before { content: ""; position: absolute; inset: 0 66% 0 0; border-radius: 3px; background: var(--ink); }
.track::after { content: ""; position: absolute; left: 34%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: 0.04em; }
.ctrls { display: flex; justify-content: center; align-items: center; gap: 34px; margin-top: 14px; }
.ctrls .play { width: 54px; height: 54px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; }
.ctrls .play::before { content: ""; width: 14px; height: 18px; border-left: 5px solid var(--btn-ink); border-right: 5px solid var(--btn-ink); }
.ctrls .skipb { width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--ink); opacity: 0.6; }
.gamebar {
  position: absolute; left: 10px; right: 10px; bottom: 12px; height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 12px;
}
.gamebar b { display: block; font-size: 13px; }
.gamebar i { font-style: normal; color: var(--muted); font-size: 10.5px; }
.gamebar .go { padding: 9px 18px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 600; }

/* Игра — настоящие кадры миров игры (ios/Tunnel/Presets/field-*.jpg), сменяются с медленным наездом */
.view.game { padding: 0; background: #050508; }
.worlds { position: absolute; inset: 0; }
.worlds .w {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.02); transition: opacity 0.9s ease, transform 3.2s ease-out;
}
.worlds .w.on { opacity: 1; transform: scale(1.09); }
.world-name {
  position: absolute; left: 50%; top: 46px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px;
  background: rgba(10, 10, 14, 0.45); border: 1px solid rgba(255, 255, 255, 0.14); color: #f3f3f3; font-size: 11px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap;
}
.world-name.pop { animation: chip-in 0.6s ease both; }
@keyframes chip-in { from { opacity: 0; transform: translate(-50%, -5px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Колесо тем — как колесо плейлистов «Дуги» */
.wheel { position: relative; height: 330px; margin-top: 30px; overflow: hidden; outline: none; color: var(--ink); touch-action: pan-y; }
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ticks { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tcard {
  position: absolute; left: calc(50% - 75px); width: 150px; height: 206px; padding: 14px 12px; border-radius: 20px;
  border: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; overflow: hidden;
  transform-origin: 50% 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
}
.tcard .t { display: block; font-weight: 700; font-size: 21px; letter-spacing: -0.04em; }
.tcard .t sup { font-weight: 400; font-size: 8px; opacity: 0.6; margin-left: 1px; }
.tcard .r { display: grid; grid-template-columns: 22px 1fr; gap: 7px; align-items: center; margin-top: 10px; }
.tcard .r .cover { width: 22px; height: 22px; border-radius: 6px; }
.tcard .r > span:last-child > span { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.7; }
.tcard .r > span:last-child > span + span { width: 60%; margin-top: 4px; opacity: 0.35; }
.tcard .badge { position: absolute; left: 12px; bottom: 12px; font-size: 11px; font-weight: 600; opacity: 0.85; }
.wheel-cap { text-align: center; margin-top: 4px; min-height: 4.2em; }
.wheel-cap strong { display: block; font-size: 1.5rem; letter-spacing: -0.03em; }
.wheel-cap span { color: var(--muted); }
.wheel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; font: inherit;
}

.th-retro { background: radial-gradient(90% 60% at 50% 110%, rgba(255, 90, 140, 0.55), transparent 70%), #120b24; color: #fff6fb; }
.th-graphite { background: #0e0d10; color: #fff; }
.th-white { background: #f2f0ed; color: #121213; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.th-poster { background: repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px), #09090a; color: #fff; }
.th-poster .t { text-transform: lowercase; font-weight: 800; }
.th-poster .r .cover { border-radius: 50%; }
.th-poster .badge { color: #ff8a33; font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 15px; font-weight: 400; }
.th-arc { background: #f2f0ed; color: #121213; }
.th-arcBlack { background: #060607; color: #f3f3f3; }
.th-arc .badge::before, .th-arcBlack .badge::before { content: ""; display: inline-block; width: 3px; height: 10px; margin-right: 6px; background: #e0283e; vertical-align: -1px; }
.th-arcBlack .badge::before { background: #ff3d52; }

/* Темы: большой телефон в выбранной теме и чем она отличается */
.theme-show { display: grid; gap: 28px; align-items: center; margin-top: 36px; }
.theme-info .wheel-cap { text-align: center; }
.traits { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 10px; max-width: 26rem; }
.traits li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 16px; background: var(--soft); }
.traits li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--mark); transform: translateY(-1px); }
.tphone .screen { transition: background 0.6s ease, color 0.6s ease; }
.tphone .view { opacity: 1; transform: none; }
.tphone .screen > .view { transition: opacity 0.35s ease; }
.tphone.switching .screen > .view { opacity: 0; }

/* Превью тем: цвета и приметы из ios/Player/App/UI/Appearance.swift */
.pv-retro { --phone: #120b24; --ink: #fff6fb; --muted: rgba(255, 246, 251, 0.62); --soft: rgba(255, 255, 255, 0.08); --glass: rgba(70, 35, 110, 0.55); --glass-line: rgba(255, 255, 255, 0.14); --mark: #ff4fa0;
  background: radial-gradient(120% 45% at 50% 108%, rgba(255, 90, 140, 0.6), rgba(255, 140, 60, 0.15) 45%, transparent 70%), radial-gradient(90% 40% at 50% -5%, rgba(120, 60, 255, 0.4), transparent 70%), #120b24 !important; }
.pv-retro .m-head .arc-title { text-shadow: 0 0 18px rgba(255, 79, 160, 0.7); }
.pv-graphite { --phone: #0e0d10; --ink: #ffffff; --muted: #9b99a3; --soft: rgba(255, 255, 255, 0.07); --glass: rgba(40, 40, 46, 0.62); --glass-line: rgba(255, 255, 255, 0.1); --mark: #ff4fa0; background: #0e0d10 !important; }
.pv-white { --phone: #f2f0ed; --ink: #121213; --muted: #615e5b; --soft: rgba(18, 18, 19, 0.06); --glass: rgba(255, 255, 255, 0.72); --glass-line: #ffffff; --mark: #121213; background: #f2f0ed !important; }
.pv-white .m-btns span { background: #121213; }
.pv-poster { --phone: #09090a; --ink: #ffffff; --muted: #a4a4a8; --soft: rgba(255, 255, 255, 0.07); --glass: rgba(28, 28, 30, 0.72); --glass-line: rgba(255, 255, 255, 0.1); --mark: #ff8a33;
  background: repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px), #09090a !important; }
.pv-poster .m-head { position: relative; }
.pv-poster .m-head .arc-title { text-transform: lowercase; font-weight: 800; letter-spacing: -0.07em; }
.pv-poster .m-head::after {
  content: "on repeat"; position: absolute; left: 92px; top: 30px; color: #ff8a33; transform: rotate(-7deg);
  font-family: "Bradley Hand", "Noteworthy", "Segoe Print", cursive; font-size: 15px; font-weight: 700;
}
.pv-poster .cover { border-radius: 50%; }
.pv-arc { --phone: #f2f0ed; --ink: #121213; --muted: #615e5b; --soft: rgba(18, 18, 19, 0.06); --glass: rgba(255, 255, 255, 0.62); --glass-line: rgba(255, 255, 255, 0.9); --mark: #e0283e; background: #f2f0ed !important; }
.pv-arcBlack { --phone: #060607; --ink: #f3f3f3; --muted: #9a979d; --soft: rgba(243, 243, 243, 0.07); --glass: rgba(30, 30, 34, 0.62); --glass-line: rgba(255, 255, 255, 0.1); --mark: #ff3d52; background: #060607 !important; }
/* Раскладка «Дуги» (счётчик в скобках, загиб верхней строки) — только у Arc и Arc Black */
.pv-retro .m-head sup, .pv-graphite .m-head sup, .pv-white .m-head sup, .pv-poster .m-head sup { display: none; }
.pv-retro .row.curl, .pv-graphite .row.curl, .pv-white .row.curl, .pv-poster .row.curl { transform: none; filter: none; opacity: 1; }

/* Живость при наведении мыши — только где есть мышь и не просили меньше движения */
.orbs { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.phone::after {
  content: ""; position: absolute; inset: 10px; border-radius: 39px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.22), transparent 45%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .phone { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease; }
  .phone:hover::after { opacity: 1; }
  a.pill { transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; }
  a.pill:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16); }
  .fact { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .fact:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.14); }
  .tabbar a { transition: background-color 0.2s ease, color 0.2s ease; }
  .tabbar a:hover { background: var(--soft); color: var(--ink); }
  .theme-btn { transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.4, 1); }
  .theme-btn:hover { transform: rotate(-22deg) scale(1.06); }
  .appicon { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.4, 1); }
  .appicon:hover { transform: rotate(-8deg) scale(1.08); }
  .tcard:hover { filter: none !important; opacity: 1 !important; }
  .round { transition: background-color 0.2s ease, transform 0.2s ease; }
  .round:hover { background: var(--line); transform: scale(1.06); }
  .tabs [role="tab"][aria-selected="false"]:hover { color: var(--ink); }
  .row:not(.curl) { transition: background-color 0.2s ease; border-radius: 10px; }
  .row:not(.curl):hover { background: var(--soft); }
  .traits li { transition: transform 0.25s ease; }
  .traits li:hover { transform: translateX(4px); }
  .finale:hover .eclipse { filter: blur(16px) saturate(1.5) brightness(1.15); }
}

/* Приватность */
.privacy-block { display: grid; gap: 18px; margin-top: 28px; }
.fact { padding: 22px; border-radius: 24px; background: var(--soft); }
.fact strong { display: block; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.fact span { color: var(--muted); }

/* Страница планов (roadmap.html) и анонс на главной */
.next-page { padding: 36px 0 32px; }
.next-title { font-size: clamp(3rem, 12vw, 7rem); letter-spacing: -0.06em; line-height: 0.92; margin: 6px 0 0; }
.next-title .script { margin: 0 0 -0.04em 0.12em; transform: rotate(-5deg); }
.js .next-title .script { animation: write 1s 0.4s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.next-page .lead { max-width: 38rem; margin: 22px 0 0; font-size: 1.15rem; color: var(--muted); }
.roadmap { display: grid; gap: 16px; margin-top: 40px; }
.plan { position: relative; padding: 18px 18px 22px; border-radius: 28px; background: var(--soft); }
.plan h2 { margin: 12px 0 6px; font-size: 1.45rem; letter-spacing: -0.03em; }
.plan p { margin: 0 0 8px; color: var(--muted); }
.plan .small { font-size: 0.92rem; }
.status {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--mark); color: #fff;
}
.status.always { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
:root[data-theme="arcBlack"] .status:not(.always) { color: #060607; } /* белый на #FF3D52 — 3,5 : 1, чёрный — 5,8 : 1 */
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .status:not(.always) { color: #060607; } }
.plan-art { position: relative; height: 150px; border-radius: 20px; overflow: hidden; margin-bottom: 16px; }
.art-video { background: linear-gradient(120deg, #ff4f9a, #9b6bff, #3db8ff, #ffc233, #ff4f9a); background-size: 400% 400%; animation: clip 9s ease-in-out infinite alternate; }
.art-video .play { position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.92); }
.art-video .play::before { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid #121213; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.art-video .scrub { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.art-video .scrub::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: #fff; animation: scrub 6s linear infinite; }
@keyframes clip { to { background-position: 100% 50%; } }
@keyframes scrub { from { width: 0; } to { width: 100%; } }
.art-engine { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.art-engine svg { position: absolute; inset: 20px 0; width: 100%; height: calc(100% - 40px); }
.art-engine .wave { fill: none; stroke: var(--ink); stroke-opacity: 0.45; stroke-width: 2; vector-effect: non-scaling-stroke; }
.art-engine .dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; animation: pop 2.4s ease-in-out infinite; }
.art-engine .d1 { left: 30%; top: 22%; background: #ff4f9a; box-shadow: 0 0 16px #ff4f9a; }
.art-engine .d2 { left: 47%; top: 46%; background: #3db8ff; box-shadow: 0 0 16px #3db8ff; animation-delay: 0.6s; }
.art-engine .d3 { left: 71%; top: 26%; background: #ffc233; box-shadow: 0 0 16px #ffc233; animation-delay: 1.2s; }
.art-engine .d4 { left: 84%; top: 46%; background: #9b6bff; box-shadow: 0 0 16px #9b6bff; animation-delay: 1.8s; }
@keyframes pop { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 40% { transform: scale(1.15); opacity: 1; } }
.art-worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.art-worlds img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.art-android { display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.art-android .device { display: grid; gap: 8px; padding: 14px 18px; border-radius: 22px; border: 2px solid var(--ink); }
.art-android .cover { width: 70px; height: 18px; border-radius: 6px; }
.next-ask { margin: 36px 0 0; color: var(--muted); }
.next-ask a { color: var(--ink); text-decoration-color: var(--mark); text-underline-offset: 3px; }
.next-teaser {
  display: grid; gap: 8px; padding: 26px 24px; border-radius: 28px; text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, rgba(255, 79, 154, 0.16), rgba(155, 107, 255, 0.16), rgba(61, 184, 255, 0.14)), var(--soft);
}
.next-teaser .status { justify-self: start; }
.next-teaser-title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.next-teaser-text { color: var(--muted); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan, .next-teaser { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .plan:hover, .next-teaser:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.14); }
}
@media (min-width: 900px) {
  .roadmap { grid-template-columns: 1fr 1fr; }
}

/* Документы (политика, поддержка) */
.page { padding-top: 36px; padding-bottom: 32px; max-width: 46rem; }
.doc h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 16px; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--muted); }
.doc a { color: var(--ink); text-decoration-color: var(--mark); text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 16px; color: var(--muted); text-decoration: none; }

/* Стеклянная панель вкладок, как в плеере; круглая кнопка справа — тема */
.tabbar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 10px;
  transform: translateX(-50%); width: min(560px, calc(100% - 24px));
}
.tabbar nav {
  flex: 1; display: flex; justify-content: space-around; align-items: center; height: 64px; padding: 0 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px;
  border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500;
}
.tabbar a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .theme-btn {
  flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink);
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); display: grid; place-items: center; cursor: pointer;
}
.theme-btn svg { width: 24px; height: 24px; }
.theme-btn .moon, :root[data-theme="arcBlack"] .theme-btn .sun { display: none; }
:root[data-theme="arcBlack"] .theme-btn .moon { display: block; }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center;
  margin-top: 80px; padding: 22px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem;
}
.foot a { color: var(--muted); }

/* Появление: первый экран — сразу при загрузке (CSS), остальное — при прокрутке (site.js).
   Без скрипта ничего не прячется (класс .js ставит site.js). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.seen { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.js .hero .hero-title.reveal { animation-delay: 0.06s; }
.js .hero .lead.reveal { animation-delay: 0.16s; }
.js .hero .actions.reveal { animation-delay: 0.24s; }
.js .hero .script { animation: write 1s 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) both; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* Обложки — нарисованные, как в концепте Arc (вымышленные песни). */
.cv-indigo { background: linear-gradient(172deg, #dfe0ff 0%, #8f80f7 32%, #cfc8ff 50%, #6a55ee 70%, #b9b1ff 100%); }
.cv-drift { background: radial-gradient(circle at 50% 58%, #ffffff 0 16%, #ffb3d2 34%, #e0559c 55%, #5b2a7a 80%, #2a1440 100%); }
.cv-amethyst { background: radial-gradient(circle, #cdbbff 0 22%, #8f6bd9 34%, #ff9ad5 52%, #ffd3ad 64%, #f6e3e9 70%); }
.cv-charcoal { background: linear-gradient(180deg, #7b7f9f 0%, #e84a6a 30%, #6b5a7a 52%, #e2394f 74%, #8d6a7b 100%); }
.cv-tide { background: radial-gradient(circle at 50% 62%, #ffffff 0 22%, #6fe0da 44%, #2a8bd8 70%, #1f3f8f 100%); }
.cv-teal { background: radial-gradient(circle at 50% 55%, #c8ffd8 0 18%, #3ad0b0 40%, #2a6fd0 75%); }
.cv-urban { background: radial-gradient(circle, #8a6be0 0 20%, #ff9a5c 42%, #ffcf8a 58%, #f3d9c9 66%); }
.cv-lunar { background: linear-gradient(180deg, #d4d0ff 0%, #6f5df5 45%, #3f2fd8 70%, #9a90ff 100%); }

/* Переходы между страницами — новая страница чуть поднимается; смена темы — круг от кнопки */
::view-transition-old(root) { animation: 0.22s ease both page-out; }
::view-transition-new(root) { animation: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both page-in; }
:root.theming::view-transition-old(root), :root.theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 640px) {
  .orb:nth-child(n + 13) { display: none; } /* на телефоне обложек меньше */
  .orbs { opacity: 0.8; }
  .hero::before { background: radial-gradient(ellipse 85% 40% at 50% 54%, var(--bg) 58%, transparent 100%); }
  .script { font-size: 0.5em; transform: rotate(-5deg) translateX(-0.5em); }
}

@media (min-width: 900px) {
  .inside { grid-template-columns: 1fr 1fr; align-items: start; }
  .theme-show { grid-template-columns: 1fr 1fr; }
  .theme-info .wheel-cap { text-align: left; }
  .traits { margin-left: 0; }
  .inside > div:first-child { padding-top: 48px; }
  .privacy-block { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
