/* ============ markiz.top — игры в неоне ============ */

:root {
  --bg: #07050d;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(168, 85, 247, 0.18);
  --border-strong: rgba(192, 132, 252, 0.45);
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --magenta: #e879f9;
  --indigo: #6d28d9;
  --text: #efe9ff;
  --muted: #a99cc4;
  --radius: 22px;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --shadow-glow: 0 0 0 1px rgba(192, 132, 252, 0.22), 0 18px 60px -18px rgba(124, 58, 237, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13px, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(192, 132, 252, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--violet);
  color: #0b0714;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}

.skip:focus {
  left: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ============ фон ============ */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(109, 40, 217, 0.35), transparent 60%),
    radial-gradient(80% 60% at 90% 10%, rgba(232, 121, 249, 0.14), transparent 55%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb--1 {
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  left: -10vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.75), transparent 65%);
  animation: drift 22s var(--ease) infinite alternate;
}

.orb--2 {
  width: 40vw;
  height: 40vw;
  min-width: 280px;
  min-height: 280px;
  right: -8vw;
  top: 8vw;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.45), transparent 65%);
  animation: drift 28s var(--ease) infinite alternate-reverse;
}

.orb--3 {
  width: 52vw;
  height: 52vw;
  min-width: 360px;
  min-height: 360px;
  left: 25vw;
  bottom: -30vw;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.55), transparent 65%);
  animation: drift 34s var(--ease) infinite alternate;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 132, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 75%);
  opacity: 0.5;
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(0.96); }
}

/* ============ шапка ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(9, 6, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(168, 85, 247, 0.16);
}

.nav__inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.95), rgba(109, 40, 217, 0.9));
  color: #0a0613;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand__name {
  font-size: 16px;
}

.brand__dot {
  color: var(--violet-bright);
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.9);
}

.nav__links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.25s, background 0.25s;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet-bright);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
  transition: transform 0.3s var(--ease);
}

.nav__toggle span + span {
  margin-top: 6px;
}

/* ============ кнопки ============ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--primary {
  color: #0b0614;
  background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 45%, #a855f7 100%);
  box-shadow: 0 0 0 1px rgba(233, 213, 255, 0.4) inset, 0 12px 34px -10px rgba(168, 85, 247, 0.85);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(233, 213, 255, 0.6) inset, 0 18px 46px -8px rgba(192, 132, 252, 0.95);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(168, 85, 247, 0.07);
  box-shadow: inset 0 0 22px rgba(168, 85, 247, 0.12);
}

.btn--ghost:hover {
  border-color: rgba(232, 121, 249, 0.8);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: inset 0 0 26px rgba(192, 132, 252, 0.2), 0 10px 30px -12px rgba(168, 85, 247, 0.7);
  transform: translateY(-2px);
}

.btn__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

/* ============ hero ============ */

.hero {
  padding: clamp(130px, 18vh, 200px) 0 clamp(56px, 8vh, 90px);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e879f9;
  animation: ping 2.4s infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(232, 121, 249, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(232, 121, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 121, 249, 0); }
}

.hero__title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f7f2ff;
  text-shadow: 0 0 26px rgba(168, 85, 247, 0.35);
}

.hero__subtitle {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: 0.02em;
  color: #d8c9ff;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.neon {
  background: linear-gradient(100deg, #f0abfc 0%, #c084fc 45%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(192, 132, 252, 0.55)) drop-shadow(0 0 46px rgba(168, 85, 247, 0.3));
}

.hero__text {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.1vw + 12px, 18px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ============ секции ============ */

.section {
  padding: clamp(52px, 8vh, 90px) 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-bright);
  text-shadow: 0 0 16px rgba(192, 132, 252, 0.8);
}

.section__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.section__lead {
  margin: 16px 0 0;
  color: var(--muted);
}

/* ============ стример в кубе ============ */

.streamer-wrap {
  position: relative;
  width: min(440px, calc(100% - 24px));
  margin-inline: auto;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid rgba(192, 132, 252, 0.5);
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.18), rgba(10, 6, 20, 0.6));
  box-shadow: 0 0 48px -14px rgba(168, 85, 247, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

/* задняя грань — «глубина» куба */
.streamer-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 38px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  transform: translate(10px, 10px);
  box-shadow: 0 0 34px -14px rgba(232, 121, 249, 0.75);
  transition: transform 0.35s var(--ease);
}

.streamer-wrap:hover {
  transform: translate(-2px, -2px);
  border-color: rgba(232, 121, 249, 0.8);
  box-shadow: 0 0 64px -12px rgba(192, 132, 252, 1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.streamer-wrap:hover::before {
  transform: translate(14px, 14px);
}

/* углы куба */
.streamer-wrap::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 26px;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9),
    linear-gradient(#e879f9, #e879f9);
  background-size:
    16px 2px, 2px 16px,
    16px 2px, 2px 16px,
    16px 2px, 2px 16px,
    16px 2px, 2px 16px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-repeat: no-repeat;
  transition: opacity 0.35s;
}

.streamer-wrap:hover::after {
  opacity: 1;
}

.streamer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 330px;
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(192, 132, 252, 0.2);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 65%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  text-align: center;
}

.streamer__avatar {
  display: grid;
  place-items: center;
  width: clamp(68px, 9vw, 88px);
  aspect-ratio: 1;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: radial-gradient(circle at 30% 25%, rgba(232, 121, 249, 0.5), rgba(109, 40, 217, 0.4) 60%, rgba(10, 6, 20, 0.95));
  box-shadow: 0 0 30px -6px rgba(168, 85, 247, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.streamer__emoji {
  font-size: clamp(30px, 4.4vw, 42px);
  filter: drop-shadow(0 0 12px rgba(240, 171, 252, 0.65));
}

.streamer__tag {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-bright);
}

.streamer__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
}

.streamer__cta {
  margin-top: 10px;
}

/* ============ игры в конце ============ */

.section--games {
  padding-bottom: clamp(60px, 9vh, 110px);
}

.games-end {
  text-align: center;
}

.games-end .section__title {
  margin-top: 12px;
}

.games-end .section__lead {
  margin-inline: auto;
  max-width: 52ch;
}

.mini-games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* ============ подвал ============ */

.footer {
  margin-top: clamp(30px, 5vw, 60px);
  border-top: 1px solid rgba(168, 85, 247, 0.14);
  background: rgba(7, 5, 13, 0.6);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 32px 0 40px;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.footer__links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 13.5px;
}

.footer__links a {
  color: var(--muted);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--violet-bright);
}

/* ============ модальное окно ============ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade 0.25s var(--ease);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(109, 40, 217, 0.35), transparent 70%),
    linear-gradient(165deg, rgba(26, 15, 45, 0.98), rgba(9, 5, 18, 0.98));
  box-shadow: 0 40px 100px -40px rgba(124, 58, 237, 1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pop 0.28s var(--ease);
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(168, 85, 247, 0.1);
  color: #e9d5ff;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.modal__close:hover {
  background: rgba(232, 121, 249, 0.2);
  transform: rotate(90deg);
}

.modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 16px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.hud__item strong {
  color: #f0abfc;
  font-family: var(--font-display);
  font-size: 14px;
  margin-left: 4px;
  text-shadow: 0 0 14px rgba(240, 171, 252, 0.7);
}

.hud__item--hint {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.2);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #cdbdf5;
}

/* поле */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.2);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(109, 40, 217, 0.25), transparent 70%),
    #060310;
}

#gameCanvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58vh;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(6, 3, 14, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.overlay[hidden] {
  display: none;
}

.overlay__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 28px);
  text-shadow: 0 0 24px rgba(192, 132, 252, 0.6);
}

.overlay__text {
  margin: 0 0 8px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
}

/* сенсорный крестовик */

.pad {
  display: none;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 52px);
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.pad__btn {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  font-size: 19px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s, transform 0.15s;
}

.pad__btn:active {
  background: rgba(232, 121, 249, 0.3);
  transform: scale(0.95);
}

.pad__btn--up    { grid-area: 1 / 2; }
.pad__btn--left  { grid-area: 2 / 1; }
.pad__btn--down  { grid-area: 2 / 2; }
.pad__btn--right { grid-area: 2 / 3; }

.modal[data-game="breakout"] .pad {
  display: none;
}

/* ============ появление при скролле ============ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ адаптив ============ */

@media (max-width: 900px) {
  .streamer {
    padding: 26px 20px;
  }
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(10, 6, 20, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav__pill {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav__toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .footer__links {
    margin-left: 0;
  }

  .modal {
    padding: 10px;
  }

  .modal__dialog {
    padding: 16px;
  }

  #gameCanvas {
    max-height: 52vh;
  }

  .pad {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
