/* Тема «Шмеля» поверх базовых стилей: медовые акценты, соты, мягкий объём.
   Подключается последней — переопределяет токены и компоненты, разметку не трогает. */
:root {
  --bg: #0e0f12; --card: #17181d; --card2: #202229; --line: rgba(255,255,255,.07);
  --text: #f6f6f8; --muted: #9b9daa; --accent: #ffc53d; --accent2: #ff9f1a; --accent-ink: #231600;
  --ok: #43d98a; --bad: #ff5d6c; --radius: 20px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --glow: 0 8px 24px rgba(255,176,32,.28);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32L28 66zm0 32L0 82V66l28-16 28 16v16L28 98z' fill='none' stroke='%23ffc53d' stroke-opacity='.05' stroke-width='1.2'/%3E%3C/svg%3E");
}
html.light {
  --bg: #f6f3ea; --card: #ffffff; --card2: #f3efe3; --line: rgba(40,30,0,.08);
  --text: #1b1a17; --muted: #7a7669; --accent: #ffbe1a; --accent2: #ff9500; --accent-ink: #231600;
  --shadow: 0 1px 2px rgba(60,40,0,.06), 0 8px 24px rgba(60,40,0,.08);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32L28 66zm0 32L0 82V66l28-16 28 16v16L28 98z' fill='none' stroke='%23c58a00' stroke-opacity='.08' stroke-width='1.2'/%3E%3C/svg%3E");
}

body {
  background: radial-gradient(120% 60% at 50% -10%, rgba(255,197,61,.16), transparent 60%), var(--hex), var(--bg);
  background-attachment: fixed;
  font-family: -apple-system, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.005em;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
h3 { font-weight: 750; letter-spacing: -.01em; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; padding: 10px 16px; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: linear-gradient(to bottom, rgba(14,15,18,.85), rgba(14,15,18,.55)); }
html.light .top { background: linear-gradient(to bottom, rgba(246,243,234,.9), rgba(246,243,234,.6)); }
.brand { gap: 8px; font-weight: 800; letter-spacing: -.02em; }
.brand .bee-svg { margin: -6px -4px -6px -6px; }
.brand-vpn { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: var(--glow); }
.avatar { box-shadow: 0 0 0 2px rgba(255,197,61,.5); }

/* карточки */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.accent { position: relative; overflow: hidden; border: 1px solid rgba(255,197,61,.35);
  background: radial-gradient(90% 120% at 100% 0%, rgba(255,197,61,.28), transparent 55%), linear-gradient(160deg, #2a2210, #17181d 65%); }
.card.accent::after { content: ""; position: absolute; right: -20px; top: -10px; width: 140px; height: 140px; background: var(--hex); background-size: 28px 49px; opacity: .9; pointer-events: none;
  -webkit-mask: radial-gradient(circle at 70% 30%, #000, transparent 70%); mask: radial-gradient(circle at 70% 30%, #000, transparent 70%); }
html.light .card.accent { background: radial-gradient(90% 120% at 100% 0%, rgba(255,190,26,.35), transparent 55%), linear-gradient(160deg, #fff4cf, #fff 65%); border-color: rgba(255,170,0,.35); }
.tariff-name { font-size: 26px; font-weight: 850; letter-spacing: -.025em; }

/* кнопки */
.btn { border-radius: 16px; font-weight: 700; transition: transform .12s ease, filter .15s ease, box-shadow .15s ease; border: 1px solid var(--line); }
.btn:active { transform: scale(.975); }
.btn.primary { background: linear-gradient(135deg, #ffd45a, var(--accent) 45%, var(--accent2)); color: var(--accent-ink); border-color: transparent; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.small { border-radius: 12px; }
.btn:disabled { box-shadow: none; }

/* нижние вкладки — парящая панель */
.tabs { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(23,24,29,.82); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); box-shadow: 0 12px 40px rgba(0,0,0,.45); max-width: 560px; margin: 0 auto; }
html.light .tabs { background: rgba(255,255,255,.86); box-shadow: 0 10px 30px rgba(60,40,0,.15); }
.tabs button { border-radius: 16px; padding: 7px 0 6px; font-weight: 600; transition: color .2s, background .2s; }
.tabs button.on { color: var(--accent-ink); background: linear-gradient(135deg, #ffd45a, var(--accent2)); box-shadow: var(--glow); }
html:not(.light) .tabs button.on { color: #231600; }

/* сегменты, списки, прочее */
.seg { border-radius: 16px; padding: 4px; border: 1px solid var(--line); }
.seg button { border-radius: 12px; }
.seg button.on { background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), var(--card); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.li-ico { border-radius: 14px; background: linear-gradient(145deg, rgba(255,197,61,.22), rgba(255,159,26,.08)); border: 1px solid rgba(255,197,61,.18); }
.plan.hit { border: 1.5px solid rgba(255,197,61,.7); box-shadow: var(--shadow), 0 0 0 4px rgba(255,197,61,.08); }
.plan .hit-label { background: linear-gradient(135deg, #ffd45a, var(--accent2)); box-shadow: var(--glow); }
.price { font-weight: 850; letter-spacing: -.02em; }
.feat li::before { content: ""; top: 9px; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent2)); transform: rotate(45deg) scale(.7); }
.bar { background: rgba(255,255,255,.07); }
html.light .bar { background: rgba(0,0,0,.06); }
.bar i { background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 12px rgba(255,197,61,.45); }
.tile { border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(160deg, rgba(255,197,61,.08), transparent 50%), var(--card); transition: transform .15s; }
.tile:active { transform: scale(.97); }
.stat { border: 1px solid var(--line); }
.dot.on { background: linear-gradient(135deg, #ffd45a, var(--accent2)); box-shadow: var(--glow); }

/* нижний лист */
.sheet-back { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-body { border-radius: 28px 28px 0 0; padding-top: 26px; border-top: 1px solid var(--line); box-shadow: 0 -20px 60px rgba(0,0,0,.4); }
.sheet-body::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 99px; background: var(--line); }
.toast { border-radius: 99px; padding: 11px 18px; background: rgba(20,20,24,.92); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* загрузчик */
.loader { background: radial-gradient(80% 50% at 50% 40%, rgba(255,197,61,.18), transparent 70%), var(--bg); }
.loader .bee-svg { animation: hover 1.4s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(0,0,0,.35)); }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-3deg); } }
.loader-text { font-weight: 600; letter-spacing: .02em; }

/* улей: сцена крупнее и живее */
.hive-hero { border: 1px solid var(--line); }
.bee-card .bee-ava { background: radial-gradient(circle, rgba(255,197,61,.35), transparent 68%); }
.flower { border: 1px solid var(--line); }
.quest.bonus { background: linear-gradient(90deg, rgba(255,197,61,.16), transparent); }


/* ===================== анимации ===================== */
.view-enter > * { animation: rise .5s cubic-bezier(.2,.85,.25,1) both; }
.view-enter > *:nth-child(2) { animation-delay: .04s; }
.view-enter > *:nth-child(3) { animation-delay: .08s; }
.view-enter > *:nth-child(4) { animation-delay: .12s; }
.view-enter > *:nth-child(5) { animation-delay: .16s; }
.view-enter > *:nth-child(6) { animation-delay: .2s; }
.view-enter > *:nth-child(7) { animation-delay: .24s; }
.view-enter > *:nth-child(n+8) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.bee-ava .bee-svg, .home-bee .bee-svg, .sub-bee-hero .bee-svg, .wardrobe-prev .bee-svg, .reveal .bee-svg, .go-card .bee-svg { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.tabs button.on .ic { animation: tabpop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes tabpop { 40% { transform: scale(1.25) translateY(-2px); } }
.pollen b.bump { animation: bump .5s ease; display: inline-block; }
@keyframes bump { 40% { transform: scale(1.25); color: var(--accent); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: 42%; left: 50%; font-style: normal; font-size: 18px; animation: burst 1.2s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.flight.ready .btn.primary { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(255,197,61,.15), var(--glow); } }
.ach.ready .ach-e { animation: wiggle 1.6s ease-in-out infinite; display: inline-block; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg) scale(1.1); } 85% { transform: rotate(10deg) scale(1.1); } }
.sheet-body { animation: sheetUp .38s cubic-bezier(.2,.9,.25,1); }
@keyframes sheetUp { from { transform: translateY(60px); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .view-enter > *, .bee-svg, .confetti i, .flight.ready .btn.primary, .ach.ready .ach-e { animation: none !important; } }


/* ===================== мимика и трюки ===================== */
.bee-svg .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 5.2s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.bee-svg .zzz { animation: zzz 2.6s ease-in-out infinite; opacity: 0; }
.bee-svg .zzz.z2 { animation-delay: 1.1s; }
@keyframes zzz { 20% { opacity: 1; } 100% { transform: translate(8px, -14px); opacity: 0; } }
.bee-svg .heart { transform-box: fill-box; transform-origin: center; animation: heartbeat .7s ease-in-out infinite; }
@keyframes heartbeat { 50% { transform: scale(1.18); } }
.bee-act { display: inline-block; cursor: pointer; }
.act-spin { animation: aspin .95s cubic-bezier(.4,.1,.2,1); }
@keyframes aspin { 45% { transform: rotate(200deg) scale(1.15); } 100% { transform: rotate(360deg); } }
.act-loop { animation: aloop 1.15s ease-in-out; }
@keyframes aloop { 25% { transform: translate(20px, -18px) rotate(90deg); } 50% { transform: translate(0, -38px) rotate(180deg); } 75% { transform: translate(-20px, -18px) rotate(270deg); } 100% { transform: rotate(360deg); } }
.act-hop { animation: ahop .85s ease; }
@keyframes ahop { 20% { transform: translateY(-18px) scale(1.04, .96); } 40% { transform: translateY(0) scale(1.06, .9); } 60% { transform: translateY(-9px); } 80% { transform: translateY(0) scale(.98, 1.02); } }
.act-shake { animation: ashake .6s; }
@keyframes ashake { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } }
.bee-bubble { position: absolute; left: 50%; bottom: calc(100% - 8px); transform: translateX(-30%); z-index: 5; width: max-content; max-width: 190px;
  background: #fff; color: #231600; font-size: 12px; font-weight: 700; line-height: 1.25; padding: 8px 11px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: bubbleIn .35s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.bee-bubble::after { content: ""; position: absolute; left: 24%; bottom: -6px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bee-bubble.out { opacity: 0; transform: translateX(-30%) translateY(-6px); transition: .3s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateX(-30%) translateY(8px) scale(.8); } }
.bee-card { overflow: visible; }
.surprise-drop { animation: dropfloat 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dropfloat { 50% { transform: translateY(-5px) rotate(8deg) scale(1.08); } }
.pick .bee-svg { transition: transform .25s; }
.pick:hover .bee-svg, .pick:active .bee-svg { transform: rotate(-8deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .bee-svg .lid, .bee-svg .zzz, .bee-svg .heart, .act-spin, .act-loop, .act-hop, .act-shake, .surprise-drop { animation: none !important; } }


/* ===================== игра v2 ===================== */
.game-wrap { background: #5fbcff; }
.game-hud { gap: 8px; }
.g-score { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.88); border: 2px solid #2a1a06; border-radius: 99px; padding: 3px 12px 3px 8px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.g-score span { font-size: 18px; }
.g-score b { font-size: 22px !important; min-width: 30px; color: #231600 !important; text-shadow: none !important; }
.g-combo { font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.4); font-size: 15px; min-width: 20px; transition: transform .2s; }
.g-combo.hot { color: #ffd45a; transform: scale(1.12); }
.game-time { border: 2px solid #2a1a06; height: 14px; background: rgba(255,255,255,.75); }
.game-time i.low { background: linear-gradient(90deg, #ff5d6c, #ff9f1a); animation: lowpulse .5s ease-in-out infinite; }
@keyframes lowpulse { 50% { opacity: .6; } }
.game-center { background: radial-gradient(circle, rgba(0,0,0,.35), rgba(0,0,0,.55)); transition: opacity .4s; }
.game-center.gone { opacity: 0; }
.g-intro { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: #fff; }
.g-intro .bee-svg { animation: bob 1.4s ease-in-out infinite; }
.g-intro b { font-size: 26px; font-weight: 900; }
.g-intro span { font-size: 14px; font-weight: 600; opacity: .9; line-height: 1.4; }
.g-intro em { font-style: normal; font-size: 72px; font-weight: 900; color: #ffd45a; text-shadow: 0 4px 0 #2a1a06; animation: countpop .8s cubic-bezier(.3,1.6,.5,1); }
@keyframes countpop { from { transform: scale(2.2); opacity: 0; } }
.go-card { position: relative; animation: rise .5s cubic-bezier(.2,.85,.25,1); }
.go-stars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 6px 0 4px; }
.go-stars span { display: block; width: 44px; height: 42px; line-height: 0; animation: starpop .5s cubic-bezier(.3,1.7,.5,1) both; }
.go-stars span.mid { width: 58px; height: 55px; margin-bottom: 8px; }
.go-stars span.on svg { filter: drop-shadow(0 0 10px rgba(255,197,61,.75)); }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.go-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 8px; }
.go-stats div { background: var(--card2); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; }
.go-stats b { font-size: 22px; font-weight: 900; }
.go-stats span { font-size: 11px; color: var(--muted); }
.bee-label.friend { fill: #0b3d2a; }


/* ===================== локации и факты ===================== */
.fact-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(17,18,20,.55); backdrop-filter: blur(6px); font-size: 17px; animation: bob 3s ease-in-out infinite; }
.loc-badge { position: absolute; top: 8px; left: 8px; background: rgba(17,18,20,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.flowers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.flowers .flower { flex: 0 0 31%; scroll-snap-align: start; }
.night-note { color: #9fb4ff; margin: -2px 0 6px; }
.loc-fact { margin-top: 10px; font-size: 12px; color: var(--muted); background: var(--card2); border-radius: 12px; padding: 8px 10px; line-height: 1.35; }
.fact-pop { position: fixed; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px; margin: 0 auto;
  display: flex; gap: 10px; align-items: flex-start; background: linear-gradient(135deg, #fff6d6, #ffe9a8); color: #231600; border: 2px solid #2a1a06;
  border-radius: 18px; padding: 12px 12px 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: factIn .5s cubic-bezier(.2,1.2,.3,1); font-size: 13px; line-height: 1.35; }
.fact-pop b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.fact-pop .fact-ico { font-size: 24px; animation: wiggle 2s ease-in-out infinite; }
.fact-pop button { margin-left: auto; font-size: 14px; color: #6b5a2a; padding: 2px 4px; }
.fact-pop.out { opacity: 0; transform: translateY(20px); transition: .35s; }
@keyframes factIn { from { opacity: 0; transform: translateY(40px) scale(.95); } }
.bee-svg .sweat { animation: sweat 1.6s ease-in infinite; transform-box: fill-box; }
@keyframes sweat { 60% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }


/* ===================== звук ===================== */
.fact-btn { display: none; }
.snd-btns { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.snd-btns button { width: 34px; height: 34px; border-radius: 50%; background: rgba(17,18,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 16px; transition: transform .15s, background .2s; }
.snd-btns button:active { transform: scale(.9); }
.snd-btns button.on { background: linear-gradient(135deg, #ffd45a, #ff9f1a); box-shadow: 0 0 12px rgba(255,197,61,.6); animation: bob 2.4s ease-in-out infinite; }

/* отступ под кнопками «Скопировать ссылку» / «QR-код» */
.grid2 + #homeBee, .grid2 + .card { margin-top: 12px; }


/* ===================== кейсы с картинками ===================== */
.case-card { overflow: hidden; }
.case-card .case-box { font-size: 0; padding: 0; margin: -4px 0 2px; display: flex; justify-content: center; }
.case-sub { background: radial-gradient(120% 70% at 50% 0%, rgba(255,197,61,.22), transparent 60%), var(--card); }
.case-activity { background: radial-gradient(120% 70% at 50% 0%, rgba(143,208,106,.2), transparent 60%), var(--card); }
.prize-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
.prize-tile { position: relative; background: var(--card2); border-radius: 14px; padding: 8px 4px 7px; text-align: center; display: flex; flex-direction: column; align-items: center; border: 1.5px solid transparent; overflow: hidden; }
.prize-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); }
.prize-tile .pt-name { font-size: 11.5px; font-weight: 700; line-height: 1.2; margin-top: 2px; min-height: 28px; display: flex; align-items: center; }
.prize-tile .pt-chance { font-size: 11px; color: var(--muted); font-weight: 600; }
.r-common { --rc: #9aa7b8; } .r-rare { --rc: #4c9bff; } .r-epic { --rc: #b36bff; } .r-legend { --rc: #ffb300; }
.prize-tile.r-epic, .prize-tile.r-legend { border-color: color-mix(in srgb, var(--rc) 55%, transparent); background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), var(--card2); }
.prize-tile.r-legend .pt-name { color: var(--accent); }
.win-row { display: flex; align-items: center; gap: 10px; }
.win-row .n { flex: 1; }

.case-open { display: flex; justify-content: center; margin: 6px 0 4px; }
.case-open[hidden], .roll[hidden] { display: none; }
.case-open.shake svg { animation: caseShake .45s ease-in-out infinite; transform-origin: 50% 90%; }
.case-open.burst .lid { animation: lidPop .5s cubic-bezier(.3,1.6,.5,1) forwards; transform-box: fill-box; transform-origin: 20% 100%; }
.case-open.burst svg { animation: caseGlow .5s ease-out forwards; }
@keyframes caseShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg) translateY(-2px); } 75% { transform: rotate(6deg) translateY(-2px); } }
@keyframes lidPop { to { transform: translate(-18px, -34px) rotate(-28deg); opacity: 0; } }
@keyframes caseGlow { 60% { transform: scale(1.08); filter: brightness(1.25) drop-shadow(0 0 18px #ffd23f); } 100% { transform: scale(.9); opacity: .0; } }

.roll { height: 112px; }
.roll::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-7px); border: 7px solid transparent; border-top-color: var(--accent); z-index: 2; }
.roll-strip div { height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 11px; font-weight: 700; position: relative; overflow: hidden; border-bottom: 3px solid var(--rc, #9aa7b8); }
.roll-strip div span { line-height: 1.15; padding: 0 4px; }
.roll-strip div.r-epic, .roll-strip div.r-legend { background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%), var(--card); }

.case-res { text-align: center; min-height: 70px; }
.win-art { position: relative; width: 170px; height: 150px; margin: 0 auto; display: grid; place-items: center; animation: winIn .55s cubic-bezier(.3,1.5,.5,1); }
.win-art svg { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.win-rays { position: absolute; inset: -10px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 45%, transparent) 0deg 12deg, transparent 12deg 30deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: spinRays 9s linear infinite; }
@keyframes spinRays { to { transform: rotate(360deg); } }
@keyframes winIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.rar-label { display: inline-block; margin-top: 2px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--rc); }


/* ===================== «60+ стран» в магазине ===================== */
.all-promo { display: block; position: relative; padding: 14px 14px 12px; border: 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,197,61,.28), transparent 55%), radial-gradient(120% 90% at 100% 100%, rgba(76,155,255,.22), transparent 60%), var(--card);
  box-shadow: 0 10px 30px rgba(255,159,26,.22), var(--shadow); }
.all-promo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--ap-a, 0deg), #ffc53d, #ff7a1a, #4c9bff, #35d07f, #ffc53d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: apBorder 4s linear infinite; }
@property --ap-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes apBorder { to { --ap-a: 360deg; } }
.all-promo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: apShine 3.6s ease-in-out infinite; }
@keyframes apShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.all-promo .ap-top { display: flex; align-items: center; gap: 10px; }
.all-promo .globe { flex: none; margin: -6px -2px -6px -6px; overflow: visible; }
.all-promo .ap-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); }
.all-promo .ap-title { font-size: 20px; font-weight: 800; line-height: 1.05; }
.all-promo .ap-title .big { font-size: 34px; font-weight: 900; background: linear-gradient(135deg, #ffb300, #ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.all-promo .ap-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.ap-marquee { margin: 12px -14px 10px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ap-track { display: flex; gap: 6px; width: max-content; animation: apMarquee 38s linear infinite; }
@keyframes apMarquee { to { transform: translateX(-50%); } }
.ap-track .chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 99px; background: var(--card2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ap-track .flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.ap-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-price { font-size: 20px; font-weight: 900; }
.ap-price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.ap-switch { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 5px 5px 5px 14px; border-radius: 99px;
  background: linear-gradient(135deg, #ffd45a, #ff9f1a); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(255,159,26,.45); animation: apPulse 2.2s ease-in-out infinite; }
@keyframes apPulse { 50% { transform: scale(1.04); box-shadow: 0 6px 20px rgba(255,159,26,.6); } }
.ap-switch .sw { background: rgba(255,255,255,.55); }
.all-promo.on .ap-switch { animation: none; background: linear-gradient(135deg, #5be08f, #20b766); color: #fff; box-shadow: 0 4px 14px rgba(32,183,102,.4); }
.all-promo.on .ap-switch .sw { background: rgba(255,255,255,.35); }
.all-promo.on .ap-kicker { color: #20b766; }
.all-promo:active { transform: scale(.99); }
.all-nudge { display: flex; align-items: center; gap: 6px; width: 100%; margin: 2px 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px; text-align: left;
  background: linear-gradient(90deg, rgba(255,197,61,.22), rgba(76,155,255,.14)); color: var(--text); border: 1px dashed rgba(255,159,26,.55); }
.all-nudge b { color: var(--accent2); }
.all-nudge .an-t { flex: 1; line-height: 1.3; }
.all-nudge .an-arrow { font-size: 20px; line-height: 1; color: var(--accent2); }
@media (prefers-reduced-motion: reduce) { .ap-track, .all-promo::before, .all-promo::after, .ap-switch { animation: none; } }


/* ===================== сундуки: «играй — выигрывай» ===================== */
.play-win { position: relative; overflow: hidden; background: radial-gradient(130% 90% at 100% 0%, rgba(255,197,61,.3), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(143,208,106,.18), transparent 60%), var(--card); border: 1.5px solid rgba(255,190,26,.45); }
.play-win .pw-title { font-size: 19px; font-weight: 900; line-height: 1.15; }
.play-win .pw-title span { background: linear-gradient(135deg, #ffb300, #ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw-steps { display: flex; align-items: center; gap: 4px; margin: 12px 0; }
.pw-steps div { flex: 1; background: var(--card2); border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.2; }
.pw-steps i { display: block; font-style: normal; font-size: 22px; margin-bottom: 3px; animation: bob 2.6s ease-in-out infinite; }
.pw-steps div:nth-child(3) i { animation-delay: .4s; } .pw-steps div:nth-child(5) i { animation-delay: .8s; }
.pw-steps b { color: var(--accent2); font-size: 18px; }
.pw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pw-pollen { font-size: 14px; color: var(--muted); } .pw-pollen b { font-size: 22px; color: var(--text); }
.pw-note, .pw-pending { margin-top: 10px; font-size: 12px; color: var(--muted); }
.pw-pending { color: var(--text); background: rgba(53,208,127,.14); border-radius: 10px; padding: 7px 10px; }
.chest-tile { width: 100%; min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px 10px 6px; margin-bottom: 10px; text-align: left; border: 1.5px solid rgba(255,190,26,.5) !important;
  background: radial-gradient(120% 100% at 0% 50%, rgba(255,197,61,.3), transparent 60%), var(--card) !important; }
.chest-tile svg { flex: none; margin: -8px -4px; }
.chest-tile > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.chest-tile b { font-size: 17px; }
.chest-tile em { font-style: normal; font-size: 26px; color: var(--accent2); }
.home-win { display: flex; align-items: center; gap: 8px; width: 100%; margin: -4px 0 12px; padding: 10px 14px; border-radius: 14px; font-size: 13px; text-align: left; color: var(--text);
  background: linear-gradient(90deg, rgba(255,197,61,.28), rgba(255,159,26,.1)); border: 1px solid rgba(255,190,26,.45); }
.home-win span { flex: 1; } .home-win b { color: var(--accent2); }
.home-win em { font-style: normal; font-size: 20px; line-height: 1; color: var(--accent2); }


/* ===================== бесплатный трафик по рангу ===================== */
.free-up { display: block; width: 100%; text-align: left; margin-top: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text);
  background: linear-gradient(135deg, rgba(255,197,61,.22), rgba(143,208,106,.14)); border: 1px solid rgba(255,190,26,.5); }
.free-up .fu-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.free-up .fu-top span { font-weight: 900; font-size: 13px; padding: 2px 8px; border-radius: 99px; background: linear-gradient(135deg, #ffd45a, #ff9f1a); color: var(--accent-ink); white-space: nowrap; }
.fu-pips { display: flex; gap: 4px; margin: 9px 0 7px; }
.fu-pips i { flex: 1; font-style: normal; text-align: center; font-size: 10px; font-weight: 800; line-height: 18px; border-radius: 6px; background: var(--card2); color: var(--muted); }
.fu-pips i.on { background: linear-gradient(180deg, #ffd45a, #ffb300); color: var(--accent-ink); }
.fu-pips i.cur { box-shadow: 0 0 0 2px var(--accent2), 0 0 12px rgba(255,159,26,.6); animation: bob 2.4s ease-in-out infinite; }
.free-up .fu-hint { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.free-up .fu-hint b { color: var(--text); }
.free-up .fu-hint em { font-style: normal; color: var(--accent2); font-weight: 900; }
.free-up.max { background: linear-gradient(135deg, rgba(53,208,127,.18), rgba(255,197,61,.14)); border-color: rgba(53,208,127,.45); }


/* ===================== баланс в магазине ===================== */
.bal-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(53,208,127,.18), rgba(255,197,61,.12)), var(--card); border: 1px solid rgba(53,208,127,.45); }
.bal-card[hidden] { display: none; }
.bal-card .bal-ico { font-size: 26px; }
.bal-card .bal-main { flex: 1; } .bal-card .bal-main b { font-size: 20px; font-weight: 900; }
.bal-card .bal-note { font-size: 11.5px; color: var(--muted); text-align: right; max-width: 42%; line-height: 1.25; }
.bal-pay { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(53,208,127,.14); border: 1px solid rgba(53,208,127,.4); font-size: 13.5px; }
.bal-pay .btn { margin-top: 8px; }
.bal-pay.part { background: rgba(255,197,61,.14); border-color: rgba(255,190,26,.45); }


/* ===================== трафик закончился ===================== */
.card.accent.limited { background: radial-gradient(120% 80% at 100% 0%, rgba(255,90,70,.22), transparent 60%), var(--card); border-color: rgba(255,90,70,.45); }
.bar.out i { background: linear-gradient(90deg, #ff7a5c, #e0442f) !important; }
.bar.low i { background: linear-gradient(90deg, #ffb300, #ff6a00) !important; }
.limit-low { margin-top: 8px; font-size: 13px; font-weight: 700; color: #e07a00; }
.limit-out { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255,90,70,.1); border: 1px solid rgba(255,90,70,.4); }
.limit-out .lo-head { display: flex; gap: 10px; align-items: flex-start; }
.limit-out .lo-ico { font-size: 26px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
.limit-out .lo-head b:first-child { font-size: 16px; }
.limit-out .lo-bal { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(53,208,127,.16); font-weight: 700; }
.limit-out .lo-bal[hidden] { display: none; }
.limit-out .lo-actions { display: grid; gap: 8px; margin-top: 10px; }
.limit-out .lo-actions .btn { margin-top: 0; }
.limit-out .lo-note { margin-top: 8px; color: var(--muted); line-height: 1.35; }


/* ===================== дополнительный аккаунт на устройстве ===================== */
.free-up.clone { background: linear-gradient(135deg, rgba(76,155,255,.14), rgba(255,197,61,.1)); border-color: rgba(76,155,255,.4); }
.free-up.clone .fu-top span { background: var(--card2); color: var(--text); }
.free-up.clone .fu-hint { margin-top: 6px; }


/* ===================== аватар и профиль ===================== */
.avatar { cursor: pointer; position: relative; transition: transform .15s; }
.avatar:active { transform: scale(.92); }
.avatar span { font-weight: 800; }
.pf-head { text-align: center; padding-top: 20px; background: radial-gradient(110% 70% at 50% 0%, rgba(255,197,61,.25), transparent 60%), var(--card); }
.pf-ava { width: 88px; height: 88px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, #ffd45a, #ff9f1a); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px rgba(255,197,61,.7), 0 10px 26px rgba(255,159,26,.35); }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-size: 22px; font-weight: 900; }
.pf-id { margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: var(--card2); color: var(--muted); font-size: 12px; font-weight: 700; }
.pf-id span { margin-left: 4px; }
.pf-bee { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 8px 12px; border-radius: 14px; background: var(--card2); color: var(--text); text-align: left; }
.pf-bee > span:first-child { flex: none; font-size: 28px; line-height: 0; }
.pf-bee > span:nth-child(2) { flex: 1; }
.pf-bee em, .pf-arr { font-style: normal; font-size: 22px; color: var(--accent2); }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pf-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.pf-stats b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.pf-stats span { font-size: 11px; color: var(--muted); }
.pf-link { cursor: pointer; }
.pf-link:active { opacity: .7; }
.pf-sw { flex: none; display: inline-flex; align-items: center; }
.pf-sw .sw { display: inline-block; }
.pf-theme { margin-top: 6px; }
.pf-theme button { font-size: 12px; padding: 6px 4px; }
.pf-input { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card2); color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-sizing: border-box; }
.pf-input:focus { outline: none; border-color: var(--accent); }
.pf-ok { color: var(--ok); } .pf-bad { color: var(--bad); } .pf-plus { color: var(--ok); }
.pf-foot { text-align: center; margin: 4px 0 10px; }


/* ===================== кнопка профиля в шапке ===================== */
.profile-chip { display: flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border-radius: 99px; color: var(--text);
  background: var(--card); border: 1px solid rgba(255,190,26,.45); box-shadow: 0 2px 10px rgba(255,159,26,.18); transition: transform .15s; }
.profile-chip:active { transform: scale(.95); }
.profile-chip .avatar { width: 30px; height: 30px; box-shadow: none; font-size: 14px; background: linear-gradient(135deg, #ffd45a, #ff9f1a); color: var(--accent-ink); }
.profile-chip .pc-text { font-size: 13px; font-weight: 800; }
.profile-chip .pc-text::after { content: " ›"; color: var(--accent2); }


/* ===================== топ друзей: две колонки ===================== */
.lead .lc { width: 64px; text-align: center; flex: none; }
.lead-head { padding-top: 0; padding-bottom: 2px; border: 0; font-size: 11px; color: var(--muted); }
.lead-head .lc { font-weight: 600; }
.lead-gap { text-align: center; color: var(--muted); line-height: 1; padding: 2px 0; }


/* ===================== зашифрованные ссылки ===================== */
.kz-help { margin: 6px 0 2px; }
.kz-help summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent2); }
.kz-help div, .kz-help span { display: block; margin-top: 4px; line-height: 1.4; }


/* ===================== семья: устройства и лимиты ===================== */
.fam-pool .bar { margin: 10px 0 8px; }
.fam-limit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card2); font-size: 14px; }
.fam-full { color: var(--bad); }
.fam-step { display: inline-flex; align-items: center; gap: 10px; }
.fam-step button { width: 34px; height: 34px; border-radius: 10px; font-size: 20px; font-weight: 800; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.fam-step button[disabled] { opacity: .35; }
.fam-step b { min-width: 18px; text-align: center; font-size: 17px; }
.fam-step.big { display: flex; justify-content: center; margin: 16px 0; }
.fam-step.big button { width: 48px; height: 48px; font-size: 24px; }
.fam-step.big b { font-size: 30px; min-width: 40px; }
.fam-note { margin-top: 6px; color: var(--bad); }
.fam-devs { margin-top: 8px; display: grid; gap: 6px; }
.fam-dev { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); }
.fam-dev .fd-ico { font-size: 20px; }
.fam-dev .fd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fam-dev .fd-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-dev .fd-del { width: 30px; height: 30px; border-radius: 50%; background: var(--card2); color: var(--bad); font-weight: 800; }
.grid3b { display: grid; grid-template-columns: 1.25fr 1.15fr .6fr; gap: 6px; }
.grid3b .btn { white-space: nowrap; font-size: 13px; padding-left: 6px; padding-right: 6px; }


/* ===================== воронка (админ) ===================== */
.fn-step { margin-bottom: 12px; }
.fn-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.fn-bar { height: 10px; border-radius: 99px; background: var(--card2); margin-top: 5px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd45a, #ff9f1a); }
.fn-sub { margin-top: 3px; }
.fn-leak { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fn-leak:first-of-type { border-top: 0; }
.fn-leak > b { min-width: 40px; font-size: 22px; color: var(--bad); text-align: center; }
.fn-table { font-size: 13px; }
.fn-tr { display: grid; grid-template-columns: 1.1fr repeat(5, 1fr); gap: 4px; padding: 6px 0; border-top: 1px solid var(--line); text-align: center; }
.fn-tr span:first-child { text-align: left; }
.fn-th { color: var(--muted); font-size: 11px; font-weight: 700; border-top: 0; }


/* ===================== обучение ===================== */
.gd-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 12px; }
.gd-dots i { width: 28px; height: 6px; border-radius: 99px; background: rgba(128, 118, 90, .25); }
.gd-dots i.on { background: linear-gradient(90deg, #ffd45a, #ff9f1a); }
.gd-dots i.done { background: rgba(255, 190, 26, .45); }
.gd-card h2 { margin: 0 0 10px; font-size: 22px; }
.gd-card p { margin: 8px 0; line-height: 1.45; }
.gd-card .btn { margin-top: 8px; }
.gd-hero { display: flex; justify-content: center; margin: 4px 0; }
.gd-list { display: grid; gap: 8px; margin: 10px 0; }
.gd-list div { padding: 10px 12px; border-radius: 12px; background: var(--card2); font-size: 14px; line-height: 1.4; }
.gd-cards { display: grid; gap: 8px; }
.gd-cards div { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card2); }
.gd-cards i { grid-row: span 2; font-style: normal; font-size: 26px; align-self: center; }
.gd-cards b { font-size: 15px; } .gd-cards span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.gd-nav { margin-top: 4px; }
.gd-res { margin-top: 10px; }
.gd-ok { padding: 10px 12px; border-radius: 12px; background: rgba(53, 208, 127, .16); font-weight: 700; }
.gd-no { padding: 10px 12px; border-radius: 12px; background: rgba(255, 90, 70, .1); font-size: 13.5px; line-height: 1.45; }
.gd-home { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 197, 61, .35), transparent 60%), var(--card); border: 1.5px solid rgba(255, 190, 26, .6) !important;
  animation: gdPulse 2.4s ease-in-out infinite; }
.gd-home > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gd-home b { font-size: 16px; }
.gd-home-ico { font-size: 30px; }
.gd-home em { font-style: normal; font-size: 26px; color: var(--accent2); }
@keyframes gdPulse { 50% { box-shadow: 0 0 0 4px rgba(255, 190, 26, .18), var(--shadow); } }
.fb-ribbon { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 226, 122, .35), rgba(255, 154, 10, .2)); border: 1px solid rgba(255, 190, 26, .55); }
.fb-ribbon span { font-size: 12.5px; color: var(--muted); }

/* ---- блоки, добавленные после лиги и сундуков: цвет задаём здесь, иначе тема перекрывает фон ---- */
.card.banner.chest-banner, .card.chest-hive {
  border: 1px solid rgba(255, 197, 61, .35);
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 197, 61, .22), transparent 55%), linear-gradient(160deg, #2a2210, #17181d 65%);
}
html.light .card.banner.chest-banner, html.light .card.chest-hive {
  border: 1px solid #f2d98a; background: linear-gradient(135deg, #fff3cf, #ffe6a8);
}
.card.banner.chest-banner.on, .card.chest-hive.on { box-shadow: var(--glow); }
.card.banner.raffle-banner {
  border: 1px solid rgba(110, 170, 255, .3);
  background: radial-gradient(90% 120% at 100% 0%, rgba(110, 170, 255, .2), transparent 55%), linear-gradient(160deg, #111b2c, #17181d 65%);
}
html.light .card.banner.raffle-banner { border: 1px solid #cfe0ff; background: linear-gradient(135deg, #eaf2ff, #d6e5ff); }
.banner .bn-txt > span, .banner .bn-line, .chest-hive .ch-txt > span, .chest-hive .ch-line { color: var(--muted); }
.banner .bn-line, .chest-hive .ch-line { color: var(--accent); }
html.light .banner .bn-line, html.light .chest-hive .ch-line { color: #8a5a00; }
.bn-chips i, .ch-chips i { background: rgba(255, 255, 255, .08); color: var(--text); }
html.light .bn-chips i, html.light .ch-chips i { background: rgba(255, 255, 255, .8); color: #6b4e1f; }
.bn-chips i.off, .ch-chips i.off { background: rgba(255, 93, 108, .16); color: #ff9aa4; }
html.light .bn-chips i.off, html.light .ch-chips i.off { background: #ffe0dc; color: #b03a2b; }
.bn-chips i.win { background: rgba(67, 217, 138, .16); color: #7ee2ab; }
html.light .bn-chips i.win { background: #dff3d8; color: #2f6b2a; }

/* подарочные блоки: накопленные дни */
.gift-block, .card.gift-block { border: 1px solid rgba(67, 217, 138, .28);
  background: radial-gradient(90% 120% at 0% 0%, rgba(67, 217, 138, .18), transparent 55%), linear-gradient(160deg, #10240f, #17181d 70%); }
html.light .gift-block, html.light .card.gift-block { border: 1px solid #bfe6b2; background: linear-gradient(135deg, #e8f7e4, #cfeec4); }
.gift-block .gb-txt b { color: #9ae6b4; }
html.light .gift-block .gb-txt b { color: #2f6b2a; }
.gift-block .gb-txt span { color: var(--muted); }
html.light .gift-block .gb-txt span { color: #4c7a45; }
.fb-ribbon:not(.pend) { border: 1px solid rgba(255, 197, 61, .3);
  background: radial-gradient(90% 120% at 0% 0%, rgba(255, 197, 61, .2), transparent 55%), linear-gradient(160deg, #2a2210, #17181d 70%); }
html.light .fb-ribbon:not(.pend) { border: 1px solid #f2d98a; background: linear-gradient(135deg, #fff3cf, #ffe6a8); }
.fb-ribbon:not(.pend) .gb-txt b { color: var(--accent); }
html.light .fb-ribbon:not(.pend) .gb-txt b { color: #8a5a00; }

/* подсказки и счётчики на экране сундуков */
.case-limits span { background: rgba(255, 255, 255, .06); color: var(--muted); }
html.light .case-limits span { background: #fff6e0; color: #8a6a3a; }
.case-limits b { color: var(--text); }
.case-note { background: rgba(255, 197, 61, .1); color: var(--accent); }
html.light .case-note { background: #fff3d1; color: #8a6a3a; }
.case-note.warn { background: rgba(255, 159, 26, .16); color: #ffcf8a; }
html.light .case-note.warn { background: #ffe9c9; color: #7a4b10; }
.case-note.boost { background: rgba(67, 217, 138, .14); color: #9ae6b4; }
html.light .case-note.boost { background: #e8f7e4; color: #2f6b2a; }
.pw-pending.cta { background: rgba(67, 217, 138, .14); color: #9ae6b4; }
html.light .pw-pending.cta { background: #e8f7e4; color: #2f6b2a; }
.plan-bonus, .pay-bonus { background: rgba(67, 217, 138, .14); color: #9ae6b4; }
html.light .plan-bonus, html.light .pay-bonus { background: #e8f7e4; color: #2f6b2a; }

/* таблица лиги */
.lg-row .lg-pl { background: rgba(255, 255, 255, .08); color: var(--text); }
html.light .lg-row .lg-pl { background: rgba(0, 0, 0, .06); }
.lg-row .lg-pl.p1 { background: #ffd23f; color: #231600; }
.lg-row .lg-pl.p2 { background: #c9ced9; color: #1b1a17; }
.lg-row .lg-pl.p3 { background: #e0a86a; color: #1b1a17; }
.lg-row.me { background: rgba(255, 197, 61, .14); }
html.light .lg-row.me { background: #fff3d1; }
.sw i { background: rgba(255, 255, 255, .16); }
html.light .sw i { background: #d8d3c6; }
/* зелёная лента магазина: перебиваем светлый фон из базовых стилей */
.fb-ribbon.pend, .card.fb-ribbon.pend { border: 1px solid rgba(67, 217, 138, .28);
  background: radial-gradient(90% 120% at 0% 0%, rgba(67, 217, 138, .18), transparent 55%), linear-gradient(160deg, #10240f, #17181d 70%); }
html.light .fb-ribbon.pend, html.light .card.fb-ribbon.pend { border: 1px solid #bfe6b2; background: linear-gradient(135deg, #e8f7e4, #cfeec4); }

/* баннер PRO1VPN: синий, чтобы не спорить с медовым «Шмелём» */
.card.banner.pro-banner { border: 1px solid rgba(90, 169, 255, .32);
  background: radial-gradient(90% 120% at 100% 0%, rgba(90, 169, 255, .22), transparent 55%), linear-gradient(160deg, #101b2e, #17181d 65%); }
html.light .card.banner.pro-banner { border: 1px solid #c3dbff; background: linear-gradient(135deg, #eef5ff, #d5e6ff); }
.pro-banner .bn-txt b { color: #7fc0ff; letter-spacing: .01em; }
html.light .pro-banner .bn-txt b { color: #1f4fa8; }
.pro-banner .bn-kicker, .pro-banner .bn-line { color: #8fb6e8; }
html.light .pro-banner .bn-kicker, html.light .pro-banner .bn-line { color: #2b5ea8; }
.pro-banner .bn-chips i { background: rgba(90, 169, 255, .16); color: #cfe4ff; }
html.light .pro-banner .bn-chips i { background: rgba(255, 255, 255, .85); color: #2b5ea8; }
.pro-banner em { color: #7fc0ff; }
.pro-banner .bn-art { width: 66px; }
.pro-banner .bn-chips i { font-size: 11.5px; padding: 3px 7px; }
.card.banner.pro-banner { margin-top: 12px; }

/* веб-кабинет: открытая ссылка подписки */
.open-link .ol-box { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45;
  word-break: break-all; color: var(--text); }
html.light .open-link .ol-box { background: #f3efe3; }
