@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #5aa8ff;
}

:root {
  --accent: #5aa8ff;
  --text: #f2f5ff;
  --muted: rgba(232, 238, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
  transition: --accent 1.4s ease;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  background: #040c22;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.no-webgl {
  background: radial-gradient(120% 90% at 30% 0%, #1d4f9e, #040c22 70%);
}

button { font: inherit; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Верхняя панель ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(16px, 4vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.status span { color: var(--text); }

/* ---------- Док с плитками (как меню PS4) ---------- */

.dock {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tile {
  --s: 1;
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  cursor: pointer;
  transform: scale(var(--s));
  transition: transform 0.6s var(--ease), margin 0.6s var(--ease), background 0.4s,
    color 0.4s, border-color 0.4s, box-shadow 0.8s;
}
.tile svg { width: 24px; height: 24px; }
.tile:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.tile.is-active {
  --s: 1.24;
  margin: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 44px -12px var(--accent), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tile-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.tile.is-active .tile-label { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Сцена с панелями ---------- */

.stage {
  position: fixed;
  inset: 200px 0 72px;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
}

.panel {
  grid-area: 1 / 1;
  width: min(1040px, 100%);
  max-height: 100%;
  padding: 8px 4px;
  overflow: visible; /* не обрезаем свечение кнопок и карточек */
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--shift, 80px)) scale(0.97);
  filter: blur(10px);
  transition: opacity 0.5s ease, transform 0.9s var(--ease), filter 0.5s ease,
    visibility 0s linear 0.9s;
}
.panel::-webkit-scrollbar { display: none; }

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: opacity 0.7s ease 0.18s, transform 1s var(--ease) 0.12s, filter 0.7s ease 0.18s,
    visibility 0s;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.8s var(--ease);
}
.panel.is-active .reveal {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i, 0) * 0.07s);
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.meta { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.6s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.btn.primary {
  /* Непрозрачной кнопке размытие фона не нужно, а в Chrome оно рисуется прямоугольником поверх свечения */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #fff;
  border-color: #fff;
  color: #0a1024;
  box-shadow: 0 12px 40px -12px var(--accent);
}
.btn.primary:hover { background: #fff; box-shadow: 0 16px 50px -10px var(--accent); }
.btn:focus-visible, .card:focus-visible, .link-row:focus-visible, .email-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Главная ---------- */

.panel-home { text-align: center; }

.hero {
  margin: 0.12em 0 0.18em;
  font-size: clamp(60px, 12vw, 156px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 520px;
  text-wrap: balance;
  margin: 0 auto 30px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(232, 238, 255, 0.78);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

/* ---------- Работы ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: block;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}
.thumb[data-t="1"] { background: radial-gradient(80% 90% at 20% 20%, #ffb3d9, transparent 60%), linear-gradient(135deg, #6c3bd1, #241047); }
.thumb[data-t="2"] { background: radial-gradient(70% 80% at 80% 30%, #9fe7ff, transparent 60%), linear-gradient(160deg, #3a4cc9, #120f3d); }
.thumb[data-t="3"] { background: radial-gradient(60% 70% at 40% 70%, #ffd29a, transparent 60%), linear-gradient(120deg, #b6418f, #2b0e3a); }
.thumb[data-t="4"] { background: radial-gradient(80% 70% at 70% 80%, #c6b5ff, transparent 60%), linear-gradient(200deg, #5a2a9e, #160a2e); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.8s var(--ease);
}
.thumb-video.is-ready { opacity: 1; }
.card:hover .thumb-video { transform: scale(1.04); }

.thumb-play {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.thumb-play svg { width: 14px; height: 14px; margin-left: 2px; }
.card:hover .thumb-play { background: #fff; color: #0a1024; transform: scale(1.12); }

.thumb-tag {
  position: absolute;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  left: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.card-body { padding: 14px 6px 6px; }
.card-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.card-body p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Обо мне ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.about-text { padding: 28px 30px; }
.about-text p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(242, 245, 255, 0.85);
}
.about-text p:last-of-type { margin-bottom: 0; }

.side {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.muted { color: var(--muted); }

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5ff0b0;
  box-shadow: 0 0 0 0 rgba(95, 240, 176, 0.6);
  animation: live 2.4s infinite;
}
@keyframes live {
  70% { box-shadow: 0 0 0 10px rgba(95, 240, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 240, 176, 0); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.langs {
  list-style: none;
  margin: 6px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.langs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.lvl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.lvl::before {
  content: '';
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) calc(var(--l) / 6 * 100%), rgba(255, 255, 255, 0.12) 0);
}
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: rgba(242, 245, 255, 0.85);
}

/* ---------- Ссылки ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.link-row:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.35); transform: translateX(4px); }

.link-badge {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 14px;
  font-weight: 600;
}
.link-name { display: block; font-size: 15px; font-weight: 500; }
.link-handle { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.link-arrow { margin-left: auto; color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.link-row:hover .link-arrow { transform: translate(3px, -3px); color: #fff; }

/* ---------- Контакты ---------- */

.panel-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-title {
  margin: 14px 0 28px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 26px;
  border-radius: 999px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 24px);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.email-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.02); }
.email-btn svg { width: 20px; height: 20px; color: var(--muted); }

.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Нижние элементы ---------- */

.counter, .hint {
  position: fixed;
  bottom: 24px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.counter { left: clamp(16px, 4vw, 40px); }
.counter span { color: var(--text); }
.hint { right: clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 6px; }

kbd {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a1024;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Видеоплеер ---------- */

.player {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}
.player.is-open { visibility: visible; transition: none; }

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.player.is-open .player-backdrop { opacity: 1; }

.player-box {
  position: relative;
  width: min(1120px, 100%);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}
.player.is-open .player-box { opacity: 1; transform: none; }

.player-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.player-title { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; letter-spacing: -0.02em; }
.player-meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.player-close {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.player-close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }
.player-close svg { width: 18px; height: 18px; }

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 170px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 90px -30px var(--accent);
}
.player-frame.is-fs { max-height: none; border: 0; border-radius: 0; }
.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
}
.player-frame.is-playing:not(.show-ui),
.player-frame.is-playing:not(.show-ui) video { cursor: none; }

.player button:focus-visible, .pc-track:focus-visible, .pc-volume:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.player-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0a1024;
  box-shadow: 0 10px 40px -8px var(--accent);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.player-bigplay:hover { transform: translate(-50%, -50%) scale(1.08); }
.player-bigplay svg { width: 30px; height: 30px; }
.player-bigplay .i-play { margin-left: 4px; }
.player-bigplay .i-replay,
.player-frame.is-ended .player-bigplay .i-play { display: none; }
.player-frame.is-ended .player-bigplay .i-replay { display: block; }
.player-frame.is-playing .player-bigplay,
.player-frame.is-loading .player-bigplay {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

.player-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  animation: spin 0.9s linear infinite;
}
.player-frame.is-loading .player-spinner { opacity: 1; transition-delay: 0.25s; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.player-frame.show-ui .player-controls,
.player-frame:not(.is-playing) .player-controls { opacity: 1; transform: none; }

.pc-track {
  --p: 0;
  --b: 0;
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.pc-rail {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: height 0.2s;
}
.pc-buffer, .pc-progress {
  position: absolute;
  inset: 0;
  transform-origin: left;
}
.pc-buffer { background: rgba(255, 255, 255, 0.25); transform: scaleX(var(--b)); }
.pc-progress { background: linear-gradient(90deg, var(--accent), #fff); transform: scaleX(var(--p)); }
.pc-knob {
  position: absolute;
  left: calc(var(--p) * 100%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: scale(0);
  transition: transform 0.2s;
}
.pc-track:hover .pc-rail, .pc-track.is-seeking .pc-rail { height: 6px; }
.pc-track:hover .pc-knob, .pc-track.is-seeking .pc-knob, .pc-track:focus-visible .pc-knob { transform: scale(1); }

.pc-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a1024;
  font-family: var(--mono);
  font-size: 12px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.pc-track:hover .pc-tip, .pc-track.is-seeking .pc-tip { opacity: 1; }

.pc-row { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.pc-spacer { flex: 1; }

.pc-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.pc-btn:hover { background: rgba(255, 255, 255, 0.12); }
.pc-btn svg { width: 22px; height: 22px; }

.pc-btn .i-pause, .player-frame.is-playing .pc-btn .i-play { display: none; }
.player-frame.is-playing .pc-btn .i-pause { display: block; }
.pc-btn .i-muted, .player-frame.is-muted .pc-btn .i-vol { display: none; }
.player-frame.is-muted .pc-btn .i-muted { display: inline; }
.pc-btn .i-fs-exit, .player-frame.is-fs .pc-btn .i-fs { display: none; }
.player-frame.is-fs .pc-btn .i-fs-exit { display: block; }

.pc-vol { display: flex; align-items: center; }
.pc-volume {
  --v: 0.8;
  width: 0;
  height: 4px;
  margin: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff calc(var(--v) * 100%), rgba(255, 255, 255, 0.25) 0);
  cursor: pointer;
  transition: width 0.3s var(--ease), opacity 0.2s, margin 0.3s var(--ease);
}
.pc-vol:hover .pc-volume, .pc-volume:focus-visible { width: 84px; margin: 0 8px 0 4px; opacity: 1; }
.pc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.pc-volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }

.pc-time {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .player { padding: 12px; }
  .player-frame { border-radius: 14px; }
  .pc-volume { display: none; }
  .player-bigplay { width: 64px; height: 64px; }
}

.noscript { position: fixed; bottom: 16px; left: 16px; z-index: 10; color: var(--muted); }

/* ---------- Мобильная версия ---------- */

@media (max-width: 760px) {
  .dock {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .tile { width: 50px; height: 50px; border-radius: 15px; }
  .tile svg { width: 21px; height: 21px; }
  .tile.is-active { --s: 1.14; margin: 0 4px; }
  .tile-label { top: auto; bottom: calc(100% + 8px); }

  .stage { inset: 74px 0 calc(110px + env(safe-area-inset-bottom)); }
  .panel { align-self: center; overflow: hidden auto; }

  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }

  .about-grid, .link-grid { grid-template-columns: 1fr; }
  .about-text { padding: 22px; }
  .about-text p { font-size: 16px; }

  .counter, .hint { display: none; }
  .toast { bottom: calc(120px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .panel.is-active, .reveal, .panel.is-active .reveal {
    transition-duration: 0.3s;
    transition-delay: 0s;
  }
  .panel { filter: none; transform: none; }
}
