/* OLD ZOMBIE — колесо удачи */
.wh-page { --wh-gold: #ffc94a; }
.wh-top { text-align: center; margin: 6px auto 18px; }
.wh-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); background: rgba(139, 61, 255, .12); border: 1px solid var(--line-violet); }
.wh-top h1 { margin: 14px 0 8px; font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.wh-off { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 50px 20px; border: 1px dashed var(--line-violet); border-radius: 16px; background: rgba(14, 21, 32, .6); }
.wh-off img { width: 120px; height: auto; filter: drop-shadow(0 0 24px rgba(178, 77, 255, .6)); animation: whFloat 4s ease-in-out infinite; }
.wh-off b { font-size: 20px; } .wh-off span { color: var(--muted); }
@keyframes whFloat { 50% { transform: translateY(-8px); } }
@keyframes whSpinIco { to { transform: rotate(360deg); } }

.wh-stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 22px; align-items: stretch; }
.wh-arena { position: relative; display: grid; place-items: center; padding: 14px 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-violet); background:
  radial-gradient(ellipse 62% 56% at 50% 50%, rgba(139, 61, 255, .26), transparent 70%),
  radial-gradient(ellipse 90% 60% at 50% 105%, rgba(226, 76, 242, .14), transparent 70%),
  radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 214, 245, .08), transparent 70%),
  linear-gradient(180deg, rgba(10, 8, 24, .9), rgba(7, 6, 16, .8)); box-shadow: 0 0 60px rgba(120, 40, 220, .12) inset; }
.wh-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.wh-wheel { position: relative; width: min(100%, 680px); aspect-ratio: 1; container-type: inline-size; z-index: 1; user-select: none; -webkit-user-select: none; }
.wh-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(178, 77, 255, .5), rgba(226, 76, 242, .18) 55%, transparent 72%); filter: blur(22px); animation: whPulse 3.6s ease-in-out infinite; }
@keyframes whPulse { 50% { transform: scale(1.08); opacity: .75; } }
.wh-wheel.is-spinning .wh-glow { animation-duration: .9s; }
.wh-wheel.is-win .wh-glow { animation: whWin .9s ease-out 3; }
@keyframes whWin { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }

.wh-disc { position: absolute; inset: 17.4%; border-radius: 50%; will-change: transform; background: #07040f; box-shadow: 0 0 0 .6cqw rgba(8, 4, 20, .9), 0 0 6cqw rgba(139, 61, 255, .55); }
.wh-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; }
.wh-svg path.hit { animation: whHit .5s ease-in-out 5 alternate; }
@keyframes whHit { from { filter: brightness(1); } to { filter: brightness(2.1) saturate(1.4); } }
.wh-led { fill: #ffe9a8; filter: drop-shadow(0 0 1.6px #ffc94a); animation: whLed 1.2s ease-in-out infinite; }
.wh-led.b { fill: #9fe9ff; filter: drop-shadow(0 0 1.6px #4fd6f5); }
@keyframes whLed { 50% { opacity: .25; } }
.wh-wheel.is-spinning .wh-led { animation-duration: .35s; }

.wh-labels { position: absolute; inset: 0; pointer-events: none; }
.wh-lab { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.wh-lab-in { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5cqw; color: #fff; text-align: center; }
.wh-lab-ico { display: grid; place-items: center; border-radius: 50%; flex: none; overflow: hidden; color: var(--c, #fff); background: radial-gradient(circle, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25)); box-shadow: 0 0 1.4cqw var(--c, #fff), inset 0 0 0 .22cqw color-mix(in srgb, var(--c, #fff) 80%, #fff); }
.wh-lab-ico i { filter: drop-shadow(0 0 .6cqw var(--c, #fff)); }
.wh-lab-ico img { width: 100%; height: 100%; object-fit: cover; }
.wh-lab-t { font-weight: 900; line-height: 1.05; letter-spacing: .005em; text-shadow: 0 .2cqw .7cqw rgba(0, 0, 0, .9), 0 0 1cqw rgba(0, 0, 0, .8); white-space: nowrap; }

.wh-ring { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; pointer-events: none; z-index: 3; filter: drop-shadow(0 0 2cqw rgba(139, 61, 255, .45)); animation: whRing 7s ease-in-out infinite; }
@keyframes whRing { 50% { filter: drop-shadow(0 0 3.4cqw rgba(226, 76, 242, .7)) hue-rotate(-14deg) brightness(1.08); } }
.wh-wheel.is-spinning .wh-ring { animation-duration: 1.4s; }

.wh-gem { position: absolute; left: 41.5%; top: 2.6%; width: 17% !important; height: auto !important; aspect-ratio: 1; max-width: none; z-index: 5; pointer-events: none; transform-origin: 50% 12%; filter: drop-shadow(0 .8cqw 1.2cqw rgba(0, 0, 0, .55)) drop-shadow(0 0 2.2cqw rgba(226, 76, 242, .65)); }

.wh-hub { position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 4; border-radius: 50%; border: .6cqw solid #1a0f35; cursor: pointer; display: grid; place-items: center; padding: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2a1650, #0c0620 75%);
  box-shadow: 0 0 0 .5cqw rgba(255, 201, 74, .9), 0 0 3.2cqw rgba(226, 76, 242, .85), inset 0 0 2cqw rgba(139, 61, 255, .7); transition: transform .2s, filter .2s; }
.wh-hub img { width: 82% !important; height: 82% !important; object-fit: contain; max-width: none; }
.wh-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.2); }
.wh-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.95); }
.wh-hub:disabled { cursor: default; filter: saturate(.55) brightness(.8); }
.wh-wheel:not(.is-spinning) .wh-hub:not(:disabled) { animation: whHub 2.2s ease-in-out infinite; }
@keyframes whHub { 50% { box-shadow: 0 0 0 .5cqw rgba(255, 201, 74, .9), 0 0 5.4cqw rgba(226, 76, 242, 1), inset 0 0 2cqw rgba(139, 61, 255, .7); } }

/* ---------- правая колонка ---------- */
.wh-side { display: grid; gap: 16px; align-content: start; grid-template-rows: auto 1fr; }
.wh-card { position: relative; background: linear-gradient(180deg, rgba(20, 14, 38, .92), rgba(10, 8, 22, .94)); border: 1px solid var(--line-violet); border-radius: 18px; padding: 20px; box-shadow: 0 0 40px rgba(139, 61, 255, .10); }
.wh-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.wh-card h3 i { color: var(--wh-gold); }
.wh-card h4 { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wh-h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1; letter-spacing: .01em; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(120deg, #fff 20%, #e1b8ff 60%, #ffc94a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wh-h1 i { color: var(--lilac); -webkit-text-fill-color: var(--lilac); font-size: .8em; animation: whSpinIco 8s linear infinite; }
.wh-lead { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.wh-info { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.wh-info li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: 15px; }
.wh-info li > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--lilac); background: rgba(139, 61, 255, .15); border: 1px solid var(--line-violet); }
.wh-info b { color: #fff; }
.wh-timer { font-variant-numeric: tabular-nums; color: var(--green) !important; font-size: 17px; }

.wh-gold { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; border-radius: 14px; border: 1px solid rgba(255, 223, 130, .8); cursor: pointer; font-size: 22px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #2b1500; text-decoration: none;
  background: linear-gradient(180deg, #ffe48a 0%, #ffc94a 45%, #e8921c 100%); box-shadow: 0 0 28px rgba(255, 190, 60, .45), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(150, 70, 0, .35); transition: transform .15s, filter .15s, box-shadow .15s; }
.wh-gold:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 0 44px rgba(255, 190, 60, .7), inset 0 2px 0 rgba(255, 255, 255, .55); color: #2b1500; }
.wh-gold:active:not(:disabled) { transform: translateY(1px); }
.wh-gold:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; }
.wh-gold i { animation: none; }
.wh-gold:not(:disabled) i.fa-dharmachakra { animation: whSpinIco 3s linear infinite; }
.wh-gold.sm { min-height: 40px; width: auto; padding: 0 16px; font-size: 13px; letter-spacing: .04em; }
.wh-gold.sm.alt { background: linear-gradient(180deg, rgba(139, 61, 255, .55), rgba(80, 24, 170, .7)); border-color: var(--line-violet); color: #fff; box-shadow: 0 0 18px rgba(139, 61, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.wh-gold.sm.alt:hover { color: #fff; }
.wh-snd { position: absolute; right: 24px; top: 24px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--lilac); cursor: pointer; }
.wh-snd.off { color: var(--dim); }
.wh-err { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: #ffb3bb; background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .3); }
.wh-err[hidden] { display: none; }
.wh-more { display: flex; align-items: center; justify-content: space-between; gap: 14px; overflow: hidden; border-color: rgba(255, 201, 74, .3); background: linear-gradient(135deg, rgba(46, 24, 80, .9), rgba(12, 8, 26, .95)); }
.wh-more b { display: block; font-size: 15px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--wh-gold); }
.wh-more small { display: block; color: var(--muted); margin: 4px 0 12px; }
.wh-more-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.wh-more > img { width: 120px; height: auto; flex: none; filter: drop-shadow(0 0 18px rgba(178, 77, 255, .6)); }

/* ---------- нижние блоки ---------- */
.wh-lower { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; margin-top: 22px; }
.wh-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.wh-feed li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.wh-feed li:last-child { border-bottom: 0; }
.wh-feed img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.wh-wn { min-width: 0; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-wp { flex: 1; min-width: 0; color: var(--wh-gold); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-feed time { color: var(--dim); font-size: 12px; flex: none; }
.wh-feed small { color: var(--muted); font-weight: 600; } .wh-feed small.bad { color: var(--red); }
.wh-feed.mine .wh-wp { color: #fff; }
.wh-hdot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; margin: 0 10px; box-shadow: 0 0 8px var(--green); }
.wh-hdot.k-nothing { background: var(--dim); box-shadow: none; }
.wh-empty { color: var(--muted); margin: 0; }

.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.wh-tile { --c: #8b5cf6; position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; text-align: center; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, #0c0818), #0a0716); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); transition: transform .2s, box-shadow .2s; }
.wh-tile:hover { transform: translateY(-3px); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); }
.wh-ti { width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; color: var(--c); overflow: hidden; border-radius: 12px; }
.wh-ti i { filter: drop-shadow(0 0 8px var(--c)); }
.wh-ti img { width: 100%; height: 100%; object-fit: cover; }
.wh-tile b { font-size: 12px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.wh-tile em { font-style: normal; font-size: 11px; font-weight: 900; color: var(--c); filter: brightness(1.5); }

.wh-rules { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 10px; }
.wh-rules li { counter-increment: r; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cfd5e4; }
.wh-rules li::before { content: counter(r); width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--wh-gold); border: 1px solid rgba(255, 201, 74, .5); background: rgba(255, 201, 74, .08); }
.wh-rules li span { padding-top: 3px; }

/* ---------- окно выигрыша ---------- */
.wh-modal { --c: #b24dff; position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 12, .78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.wh-modal[hidden] { display: none; }
.wh-modal.show { opacity: 1; }
.wh-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.wh-win { position: relative; z-index: 1; width: min(440px, 100%); text-align: center; padding: 38px 26px 26px; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #120a24), #0a0614 70%); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 80px color-mix(in srgb, var(--c) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12); transform: scale(.8) translateY(30px); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); overflow: hidden; }
.wh-modal.show .wh-win { transform: none; }
.wh-win-rays { position: absolute; left: 50%; top: 92px; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 40%, transparent) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 5%, transparent 62%); mask: radial-gradient(circle, #000 5%, transparent 62%); animation: whRays 14s linear infinite; opacity: .7; }
.wh-modal.lose .wh-win-rays { display: none; }
@keyframes whRays { to { transform: rotate(360deg); } }
.wh-win-orb { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 52px; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 40%, #000)); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 0 50px var(--c); animation: whOrb 2.4s ease-in-out infinite; overflow: hidden; }
.wh-win-orb img { width: 100%; height: 100%; object-fit: cover; }
@keyframes whOrb { 50% { transform: scale(1.06) rotate(-3deg); } }
.wh-modal.lose .wh-win-orb { filter: grayscale(.6); animation: none; }
.wh-win-kick { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 40%, #fff); position: relative; }
.wh-win h2 { margin: 6px 0 8px; font-size: 30px; font-weight: 900; position: relative; text-shadow: 0 0 24px var(--c); overflow-wrap: anywhere; }
.wh-win p { margin: 0 0 8px; color: #cdd3e2; position: relative; }
.wh-win-note { padding: 8px 12px; border-radius: 10px; font-size: 13px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.wh-win-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; position: relative; }

/* ---------- адаптив ---------- */
@media (max-width: 1199px) { .wh-lower { grid-template-columns: 1fr 1fr; } .wh-lower > :nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 991px) {
  .wh-stage { grid-template-columns: 1fr; }
  .wh-arena { padding: 4px 0 8px; }
  .wh-lower { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wh-card { padding: 15px; }
  .wh-gold { min-height: 56px; font-size: 19px; }
  .wh-more > img { display: none; }
  .wh-win h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-glow, .wh-ring, .wh-led, .wh-hub, .wh-h1 i, .wh-gold i, .wh-win-rays, .wh-win-orb { animation: none !important; }
}

/* навигация */
.tb-nav .tb-wheel { color: var(--lilac); font-weight: 800; }
.tb-nav .tb-wheel i { margin-right: 5px; }
.sb-link.sb-wheel i { color: var(--lilac); }

/* ---------- админка ---------- */
.whA-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.whA-stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.whA-stat small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.whA-stat b { font-size: 21px; font-weight: 900; }
.whA-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-violet); background: rgba(139, 61, 255, .08); margin: 12px 0; font-size: 14px; }
.whA-sum b { font-size: 18px; } .whA-sum.warn { border-color: rgba(255, 201, 74, .5); background: rgba(255, 201, 74, .08); } .whA-sum.ok b { color: var(--green); }
.whA-prize { --c: #8b5cf6; display: grid; gap: 10px; padding: 14px; margin-bottom: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.whA-prize.off { opacity: .6; }
.whA-prize.del { opacity: .35; filter: grayscale(1); }
.whA-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.whA-row .wide { grid-column: span 2; }
.whA-row label.oz-label { margin-bottom: 4px; display: block; }
.whA-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.whA-head .pct { margin-left: auto; font-weight: 900; color: var(--lilac); }
.whA-color { width: 100%; height: 42px; padding: 3px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); }
.whA-kindbox[hidden] { display: none; }
.whA-tpl { display: none; }
.whA-st { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.whA-st.done { color: var(--green); background: rgba(94, 240, 168, .1); } .whA-st.pending { color: var(--gold); background: rgba(255, 201, 74, .1); } .whA-st.failed { color: var(--red); background: rgba(255, 93, 108, .1); }

/* навигация */
.tb-nav .tb-wheel { color: var(--lilac); font-weight: 800; }
.tb-nav .tb-wheel i { margin-right: 5px; }
.sb-link.sb-wheel i { color: var(--lilac); }
.whA-row .oz-select, .whA-row .oz-input { width: 100%; }
.whA-prize .gvx-hint, #whForm .gvx-hint { display: block; line-height: 1.5; }
.whA-sum.bad { border-color: rgba(255, 93, 108, .6); background: rgba(255, 93, 108, .1); } .whA-sum.bad b, .whA-sum.bad #whSumT { color: var(--red); }
#whForm button[type=submit]:disabled { opacity: .45; cursor: not-allowed; }
