@font-face {
  font-family: Roboto;
  src: url("assets/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("assets/roboto-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #0c0c0f;
  --panel: #16161b;
  --ink: #f8f8f5;
  --muted: #b2b2bd;
  --line: #323238;
  --aqua: #50f5e3;
  --pink: #ff4777;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 1.2rem; height: 1.2rem; display: inline-block; flex: none; }
.shell { width: min(calc(100% - 7rem), 72rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid #26262b; background: var(--page); }
.topbar { min-height: 4.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; }
.brand img { width: 2.45rem; height: 2.45rem; border-radius: .6rem; }
.brand span { display: inline-block; font-size: 2.1rem; line-height: 1; font-weight: 900; letter-spacing: -.075em; transform: skewX(-8deg); padding-right: .12em; }
.topbar nav { display: flex; align-items: center; gap: 1.8rem; font-size: .9rem; }
.topbar nav a, .nav-how { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0; color: #dedee4; }
.topbar nav a:hover, .nav-how:hover { color: var(--aqua); }
.locale { border-left: 1px solid var(--line); padding-left: 1.75rem; display: flex; align-items: center; gap: .5rem; font: .78rem/1.4 var(--mono); letter-spacing: .045em; color: var(--muted); white-space: nowrap; }
.locale .icon { width: 1rem; height: 1rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.02fr);
  gap: clamp(2rem, 6.1vw, 6.4rem);
  align-items: center;
  padding-block: clamp(3.3rem, 5.4vw, 5.3rem) clamp(3.3rem, 5.3vw, 5.1rem);
}
.hero-copy { min-width: 0; }
.eyebrow, .panel-label, .cover-label, .track-type, .small-mono {
  font-family: var(--mono);
  font-weight: 400;
}
.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .77rem; line-height: 1.3; letter-spacing: .13em; text-transform: uppercase; color: #c4c4cd; }
.signal { display: inline-flex; align-items: center; gap: 3px; height: 1rem; color: var(--aqua); }
.signal i { display: block; width: 3px; height: 7px; border-radius: 2px; background: currentColor; transform: skew(-8deg); }
.signal i:nth-child(2) { height: 14px; }
.signal i:nth-child(3) { height: 10px; }
.signal i:nth-child(4) { height: 5px; }
h1, h2, p { margin: 0; }
h1 { margin: 1.32rem 0 1.4rem; font-weight: 900; font-size: clamp(5.2rem, 8.8vw, 8.45rem); line-height: .96; letter-spacing: -.064em; }
h1 > span { display: block; width: fit-content; }
.accent-line { color: var(--aqua); transform: skewX(-8deg); transform-origin: 0 100%; padding-right: .065em; }
.pink-dot { color: var(--pink); }
.intro { max-width: 26rem; font-size: clamp(1.04rem, 1.45vw, 1.23rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cta-home { display: grid; gap: .35rem; width: fit-content; margin-top: 1.9rem; }
.cta-note { color: #c0c0c9; font-size: .875rem; line-height: 1.3; text-align: center; }
.telegram, .secondary {
  display: inline-flex; min-height: 3.45rem; align-items: center; justify-content: center; gap: .66rem; padding: .8rem 1.7rem;
  font-size: 1.01rem; line-height: 1.25; font-weight: 900; border-radius: .75rem; text-align: center;
  transition: background .16s ease, transform .16s ease;
}
.telegram { background: var(--pink); color: #13070c; }
.telegram .icon { width: 1.3rem; height: 1.3rem; }
.telegram:hover { background: #ff658c; }
.telegram:active, .secondary:active { transform: scale(.985); }
.cover-stage { position: relative; isolation: isolate; padding: .35rem .55rem .55rem .35rem; }
.cover-back { position: absolute; z-index: -1; inset: .55rem .3rem .19rem .55rem; transform: rotate(2.4deg); border: 1px solid #c0446b; border-radius: 1.45rem; background: #29151e; }
.cover-stage::before { content: ""; position: absolute; z-index: -1; inset: .25rem .75rem .65rem .15rem; border: 1px solid #35877f; background: #112322; transform: rotate(-2.5deg); border-radius: 1.45rem; }
.cover {
  display: block; position: relative; width: 100%; aspect-ratio: 1.12; padding: 0; overflow: hidden; border-radius: 1.3rem;
  text-align: left; background: #143a40; isolation: isolate; border: 1px solid #ffffff38;
}
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 46%; z-index: -2; transition: transform .4s ease; }
.cover::after { position: absolute; content: ""; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #090c0e38, transparent 24%, transparent 46%, #11101813 57%, #141015af 87%, #100e13f2); }
.cover-top, .cover-bottom { position: absolute; display: flex; align-items: center; justify-content: space-between; gap: .6rem; left: 1.45rem; right: 1.45rem; }
.cover-top { top: 1.32rem; }
.cover-label, .clip-count { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #ffffff45; background: #0e1219aa; color: #fff; }
.cover-label { border-radius: .35rem; padding: .37rem .57rem; font-size: .72rem; line-height: 1; letter-spacing: .075em; }
.cover-label .icon { width: .95rem; height: .95rem; }
.clip-count { border-radius: 3rem; padding: .34rem .68rem; font: .76rem/1 var(--mono); }
.cover-bottom { bottom: 1.5rem; align-items: flex-end; }
.cover-title { display: block; font-size: clamp(2.2rem, 3.6vw, 3.8rem); font-weight: 900; line-height: 1.04; letter-spacing: -.055em; }
.cover-sub { display: block; font-size: .94rem; margin-top: .35rem; color: #f3ebed; }
.play-disc { display: grid; place-items: center; flex: 0 0 auto; width: 3.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #121318; transition: transform .2s ease, background .2s ease; }
.play-disc .icon { width: 1.4rem; height: 1.4rem; }
@media (hover: hover) {
  .cover:hover .cover-photo { transform: scale(1.025); }
  .cover:hover .play-disc { background: var(--aqua); transform: scale(1.05); }
}

.selection { border-top: 1px solid var(--line); padding: 1.85rem 0 clamp(2.6rem, 5vw, 4.6rem); scroll-margin-top: 1.1rem; }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.05rem; }
.section-head h2 { font-size: 1.58rem; font-weight: 900; letter-spacing: -.036em; }
.section-rule { flex: 1; }
.small-mono { font-size: .8rem; line-height: 1.4; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.track { display: flex; align-items: center; gap: 1rem; min-width: 0; text-align: left; padding: .78rem .95rem .78rem .78rem; border: 1px solid #303035; background: #17171b; border-radius: .8rem; transition: border-color .15s, background .15s; }
.track:hover { border-color: #5e6267; background: #1d1d23; }
.thumb { width: 5.05rem; height: 3.8rem; object-fit: cover; border-radius: .35rem; background: #27282c; }
.bike-thumb { object-position: 50% 37%; }
.car-thumb { object-position: 62% 50%; }
.track-copy { display: grid; gap: .32rem; min-width: 0; }
.track-type { color: #a9a9b4; text-transform: uppercase; font-size: .73rem; letter-spacing: .09em; }
.track-title { font-size: 1.15rem; font-weight: 900; line-height: 1.14; letter-spacing: -.015em; }
.track-action { flex: none; margin-left: auto; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid #414147; color: #d7d7de; }
.track-action .icon { width: .85rem; height: .85rem; }
.track:hover .track-action { color: var(--aqua); }
.native-clips { padding-block: 1rem; }
.native-clips a { display: inline-block; margin: 1rem 1rem 2rem 0; text-decoration: underline; }

body:has(dialog[open]) { overflow: hidden; }
.panel { width: min(29rem, calc(100% - 1.5rem)); max-width: initial; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--panel); border: 1px solid #3b3b42; border-radius: 1.25rem; box-shadow: 0 1.5rem 5rem #0007; }
.panel::backdrop { background: #05050ad9; }
.panel-inner { padding: 1.25rem 1.45rem 1.45rem; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .65rem; }
.panel-label { font-size: .75rem; letter-spacing: .1em; color: var(--aqua); }
.icon-button { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: 50%; background: #25252c; }
.icon-button:hover { background: #34343c; }
.panel h2 { font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 900; line-height: 1.08; letter-spacing: -.04em; }
.instructions { padding-left: 1.7rem; margin: 1.2rem 0; }
.instructions li { padding: .75rem 0 .75rem .55rem; border-top: 1px solid var(--line); }
.instructions li::marker { color: var(--aqua); font: .9rem var(--mono); }
.instructions strong { font-weight: 900; }
.instructions p, .finish > p { color: var(--muted); line-height: 1.45; margin-top: .3rem; }
.secondary { background: var(--aqua); color: #031210; }
.secondary:hover { background: #8fffef; }
.full { width: 100%; }
.clip-heading, .vote-nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.clip-heading { margin-bottom: .85rem; }
.reel-frame { display: grid; place-items: center; background: #080809; border-radius: .75rem; overflow: hidden; }
.reel-frame video { display: block; width: 100%; height: clamp(8rem, 32vh, 18.7rem); height: clamp(8rem, 32dvh, 18.7rem); object-fit: contain; }
.demo-panel[data-clip="1"] .reel-frame video { height: auto; aspect-ratio: 448 / 268; max-height: 33vh; max-height: 33dvh; }
.video-error { color: #ffb8c9; margin-top: .55rem; font-size: .92rem; }
.video-error button { color: inherit; text-decoration: underline; }
.vote { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.vote legend { font-weight: 900; padding: 0; font-size: 1.05rem; }
.stars { display: grid; grid-template-columns: repeat(5,1fr); gap: .45rem; margin-top: .65rem; }
.stars button { min-width: 0; height: 2.75rem; display: grid; place-items: center; border-radius: .55rem; border: 1px solid #464650; background: #212127; color: #acacb8; }
.stars button.chosen { border-color: #4ebeb0; color: var(--aqua); background: #19342f; }
.stars button .icon { width: 1.27rem; height: 1.27rem; }
.vote-nav { min-height: 3.05rem; }
.feedback { font-size: .86rem; color: var(--aqua); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .3rem 0; color: #e3e3e9; font-size: .92rem; text-decoration: underline; text-underline-offset: .23em; }
.text-button:hover { color: var(--aqua); }
.demo-cta { display: grid; gap: .35rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.demo-cta .telegram { width: 100%; }
.finish { padding: .35rem 0 .75rem; }
.finish-mark { width: 3rem; height: 3rem; display: grid; place-items: center; color: var(--aqua); background: #163631; border-radius: .87rem; margin-bottom: 1rem; }
.finish-mark .icon { width: 1.6rem; height: 1.6rem; }
.finish > p { margin-top: .7rem; }
.score-summary { margin: 1rem 0 .2rem; }
.score-row { display: flex; gap: .75rem; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); }
.score-row span:last-child { color: var(--aqua); white-space: nowrap; }
.replay { color: var(--muted); }
.replay .icon { width: 1rem; height: 1rem; }

@media (min-width: 761px) and (max-width: 980px) {
  .shell { width: calc(100% - 4.75rem); }
  .hero { gap: 2rem; }
  h1 { font-size: clamp(4.8rem, 9.5vw, 6rem); }
  .cover { aspect-ratio: .9; }
}
@media (max-width: 760px) {
  .shell { width: min(calc(100% - 2.5rem), 34rem); }
  .topbar { min-height: 3.75rem; }
  .brand img { width: 1.95rem; height: 1.95rem; }
  .brand span { font-size: 1.72rem; }
  .topbar nav { gap: .9rem; }
  .nav-selection { display: none !important; }
  .locale { padding-left: .9rem; font-size: .73rem; gap: .3rem; }
  .locale .icon { width: .9rem; height: .9rem; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 1.55rem; padding-block: 1.7rem 1.9rem; }
  .eyebrow { gap: .6rem; font-size: .73rem; letter-spacing: .1em; }
  h1 { margin-block: .85rem .85rem; font-size: clamp(3.95rem, 13.4vw, 5.7rem); line-height: .97; }
  .intro { font-size: 1rem; line-height: 1.43; max-width: 30rem; }
  .cta-home { position: fixed; z-index: 5; inset: auto 0 0; border-top: 1px solid var(--line); background: #101014; padding: .5rem 1.25rem max(.5rem, env(safe-area-inset-bottom)); width: auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
  .cta-home:empty, body:has(#demo[open]) .cta-home { display: none; }
  .cta-home .telegram { width: min(100%, 34rem); min-height: 3rem; }
  .cover-stage { margin-inline: .12rem .18rem; padding: .2rem .26rem .33rem .15rem; }
  .cover { aspect-ratio: 1.5; border-radius: 1rem; }
  .cover-stage::before, .cover-back { border-radius: 1.03rem; }
  .cover-photo { object-position: 50% 45%; }
  .cover-top, .cover-bottom { left: .95rem; right: .95rem; }
  .cover-top { top: .85rem; }
  .cover-bottom { bottom: .9rem; }
  .cover-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .cover-sub { font-size: .87rem; margin-top: .18rem; }
  .play-disc { width: 2.85rem; }
  .play-disc .icon { width: 1.15rem; height: 1.15rem; }
  .selection { padding-top: 1.3rem; padding-bottom: calc(6.3rem + env(safe-area-inset-bottom)); }
  .section-head { margin-bottom: .85rem; }
  .section-head h2 { font-size: 1.4rem; }
  .tracks { grid-template-columns: 1fr; gap: .55rem; }
  .track { gap: .82rem; padding: .58rem .78rem .58rem .58rem; }
  .thumb { width: 4.1rem; height: 3.18rem; }
  .track-title { font-size: 1.05rem; }
  .track-copy { gap: .23rem; }
  .panel { max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .panel-inner { padding: 1rem; }
  .native-clips { padding-bottom: 6rem; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 2rem); }
  .topbar { gap: .5rem; }
  .brand { gap: .25rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
  .brand span { font-size: 1.6rem; }
  .topbar nav { gap: .5rem; font-size: .83rem; white-space: nowrap; }
  .locale { padding-left: .5rem; letter-spacing: .01em; }
  .clip-heading h2 { font-size: 1.45rem; }
  .vote-nav { gap: .25rem; }
}
@media (max-width: 760px) and (max-height: 650px) {
  .hero { padding-top: 1.03rem; gap: .95rem; }
  h1 { margin-block: .55rem .65rem; font-size: clamp(3.05rem, 12vw, 4rem); line-height: .98; }
  .intro { line-height: 1.37; }
  .cover { aspect-ratio: 1.65; }
}
@media (max-width: 760px) and (max-height: 445px) and (orientation: landscape) {
  .cta-home { position: static; padding: 0; border: 0; width: fit-content; margin-top: 1rem; background: none; }
  .cta-home .telegram { width: auto; }
  .selection { padding-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
