/* Казино KOZYR SMP (2026-11-18). Тот же «эпический» язык, что у топов и профиля:
   тёмная сцена, лучи, объёмные пиксельные буквы. Акцент - аметист, выигрыш - золото. */
body { background: #0b0810 !important; overflow-x: clip; }

.kzc {
    --acc: #9b6ad6; --acc-hi: #c9a6f0; --acc-lo: #3b2357;
    --bg: #0b0810; --panel: #15111d; --panel-2: #1c1726; --panel-3: #241d31; --line: #2e2540;
    --ink: #f1edf7; --muted: #a59db3; --gold: #f6d878; --gold-lo: #8a6a1c;
    --win: #7ad6a0; --lose: #e06666; --heart: #e0485c; --spade: #2a2236;
    --px: 'MinecraftFont', 'Press Start 2P', monospace;
    color: var(--ink);
    font-family: 'Rubik', system-ui, sans-serif;
    padding-bottom: 40px;
}
.kzc *, .kzc *::before, .kzc *::after { box-sizing: border-box; border-radius: 0; }
.kzc img { image-rendering: pixelated; }
.kzc [hidden] { display: none !important; }
.kzc a { color: var(--acc-hi); }
.kzc button { font: inherit; cursor: pointer; color: inherit; }
.kzc button:disabled { cursor: not-allowed; opacity: .55; }
/* Сайт красит все input в #1a1a1a с padding 10px !important - здесь свой вид. */
.kzc input, .kzc select {
    background: #0e0b14 !important; color: #fff !important; border: 2px solid #000 !important;
    box-shadow: inset 0 0 0 1px #3a304b !important; padding: 9px 10px !important; font-size: 15px; width: 100%; outline: none;
    font-family: inherit;
}
.kzc input:focus, .kzc select:focus { box-shadow: inset 0 0 0 1px var(--acc) !important; }
.kzc input[type=range] { padding: 0 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; }
.kzc code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--acc-hi); }

/* ---------- шапка ---------- */
.kzc-hero {
    position: relative; isolation: isolate; overflow: hidden; padding: 38px 20px 30px; text-align: center;
    background: radial-gradient(50% 90% at 50% 120%, rgba(246,216,120,.28), transparent 70%),
                radial-gradient(60% 90% at 50% 110%, rgba(155,106,214,.55), transparent 70%),
                linear-gradient(180deg, #0b0810 0%, #1a1028 60%, #0b0810 100%);
    border-bottom: 3px solid #000;
}
.kzc-hero__rays {
    position: absolute; left: 50%; top: 80%; width: 1500px; height: 1500px; z-index: -1; transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.5) 20%, transparent 45%);
    mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.5) 20%, transparent 45%);
    animation: kzcRays 80s linear infinite;
}
@keyframes kzcRays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.kzc-hero__suits i {
    position: absolute; bottom: -30px; left: calc(2% + var(--d) * 6.2%); z-index: -1; font-style: normal;
    font-size: calc(18px + (var(--d) * 7 % 5) * 6px); color: rgba(201,166,240,.55); opacity: 0;
    animation: kzcSuit calc(6s + var(--d) * .37s) linear infinite; animation-delay: calc(var(--d) * -.9s);
}
.kzc-hero__suits i:nth-child(4n+2), .kzc-hero__suits i:nth-child(4n+4) { color: rgba(224,72,92,.6); }
.kzc-hero__suits i:nth-child(5n) { color: rgba(246,216,120,.7); }
@keyframes kzcSuit { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-300px) rotate(220deg); opacity: 0; } }
.kzc-hero__inner { position: relative; max-width: 1100px; margin: 0 auto; }
.kzc-hero__title {
    margin: 0; font-family: var(--px) !important; font-weight: normal; font-size: clamp(48px, 11vw, 116px); line-height: 1;
    letter-spacing: .03em; color: transparent; transform: rotate(-2deg) skewX(-8deg);
}
.kzc-l { position: relative; display: inline-block; animation: kzcLetter .7s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(.1s + var(--i) * .07s); }
@keyframes kzcLetter { 0% { transform: translateY(-1.2em) scale(.6) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.kzc-l__b { display: inline-block; color: #4a2a6b; text-shadow: 1px 1px 0 #3a2056, 2px 2px 0 #3a2056, 3px 3px 0 #2c1842, 4px 4px 0 #2c1842, 5px 5px 0 #1d0f2d, 6px 6px 0 #1d0f2d, 8px 9px 0 rgba(0,0,0,.6); }
.kzc-l__f {
    position: absolute; left: 0; top: 0; color: transparent;
    background: linear-gradient(180deg, #fff6d6 0%, #f6d878 38%, #c9a6f0 62%, #9b6ad6 100%); -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 0 14px rgba(246,216,120,.35));
}

/* ---------- панель кассы ---------- */
.kzc-bar { position: sticky; top: 70px; z-index: 30; background: rgba(13,10,19,.96); border-bottom: 3px solid #000; backdrop-filter: blur(6px); }
.kzc-bar__in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kzc-bal { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; background: #000; box-shadow: inset 0 0 0 2px #3b2f10, inset 0 0 0 4px #000; min-width: 170px; }
.kzc-bal span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kzc-bal b { display: block; font-family: var(--px) !important; font-weight: normal; font-size: 20px; color: var(--gold); text-shadow: 2px 2px 0 #3b2f10; white-space: nowrap; }
.kzc-bal b.is-up { animation: kzcUp .6s; }
.kzc-bal b.is-down { animation: kzcDown .6s; }
@keyframes kzcUp { 30% { color: var(--win); transform: scale(1.12); } }
@keyframes kzcDown { 30% { color: var(--lose); } }
.kzc-guest { color: #d9d2e4; font-size: 15px; }
.kzc-bar__right { margin-left: auto; display: flex; gap: 6px; }
.kzc-icon { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--panel-2); border: 2px solid #000; box-shadow: inset 0 -3px 0 rgba(0,0,0,.4); font-size: 13px; color: #d9d2e4 !important; }
.kzc-icon:hover { background: var(--panel-3); }
.kzc-icon.is-off img { filter: grayscale(1) brightness(.6); }
.kzc-chest-btn b { margin-left: 4px; padding: 1px 6px; background: var(--acc-lo); font-weight: normal; font-family: var(--px) !important; font-size: 12px; }

/* ---------- кнопки ---------- */
.kzc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 2px solid #000;
    font-size: 15px; font-weight: 600; color: #fff !important; text-decoration: none; white-space: nowrap;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.18); transition: filter .12s, transform .06s;
}
.kzc-btn:hover:not(:disabled) { filter: brightness(1.12); }
.kzc-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.kzc-btn--go { background: linear-gradient(180deg, #8f5bd0, #6c3fb0); }
.kzc-btn--gold { background: linear-gradient(180deg, #e9bf45, #b88a1c); color: #2a1a00 !important; }
.kzc-btn--dark { background: var(--panel-3); }
.kzc-btn--red { background: linear-gradient(180deg, #e06666, #a83b3b); }
.kzc-btn--cash { background: linear-gradient(180deg, #4fbf7f, #2d8a55); }
.kzc-btn--big { width: 100%; padding: 15px 18px; font-size: 18px; letter-spacing: .02em; }
.kzc-btn small { font-weight: normal; opacity: .85; }

/* ---------- выбор игры ---------- */
.kzc-games { max-width: 1280px; margin: 18px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.kzc-game {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px;
    background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px #251d33, inset 0 -5px 0 rgba(0,0,0,.4);
    transition: transform .12s, background .12s;
}
.kzc-game:hover { transform: translateY(-2px); background: var(--panel-2); }
.kzc-game.is-on { background: linear-gradient(180deg, #2a1a40, #1a1228); box-shadow: inset 0 0 0 2px var(--acc), inset 0 -5px 0 rgba(0,0,0,.4), 0 0 24px rgba(155,106,214,.35); }
.kzc-game__slot { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.kzc-game.is-on .kzc-game__slot img { animation: kzcBob 1.6s ease-in-out infinite; }
@keyframes kzcBob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-4px) rotate(5deg); } }
.kzc-game__t { font-family: var(--px) !important; font-size: 15px; color: #fff; text-shadow: 2px 2px 0 #000; }

/* ---------- раскладка ---------- */
.kzc-main { max-width: 1280px; margin: 16px auto 0; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.kzc-panel { display: none; background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px #251d33; padding: 18px; min-height: 520px; }
.kzc-panel.is-on { display: block; animation: kzcIn .25s ease; }
@keyframes kzcIn { from { opacity: 0; transform: translateY(6px); } }
.kzc-duo { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
.kzc-ctrl { display: flex; flex-direction: column; gap: 14px; }
.kzc-h3 { margin: 0 0 10px; font-family: var(--px) !important; font-weight: normal; font-size: 16px; color: #fff; text-shadow: 2px 2px 0 #000; display: flex; align-items: center; gap: 8px; }
.kzc-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.kzc-empty { color: var(--muted); font-size: 14px; padding: 12px; text-align: center; list-style: none; }

.kzc-amount label, .kzc-field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.kzc-amount__row { display: flex; gap: 4px; }
.kzc-amount__row input { flex: 1 1 auto; min-width: 70px; font-family: var(--px) !important; font-size: 17px; color: var(--gold) !important; }
.kzc-amount__row button, .kzc-chips button {
    flex: 0 0 auto; padding: 0 9px; min-height: 40px; background: var(--panel-3); border: 2px solid #000; font-size: 13px; color: #d9d2e4;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
}
.kzc-amount__row button:hover, .kzc-chips button:hover { background: #30263f; }
.kzc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.kzc-chips button { min-height: 32px; }
.kzc-chips button.is-on { background: var(--acc-lo); box-shadow: inset 0 0 0 2px var(--acc); color: #fff; }
.kzc-field small { color: #7d7590; }
.kzc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.kzc-stats div { background: #0e0b14; padding: 8px; box-shadow: inset 0 0 0 1px #2e2540; }
.kzc-stats span { display: block; font-size: 11px; color: var(--muted); }
.kzc-stats b { font-family: var(--px) !important; font-weight: normal; font-size: 15px; color: var(--gold); }
.kzc-ro { padding: 10px; background: #0e0b14; box-shadow: inset 0 0 0 1px #2e2540; font-family: var(--px) !important; color: var(--win); min-height: 42px; }

/* ---------- ленты сбоку ---------- */
.kzc-side-col { display: flex; flex-direction: column; gap: 16px; }
.kzc-box { background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px #251d33; padding: 14px; }
.kzc-live { width: 8px; height: 8px; background: var(--lose); display: inline-block; animation: kzcLive 1.2s infinite; }
@keyframes kzcLive { 50% { opacity: .2; } }
.kzc-feed, .kzc-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
.kzc-feed li, .kzc-top li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; background: #0e0b14; box-shadow: inset 3px 0 0 var(--rc, #3a304b); font-size: 13px; }
.kzc-feed li.is-new { animation: kzcFeedIn .5s ease; }
@keyframes kzcFeedIn { from { transform: translateX(30px); opacity: 0; background: #2a1a40; } }
.kzc-feed img, .kzc-top img { width: 32px; height: 32px; }
.kzc-feed .n, .kzc-top .n { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kzc-feed .g, .kzc-top .g { display: block; font-size: 11px; color: var(--muted); }
.kzc-feed .p, .kzc-top .p { font-family: var(--px) !important; color: var(--win); white-space: nowrap; text-align: right; }
.kzc-feed .p small, .kzc-top .p small { display: block; font-family: 'Rubik', sans-serif; font-size: 11px; color: var(--gold); }
.kzc-feed time, .kzc-top time { display: block; font-family: 'Rubik', sans-serif; font-size: 11px; color: var(--muted); }

/* ---------- полоса (колесо, сундуки) ---------- */
.kzc-strip { position: relative; overflow: hidden; height: 132px; background: #07050b; border: 3px solid #000; box-shadow: inset 0 0 0 2px #251d33, inset 0 0 40px rgba(0,0,0,.8); }
.kzc-strip::before, .kzc-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.kzc-strip::before { left: 0; background: linear-gradient(90deg, #07050b, transparent); }
.kzc-strip::after { right: 0; background: linear-gradient(-90deg, #07050b, transparent); }
.kzc-strip__mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; z-index: 3; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.kzc-strip__mark::before, .kzc-strip__mark::after { content: ''; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.kzc-strip__mark::before { top: -2px; border-top-color: var(--gold); }
.kzc-strip__mark::after { bottom: -2px; border-bottom-color: var(--gold); }
.kzc-strip__track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px; will-change: transform; }

/* ---------- колесо ---------- */
.kzc-wheel { display: flex; flex-direction: column; gap: 14px; }
.kzc-wheel__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kzc-wheel__timer { position: relative; flex: 1 1 260px; height: 34px; background: #07050b; border: 2px solid #000; overflow: hidden; }
.kzc-wheel__timer i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #6c3fb0, #9b6ad6); transform-origin: left; }
.kzc-wheel__timer span { position: relative; display: flex; height: 100%; align-items: center; justify-content: center; font-family: var(--px) !important; font-size: 14px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzc-wheel__hist { display: flex; gap: 3px; flex-wrap: wrap; }
.kzc-wheel__hist b { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 15px; border: 2px solid #000; }
.kzc-card { flex: 0 0 auto; width: 84px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid #000; position: relative; font-size: 44px; line-height: 1; text-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.kzc-card::after { content: attr(data-x); position: absolute; bottom: 6px; font-family: var(--px) !important; font-size: 12px; color: rgba(255,255,255,.8); text-shadow: 1px 1px 0 #000; }
.kzc-card--heart, .kzc-wheel__hist .h { background: linear-gradient(180deg, #e9586b, #a52a3e); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.kzc-card--spade, .kzc-wheel__hist .s { background: linear-gradient(180deg, #6a5a86, #3a2f4d); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.kzc-card--joker, .kzc-wheel__hist .j { background: linear-gradient(180deg, #ffe58a, #d2a12a); color: #5a3a00; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 0 18px rgba(246,216,120,.5); }
.kzc-card.is-hit { animation: kzcHit 1.2s ease 2; }
@keyframes kzcHit { 50% { transform: scale(1.08); filter: brightness(1.35); } }
.kzc-wheel__sides { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.kzc-side__btn { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 12px; border: 3px solid #000; text-align: left; box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.15); transition: filter .1s, transform .06s; }
.kzc-side__btn:hover:not(:disabled) { filter: brightness(1.15); }
.kzc-side__btn:active:not(:disabled) { transform: translateY(2px); }
.kzc-side--heart .kzc-side__btn { background: linear-gradient(180deg, #d94a5e, #962536); }
.kzc-side--spade .kzc-side__btn { background: linear-gradient(180deg, #3d3350, #211a2d); }
.kzc-side--joker .kzc-side__btn { background: linear-gradient(180deg, #f2cf5b, #b9861c); color: #3b2500; }
.kzc-side__sym { grid-row: span 2; font-size: 38px; line-height: 1; }
.kzc-side__name { font-family: var(--px) !important; font-size: 15px; }
.kzc-side__name b { font-weight: normal; opacity: .85; margin-left: 4px; }
.kzc-side__mine { font-size: 12px; min-height: 15px; }
.kzc-side__sum { margin: 6px 2px; font-size: 12px; color: var(--muted); }
.kzc-side__sum b { color: var(--gold); font-weight: normal; }
.kzc-side__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 220px; overflow: auto; }
.kzc-side__list li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #0e0b14; font-size: 13px; }
.kzc-side__list li img { width: 20px; height: 20px; }
.kzc-side__list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kzc-side__list li b { color: var(--gold); font-weight: normal; }
.kzc-side__list li.is-me { box-shadow: inset 3px 0 0 var(--acc); }
.kzc-side__list.is-win li b { color: var(--win); }
.kzc-side__list.is-lose { opacity: .45; }

/* ---------- ракета ---------- */
.kzc-crash { position: relative; background: radial-gradient(80% 90% at 30% 100%, #1d1430, #07050b 70%); border: 3px solid #000; min-height: 420px; overflow: hidden; }
.kzc-crash canvas { display: block; width: 100%; height: 100%; min-height: 420px; }
.kzc-crash__mult { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--px) !important; font-size: clamp(42px, 8vw, 84px); color: #fff; text-shadow: 4px 4px 0 #000; pointer-events: none; }
.kzc-crash__mult.is-win { color: var(--win); }
.kzc-crash__mult.is-boom { color: var(--lose); animation: kzcShake .4s; }
@keyframes kzcShake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.kzc-crash__note { position: absolute; left: 0; right: 0; top: calc(34% + 96px); text-align: center; color: #d9d2e4; font-size: 15px; padding: 0 20px; pointer-events: none; }
.kzc-crash__last, .kzc-dice__last { display: flex; flex-wrap: wrap; gap: 4px; }
.kzc-crash__last b, .kzc-dice__last b { padding: 3px 7px; font-family: var(--px) !important; font-weight: normal; font-size: 12px; background: #0e0b14; box-shadow: inset 0 0 0 1px #2e2540; color: var(--lose); }
.kzc-crash__last b.w, .kzc-dice__last b.w { color: var(--win); }

/* ---------- сапёр ---------- */
.kzc-mines { display: flex; align-items: center; justify-content: center; background: radial-gradient(70% 70% at 50% 50%, #1d1430, #07050b); border: 3px solid #000; padding: 18px; }
.kzc-mines__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 460px); }
.kzc-tile {
    position: relative; aspect-ratio: 1; border: 3px solid #000; background: #6f6f6f url('/casino_files/stone.png') center / cover; image-rendering: pixelated;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), inset -3px -3px 0 rgba(0,0,0,.4); transition: transform .08s, filter .1s;
}
.kzc-tile:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.2); }
.kzc-tile img { position: absolute; inset: 14%; width: 72%; height: 72%; }
.kzc-tile.is-gem { background: #1b3b3a url('/casino_files/deepslate.png') center / cover; animation: kzcPop .35s cubic-bezier(.2,1.6,.4,1); box-shadow: inset 0 0 0 3px #4fe3d1, 0 0 16px rgba(79,227,209,.45); }
.kzc-tile.is-tnt { background: #3b0f0f; animation: kzcPop .35s cubic-bezier(.2,1.6,.4,1); }
.kzc-tile.is-boom { background: #7a1010; box-shadow: inset 0 0 0 3px var(--lose), 0 0 26px rgba(224,102,102,.8); animation: kzcShake .4s; }
.kzc-tile.is-ghost { filter: grayscale(.4) brightness(.55); }
.kzc-tile:disabled { cursor: default; opacity: 1; }
@keyframes kzcPop { from { transform: scale(.4) rotate(-20deg); } }

/* ---------- кости ---------- */
.kzc-dice { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.kzc-dice__result { text-align: center; font-family: var(--px) !important; font-size: clamp(54px, 10vw, 96px); color: #fff; text-shadow: 5px 5px 0 #000; }
.kzc-dice__result.is-win { color: var(--win); } .kzc-dice__result.is-lose { color: var(--lose); }
.kzc-dice__bar { position: relative; height: 34px; background: var(--lose); border: 3px solid #000; margin-top: 30px; }
.kzc-dice__zone { position: absolute; top: 0; bottom: 0; background: var(--win); }
.kzc-dice__bar input { position: absolute; inset: -4px 0; width: 100%; height: 42px; opacity: 0; cursor: ew-resize; margin: 0; }
.kzc-dice__pin { position: absolute; top: -40px; width: 0; transition: left .5s cubic-bezier(.2,.9,.3,1.1); pointer-events: none; }
.kzc-dice__pin span { position: absolute; left: 50%; transform: translateX(-50%); padding: 4px 8px; background: #fff; color: #000; font-family: var(--px) !important; font-size: 13px; border: 2px solid #000; white-space: nowrap; }
.kzc-dice__pin span::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
.kzc-dice__ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.kzc-dice__ctrl { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; align-items: end; }
.kzc-dice__ctrl .kzc-btn--dark { grid-column: span 2; }
.kzc-dice__ctrl .kzc-btn--big { grid-column: span 2; }

/* ---------- сундуки ---------- */
.kzc-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kzc-casecard {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px 14px; overflow: hidden;
    background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--cc) 35%, transparent), transparent 70%), var(--panel-2);
    border: 3px solid #000; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 45%, #000), inset 0 -5px 0 rgba(0,0,0,.4); transition: transform .15s;
}
.kzc-casecard:hover { transform: translateY(-4px) rotate(-.5deg); }
.kzc-casecard img { width: 92px; height: 92px; filter: drop-shadow(0 0 16px var(--cc)); animation: kzcBob 2.4s ease-in-out infinite; }
.kzc-casecard b { font-family: var(--px) !important; font-weight: normal; font-size: 17px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzc-casecard span { font-family: var(--px) !important; font-size: 14px; color: var(--gold); }
.kzc-casecard small { color: var(--muted); font-size: 12px; }
.kzc-case__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.kzc-case__head h2 { margin: 0; font-family: var(--px) !important; font-weight: normal; font-size: 24px; text-shadow: 2px 2px 0 #000; }
.kzc-case__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.kzc-case__strips { display: flex; flex-direction: column; gap: 8px; }
.kzc-case__strips .kzc-strip { height: 118px; }
.kzc-case__buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin: 14px 0 20px; }
.kzc-chips--count { margin: 0; }
.kzc-chips--count button { min-width: 48px; min-height: 52px; font-family: var(--px) !important; }
.kzc-case__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kzc-drop {
    flex: 0 0 auto; width: 104px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: linear-gradient(180deg, #1a1524, #110d18); border: 2px solid #000; box-shadow: inset 0 -4px 0 var(--rc, #555); position: relative; padding: 4px;
}
.kzc-drop img { width: 48px; height: 48px; }
.kzc-drop .q { position: absolute; right: 6px; top: 6px; font-family: var(--px) !important; font-size: 13px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzc-drop .t { font-size: 11px; color: #d9d2e4; text-align: center; line-height: 1.15; max-height: 26px; overflow: hidden; }
.kzc-drop .v { font-family: var(--px) !important; font-size: 11px; color: var(--gold); }
.kzc-drop .c { font-size: 11px; color: var(--muted); }
.kzc-case__items .kzc-drop { width: auto; height: auto; padding: 10px 6px 8px; }
.kzc-drop.is-hit { animation: kzcHit 1s ease 2; background: radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--rc) 45%, transparent), #110d18); }
.r-gray { --rc: #8d8d9b; } .r-blue { --rc: #4b8ff0; } .r-purple { --rc: #8f5bd0; } .r-pink { --rc: #d94ad0; } .r-red { --rc: #e8484a; } .r-gold { --rc: #f6d878; }

/* ---------- апгрейдер ---------- */
.kzc-up { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); gap: 16px; }
.kzc-up__col { display: flex; flex-direction: column; min-width: 0; }
.kzc-up__val { margin-left: auto; font-size: 14px; color: var(--gold); }
.kzc-up__money { margin-bottom: 10px; }
.kzc-up__money label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.kzc-up__money input { font-family: var(--px) !important; color: var(--gold) !important; }
.kzc-up__pick, .kzc-up__cat, .kzc-grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; padding: 2px; }
.kzc-it {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; background: #0e0b14; border: 2px solid #000;
    box-shadow: inset 0 0 0 1px #2e2540; text-align: center; min-height: 96px;
}
.kzc-it:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.kzc-it.is-on { background: #2a1a40; box-shadow: inset 0 0 0 2px var(--acc), 0 0 12px rgba(155,106,214,.35); }
.kzc-it img { width: 40px; height: 40px; }
.kzc-it .t { font-size: 11px; line-height: 1.15; color: #d9d2e4; max-height: 26px; overflow: hidden; }
.kzc-it .v { font-family: var(--px) !important; font-size: 11px; color: var(--gold); }
.kzc-it .q { position: absolute; right: 4px; top: 4px; font-family: var(--px) !important; font-size: 12px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzc-it .sel { position: absolute; left: 4px; top: 4px; padding: 0 4px; background: var(--acc); font-family: var(--px) !important; font-size: 11px; color: #fff; }
.kzc-it__step { display: flex; gap: 2px; margin-top: 3px; }
.kzc-it__step button { width: 24px; height: 22px; padding: 0; background: var(--panel-3); border: 1px solid #000; font-size: 13px; line-height: 1; }
.kzc-up__mid { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kzc-gauge { position: relative; width: 250px; height: 250px; }
.kzc-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kzc-gauge__bg { fill: none; stroke: #241d31; stroke-width: 18; }
.kzc-gauge__win { fill: none; stroke: url(#none); stroke: #7ad6a0; stroke-width: 18; stroke-dasharray: 0 528; transition: stroke-dasharray .35s; filter: drop-shadow(0 0 6px rgba(122,214,160,.6)); }
.kzc-gauge__needle { fill: var(--gold); stroke: #000; stroke-width: 2; }
.kzc-gauge__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.kzc-gauge__c b { font-family: var(--px) !important; font-weight: normal; font-size: 40px; color: #fff; text-shadow: 3px 3px 0 #000; }
.kzc-gauge__c span { font-size: 13px; color: var(--muted); }
.kzc-gauge.is-win .kzc-gauge__c b { color: var(--win); } .kzc-gauge.is-lose .kzc-gauge__c b { color: var(--lose); }
.kzc-up__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; width: 100%; }
.kzc-up__slot { height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #0e0b14; border: 2px dashed #3a304b; font-size: 12px; color: var(--muted); text-align: center; padding: 4px; position: relative; }
.kzc-up__slot img { width: 44px; height: 44px; }
.kzc-up__slot b { font-family: var(--px) !important; font-weight: normal; color: var(--gold); font-size: 12px; }
.kzc-up__slot--to { border-color: var(--acc); }
.kzc-up__arrow { font-size: 22px; color: var(--acc-hi); }
.kzc-up__tq { display: grid; grid-template-columns: 1fr 110px; gap: 6px; margin-bottom: 8px; }
.kzc-up__tq label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
#up-mults { justify-content: center; }

/* ---------- окна ---------- */
.kzc-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 90px 14px 30px; background: rgba(5,3,9,.78); overflow: auto; animation: kzcFade .18s; }
@keyframes kzcFade { from { opacity: 0; } }
.kzc-modal__box { position: relative; width: 100%; max-width: 480px; background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--acc-lo), 0 20px 60px rgba(0,0,0,.6); padding: 22px; color: var(--ink); animation: kzcIn .2s; }
.kzc-modal__box--wide { max-width: 860px; }
.kzc-modal__box h2 { margin: 0 0 14px; font-family: var(--px) !important; font-weight: normal; font-size: 22px; text-shadow: 2px 2px 0 #000; }
.kzc-modal__box p { font-size: 14px; line-height: 1.5; color: #d9d2e4; }
.kzc-modal__x { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; background: var(--panel-3); border: 2px solid #000; font-size: 22px; line-height: 1; }
.kzc-cash__bals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kzc-cash__bals div { background: #0e0b14; padding: 10px; box-shadow: inset 0 0 0 1px #2e2540; }
.kzc-cash__bals span { display: block; font-size: 12px; color: var(--muted); }
.kzc-cash__bals b { font-family: var(--px) !important; font-weight: normal; font-size: 18px; color: var(--gold); }
.kzc-tabs2 { display: flex; gap: 4px; margin-bottom: 12px; }
.kzc-tabs2 button { flex: 1; padding: 10px; background: var(--panel-3); border: 2px solid #000; font-size: 14px; color: var(--muted); }
.kzc-tabs2 button.is-on { background: var(--acc-lo); color: #fff; box-shadow: inset 0 0 0 2px var(--acc); }
.kzc-modal .kzc-amount { margin-bottom: 12px; }
.kzc-ledger { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.kzc-ledger li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; background: #0e0b14; }
.kzc-ledger .plus { color: var(--win); } .kzc-ledger .minus { color: var(--lose); }
.kzc-ledger small { color: var(--muted); }
.kzc-chest__act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.kzc-chest__act > div { margin-right: auto; font-size: 14px; color: var(--muted); }
.kzc-chest__act b { color: var(--gold); font-family: var(--px) !important; font-weight: normal; }
.kzc-grid-items { max-height: 50vh; }
.kzc-fair { display: grid; gap: 8px; margin-bottom: 18px; }
.kzc-fair > div:not(.kzc-fair__prev), .kzc-fair__prev > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px; align-items: center; background: #0e0b14; padding: 8px 10px; }
.kzc-fair span { font-size: 13px; color: var(--muted); }
.kzc-fair__prev { display: grid; gap: 6px; }
.kzc-verify { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.kzc-verify__out { grid-column: 1 / -1; background: #0e0b14; padding: 12px; font-size: 14px; min-height: 44px; color: #d9d2e4; }
.kzc-verify__out b { color: var(--gold); font-family: var(--px) !important; font-weight: normal; }
.kzc-rules { margin: 0; padding-left: 18px; font-size: 14px; color: #d9d2e4; line-height: 1.55; }
.kzc-hist { display: flex; flex-direction: column; gap: 4px; max-height: 65vh; overflow: auto; }
.kzc-hist__row { display: grid; grid-template-columns: 110px 1fr 110px 110px; gap: 8px; align-items: center; padding: 7px 10px; background: #0e0b14; font-size: 13px; box-shadow: inset 3px 0 0 var(--lose); cursor: pointer; }
.kzc-hist__row.w { box-shadow: inset 3px 0 0 var(--win); }
.kzc-hist__row .p { font-family: var(--px) !important; text-align: right; }
.kzc-hist__row.w .p { color: var(--win); }
.kzc-hist__row small { color: var(--muted); }
.kzc-hist__det { grid-column: 1 / -1; font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---------- всплывашки ---------- */
.kzc-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 2100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.kzc-toast { padding: 12px 14px; background: #1c1726; border: 2px solid #000; box-shadow: inset 4px 0 0 var(--acc), 0 8px 24px rgba(0,0,0,.5); font-size: 14px; animation: kzcToast .25s; }
.kzc-toast.err { box-shadow: inset 4px 0 0 var(--lose), 0 8px 24px rgba(0,0,0,.5); }
.kzc-toast.ok { box-shadow: inset 4px 0 0 var(--win), 0 8px 24px rgba(0,0,0,.5); }
@keyframes kzcToast { from { transform: translateX(40px); opacity: 0; } }
.kzc-win { position: fixed; inset: 0; z-index: 2050; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.kzc-win__in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 40px; background: radial-gradient(70% 70% at 50% 50%, rgba(246,216,120,.35), rgba(20,14,30,.92)); border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--gold), 0 0 60px rgba(246,216,120,.45); animation: kzcBig .5s cubic-bezier(.2,1.6,.4,1); }
.kzc-win__in img { width: 72px; height: 72px; }
.kzc-win__in img[src=""] { display: none; }
.kzc-win__in b { font-family: var(--px) !important; font-weight: normal; font-size: clamp(28px, 6vw, 46px); color: var(--gold); text-shadow: 3px 3px 0 #000; }
.kzc-win__in span { font-size: 15px; color: #fff; }
@keyframes kzcBig { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
.kzc-confetti { position: fixed; z-index: 2060; width: 8px; height: 8px; pointer-events: none; animation: kzcConf 1.6s ease-out forwards; }
@keyframes kzcConf { to { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0; } }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
    .kzc-main { grid-template-columns: 1fr; }
    .kzc-side-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .kzc-up { grid-template-columns: 1fr 1fr; }
    .kzc-up__mid { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 860px) {
    .kzc-games { grid-template-columns: repeat(3, 1fr); }
    .kzc-duo { grid-template-columns: 1fr; }
    .kzc-duo .kzc-ctrl { order: 2; }
    .kzc-dice__ctrl { grid-template-columns: 1fr 1fr; }
    .kzc-dice__ctrl .kzc-amount { grid-column: 1 / -1; }
    .kzc-wheel__sides { grid-template-columns: 1fr; }
    .kzc-side__list { max-height: 120px; }
    .kzc-hist__row { grid-template-columns: 1fr auto; }
    .kzc-fair > div:not(.kzc-fair__prev), .kzc-fair__prev > div { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .kzc-bar { top: 60px; }
    .kzc-bar__in { padding: 8px 12px; gap: 6px; }
    .kzc-bal { min-width: 0; flex: 1 1 auto; }
    .kzc-bal b { font-size: 17px; }
    .kzc-bar__right { margin-left: 0; width: 100%; }
    .kzc-bar__right .kzc-icon { flex: 1; justify-content: center; }
    .kzc-icon span { font-size: 12px; }
    .kzc-main, .kzc-games { padding: 0 12px; }
    .kzc-panel { padding: 12px; min-height: 0; }
    .kzc-game__t { font-size: 13px; }
    .kzc-game__slot { width: 44px; height: 44px; }
    .kzc-game__slot img { width: 32px; height: 32px; }
    .kzc-side-col { grid-template-columns: 1fr; }
    .kzc-up { grid-template-columns: 1fr; }
    .kzc-crash, .kzc-crash canvas { min-height: 300px; }
    .kzc-crash__note { top: calc(34% + 64px); font-size: 13px; }
    .kzc-card { width: 66px; height: 90px; font-size: 34px; }
    .kzc-strip { height: 108px; }
    .kzc-verify { grid-template-columns: 1fr; }
    .kzc-amount__row { flex-wrap: wrap; }
    .kzc-amount__row input { flex-basis: 100%; }
    .kzc-amount__row button { flex: 1 1 auto; }
    .kzc-gauge { width: 210px; height: 210px; }
    .kzc-case__buy { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .kzc *, .kzc *::before, .kzc *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.kzc-feed li.kzc-empty, .kzc-top li.kzc-empty { display: block; box-shadow: none; background: transparent; }
@media (max-width: 600px) {
    .kzc-bar { position: static; }
    .kzc-bal { flex: 1 1 100%; }
    .kzc-bar__in > .kzc-btn { flex: 1 1 40%; padding: 9px 8px; font-size: 14px; }
}
.kzc-grid-items > .kzc-empty { grid-column: 1 / -1; }

/* ---------- 2026-11-19: без полос прокрутки, свои поля и ползунки, проигрыши ---------- */
.kzc, .kzc * { scrollbar-width: none; -ms-overflow-style: none; }
.kzc *::-webkit-scrollbar { width: 0; height: 0; display: none; }
.kzc-feed { max-height: 330px; padding-bottom: 18px; -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent); }
.kzc-top { max-height: none; }
.kzc-box--lose .kzc-live { background: var(--lose); }
.kzc-feed--lose li { box-shadow: inset 3px 0 0 var(--lose); }
.kzc-feed--lose .p { color: var(--lose); }
.kzc-feed--lose .p small { color: var(--muted); }

/* числа без браузерных стрелок: для этого есть ½, x2, Всё */
.kzc input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.kzc input[type=number]::-webkit-inner-spin-button, .kzc input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.kzc input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.kzc input::placeholder { color: #6d6580; }
.kzc select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px !important;
    background-image: linear-gradient(45deg, transparent 50%, #c9a6f0 50%), linear-gradient(135deg, #c9a6f0 50%, transparent 50%) !important;
    background-position: calc(100% - 17px) 55%, calc(100% - 11px) 55% !important; background-size: 6px 6px !important; background-repeat: no-repeat !important; }

/* пиксельный ползунок (сапёр) */
.kzc .kzc-field input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; cursor: pointer; }
.kzc .kzc-field input[type=range]::-webkit-slider-runnable-track {
    height: 12px; background: linear-gradient(90deg, #9b6ad6 0 var(--fill, 0%), #0e0b14 var(--fill, 0%));
    border: 2px solid #000; box-shadow: inset 0 0 0 1px #3a304b;
}
.kzc .kzc-field input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 24px; margin-top: -8px; background: linear-gradient(180deg, #f6d878, #b88a1c);
    border: 2px solid #000; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.4);
}
.kzc .kzc-field input[type=range]::-moz-range-track { height: 8px; background: #0e0b14; border: 2px solid #000; }
.kzc .kzc-field input[type=range]::-moz-range-progress { height: 8px; background: #9b6ad6; }
.kzc .kzc-field input[type=range]::-moz-range-thumb { width: 18px; height: 22px; border-radius: 0; background: #f6d878; border: 2px solid #000; }
.kzc .kzc-field input[type=range]:disabled { opacity: .5; cursor: not-allowed; }
.kzc-field label b { color: var(--gold); font-family: var(--px) !important; font-weight: normal; }

/* кнопка «Все сундуки» */
.kzc-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 14px; background: var(--panel-3);
    border: 2px solid #000; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.1); color: #d9d2e4; font-size: 14px;
}
.kzc-back span { font-size: 10px; color: var(--acc-hi); }
.kzc-back:hover { background: #30263f; color: #fff; }

/* ---------- 2026-11-19: проигрыши в левой колонке ---------- */
.kzc-main { grid-template-areas: "stage side" "stage lose"; }
.kzc-stagecol { grid-area: stage; min-width: 0; }
.kzc-side-col { grid-area: side; }
.kzc-left-col { grid-area: lose; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1400px) {
    .kzc-bar__in, .kzc-games, .kzc-main { max-width: 1600px; }
    .kzc-main { grid-template-columns: 280px minmax(0, 1fr) 300px; grid-template-areas: "lose stage side"; }
    .kzc-left-col .kzc-feed { max-height: 760px; }
}
@media (max-width: 1180px) {
    .kzc-main { grid-template-areas: "stage" "side" "lose"; }
}

/* ---------- 2026-11-19: реклама рангов доната ---------- */
.kzc-promo { max-width: 1280px; margin: 14px auto 0; padding: 0 16px; }
@media (min-width: 1400px) { .kzc-promo { max-width: 1600px; } }
.kzc-promo__head, .kzc-promo__ranks { background: linear-gradient(90deg, #1d1430, #15111d 60%, #241a12); }
.kzc-promo__head {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 3px solid #000; border-bottom: 0;
    box-shadow: inset 0 0 0 2px #3b2f10;
}
.kzc-promo__head img { width: 40px; height: 40px; flex: 0 0 auto; }
.kzc-promo__head b { display: block; font-family: var(--px) !important; font-weight: normal; font-size: 18px; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.kzc-promo__head .kzc-btn { margin-left: auto; color: #2a1a00 !important; }
.kzc-promo__ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 14px; border: 3px solid #000; border-top: 0; box-shadow: inset 0 0 0 2px #3b2f10; }
.kzc-rank {
    display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none;
    background: #0e0b14; border: 2px solid #000; box-shadow: inset 3px 0 0 var(--rc), inset 0 0 0 1px #2e2540; transition: transform .12s, background .12s;
}
.kzc-rank:hover { transform: translateY(-2px); background: #17111f; box-shadow: inset 3px 0 0 var(--rc), inset 0 0 0 1px var(--rc), 0 0 18px color-mix(in srgb, var(--rc) 30%, transparent); }
.kzc-rank__icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.kzc-rank__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kzc-rank__body b { font-family: var(--px) !important; font-weight: normal; font-size: 15px; color: var(--rc); text-shadow: 2px 2px 0 #000; margin-bottom: 2px; }
.kzc-rank__body span { font-size: 12px; color: #c9c2d6; line-height: 1.35; }
.kzc-rank__price { text-align: right; white-space: nowrap; }
.kzc-rank__price b { display: block; font-family: var(--px) !important; font-weight: normal; font-size: 17px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzc-rank__price small { display: block; font-size: 11px; color: var(--muted); }
@media (max-width: 980px) { .kzc-promo__ranks { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .kzc-promo { padding: 0 12px; }
    .kzc-promo__head { flex-wrap: wrap; }
    .kzc-promo__head .kzc-btn { width: 100%; margin-left: 0; }
}

/* ---------- 2026-11-19: рулетка, 21, утка, монетка ---------- */
.kzc-games { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
@media (max-width: 860px) { .kzc-games { grid-template-columns: repeat(3, 1fr); } }
.kzc-stats--2 { grid-template-columns: 1fr 1fr; }

/* рулетка */
.kzc-rl { display: flex; flex-direction: column; gap: 16px; }
.kzc-rl__top { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: center; }
.kzc-rl__wheel { position: relative; width: 300px; height: 300px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.kzc-rl__wheel svg { width: 100%; height: 100%; }
.kzc-rl__ptr { position: absolute; left: 50%; top: -6px; margin-left: -11px; border: 11px solid transparent; border-top: 20px solid var(--gold); filter: drop-shadow(0 2px 0 #000); z-index: 2; }
.kzc-rl__res { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; display: flex; align-items: center; justify-content: center;
    background: #120d1a; border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--gold-lo); font-family: var(--px) !important; font-size: 34px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzc-rl__res.r { color: #ff6b7d; } .kzc-rl__res.g { color: #7ad6a0; }
.kzc-rl__side { display: flex; flex-direction: column; gap: 12px; }
.kzc-rl__lbl { font-size: 13px; color: var(--muted); }
.kzc-rl__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kzc-rl__chips button, .kzc-rl__chip {
    width: 52px; height: 52px; border-radius: 50% !important; border: 3px dashed rgba(255,255,255,.7); font-family: var(--px) !important; font-size: 13px; color: #fff;
    text-shadow: 1px 1px 0 #000; box-shadow: 0 0 0 3px #000, inset 0 0 0 5px rgba(0,0,0,.25); transition: transform .1s;
}
.kzc-rl__chips button:nth-child(1) { background: #6b7a8f; } .kzc-rl__chips button:nth-child(2) { background: #3f7fd6; }
.kzc-rl__chips button:nth-child(3) { background: #2f9e5a; } .kzc-rl__chips button:nth-child(4) { background: #9b6ad6; } .kzc-rl__chips button:nth-child(5) { background: #c7962a; }
.kzc-rl__chips button.is-on { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), inset 0 0 0 5px rgba(0,0,0,.25); }
.kzc-rl__acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kzc-rl__hist, .kzc-cn__hist { display: flex; flex-wrap: wrap; gap: 4px; }
.kzc-rl__hist b { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-family: var(--px) !important; font-weight: normal; font-size: 13px; border: 2px solid #000; color: #fff; }
.rl-r { background: #c8283e; } .rl-b { background: #241c30; } .rl-g { background: #1f8a4c; }
.kzc-rl__board { display: grid; grid-template-columns: 54px repeat(12, minmax(0, 1fr)) 54px; grid-auto-rows: 52px; gap: 4px; padding: 10px; background: #0f3d26;
    border: 3px solid #000; box-shadow: inset 0 0 0 2px #1d5c3a, inset 0 0 40px rgba(0,0,0,.45); user-select: none; }
.kzc-rl__cell { position: relative; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.35); font-family: var(--px) !important; font-size: 15px; color: #fff;
    text-shadow: 1px 1px 0 #000; cursor: pointer; transition: filter .1s, box-shadow .1s; background: transparent; padding: 0; }
.kzc-rl__cell:hover { filter: brightness(1.3); box-shadow: inset 0 0 0 2px var(--gold); }
.kzc-rl__cell.r { background: #c8283e; } .kzc-rl__cell.b { background: #1e1828; } .kzc-rl__cell.g { background: #1f8a4c; }
.kzc-rl__cell.o { background: rgba(0,0,0,.22); font-size: 12px; }
.kzc-rl__cell.is-hit { animation: kzcHit .8s ease 3; box-shadow: inset 0 0 0 3px var(--gold), 0 0 18px var(--gold); z-index: 2; }
.kzc-rl__cell .chip { position: absolute; right: -6px; top: -8px; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 15px !important; display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: #2a1a00; font-size: 10px; text-shadow: none; border: 2px solid #000; z-index: 3; pointer-events: none; }
.kzc-rl__cell .chip.win { background: var(--win); }

/* 21 очко */
.kzc-bj { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 440px; padding: 22px;
    background: radial-gradient(80% 70% at 50% 50%, #1d6b45, #0e3a25 75%); border: 3px solid #000; box-shadow: inset 0 0 0 3px #6b4a1c, inset 0 0 0 6px #000, inset 0 0 60px rgba(0,0,0,.5); }
.kzc-bj__row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kzc-bj__lbl { font-family: var(--px) !important; font-size: 14px; color: #e8f5ec; text-shadow: 2px 2px 0 #000; }
.kzc-bj__lbl b { margin-left: 6px; padding: 2px 8px; background: #000; color: var(--gold); font-weight: normal; }
.kzc-bj__cards { display: flex; gap: 8px; min-height: 124px; flex-wrap: wrap; justify-content: center; }
.kzc-bj__msg { text-align: center; font-family: var(--px) !important; font-size: 20px; color: #fff; text-shadow: 2px 2px 0 #000; min-height: 28px; }
.kzc-bj__msg.w { color: var(--gold); } .kzc-bj__msg.l { color: #ff8a8a; }
.kzc-bj__acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kzc-pc { position: relative; width: 84px; height: 120px; background: #f6f1e7; border: 3px solid #000; box-shadow: inset 0 0 0 2px #d8cfbe, 4px 6px 0 rgba(0,0,0,.35);
    color: #1a1424; font-family: var(--px) !important; animation: kzcDeal .35s cubic-bezier(.2,1.4,.4,1) both; }
.kzc-pc.red { color: #c8283e; }
.kzc-pc .c1 { position: absolute; left: 6px; top: 4px; font-size: 18px; line-height: 1; text-align: center; }
.kzc-pc .c1 small { display: block; font-size: 15px; }
.kzc-pc .c2 { position: absolute; right: 6px; bottom: 4px; font-size: 18px; line-height: 1; transform: rotate(180deg); text-align: center; }
.kzc-pc .c2 small { display: block; font-size: 15px; }
.kzc-pc .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.kzc-pc.back { background: repeating-linear-gradient(45deg, #3b2357 0 8px, #2a1840 8px 16px); box-shadow: inset 0 0 0 4px #9b6ad6, 4px 6px 0 rgba(0,0,0,.35); color: var(--gold); }
@keyframes kzcDeal { from { transform: translate(120px, -160px) rotate(25deg); opacity: 0; } }

/* утка */
.kzc-dk { display: flex; flex-direction: column; gap: 14px; }
.kzc-dk__road { position: relative; overflow-x: auto; overflow-y: hidden; border: 3px solid #000; background: #2b2b33; scroll-behavior: smooth; }
.kzc-dk__track { display: flex; height: 300px; min-width: max-content; }
.kzc-lane { position: relative; flex: 0 0 104px; height: 100%; background: #3a3a44; border-right: 4px dashed #d8d8d8; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kzc-lane--start, .kzc-lane--end { flex-basis: 118px; background: repeating-linear-gradient(90deg, #8b8b8b 0 16px, #7a7a7a 16px 32px); border-right: 4px solid #555; }
.kzc-lane--end { border-right: 0; border-left: 4px solid #555; }
.kzc-lane__m { position: absolute; top: 46%; padding: 6px 8px; background: rgba(0,0,0,.55); border: 2px solid #000; font-family: var(--px) !important; font-size: 13px; color: #fff; text-shadow: 1px 1px 0 #000; }
.kzc-lane.is-done { background: #2d3a30; }
.kzc-lane.is-done .kzc-lane__m { color: var(--win); }
.kzc-lane.is-next .kzc-lane__m { color: var(--gold); box-shadow: 0 0 0 2px var(--gold); animation: kzcLive 1s infinite; }
.kzc-lane.is-dead { background: #4a2020; }
.kzc-car { position: absolute; left: 50%; width: 58px; height: 92px; margin-left: -29px; top: -110px; border: 3px solid #000; background: var(--cc, #e0485c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); z-index: 3; }
.kzc-car::before { content: ''; position: absolute; left: 7px; right: 7px; top: 14px; height: 20px; background: #9ad8ff; border: 2px solid #000; }
.kzc-car::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 12px; height: 14px; background: #7ab8df; border: 2px solid #000; }
.kzc-car.go { animation: kzcCar var(--t, 1.6s) linear forwards; }
.kzc-car.hit { animation: kzcCarHit .45s ease-in forwards; }
@keyframes kzcCar { to { transform: translateY(440px); } }
@keyframes kzcCarHit { to { transform: translateY(205px); } }
.kzc-duck { position: absolute; bottom: 28px; left: 0; width: 64px; height: 64px; z-index: 4; transition: transform .35s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.kzc-duck svg { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.4)); }
.kzc-duck.hop svg { animation: kzcHop .35s ease; }
.kzc-duck.dead svg { transform: scaleY(.25) translateY(90px); transition: transform .2s; }
@keyframes kzcHop { 50% { transform: translateY(-26px); } }
.kzc-dk__ctrl { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr 1.2fr; gap: 14px; align-items: end; }
.kzc-dk__btns { display: grid; gap: 6px; }

/* монетка */
.kzc-cn { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.kzc-cn__stage { position: relative; width: 210px; height: 250px; perspective: 800px; }
.kzc-cn__coin { position: absolute; left: 15px; top: 20px; width: 180px; height: 180px; transform-style: preserve-3d; }
.kzc-cn__face { position: absolute; inset: 0; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; font-size: 96px; backface-visibility: hidden;
    border: 6px solid #000; box-shadow: inset 0 0 0 8px rgba(255,255,255,.25), inset 0 -10px 0 rgba(0,0,0,.25); text-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.kzc-cn__face--spade { background: radial-gradient(circle at 35% 30%, #f9e7a5, #e2b445 55%, #a77a12); color: #2a1840; }
.kzc-cn__face--heart { background: radial-gradient(circle at 35% 30%, #f9e7a5, #e2b445 55%, #a77a12); color: #c8283e; transform: rotateY(180deg); }
.kzc-cn__shadow { position: absolute; left: 45px; bottom: 6px; width: 120px; height: 18px; border-radius: 50% !important; background: rgba(0,0,0,.5); filter: blur(4px); }
.kzc-cn__res { font-family: var(--px) !important; font-size: 24px; color: #fff; text-shadow: 2px 2px 0 #000; min-height: 30px; }
.kzc-cn__res.w { color: var(--win); } .kzc-cn__res.l { color: var(--lose); }
.kzc-cn__ctrl { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.kzc-cn__ctrl .kzc-btn--big { grid-column: 1 / -1; }
.kzc-cn__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kzc-cn__side { display: flex; flex-direction: column; align-items: center; padding: 6px; background: var(--panel-3); border: 2px solid #000; font-size: 13px; color: #d9d2e4; }
.kzc-cn__side span { font-size: 26px; line-height: 1; }
.kzc-cn__side--heart span { color: #ff6b7d; }
.kzc-cn__side.is-on { background: var(--acc-lo); box-shadow: inset 0 0 0 2px var(--acc); color: #fff; }
.kzc-cn__hist b { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 2px solid #000; font-size: 16px; background: #0e0b14; }
.kzc-cn__hist b.h { color: #ff6b7d; } .kzc-cn__hist b.s { color: #c9a6f0; } .kzc-cn__hist b.w { box-shadow: inset 0 -3px 0 var(--win); } .kzc-cn__hist b.l { box-shadow: inset 0 -3px 0 var(--lose); }

@media (max-width: 1000px) {
    .kzc-rl__top { grid-template-columns: 1fr; }
    .kzc-dk__ctrl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .kzc-rl__board { grid-template-columns: 36px repeat(12, minmax(0, 1fr)) 36px; grid-auto-rows: 42px; gap: 2px; padding: 6px; overflow-x: auto; }
    .kzc-rl__board { min-width: 0; }
    .kzc-rl__cell { font-size: 11px; }
    .kzc-rl__cell.o { font-size: 9px; }
    .kzc-rl__cell .chip { min-width: 22px; height: 22px; font-size: 8px; right: -4px; top: -6px; }
    .kzc-rl__wheel { width: 250px; height: 250px; }
    .kzc-pc { width: 64px; height: 92px; }
    .kzc-pc .mid { font-size: 30px; }
    .kzc-bj { min-height: 360px; padding: 12px; }
    .kzc-dk__ctrl, .kzc-cn__ctrl { grid-template-columns: 1fr; }
}
/* 10 игр: ровно 5 + 5, на широком экране в одну строку */
.kzc-games { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 1400px) { .kzc-games { grid-template-columns: repeat(10, 1fr); } }
@media (max-width: 860px) { .kzc-games { grid-template-columns: repeat(3, 1fr); } }
.kzc-dk__ctrl { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }


#kzc-pin {
    box-sizing:border-box; width:min(430px,calc(100vw - 28px)); max-height:calc(100dvh - 28px);
    overflow:auto; padding:clamp(22px,4vw,32px); margin:auto; border:1px solid #524358;
    border-radius:18px; background:linear-gradient(150deg,#241c2b,#17141c 56%);
    color:#f6f1f8; box-shadow:0 24px 90px #08060cc2;
    font:15px/1.45 system-ui,sans-serif; text-align:left; color-scheme:dark;
}
#kzc-pin::backdrop {background:#100c17ac;backdrop-filter:blur(4px)}
#kzc-pin h2 {font:700 clamp(23px,5vw,28px)/1.2 system-ui,sans-serif;letter-spacing:-.035em;margin:0}
#kzc-pin .kzc-pin__head {display:flex;align-items:center;gap:12px;margin-bottom:12px}
#kzc-pin .kzc-pin__head img {width:36px;height:36px;image-rendering:pixelated}
#kzc-pin-intro {margin:0 0 18px;color:#c8becd}
#kzc-pin .kzc-pin__field {display:block;margin:12px 0 6px;font-size:14px;font-weight:600}
#kzc-pin input[type=password] {width:100%;box-sizing:border-box;height:42px;padding:8px 12px;border:1px solid #55495d;border-radius:8px;background:#120f16;color:#fff;font:18px system-ui;letter-spacing:.2em}
#kzc-pin input:focus-visible {outline:2px solid #bc99db;outline-offset:2px}
#kzc-pin ul {margin:18px 0 13px;padding:12px 14px;list-style:none;background:#ffffff08;border:1px solid #ffffff12;border-radius:8px;color:#d6cddb;font-size:13px}
#kzc-pin li+li {margin-top:6px}
#kzc-pin a {color:#dbbcea;text-underline-offset:3px}
#kzc-pin .kzc-pin__accept {display:flex;align-items:flex-start;gap:10px;font-size:14px;cursor:pointer}
#kzc-pin #kzc-pin-accept {appearance:auto;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;padding:0;margin:2px 0 0;accent-color:#c69be4;cursor:pointer}
#kzc-pin .kzc-pin__actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-top:22px}
#kzc-pin #kzc-pin-submit {border:1px solid #eac777;border-radius:8px;background:#edcd85;color:#261c0b;box-shadow:none;padding:10px 17px;min-height:42px;font:650 14px system-ui;text-shadow:none}
#kzc-pin #kzc-pin-submit:hover {background:#f4da9d}
#kzc-pin .kzc-pin__actions a {font-size:14px}
#kzc-pin-error {color:#ffadad;margin:12px 0 0}

.kzc-fair__prev[hidden] { display: none; }
.kzc-fair code { min-width: 0; overflow-wrap: anywhere; }
