/* Колесо удачи (/wheel) */
.v3 .wh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
.v3 .wh-side { grid-column: auto; }
.v3 .wh-stage { display: grid; justify-items: center; gap: 14px; }
.v3 .wh-page { padding-top: 8px; }
.v3 .wh-wheel { position: relative; width: min(100%, 520px, calc(100dvh / var(--z, 1) - 320px)); min-width: 260px; aspect-ratio: 1; }
.v3 .wh-disc { width: 100%; height: 100%; display: block; transform-origin: 50% 50%;
  transition: transform 5s cubic-bezier(.12, .7, .08, 1); filter: drop-shadow(0 24px 50px rgb(0 0 0 / .7)); }
.v3 .wh-lbl { fill: #fff; font: 800 12.5px/1 var(--font, system-ui), sans-serif; letter-spacing: .01em; paint-order: stroke; stroke: rgb(0 0 0 / .55); stroke-width: 3.5px; }
.v3 .wh-ico { filter: invert(84%) sepia(38%) saturate(620%) hue-rotate(345deg) brightness(102%); }
.v3 .wh-bulb { fill: #fff7d6; filter: drop-shadow(0 0 4px #ffe27a); animation: wh-blink 1.2s steps(1) infinite; }
.v3 .wh-bulb.is-b { animation-delay: .6s; }
@keyframes wh-blink { 0%, 49% { fill: #fff7d6; opacity: 1; } 50%, 100% { fill: #f2c14e; opacity: .55; } }
.v3 .wh-pin { position: absolute; left: 50%; top: -6%; width: 14%; height: auto; translate: -50% 0; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / .7)); }
.v3 .wh-spin { min-width: 220px; font-size: 16px; }
.v3 .wh-spin:disabled { opacity: .75; cursor: default; }
.v3 .wh-note { margin: 0; color: var(--faint); font-size: 14px; min-height: 1.4em; text-align: center; }
.v3 .wh-result { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; background: var(--glass-hi); border: 1px solid rgb(var(--accent-rgb, 227 38 54) / .35); }
.v3 .wh-result p { margin: 0 0 10px; color: var(--dim); }
.v3 .wh-won { font-size: 16px; color: var(--text) !important; }
.v3 .wh-won b { color: #f6d48a; }
.v3 .wh-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.v3 .wh-pick { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--faint); }
.v3 .wh-pick select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-hi); background: rgb(16 18 24); color: var(--text); font: inherit; font-size: 14px; }
.v3 .wh-err { color: #ff8a8a !important; margin-top: 8px !important; }
.v3 .wh-odds { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.v3 .wh-odds li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.v3 .wh-odds b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .v3 .wh-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .v3 .wh-disc { transition-duration: .01s; } }
@media (prefers-reduced-motion: reduce) { .v3 .wh-bulb { animation: none; } }
@media (max-width: 960px) { .v3 .wh-wheel { width: min(100%, 460px); } }
.v3 .wh-lead { margin: 0 0 18px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.v3 .wh-page { margin-top: 0; }
.v3 .wh-wheel { margin-top: 22px; }
.v3 .wh-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
body[data-page="wheel"] .xp-head { padding-top: clamp(92px, 8vw, 112px); }
body[data-page="wheel"] .xp-head h1 { font-size: clamp(34px, 4vw, 52px); }
.v3 .wh-lbl.is-jack { fill: #4a2a00; stroke: rgb(255 240 190 / .7); font-size: 9px; letter-spacing: .02em; text-transform: uppercase; }
.v3 .wh-odds li.is-jack span { color: #f6d48a; }
.v3 .wh-odds li.is-jack em { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; margin-right: 4px; border-radius: 999px; background: linear-gradient(180deg, #f6d48a, #b07a2e); color: #2a1600; }

/* Джекпот справа: золото, перелив и подсветка — чтобы сразу бросалось в глаза */
.v3 .wh-side-col { display: grid; gap: 18px; align-content: start; }
/* три колонки (wh-grid3, колесо и скретч-карта; решение владельца 24.10): джекпот с лентой | игра | шансы и правила.
   Уже 1240 px — игра слева, справа джекпот с лентой и под ними шансы; уже 960 px — всё в столбик, игра первой. */
.v3 .wh-grid3 { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "left stage right"; gap: 28px; }
.v3 .wh-grid3 > .wh-stage { grid-area: stage; }
.v3 .wh-grid3 > .wh-left { grid-area: left; }
.v3 .wh-grid3 > .wh-right { grid-area: right; }
.v3 .wh-left, .v3 .wh-right { display: grid; gap: 18px; align-content: start; min-width: 0; }
.v3 .wh-left .wh-jack { min-height: 300px; }
.v3 .wh-left .wh-jack-name { font-size: clamp(24px, 2.2vw, 30px); }
.v3 .wh-stage .wh-result { width: min(100%, 520px); margin: 4px 0 0; }
@media (max-width: 1240px) { .v3 .wh-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-areas: "stage left" "stage right"; } }
@media (max-width: 960px) { .v3 .wh-grid3 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "left" "right"; } }
.v3 .wh-jack { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; min-height: 380px; display: grid; align-items: end;
  background: #0b0806; box-shadow: 0 0 0 1px rgb(246 212 138 / .45), 0 18px 60px -18px rgb(242 193 78 / .55);
  animation: wh-jack-glow 3.2s ease-in-out infinite; }
.v3 .wh-jack-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; z-index: -2; }
.v3 .wh-jack::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 8 6 / 0) 45%, rgb(11 8 6 / .75) 72%, rgb(11 8 6 / .96)); }
.v3 .wh-jack::after { content: ""; position: absolute; inset: -40% -60%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgb(255 240 190 / .22) 50%, transparent 58%); animation: wh-jack-shine 4.5s ease-in-out infinite; }
.v3 .wh-jack-in { position: relative; z-index: 1; display: grid; gap: 6px; padding: 20px 20px 18px; }
.v3 .wh-jack-tag { justify-self: start; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #2a1600; background: linear-gradient(180deg, #fff1b0, #e3a93a); box-shadow: 0 0 18px rgb(242 193 78 / .7); animation: wh-jack-pulse 1.6s ease-in-out infinite; }
.v3 .wh-jack-name { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff6cf 0%, #f2c14e 30%, #fff1b0 50%, #c8862a 70%, #fff6cf 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgb(242 193 78 / .45)); animation: wh-gold 3.5s linear infinite; }
.v3 .wh-jack-sub { color: #f3e3c0; font-size: 14px; line-height: 1.4; }
.v3 .wh-jack-meta { color: #f6d48a; font-size: 13px; font-weight: 600; min-height: 1.3em; }
@keyframes wh-jack-glow { 0%, 100% { box-shadow: 0 0 0 1px rgb(246 212 138 / .45), 0 18px 60px -18px rgb(242 193 78 / .5); }
  50% { box-shadow: 0 0 0 1px rgb(255 236 170 / .9), 0 18px 70px -10px rgb(242 193 78 / .85); } }
@keyframes wh-jack-shine { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes wh-jack-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes wh-gold { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .v3 .wh-jack, .v3 .wh-jack::after, .v3 .wh-jack-tag, .v3 .wh-jack-name { animation: none; } }

/* Сегодня выиграли */
.v3 .wh-feed { list-style: none; margin: 0 0 18px; padding: 0; display: grid; max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.v3 .wh-feed li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.v3 .wh-feed-t { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; }
.v3 .wh-feed-who { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3 .wh-feed-who.is-hero { color: var(--text); font-weight: 600; }
.v3 .wh-feed b { color: #f6d48a; font-weight: 600; white-space: nowrap; }
.v3 .wh-feed li.is-jack { background: linear-gradient(90deg, rgb(242 193 78 / .2), transparent); border-radius: 8px; }
.v3 .wh-feed li.is-jack b { color: #fff1b0; }
.v3 .wh-feed .wh-feed-empty { display: block; color: var(--faint); }

@media (max-width: 960px) { .v3 .wh-jack { min-height: 320px; } }

/* Гость нажал «Крутить»: окно с предложением регистрации */
.v3 .wh-reg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; overflow: hidden; color: var(--text);
  background: #120d0a; box-shadow: 0 0 0 1px rgb(246 212 138 / .5), 0 30px 90px -20px rgb(0 0 0 / .9), 0 0 60px -10px rgb(242 193 78 / .45); }
.v3 .wh-reg::backdrop { background: rgb(4 3 2 / .72); backdrop-filter: blur(4px); }
.v3 .wh-reg[open] { animation: wh-reg-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes wh-reg-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.v3 .wh-reg-art { display: block; width: 100%; height: 170px; object-fit: cover; object-position: 50% 30%;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.v3 .wh-reg-in { padding: 4px 22px 22px; margin-top: -26px; position: relative; }
.v3 .wh-reg h2 { margin: 0 0 8px; font-size: 24px; color: #f6d48a; }
.v3 .wh-reg p { margin: 0 0 16px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.v3 .wh-reg .wh-acts .x-btn { flex: 1 1 auto; justify-content: center; }
.v3 .wh-reg-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgb(0 0 0 / .55); color: #fff; font-size: 22px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .v3 .wh-reg[open] { animation: none; } }

/* выигрыш поверх игры (колесо и скретч-карта): плашка у нижнего края игры, по «Забрать приз» — форма на месте игры */
.v3 .wh-result.is-claim { position: absolute; z-index: 6; left: 50%; bottom: 4%; transform: translateX(-50%); width: min(94%, 420px); margin: 0;
  padding: 12px 14px; background: rgb(14 11 8 / .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 18px 50px rgb(0 0 0 / .65); text-align: left; }
.v3 .wh-result.is-claim.is-open { top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 20px 20px 18px; }
.v3 .wh-claim-bar { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; text-align: center; }
.v3 .wh-claim-bar span { color: var(--dim); }
.v3 .wh-claim-bar b, .v3 .wh-result .wh-won b { color: #f6d48a; }
.v3 .wh-claim-form { position: relative; display: none; }
.v3 .wh-result.is-open .wh-claim-bar { display: none; }
.v3 .wh-result.is-open .wh-claim-form { display: block; }
.v3 .wh-claim-x { position: absolute; top: -10px; right: -8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.v3 .wh-claim-x:hover { color: var(--text); }
.v3 .wh-result .wh-pick select { max-width: 100%; }
/* игра выше: верх — по джекпоту и шансам */
.v3 .wh-grid3 .wh-wheel, .v3 .wh-grid3 .scr-card { margin-top: 0; }
/* оговорка под шансами игр (оферта п. 2.5–2.6) и окно «Мне есть 18 лет» у сундуков */
.v3 .x-legal { margin: 16px 0 0; color: var(--faint); font-size: 13px; line-height: 1.5; }
.v3 .x-legal a { color: var(--dim); }
.v3 .ch-age .wh-reg-in { margin-top: 0; padding-top: 24px; }

/* Колесо и скретч-карта как «Сундук удачи» (владелец 03.11.2026): на первом экране только игра, во всю ширину;
   джекпот с лентой и шансы с правилами — двумя колонками ниже (на телефоне — друг под другом) */
.v3 .wh-grid3.wh-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "stage stage" "left right"; gap: 22px; }
.v3 .wh-solo > .wh-stage { padding: 22px 16px 24px; }
.v3 .wh-solo .wh-wheel { width: min(100%, 560px, calc(100dvh / var(--z, 1) - 360px)); }
.v3 .wh-solo .wh-left .wh-jack { min-height: 240px; }
.v3 .wh-bonus { color: #f6d48a; font-size: 14px; }
@media (max-width: 960px) { .v3 .wh-grid3.wh-solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "left" "right"; }
  .v3 .wh-solo > .wh-stage { padding: 14px 10px 18px; } .v3 .wh-solo .wh-wheel { width: min(100%, 460px); } }

/* анимация выигрыша (static_v3/winfx.js): c — вспышка и карточка, r — сияние и искры, e — золотой взрыв и встряска, s — суперприз на весь экран */
.wfx-cv { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }
.wfx-flash { position: fixed; z-index: 999; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 246 214 / .95), rgb(246 212 138 / .55) 35%, transparent 70%); animation: wfx-flash .9s ease-out forwards; }
.wfx-flash.is-r { animation-duration: 1.1s; }
.wfx-flash.is-e { background: radial-gradient(circle, #fff, rgb(242 193 78 / .85) 30%, rgb(217 166 58 / .35) 55%, transparent 72%); animation-duration: 1.3s; }
@keyframes wfx-flash { 0% { transform: scale(1); opacity: 1; } 60% { opacity: .85; } 100% { transform: scale(var(--s, 60)); opacity: 0; } }
.wfx-flash.is-r { --s: 75; } .wfx-flash.is-e { --s: 110; }
.wfx-pop { position: fixed; z-index: 1001; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; padding: 16px 22px 14px;
  min-width: 180px; max-width: min(86vw, 360px); text-align: center; border-radius: 16px; pointer-events: none;
  background: rgb(14 11 8 / .9); border: 1px solid rgb(246 212 138 / .55); box-shadow: 0 18px 60px rgb(0 0 0 / .6), 0 0 0 1px rgb(0 0 0 / .4);
  animation: wfx-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.wfx-pop img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(0 0 0 / .6)); }
.wfx-pop b { color: #f6d48a; font-size: 19px; line-height: 1.25; }
.wfx-pop.is-r { box-shadow: 0 18px 60px rgb(0 0 0 / .6), 0 0 40px rgb(246 212 138 / .35); }
.wfx-pop.is-r img { animation: wfx-glow 1.6s ease-in-out infinite alternate; }
.wfx-pop.is-e { border-color: #f2c14e; box-shadow: 0 18px 60px rgb(0 0 0 / .6), 0 0 70px rgb(242 193 78 / .55); }
.wfx-pop.is-e img { width: 84px; height: 84px; animation: wfx-glow 1.2s ease-in-out infinite alternate; }
.wfx-pop.is-e b { font-size: 22px; }
.wfx-pop.is-out { animation: wfx-out .4s ease-in forwards; }
@keyframes wfx-pop { from { transform: translate(-50%, -30%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes wfx-out { to { transform: translate(-50%, -70%) scale(.92); opacity: 0; } }
@keyframes wfx-glow { from { filter: drop-shadow(0 0 4px rgb(246 212 138 / .4)); } to { filter: drop-shadow(0 0 18px rgb(255 230 160 / .95)); } }
.wfx-shake { animation: wfx-shake .6s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes wfx-shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 2px) rotate(-.4deg); } 40%, 60% { transform: translate(7px, -1px) rotate(.4deg); } }
.wfx-grand { position: fixed; inset: 0; z-index: 998; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgb(60 40 8 / .82), rgb(6 4 2 / .94) 70%); animation: wfx-fade .35s ease-out both; }
.wfx-grand.is-out { animation: wfx-fade .35s ease-in reverse forwards; }
.wfx-rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgb(255 226 140 / .22) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 42%); mask: radial-gradient(circle, #000 8%, transparent 42%); animation: wfx-spin 18s linear infinite; }
.wfx-grand-in { position: relative; display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; animation: wfx-zoom .7s cubic-bezier(.2, 1.3, .4, 1) .1s both; }
.wfx-grand-tag { font: 700 14px/1 var(--font-ui, inherit); letter-spacing: .22em; text-transform: uppercase; color: #fff1b0; }
.wfx-grand-img { width: min(46vw, 220px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 30px rgb(255 214 120 / .8)); animation: wfx-float 2.4s ease-in-out infinite alternate; }
.wfx-grand-name { font-size: clamp(26px, 6vw, 46px); line-height: 1.15; color: #f6d48a; text-shadow: 0 2px 0 #6b4510, 0 0 30px rgb(242 193 78 / .7); max-width: 90vw; }
@keyframes wfx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wfx-spin { to { transform: rotate(360deg); } }
@keyframes wfx-zoom { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wfx-float { from { transform: translateY(4px); } to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .wfx-pop, .wfx-pop.is-out, .wfx-grand, .wfx-grand-in, .wfx-rays, .wfx-grand-img, .wfx-pop img { animation: none !important; } .wfx-flash { display: none; } }

/* «Сыграй ещё» под выигрышем (winfx.js playmore): кованые таблички игр, как на первом экране витрины */
.v3 .pm-more { width: 100%; margin: 6px 0 0; text-align: center; }
.v3 .pm-more-h { margin: 0 0 4px; color: #f6d48a; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.v3 .pm-more-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.v3 .pm-more .wh-chip { width: min(100%, 300px); margin: 0; }
.v3 .pm-more .wh-chip.is-short small { color: rgb(240 170 140 / .9); }
.v3 .pm-more.is-in { animation: pm-more-in .5s cubic-bezier(.2, 1, .4, 1) both; }
@keyframes pm-more-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .v3 .pm-more.is-in { animation: none; } }
