/* n73 «Подарок другу», «Подарок новичку» + «Примерка на вечер», «Киносюрприз» (club-gifts-items.js, club-welcome.js,
   club-surprise.js): the drawn box, the cards in the shop, the card in the corner of the page, the hall's line. */

/* --- The box ------------------------------------------------------------------------------------------------ */
.gbx-art { display: block; flex: none; overflow: visible; }
.gbx-art-b { fill: #c2413a; }
.gbx-art-l { fill: #d9534b; }
.gbx-art-r { fill: #f2c14e; }
.gbx-art-bow { fill: #f2c14e; stroke: #b9891d; stroke-width: 1; stroke-linejoin: round; }
.gbx-art-rays { fill: none; stroke: #f2c14e; stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.gbx-art-lid { transform-box: fill-box; transform-origin: 15% 100%; transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.gbx-art.open .gbx-art-lid { transform: translateY(-9px) rotate(-16deg); }
.gbx-art.open .gbx-art-rays { opacity: 1; animation: gbxRays 1.6s ease-in-out infinite alternate; }
.gbx-art.film .gbx-art-b { fill: #232a3b; }
.gbx-art.film .gbx-art-l { fill: #2f3850; }
.gbx-art.film .gbx-art-r, .gbx-art.film .gbx-art-bow { fill: #e5a00d; }
.gbx-art.film .gbx-art-bow { stroke: #a8740a; }
@keyframes gbxRays { from { opacity: .45; } to { opacity: 1; } }
.gbx-tile { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; }
.tryon-art-h { fill: none; stroke: #c9ced9; stroke-width: 3; stroke-linecap: round; }
.tryon-art-b { fill: rgba(229, 160, 13, .18); stroke: #e5a00d; stroke-width: 3; stroke-linejoin: round; }
.tryon-art-s { fill: #f2c14e; }

/* --- The shop's cards ----------------------------------------------------------------------------------------- */
.gbx-k { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gbx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gbx-chips + .gbx-chips { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.gbx-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; }
.gbx-chip:hover { background: rgba(255, 255, 255, .08); }
.gbx-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gbx-chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(229, 160, 13, .16); font-weight: 700; }
.gbx-shop .pcard-q { box-sizing: border-box; width: 100%; min-height: 44px; }
.gbx-today { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.gbx-rows { display: flex; flex-direction: column; gap: 6px; }
.gbx-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 14px; }
.gbx-row > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.gbx-row small { display: block; color: var(--muted); font-size: 12px; }
.gbx-for-me .gbx-row { border-color: rgba(229, 160, 13, .45); background: rgba(229, 160, 13, .08); }
.gbx-shop .club-buy, .tryon-shop .club-buy, .sur-shop .club-buy { margin-top: 14px; }
.gbx-sent { margin-bottom: 4px; }
.sur-stage { display: flex; justify-content: center; padding: 10px 0 6px; }
.sur-odds { text-align: center; }
.sur-odds.sur-none { color: var(--muted); }
.tryon-now { font-weight: 700; }

/* --- The card in the corner: a box arriving, opened, the newcomer's welcome ------------------------------------ */
.gbx-in { position: fixed; right: 20px; bottom: 20px; z-index: 2600; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; width: 380px; max-width: calc(100vw - 20px); padding: 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: var(--panel-2); color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: gbxIn .42s cubic-bezier(.2, 1.2, .4, 1) both; }
.gbx-in-a { grid-row: 1 / span 4; align-self: start; padding-top: 6px; }
.gbx-in-t { margin: 0; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.gbx-in-s { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.gbx-in-p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.gbx-in.gbx-open .gbx-in-p { font-size: 15px; }
.gbx-acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gbx-ok { flex: 1 1 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #1a1205; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.gbx-sec { flex: 0 1 auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.gbx-sec:hover { background: rgba(255, 255, 255, .1); }
.gbx-ok:focus-visible, .gbx-sec:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gbx-ok:disabled, .gbx-sec:disabled { opacity: .6; cursor: default; }
.gbx-in.gbx-out, .gbx-ban.gbx-out { pointer-events: none; animation: gbxOut .26s ease both; }
@keyframes gbxIn { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes gbxOut { to { opacity: 0; transform: translateY(20px); } }

/* --- The hall's line: somebody got a box, somebody opened one ---------------------------------------------------- */
.gbx-ban { position: fixed; left: 12px; right: 12px; top: 72px; z-index: 2340; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: min(560px, calc(100vw - 24px)); margin-inline: auto; padding: 8px 16px 8px 10px; border: 1px solid rgba(229, 160, 13, .45); border-radius: 999px; background: rgba(20, 23, 31, .94); color: var(--text); font-size: 15px; line-height: 1.3; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); animation: gbxIn .42s cubic-bezier(.2, 1.2, .4, 1) both; pointer-events: none; } /* n88: left + right + auto margins, not left 50 % — that left the line half the screen to fit in (195 px of 390) */
.gbx-ban span { min-width: 0; overflow-wrap: break-word; }

@media (max-width: 520px) {
  .gbx-in { right: 10px; left: 10px; bottom: 10px; width: auto; max-width: none; grid-template-columns: 64px 1fr; gap: 4px 10px; padding: 12px; }
  .gbx-in-a .gbx-art { width: 64px; height: 64px; }
  .gbx-ban { top: 56px; border-radius: 16px; font-size: 14px; }
  .gbx-chip { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gbx-in, .gbx-ban, .gbx-in.gbx-out, .gbx-ban.gbx-out { animation: none; }
  .gbx-art-lid { transition: none; }
  .gbx-art.open .gbx-art-rays { animation: none; }
}

/* --- n85 «Киносюрприз»: the roulette (club-surprise.js spin) — a film strip under a projector's light ------------------ */
.sur-rl { position: fixed; inset: 0; z-index: 2700; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden auto; overscroll-behavior: contain; padding: 12px; box-sizing: border-box; background: rgba(5, 6, 10, .78); backdrop-filter: blur(3px); animation: surRlIn .22s ease both; }
.sur-rl.sur-rl-out { pointer-events: none; animation: gbxOut .22s ease both; }
.sur-rl-card { position: relative; box-sizing: border-box; width: min(760px, 100%); margin: auto; padding: 18px 20px 18px; overflow: hidden; border: 1px solid rgba(229, 160, 13, .38); border-radius: 20px; background: linear-gradient(180deg, #1b1e28, #12141b); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .5); }
.sur-rl-t { margin: 0; padding-right: 44px; font-size: 19px; line-height: 1.25; letter-spacing: .01em; }
.sur-rl-of { margin-top: 4px; padding-right: 44px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.sur-rl-x { position: absolute; top: 6px; right: 6px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.sur-rl-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.sur-rl-x:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* the gate: the film runs behind it */
.sur-rl-win { --cw: 104px; position: relative; height: 200px; margin: 14px -20px 0; overflow: hidden; background: #050608; border-block: 1px solid rgba(229, 160, 13, .3); box-shadow: inset 0 12px 22px -12px #000, inset 0 -12px 22px -12px #000; contain: paint; }
.sur-rl-win::before, .sur-rl-win::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: 22%; pointer-events: none; }
.sur-rl-win::before { left: 0; background: linear-gradient(90deg, #050608 4%, rgba(5, 6, 8, 0)); }
.sur-rl-win::after { right: 0; background: linear-gradient(270deg, #050608 4%, rgba(5, 6, 8, 0)); }
.sur-rl-beam { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 1; width: 300px; margin-left: -150px; pointer-events: none; background: radial-gradient(ellipse 50% 78% at 50% 0%, rgba(255, 216, 130, .34), rgba(255, 196, 90, .1) 55%, rgba(255, 196, 90, 0) 100%); mix-blend-mode: screen; }
.sur-rl[data-phase='spin'][data-still='0'] .sur-rl-beam { animation: surRlFlicker .19s steps(2, end) infinite; }
.sur-rl-strip { position: absolute; left: 0; top: 0; bottom: 0; display: flex; gap: 8px; width: max-content; margin: 0; padding: 26px 0; box-sizing: border-box; list-style: none; background: linear-gradient(180deg, #17130c, #100d08 50%, #17130c); will-change: transform; }
/* the sprocket holes run with the film */
.sur-rl-strip::before, .sur-rl-strip::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 8px, rgba(255, 232, 180, .2) 8px 20px, rgba(0, 0, 0, 0) 20px 28px); border-radius: 3px; }
.sur-rl-strip::before { top: 8px; }
.sur-rl-strip::after { bottom: 8px; }
.sur-rl-c { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; width: var(--cw); min-width: 0; transition: opacity .4s ease; }
.sur-rl-f { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 100%; height: 86px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; background: radial-gradient(ellipse at 50% 30%, #2b3040, #191c26 75%); transition: transform .5s cubic-bezier(.2, 1.5, .4, 1), box-shadow .4s ease, border-color .3s ease; }
.sur-rl-a { display: grid; place-items: center; width: 100%; height: 100%; font-size: 36px; line-height: 1; pointer-events: none; }
.sur-rl-n { box-sizing: border-box; width: 100%; margin-top: 5px; padding: 0 2px; overflow: hidden; color: #f0e6d0; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; text-wrap: balance; }
.sur-rl-g { box-sizing: border-box; width: 100%; padding: 0 2px; overflow: hidden; color: rgba(240, 230, 208, .64); font-size: 10.5px; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; text-wrap: balance; }
.sur-rl-sw { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--sw); color: rgba(0, 0, 0, .62); font-size: 17px; font-weight: 800; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 18px var(--sw); }
/* the marker: the gate's hairline, in the club's gold */
.sur-rl-mark { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 3; width: 2px; margin-left: -1px; pointer-events: none; background: linear-gradient(180deg, #ffd978, #e5a00d 50%, #ffd978); box-shadow: 0 0 10px rgba(255, 190, 60, .85), 0 0 2px #000; transition: opacity .4s ease; }
.sur-rl-mark::before, .sur-rl-mark::after { content: ''; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.sur-rl-mark::before { top: 0; border-top-color: #ffcf5c; border-bottom-width: 0; }
.sur-rl-mark::after { bottom: 0; border-bottom-color: #ffcf5c; border-top-width: 0; }
.sur-rl-mark i { position: absolute; left: 50%; top: 4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff3cf; transform-origin: 50% 0; }
.sur-rl-mark.tk i { animation: surRlTick .09s ease-out; }
/* the stop: the won frame lifts, a flare runs along the gate */
.sur-rl-flare { position: absolute; left: 50%; top: 50%; z-index: 2; width: 460px; height: 8px; margin: -16px 0 0 -230px; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 246, 214, .95), rgba(255, 200, 90, .5) 30%, rgba(255, 190, 70, 0) 70%); mix-blend-mode: screen; }
.sur-rl:not([data-phase='spin']) .sur-rl-flare { animation: surRlFlare 1.1s ease-out both; }
.sur-rl:not([data-phase='spin']) .sur-rl-c:not(.won) { opacity: .34; }
.sur-rl:not([data-phase='spin']) .sur-rl-mark { opacity: 0; }
.sur-rl-c.won { z-index: 1; }
.sur-rl-c.won .sur-rl-f { border-color: #ffcf5c; transform: translateY(-3px) scale(1.13); box-shadow: 0 0 0 2px #e5a00d, 0 0 34px rgba(255, 186, 50, .7), 0 10px 22px rgba(0, 0, 0, .6); }
.sur-rl-c.won .sur-rl-f::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 244, 210, .7) 50%, rgba(255, 255, 255, 0) 65%); transform: translateX(-120%); animation: surRlSweep .9s .25s ease-out both; }
.sur-rl-c.won .sur-rl-n { color: #ffd978; }
/* under the gate: the run's line, then the result */
.sur-rl-foot { min-height: 118px; margin-top: 14px; }
.sur-rl-run { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 10px; }
.sur-rl-run .gbx-sec { flex: none; min-width: 150px; }
.sur-rl[data-phase='stop'] .sur-rl-run { visibility: hidden; }
.sur-rl-win[data-fast='1'] .sur-rl-strip { filter: blur(1.3px); }
.sur-rl-run[hidden], .sur-rl-got[hidden] { display: none; }
.sur-rl-st { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.sur-rl-got { text-align: center; animation: surRlGot .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.sur-rl-got-k { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sur-rl-got-n { display: block; margin-top: 3px; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.sur-rl-got-p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.sur-rl-acts { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.sur-rl-acts .gbx-ok { flex: 0 1 220px; }
.sur-rl-acts .gbx-sec { flex: 0 1 140px; }
@keyframes surRlIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes surRlFlicker { from { opacity: 1; } to { opacity: .82; } }
@keyframes surRlTick { from { transform: rotate(-16deg); } to { transform: rotate(0); } }
@keyframes surRlFlare { 0% { opacity: 0; transform: scaleX(.1); } 22% { opacity: 1; transform: scaleX(1.15); } 100% { opacity: 0; transform: scaleX(1.5); } }
@keyframes surRlSweep { to { transform: translateX(120%); } }
@keyframes surRlGot { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .sur-rl { padding: 8px; }
  .sur-rl-card { padding: 16px 14px 14px; border-radius: 18px; }
  .sur-rl-win { --cw: 88px; height: 188px; margin: 12px -14px 0; }
  .sur-rl-f { height: 76px; }
  .sur-rl-beam { width: 220px; margin-left: -110px; }
  .sur-rl-flare { width: 320px; margin-left: -160px; }
  .sur-rl-got-n { font-size: 18px; }
  .sur-rl-acts .gbx-ok { flex: 1.5 1 0; min-width: 0; }
  .sur-rl-acts .gbx-sec { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .sur-rl-foot { min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .sur-rl, .sur-rl.sur-rl-out { animation: none; }
  .sur-rl-win { animation: surRlIn .5s ease both; }
  .sur-rl-f, .sur-rl-c { transition: none; }
  .sur-rl-flare, .sur-rl-c.won .sur-rl-f::after, .sur-rl-got, .sur-rl-mark.tk i, .sur-rl-beam { animation: none !important; }
}

/* === n87 «Киносюрприз» rarity tiers: common grey · rare blue · epic purple · legendary gold ============================ */
:is(.rar-chip, .rar-gem, .sur-rl, .sur-rl-c, .sur-ch-t, .sur-ch-n, .gbx-ban)[data-tier='common'] { --tier: #9aa3ad; --tier-rgb: 154, 163, 173; --tier-ink: #c9d0d7; }
:is(.rar-chip, .rar-gem, .sur-rl, .sur-rl-c, .sur-ch-t, .sur-ch-n, .gbx-ban)[data-tier='rare'] { --tier: #4c9bff; --tier-rgb: 76, 155, 255; --tier-ink: #9cc8ff; }
:is(.rar-chip, .rar-gem, .sur-rl, .sur-rl-c, .sur-ch-t, .sur-ch-n, .gbx-ban)[data-tier='epic'] { --tier: #b06cff; --tier-rgb: 176, 108, 255; --tier-ink: #d6b3ff; }
:is(.rar-chip, .rar-gem, .sur-rl, .sur-rl-c, .sur-ch-t, .sur-ch-n, .gbx-ban)[data-tier='legendary'] { --tier: #f5b942; --tier-rgb: 245, 185, 66; --tier-ink: #ffd978; }
/* the chip (a card's head, the result) and the gem (an option, a tile) */
.rar-chip { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 1px 9px 1px 8px; border: 1px solid rgba(var(--tier-rgb), .55); border-radius: 999px; background: rgba(var(--tier-rgb), .14); color: var(--tier-ink); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; }
/* 0.65.5: a card's head with a tier chip — the price steps to its own line when the name, the chip and the price do not fit (320 px) */
.club-item-head:has(> .rar-chip) { flex-wrap: wrap; row-gap: 4px; }
.rar-chip > i, .sur-ch-t > i, .sur-ch-n > i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--tier); transform: rotate(45deg); }
.rar-gem { position: absolute; top: 6px; left: 6px; z-index: 2; width: 8px; height: 8px; border-radius: 2px; background: var(--tier); box-shadow: 0 0 0 1.5px rgba(8, 9, 12, .72), 0 0 7px rgba(var(--tier-rgb), .75); transform: rotate(45deg); pointer-events: none; }
.rar-gem[data-tier='legendary'] { width: 10px; height: 10px; background: linear-gradient(135deg, #fff1c2, #f5b942 55%, #c98a12); }
[data-rar] { position: relative; }
[data-rar-only='1'] { outline: 1px dashed rgba(245, 185, 66, .6); outline-offset: -3px; }
/* the odds: «Шансы: обычный 62 % · редкий 28 % · …», the «i», what is left by tier, the guarantee */
.sur-ch { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sur-ch-l { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 3px; }
.sur-ch-l > b { margin-right: 3px; color: var(--text); font-weight: 600; }
.sur-ch-t, .sur-ch-n { display: inline-flex; align-items: center; gap: 6px; color: var(--text); white-space: nowrap; }
.sur-ch-d { color: var(--muted); }
.sur-ch-i { position: relative; flex: none; width: 24px; height: 24px; margin-left: 6px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: var(--muted); font: italic 700 13px/1 Georgia, 'Times New Roman', serif; cursor: pointer; }
.sur-ch-i::after { content: ''; position: absolute; inset: -10px; } /* a 44 px target */
.sur-ch-i:hover, .sur-ch-i[aria-expanded='true'] { border-color: rgba(255, 255, 255, .6); color: var(--text); }
.sur-ch-i:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sur-ch-more { margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 12.5px; line-height: 1.45; text-align: left; }
.sur-ch-more[hidden] { display: none; }
.sur-ch-more p { margin: 0; }
.sur-ch-more p + p { margin-top: 6px; }
.sur-ch-more p > b { margin-right: 3px; color: var(--text); font-weight: 600; }
.sur-ch-n[data-n='0'] { opacity: .5; }
.sur-pity { margin-top: 6px; font-size: 12.5px; }
.sur-pity.due { color: #d6b3ff; font-weight: 600; }
.sur-rl .sur-ch { margin-top: 4px; padding-right: 44px; }
/* the strip: every frame in its tier's colour — a rim and a thin bar */
.sur-rl-c[data-tier]:not([data-tier='']) .sur-rl-f { border-color: rgba(var(--tier-rgb), .72); box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb), .2); }
.sur-rl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tier, transparent); pointer-events: none; }
.sur-rl-c[data-tier='epic'] .sur-rl-f { background-image: linear-gradient(180deg, rgba(176, 108, 255, 0) 45%, rgba(176, 108, 255, .2)); }
.sur-rl-c[data-tier='legendary'] .sur-rl-f { background-image: linear-gradient(180deg, rgba(245, 185, 66, 0) 35%, rgba(245, 185, 66, .28)); }
/* the stop, as loud as the tier. Common: the frame lifts, nothing else */
.sur-rl[data-tier='common'] .sur-rl-c.won .sur-rl-f { border-color: #c9d0d7; transform: translateY(-3px) scale(1.08); box-shadow: 0 0 0 2px rgba(154, 163, 173, .85), 0 10px 22px rgba(0, 0, 0, .6); }
.sur-rl[data-tier='common'] .sur-rl-c.won .sur-rl-f::after, .sur-rl[data-tier='common'] .sur-rl-flare, .sur-rl[data-tier='rare'] .sur-rl-flare { display: none; }
.sur-rl[data-tier='common'] .sur-rl-c.won .sur-rl-n { color: #e6eaee; }
/* rare: a blue glow */
.sur-rl[data-tier='rare'] .sur-rl-c.won .sur-rl-f { border-color: #9cc8ff; box-shadow: 0 0 0 2px #4c9bff, 0 0 34px rgba(76, 155, 255, .8), 0 10px 22px rgba(0, 0, 0, .6); }
.sur-rl[data-tier='rare'] .sur-rl-c.won .sur-rl-n { color: #9cc8ff; }
/* epic: a purple flare and sparks */
.sur-rl[data-tier='epic'] .sur-rl-c.won .sur-rl-f { border-color: #d6b3ff; transform: translateY(-3px) scale(1.15); box-shadow: 0 0 0 2px #b06cff, 0 0 44px rgba(176, 108, 255, .85), 0 10px 22px rgba(0, 0, 0, .6); }
.sur-rl[data-tier='epic'] .sur-rl-c.won .sur-rl-n { color: #d6b3ff; }
.sur-rl[data-tier='epic'] .sur-rl-flare { height: 10px; background: radial-gradient(ellipse at center, rgba(244, 230, 255, .98), rgba(176, 108, 255, .75) 38%, rgba(176, 108, 255, 0) 72%); }
/* legendary: a gold burst */
.sur-rl[data-tier='legendary'] .sur-rl-c.won .sur-rl-f { transform: translateY(-4px) scale(1.19); box-shadow: 0 0 0 2px #f5b942, 0 0 0 5px rgba(245, 185, 66, .28), 0 0 60px rgba(255, 196, 64, .95), 0 10px 22px rgba(0, 0, 0, .6); }
.sur-rl[data-tier='legendary'] .sur-rl-flare { height: 14px; }
.sur-rl[data-tier='legendary'] .sur-rl-card { border-color: rgba(245, 185, 66, .85); }
.sur-rl[data-tier='legendary'] .sur-rl-got-n { color: #ffe6a3; }
.sur-rl-sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; } /* n88: over the whole window (club-surprise.js aim() puts the burst on the won frame) */
.sur-rl-fx { position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.sur-rl-fx > i { --a: calc(var(--i) * 22.5deg + 11deg); position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--tier, #fff); opacity: 0; }
.sur-rl-fx::before { content: ''; position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; box-sizing: border-box; border: 2px solid rgba(255, 220, 130, .95); border-radius: 50%; opacity: 0; }
.sur-rl[data-still='0'][data-tier='epic']:not([data-phase='spin']) .sur-rl-fx > i:nth-child(even) { animation: surRlSpark .95s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(var(--i) * 14ms); }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-fx > i { animation: surRlSparkFar 1.35s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(var(--i) * 18ms); }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-fx::before { animation: surRlRing 1.1s ease-out both; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-card { animation: surRlGold 1.7s ease-out both; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-c.won .sur-rl-f { animation: surRlPulse 1.5s ease-in-out .5s 2; }
@keyframes surRlSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateX(34px) scale(.5); } 14% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(150px) scale(1); } }
@keyframes surRlSparkFar { 0% { opacity: 0; transform: rotate(var(--a)) translateX(36px) scale(.5); } 12% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(250px) scale(1.25); } }
@keyframes surRlRing { 0% { opacity: 0; transform: scale(.35); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes surRlGold { 0% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0); } 25% { box-shadow: 0 0 0 3px rgba(245, 185, 66, .55), 0 0 70px rgba(245, 185, 66, .5); } 100% { box-shadow: 0 0 0 1px rgba(245, 185, 66, .3), 0 0 26px rgba(245, 185, 66, .18); } }
@keyframes surRlPulse { 50% { box-shadow: 0 0 0 2px #f5b942, 0 0 0 8px rgba(245, 185, 66, .2), 0 0 84px rgba(255, 206, 84, 1), 0 10px 22px rgba(0, 0, 0, .6); } }
/* the result: the tier's chip over the name */
.sur-rl-got-r { margin-top: 6px; line-height: 1; }
.sur-rl-got-r .rar-chip { padding: 2px 12px 2px 10px; font-size: 12.5px; }
.sur-rl-got-r:empty { display: none; }
.sur-rl[data-tier='rare'] .sur-rl-got-k, .sur-rl[data-tier='epic'] .sur-rl-got-k, .sur-rl[data-tier='legendary'] .sur-rl-got-k { color: var(--tier-ink); }
.sur-rl[data-tier='common'] .sur-rl-got-k { color: var(--muted); }
.sur-rl-foot { min-height: 146px; }
/* the hall's line for an epic / a legendary win */
.gbx-ban[data-tier='epic'] { border-color: rgba(176, 108, 255, .8); box-shadow: 0 0 0 1px rgba(176, 108, 255, .35), 0 10px 34px rgba(176, 108, 255, .28); }
.gbx-ban[data-tier='legendary'] { border-color: rgba(245, 185, 66, .95); box-shadow: 0 0 0 1px rgba(245, 185, 66, .5), 0 10px 40px rgba(245, 185, 66, .38); color: #ffe6a3; }
@media (max-width: 520px) {
  .sur-rl-foot { min-height: 160px; }
  .sur-rl .sur-ch { padding-right: 0; font-size: 12.5px; }
  .sur-rl-fx::before { left: -56px; top: -56px; width: 112px; height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .sur-rl-fx { display: none; }
  .sur-rl-card, .sur-rl-c.won .sur-rl-f { animation: none !important; }
}
/* === n88 (0.65.6) «Киносюрприз», the visual pass ======================================================================= */
/* the odds read as a row of gems: no « · » left hanging at a line's end (the dots stay in the text for readers and tests);
   on the shop's card the odds and the guarantee are centred like the note above them */
.sur-ch-l { gap: 3px 14px; }
.sur-ch-l > b { margin-right: 0; }
.sur-ch-d { display: none; }
.sur-ch-i { margin-left: -4px; }
.sur-shop .sur-ch-l { justify-content: center; }
.sur-shop .sur-pity { text-align: center; text-wrap: balance; }
.sur-ch-n[data-n='0'] { opacity: .62; }
/* the guarantee wears the tier it gives: gold when only a legendary can come (or came) */
.sur-pity.due[data-tier='legendary'], .sur-rl[data-tier='legendary'] .sur-pity.due { color: #ffd978; }
/* the strip's pictures: a frame IS its ring — the face larger, the ring thicker; the small emblems larger too */
.sur-rl-a[data-item='frame'] > .club-face { zoom: 1.6; }
.sur-rl-a[data-item='frame'] > .club-face[data-club-frame] { border-width: 3px; }
.sur-rl-a:is([data-item='face'], [data-item='filter'], [data-item='bucket']) > * { zoom: 1.3; }
.sur-rl-a[data-item='acc'] > * { zoom: 1.15; translate: 0 4px; } /* a hat stands above the face: less, and a step lower — its top stays inside the frame */
.sur-rl-a > .snd-ico, .sur-rl-a > .psay-pk-i { font-size: 40px; }
/* the tiers in the strip: a thicker bar; rare has its wash like epic; a legendary frame is a showpiece — a gold double
   rim, a warm ground and the star of the shop's legendary gem in its corner */
.sur-rl-bar { height: 5px; }
.sur-rl-c[data-tier='rare'] .sur-rl-f { background-image: linear-gradient(180deg, rgba(76, 155, 255, 0) 50%, rgba(76, 155, 255, .16)); }
.sur-rl-strip .sur-rl-c[data-tier='legendary'] .sur-rl-f { border-color: #f5b942; background-image: linear-gradient(180deg, rgba(245, 185, 66, .1), rgba(245, 185, 66, .34)); box-shadow: inset 0 0 0 1px rgba(255, 241, 194, .5), 0 0 12px rgba(245, 185, 66, .4); }
.sur-rl-c[data-tier='legendary'] .sur-rl-f::before { content: '★'; position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 0 0 9px 0; background: linear-gradient(135deg, #fff1c2, #f5b942 55%, #c98a12); color: #3a2603; font-size: 12px; line-height: 1; }
.sur-rl-c[data-tier='legendary'] .sur-rl-n { color: #ffd978; }
/* the won frame's own name stays readable in its glow, a step lower than the lifted frame */
.sur-rl-c.won .sur-rl-n, .sur-rl-c.won .sur-rl-g { translate: 0 5px; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .9); }
.sur-rl-c.won .sur-rl-g { color: rgba(240, 230, 208, .82); }
.sur-rl-got-n { text-wrap: balance; }
.sur-shop > .club-confirm > .cf-title { text-wrap: balance; }
@media (max-width: 520px) {
  .sur-ch-l { gap: 3px 10px; } /* 320 px: the «i» stays in the odds' last row */
  .sur-rl-a[data-item='frame'] > .club-face { zoom: 1.45; }
  .sur-rl-a:is([data-item='face'], [data-item='filter'], [data-item='bucket']) > * { zoom: 1.15; }
  .sur-rl-a[data-item='acc'] > * { zoom: 1; translate: 0 3px; }
}
/* a low screen (a phone on its side, 844×390): everything in sight — a lower gate, the head in one row, the result in a
   row with its buttons; what still does not fit scrolls (.sur-rl) */
@media (max-height: 560px) {
  .sur-rl { padding: 6px; }
  .sur-rl-card { padding: 10px 16px 12px; }
  .sur-rl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-right: 40px; }
  .sur-rl-t { padding-right: 0; font-size: 16px; }
  .sur-rl-of { margin-top: 0; padding-right: 0; }
  .sur-rl .sur-ch { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 2px; padding-right: 0; }
  .sur-rl .sur-ch-more { order: 3; flex: 1 1 100%; margin-top: 4px; }
  .sur-rl .sur-pity { margin-top: 0; }
  .sur-rl-win { --cw: 92px; height: 134px; margin-top: 8px; }
  .sur-rl-strip { padding: 18px 0; }
  .sur-rl-strip::before { top: 4px; }
  .sur-rl-strip::after { bottom: 4px; }
  .sur-rl-f { height: 62px; }
  .sur-rl-g { display: none; }
  .sur-rl-n { margin-top: 4px; font-size: 11.5px; }
  .sur-rl-a[data-item='frame'] > .club-face { zoom: 1.25; }
  .sur-rl-a:is([data-item='face'], [data-item='filter'], [data-item='bucket']) > * { zoom: 1; }
  .sur-rl-a[data-item='acc'] > * { zoom: .9; translate: 0 3px; }
  .sur-rl-a > .snd-ico, .sur-rl-a > .psay-pk-i { font-size: 32px; }
  .sur-rl-foot { min-height: 60px; margin-top: 8px; }
  .sur-rl-run { flex-direction: row; justify-content: center; gap: 16px; padding-top: 12px; }
  .sur-rl-got-p { display: none; }
  .sur-rl-acts { margin-top: 8px; }
}
@media (max-height: 560px) and (min-width: 600px) {
  .sur-rl-got { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'k r acts' 'n n acts'; align-items: center; gap: 2px 12px; padding-top: 8px; text-align: left; }
  .sur-rl-got-k { grid-area: k; }
  .sur-rl-got-r { grid-area: r; margin-top: 0; }
  .sur-rl-got-n { grid-area: n; margin-top: 0; font-size: 18px; text-wrap: wrap; }
  .sur-rl-acts { grid-area: acts; margin-top: 0; }
  .sur-rl-acts .gbx-ok { flex: 0 0 180px; }
  .sur-rl-acts .gbx-sec { flex: 0 0 120px; }
}
/* === n89 (0.65.6) «Киносюрприз», the animation ========================================================================
   An opening beat (the window comes up, the lamp catches, the strip fades in), a reel's run (club-surprise.js CURVE:
   spin-up, then a wheel's slowing down; the smear has three fixed steps, light streaks follow the speed, the pointer is
   flicked by every frame), a weighted stop, then the won frame grows into the result's picture while a shade takes the
   others, the tier's light plays, and the result's lines come one by one. Only transforms and opacity move. Everything
   here needs data-still='0': reduced motion keeps the calm fade above. */
/* the gate: the lamp lights the middle — frames brighten as they come under the marker and dim as they leave */
.sur-rl-win::before, .sur-rl-win::after { width: 40%; }
.sur-rl-win::before { background: linear-gradient(90deg, #050608 3%, rgba(5, 6, 8, .5) 52%, rgba(5, 6, 8, 0)); }
.sur-rl-win::after { background: linear-gradient(270deg, #050608 3%, rgba(5, 6, 8, .5) 52%, rgba(5, 6, 8, 0)); }
.sur-rl-gate { position: absolute; left: 50%; top: 21px; z-index: 3; box-sizing: border-box; width: calc(var(--cw) + 10px); height: 96px; margin-left: calc(var(--cw) / -2 - 5px); border: 1px solid rgba(255, 207, 92, .4); border-radius: 12px; pointer-events: none; transition: opacity .25s ease; }
.sur-rl-gate i { position: absolute; inset: -1px; border: 2px solid #ffe7a6; border-radius: inherit; background: radial-gradient(ellipse at 50% 45%, rgba(255, 240, 200, .26), rgba(255, 240, 200, 0) 72%); opacity: 0; }
.sur-rl:not([data-phase='spin']) .sur-rl-gate { opacity: 0; }
.sur-rl-mark i { transform-origin: 50% 0; }
.sur-rl[data-still='0'] .sur-rl-mark { transition: opacity .18s ease; }
/* while it flies: light streaks over the frames (their strength is set by the speed), the smear in three steps */
.sur-rl-streak { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; pointer-events: none; will-change: opacity; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 34%, #000 66%, transparent 92%); mask-image: linear-gradient(90deg, transparent 8%, #000 34%, #000 66%, transparent 92%); }
.sur-rl-streak::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% + 360px); will-change: transform;
  background: linear-gradient(90deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, .26) 24%, rgba(255, 240, 205, 0) 50%) 0 24% / 360px 3px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .22) 32%, rgba(255, 255, 255, 0) 58%) 140px 38% / 360px 4px repeat-x,
    linear-gradient(90deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, .24) 26%, rgba(255, 240, 205, 0) 52%) 250px 50% / 360px 3px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, .2) 40%, rgba(255, 255, 255, 0) 66%) 60px 61% / 360px 4px repeat-x,
    linear-gradient(90deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, .24) 24%, rgba(255, 240, 205, 0) 50%) 200px 73% / 360px 3px repeat-x; }
.sur-rl[data-phase='spin'][data-still='0'] .sur-rl-streak::before { animation: surRlStreak .3s linear infinite; }
.sur-rl-strip { transition: filter .35s ease; }
.sur-rl-win[data-fast='1'] .sur-rl-strip { filter: blur(.9px); }
.sur-rl-win[data-fast='2'] .sur-rl-strip { filter: blur(1.9px); }
/* the opening beat */
.sur-rl[data-still='0'] .sur-rl-card { animation: surRlCardIn .38s cubic-bezier(.2, 1.15, .3, 1) backwards; }
.sur-rl[data-phase='spin'][data-still='0'] .sur-rl-beam { animation: surRlLamp .62s linear backwards, surRlFlicker .19s steps(2, end) .62s infinite; }
.sur-rl[data-still='0'] .sur-rl-strip { animation: surRlIn .45s ease-out .08s backwards; }
.sur-rl[data-still='0'] .sur-rl-mark { animation: surRlMarkIn .4s cubic-bezier(.2, 1.3, .4, 1) .2s backwards; }
/* the stop: one shade takes the others (not 55 fades), the won frame comes to the gate's middle and grows */
.sur-rl-shade { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .5s ease;
  background: linear-gradient(90deg, rgba(5, 6, 8, .86) 0, rgba(5, 6, 8, .86) calc(50% - var(--cw) * 1.3), rgba(5, 6, 8, 0) calc(50% - var(--cw) * .82), rgba(5, 6, 8, 0) calc(50% + var(--cw) * .82), rgba(5, 6, 8, .86) calc(50% + var(--cw) * 1.3), rgba(5, 6, 8, .86) 100%); }
.sur-rl[data-still='0']:not([data-phase='spin']) .sur-rl-shade { opacity: 1; }
.sur-rl[data-still='0'] .sur-rl-c { transition: none; }
.sur-rl[data-still='0']:not([data-phase='spin']) .sur-rl-c:not(.won) { opacity: 1; }
.sur-rl[data-still='0'] .sur-rl-c.won .sur-rl-f { transform: translate3d(0, var(--drop, 0px), 0) scale(var(--grow, 1.2)); transition: transform .62s cubic-bezier(.2, 1.38, .36, 1) .12s, border-color .3s ease; animation: none; }
.sur-rl[data-still='0'] .sur-rl-c.won .sur-rl-n { translate: 0 var(--name, 5px); transition: translate .62s cubic-bezier(.2, 1.38, .36, 1) .12s; }
.sur-rl[data-still='0'] .sur-rl-c.won .sur-rl-g, .sur-rl[data-still='0'] .sur-rl-c.won[data-named='0'] .sur-rl-n { opacity: 0; transition: opacity .2s ease; }
/* the tier's light, in the window's own layer (.sur-rl-sky), from the won frame */
.sur-rl-fx > b { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.sur-rl-glow { width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tier-rgb, 255, 255, 255), .6), rgba(var(--tier-rgb, 255, 255, 255), .17) 38%, rgba(var(--tier-rgb, 255, 255, 255), 0) 68%); }
.sur-rl-ring { box-sizing: border-box; width: 150px; height: 150px; margin: -75px 0 0 -75px; border: 3px solid rgba(var(--tier-rgb, 255, 255, 255), .95); border-radius: 50%; box-shadow: 0 0 16px rgba(var(--tier-rgb, 255, 255, 255), .6), inset 0 0 16px rgba(var(--tier-rgb, 255, 255, 255), .35); }
.sur-rl-rays { width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: repeating-conic-gradient(from 4deg, rgba(255, 214, 120, 0) 0deg 9deg, rgba(255, 228, 156, .6) 14deg 16deg, rgba(255, 214, 120, 0) 21deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 16%, #000 28%, rgba(0, 0, 0, .45) 47%, transparent 69%); mask-image: radial-gradient(circle, transparent 0 16%, #000 28%, rgba(0, 0, 0, .45) 47%, transparent 69%); }
.sur-rl-fx > u { --x: calc((var(--i) - 4.5) * 27px); position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 6px 2px rgba(255, 190, 70, .9); opacity: 0; }
.sur-rl-fx > u:nth-of-type(3n) { width: 3px; height: 3px; }
.sur-rl-sweep { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 24%; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--tier-rgb, 255, 255, 255), 0), rgba(var(--tier-rgb, 255, 255, 255), .3) 36%, rgba(255, 255, 255, .7) 50%, rgba(var(--tier-rgb, 255, 255, 255), .3) 64%, rgba(var(--tier-rgb, 255, 255, 255), 0)); }
.sur-rl-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(245, 185, 66, .7), inset 0 0 90px rgba(245, 185, 66, .26); }
/* common: calm — the frame grows, nothing else. rare: a clean blue sweep through the gate and a soft bloom */
.sur-rl[data-still='0']:is([data-tier='rare'], [data-tier='epic'], [data-tier='legendary']):not([data-phase='spin']) .sur-rl-sweep { animation: surRlSweepGate .72s cubic-bezier(.4, 0, .2, 1) .1s both; }
.sur-rl[data-still='0'][data-tier='rare']:not([data-phase='spin']) .sur-rl-glow { --peak: .5; animation: surRlBloom .85s ease-out .14s both; }
.sur-rl[data-still='0'] .sur-rl-flare { display: none; } /* the sweep took its place */
/* epic: a purple shockwave (two rings) and sparks */
.sur-rl[data-tier='epic'] .sur-rl-fx::before { border-color: rgba(214, 179, 255, .95); }
.sur-rl[data-still='0'][data-tier='epic']:not([data-phase='spin']) .sur-rl-glow { --peak: .8; animation: surRlBloom .95s ease-out .1s both; }
.sur-rl[data-still='0'][data-tier='epic']:not([data-phase='spin']) .sur-rl-ring { animation: surRlShock .75s cubic-bezier(.1, .7, .3, 1) .12s both; }
.sur-rl[data-still='0'][data-tier='epic']:not([data-phase='spin']) .sur-rl-fx::before { animation: surRlRing .95s ease-out .28s both; }
.sur-rl[data-still='0'][data-tier='epic']:not([data-phase='spin']) .sur-rl-fx > i:nth-of-type(even) { animation: surRlSpark2 1s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(.14s + var(--i) * 14ms); }
.sur-rl[data-still='0'][data-tier='epic']:not([data-phase='spin']) .sur-rl-fx > i:nth-of-type(odd) { animation: none; }
/* legendary: a gold light-burst — the bloom, rays turning behind the frame, two rings, sparks, embers rising; the window itself takes the gold */
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-glow { --peak: 1; animation: surRlBloom 1.15s ease-out .1s both, surRlHalo 2.2s ease-in-out 1.25s 2 forwards; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-rays { animation: surRlRays 2.7s cubic-bezier(.2, .7, .3, 1) .16s both; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-ring { animation: surRlShock .85s cubic-bezier(.1, .7, .3, 1) .12s both; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-fx::before { animation: surRlRing 1.1s ease-out .3s both; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-fx > i { animation: surRlSparkFar2 1.4s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(.14s + var(--i) * 18ms); }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-fx > u { animation: surRlEmber 2.3s cubic-bezier(.3, .2, .5, 1) both; animation-delay: calc(.4s + var(--d) * 130ms); }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-card { animation: surRlThump .5s ease-out .12s; }
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-c.won .sur-rl-f { animation: none; } /* its glow breathes in the sky layer (opacity), not as a repainted shadow */
.sur-rl[data-still='0'][data-tier='legendary']:not([data-phase='spin']) .sur-rl-card::after { animation: surRlGoldIn 1.9s ease-out .1s both; }
/* the result's lines come one by one */
.sur-rl[data-still='0'] .sur-rl-got { animation: none; }
.sur-rl[data-still='0'] .sur-rl-got > * { animation: surRlRise .46s cubic-bezier(.2, 1.15, .35, 1) backwards; }
.sur-rl[data-still='0'] .sur-rl-got > :nth-child(2) { animation-delay: 70ms; }
.sur-rl[data-still='0'] .sur-rl-got > :nth-child(3) { animation-delay: 140ms; }
.sur-rl[data-still='0'] .sur-rl-got > :nth-child(4) { animation-delay: 210ms; }
.sur-rl[data-still='0'] .sur-rl-got > :nth-child(5) { animation-delay: 290ms; }
.sur-rl[data-still='0'] .sur-rl-got-r .rar-chip { animation: surRlChip .5s cubic-bezier(.2, 1.6, .4, 1) .14s backwards; }
@keyframes surRlStreak { to { transform: translate3d(-360px, 0, 0); } }
@keyframes surRlCardIn { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); } }
@keyframes surRlLamp { 0% { opacity: 0; } 22% { opacity: .75; } 30% { opacity: .1; } 46% { opacity: .95; } 56% { opacity: .45; } 72% { opacity: 1; } }
@keyframes surRlMarkIn { from { opacity: 0; transform: translate3d(0, -14px, 0); } }
@keyframes surRlSweepGate { 0% { opacity: 0; transform: translate3d(-120%, 0, 0) skewX(-16deg); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(540%, 0, 0) skewX(-16deg); } }
@keyframes surRlBloom { 0% { opacity: 0; transform: scale(.25); } 28% { opacity: var(--peak, .8); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes surRlHalo { 0% { opacity: 0; transform: scale(1); } 50% { opacity: .3; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1); } }
@keyframes surRlShock { 0% { opacity: 0; transform: scale(.45); } 16% { opacity: 1; } 100% { opacity: 0; transform: scale(3.1); } }
@keyframes surRlRays { 0% { opacity: 0; transform: scale(.3) rotate(0deg); } 14% { opacity: .95; } 55% { opacity: .6; } 100% { opacity: 0; transform: scale(1.12) rotate(38deg); } }
@keyframes surRlSpark2 { 0% { opacity: 0; transform: rotate(var(--a)) translateX(64px) scale(.5); } 14% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(190px) scale(1); } }
@keyframes surRlSparkFar2 { 0% { opacity: 0; transform: rotate(var(--a)) translateX(70px) scale(.5); } 12% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(300px) scale(1.25); } }
@keyframes surRlEmber { 0% { opacity: 0; transform: translate3d(var(--x), 34px, 0) scale(.6); } 15% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; transform: translate3d(calc(var(--x) * 1.35), -170px, 0) scale(1); } }
@keyframes surRlThump { 0% { transform: scale(1); } 30% { transform: scale(1.014); } 100% { transform: scale(1); } }
@keyframes surRlGoldIn { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: .45; } }
@keyframes surRlRise { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes surRlChip { from { opacity: 0; transform: scale(.6); } }
@media (max-width: 520px) {
  .sur-rl-win::before, .sur-rl-win::after { width: 36%; }
  .sur-rl-gate { height: 86px; }
  .sur-rl-glow { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .sur-rl-rays { width: 500px; height: 500px; margin: -250px 0 0 -250px; }
  .sur-rl-ring { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
}
@media (max-height: 560px) {
  .sur-rl-gate { top: 13px; height: 72px; }
  .sur-rl-glow { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .sur-rl-rays { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .sur-rl-ring { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
}
@media (prefers-reduced-motion: reduce) {
  .sur-rl-streak, .sur-rl-shade, .sur-rl-sweep, .sur-rl-gate, .sur-rl-fx > b, .sur-rl-fx > u { display: none; }
  .sur-rl-strip, .sur-rl-mark, .sur-rl-card::after, .sur-rl-got > *, .sur-rl-got-r .rar-chip { animation: none !important; }
  .sur-rl-strip { transition: none; }
}

/* === n97 (0.65.8 2C) the fifth tier «Ультра-легендарный» (ultra): prismatic, not gold — the legendary's effects in an
   iridescent palette, plus a slow hue shimmer on its marks (none with reduced motion) and the strongest reveal ======== */
:is(.rar-chip, .rar-gem, .sur-rl, .sur-rl-c, .sur-ch-t, .sur-ch-n, .gbx-ban)[data-tier='ultra'] { --tier: #d6a6ff; --tier-rgb: 214, 166, 255; --tier-ink: #f1d6ff; }
.rar-gem[data-tier='ultra'] { width: 10px; height: 10px; background: linear-gradient(135deg, #ffffff, #d6a6ff 55%, #6fd6ff); }
.sur-rl-c[data-tier='ultra'] .sur-rl-f { background-image: linear-gradient(180deg, rgba(214, 166, 255, 0) 35%, rgba(214, 166, 255, .28)); }
.sur-rl[data-tier='ultra'] .sur-rl-c.won .sur-rl-f { transform: translateY(-4px) scale(1.19); box-shadow: 0 0 0 2px #d6a6ff, 0 0 0 5px rgba(214, 166, 255, .28), 0 0 60px rgba(196, 160, 255, .95), 0 10px 22px rgba(0, 0, 0, .6); }
.sur-rl[data-tier='ultra'] .sur-rl-flare { height: 14px; }
.sur-rl[data-tier='ultra'] .sur-rl-card { border-color: rgba(214, 166, 255, .85); }
.sur-rl[data-tier='ultra'] .sur-rl-got-n { color: #fbeaff; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-fx > i { animation: surRlSparkFar 1.35s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(var(--i) * 18ms); }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-fx::before { animation: surRlRing 1.1s ease-out both; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-card { animation: surRlPrism 1.7s ease-out both; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-c.won .sur-rl-f { animation: surRlPulse 1.5s ease-in-out .5s 2; }
.sur-rl[data-tier='rare'] .sur-rl-got-k, .sur-rl[data-tier='epic'] .sur-rl-got-k, .sur-rl[data-tier='ultra'] .sur-rl-got-k { color: var(--tier-ink); }
.gbx-ban[data-tier='ultra'] { border-color: rgba(214, 166, 255, .95); box-shadow: 0 0 0 1px rgba(214, 166, 255, .5), 0 10px 40px rgba(214, 166, 255, .38); color: #fbeaff; }
.sur-pity.due[data-tier='ultra'], .sur-rl[data-tier='ultra'] .sur-pity.due { color: #f1d6ff; }
.sur-rl-strip .sur-rl-c[data-tier='ultra'] .sur-rl-f { border-color: #d6a6ff; background-image: linear-gradient(180deg, rgba(214, 166, 255, .1), rgba(214, 166, 255, .34)); box-shadow: inset 0 0 0 1px rgba(255, 240, 255, .5), 0 0 12px rgba(214, 166, 255, .4); }
.sur-rl-c[data-tier='ultra'] .sur-rl-f::before { content: '★'; position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 0 0 9px 0; background: linear-gradient(135deg, #ffffff, #d6a6ff 55%, #6fd6ff); color: #3a2603; font-size: 12px; line-height: 1; }
.sur-rl-c[data-tier='ultra'] .sur-rl-n { color: #f1d6ff; }
.sur-rl[data-still='0']:is([data-tier='rare'], [data-tier='epic'], [data-tier='ultra']):not([data-phase='spin']) .sur-rl-sweep { animation: surRlSweepGate .72s cubic-bezier(.4, 0, .2, 1) .1s both; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-glow { --peak: 1; animation: surRlBloom 1.15s ease-out .1s both, surRlHalo 2.2s ease-in-out 1.25s 2 forwards; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-rays { animation: surRlRays 2.7s cubic-bezier(.2, .7, .3, 1) .16s both; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-ring { animation: surRlShock .85s cubic-bezier(.1, .7, .3, 1) .12s both; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-fx::before { animation: surRlRing 1.1s ease-out .3s both; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-fx > i { animation: surRlSparkFar2 1.4s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(.14s + var(--i) * 18ms); }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-fx > u { animation: surRlEmber 2.3s cubic-bezier(.3, .2, .5, 1) both; animation-delay: calc(.4s + var(--d) * 130ms); }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-card { animation: surRlThump .5s ease-out .12s; }
.sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-card::after { animation: surRlPrismIn 1.9s ease-out .1s both; }
@keyframes surRlPrism { 0% { box-shadow: 0 0 0 0 rgba(214, 166, 255, 0); } 25% { box-shadow: 0 0 0 3px rgba(214, 166, 255, .55), 0 0 70px rgba(214, 166, 255, .5); } 100% { box-shadow: 0 0 0 1px rgba(214, 166, 255, .3), 0 0 26px rgba(214, 166, 255, .18); } }
@keyframes surRlPulse { 50% { box-shadow: 0 0 0 2px #d6a6ff, 0 0 0 8px rgba(214, 166, 255, .2), 0 0 84px rgba(255, 206, 84, 1), 0 10px 22px rgba(0, 0, 0, .6); } }
/* the result: the tier's chip over the name */
.sur-rl-got-r { margin-top: 6px; line-height: 1; }
.sur-rl-got-r .rar-chip { padding: 2px 12px 2px 10px; font-size: 12.5px; }
.sur-rl-got-r:empty { display: none; }
.sur-rl[data-tier='rare'] .sur-rl-got-k, .sur-rl[data-tier='epic'] .sur-rl-got-k, .sur-rl[data-tier='legendary'] .sur-rl-got-k { color: var(--tier-ink); }
.sur-rl[data-tier='common'] .sur-rl-got-k { color: var(--muted); }
.sur-rl-foot { min-height: 146px; }
/* the hall's line for an epic / a legendary win */
.gbx-ban[data-tier='epic'] { border-color: rgba(176, 108, 255, .8); box-shadow: 0 0 0 1px rgba(176, 108, 255, .35), 0 10px 34px rgba(176, 108, 255, .28); }
.gbx-ban[data-tier='legendary'] { border-color: rgba(214, 166, 255, .95); box-shadow: 0 0 0 1px rgba(214, 166, 255, .5), 0 10px 40px rgba(214, 166, 255, .38); color: #fbeaff; }
@media (max-width: 520px) {
  .sur-rl-foot { min-height: 160px; }
  .sur-rl .sur-ch { padding-right: 0; font-size: 12.5px; }
  .sur-rl-fx::before { left: -56px; top: -56px; width: 112px; height: 112px; }
}
@keyframes surRlPrismIn { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: .45; } }
@keyframes surRlRise { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes surRlChip { from { opacity: 0; transform: scale(.6); } }
@media (max-width: 520px) {
  .sur-rl-win::before, .sur-rl-win::after { width: 36%; }
  .sur-rl-gate { height: 86px; }
  .sur-rl-glow { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .sur-rl-rays { width: 500px; height: 500px; margin: -250px 0 0 -250px; }
  .sur-rl-ring { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
}
:is(.rar-chip, .rar-gem, .sur-rl, .sur-rl-c, .sur-ch-t, .sur-ch-n, .gbx-ban)[data-tier='ultra'] { --tier: #d6a6ff; --tier-rgb: 214, 166, 255; --tier-ink: #f1d6ff; }
.rar-chip[data-tier='ultra'] { background: linear-gradient(100deg, rgba(255, 120, 200, .22), rgba(120, 200, 255, .22) 50%, rgba(200, 255, 160, .2)); border-color: rgba(214, 166, 255, .7); color: #fbeaff; }
.rar-gem[data-tier='ultra'] { width: 11px; height: 11px; background: conic-gradient(from 0deg, #ff7ac8, #ffd36e, #8affc1, #6fd6ff, #b48cff, #ff7ac8); box-shadow: 0 0 6px rgba(214, 166, 255, .9); }
.sur-ch-t[data-tier='ultra'] > i, .sur-ch-n[data-tier='ultra'] > i { background: conic-gradient(#ff7ac8, #ffd36e, #8affc1, #6fd6ff, #b48cff, #ff7ac8); }
.sur-rl-strip .sur-rl-c[data-tier='ultra'] .sur-rl-f { border: 2px solid transparent; background: linear-gradient(180deg, rgba(40, 24, 60, .9), rgba(70, 40, 100, .9)) padding-box, conic-gradient(from var(--sur-a, 0deg), #ff7ac8, #ffd36e, #8affc1, #6fd6ff, #b48cff, #ff7ac8) border-box; box-shadow: 0 0 18px rgba(214, 166, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.sur-rl-c[data-tier='ultra'] .sur-rl-f::before { content: '✦'; background: conic-gradient(#ff7ac8, #ffd36e, #8affc1, #6fd6ff, #b48cff, #ff7ac8); color: #1a0f22; }
.sur-rl-c[data-tier='ultra'] .sur-rl-n { color: #fbeaff; text-shadow: 0 0 8px rgba(214, 166, 255, .8); }
@property --sur-a { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@keyframes surUltraTurn { to { --sur-a: 360deg; } }
@keyframes surUltraHue { to { filter: hue-rotate(360deg); } }
@keyframes surUltraRays { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(140deg) scale(1.5); } }
@media (prefers-reduced-motion: no-preference) {
  .rar-chip[data-tier='ultra'], .rar-gem[data-tier='ultra'] { animation: surUltraHue 6s linear infinite; }
  .sur-rl-strip .sur-rl-c[data-tier='ultra'] .sur-rl-f { animation: surUltraTurn 3s linear infinite; }
  .sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-card::before { content: ''; position: absolute; left: 50%; top: 42%; width: 160%; aspect-ratio: 1; pointer-events: none; z-index: 0;
    background: repeating-conic-gradient(from 0deg, rgba(255, 122, 200, .32) 0 6deg, transparent 6deg 18deg, rgba(111, 214, 255, .3) 18deg 24deg, transparent 24deg 36deg); border-radius: 50%;
    mask: radial-gradient(circle, #000 18%, transparent 62%); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); animation: surUltraRays 2.6s ease-out .1s both; }
  .sur-rl[data-still='0'][data-tier='ultra']:not([data-phase='spin']) .sur-rl-got-n { animation: surUltraHue 3s linear infinite; }
}
.sur-rl[data-tier='ultra'] .sur-rl-card { border-color: rgba(214, 166, 255, .9); box-shadow: 0 0 0 1px rgba(255, 122, 200, .35), 0 0 60px rgba(150, 120, 255, .45), 0 30px 80px rgba(0, 0, 0, .6); }
.sur-rl[data-tier='ultra'] .sur-rl-got-n { background: linear-gradient(90deg, #ff9ad6, #ffe08a, #9dffcf, #8fdcff, #c9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gbx-ban[data-tier='ultra'] { border-color: rgba(214, 166, 255, .95); box-shadow: 0 0 0 1px rgba(255, 122, 200, .45), 0 10px 40px rgba(150, 120, 255, .45); color: #fbeaff; }

/* === n97 2C: «Киносюрприз» has its own button (the header, the top of the shop) and its own window ===================== */
.sur-hbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 18px; cursor: pointer; font: 600 13px/1 inherit; font-family: inherit; color: #fff4e0;
  border: 1px solid rgba(255, 200, 120, .55); background: linear-gradient(135deg, rgba(150, 60, 200, .55), rgba(230, 110, 70, .55)); box-shadow: 0 0 14px rgba(200, 120, 255, .35); white-space: nowrap; }
.sur-hbtn:hover { filter: brightness(1.12); }
.sur-hbtn:focus-visible { outline: 2px solid #ffd58c; outline-offset: 2px; }
.sur-hbtn.hidden { display: none; }
.sur-btn-ico { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; }
.sur-btn-ico svg { width: 26px; height: 26px; }
.sur-win { position: fixed; inset: 0; z-index: 2600; /* over the shop (2500), under the roulette (2700) */ display: flex; align-items: center; justify-content: center; }
.sur-win-back { position: absolute; inset: 0; background: rgba(6, 6, 10, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sur-win-box { position: relative; width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; border-radius: 18px; padding: 16px 16px 18px;
  background: linear-gradient(180deg, #1d1b24, #13121a); border: 1px solid rgba(214, 166, 255, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); box-sizing: border-box; }
.sur-win-x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 10, 14, .6); color: #fff; font-size: 18px; cursor: pointer; z-index: 2; }
.sur-win .sur-shop { margin: 0; padding-right: 44px; }
.sur-win .sur-shop .club-buy { width: 100%; min-height: 48px; }
html.sur-win-open { overflow: hidden; }
@media (max-width: 560px) {
  .sur-hbtn { padding: 0 6px; min-width: 44px; min-height: 44px; justify-content: center; }
  .sur-hbtn .sur-btn-t { display: none; } /* a phone: the box only (its name is the button's label) */
  .sur-win { align-items: flex-end; }
  .sur-win-box { width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* 0.66.1: a narrow phone — «Watch Party» is its logo only (its name stays the aria-label), so the avatar strip keeps its room once
   the header button shows ~4 s in (it was squeezed to ~23 px at 390 beside the button, health, count and «⋯»). Always, not on the
   button's arrival: folding then would move every face in the strip. */
@media (max-width: 430px) {
  header #brand-home { font-size: 0; gap: 0; min-width: 36px; min-height: 36px; justify-content: center; }
}

/* === n104 (0.66.0) «Кейсы»: the count on the buttons, the window's count and how to earn, the hidden case =============== */
.sur-btn-ico { position: relative; }
.sur-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
  font: 700 11px/18px system-ui, sans-serif; text-align: center; color: #2a1300; background: #ffd25c; border: 1px solid #fff2c4; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); pointer-events: none; }
.sur-badge[hidden] { display: none; }
.sur-shop .sur-count { white-space: nowrap; color: #ffe4a8; }
.sur-shop .sur-count.sur-zero { color: rgba(255, 255, 255, .62); }
.sur-earn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.sur-earn > b, .sur-earn > summary { display: block; font-weight: 700; color: #ffe4a8; cursor: default; }
.sur-earn > summary { cursor: pointer; min-height: 32px; line-height: 32px; list-style: none; }
.sur-earn > summary::-webkit-details-marker { display: none; }
.sur-earn > summary::after { content: ' ▾'; }
.sur-earn[open] > summary::after { content: ' ▴'; }
.sur-earn-l { margin: 6px 0 0; padding-left: 18px; }
.sur-earn-l li { margin: 3px 0; }
.sur-hid { position: fixed; z-index: 2400; /* under the shop (2500) and its windows; never shown over a film */ display: flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 14px; cursor: pointer; border: 1px solid rgba(255, 210, 120, .7); background: radial-gradient(circle at 50% 40%, rgba(255, 200, 110, .35), rgba(40, 20, 60, .85));
  box-shadow: 0 0 18px rgba(255, 190, 90, .55), 0 6px 18px rgba(0, 0, 0, .5); animation: sur-hid-in .5s ease-out both; }
.sur-hid:focus-visible { outline: 2px solid #ffd58c; outline-offset: 3px; }
.sur-hid-in { display: flex; }
.sur-hid-in svg { width: 100%; height: auto; }
.sur-hid.sur-hid-out { animation: sur-hid-out .6s ease-in both; pointer-events: none; }
.sur-hid.sur-hid-got { animation: sur-hid-got .42s ease-out both; pointer-events: none; }
@keyframes sur-hid-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes sur-hid-out { to { opacity: 0; transform: scale(.85); } }
@keyframes sur-hid-got { to { opacity: 0; transform: scale(1.5); } }
@keyframes sur-hid-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@media (prefers-reduced-motion: no-preference) { .sur-hid:not(.sur-hid-out):not(.sur-hid-got) .sur-hid-in { animation: sur-hid-bob 2.4s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .sur-hid, .sur-hid.sur-hid-out, .sur-hid.sur-hid-got { animation: none; } }
