:root {
  color-scheme: dark;
  --ink: #f4efe3;
  --muted: rgba(244, 239, 227, 0.68);
  --violet-950: #0d0913;
  --violet-900: #16101e;
  --violet-800: #2a1b38;
  --violet-600: #654187;
  --gold-100: #f5e8c5;
  --gold-300: #d6b46d;
  --gold-500: #b98538;
  --gold-700: #68431e;
  --cyan: #bdf6ff;
  --wheel-size: clamp(410px, 35vw, 540px);
  --spin-duration: 4.4s;
  --spin-ease: cubic-bezier(0.15, 0.62, 0.2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--violet-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--violet-950);
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.experience {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--violet-950);
}

.scene,
.scene-shade,
.storm-flash {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.9) contrast(1.04) brightness(0.96);
  transform: scale(1.015);
}

.scene-shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(12, 9, 16, 0.74) 0%, rgba(15, 10, 22, 0.48) 31%, rgba(14, 10, 20, 0.07) 58%, rgba(11, 8, 15, 0.24) 100%),
    linear-gradient(180deg, rgba(10, 7, 14, 0.48) 0%, transparent 31%, transparent 68%, rgba(9, 6, 13, 0.72) 100%);
}

.storm-flash {
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 67% 25%, rgba(225, 251, 255, 0.8), rgba(125, 173, 255, 0.25) 17%, transparent 42%),
    rgba(191, 239, 255, 0.12);
}

.storm-flash.is-active {
  animation: storm 700ms ease-out;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 1680px);
  min-height: 84px;
  margin: 0 auto;
  padding: 20px clamp(24px, 4vw, 70px) 8px;
}

.topbar-meta {
  order: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  order: -1;
  display: grid;
  place-items: center;
  width: clamp(210px, 18vw, 265px);
  padding: 0;
  border: 0;
  background: none;
  filter: drop-shadow(0 8px 18px rgba(6, 4, 9, 0.28));
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(30, 18, 8, 0.42));
}

.attempts {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  background: none;
  text-transform: uppercase;
}

.attempts::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e7bd5e);
}

.attempts__label {
  font-size: clamp(0.66rem, 0.8vw, 0.78rem);
  font-weight: 750;
  letter-spacing: 0.12em;
}

.attempts__value {
  color: var(--gold-100);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 0 14px rgba(236, 181, 65, 0.44);
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.locale-switch button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.locale-switch button[aria-pressed="true"] {
  border-color: var(--gold-300);
  color: var(--gold-100);
}

.locale-switch button:hover {
  color: #fff;
}

.locale-short {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(470px, 1.12fr) minmax(180px, 0.38fr);
  align-items: center;
  width: min(100%, 1740px);
  min-height: calc(100svh - 160px);
  margin: 0 auto;
  padding: 10px clamp(24px, 4vw, 70px) 76px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  max-width: 510px;
  padding-bottom: 1vh;
  text-shadow: 0 2px 12px rgba(8, 5, 12, 0.72);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #d8bd83;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: #a78345;
}

.eyebrow::after {
  display: none;
}

h1,
h2 {
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-transform: none;
  color: #efe5cf;
  text-shadow: 0 2px 0 rgba(116, 78, 34, 0.48), 0 12px 34px rgba(4, 3, 7, 0.52);
}

.member-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 18px;
  color: rgba(244, 239, 227, 0.78);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(10, 2, 27, 0.96);
}

.member-link strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(214, 180, 109, 0.68);
  color: var(--gold-100);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.member-link i {
  color: var(--gold-300);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1;
  transition: transform 160ms ease;
}

.member-link:hover strong {
  border-color: #fff1b3;
  color: #fff8df;
}

.member-link:hover i {
  transform: translateX(3px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.game-stage {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  min-width: 0;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--wheel-size);
  padding-top: 25px;
  container-type: inline-size;
}

.wheel-rim {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--wheel-size);
  aspect-ratio: 1;
  border: clamp(7px, 0.72vw, 11px) solid #8f6836;
  border-radius: 50%;
  container-type: inline-size;
  background: #18111e;
  box-shadow:
    inset 0 0 0 2px #d0aa63,
    inset 0 0 0 9px #2c1c38,
    0 0 0 1px rgba(232, 207, 153, 0.46),
    0 22px 42px rgba(5, 3, 8, 0.58);
}

.wheel-rim::before,
.wheel-rim::after {
  content: "";
  position: absolute;
  z-index: 5;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-rim::before {
  inset: 2.1%;
  border: 1px solid rgba(224, 190, 118, 0.72);
  box-shadow: none;
}

.wheel-rim::after {
  inset: -1.6%;
  border: 1px solid rgba(255, 245, 217, 0.16);
}

.wheel {
  position: absolute;
  inset: 5.4%;
  overflow: hidden;
  border: 2px solid #b58d4d;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -22.5deg, transparent 0 44.3deg, rgba(210, 175, 99, 0.9) 44.3deg 45deg),
    conic-gradient(
      from -22.5deg,
      #2a1938 0deg 45deg,
      #352142 45deg 90deg,
      #100d15 90deg 135deg,
      #24162f 135deg 180deg,
      #2a1938 180deg 225deg,
      #100d15 225deg 270deg,
      #2a1938 270deg 315deg,
      #17111f 315deg 360deg
    );
  box-shadow: inset 0 0 34px rgba(3, 2, 5, 0.62);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition: transform var(--spin-duration) var(--spin-ease);
}

.rim-studs {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: 0.52;
  pointer-events: none;
}

.rim-studs i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(5px, 1.6cqi, 9px);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 217, 170, 0.72);
  border-radius: 50%;
  background: #b38a4b;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-46cqi);
}

.rim-studs i:nth-child(even) {
  display: none;
}

.wheel-label {
  --radius: 30cqi;
  --wheel-counter-rotation: 0deg;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 23%;
  color: #f1ead9;
  text-align: center;
  text-shadow: 0 1px 3px rgba(4, 3, 6, 0.9);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(0px - var(--radius))) rotate(var(--counter-angle)) rotate(var(--wheel-counter-rotation));
  transform-origin: center;
  backface-visibility: hidden;
  transition: transform var(--spin-duration) var(--spin-ease);
}

.wheel-label b {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: clamp(0.72rem, 1.55vw, 1.28rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.wheel-label small {
  margin-top: 3px;
  font-size: clamp(0.4rem, 0.62vw, 0.58rem);
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wheel-label--jackpot {
  color: #f0dcae;
  text-shadow: 0 1px 3px rgba(18, 10, 4, 0.92);
}

.wheel-label--jackpot small {
  color: #e4c87f;
  letter-spacing: 0.05em;
}

.wheel-label--empty {
  color: rgba(241, 234, 217, 0.46);
  text-shadow: none;
}

.wheel-label--empty b {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.7vw, 1.45rem);
  font-weight: 500;
}

.wheel-label--empty small {
  color: rgba(241, 234, 217, 0.58);
  letter-spacing: 0.09em;
}

.wheel-hub {
  position: absolute;
  z-index: 7;
  width: 27%;
  aspect-ratio: 1;
  border: clamp(3px, 0.42vw, 6px) solid #b9904d;
  border-radius: 50%;
  background: #1a1121;
  box-shadow:
    inset 0 0 0 2px rgba(227, 197, 134, 0.12),
    0 0 0 4px #2b1a35;
}

.spin-button {
  position: absolute;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 22.5%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  border: 1px solid #ead49b;
  color: #21171d;
  background: #d3ad62;
  box-shadow:
    inset 0 0 0 3px rgba(36, 23, 28, 0.16),
    0 0 0 3px #76542b,
    0 8px 22px rgba(5, 3, 8, 0.34);
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

/* только для мыши: на телефоне эффект наведения «залипал» после нажатия */
@media (hover: hover) {
  .spin-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);
    background: #dfbd77;
  }
}

.spin-button:active:not(:disabled) {
  transform: translateY(3px) scale(0.97);
  box-shadow:
    inset 0 0 0 3px rgba(36, 23, 28, 0.2),
    0 0 0 3px #76542b,
    0 3px 12px rgba(5, 3, 8, 0.4);
}

.spin-button:focus-visible,
.locale-switch button:focus-visible,
.member-link:focus-visible,
.legal button:focus-visible,
.primary-cta:focus-visible,
.secondary-cta:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.spin-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35) brightness(0.72);
}

.spin-button__bolt {
  position: absolute;
  top: 10%;
  color: #4a3421;
  font-family: Georgia, serif;
  font-size: clamp(0.65rem, 1.1vw, 1rem);
}

.spin-button__label {
  padding-top: 4%;
  font-size: clamp(0.64rem, 1vw, 0.92rem);
  font-weight: 950;
  letter-spacing: 0.055em;
}

.spin-button__meta {
  position: absolute;
  bottom: 15%;
  font-size: clamp(0.38rem, 0.55vw, 0.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.68;
}

.wheel-wrap.is-spinning .wheel,
.wheel-wrap.is-spinning .wheel-label {
  will-change: transform;
}

.wheel-wrap.is-settled .pointer {
  animation: pointer-settle 420ms ease-out;
}

.pointer {
  position: absolute;
  z-index: 12;
  top: 5px;
  left: 50%;
  width: clamp(42px, 5.2vw, 72px);
  height: clamp(64px, 7vw, 94px);
  transform: translateX(-50%);
  filter: drop-shadow(0 7px 8px rgba(5, 3, 8, 0.58));
}

.pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid #efd89d;
  border-radius: 2px;
  background: #b98c45;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: none;
}

.pointer span {
  position: absolute;
  left: 50%;
  top: 19%;
  width: 72%;
  height: 68%;
  background: #c79a50;
  clip-path: polygon(50% 100%, 16% 0, 84% 0);
  transform: translateX(-50%);
}

.deity {
  position: absolute;
  z-index: 3;
  top: clamp(0px, 1vh, 14px);
  right: -6vw;
  bottom: auto;
  width: min(39vw, 70vh, 600px);
  pointer-events: none;
}

.deity img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.86;
  filter: grayscale(0.12) saturate(0.78) sepia(0.04) contrast(1.06) brightness(0.94) drop-shadow(-16px 16px 24px rgba(6, 4, 9, 0.42));
  transform: none;
}

.deity picture {
  display: block;
}

.legal {
  position: absolute;
  z-index: 24;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.66);
  background: none;
  transform: translateX(-50%);
  font-size: 0.67rem;
}

.legal .age {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.legal button {
  padding: 0;
  border: 0;
  color: var(--gold-300);
  background: none;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reward-dialog {
  width: min(94vw, 720px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.info-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.reward-dialog::backdrop,
.info-dialog::backdrop {
  background: rgba(7, 5, 9, 0.82);
  backdrop-filter: blur(5px);
}

.reward-dialog[open],
.info-dialog[open] {
  animation: dialog-in 340ms cubic-bezier(0.2, 0.84, 0.26, 1);
}

.dialog-frame {
  position: relative;
  overflow: hidden;
  padding: 46px 42px 36px;
  border: 1px solid #a98548;
  border-radius: 8px;
  background: #15101a;
  box-shadow: 0 30px 90px rgba(4, 3, 5, 0.72);
  text-align: center;
}

.dialog-frame::before,
.dialog-frame::after {
  content: "✦";
  display: none;
  position: absolute;
  top: 24px;
  color: rgba(255, 222, 130, 0.28);
  font-size: 2rem;
}

.dialog-frame::before {
  left: 28px;
}

.dialog-frame::after {
  right: 28px;
}

.dialog-frame--compact {
  padding-top: 42px;
}

.dialog-frame--reward {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(205px, 0.72fr);
  align-items: stretch;
  min-height: 470px;
  padding: 38px 24px 34px 42px;
  background:
    radial-gradient(circle at 86% 24%, rgba(184, 133, 61, 0.16), transparent 31%),
    linear-gradient(104deg, #15101a 0%, #15101a 57%, #1d1324 100%);
  text-align: left;
}

.reward-content {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}

.reward-brand {
  display: block;
  width: min(188px, 60%);
  height: auto;
  margin: 0 0 28px;
  filter: drop-shadow(0 5px 14px rgba(5, 3, 8, 0.42));
}

.reward-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-width: 0;
  margin: -38px -24px -34px 0;
  overflow: hidden;
  pointer-events: none;
}

.reward-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% -22% 4% -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 161, 80, 0.18), transparent 66%);
  filter: blur(10px);
}

.reward-zeus-picture {
  position: absolute;
  z-index: 1;
  right: -50px;
  bottom: -58px;
  display: block;
  width: 330px;
  max-width: none;
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}

.reward-zeus {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.78) contrast(1.02) brightness(0.9) drop-shadow(-12px 12px 22px rgba(4, 3, 7, 0.5));
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(235, 216, 176, 0.18);
  border-radius: 2px;
  color: #fff4cf;
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.reward-emblem {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border: 1px solid #b99350;
  border-radius: 50%;
  color: #d2b16e;
  background: transparent;
  box-shadow: none;
  font-family: Baskerville, Georgia, serif;
  font-size: 2.1rem;
  font-weight: 900;
}

.dialog-kicker {
  margin: 0 0 8px;
  color: var(--gold-300);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dialog-frame h2 {
  margin: 0;
  color: var(--gold-100);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1;
}

.dialog-frame--reward h2 {
  max-width: 410px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.reward-name {
  max-width: 430px;
  margin: 18px auto 8px;
  color: #fff;
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.45rem, 4.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.06;
  text-transform: none;
  text-shadow: none;
}

.dialog-frame--reward .reward-name {
  margin-inline: 0;
}

.dialog-copy,
.info-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dialog-copy {
  margin: 0 0 8px;
}

.redirect-notice {
  margin: 0 0 24px;
  color: rgba(255, 246, 213, 0.72);
  font-size: 0.78rem;
}

.redirect-notice strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  color: var(--gold-100);
  font-size: 1rem;
}

.info-copy {
  margin: 20px auto 24px;
  text-align: left;
}

.info-copy p {
  margin: 0 0 12px;
}

.primary-cta,
.secondary-cta {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 50px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-cta {
  border: 1px solid #d9bd80;
  color: #171118;
  background: #d1ae68;
  box-shadow: 0 12px 28px rgba(4, 3, 5, 0.28);
}

.primary-cta:hover {
  filter: brightness(1.08);
}

.secondary-cta {
  margin-top: 14px;
  border: 1px solid rgba(255, 235, 170, 0.24);
  color: var(--gold-100);
  background: transparent;
}

.secondary-cta[hidden] {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 86px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 222, 134, 0.34);
  border-radius: 4px;
  color: #fff8dc;
  background: rgba(25, 7, 58, 0.92);
  box-shadow: 0 14px 40px rgba(6, 0, 22, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
  text-align: center;
  font-size: 0.82rem;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.burst {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 5px;
  height: 10px;
  border-radius: 1px;
  background: var(--spark-color);
  box-shadow: none;
  animation: burst-out 1.1s cubic-bezier(0.14, 0.72, 0.18, 1) forwards;
}

@keyframes storm {
  0%, 100% { opacity: 0; }
  14% { opacity: 0.22; }
  24% { opacity: 0.08; }
  36% { opacity: 0.16; }
  64% { opacity: 0; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pointer-settle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  35% { transform: translateX(-50%) translateY(7px); }
  70% { transform: translateX(-50%) translateY(-2px); }
}

@keyframes burst-out {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(0.3); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--spin)) scale(1); }
}

@media (max-width: 1180px) {
  :root {
    --wheel-size: clamp(390px, 42vw, 500px);
  }

  .hero {
    grid-template-columns: minmax(300px, 0.86fr) minmax(400px, 1.14fr) minmax(150px, 0.3fr);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 4.4vw, 3.8rem);
  }

  .deity {
    right: -10vw;
    width: min(44vw, 68vh, 560px);
  }

}

@media (max-width: 900px) {
  :root {
    /* 78svh — чтобы на телефоне, повёрнутом боком, колесо помещалось по высоте */
    --wheel-size: min(72vw, 500px, 78svh);
  }

  .experience {
    min-height: 100svh;
    overflow-y: auto;
  }

  /* без увеличения: иначе нижний край картинки вылезал из-под затемнения
     и на iPhone светился полоской над панелью Safari */
  .scene {
    position: fixed;
    object-position: 52% center;
    transform: none;
  }

  .scene-shade {
    position: fixed;
    inset: -12px;
    background:
      linear-gradient(180deg, rgba(10, 7, 14, 0.9) 0%, rgba(13, 9, 18, 0.48) 34%, rgba(10, 7, 14, 0.82) 100%),
      linear-gradient(90deg, rgba(14, 10, 20, 0.34), rgba(12, 8, 17, 0.08));
  }

  .topbar {
    display: flex;
    gap: 16px;
    min-height: 72px;
    padding: 14px 18px 8px;
  }

  .brand {
    width: min(34vw, 230px);
    padding: 0;
  }

  .topbar-meta {
    justify-self: auto;
  }

  .attempts {
    padding-left: 11px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 26px 18px 105px;
  }

  .hero-copy {
    align-self: center;
    max-width: 590px;
    padding: 0;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 7.6vw, 4rem);
    line-height: 0.94;
  }

  .game-stage {
    margin-top: 18px;
  }

  .deity {
    z-index: 2;
    right: -14vw;
    top: 72px;
    bottom: auto;
    width: min(60vw, 64vh, 460px);
    opacity: 0.8;
  }

  .wheel-wrap {
    z-index: 4;
  }
}

@media (max-width: 560px) {
  :root {
    --wheel-size: min(88vw, 360px);
  }

  .topbar {
    padding-inline: 12px;
  }

  .topbar-meta {
    gap: 8px;
  }

  .locale-switch {
    gap: 4px;
    font-size: 0.61rem;
  }

  .locale-long {
    display: none;
  }

  .locale-short {
    display: inline;
  }

  .brand {
    width: min(48vw, 190px);
  }

  .attempts {
    gap: 7px;
    min-height: 38px;
    padding: 4px 0;
  }

  .attempts::before {
    width: 15px;
  }

  .attempts__label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .attempts__value {
    font-size: 1.18rem;
  }

  .hero {
    padding-top: 18px;
    padding-inline: 8px;
    padding-bottom: 102px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 10.5vw, 3rem);
    line-height: 0.94;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.64rem;
  }

  .member-link {
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: 14px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .member-link strong {
    font-size: 0.76rem;
  }

  .wheel-wrap {
    padding-top: 20px;
  }

  .pointer {
    top: 4px;
    width: 46px;
    height: 64px;
  }

  .wheel-label b {
    font-size: clamp(0.7rem, 4vw, 1.05rem);
  }

  .wheel-label small {
    font-size: clamp(0.38rem, 2vw, 0.54rem);
  }

  .spin-button__label {
    font-size: clamp(0.56rem, 2.8vw, 0.76rem);
  }

  .spin-button__meta {
    bottom: 13%;
    font-size: 0.38rem;
  }

  .deity {
    display: none;
  }

  .legal {
    gap: 8px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .legal .age {
    width: 23px;
    height: 23px;
  }

  .dialog-frame {
    padding: 42px 22px 28px;
    border-radius: 8px;
  }

  .reward-dialog {
    width: min(94vw, 410px);
    max-height: 92svh;
  }

  .dialog-frame--reward {
    display: block;
    min-height: 0;
    max-height: 92svh;
    padding: 28px 20px 26px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 8% 18%, rgba(184, 133, 61, 0.14), transparent 31%),
      linear-gradient(155deg, #17111c 0%, #120e17 100%);
    text-align: center;
  }

  .reward-content {
    z-index: 2;
  }

  .reward-brand {
    width: 148px;
    margin: 0 auto 72px;
  }

  .reward-visual {
    position: absolute;
    z-index: 1;
    inset: 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
  }

  .reward-visual::before {
    inset: -5% 48% 48% -24%;
    opacity: 0.74;
  }

  .reward-zeus-picture {
    top: 34px;
    right: auto;
    bottom: auto;
    left: -34px;
    width: 176px;
    opacity: 0.54;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 94%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 94%);
  }

  .reward-zeus {
    filter: saturate(0.62) contrast(1.03) brightness(0.82) drop-shadow(8px 10px 18px rgba(4, 3, 7, 0.42));
  }

  .dialog-frame--reward h2 {
    max-width: 310px;
    margin-inline: auto;
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .dialog-frame--reward .reward-name {
    max-width: 310px;
    margin-inline: auto;
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
  }
}

@media (max-width: 380px) {
  :root {
    --wheel-size: min(86vw, 350px);
  }

  .deity {
    right: -52vw;
    opacity: 0.32;
  }

}

@media (max-height: 760px) and (min-width: 901px) {
  :root {
    --wheel-size: min(68vh, 520px);
  }

  .topbar {
    min-height: 76px;
    padding-top: 12px;
  }

  .brand {
    width: min(18vw, 240px);
  }

  .hero {
    min-height: calc(100svh - 110px);
    padding-bottom: 52px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .deity {
    width: min(38vw, 520px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .wheel,
  .wheel-label {
    transition-duration: 320ms;
  }
}
