/* За трон · duels.css — дуэли 1×1 (арена VS, вызовы, рейтинг, эффекты). */
:root { --dl-rad: #3fcf9f; --dl-rad-2: #1f6f5c; --dl-dire: #ff5f4f; --dl-dire-2: #9c2c24; --dl-gold: #ffcf7a; }
.dl { --cx-accent: #d98a5f; }
.dl h1, .dl h2, .dl h3 { text-transform: none; letter-spacing: normal; }
.dl-back { display: inline-flex; gap: 6px; color: var(--cx-muted); font-size: 14px; margin: 0 0 14px; text-decoration: none; }
.dl-back:hover { color: var(--cx-accent-2); }
.dl-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--cx-accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.dl-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #ffb37a; animation: dl-ping 2.2s ease-out infinite; }
@keyframes dl-ping { 0% { box-shadow: 0 0 0 0 #ffb37a99; } 100% { box-shadow: 0 0 0 10px #ffb37a00; } }
.dl .cx-btn .cx-ic { width: 17px; height: 17px; }
.dl-big { padding: 15px 24px !important; font-size: 16px !important; }
.dl-glow { position: relative; box-shadow: 0 0 0 0 #e0905f66, 0 10px 30px -10px #e0905faa; animation: dl-btnglow 2.6s ease-in-out infinite; }
@keyframes dl-btnglow { 50% { box-shadow: 0 0 0 6px #e0905f00, 0 12px 36px -8px #ff9a5cdd; } }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dl-fine { color: var(--cx-muted); font-size: 12.5px; line-height: 1.55; margin: 14px 0 0; }
.dl-note { display: block; margin-top: 8px; color: var(--cx-warn); font-size: 13px; }
.cx-btn.dl-sure { border-color: var(--cx-bad) !important; color: var(--cx-bad) !important; }

/* ---------- hero ---------- */
.dl-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(200px, .75fr); gap: 10px 32px; align-items: center;
  padding: 44px 48px 0; margin-bottom: 22px; border-radius: 26px; border: 1px solid var(--cx-line-2);
  background: radial-gradient(90% 120% at 0% 0%, #3b1a13 0%, transparent 60%), radial-gradient(80% 120% at 100% 100%, #0f2e27 0%, transparent 60%), linear-gradient(140deg, #1e1517, #121013); }
.dl-hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dl-glow-l, .dl-glow-r { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .45; animation: dl-breathe 7s ease-in-out infinite; }
.dl-glow-l { left: -180px; top: -240px; background: #c4532e; }
.dl-glow-r { right: -200px; bottom: -280px; background: #1c7c63; animation-delay: -3.5s; }
@keyframes dl-breathe { 50% { opacity: .22; transform: scale(1.12); } }
.dl-hero-fx i, .dl-arena-fx i { position: absolute; bottom: -10px; left: calc(4% + var(--i) * 6.1%); width: 3px; height: 3px; border-radius: 50%; background: #ffb37a;
  box-shadow: 0 0 8px 2px #ff8a4c88; opacity: 0; animation: dl-ember calc(6s + var(--i) * .37s) linear infinite; animation-delay: calc(var(--i) * -.83s); }
.dl-hero-fx i:nth-child(3n), .dl-arena-fx i:nth-child(3n) { background: #8fe3c0; box-shadow: 0 0 8px 2px #3fcf9f88; }
@keyframes dl-ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(28px, -420px); opacity: 0; } }
.dl-hero-copy h1 { font: 800 clamp(36px, 4.6vw, 60px)/1.02 'Manrope', sans-serif; margin: 0 0 16px; color: var(--cx-text); letter-spacing: -.02em; }
.dl-hero-copy h1 em { font-style: normal; background: linear-gradient(100deg, #ffcf9e, #ff7a45 45%, #e8463a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px #ff6a3d55); }
.dl-lead { color: #d7ccc5; font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 0 24px; }
.dl-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-closed { display: inline-flex; align-items: center; gap: 8px; color: var(--cx-warn); font-weight: 500; }
.dl-block { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--cx-warn-bg); color: #f6d7b0; font-size: 14px; max-width: 560px; }
.dl-block .cx-ic { flex: none; width: 18px; height: 18px; color: var(--cx-warn); margin-top: 1px; }
.dl-emblem { position: relative; justify-self: center; width: min(260px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.dl-emb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #ffffff12;
  background: conic-gradient(from 0deg, transparent 0 20%, #ff8a4c 30%, transparent 40% 60%, #3fcf9f 70%, transparent 80%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: dl-spin 9s linear infinite; }
.dl-emb-2 { inset: 22px; animation-duration: 6s; animation-direction: reverse; opacity: .7; }
.dl-emb-core { width: 54%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #ffd0ad;
  background: radial-gradient(circle at 50% 35%, #4a2419, #1b1214 70%); box-shadow: inset 0 0 0 1px #ffffff14, 0 0 60px -6px #ff7a4588; animation: dl-float 5s ease-in-out infinite; }
.dl-emb-core .cx-ic { width: 46%; height: 46%; stroke-width: 1.6; filter: drop-shadow(0 0 12px #ff8a4c); }
@keyframes dl-spin { to { transform: rotate(360deg); } }
@keyframes dl-float { 50% { transform: translateY(-8px); } }
.dl-hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px -48px 0; border-top: 1px solid #ffffff12; background: #0000002e; }
.dl-hero-stats > div { padding: 18px 24px; border-left: 1px solid #ffffff10; }
.dl-hero-stats > div:first-child { border-left: 0; padding-left: 48px; }
.dl-hero-stats dt { color: var(--cx-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.dl-hero-stats dd { margin: 0; display: flex; align-items: center; gap: 8px; font: 800 24px/1.1 'Manrope', sans-serif; color: var(--cx-text); }
.dl-live { width: 9px; height: 9px; border-radius: 50%; background: var(--dl-dire); animation: dl-livepulse 1.6s ease-out infinite; }
@keyframes dl-livepulse { 0% { box-shadow: 0 0 0 0 #ff5f4faa; } 100% { box-shadow: 0 0 0 10px #ff5f4f00; } }

/* ---------- arena ---------- */
.dl-arena { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 22px; padding: 22px 28px 26px; border-radius: 26px; border: 1px solid var(--cx-line-2);
  background: linear-gradient(180deg, #1a1416, #141012); }
.dl-arena-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dl-half { position: absolute; top: 0; bottom: 0; width: 60%; opacity: .9; transition: opacity .6s; }
.dl-half-l { left: 0; background: radial-gradient(70% 90% at 0% 45%, #1f6f5c66, transparent 70%); }
.dl-half-r { right: 0; background: radial-gradient(70% 90% at 100% 45%, #9c2c2466, transparent 70%); }
.dl-arena-fx i { animation-duration: calc(5s + var(--i) * .3s); }
.dl-arena-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.dl-code { font: 800 14px 'Manrope', sans-serif; letter-spacing: .06em; color: var(--cx-accent-2); }
.dl-format { margin-left: auto; color: var(--cx-muted); font-size: 13px; }
.dl-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.dl-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dl-livepulse 1.6s ease-out infinite; }
.dl-t-wait { background: #ffffff0d; color: #e6d6cb; border-color: #ffffff1c; }
.dl-t-pay { background: var(--cx-warn-bg); color: var(--cx-warn); border-color: #f0b46e33; }
.dl-t-live { background: #5a1f1a88; color: #ff9a8a; border-color: #ff5f4f44; }
.dl-t-done { background: var(--cx-ok-bg); color: var(--cx-ok); border-color: #8fcf8f33; }
.dl-t-off { background: #ffffff08; color: var(--cx-muted); border-color: #ffffff12; }

.dl-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.dl-side { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff07, transparent); border: 1px solid #ffffff0d; transition: opacity .5s, filter .5s, transform .5s; }
.dl-radiant { --side: var(--dl-rad); --side-2: var(--dl-rad-2); }
.dl-dire { --side: var(--dl-dire); --side-2: var(--dl-dire-2); }
.dl-ava { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 4px; margin-bottom: 8px;
  background: conic-gradient(from 210deg, var(--side), transparent 35%, var(--side) 70%, transparent); box-shadow: 0 0 40px -6px var(--side); }
.dl-ava .identity-avatar { width: 96px !important; height: 96px !important; border-radius: 50%; overflow: hidden; border: 3px solid #161113; font-size: 34px; }
.dl-ava .identity-avatar img { border-radius: 50%; }
.dl-ava-q { display: grid; place-items: center; background: repeating-conic-gradient(var(--side) 0 6deg, transparent 6deg 18deg); animation: dl-spin 14s linear infinite; }
.dl-ava-q span { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: #1a1416; font: 800 38px 'Manrope', sans-serif; color: var(--side); animation: dl-spin 14s linear infinite reverse; }
.dl-ava-sm { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ffffff10; color: var(--cx-muted); font: 800 16px 'Manrope', sans-serif; }
.dl-sidename { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--side); }
.dl-nick { font: 800 22px/1.2 'Manrope', sans-serif; color: var(--cx-text); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dl-nick:hover { color: var(--cx-accent-2); }
.dl-rate { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.dl-rate b { font: 800 20px 'Manrope', sans-serif; color: var(--cx-text); font-variant-numeric: tabular-nums; }
.dl-rate span { color: var(--cx-muted); font-size: 12px; }
.dl-rate em { font-style: normal; font: 800 15px 'Manrope', sans-serif; padding: 1px 7px; border-radius: 8px; animation: dl-pop .6s cubic-bezier(.2, 1.6, .4, 1) both .3s; }
.dl-rate em.up { color: #9bf0c9; background: #1f6f5c55; }
.dl-rate em.down { color: #ffab9f; background: #9c2c2455; }
@keyframes dl-pop { from { transform: scale(.3); opacity: 0; } }
.dl-wl { color: var(--cx-muted); font-size: 12.5px; }
.dl-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.dl-flag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; background: #ffffff0a; color: var(--cx-muted); border: 1px solid #ffffff12; }
.dl-flag .cx-ic { width: 13px; height: 13px; }
.dl-flag.dl-f-ok { color: #9bf0c9; background: #1f6f5c40; border-color: #3fcf9f40; }
.dl-flag.dl-f-wait { color: var(--cx-warn); background: var(--cx-warn-bg); border-color: #f0b46e30; }
.dl-flag.dl-f-live { color: #ffab9f; background: #9c2c2440; border-color: #ff5f4f40; }
.dl-flag.dl-f-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dl-livepulse 1.4s ease-out infinite; }
.dl-side.is-win { border-color: #ffcf7a66; background: linear-gradient(180deg, #ffcf7a1a, transparent 70%); box-shadow: 0 0 60px -20px #ffcf7a; }
.dl-side.is-win .dl-ava { background: conic-gradient(from 0deg, #ffcf7a, #ff8a4c, #ffcf7a, #fff3c4, #ffcf7a); box-shadow: 0 0 60px -4px #ffcf7a; animation: dl-spinglow 4s linear infinite; }
@keyframes dl-spinglow { to { filter: hue-rotate(0deg) brightness(1.08); } }
.dl-side.is-lose { opacity: .55; filter: grayscale(.7); }
.dl-crown { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); color: var(--dl-gold); filter: drop-shadow(0 0 10px #ffcf7a); animation: dl-crown 2.4s ease-in-out infinite; }
.dl-crown .cx-ic { width: 30px; height: 30px; fill: #ffcf7a44; }
@keyframes dl-crown { 50% { transform: translate(-50%, -5px); } }
.dl-side.is-empty .dl-nick { color: var(--cx-muted); }

.dl-core { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.dl-core b { position: relative; z-index: 2; font: 800 38px 'Manrope', sans-serif; letter-spacing: -.02em;
  background: linear-gradient(160deg, #fff4ea, #ffb37a 45%, #ff5f4f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px #ff7a4588); }
.dl-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--dl-rad), transparent 25%, var(--dl-dire) 50%, transparent 75%, var(--dl-rad));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: dl-spin 7s linear infinite; opacity: .9; }
.dl-ring-2 { inset: 14px; animation-duration: 4.5s; animation-direction: reverse; opacity: .55; }
.dl-core::before { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, #3a1b15, #160f11 70%); box-shadow: 0 0 50px -6px #ff7a4566; }
.dl-bolt { position: absolute; left: 50%; top: -40px; bottom: -40px; width: 2px; transform: translateX(-50%) skewX(-12deg); z-index: 1;
  background: linear-gradient(180deg, transparent, #ffd2b3 30%, #fff 50%, #ffd2b3 70%, transparent); opacity: 0; filter: drop-shadow(0 0 6px #ff9a5c); }
.dl-st-lobby .dl-ring, .dl-st-running .dl-ring { animation-duration: 2.2s; }
.dl-st-running .dl-bolt { animation: dl-bolt 2.4s steps(1) infinite; }
@keyframes dl-bolt { 0%, 100% { opacity: 0; } 6% { opacity: 1; } 9% { opacity: .2; } 12% { opacity: .9; } 18% { opacity: 0; } }
.dl-st-running .dl-core::before { animation: dl-heat 1.2s ease-in-out infinite; }
@keyframes dl-heat { 50% { box-shadow: 0 0 70px 4px #ff5f4f88; } }
.dl-st-finished .dl-ring, .dl-st-cancelled .dl-ring, .dl-st-expired .dl-ring, .dl-st-declined .dl-ring { animation-duration: 30s; opacity: .35; }
.dl-st-cancelled .dl-side, .dl-st-expired .dl-side, .dl-st-declined .dl-side { opacity: .6; filter: grayscale(.6); }

/* clash on accept / lobby, shake on defeat */
.dl-clash .dl-radiant { animation: dl-in-l .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.dl-clash .dl-dire { animation: dl-in-r .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.dl-clash .dl-core { animation: dl-boom .8s cubic-bezier(.2, 1.6, .4, 1) both .15s; }
@keyframes dl-in-l { from { transform: translateX(-60px); opacity: 0; } }
@keyframes dl-in-r { from { transform: translateX(60px); opacity: 0; } }
@keyframes dl-boom { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.dl-shake { animation: dl-shake .5s ease-in-out both; }
@keyframes dl-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* steps */
.dl-steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 24px 0 0; padding: 0; counter-reset: s; }
.dl-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--cx-muted); font-size: 13px; }
.dl-steps li::before { content: ''; position: absolute; top: 19px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 2px; background: #ffffff14; border-radius: 2px; }
.dl-steps li:first-child::before { display: none; }
.dl-steps li.done::before, .dl-steps li.now::before { background: linear-gradient(90deg, #c26f45, #e9a47c); }
.dl-steps span { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #ffffff08; border: 1px solid #ffffff14; transition: .4s; }
.dl-steps span .cx-ic { width: 18px; height: 18px; }
.dl-steps b { font-weight: 500; }
.dl-steps li.done span { background: #d98a5f2e; border-color: #d98a5f66; color: #ffc9a6; }
.dl-steps li.done { color: #d9c3b4; }
.dl-steps li.now { color: var(--cx-text); }
.dl-steps li.now span { background: linear-gradient(180deg, #e0905f, #c26f45); border-color: #f3b893; color: #1d0f08; box-shadow: 0 0 0 0 #e0905f88; animation: dl-stepping 2s ease-out infinite; }
@keyframes dl-stepping { 0% { box-shadow: 0 0 0 0 #e0905f88; } 100% { box-shadow: 0 0 0 12px #e0905f00; } }
.dl-steps.is-off li span { opacity: .5; }

/* stage panel */
.dl-stage { margin-top: 24px; }
.dl-panel, .dl-lobby, .dl-pay, .dl-result { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 18px; background: #00000033; border: 1px solid #ffffff12; }
.dl-panel-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #ffc9a6; background: #d98a5f22; border: 1px solid #d98a5f44; }
.dl-panel-ic .cx-ic { width: 22px; height: 22px; }
.dl-panel-body { flex: 1; min-width: 0; }
.dl-panel h3, .dl-lobby h3, .dl-pay h3, .dl-result h3 { margin: 2px 0 6px; font: 800 21px/1.25 'Manrope', sans-serif; color: var(--cx-text); }
.dl-panel-text p, .dl-pay p, .dl-result p { margin: 0; color: #cdbfb6; line-height: 1.6; }
.dl-panel q, .dl-invite q { display: block; margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--cx-accent); background: #ffffff08; border-radius: 0 10px 10px 0; color: #e8dcd3; font-style: italic; quotes: '«' '»'; }
.dl-panel-aside { flex: none; align-self: center; }
.dl-timer { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; background: #ffffff0a; border: 1px solid #ffffff14; color: var(--cx-muted); font-size: 12.5px; white-space: nowrap; }
.dl-timer .cx-ic { width: 15px; height: 15px; }
.dl-timer b { font: 800 16px 'Manrope', sans-serif; color: var(--cx-text); font-variant-numeric: tabular-nums; }
.dl-timer.is-low { border-color: #ff5f4f55; color: #ffab9f; }
.dl-timer.is-low b { color: #ffab9f; animation: dl-blink 1s steps(2) infinite; }
@keyframes dl-blink { 50% { opacity: .55; } }
.dl-radar { position: relative; display: inline-block; vertical-align: middle; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; border: 1px solid #3fcf9f66;
  background: conic-gradient(from 0deg, #3fcf9f00, #3fcf9f88 25%, #3fcf9f00 26%); animation: dl-spin 1.6s linear infinite; }
.dl-radar i { position: absolute; inset: 7px; border-radius: 50%; background: #3fcf9f; }
.dl-fight { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 8px; background: linear-gradient(90deg, #ff5f4f, #ff9a5c); color: #1d0f08;
  font: 800 13px 'Manrope', sans-serif; letter-spacing: .14em; animation: dl-fightpulse 1s ease-in-out infinite; }
@keyframes dl-fightpulse { 50% { box-shadow: 0 0 22px #ff5f4f; } }

/* lobby */
.dl-lobby { display: block; }
.dl-lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dl-lobby h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.dl-lobby h3 .cx-ic { width: 22px; height: 22px; color: #9bf0c9; }
.dl-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-check li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff0e; transition: .4s; }
.dl-check li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px 'Manrope', sans-serif; background: #ffffff0f; color: var(--cx-muted); }
.dl-check li > span .cx-ic { width: 16px; height: 16px; }
.dl-check b { display: block; color: var(--cx-text); font-weight: 500; }
.dl-check small { color: var(--cx-muted); font-size: 13px; }
.dl-check li.ok { border-color: #3fcf9f33; background: #1f6f5c1f; }
.dl-check li.ok > span { background: #3fcf9f; color: #08231b; }
.dl-check li.now { border-color: #d98a5f55; background: #d98a5f14; }
.dl-check li.now > span { background: #d98a5f; color: #1d0f08; animation: dl-stepping 2s ease-out infinite; }
.dl-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dl-creds.is-wait { display: flex; align-items: center; color: var(--cx-muted); font-size: 14px; padding: 12px 0 0; }
.dl-cred { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 12px; background: #0000004d; border: 1px dashed #3fcf9f55; }
.dl-cred span { color: var(--cx-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.dl-cred b { flex: 1; min-width: 0; font: 800 16px 'Manrope', monospace; color: #c9f7e2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.dl-ready[disabled] { opacity: .45; animation: none; cursor: not-allowed; filter: grayscale(.4); }

/* pay */
.dl-pay { display: block; }
.dl-pay-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.dl-pay-head > div { flex: 1; }
.dl-pay .cx-reqs { margin: 14px 0; }
.dl-pay form { margin-top: 10px; }

/* result */
.dl-result { align-items: center; gap: 22px; overflow: hidden; }
.dl-result-badge { flex: none; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: #ffffff0d; color: var(--cx-muted); }
.dl-result-badge .cx-ic { width: 36px; height: 36px; }
.dl-result.is-win { border-color: #ffcf7a55; background: radial-gradient(120% 160% at 0% 50%, #ffcf7a26, transparent 60%), #00000033; }
.dl-result.is-win .dl-result-badge { background: linear-gradient(160deg, #ffe2a3, #ffb057); color: #3a2205; box-shadow: 0 0 40px -4px #ffcf7a; animation: dl-boom .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.dl-result.is-win h3 { font-size: 30px; background: linear-gradient(100deg, #fff1cf, #ffcf7a 40%, #ff9a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-result.is-lose h3 { font-size: 26px; color: #ffb3a7; }
.dl-result .dl-actions { margin-top: 14px; }

/* compact arena (hub / cabinet) */
.dl-arena.is-compact { padding: 18px 22px 20px; }
.dl-arena.is-compact .dl-ava { width: 78px; height: 78px; }
.dl-arena.is-compact .dl-ava .identity-avatar { width: 70px !important; height: 70px !important; font-size: 26px; }
.dl-arena.is-compact .dl-core { width: 92px; height: 92px; }
.dl-arena.is-compact .dl-core b { font-size: 28px; }
.dl-arena.is-compact .dl-nick { font-size: 18px; }
.dl-compact-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ffffff10; }
.dl-compact-cta p { margin: 0; color: #e6d6cb; }

/* incoming invites */
.dl-incoming { display: grid; gap: 12px; margin-bottom: 22px; }
.dl-invite { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'ava main timer' 'ava act act'; gap: 6px 18px; align-items: center;
  padding: 18px 22px; border-radius: 20px; background: linear-gradient(120deg, #3a1a14, #1b1416 60%); border: 1px solid #ff8a4c55; box-shadow: 0 0 0 0 #ff8a4c55; animation: dl-invite 2.4s ease-out infinite; }
@keyframes dl-invite { 0% { box-shadow: 0 0 0 0 #ff8a4c55; } 100% { box-shadow: 0 0 0 14px #ff8a4c00; } }
.dl-invite-fx { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, #ffffff10 45%, transparent 60%); background-size: 250% 100%; animation: dl-sheen 3.6s ease-in-out infinite; }
@keyframes dl-sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.dl-invite > .identity-avatar { grid-area: ava; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px #ff8a4c66; }
.dl-invite-main { grid-area: main; min-width: 0; }
.dl-invite .dl-kicker { margin-bottom: 4px; }
.dl-invite h3 { margin: 0; font: 800 22px 'Manrope', sans-serif; color: var(--cx-text); }
.dl-invite h3 small { font: 500 13px 'Golos Text', sans-serif; color: var(--cx-muted); margin-left: 6px; }
.dl-invite > .dl-timer { grid-area: timer; }
.dl-invite > .dl-actions { grid-area: act; margin-top: 6px; }

/* grids, rows, board, feed */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dl-col { display: grid; gap: 18px; min-width: 0; }
.dl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #ffffff0d; }
.dl-row:first-of-type { border-top: 0; }
.dl-row-ava { display: flex; }
.dl-row-main { min-width: 0; text-decoration: none; }
.dl-row-main b { display: block; color: var(--cx-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row-main small { color: var(--cx-muted); font-size: 12.5px; }
.dl-row .dl-timer { padding: 6px 10px; }
.dl-row .dl-timer b { font-size: 14px; }
.dl-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dl-board li { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.dl-board li:nth-child(odd) { background: #ffffff05; }
.dl-board li.is-me { background: #d98a5f1c; box-shadow: inset 0 0 0 1px #d98a5f44; }
.dl-board a { color: var(--cx-text); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-board a:hover { color: var(--cx-accent-2); }
.dl-board small { color: var(--cx-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.dl-board b { font: 800 17px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; color: var(--cx-text); }
.dl-place { position: relative; display: grid; place-items: center; height: 30px; }
.dl-place em { font: 800 14px 'Manrope', sans-serif; font-style: normal; color: var(--cx-muted); position: relative; z-index: 1; }
.dl-place .cx-ic { position: absolute; width: 30px; height: 30px; opacity: .9; }
.top-1 .dl-place .cx-ic { color: #ffcf7a; fill: #ffcf7a33; filter: drop-shadow(0 0 6px #ffcf7a88); }
.top-2 .dl-place .cx-ic { color: #dfe6ee; fill: #dfe6ee22; }
.top-3 .dl-place .cx-ic { color: #e2a272; fill: #e2a27222; }
.dl-board li.top .dl-place em { color: var(--cx-text); font-size: 11px; transform: translateY(4px); }
.dl-streak { display: inline-flex; align-items: center; gap: 2px; color: #ffb37a; font-style: normal; }
.dl-streak .cx-ic { width: 12px; height: 12px; }
.dl-feed { display: grid; gap: 6px; }
.dl-frow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: 'a mid b' 'meta meta meta'; gap: 4px 12px; align-items: center; padding: 11px 12px; border-radius: 14px;
  background: #ffffff05; border: 1px solid #ffffff0b; text-decoration: none; color: var(--cx-text); transition: border-color .2s, background .2s; }
.dl-frow:hover { border-color: #d98a5f55; background: #d98a5f0d; }
.dl-fp { display: flex; align-items: center; gap: 8px; min-width: 0; grid-area: a; }
.dl-fp.r { grid-area: b; justify-content: flex-end; }
.dl-fp b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-fp.w b { color: #ffd9a6; }
.dl-fp.l { opacity: .6; }
.dl-fmid { grid-area: mid; font: 800 14px 'Manrope', sans-serif; color: var(--cx-accent-2); display: inline-flex; align-items: center; gap: 6px; }
.dl-frow.is-live { border-color: #ff5f4f44; background: #9c2c241a; }
.dl-frow.is-live .dl-fmid { color: #ff9a8a; letter-spacing: .1em; }
.dl-frow.is-live .dl-fmid i { width: 7px; height: 7px; border-radius: 50%; background: var(--dl-dire); animation: dl-livepulse 1.4s ease-out infinite; }
.dl-frow > small { grid-area: meta; text-align: center; color: var(--cx-muted); font-size: 12px; }
.dl-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-how li { display: flex; gap: 14px; align-items: flex-start; }
.dl-how li > span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #d98a5f1f; color: #ffc9a6; border: 1px solid #d98a5f3a; }
.dl-how li > span .cx-ic { width: 18px; height: 18px; }
.dl-how b { display: block; color: var(--cx-text); font-weight: 500; margin-bottom: 2px; }
.dl-how small { color: var(--cx-muted); font-size: 13px; line-height: 1.5; }
.dl-prize { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; border: 1px solid #ffcf7a44; background: radial-gradient(120% 140% at 0% 0%, #ffcf7a1f, transparent 60%), var(--cx-card); }
.dl-prize .dl-panel-ic { color: #ffcf7a; background: #ffcf7a1a; border-color: #ffcf7a44; }
.dl-prize b { display: block; font: 800 18px 'Manrope', sans-serif; color: #ffe2b0; margin-bottom: 4px; }
.dl-prize p { margin: 0 0 6px; color: #e8dcd3; line-height: 1.55; }
.dl-prize small { color: var(--cx-muted); font-size: 12px; }
.dl-callout { display: flex; align-items: center; gap: 16px; margin: 18px 0; padding: 16px 20px; border-radius: 18px; border: 1px solid #d98a5f44; background: linear-gradient(110deg, #3a1a1499, #1b1416 70%); }
.dl-callout > div { flex: 1; min-width: 0; }
.dl-callout b { display: block; font: 800 17px 'Manrope', sans-serif; color: var(--cx-text); }
.dl-callout small { color: var(--cx-muted); font-size: 13px; }
.dl-demo-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: #1f6f5c26; border: 1px solid #3fcf9f44; color: #cfeee1; font-size: 14px; line-height: 1.55; }
.dl-demo-note .cx-ic { flex: none; width: 18px; height: 18px; color: #9bf0c9; margin-top: 2px; }
.dl-arena.is-demo { border-color: #3fcf9f33; }
.dl-mystat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dl-mystat > div { padding: 12px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff0d; text-align: center; }
.dl-mystat b { display: block; font: 800 24px 'Manrope', sans-serif; color: var(--cx-text); }
.dl-mystat span { color: var(--cx-muted); font-size: 12px; }
.dl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dl-kpis .cx-kpi.warn { border-color: #f0b46e55; }
.dl-kpis .cx-kpi.warn strong { color: var(--cx-warn); }
.dl-arow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-top: 1px solid #ffffff0d; }
.dl-arow:first-of-type { border-top: 0; }
.dl-arow > b { font: 800 14px 'Manrope', sans-serif; color: var(--cx-accent-2); }
.dl-arow > span { color: var(--cx-text); }
.dl-arow > small { grid-column: 2; color: var(--cx-muted); font-size: 12.5px; }
.dl-arow .dl-actions { grid-column: 1 / -1; margin-top: 8px; }

/* challenge dialog */
.dl-modal h2 { margin-top: 2px; }
.dl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: #0000004d; border: 1px solid #ffffff12; margin: 6px 0 14px; }
.dl-seg label { position: relative; margin: 0; cursor: pointer; }
.dl-seg input { position: absolute; inset: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.dl-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 10px; color: var(--cx-muted); font-size: 14px; transition: .25s; }
.dl-seg span .cx-ic { width: 16px; height: 16px; }
.dl-seg input:checked + span { background: linear-gradient(180deg, #e0905f, #c26f45); color: #1d0f08; font-weight: 500; box-shadow: 0 6px 20px -8px #e0905f; }
.dl-seg input:focus-visible + span { outline: 2px solid #f3b893; outline-offset: 2px; }
.dl-pickbox .zt-search { width: 100%; margin-bottom: 8px; }
.dl-plist { display: grid; gap: 6px; max-height: 248px; overflow-y: auto; padding: 2px 4px 2px 0; }
.dl-pitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid #ffffff10; background: #ffffff05; color: var(--cx-text); text-align: left; cursor: pointer; transition: .2s; font: inherit; text-transform: none; letter-spacing: normal; }
.dl-pitem:hover { border-color: #d98a5f55; background: #d98a5f0f; }
.dl-pitem > .dl-pt { flex: 1; min-width: 0; }
.dl-pitem > .identity-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; }
.dl-modal, .dl-plist { overflow-x: hidden; }
.dl-pitem b { display: block; font-weight: 500; }
.dl-pitem small { color: var(--cx-muted); font-size: 12px; }
.dl-pitem > i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff22; color: transparent; transition: .2s; }
.dl-pitem > i .cx-ic { width: 14px; height: 14px; }
.dl-pitem.is-sel { border-color: #e9a47c; background: #d98a5f22; box-shadow: 0 0 0 3px #d98a5f22; }
.dl-pitem.is-sel > i { background: #e0905f; border-color: #e0905f; color: #1d0f08; }
.dl-plist-empty { padding: 10px 2px; }
.dl-open-hint { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #1f6f5c22; border: 1px solid #3fcf9f33; color: #cfeee1; font-size: 14px; margin: 0 0 12px; }
.dl-open-hint .cx-ic { flex: none; width: 18px; height: 18px; color: #9bf0c9; }
form:has(input[name=mode][value=open]:checked) .dl-pickbox { display: none; }
form:has(input[name=mode][value=open]:checked) .dl-open-hint { display: flex; }
.dl-terms { list-style: none; margin: 12px 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff0e; }
.dl-terms li { display: flex; gap: 10px; align-items: flex-start; color: #d7ccc5; font-size: 13.5px; line-height: 1.45; }
.dl-terms .cx-ic { flex: none; width: 16px; height: 16px; color: var(--cx-accent); margin-top: 1px; }

/* header link badge */
header nav.zt-nav a[data-nav="duels"] { position: relative; }
.dl-navbadge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: var(--dl-dire); color: #fff; font: 800 11px 'Manrope', sans-serif; box-shadow: 0 0 0 2px #151214; animation: dl-livepulse 1.8s ease-out infinite; }

/* overlays */
.dl-flash { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, #00000066, transparent 60%); animation: dl-flashbg 1.7s ease-out both; }
.dl-flash b { font: 800 clamp(64px, 12vw, 150px) 'Manrope', sans-serif; letter-spacing: -.03em; background: linear-gradient(160deg, #fff4ea, #ffb37a 45%, #ff5f4f);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px #ff6a3dcc); animation: dl-flashtext 1.7s cubic-bezier(.2, 1.4, .4, 1) both; }
.dl-flash.is-win b { background-image: linear-gradient(160deg, #fffbe9, #ffd98a 45%, #ffa24c); filter: drop-shadow(0 0 40px #ffcf7acc); }
.dl-flash.is-lose b { background-image: linear-gradient(160deg, #f1e3de, #b9a39b); filter: drop-shadow(0 0 30px #00000088); }
@keyframes dl-flashtext { 0% { transform: scale(2.4); opacity: 0; } 25% { transform: scale(.94); opacity: 1; } 40% { transform: scale(1.03); } 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes dl-flashbg { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.dl-confetti { position: fixed; inset: 0; z-index: 9997; pointer-events: none; overflow: hidden; }
.dl-confetti i { position: absolute; top: -20px; left: var(--x); width: var(--w); height: calc(var(--w) * .45); background: var(--c); border-radius: 2px; opacity: 0;
  animation: dl-fall var(--d) cubic-bezier(.3, .2, .5, 1) var(--delay) forwards; }
@keyframes dl-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--sway), 105vh) rotate(var(--r)); opacity: .9; } }

/* responsive */
@media (max-width: 1100px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-hero { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 760px) {
  .dl-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 0; border-radius: 20px; }
  .dl-emblem { display: none; }
  .dl-lead { font-size: 15.5px; }
  .dl-hero-stats { grid-template-columns: 1fr 1fr; margin: 24px -20px 0; }
  .dl-hero-stats > div { padding: 14px 20px; border-left: 0; border-top: 1px solid #ffffff10; }
  .dl-hero-stats > div:first-child { padding-left: 20px; }
  .dl-hero-stats > div:nth-child(even) { border-left: 1px solid #ffffff10; }
  .dl-hero-stats dd { font-size: 20px; }
  .dl-hero-cta .cx-btn { flex: 1; justify-content: center; }
  .dl-arena { padding: 16px 14px 18px; border-radius: 20px; }
  .dl-format { margin-left: 0; width: 100%; }
  .dl-vs { gap: 6px; }
  .dl-side { padding: 12px 4px; }
  .dl-ava { width: 72px; height: 72px; padding: 3px; }
  .dl-ava .identity-avatar { width: 66px !important; height: 66px !important; font-size: 24px; }
  .dl-ava-q span { width: 66px; height: 66px; font-size: 28px; }
  .dl-nick { font-size: 16px; }
  .dl-rate b { font-size: 16px; }
  .dl-core { width: 64px; height: 64px; }
  .dl-core::before { inset: 10px; }
  .dl-ring-2 { inset: 8px; }
  .dl-core b { font-size: 22px; }
  .dl-flags { gap: 4px; }
  .dl-flag { font-size: 11px; padding: 3px 7px; }
  .dl-steps b { display: none; }
  .dl-steps li.now b { display: block; position: absolute; top: 46px; white-space: nowrap; font-size: 12px; }
  .dl-steps { margin-bottom: 14px; }
  .dl-steps span { width: 34px; height: 34px; border-radius: 11px; }
  .dl-steps li::before { top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); }
  .dl-panel, .dl-result { flex-direction: column; padding: 18px 16px; gap: 12px; }
  .dl-panel-aside { align-self: flex-start; }
  .dl-lobby, .dl-pay { padding: 18px 16px; }
  .dl-creds { grid-template-columns: 1fr; }
  .dl-actions .cx-btn { flex: 1 1 auto; justify-content: center; }
  .dl-invite { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'ava main' 'timer timer' 'act act'; padding: 16px; }
  .dl-invite > .dl-timer { justify-self: start; }
  .dl-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dl-row .dl-timer { display: none; }
  .dl-mystat, .dl-kpis { grid-template-columns: 1fr 1fr; }
  .dl-callout { flex-wrap: wrap; }
  .dl-callout .cx-btn { width: 100%; justify-content: center; }
  .dl-pay-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .dl *, .dl *::before, .dl-navbadge, .dl-kicker i { animation: none !important; transition: none !important; }
}

/* ---------- online payment (pay.js) ---------- */
.pay-online { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #1f6f5c1a; border: 1px solid #3fcf9f40; }
.pay-online-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.pay-online-head b { display: block; color: var(--cx-text); font-weight: 500; }
.pay-online-head small { color: var(--cx-muted); font-size: 13px; line-height: 1.5; }
.pay-online-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #3fcf9f22; color: #9bf0c9; }
.pay-online-ic .cx-ic { width: 19px; height: 19px; }
.pay-online form button[type=submit] { width: 100%; }
.pay-state { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 14px; }
.pay-state .cx-ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pay-state.is-on { background: var(--cx-ok-bg); color: #cfeecf; } .pay-state.is-on .cx-ic { color: var(--cx-ok); }
.pay-state.is-off { background: var(--cx-warn-bg); color: #f6d7b0; } .pay-state.is-off .cx-ic { color: var(--cx-warn); }
.pay-card.is-on { border-color: #8fcf8f44; }
.pay-sub { margin: 18px 0 8px; font: 500 14px 'Golos Text', sans-serif; color: var(--cx-text); text-transform: none; letter-spacing: normal; }
.pay-list { display: grid; gap: 6px; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 12px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #ffffff06; border: 1px solid #ffffff0d; }
.pay-row span { color: var(--cx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-row b { font: 800 15px 'Manrope', sans-serif; }
.pay-row small { grid-column: 1 / -1; color: var(--cx-muted); font-size: 12px; }
.pay-result { display: grid; place-items: center; min-height: 50vh; }
.pay-result-card { max-width: 560px; text-align: center; padding: 40px 32px; border-radius: 24px; border: 1px solid var(--cx-line-2); background: var(--cx-card); }
.pay-result-card h1 { font: 800 30px/1.2 'Manrope', sans-serif; margin: 16px 0 10px; text-transform: none; letter-spacing: normal; }
.pay-result-card p { color: #cdbfb6; line-height: 1.6; }
.pay-result-card .dl-actions { justify-content: center; }
.pay-result-ic { width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; }
.pay-result-ic .cx-ic { width: 34px; height: 34px; }
.pay-result-card.is-ok .pay-result-ic { background: var(--cx-ok-bg); color: var(--cx-ok); box-shadow: 0 0 40px -8px var(--cx-ok); }
.pay-result-card.is-fail .pay-result-ic { background: var(--cx-bad-bg); color: var(--cx-bad); }

/* ---------- player balance ---------- */
.wl-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 18px;
  border-radius: 22px; border: 1px solid #ffcf7a44; background: radial-gradient(90% 140% at 0% 0%, #4a2a12, transparent 60%), radial-gradient(70% 120% at 100% 100%, #1f3b2e, transparent 60%), var(--cx-card); }
.wl-hero-fx { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, #ffffff0d 48%, transparent 60%); background-size: 260% 100%; animation: dl-sheen 5s ease-in-out infinite; }
.wl-amount { display: block; font: 800 clamp(34px, 5vw, 50px)/1.05 'Manrope', sans-serif; letter-spacing: -.02em; background: linear-gradient(120deg, #fff4dc, #ffcf7a 45%, #ff9a5c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px #ffb35a44); font-variant-numeric: tabular-nums; }
.wl-note { margin: 8px 0 0; color: #d9cbc1; font-size: 14px; }
.wl-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-paybox { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #ffcf7a12; border: 1px solid #ffcf7a40; }
.wl-paybox form button[type=submit] { width: 100%; }
.wl-ic { background: #ffcf7a22 !important; color: #ffd48a !important; }
.wl-short { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.wl-short .cx-ic { width: 16px; height: 16px; color: #ffcf7a; }
.wl-alt { margin-top: 12px; }
.wl-alt summary { cursor: pointer; color: var(--cx-accent-2); font-size: 14px; }
.wl-shares { margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff10; }
.wl-shares-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wl-shares-head small { color: var(--cx-muted); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #ffffff08; border: 1px solid #ffffff12; color: var(--cx-muted); font-size: 12.5px; }
.wl-chip.is-in { color: #cfeee1; background: #1f6f5c33; border-color: #3fcf9f44; }
.wl-chip .identity-avatar { width: 22px !important; height: 22px !important; border-radius: 50%; font-size: 10px; }
.wl-todo { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #ffffff0d; }
.wl-todo:first-of-type { border-top: 0; }
.wl-todo > div { flex: 1; min-width: 0; }
.wl-todo b { display: block; color: var(--cx-text); font-weight: 500; }
.wl-todo small { color: var(--cx-muted); font-size: 12.5px; display: block; margin-bottom: 6px; }
.wl-need { color: var(--cx-warn) !important; white-space: nowrap; }
.wl-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.wl-amounts label { position: relative; margin: 0; cursor: pointer; }
.wl-amounts input { position: absolute; inset: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; opacity: 0; pointer-events: none; margin: 0; padding: 0; }
.wl-amounts span { display: block; text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid #ffffff14; background: #ffffff06; font: 800 14px 'Manrope', sans-serif; color: var(--cx-text); transition: .2s; }
.wl-amounts input:checked + span { background: linear-gradient(180deg, #e0905f, #c26f45); color: #1d0f08; border-color: #f3b893; box-shadow: 0 6px 18px -8px #e0905f; }
.wl-amounts input:focus-visible + span { outline: 2px solid #f3b893; outline-offset: 2px; }
.wl-topup button[type=submit] { width: 100%; }
.wl-hist { display: grid; gap: 6px; }
.wl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 2px 12px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #ffffff05; border: 1px solid #ffffff0b; }
.wl-row > span { color: var(--cx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wl-row > b { font: 800 15px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.wl-row > b.up { color: #9bf0c9; }
.wl-row > b.down { color: #ffb3a7; }
.wl-row > small { grid-column: 1 / -1; color: var(--cx-muted); font-size: 12px; }
.wl-admin > span { white-space: normal; }
.wl-adm-act { display: inline-flex; gap: 6px; }
.wl-attn { border-color: #f0b46e55 !important; }
.wl-legal { margin-top: 14px; }
@media (max-width: 760px) {
  .wl-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wl-hero { padding: 20px; }
  .wl-hero-actions .cx-btn { flex: 1; justify-content: center; }
}

/* payment service switch */
.pay-provider { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.pay-provider > span { color: var(--cx-text); font-size: 14px; }
.pay-provider .dl-seg { margin: 0; min-width: 260px; }
.pay-prov { margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: #ffffff05; border: 1px solid #ffffff10; }
.pay-prov summary { cursor: pointer; font-weight: 500; color: var(--cx-text); }
.pay-prov form { margin-top: 12px; }

/* ---------- payment method cards (several services) ---------- */
.pm-list { display: grid; gap: 10px; margin: 4px 0 14px; }
.pm-card { position: relative; display: block; margin: 0; cursor: pointer; }
.pm-card > input { position: absolute; inset: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; opacity: 0; pointer-events: none; margin: 0; padding: 0; }
.pm-body { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; border: 1px solid #ffffff16; background: #ffffff05; transition: border-color .2s, background .2s, box-shadow .2s; }
.pm-card:hover .pm-body { border-color: #d98a5f55; }
.pm-card > input:checked + .pm-body { border-color: #e9a47c; background: linear-gradient(135deg, #d98a5f1f, #ffffff05 60%); box-shadow: 0 0 0 3px #d98a5f22, 0 12px 30px -18px #e0905f; }
.pm-card > input:focus-visible + .pm-body { outline: 2px solid #f3b893; outline-offset: 2px; }
.pm-top { display: flex; align-items: center; gap: 10px; }
.pm-top b { font: 800 17px 'Manrope', sans-serif; color: var(--cx-text); }
.pm-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 800 13px 'Manrope', sans-serif; letter-spacing: .02em; color: #fff; background: linear-gradient(140deg, #ff8a4c, #c4532e); }
.pm-cactus .pm-logo { background: linear-gradient(140deg, #7bd88f, #2f8f4e); }
.pm-badge { margin-left: auto; font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; color: #1d0f08; background: linear-gradient(180deg, #ffd29f, #e9a47c); }
.pm-ways { color: var(--cx-muted); font-size: 13px; }
.pm-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.pm-line { display: flex; flex-direction: column; gap: 1px; }
.pm-line i { font-style: normal; color: var(--cx-muted); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.pm-line b { color: var(--cx-text); font-weight: 500; font-size: 14px; }
.pm-line .pm-gross { font: 800 16px 'Manrope', sans-serif; }
.pm-line .pm-net { font: 800 16px 'Manrope', sans-serif; color: #9bf0c9; }
.pm-out { grid-column: 1 / -1; padding-top: 6px; border-top: 1px dashed #ffffff14; }
.pm-warn { display: flex; align-items: center; gap: 8px; color: var(--cx-warn); font-size: 13px; }
.pm-warn .cx-ic { width: 16px; height: 16px; flex: none; }
.wl-step { margin: 6px 0 8px; color: var(--cx-text); font-weight: 500; font-size: 14px; }

/* balance split by service */
.wl-buckets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wl-bucket { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: #00000033; border: 1px solid #ffffff14; }
.wl-bucket b { font: 800 16px 'Manrope', sans-serif; color: var(--cx-text); }
.wl-bucket small { color: var(--cx-muted); font-size: 12px; }
.wl-b-rukassa { border-color: #ff8a4c44; }
.wl-b-cactus { border-color: #7bd88f44; }

/* refund form */
.wd-src, .wd-ways { display: grid; gap: 8px; margin-bottom: 12px; }
.wd-ways { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.wd-src label, .wd-ways label { position: relative; margin: 0; cursor: pointer; }
.wd-src input, .wd-ways input { position: absolute; inset: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; opacity: 0; pointer-events: none; margin: 0; padding: 0; }
.wd-src label > span, .wd-ways label > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid #ffffff16; background: #ffffff05; transition: .2s; }
.wd-ways label > span { align-items: center; text-align: center; font-size: 14px; color: var(--cx-text); }
.wd-src b { font: 800 16px 'Manrope', sans-serif; color: var(--cx-text); }
.wd-src small { color: var(--cx-muted); font-size: 12.5px; }
.wd-src input:checked + span, .wd-ways input:checked + span { border-color: #e9a47c; background: #d98a5f1c; box-shadow: 0 0 0 3px #d98a5f1c; }
.wd-src label.is-low { opacity: .5; cursor: not-allowed; }
.wd-sum { display: grid; gap: 4px; margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: #ffffff06; border: 1px solid #ffffff10; font-size: 14px; color: #d7ccc5; }
.wd-sum span { display: flex; justify-content: space-between; gap: 10px; }
.wd-sum .wd-net { padding-top: 6px; border-top: 1px solid #ffffff10; color: var(--cx-text); }
.wd-sum .wd-net b { font: 800 18px 'Manrope', sans-serif; color: #9bf0c9; }
.wd-flags { display: flex !important; align-items: center; gap: 6px; color: var(--cx-warn) !important; }
.wd-flags .cx-ic { width: 14px; height: 14px; }

/* admin */
.pay-ways { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.pay-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: #ffffff30; vertical-align: middle; }
.pay-dot.is-on { background: var(--cx-ok); box-shadow: 0 0 0 3px #8fcf8f33; }
.rs-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 0; border-top: 1px solid #ffffff0d; }
.rs-row:first-of-type { border-top: 0; }
.rs-row b { font: 800 15px 'Manrope', sans-serif; color: var(--cx-text); }
.rs-row span { color: #d7ccc5; font-size: 14px; }
.rs-row .rs-owed { grid-column: 2; color: var(--cx-warn); }
.rs-row small { grid-column: 1 / -1; color: var(--cx-muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .pm-lines { grid-template-columns: 1fr 1fr; }
  .pm-badge { font-size: 10.5px; }
}

/* ---------- balance page v2: gateway marks, clear withdrawal block, hover explanations ---------- */
.pmk { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 22px; min-width: 34px; padding: 0 6px; border-radius: 6px; font: 800 10.5px/1 'Manrope', sans-serif; font-style: normal; letter-spacing: .02em; white-space: nowrap; background: #fff; color: #1d1d1f; box-shadow: 0 1px 0 #00000040; flex: none; }
.pmk svg { height: 14px; width: auto; display: block; }
.pmk-visa { color: #1a1f71; font-style: italic; font-size: 11.5px; letter-spacing: .04em; }
.pmk-mc svg { height: 16px; }
.pmk-mir { color: #0f754e; font-size: 11px; letter-spacing: .06em; }
.pmk-sbp { color: #1d1d1f; }
.pmk-qr { color: #1d1d1f; }
.pmk-usdt { color: #1b7a5e; }
.pm-marks { display: flex; flex-wrap: wrap; gap: 5px; }
.pm-title { display: flex; flex-direction: column; line-height: 1.1; }
.pm-title small { color: var(--cx-muted); font-size: 11.5px; font-weight: 400; }
.pm-top .pm-badge { margin-left: auto; }
.pm-top .zt-tip { margin-left: 6px; }
.pm-top .pm-badge + .zt-tip { margin-left: 6px; }
.pm-top .pm-title + .zt-tip { margin-left: auto; }
.pm-lines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-list:not([data-topup]) .pm-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* the withdrawal box inside a gateway card */
.pm-outbox { display: grid; gap: 8px; margin-top: 2px; padding: 12px 13px; border-radius: 12px; background: #0000002e; border: 1px solid #ffffff14; }
.pm-outbox.is-usdt { border-color: #f3c76a40; background: linear-gradient(135deg, #f3c76a12, #0000002e 60%); }
.pm-out-head { display: flex; align-items: center; gap: 7px; font: 800 12px 'Manrope', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #f3b893; }
.pm-out-head .cx-ic { width: 15px; height: 15px; }
.pm-out-ways { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px 5px 5px; border-radius: 10px; background: #ffffff0d; border: 1px solid #ffffff1a; }
.pm-chip em { font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--cx-text); margin-left: 4px; }
.pm-out-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #d7ccc5; }
.pm-out-facts b { color: var(--cx-text); font-weight: 800; }
.pm-note { color: var(--cx-muted); font-size: 12.5px; }
.pm-outbox .pm-warn { font-size: 13px; }

/* «?» explanation: hover on desktop, tap (focus) on phones */
.zt-tip { position: relative; display: inline-flex; flex: none; outline: none; cursor: help; }
.zt-tip-q { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 13px 'Manrope', sans-serif; color: #1d0f08; background: linear-gradient(180deg, #ffd29f, #e9a47c); box-shadow: 0 0 0 3px #e9a47c22; transition: transform .15s; }
.zt-tip:hover .zt-tip-q, .zt-tip:focus .zt-tip-q { transform: scale(1.08); }
.zt-tip:focus-visible .zt-tip-q { outline: 2px solid #f3b893; outline-offset: 2px; }
.zt-tip-box { position: absolute; z-index: 40; top: calc(100% + 10px); right: -8px; width: min(340px, 78vw); padding: 14px 16px; border-radius: 14px; background: #1b1411; border: 1px solid #e9a47c55; box-shadow: 0 18px 40px -12px #000c; color: #e9e0da; font-size: 13.5px; line-height: 1.5; font-weight: 400; text-align: left; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.zt-tip-box::before { content: ''; position: absolute; top: -6px; right: 16px; width: 10px; height: 10px; background: #1b1411; border-left: 1px solid #e9a47c55; border-top: 1px solid #e9a47c55; transform: rotate(45deg); }
.zt-tip-box b { color: #fff; }
.zt-tip:hover .zt-tip-box, .zt-tip:focus .zt-tip-box, .zt-tip:focus-within .zt-tip-box { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

/* hero chips: amount, where it came from, where it can go */
.wl-bucket { gap: 4px; padding: 10px 13px; min-width: 190px; }
.wl-bucket b { font-size: 18px; }
.wl-bucket-out { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.wl-bucket-out i { font-style: normal; color: var(--cx-muted); font-size: 12px; }
.wl-bucket-out i:last-child { margin-left: 2px; color: #d7ccc5; }
.wl-bucket .pmk { height: 19px; min-width: 28px; font-size: 9.5px; }
.wl-bucket .pmk svg { height: 12px; }

/* two columns: top up | withdraw */
.wl-main { align-items: start; }
.wl-main .cx-card-head h3 { display: flex; align-items: center; gap: 8px; }
.wl-main .cx-card-head .cx-ic { width: 18px; height: 18px; color: #e9a47c; }
.wl-out-card .cx-card-head .cx-ic { transform: rotate(0deg); }
.wl-anchor { position: relative; top: -90px; display: block; width: 0; height: 0; }
.wl-step { display: flex; align-items: center; gap: 8px; }
.wl-num { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 11px 'Manrope', sans-serif; color: #1d0f08; background: #e9a47c; flex: none; }
.wl-in-card .wl-amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wd-intro { margin: 0 0 12px; font-size: 13.5px; }
.wd-src-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wd-marks { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wd-src .pmk, .wd-ways .pmk { height: 20px; min-width: 30px; font-size: 10px; }
.wd-ways label > span { flex-direction: row !important; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wd-low { color: var(--cx-warn) !important; }
.wd-only { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 12px; padding: 9px 12px; border-radius: 10px; background: #f3c76a12; border: 1px solid #f3c76a33; color: #f1dcb0; font-size: 13px; }
.wd-only .cx-ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--cx-warn); }
.wd-sum small { color: var(--cx-muted); font-size: 12px; }
.wl-out-card button[type=submit] { width: 100%; }
.wl-out-empty { display: grid; justify-items: start; gap: 6px; padding: 8px 0; color: #d7ccc5; }
.wl-out-empty .cx-ic { width: 26px; height: 26px; color: #e9a47c; }
.wl-out-empty b { font: 800 16px 'Manrope', sans-serif; color: var(--cx-text); }
.wl-out-empty p { margin: 0; color: var(--cx-muted); font-size: 14px; }

/* rules: why and how, in plain words */
.wl-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.wl-rule { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: #ffffff05; border: 1px solid #ffffff0d; }
.wl-rule-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #d98a5f1f; color: #f3b893; flex: none; }
.wl-rule-ic .cx-ic { width: 17px; height: 17px; }
.wl-rule b { display: block; color: var(--cx-text); font-size: 14.5px; margin-bottom: 3px; }
.wl-rule p { margin: 0; color: var(--cx-muted); font-size: 13px; line-height: 1.5; }

/* history tab */
.wl-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: #d7ccc5; }
.wl-hist-top b { font: 800 20px 'Manrope', sans-serif; color: var(--cx-text); margin-left: 6px; }

@media (max-width: 1180px) {
  .wl-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pm-lines { grid-template-columns: 1fr 1fr; }
  .wl-in-card .wl-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-bucket { min-width: 0; flex: 1 1 100%; }
  .zt-tip-box { right: -40px; }
  .zt-tip-box::before { right: 48px; }
}

.pm-lines .pm-line:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed #ffffff12; }
.pm-lines { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.wd-src-top .wd-marks { justify-content: flex-end; }
.pm-out-facts b { font: 800 13.5px 'Manrope', sans-serif; }
.zt-tip-box b { font: inherit; font-weight: 700; }
