/* ───────── Тема ───────── */
:root {
  color-scheme: dark;
  --bg: #0b0a14;
  --surface: #15132a;
  --surface-2: #1d1a38;
  --field: #0f0d1f;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #f5f3ff;
  --text-2: rgba(245, 243, 255, 0.70);
  --text-3: rgba(245, 243, 255, 0.56);
  --pink: #ff4d9d;
  --pink-hi: #ff70b2;
  --cyan: #3de8ff;
  --cyan-hi: #7ef0ff;
  --violet: #8b5cf6;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #ff6b6b;
  --on-accent: #12061a;
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --topbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 77, 157, .45); color: #fff; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 77, 157, 0.16), transparent 70%),
    radial-gradient(800px 460px at 88% -6%, rgba(61, 232, 255, 0.12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap--wide { max-width: 1680px; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--cyan); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 600 13px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ───────── Кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, box-shadow .2s, transform .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--primary {
  background: var(--pink); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(255, 77, 157, .35), 0 8px 28px -10px rgba(255, 77, 157, .8);
}
.btn--primary:hover:not(:disabled) {
  background: var(--pink-hi);
  box-shadow: 0 0 0 1px rgba(255, 112, 178, .5), 0 10px 34px -8px rgba(255, 77, 157, .95);
}
.btn--play {
  background: var(--cyan); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(61, 232, 255, .3), 0 8px 28px -10px rgba(61, 232, 255, .75);
}
.btn--play:hover { background: var(--cyan-hi); }
.btn--secondary { background: rgba(255, 255, 255, .06); border-color: var(--border-strong); color: var(--text); }
.btn--secondary:hover:not(:disabled) { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .3); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: var(--text); }
.btn--danger { background: var(--danger); color: #1a0505; }
.btn--danger:hover:not(:disabled) { background: #ff8585; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

/* ───────── Шапка ───────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 20, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--topbar); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 10px rgba(255, 77, 157, .45)); }
.brand__name {
  font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ───────── Первый экран ───────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__content { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 120px; }
.hero__title {
  margin-top: 16px;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1; font-weight: 850;
  letter-spacing: -0.02em; text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 77, 157, .35), 0 0 64px rgba(139, 92, 246, .25);
}
.hero__title .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--pink) 0%, #c86bff 50%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(255, 77, 157, .35));
}
.hero__lead { margin-top: 24px; max-width: 600px; font-size: 18px; color: var(--text-2); }

/* Неоновая «сетка-пол» в стиле ретро-аркад */
.hero__floor {
  position: absolute; left: -50%; right: -50%; bottom: -2px; height: 40%;
  pointer-events: none;
  perspective: 360px; perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 35%, #000 75%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 35%, #000 75%);
}
.hero__floor::before {
  content: ""; position: absolute; inset: 0 0 -60% 0;
  transform: rotateX(62deg); transform-origin: 50% 0%;
  background-image:
    linear-gradient(to right, rgba(255, 77, 157, .38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61, 232, 255, .30) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: floor 3.2s linear infinite;
}
@keyframes floor { to { background-position: 0 56px; } }
.hero__sun {
  position: absolute; right: 9%; top: 46%; width: 240px; height: 240px; border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #ffb070 0%, #ff6aa8 45%, #b04dff 100%);
  opacity: .5;
  box-shadow: 0 0 120px rgba(255, 77, 157, .35);
  -webkit-mask-image: linear-gradient(#000 0 46%, transparent 46%), repeating-linear-gradient(to bottom, transparent 0 6px, #000 6px 18px);
  mask-image: linear-gradient(#000 0 46%, transparent 46%), repeating-linear-gradient(to bottom, transparent 0 6px, #000 6px 18px);
  pointer-events: none;
}

/* ───────── Список игр ───────── */
.games { padding-top: 48px; padding-bottom: 80px; }
.games__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.games__head h2 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.games__count { font: 600 14px/1 var(--mono); color: var(--text-3); letter-spacing: .04em; }

.games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s, box-shadow .25s;
}
.card:hover, .card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(61, 232, 255, .55);
  box-shadow: 0 0 0 1px rgba(61, 232, 255, .25), 0 18px 48px -18px rgba(61, 232, 255, .45);
}
.card__cover { position: relative; aspect-ratio: 16 / 9; background: #07060d; overflow: hidden; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__cover img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 24px; flex: 1; }
.card__title { font-size: 19px; line-height: 1.3; font-weight: 750; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card__desc {
  color: var(--text-2); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.card__meta { font: 500 13px/1.2 var(--mono); color: var(--text-3); white-space: nowrap; }
.play-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  background: rgba(61, 232, 255, .12); color: var(--cyan);
  font-weight: 700; font-size: 14px;
  transition: background-color .2s, color .2s;
}
.play-chip svg { width: 14px; height: 14px; }
.card:hover .play-chip { background: var(--cyan); color: var(--on-accent); }

.card__delete {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(11, 10, 20, .72); border: 1px solid var(--border-strong); color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__delete:hover { background: var(--danger); border-color: var(--danger); color: #1a0505; }

/* Обложка-заглушка, если картинку не загрузили */
.cover-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, hsla(var(--h1), 95%, 62%, .85), transparent 60%),
    radial-gradient(120% 90% at 85% 95%, hsla(var(--h2), 95%, 55%, .8), transparent 60%),
    #0d0b1c;
}
.cover-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cover-ph span {
  position: relative;
  font-weight: 900; font-size: clamp(40px, 6vw, 72px); letter-spacing: .02em; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 28px rgba(255, 255, 255, .45), 0 4px 0 rgba(0, 0, 0, .25);
}

/* Одна игра — крупная карточка */
.featured {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .25s;
}
.featured:hover, .featured:focus-within {
  border-color: rgba(61, 232, 255, .55);
  box-shadow: 0 0 0 1px rgba(61, 232, 255, .25), 0 24px 64px -24px rgba(61, 232, 255, .45);
}
.featured .card__cover { aspect-ratio: auto; min-height: 340px; }
.featured .cover-ph span { font-size: clamp(56px, 8vw, 104px); }
.featured__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; }
.featured__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 850; letter-spacing: -0.01em; }
.featured__desc { color: var(--text-2); font-size: 17px; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.featured__actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.featured .btn--play { position: relative; z-index: 2; }

/* Пусто / загрузка / ошибка */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
}
.empty__icon { width: 64px; height: 64px; color: var(--pink); filter: drop-shadow(0 0 14px rgba(255, 77, 157, .5)); margin-bottom: 4px; }
.empty h3 { font-size: 22px; font-weight: 800; }
.empty p { color: var(--text-2); max-width: 420px; }
.empty .btn { margin-top: 12px; }

.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skeleton__cover { aspect-ratio: 16 / 9; }
.skeleton__line { height: 14px; margin: 20px 20px 0; border-radius: 4px; }
.skeleton__line:last-child { width: 55%; margin-bottom: 24px; }
.skeleton__cover, .skeleton__line {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.footer { padding-top: 24px; padding-bottom: 40px; color: var(--text-3); font-size: 14px; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ───────── Модальные окна ───────── */
.modal {
  width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 77, 157, .12), 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(255, 77, 157, .5);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(5, 4, 12, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal--small { width: min(420px, calc(100vw - 32px)); }
.modal__inner { position: relative; padding: 32px; }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal__title { font-size: 24px; line-height: 1.25; font-weight: 800; padding-right: 40px; }
.modal__text { margin-top: 8px; color: var(--text-2); }
.modal__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.modal__actions--center { justify-content: center; }

.step--center { text-align: center; }
.step--center .modal__title { padding-right: 0; }
.step__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: var(--radius); background: rgba(255, 77, 157, .12); color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 157, .3);
}
.step__icon svg { width: 26px; height: 26px; }
.step--center .step__icon { margin-left: auto; margin-right: auto; }
.step__icon--ok { background: rgba(74, 222, 128, .12); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3); }
.step__icon--err { background: rgba(255, 107, 107, .12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .3); }

.stack { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 600; font-size: 15px; }
.field__opt { font-weight: 400; color: var(--text-3); font-size: 14px; margin-left: 6px; }
.field__hint { color: var(--text-3); font-size: 14px; }
.input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: var(--field); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: rgba(255, 255, 255, .3); }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(61, 232, 255, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.45; }
.input--code { font-family: var(--mono); letter-spacing: .2em; font-size: 18px; }

.form-error {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, .10); border: 1px solid rgba(255, 107, 107, .35);
  color: #ffc9c9; font-size: 15px;
}
.notice {
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); color: #fde7a6;
}
.notice b { color: #fff3cf; }

/* Зона загрузки файлов */
.dropzone {
  position: relative; border: 1.5px dashed rgba(255, 255, 255, .24); border-radius: var(--radius);
  background: rgba(255, 255, 255, .02); transition: border-color .15s, background-color .15s;
}
.dropzone.is-over { border-color: var(--cyan); background: rgba(61, 232, 255, .07); }
.dropzone.is-picked { border-style: solid; border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .05); }
.dropzone__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 20px; }
.dropzone__icon { width: 40px; height: 40px; color: var(--cyan); margin-bottom: 8px; filter: drop-shadow(0 0 10px rgba(61, 232, 255, .45)); }
.dropzone__title { font-weight: 700; }
.dropzone__hint { color: var(--text-3); font-size: 14px; }
.dropzone__buttons { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.dropzone__picked { display: flex; align-items: center; gap: 14px; padding: 16px; }
.dropzone__picked > svg { width: 28px; height: 28px; color: var(--ok); flex: none; }
.dropzone__picked > div { min-width: 0; flex: 1; }
.picked__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked__meta { color: var(--text-3); font-size: 14px; }
.dropzone.is-busy .dropzone__empty { opacity: .5; pointer-events: none; }

.cover-pick { display: flex; align-items: center; gap: 16px; }
.cover-pick__preview {
  position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border-strong); background: var(--field);
}
.cover-pick__preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-pick__preview .cover-ph span { font-size: 22px; }
.cover-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.cover-empty svg { width: 26px; height: 26px; }
.cover-pick__side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.cover-pick__buttons { display: flex; gap: 4px; flex-wrap: wrap; }

/* Прогресс */
.progress { height: 12px; margin-top: 28px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress__fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #c86bff, var(--cyan));
  box-shadow: 0 0 18px rgba(255, 77, 157, .6);
  transition: width .25s ease;
}
.progress.is-indeterminate .progress__fill { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.progress__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font: 500 14px/1.4 var(--mono); color: var(--text-2); }
.progress__meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }

/* Уведомление снизу */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7); font-weight: 600; font-size: 15px;
  animation: pop .2s ease-out;
}

/* ───────── Страница игры ───────── */
.page-play .topbar__inner { gap: 12px; }
.play-head { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.play-head__title {
  font-size: 17px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 12px; border-left: 1px solid var(--border-strong); margin-left: 4px;
}
.play { padding-top: 16px; padding-bottom: 48px; }
.stage {
  position: relative; width: 100%;
  height: calc(100dvh - var(--topbar) - 32px); min-height: 320px;
  border-radius: var(--radius); overflow: hidden; background: #000;
  border: 1px solid rgba(61, 232, 255, .28);
  box-shadow: 0 0 0 1px rgba(255, 77, 157, .10), 0 0 60px -20px rgba(61, 232, 255, .45), 0 0 120px -40px rgba(255, 77, 157, .4);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage__loading {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--text-2); font: 600 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: radial-gradient(60% 60% at 50% 50%, rgba(139, 92, 246, .16), transparent 70%), #05040a;
  transition: opacity .3s;
}
.stage.is-loaded .stage__loading { opacity: 0; pointer-events: none; }
.stage__loading .btn { font-family: var(--font); letter-spacing: 0; text-transform: none; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--pink); border-right-color: var(--cyan);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.play__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin-top: 24px; }
.play__info h2 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.play__desc { margin-top: 8px; color: var(--text-2); max-width: 720px; white-space: pre-line; }
.play__meta { font: 500 13px/1.6 var(--mono); color: var(--text-3); text-align: right; }
.play-notice { margin-bottom: 16px; }
.has-notice .stage { height: calc(100dvh - var(--topbar) - 32px - 104px); }
.btn-label { display: inline; }

.not-found {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center;
}
.not-found h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 850; text-transform: uppercase; }
.not-found p { color: var(--text-2); max-width: 440px; }
.not-found .btn { margin-top: 8px; }

/* ───────── Адаптив ───────── */
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .featured .card__cover { aspect-ratio: 16 / 9; min-height: 0; }
  .featured__body { padding: 28px 24px 32px; }
  .hero__sun { width: 180px; height: 180px; right: -20px; top: 40%; opacity: .28; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .wrap--wide { padding: 0 12px; }
  .hero__content { padding-top: 40px; padding-bottom: 88px; }
  .hero__sun { display: none; }
  .hero__lead { font-size: 16px; margin-top: 16px; }
  .games { padding-top: 32px; padding-bottom: 56px; }
  .games__grid { grid-template-columns: 1fr; gap: 16px; }
  .modal__inner { padding: 24px 20px; }
  .modal__title { font-size: 21px; }
  .cover-pick__preview { width: 104px; }
  .play-head__title { font-size: 15px; }
  .page-play .btn-label { display: none; }
  .play-actions .btn { padding: 0 12px; }
  .stage { height: calc(100dvh - var(--topbar) - 24px); }
  .has-notice .stage { height: calc(100dvh - var(--topbar) - 24px - 160px); }
  .play { padding-top: 12px; }
  .play__info { grid-template-columns: 1fr; gap: 8px; padding: 0 8px; }
  .play__meta { text-align: left; }
}
@media (max-width: 440px) {
  .brand__name { display: none; }
  .topbar .btn-label { display: none; }
  #logoutBtn { padding: 0 10px; }
  .topbar .btn--primary { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .progress.is-indeterminate .progress__fill { animation: none; width: 100% !important; opacity: .6; }
}
