:root {
    --bg-dark: #09090e;
    --bg-panel: rgba(24, 24, 27, 0.65);
    --bg-panel-strong: rgba(15, 15, 20, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(169, 112, 255, 0.5);
    --primary-color: #a970ff;
    --primary-glow: rgba(169, 112, 255, 0.4);
    --secondary-color: #772ce8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Inter", sans-serif; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #18181b 0%, var(--bg-dark) 70%);
    color: var(--text-main);
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh; overflow-x: hidden;
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 4, 8, 0.95); z-index: 1000; justify-content: center; align-items: center;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.neon-card {
    background: var(--bg-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle); border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); transition: all 0.3s ease; position: relative; overflow: hidden;
}

.setup-box { padding: 40px; width: 500px; text-align: center; display: flex; flex-direction: column; gap: 20px; }
.modal-title { font-size: 24px; font-weight: 800; color: var(--primary-color); text-shadow: 0 0 15px var(--primary-glow); margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 10px;}

.brand-symbol {
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 9px rgba(169,112,255,.24));
}
.brand-symbol-header { width: 26px; height: 26px; }
.brand-symbol-modal { width: 26px; height: 26px; }
.brand-symbol-landing { width: 30px; height: 30px; }

.platform-selector { display: flex; gap: 15px; width: 100%; justify-content: center; margin-bottom: 5px; }
.plat-checkbox {
    display: flex; align-items: center; gap: 8px; padding: 12px 20px; flex: 1; justify-content: center;
    background: rgba(0,0,0,0.4); border: 1px solid var(--border-subtle);
    border-radius: 10px; cursor: pointer; transition: 0.3s; font-weight: 700; color: var(--text-muted);
}
.plat-checkbox input { display: none; }
.plat-checkbox.active-twitch { border-color: var(--primary-color); color: #fff; background: rgba(169, 112, 255, 0.1); box-shadow: 0 0 15px var(--primary-glow); }
.plat-checkbox.active-kick { border-color: #53fc18; color: #fff; background: rgba(83, 252, 24, 0.1); box-shadow: 0 0 15px rgba(83, 252, 24, 0.3); }

.input-group { width: 100%; }
.modern-input {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    padding: 14px 16px; color: var(--text-main); font-size: 15px; outline: none; transition: all 0.3s ease; width: 100%;
}
.modern-input:focus { border-color: var(--primary-color); box-shadow: 0 0 12px var(--primary-glow); background: rgba(0,0,0,0.6); }

.weights-panel { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; margin-top: 5px;}
.weights-title { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; display: flex; align-items: center; gap: 8px; justify-content: center;}
.weights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.weight-input { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.weight-input label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.weight-input input { text-align: center; font-weight: 800;  padding: 10px;}

.cache-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cache-status { color: var(--text-muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; transition: 0.3s; }
.cache-status-saved { color: #6ee7b7; text-shadow: 0 0 12px rgba(16, 185, 129, 0.35); }
.cache-reset-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); color: var(--text-muted); border-radius: 8px; padding: 8px 10px; font-size: 11px; font-weight: 800; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; }
.cache-reset-btn:hover { color: #fff; border-color: var(--primary-color); box-shadow: 0 0 12px var(--primary-glow); }

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff; border: none; border-radius: 10px; padding: 16px 24px;  font-weight: 800; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px var(--primary-glow); display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%;
}
.btn-gradient-primary:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(169, 112, 255, 0.6); filter: brightness(1.1); }
.btn-gradient-primary:disabled { background: #333; color: #777; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-outline {
    background: transparent; color: var(--text-main); border: 1px solid var(--border-subtle); padding: 14px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.05); transform: translateY(-3px); box-shadow: 0 4px 15px rgba(255,255,255,0.1); border-color: #fff;}

#app-container { display: none; flex-direction: column; flex: 1; width: 100%; }

#main-header { width: 100%; border-bottom: 1px solid var(--border-subtle); background: rgba(9, 9, 14, 0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100;}
.header-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1200px; margin: 0 auto; padding: 15px 20px; position: relative; }
.header-left { display: flex; align-items: center; gap: 12px; justify-self: start; }
.header-title-center { justify-self: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.header-home-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; border-radius: 8px; transition: transform .18s ease, filter .18s ease; }
.header-home-link:hover { transform: translateY(-1px); filter: brightness(1.12); }
.header-home-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 5px; }
.header-title-center h1 { font-size: 24px; display: flex; align-items: center; gap: 0; letter-spacing: 0.2px; line-height: 1; text-transform: none; }
.header-title-center .brand-name { font-weight: 900; color: #ffffff; text-shadow: 0 0 16px var(--primary-glow); }
.header-title-center .bold-text { font-weight: 900; color: #ffffff; }
.header-title-center .light-text { font-weight: 300; color: var(--text-muted); }

.brand-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    line-height: 1;
}
.brand-logo-strong {
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.35px;
    text-shadow: 0 0 16px var(--primary-glow);
}
.brand-logo-light {
    font-weight: 300;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.25px;
    text-shadow: none;
}
.header-title-center .brand-logo-text {
    font-size: inherit;
}
.modal-title .brand-logo-text {
    font-size: inherit;
}
.header-right { justify-self: end; }

.user-profile-pill { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); padding: 5px 20px 5px 5px; border-radius: 50px; transition: 0.3s ease;}
.user-profile-pill:hover { border-color: var(--primary-color); box-shadow: 0 0 12px var(--primary-glow); }
.avatar-ring { background: linear-gradient(45deg, #00d2ff, var(--primary-color)); padding: 2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.avatar-ring img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #0e0e10; border: 2px solid #0e0e10; }
#channel-greeting { font-size: 13px; color: var(--text-muted); }
#channel-greeting strong { color: #ffffff; font-weight: 700; }

.main-container { max-width: 1200px; width: 100%; margin: 30px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }

.dashboard-card { padding: 25px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.gradient-top-line { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--secondary-color), var(--primary-color)); opacity: 0.8; }

.controls-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px; flex-wrap: wrap;}
.status-tags { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; align-items: center;}

.badge-modern { padding: 10px 18px; border-radius: 12px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; border: 1px solid; background: rgba(0,0,0,0.4); text-transform: uppercase; letter-spacing: 0.5px;}
.badge-modern i { font-size: 14px; }
.badge-gray { border-color: rgba(255,255,255,0.1); color: var(--text-muted); }
.badge-purple { border-color: rgba(169, 112, 255, 0.3); color: #d8b4fe; border-left: 3px solid var(--primary-color);}
.badge-blue { border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; border-left: 3px solid #3b82f6;}
.badge-green { border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; border-left: 3px solid #10b981;}
.badge-value { color: #fff; font-weight: 900; font-size: 15px;}

#command-badge {
    background: linear-gradient(135deg, rgba(169,112,255,0.22), rgba(90,42,170,0.18));
    border-color: rgba(169, 112, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(169,112,255,0.18), 0 0 18px rgba(169,112,255,0.18);
}
#command-badge #command-badge-label {
    color: #f2d7ff;
    font-weight: 900;
}
#command-badge .badge-value {
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
#command-badge i {
    color: #f0abfc;
}

.spin-btn-main { width: auto; min-width: 250px; padding: 18px 30px; font-size: 18px; }

.participants-section { display: flex; flex-direction: column; }
.grid-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid var(--border-subtle); }
.grid-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px;}

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px; padding: 25px; max-height: 50vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(169, 112, 255, 0.3) transparent;}
.grid-container::-webkit-scrollbar { width: 6px; }
.grid-container::-webkit-scrollbar-track { background: transparent; }
.grid-container::-webkit-scrollbar-thumb { background-color: rgba(169, 112, 255, 0.3); border-radius: 4px; }
.grid-container::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.empty-state { grid-column: 1 / -1; color: var(--text-muted); padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; font-size: 14px; font-weight: 600;}

#countdownNumber { font-size: 200px; font-weight: 900; color: var(--primary-color); text-shadow: 0 0 80px var(--primary-glow); }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 40% { transform: scale(1.1); opacity: 1; } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

.roulette-container-full { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; }
.neon-card-strong { background: var(--bg-panel-strong); backdrop-filter: blur(20px); border: 1px solid var(--border-hover); border-radius: 16px; box-shadow: 0 0 30px var(--primary-glow); }

.roulette-window { width: 100%; height: 260px; position: relative; overflow: hidden; display: flex; align-items: center; border-left: none; border-right: none; border-radius: 0; border-top: 1px solid var(--primary-color); border-bottom: 1px solid var(--primary-color);}
.roulette-track { display: flex; position: relative; left: 50%; height: 100%; align-items: center; }

.roulette-card { width: 186px; height: 210px; margin: 0 8px; flex-shrink: 0; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; transition: 0.3s; position: relative;}
.roulette-card img { width: 100px; height: 100px; border-radius: 20px; object-fit: cover; border: 2px solid transparent; }
.roulette-card .r-name {  font-weight: 800; color: var(--text-muted); }

.roulette-card .plat-icon { position: absolute; top: 10px; right: 10px; font-size: 14px; background: var(--bg-dark); border: 1px solid var(--border-subtle); width: 28px; height: 28px; display: flex; justify-content: center; align-items: center; border-radius: 50%; z-index: 5; }

.winner-card-highlight.plat-twitch { background: rgba(169, 112, 255, 0.1); border-color: #a970ff; box-shadow: 0 0 20px rgba(169, 112, 255, 0.6); transform: scale(1.05); }
.winner-card-highlight.plat-twitch img { border-color: #a970ff; }
.winner-card-highlight.plat-twitch .r-name { color: #fff; }

.winner-card-highlight.plat-kick { background: rgba(83, 252, 24, 0.1); border-color: #53fc18; box-shadow: 0 0 20px rgba(83, 252, 24, 0.6); transform: scale(1.05); }
.winner-card-highlight.plat-kick img { border-color: #53fc18; }
.winner-card-highlight.plat-kick .r-name { color: #fff; }

.roulette-marker-top, .roulette-marker-bottom { position: absolute; left: 50%; transform: translateX(-50%); width: 4px; height: 40px; background: #10b981; z-index: 10; box-shadow: 0 0 15px rgba(16, 185, 129, 0.6); border-radius: 4px;}
.roulette-marker-top { top: 0; }
.roulette-marker-bottom { bottom: 0; }
.roulette-fade-left, .roulette-fade-right { position: absolute; top: 0; bottom: 0; width: 300px; z-index: 5; pointer-events: none; }
.roulette-fade-left { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.roulette-fade-right { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.roulette-result-panel { display: none; flex-direction: column; align-items: center; gap: 10px; padding: 26px 34px; width: min(92vw, 680px); max-width: 680px; background: rgba(15, 15, 20, 0.8);}
.roulette-winner-name { width: 100%; max-width: 100%; font-size: clamp(24px, 4vw, 44px); font-weight: 900; color: var(--text-main); text-transform: uppercase; text-shadow: 0 0 25px var(--primary-glow); margin-bottom: 0; text-align: center; line-height: 1; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: visible; white-space: nowrap;}
.winner-platform-icon { flex: 0 0 auto; font-size: clamp(22px, 2.6vw, 30px); line-height: 1; }
.winner-name-text { min-width: 0; max-width: calc(100% - 42px); white-space: nowrap; overflow: visible; text-overflow: clip; word-break: normal; overflow-wrap: normal; hyphens: none; }
.roulette-stats-grid { display: flex; gap: 12px; width: 100%; justify-content: center; }
.stat-box { background: rgba(0,0,0,0.4); border: 1px solid var(--border-subtle); padding: 10px 20px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; min-width: 130px;}
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 800;}
.stat-value { font-size: 20px; font-weight: 900; color: var(--primary-color); }

.chat-timer-box { margin-top: 6px; border: 1px dashed #f43f5e; background: rgba(244, 63, 94, 0.05); padding: 12px 22px; border-radius: 12px; width: 100%; display: flex; flex-direction: column; align-items: center;}
.chat-timer-label { font-size: 12px; font-weight: 700; color: #f43f5e; text-transform: uppercase; margin-bottom: 4px; text-align: center; line-height: 1.3;}
.chat-timer-value { font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 0 15px rgba(244, 63, 94, 0.6); line-height: 1;}
.timer-success { border-color: #10b981; background: rgba(16, 185, 129, 0.05); }
.timer-success .chat-timer-label { color: #10b981; }
.timer-success .chat-timer-value { color: #10b981; text-shadow: 0 0 15px rgba(16, 185, 129, 0.6); font-size: 26px;}

.roulette-result-actions { width: 100%; margin-top: 8px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.roulette-result-actions button { flex: 1 1 185px; min-width: 0; padding: 14px 18px; }
#btnRepick, #btnForceConfirm, #btnDrawAnother, #btnConfirmWinner { display: none; }
.btn-repick { color: #f43f5e; border-color: rgba(244, 63, 94, 0.4); }
.btn-repick:hover:not(:disabled) { border-color: #f43f5e; color: #fff; box-shadow: 0 0 18px rgba(244, 63, 94, 0.35); }
.btn-force-confirm { color: #10b981; border-color: rgba(16, 185, 129, 0.45); }
.btn-force-confirm:hover:not(:disabled) { border-color: #10b981; color: #fff; box-shadow: 0 0 18px rgba(16, 185, 129, 0.35); }
.btn-draw-another { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.45); }
.btn-draw-another:hover:not(:disabled) { border-color: #a78bfa; color: #fff; box-shadow: 0 0 18px rgba(167, 139, 250, 0.32); }

.volume-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    z-index: 2000;
}
.volume-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12, 13, 20, 0.94);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.volume-btn:hover,
.volume-control.open .volume-btn {
    border-color: rgba(168,85,247,.65);
    color: var(--primary-color);
    background: rgba(139,92,246,.10);
    box-shadow: 0 0 18px rgba(139,92,246,.20), 0 4px 18px rgba(0,0,0,.5);
}
.volume-btn:active { transform: scale(.96); }
.volume-btn.muted { border-color: rgba(239,68,68,.55); color: #ef4444; }
.volume-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 176px;
    padding: 12px 13px 13px;
    border-radius: 14px;
    background: rgba(12, 13, 20, 0.97);
    border: 1px solid rgba(168,85,247,.30);
    box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 22px rgba(139,92,246,.10);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(7px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.volume-control.open .volume-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.volume-popover::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: -6px;
    width: 11px;
    height: 11px;
    background: rgba(12, 13, 20, 0.97);
    border-right: 1px solid rgba(168,85,247,.30);
    border-bottom: 1px solid rgba(168,85,247,.30);
    transform: rotate(45deg);
}
.volume-popover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.volume-popover-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.volume-popover-label i { color: var(--primary-color); }
.volume-slider {
    width: 100%;
    height: 5px;
    display: block;
    accent-color: var(--primary-color);
    cursor: pointer;
}
.volume-value {
    min-width: 34px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
    user-select: none;
}
@media (max-width: 640px) {
    .volume-control { bottom: 12px; right: 12px; width: 44px; height: 44px; }
    .volume-btn { width: 44px; height: 44px; font-size: 16px; }
    .volume-popover { width: 164px; right: 0; }
}

footer { width: 100%; text-align: center; padding: 25px; margin-top: auto; }
.footer-content { color: var(--text-muted); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-name-link { color: #fff; text-decoration: none; font-weight: 800; transition: 0.3s; }
.footer-name-link:hover { color: var(--primary-color); text-shadow: 0 0 12px var(--primary-glow); }
.footer-privacy-link { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 700; transition: 0.3s; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(169,112,255,0.18); background: rgba(169,112,255,0.04); }
.footer-privacy-link:hover { color: #fff; border-color: rgba(169,112,255,0.55); background: rgba(169,112,255,0.09); }
.footer-support-btn { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 800; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(83, 252, 24, 0.25); background: rgba(83, 252, 24, 0.06); }
.footer-support-btn:hover { color: #fff; border-color: #53fc18; box-shadow: 0 0 14px rgba(83, 252, 24, 0.25); transform: translateY(-1px); }

@media (max-width: 640px) {
    .setup-box { width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 26px 18px; }
    .platform-selector, .weights-grid, .cache-row { grid-template-columns: 1fr; flex-direction: column; }
    .weights-grid { display: grid; grid-template-columns: 1fr; }
    .cache-row { align-items: stretch; }
    .cache-reset-btn { width: 100%; }
    .header-container { display: flex; flex-direction: column; gap: 12px; padding: 15px 12px; }
    .header-left { order: 1; }
    .header-title-center { order: 2; }
    .header-title-center h1 { font-size: 22px; }
    .header-right { order: 3; width: 100%; display: flex; justify-content: center; }
    .main-container { margin: 18px auto; padding: 0 12px; }
    .controls-bar > div[style*="display: flex"] { flex-direction: column; }
    .spin-btn-main, #reset-btn { width: 100%; min-width: 0; }
    .roulette-window { height: 220px; }
    .roulette-card { width: 150px; height: 180px; }
    .roulette-card img { width: 80px; height: 80px; }
    .roulette-result-panel { max-width: calc(100vw - 24px); padding: 24px 18px; }
    .roulette-winner-name { font-size: clamp(22px, 8vw, 34px); flex-wrap: nowrap; }
    .roulette-stats-grid { flex-direction: column; }
    #countdownNumber { font-size: 140px; }
}

.raffle-mode-panel {
    width: 100%;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(169, 112, 255, 0.18);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
}
.mode-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.mode-help {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}
.twitch-subs-auth-box {
    width: 100%;
    background: rgba(169, 112, 255, 0.08);
    border: 1px solid rgba(169, 112, 255, 0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.auth-copy strong {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-copy span,
.auth-status {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}
.auth-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.btn-auth-twitch {
    flex: 1;
    border-color: rgba(169, 112, 255, 0.45);
    color: #d8b4fe;
}

.btn-auth-twitch.auth-connected,
.btn-auth-twitch.auth-connected:disabled {
    border-color: rgba(16, 185, 129, 0.7);
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
    opacity: 1;
    cursor: default;
}
.btn-auth-twitch.auth-connected i {
    color: #34d399;
}
.auth-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}
.auth-status-ok {
    color: #6ee7b7;
}
.subs-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 35px 20px;
    font-weight: 700;
}
.subs-loading i {
    color: var(--primary-color);
    margin-right: 8px;
}

@media (max-width: 640px) {
    .auth-actions { flex-direction: column; }
}

body {
    background-image:
        radial-gradient(circle at 18% 12%, rgba(169, 112, 255, 0.12), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(16, 185, 129, 0.08), transparent 25%),
        linear-gradient(180deg, #09090e 0%, #07070b 100%);
}

.setup-clean {
    width: min(560px, calc(100vw - 28px));
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(24, 24, 31, 0.92), rgba(12, 12, 18, 0.92));
    border-color: rgba(255,255,255,0.08);
}

.setup-clean::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(169,112,255,0.18), transparent 32%, rgba(83,252,24,0.07));
    opacity: .65;
}

.setup-clean > * { position: relative; z-index: 1; }

.modal-title {
    color: #fff;
    text-shadow: none;
    letter-spacing: .5px;
}

.modal-title i { color: var(--primary-color); }

.raffle-mode-panel,
.weights-panel,
.twitch-subs-auth-box {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.setup-subs-mode .weights-grid {
    grid-template-columns: repeat(3, 1fr);
}

.setup-subs-mode .weights-panel {
    border-color: rgba(169,112,255,0.22);
    background: rgba(169,112,255,0.055);
}

.setup-subs-mode #twitch-subs-auth-box {
    background: linear-gradient(135deg, rgba(169,112,255,0.14), rgba(169,112,255,0.04));
    border-color: rgba(169,112,255,0.28);
}

.setup-subs-mode .cache-row {
    justify-content: center;
}

.glass-header {
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.dashboard-card,
.participants-section {
    border-radius: 22px;
    background: rgba(17, 17, 24, 0.72);
    border-color: rgba(255,255,255,0.07);
}

.status-tags {
    justify-content: center;
}

.badge-modern {
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
}

#command-badge[style*="none"] {
    display: none !important;
}

.grid-container {
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
}

.weight-tier-only label::before {
    content: "★";
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 10px;
}

@media (max-width: 640px) {
    .setup-clean { padding: 26px 18px; }
    .setup-subs-mode .weights-grid { grid-template-columns: 1fr; }
}

.setup-clean {
    width: min(760px, calc(100vw - 28px));
    gap: 18px;
}

.setup-intro {
    margin-top: -8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

#raffle-mode {
    display: none;
}

.mode-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.mode-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 122px;
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
    overflow: hidden;
}

.mode-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 0%, rgba(169,112,255,0.16), transparent 42%);
    opacity: 0;
    transition: opacity .25s ease;
}

.mode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(169,112,255,0.35);
    background: rgba(169,112,255,0.055);
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.mode-card.active {
    border-color: rgba(169,112,255,0.75);
    background: linear-gradient(135deg, rgba(169,112,255,0.16), rgba(255,255,255,0.035));
    box-shadow: 0 0 0 1px rgba(169,112,255,0.16), 0 18px 42px rgba(169,112,255,0.12);
}

.mode-card.active::before {
    opacity: 1;
}

.mode-card-icon,
.mode-card-content,
.mode-card-check {
    position: relative;
    z-index: 1;
}

.mode-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(0,0,0,0.34);
    border: 1px solid rgba(255,255,255,0.08);
}

.mode-chat-icon { color: #d8b4fe; }
.mode-subs-icon { color: #fcd34d; }

.mode-card-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mode-card-content strong {
    color: #fff;

    font-weight: 900;
    letter-spacing: .2px;
}

.mode-card-content small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.mode-card-check {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    color: transparent;
    background: rgba(0,0,0,0.25);
    transition: .25s ease;
}

.mode-card.active .mode-card-check {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 16px var(--primary-glow);
}

.mode-help-center {
    margin: -4px 0 0;
    text-align: center;
}

.setup-subs-mode .mode-card.active {
    border-color: rgba(252,211,77,0.55);
    background: linear-gradient(135deg, rgba(169,112,255,0.13), rgba(252,211,77,0.06));
}

.setup-subs-mode .mode-card.active .mode-card-check {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245,158,11,0.28);
}

@media (max-width: 760px) {
    .mode-card-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        min-height: 108px;
    }
}

.setup-chat-mode .setup-clean {
    gap: 13px;
    padding: 26px 28px;
}

.setup-chat-mode .setup-intro {
    margin-top: -10px;
    margin-bottom: -4px;
}

.setup-chat-mode .mode-card-grid {
    gap: 10px;
}

.setup-chat-mode .mode-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 18px;
}

.setup-chat-mode .mode-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
}

.setup-chat-mode .mode-card-content {
    gap: 5px;
}

.setup-chat-mode .mode-card-content strong {
    font-size: 15px;
}

.setup-chat-mode .mode-card-content small {
    font-size: 11px;
    line-height: 1.35;
}

.setup-chat-mode .mode-help-center {
    margin: -6px 0 -2px;
    font-size: 11px;
}

.setup-chat-mode .platform-selector {
    gap: 10px;
    margin-bottom: 0;
}

.setup-chat-mode .plat-checkbox {
    padding: 10px 14px;
    border-radius: 12px;
}

.setup-chat-mode .modern-input {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.setup-chat-mode .weights-panel {
    margin-top: 0;
    padding: 14px;
    border-radius: 16px;
}

.setup-chat-mode .weights-title {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: .8px;
}

.setup-chat-mode .weights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.setup-chat-mode .weight-input {
    gap: 5px;
}

.setup-chat-mode .weight-input label {
    font-size: 11px;
    line-height: 1.25;
    min-height: 28px;
    display: flex;
    align-items: flex-end;
}

.setup-chat-mode .weight-input input {
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 10px;
}

.setup-chat-mode .cache-row {
    margin-top: 11px;
}

.setup-chat-mode .cache-status {
    font-size: 11px;
}

.setup-chat-mode .cache-reset-btn {
    padding: 7px 9px;
    font-size: 10px;
}

.setup-chat-mode .btn-gradient-primary {
    padding: 14px 20px;
    border-radius: 12px;
}

.setup-kick-only .weights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-twitch-only .weights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-both-platforms .weights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .setup-chat-mode .setup-clean {
        padding: 22px 16px;
        gap: 12px;
    }

    .setup-chat-mode .weights-grid,
    .setup-twitch-only .weights-grid,
    .setup-kick-only .weights-grid,
    .setup-both-platforms .weights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .setup-chat-mode .mode-card {
        min-height: 92px;
    }
}

@media (max-width: 480px) {
    .setup-chat-mode .weights-grid,
    .setup-twitch-only .weights-grid,
    .setup-kick-only .weights-grid,
    .setup-both-platforms .weights-grid {
        grid-template-columns: 1fr;
    }

    .setup-chat-mode .weight-input label {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .roulette-result-actions button { flex-basis: 100%; }
    .footer-content { gap: 8px; }
}

@media (max-width: 720px) {
    .roulette-result-panel { width: 94vw; padding: 22px 18px; }
    .winner-name-text { max-width: calc(100% - 36px); }
    .winner-platform-icon { font-size: 22px; }
}

.setup-help-btn {
    align-self: flex-end;
    margin-bottom: -8px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .25s ease;
    text-transform: uppercase;
    letter-spacing: .45px;
}
.setup-help-btn:hover {
    color: #fff;
    border-color: rgba(169,112,255,.45);
    box-shadow: 0 0 14px rgba(169,112,255,.18);
    transform: translateY(-1px);
}
.howto-overlay { z-index: 2200; padding: 16px; }
.howto-box {
    width: min(560px, calc(100vw - 30px));
    padding: 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(24, 24, 31, 0.96), rgba(12, 12, 18, 0.96));
}
.howto-box h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.howto-box h2 i { color: var(--primary-color); }
.howto-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: .25s ease;
}
.howto-close-btn:hover { color: #fff; border-color: var(--primary-color); }
.howto-content { display: grid; gap: 10px; }
.howto-step {
    padding: 13px 14px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    text-align: left;
}
.howto-step strong {
    display: block;
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
}
.howto-step span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.confirmation-panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(190px, .8fr) 1.2fr;
    gap: 12px;
    align-items: stretch;
}
.confirmation-field,
.auto-confirm-toggle {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    border-radius: 16px;
    padding: 12px;
}
.confirmation-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.confirmation-field label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.confirmation-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}
.confirmation-input-wrap input {
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 900;
}
.confirmation-input-wrap span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.confirmation-disabled { opacity: .48; }
.auto-confirm-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: .25s ease;
}
.auto-confirm-toggle:hover {
    border-color: rgba(16,185,129,0.42);
    background: rgba(16,185,129,0.045);
}
.auto-confirm-toggle input { display: none; }
.toggle-ui {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(0,0,0,0.28);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}
.auto-confirm-toggle input:checked + .toggle-ui {
    background: rgba(16,185,129,0.18);
    border-color: rgba(16,185,129,0.62);
    color: #6ee7b7;
    box-shadow: 0 0 16px rgba(16,185,129,0.18);
}
.auto-confirm-toggle strong {
    color: #fff;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}
.auto-confirm-toggle small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
    display: block;
}

.winners-history-card {
    padding: 10px 16px;
    border-radius: 18px;
    background: rgba(17,17,24,0.52);
    border-color: rgba(255,255,255,0.055);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.history-head {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .75px;
    white-space: nowrap;
}
.history-head i { color: rgba(169,112,255,0.85); }
.history-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
}
.history-empty {
    color: rgba(148,163,184,.72);
    font-size: 12px;
    font-weight: 700;
}
.history-winner-item {
    min-width: 0;
    max-width: 260px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}
.history-winner-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,0.08);
}
.history-winner-name {
    min-width: 0;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}
.history-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}
.history-platform-twitch { color: #a970ff; }
.history-platform-kick { color: #53fc18; font-weight: 950; }

.history-clear-btn {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.075);
    background: rgba(255,255,255,0.035);
    color: rgba(148,163,184,.88);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .35px;
    cursor: pointer;
    transition: all .2s ease;
}
.history-clear-btn:hover:not(:disabled) {
    border-color: rgba(244,63,94,0.45);
    color: #fb7185;
    background: rgba(244,63,94,0.08);
    transform: translateY(-1px);
}
.history-clear-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .confirmation-panel { grid-template-columns: 1fr; }
    .winners-history-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .history-head { justify-content: flex-start; }
    .history-list {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: center;
    }
    .history-clear-btn { grid-column: 2; grid-row: 1; }
    .history-winner-item { max-width: 100%; width: min(100%, 360px); }
    .history-winner-name { max-width: 100%; flex: 1; }
}

.landing-screen {
    position: fixed;
    inset: 0;
    z-index: 980;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(169,112,255,0.18), transparent 34%),
        radial-gradient(circle at 85% 80%, rgba(16,185,129,0.08), transparent 28%),
        rgba(4,4,8,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-shell {
    width: min(880px, calc(100vw - 32px));
    padding: 32px 36px 26px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(24,24,31,0.94), rgba(10,10,15,0.94));
    overflow: visible;
    transform: translateY(-7px);
}

.landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(169,112,255,0.16), transparent 45%, rgba(83,252,24,0.06));
}

.landing-shell > * {
    position: relative;
    z-index: 1;
}

.howto-float-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}

.howto-float-btn:hover {
    color: #fff;
    border-color: rgba(169,112,255,0.45);
    box-shadow: 0 0 16px rgba(169,112,255,0.18);
    transform: translateY(-1px);
}

.landing-hero-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(169,112,255,0.055);
    border: 1px solid rgba(169,112,255,0.16);
    color: var(--primary-color);
    font-size: 26px;
    box-shadow: 0 0 24px rgba(169,112,255,0.10);
}

.landing-brand {
    font-size: clamp(38px, 7vw, 72px);
    line-height: .95;
    margin-bottom: 11px;
}

.landing-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 20px;

    line-height: 1.6;
    font-weight: 600;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.landing-feature-card {
    min-height: 126px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.landing-feature-card i {
    color: var(--primary-color);
    font-size: 24px;
}

.landing-feature-card strong {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.landing-feature-card span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.landing-start-btn {
    width: min(420px, 100%);
    margin: 0 auto;
}


/* ================================================================
   HOME — TOP 5 DA COMUNIDADE | LAYOUT APROVADO V3.1.5
   ================================================================ */
.community-v2{
  position:absolute;
  z-index:25;
  left:50%;
  bottom:calc(var(--sortix-footer-h) + 10px);
  transform:translateX(-50%);
  width:min(var(--sortix-content-width),calc(100vw - 48px));
  pointer-events:auto;
}
.community-v2-shell{
  position:relative;
  display:grid;
  grid-template-columns:235px minmax(0,1fr);
  align-items:center;
  gap:14px;
  min-height:72px;
  padding:7px 8px 7px 0;
  border-top:1px solid rgba(255,255,255,.075);
  border-bottom:1px solid rgba(255,255,255,.04);
  background:linear-gradient(90deg,rgba(9,12,18,.10),rgba(12,15,23,.64) 18%,rgba(12,15,23,.64) 82%,rgba(9,12,18,.10));
}
.community-v2-shell:before{
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  width:88px;
  height:1px;
  background:linear-gradient(90deg,var(--sortix-accent),transparent);
}
.community-v2-intro{
  min-width:0;
  padding:1px 18px 1px 4px;
  border-right:1px solid rgba(255,255,255,.065);
}
.community-v2-kicker{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:6px;
  color:var(--sortix-accent-text);
  font-size:8px;
  font-weight:950;
  letter-spacing:.82px;
  text-transform:uppercase;
}
.community-v2-kicker i{font-size:9px;color:#ffd56b}
.community-v2-intro>strong{
  display:block;
  color:#f7f8fb;
  font-size:13px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.15px;
}
.community-v2-disclosure{
  display:block;
  margin-top:5px;
  color:#7f8798;
  font-size:7px;
  line-height:1.25;
  font-weight:700;
}
.community-v2-marquee{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:2px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 3.5%,#000 96.5%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 3.5%,#000 96.5%,transparent);
}
.community-v2-track{
  display:flex;
  width:max-content;
  animation:communityV2Loop 28s linear infinite;
  will-change:transform;
}
.community-v2-marquee:hover .community-v2-track,
.community-v2-marquee:focus-within .community-v2-track{animation-play-state:paused}
.community-v2-group{display:flex;align-items:center;gap:8px;padding-right:8px}
.community-v2-card{
  position:relative;
  width:202px;
  height:54px;
  flex:0 0 202px;
  display:grid;
  grid-template-columns:27px 38px minmax(0,1fr) 22px;
  align-items:center;
  gap:8px;
  padding:7px 8px;
  border:1px solid rgba(255,255,255,.068);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(18,22,32,.78),rgba(10,13,20,.72));
  color:inherit;
  text-decoration:none;
  transition:.18s ease;
  overflow:hidden;
}
.community-v2-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,rgba(var(--sortix-accent-rgb),.045),transparent 44%);
}
a.community-v2-card:hover,a.community-v2-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(var(--sortix-accent-rgb),.34);
  background:linear-gradient(180deg,rgba(22,27,39,.90),rgba(12,16,24,.88));
  outline:none;
}
.community-v2-rank{
  position:relative;
  z-index:1;
  color:#697286;
  font-size:10px;
  font-weight:950;
  letter-spacing:-.2px;
  text-align:center;
}
.community-v2-avatar{
  position:relative;
  z-index:1;
  width:38px;
  height:38px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--sortix-accent-rgb),.26);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(var(--sortix-accent-rgb),.20),rgba(255,255,255,.035));
  color:#fff;
  font-size:10px;
  font-weight:950;
}
.community-v2-avatar-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}
.community-v2-avatar-real{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:11px;
}
.community-v2-copy{
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.community-v2-copy strong{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f7f8fb;
  font-size:11px;
  line-height:1;
  font-weight:900;
}
.community-v2-copy small{
  display:flex;
  align-items:center;
  gap:5px;
  color:#737d91;
  font-size:8px;
  font-weight:800;
}
.community-v2-copy small i{font-size:8px;color:#9d70ff}
.community-v2-copy small.platform-kick i{color:#53fc18}
.community-v2-copy small.platform-youtube i{color:#ff4d5f}
.community-v2-copy small.platform-instagram i{color:#f472b6}
.community-v2-open{
  position:relative;
  z-index:1;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#5e687b;
  font-size:8px;
  transition:.18s ease;
}
a.community-v2-card:hover .community-v2-open,
a.community-v2-card:focus-visible .community-v2-open{
  color:var(--sortix-accent-text);
  background:rgba(var(--sortix-accent-rgb),.08);
}
.community-v2-card.rank-one{
  border-color:rgba(255,211,107,.17);
  background:linear-gradient(180deg,rgba(45,38,20,.20),rgba(12,15,21,.76));
}
.community-v2-card.rank-one .community-v2-rank{color:#ffd56b}
.community-v2-card.rank-one .community-v2-avatar{border-color:rgba(255,211,107,.28);background:linear-gradient(145deg,rgba(255,211,107,.15),rgba(255,255,255,.025))}
.community-v2-card.rank-two .community-v2-rank{color:#cfd6e3}
.community-v2-card.rank-three .community-v2-rank{color:#d99b73}
@keyframes communityV2Loop{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media (prefers-reduced-motion:reduce){
  .community-v2-track{animation:none!important;transform:none!important;will-change:auto!important}
  .community-v2-marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
}
@media(max-width:980px){
  .community-v2{width:calc(100vw - 24px)}
  .community-v2-shell{grid-template-columns:180px minmax(0,1fr)}
  .community-v2-intro>strong{font-size:11.5px}
  .community-v2-card{width:188px;flex-basis:188px}
}
@media(max-width:760px){
  .community-v2-shell{grid-template-columns:1fr;padding-left:6px}
  .community-v2-intro{display:none}
  .community-v2-card{width:178px;flex-basis:178px;height:50px;grid-template-columns:24px 34px minmax(0,1fr) 20px;gap:6px}
  .community-v2-avatar{width:34px;height:34px;border-radius:10px}
  .community-v2-avatar-real{border-radius:9px}
}
@media(max-height:720px) and (min-width:761px){.community-v2{display:none!important}}

@media (max-width: 760px) {
    .landing-shell {
        padding: 38px 20px 26px;
        transform: none;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
    .howto-float-btn {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 7px 10px;
    }
}

@media (hover: none) {

}

.gift-bonus-panel {
    margin-top: 14px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(169, 112, 255, 0.04));
    border-radius: 16px;
    padding: 12px;
}
.gift-bonus-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}
.gift-bonus-toggle input { display: none; }
.gift-bonus-toggle strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.gift-bonus-toggle small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
}
.gift-toggle-icon {
    color: #fbbf24;
}
.gift-bonus-toggle input:checked + .gift-toggle-icon {
    border-color: rgba(251, 191, 36, 0.65);
    background: rgba(251, 191, 36, 0.16);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.2);
}
.gift-bonus-extra-field {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr minmax(90px, 120px);
    gap: 10px;
    align-items: center;
    transition: opacity .2s ease;
}
.gift-bonus-extra-field label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.gift-bonus-extra-field input {
    padding: 9px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
}
.gift-bonus-disabled {
    opacity: .48;
}

@media (max-width: 640px) {
    .gift-bonus-extra-field { grid-template-columns: 1fr; }
}

.setup-subs-mode .setup-clean {
    padding: 26px 28px;
    gap: 12px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(169,112,255,0.55) rgba(255,255,255,0.04);
}

.setup-subs-mode .setup-intro {
    margin-top: -6px;
    margin-bottom: -2px;
    font-size: 13px;
}

.setup-subs-mode .mode-card-grid {
    gap: 12px;
}

.setup-subs-mode .mode-card {
    min-height: 98px;
    padding: 16px;
}

.setup-subs-mode #twitch-subs-auth-box {
    padding: 13px 16px;
    gap: 10px;
}

.setup-subs-mode .auth-copy {
    gap: 3px;
}

.setup-subs-mode .auth-actions {
    gap: 8px;
}

.setup-subs-mode .btn-auth-twitch,
.setup-subs-mode #twitch-subs-logout-btn {
    padding-top: 11px;
    padding-bottom: 11px;
}

.setup-subs-mode .confirmation-panel {
    gap: 10px;
}

.setup-subs-mode .confirmation-field,
.setup-subs-mode .auto-confirm-toggle {
    padding: 10px 12px;
    border-radius: 14px;
}

.setup-subs-mode .toggle-ui {
    width: 38px;
    height: 38px;
    min-width: 38px;
}

.setup-subs-mode .weights-panel {
    padding: 14px 20px;
    border-radius: 16px;
}

.setup-subs-mode .weights-title {
    margin-bottom: 10px;
    font-size: 13px;
}

.setup-subs-mode .weights-grid {
    gap: 12px;
}

.setup-subs-mode .weight-input {
    gap: 5px;
}

.setup-subs-mode .weight-input label {
    font-size: 11px;
}

.setup-subs-mode .weight-input input {
    padding: 9px 10px;
    font-size: 15px;
    border-radius: 10px;
}

.setup-subs-mode .gift-bonus-panel {
    width: 100%;
    margin: 10px 0 0;
    padding: 8px 14px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 14px;
}

.setup-subs-mode .gift-bonus-toggle {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-subs-mode .gift-bonus-toggle .toggle-ui,
.setup-subs-mode .gift-toggle-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
}

.setup-subs-mode .gift-bonus-toggle strong {
    display: block;
    font-size: 12px;
    line-height: 1.05;
    margin: 0;
}

.setup-subs-mode .gift-bonus-toggle small {
    display: block;
    font-size: 9.5px;
    line-height: 1.08;
    margin: 2px 0 0;
    max-width: 390px;
}

.setup-subs-mode .gift-bonus-extra-field {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.setup-subs-mode .gift-bonus-extra-field label {
    width: 92px;
    max-width: 92px;
    font-size: 9px;
    line-height: 1.05;
    letter-spacing: .35px;
    text-align: right;
    white-space: normal;
}

.setup-subs-mode .gift-bonus-extra-field input {
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 34px;
    padding: 6px;
    border-radius: 9px;
    font-size: 13px;
}

.setup-subs-mode .gift-bonus-disabled {
    opacity: .44;
}

.setup-subs-mode .cache-row {
    margin-top: 11px;
    gap: 10px;
}

.setup-subs-mode .cache-status {
    font-size: 11px;
}

.setup-subs-mode .cache-reset-btn {
    padding: 7px 10px;
    font-size: 10px;
}

.setup-subs-mode .btn-gradient-primary {
    padding: 14px 20px;
    border-radius: 12px;
}

@media (max-width: 760px) {
    .setup-subs-mode .setup-clean {
        padding: 22px 16px;
        gap: 11px;
    }

    .setup-subs-mode .gift-bonus-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 9px 12px;
    }

    .setup-subs-mode .gift-bonus-extra-field {
        width: 100%;
        justify-content: space-between;
    }

    .setup-subs-mode .gift-bonus-extra-field label {
        width: auto;
        max-width: none;
        text-align: left;
        white-space: nowrap;
    }

    .setup-subs-mode .gift-bonus-extra-field input {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
    }
}

@media (max-height: 790px) and (min-width: 761px) {
    .setup-subs-mode .modal-title {
        font-size: 22px;
        margin-bottom: 0;
    }

    .setup-subs-mode .setup-clean {
        padding: 22px 28px;
        gap: 10px;
    }

    .setup-subs-mode .mode-help-center {
        margin: -4px 0;
        font-size: 12px;
    }

    .setup-subs-mode .weights-panel {
        padding: 12px 18px;
    }

    .setup-subs-mode .gift-bonus-panel {
        margin-top: 10px;
        padding: 9px 12px;
    }
}

.btn-refresh-subs {
    width: 62px;
    min-width: 62px;
    height: 58px;
    border: 1px solid rgba(169, 112, 255, 0.55);
    border-radius: 12px;
    background: rgba(169, 112, 255, 0.12);
    color: #d8b4fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.btn-refresh-subs:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #a970ff;
    background: rgba(169, 112, 255, 0.22);
    box-shadow: 0 8px 22px rgba(169, 112, 255, 0.28);
}

.btn-refresh-subs:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-refresh-subs.is-loading {
    color: #fff;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.16);
}

.btn-refresh-subs.is-success {
    color: #34d399;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.16);
}

@media (max-width: 760px) {
    .raffle-control-row {
        gap: 10px !important;
    }

    .btn-refresh-subs {
        width: 54px;
        min-width: 54px;
        height: 54px;
    }
}

@media (max-width: 560px) {
    .raffle-control-row {
        flex-wrap: wrap;
    }

    .raffle-control-row #reset-btn {
        flex: 1 1 100%;
    }

    .raffle-control-row #draw-btn {
        min-width: 0;
    }
}

.system-dialog-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(3, 4, 10, 0.72);
    backdrop-filter: blur(8px);
    z-index: 10020;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.system-dialog-overlay.is-open { opacity: 1; }
.system-dialog-card {
    width: min(100%, 540px);
    border-radius: 22px;
    border: 1px solid rgba(169, 112, 255, 0.28);
    background: linear-gradient(180deg, rgba(13, 15, 29, 0.98), rgba(10, 11, 22, 0.96));
    box-shadow: 0 28px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
    padding: 22px 22px 18px;
    transform: translateY(10px) scale(.98);
    transition: transform 0.18s ease;
}
.system-dialog-overlay.is-open .system-dialog-card { transform: translateY(0) scale(1); }
.system-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.system-dialog-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.system-dialog-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d8b4fe;
    background: rgba(169, 112, 255, 0.16);
    border: 1px solid rgba(169, 112, 255, 0.35);
    box-shadow: 0 0 18px rgba(169,112,255,.16);
    font-size: 17px;
}
.system-dialog-card.is-confirm .system-dialog-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 18px rgba(251,191,36,.14);
}
.system-dialog-head h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: #fff;
}
.system-dialog-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}
.system-dialog-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.system-dialog-message {
    color: #d7d9e6;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
    word-break: break-word;
}
.system-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.system-dialog-actions .btn-outline,
.system-dialog-actions .btn-gradient-primary {
    min-width: 132px;
    min-height: 48px;
    padding: 12px 18px;
}
.system-dialog-btn-cancel {
    background: rgba(255,255,255,0.03);
}
.system-dialog-btn-confirm i { margin-right: 8px; }
@media (max-width: 560px) {
    .system-dialog-overlay { padding: 14px; }
    .system-dialog-card { padding: 18px 16px 16px; border-radius: 18px; }
    .system-dialog-head h3 { font-size: 21px; }
    .system-dialog-actions { flex-direction: column-reverse; }
    .system-dialog-actions .btn-outline,
    .system-dialog-actions .btn-gradient-primary { width: 100%; min-width: 0; }
}

body.setup-subs-mode #gift-bonus-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 205px;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    margin-top: 8px;
    padding: 8px 12px;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-toggle {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-copy {
    min-width: 0;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-copy strong {
    margin: 0;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-copy small {
    max-width: none;
    margin-top: 2px;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-extra-field {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    align-items: center;
    gap: 10px;
    align-self: center;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-extra-field label {
    width: auto;
    max-width: none;
    margin: 0;
    text-align: right;
    line-height: 1.05;
}

body.setup-subs-mode #gift-bonus-panel .gift-bonus-extra-field input {
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 34px;
    margin: 0;
}

@media (max-width: 760px) {
    body.setup-subs-mode #gift-bonus-panel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.setup-subs-mode #gift-bonus-panel .gift-bonus-extra-field {
        grid-template-columns: 1fr 84px;
    }

    body.setup-subs-mode #gift-bonus-panel .gift-bonus-extra-field label {
        text-align: left;
    }

    body.setup-subs-mode #gift-bonus-panel .gift-bonus-extra-field input {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
    }
}

.custom-raffle-entry {
    display: flex;
    justify-content: center;
    margin: -2px 0 8px;
}

.custom-raffle-link {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 9px;
    transition: .2s ease;
}

.custom-raffle-link i { margin-right: 6px; color: #c084fc; }
.custom-raffle-link:hover {
    color: #fff;
    background: rgba(169,112,255,.09);
}

.custom-raffle-overlay {
    z-index: 10010;
    opacity: 0;
    transition: opacity .16s ease;
}
.custom-raffle-overlay.is-open { opacity: 1; }

.custom-raffle-box {
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border-radius: 22px;
    transform: translateY(8px) scale(.99);
    transition: transform .16s ease;
}
.custom-raffle-overlay.is-open .custom-raffle-box { transform: translateY(0) scale(1); }

.custom-raffle-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.custom-raffle-header h2 {
    margin: 0 0 5px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.custom-raffle-header h2 i { color: #c084fc; }
.custom-raffle-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}
.custom-raffle-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    color: var(--text-muted);
    cursor: pointer;
}
.custom-raffle-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.custom-raffle-column-labels,
.custom-raffle-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 110px 38px;
    gap: 10px;
    align-items: center;
}
.custom-raffle-column-labels {
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.custom-raffle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    max-height: 390px;
    padding-right: 4px;
}
.custom-raffle-row .modern-input {
    height: 42px;
    padding: 9px 12px;
}
.custom-avatar-preview-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(169,112,255,.45), rgba(236,72,153,.26));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 5px 16px rgba(0,0,0,.18);
}
.custom-avatar-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
}
.custom-chances-input { text-align: center; font-weight: 900; }
.custom-remove-row {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(244,63,94,.2);
    background: rgba(244,63,94,.06);
    color: #fb7185;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.custom-remove-row:hover { background: rgba(244,63,94,.14); border-color: rgba(244,63,94,.45); }

.custom-raffle-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 2px;
}
.custom-add-btn {
    border: 1px solid rgba(169,112,255,.32);
    background: rgba(169,112,255,.08);
    color: #d8b4fe;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.custom-add-btn:hover { background: rgba(169,112,255,.15); }
.custom-raffle-totals {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}
.custom-raffle-totals span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}
.custom-raffle-totals i { color: #c084fc; }
.custom-raffle-actions {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}
.custom-raffle-actions button { min-height: 48px; }

.roulette-card.plat-custom {
    border-color: rgba(192,132,252,.42);
    background: linear-gradient(180deg, rgba(192,132,252,.08), rgba(255,255,255,.02));
}
.roulette-card.plat-custom.winner-card-highlight,
.winner-card-highlight.plat-custom {
    border-color: #c084fc;
    box-shadow: 0 0 20px rgba(192,132,252,.5);
}
.history-platform-custom { color: #c084fc; }

@media (max-width: 620px) {
    .custom-raffle-box { padding: 17px 14px; }
    .custom-raffle-column-labels { display: none; }
    .custom-raffle-row { grid-template-columns: 42px minmax(0, 1fr) 80px 38px; }
    .custom-raffle-toolbar { align-items: stretch; flex-direction: column; }
    .custom-raffle-totals { justify-content: space-between; }
    .custom-raffle-totals span { flex: 1; justify-content: center; }
    .custom-raffle-actions { grid-template-columns: 1fr; }
}

.roulette-card { position: relative; }

.stat-box-winning-ticket {
    border-color: rgba(251, 191, 36, .18);
    background: rgba(251, 191, 36, .035);
}
.stat-box-winning-ticket .stat-value { color: #fbbf24; }

.ticket-audit-result-btn {
    width: 100%;
    min-height: 40px;
    margin-top: -2px;
    border: 1px solid rgba(169,112,255,.28);
    border-radius: 10px;
    background: rgba(169,112,255,.07);
    color: #d8b4fe;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s ease;
}
.ticket-audit-result-btn:hover:not(:disabled) {
    border-color: rgba(169,112,255,.65);
    background: rgba(169,112,255,.13);
}
.ticket-audit-result-btn:disabled { opacity: .45; cursor: not-allowed; }

.ticket-audit-main-btn {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 12px;
    border: 1px solid rgba(169,112,255,.34);
    background: rgba(169,112,255,.08);
    color: #d8b4fe;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .35px;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: .2s ease;
}
.ticket-audit-main-btn:hover {
    border-color: #a970ff;
    background: rgba(169,112,255,.15);
}

.ticket-audit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3,4,10,.82);
    backdrop-filter: blur(10px);
}
.ticket-audit-modal {
    width: min(920px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15,16,30,.99), rgba(8,9,18,.98));
    border: 1px solid rgba(169,112,255,.26);
    box-shadow: 0 26px 80px rgba(0,0,0,.55);
}
.ticket-audit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.ticket-audit-kicker {
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.ticket-audit-header h2 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 25px;
}
.ticket-audit-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}
.ticket-audit-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #cbd5e1;
    cursor: pointer;
}
.ticket-audit-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.ticket-audit-summary-card {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
}
.ticket-audit-summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
}
.ticket-audit-summary-card strong {
    display: block;
    color: #fff;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-audit-summary-card.is-winner {
    border-color: rgba(251,191,36,.35);
    background: rgba(251,191,36,.06);
}
.ticket-audit-summary-card.is-winner strong { color: #fbbf24; }
.ticket-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #9ca3af;
    font-size: 10px;
}
.ticket-audit-meta i { color: #a970ff; margin-right: 4px; }
.ticket-audit-search {
    padding: 13px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background: rgba(0,0,0,.16);
}
.ticket-audit-search > label {
    display: block;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}
.ticket-audit-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.ticket-audit-search-row .modern-input { min-width: 0; }
.ticket-audit-search-row .btn-outline { padding: 9px 14px; white-space: nowrap; }
.ticket-audit-search-result {
    min-height: 34px;
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    border: 1px solid rgba(255,255,255,.05);
    background: rgba(255,255,255,.02);
    color: #cbd5e1;
}
.ticket-audit-search-result.is-winner {
    border-color: rgba(251,191,36,.36);
    background: rgba(251,191,36,.08);
    color: #fde68a;
}
.ticket-audit-search-result.is-found {
    border-color: rgba(16,185,129,.25);
    background: rgba(16,185,129,.05);
}
.ticket-audit-search-result.is-error { color: #fda4af; border-color: rgba(244,63,94,.25); }
.ticket-search-number { font-weight: 900; font-size: 13px; }
.ticket-search-owner { font-weight: 700; }
.ticket-search-winner { margin-left: auto; font-size: 9px; font-weight: 900; }
.ticket-audit-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.ticket-audit-list-head strong { display: block; color: #fff; font-size: 12px; }
.ticket-audit-list-head span { display: block; color: var(--text-muted); font-size: 9px; margin-top: 2px; }
.ticket-audit-ranges {
    flex: 1;
    min-height: 110px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ticket-audit-range {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.025);
}
.ticket-audit-range.is-winner-range {
    border-color: rgba(251,191,36,.34);
    background: rgba(251,191,36,.055);
}
.ticket-audit-range-number {
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.ticket-audit-range-owner {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.ticket-audit-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    object-fit: cover;
    background: #18181b;
}
.ticket-audit-owner-copy { min-width: 0; }
.ticket-audit-owner-copy strong {
    display: block;
    color: #f8fafc;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-audit-owner-copy span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 8px;
    margin-top: 2px;
}
.ticket-audit-winner-chip {
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(251,191,36,.28);
    background: rgba(251,191,36,.08);
    color: #fde68a;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}
.ticket-audit-footer-note {
    padding-top: 2px;
    color: #8b93a7;
    font-size: 9px;
    line-height: 1.45;
}
.ticket-audit-footer-note i { color: #a970ff; margin-right: 5px; }

@media (max-width: 720px) {
    .ticket-audit-overlay { padding: 12px; }
    .ticket-audit-modal { max-height: 92vh; padding: 16px; border-radius: 18px; }
    .ticket-audit-summary { grid-template-columns: 1fr; }
    .ticket-audit-range { grid-template-columns: 84px minmax(0,1fr); }
    .ticket-audit-winner-chip { grid-column: 1 / -1; justify-self: start; }
    .ticket-audit-search-row { grid-template-columns: 1fr; }
}

.roulette-card {
    overflow: hidden;
}

.roulette-card .plat-icon {
    z-index: 3;
}

.roulette-card img {
    position: relative;
    z-index: 1;
}

.roulette-card .r-name {
    position: relative;
    z-index: 2;
}

.setup-clean .custom-raffle-entry {
    position: absolute;
    top: 27px;
    left: 30px;
    z-index: 4;
    margin: 0;
    display: block;
}

.setup-clean .custom-raffle-link {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .25s ease;
    letter-spacing: .25px;
    white-space: nowrap;
}

.setup-clean .custom-raffle-link i {
    margin: 0;
    color: #c084fc;
}

.setup-clean .custom-raffle-link:hover {
    color: #fff;
    border-color: rgba(169,112,255,.45);
    background: rgba(169,112,255,.09);
    box-shadow: 0 0 14px rgba(169,112,255,.18);
    transform: translateY(-1px);
}

.roulette-card {
    flex-shrink: 0;
}

@media (max-width: 620px) {
    .setup-clean .custom-raffle-entry {
        top: 24px;
        left: 18px;
    }

    .setup-clean .custom-raffle-link {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .setup-clean .custom-raffle-link span {
        display: none;
    }
}

.setup-clean .setup-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setup-clean .discord-quick-link {
    position: relative;
}

.setup-clean .discord-quick-link i {
    color: #8b9cff;
}

.discord-quick-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 0 2px rgba(9,9,14,.75);
    margin-left: 1px;
}

.discord-quick-link.is-connected .discord-quick-dot {
    background: #10b981;
    box-shadow: 0 0 9px rgba(16,185,129,.55);
}

.discord-overlay {
    z-index: 2450;
    padding: 16px;
    background: rgba(3,4,10,.82);
    backdrop-filter: blur(8px);
}

.discord-modal-box {
    width: min(680px, calc(100vw - 30px));
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(23,23,34,.98), rgba(10,11,18,.98));
}

.discord-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.discord-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b8c0ff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.discord-modal-header h2 {
    margin: 6px 0 5px;
    font-size: 24px;
}

.discord-modal-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.discord-loading,
.discord-disconnected {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    text-align: center;
}

.discord-loading i {
    color: #8b9cff;
    font-size: 24px;
}

.discord-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #dbe1ff;
    background: rgba(88,101,242,.14);
    border: 1px solid rgba(88,101,242,.28);
}

.discord-disconnected strong {
    color: #fff;
    font-size: 18px;
}

.discord-disconnected span {
    max-width: 430px;
    font-size: 11px;
    line-height: 1.55;
}

.discord-connect-btn {
    width: min(320px, 100%);
}

.discord-connected {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.discord-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    border-radius: 14px;
}

.discord-user-card img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.05);
}

.discord-user-card > div {
    min-width: 0;
    flex: 1;
}

.discord-user-card small {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.discord-user-card strong {
    display: block;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-connected-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(16,185,129,.10);
    border: 1px solid rgba(16,185,129,.22);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.discord-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.discord-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.discord-field > span {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.discord-field select {
    width: 100%;
    min-width: 0;
    color: #fff;
    background: rgba(0,0,0,.42);
}

.discord-install-box {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(251,191,36,.24);
    background: rgba(251,191,36,.055);
}

.discord-install-box strong,
.discord-install-box span {
    display: block;
    text-align: left;
}

.discord-install-box strong {
    color: #fde68a;
    font-size: 11px;
    margin-bottom: 3px;
}

.discord-install-box span {
    color: var(--text-muted);
    font-size: 9px;
}

.discord-install-box .btn-outline {
    padding: 9px 12px;
    white-space: nowrap;
    text-decoration: none;
}

.discord-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.discord-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    cursor: pointer;
    text-align: left;
}

.discord-option input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #8b5cf6;
}

.discord-option strong,
.discord-option small {
    display: block;
}

.discord-option strong {
    color: #fff;
    font-size: 11px;
    margin-bottom: 3px;
}

.discord-option small {
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.35;
}

.discord-config-status {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: var(--text-muted);
    font-size: 10px;
}

.discord-config-status.is-success {
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,.18);
    background: rgba(16,185,129,.06);
}

.discord-config-status.is-error {
    color: #fda4af;
    border: 1px solid rgba(244,63,94,.18);
    background: rgba(244,63,94,.06);
}

.discord-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.discord-modal-actions button {
    min-height: 44px;
    padding: 10px 16px;
}

.result-tool-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
}

.result-tool-row > :only-child {
    grid-column: 1 / -1;
}

.discord-result-btn {
    border-color: rgba(88,101,242,.34);
    color: #c9d0ff;
    background: rgba(88,101,242,.07);
}

.discord-result-btn:hover:not(:disabled) {
    border-color: rgba(88,101,242,.65);
    color: #fff;
    background: rgba(88,101,242,.14);
}

.discord-result-btn.is-sent,
.discord-last-draw-btn.is-sent {
    color: #6ee7b7;
    border-color: rgba(16,185,129,.28);
    background: rgba(16,185,129,.07);
}

.discord-last-draw-btn i {
    color: #9aa7ff;
}

@media (max-width: 620px) {
    .setup-clean .setup-quick-actions {
        gap: 6px;
    }

    .setup-clean .discord-quick-link {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .setup-clean .discord-quick-link span:not(.discord-quick-dot) {
        display: none;
    }

    .discord-quick-dot {
        position: absolute;
        right: 1px;
        bottom: 1px;
        margin: 0;
    }

    .discord-form-grid,
    .discord-options,
    .result-tool-row {
        grid-template-columns: 1fr;
    }

    .discord-install-box {
        grid-template-columns: 1fr auto;
    }

    .discord-install-box > div {
        grid-column: 1 / -1;
    }

    .discord-modal-actions {
        flex-direction: column-reverse;
    }

    .discord-modal-actions button {
        width: 100%;
    }
}

.landing-language-switcher {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(5,5,10,0.68);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.language-flag-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    opacity: .62;
    filter: saturate(.82);
    transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.language-flag-svg { width: 23px; height: 16px; display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.38); pointer-events: none; }
.language-flag-btn:hover .language-flag-svg, .language-flag-btn.active .language-flag-svg { box-shadow: 0 1px 5px rgba(0,0,0,.42), 0 0 8px rgba(169,112,255,.18); }

.language-flag-btn:hover {
    opacity: 1;
    filter: saturate(1);
    transform: translateY(-1px) scale(1.06);
    background: rgba(255,255,255,.055);
}

.language-flag-btn.active {
    opacity: 1;
    filter: saturate(1);
    background: rgba(169,112,255,.12);
    border-color: rgba(169,112,255,.42);
    box-shadow: 0 0 13px rgba(169,112,255,.18);
}

.subs-tier-summary {
    white-space: nowrap;
}

.subs-tier-summary b {
    color: #fff;
    font-weight: 900;
}

@media (max-width: 760px) {
    .landing-language-switcher {
        top: 10px;
        gap: 3px;
        padding: 4px 6px;
    }
    .language-flag-btn {
        width: 27px;
        height: 27px;

    }
    .landing-shell {
        padding-top: 58px;
    }
    .subs-tier-summary {
        width: 100%;
        justify-content: center;
    }
}
.subs-tier-summary.has-zero-tier {
    border-color: rgba(245,158,11,.34);
    background: rgba(245,158,11,.07);
}
@media (min-width: 761px) {
    .landing-shell { padding-top: 68px; }
}

.mode-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.mode-card {
    grid-template-columns: 42px minmax(0,1fr) 22px;
    gap: 10px;
    min-height: 94px;
    padding: 13px;
    border-radius: 17px;
}
.mode-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
}
.mode-card-content { gap: 4px; }
.mode-card-content strong { font-size: 14px; }
.mode-card-content small { font-size: 10.5px; line-height: 1.3; }
.mode-card-check { width: 22px; height: 22px; font-size: 10px; }
.mode-comments-icon { color: #fb7185; }
.setup-comments-mode .mode-card.active {
    border-color: rgba(251,113,133,.52);
    background: linear-gradient(135deg, rgba(251,113,133,.12), rgba(169,112,255,.07));
}
.setup-comments-mode #mode-card-comments .mode-card-check {
    background: #e11d48;
    border-color: #e11d48;
    box-shadow: 0 0 14px rgba(225,29,72,.25);
}

.platform-selector {
    gap: 8px;
    margin-bottom: 0;
}
.plat-checkbox {
    padding: 9px 12px;
    min-height: 40px;
    border-radius: 12px;
    font-size: 12px;
}
.plat-checkbox.active-youtube {
    border-color: rgba(255,0,0,.62);
    color: #fff;
    background: rgba(255,0,0,.09);
    box-shadow: 0 0 15px rgba(255,0,0,.15);
}
.plat-checkbox.active-youtube i { color: #ff3b30; }
.plat-checkbox.active-instagram {
    border-color: rgba(236,72,153,.58);
    color: #fff;
    background: rgba(236,72,153,.08);
    box-shadow: 0 0 15px rgba(236,72,153,.13);
}
.plat-checkbox.active-instagram i { color: #f472b6; }

.social-source-group {
    position: relative;
}
.social-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--text-muted);
    pointer-events: none;
}
#group-youtube .social-input-icon { color: #ff4d4d; }
#group-instagram .social-input-icon { color: #f472b6; }
.social-url-input { padding-left: 42px !important; }

.instagram-auth-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(236,72,153,.22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(236,72,153,.08), rgba(139,92,246,.05));
    text-align: left;
}
.instagram-auth-box .auth-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.instagram-auth-box .auth-copy strong { color: #fff; font-size: 12px; }
.instagram-auth-box .auth-copy strong i { color: #f472b6; }
.instagram-auth-box .auth-copy span { color: var(--text-muted); font-size: 10px; line-height: 1.3; }
.instagram-auth-box .auth-actions { display: flex; gap: 6px; align-items: center; }
.btn-auth-instagram { padding: 9px 11px; font-size: 10px; white-space: nowrap; }
.btn-auth-instagram.auth-connected { border-color: rgba(16,185,129,.4); color: #6ee7b7; }
#instagram-auth-status { width: auto; flex: 0 0 auto; font-size: 9px; white-space: nowrap; }

.comments-options-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
}
.comments-source-note {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.3;
    text-align: left;
}
.comments-source-note i { color: #a970ff; }
.comments-unique-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbe3ef;
    font-size: 10px;
    font-weight: 800;
    white-space: normal;
    cursor: pointer;
    min-width: 0;
    max-width: 430px;
}
.comments-unique-copy { display:flex; flex-direction:column; gap:2px; text-align:left; line-height:1.2; }
.comments-unique-copy > span { white-space:nowrap; }
.comments-unique-copy small { color:var(--text-muted); font-size:8.5px; font-weight:650; max-width:330px; }
.comments-unique-toggle input { display: none; }
.toggle-mini {
    width: 30px;
    height: 17px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.1);
    position: relative;
    transition: .2s ease;
}
.toggle-mini::after {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 2px;
    background: #cbd5e1;
    transition: .2s ease;
}
.comments-unique-toggle input:checked + .toggle-mini {
    background: rgba(169,112,255,.3);
    border-color: rgba(169,112,255,.5);
}
.comments-unique-toggle input:checked + .toggle-mini::after {
    left: 15px;
    background: #fff;
}

.setup-comments-mode .setup-clean {
    padding: 24px 28px;
    gap: 11px;
    max-height: calc(100vh - 26px);
    overflow-y: auto;
}
.setup-comments-mode .setup-intro { margin-top: -8px; margin-bottom: -3px; }
.setup-comments-mode .mode-help-center { margin: -5px 0 -1px; font-size: 11px; }
.setup-comments-mode .confirmation-panel,
.setup-comments-mode .weights-panel,
.setup-comments-mode #group-keyword,
.setup-comments-mode #twitch-subs-auth-box { display: none !important; }
.setup-comments-mode #start-btn { padding: 14px 20px; }

#status-tag-youtube.badge-youtube {
    border-color: rgba(255,0,0,.34);
    color: #ff8a80;
    border-left: 3px solid #ff3b30;
    background: rgba(255,0,0,.055);
}
#status-tag-instagram.badge-instagram {
    border-color: rgba(236,72,153,.32);
    color: #f9a8d4;
    border-left: 3px solid #ec4899;
    background: rgba(236,72,153,.05);
}

.roulette-window { position: relative; }
.winner-live-message {
    position: absolute;
    z-index: 20;
    left: 50%;
    top: 12px;
    transform: translateX(-50%) translateY(-6px);
    width: min(440px, calc(100% - 40px));
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16,185,129,.38);
    background: rgba(8,13,18,.92);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.34), 0 0 18px rgba(16,185,129,.12);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
}
.winner-live-message.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.winner-live-message::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(8,13,18,.92);
    border-right: 1px solid rgba(16,185,129,.38);
    border-bottom: 1px solid rgba(16,185,129,.38);
}
.winner-live-message-platform {
    flex: 0 0 auto;
    margin-top: 1px;
}
.winner-live-message-text {
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: left;
}

.winning-comment-box {
    width: 100%;
    padding: 11px 13px;
    border-radius: 13px;
    border: 1px solid rgba(169,112,255,.2);
    background: rgba(169,112,255,.045);
    text-align: left;
}
.winning-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    color: #d8b4fe;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .45px;
}
.winning-comment-head a {
    color: #93c5fd;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 9px;
    white-space: nowrap;
}
.winning-comment-box blockquote {
    margin: 0;
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.45;
    max-height: 84px;
    overflow: auto;
    scrollbar-width: thin;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .mode-card-grid { grid-template-columns: 1fr; }
    .mode-card { min-height: 76px; }
    .platform-selector { flex-wrap: wrap; }
    .plat-checkbox { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
    .instagram-auth-box { flex-wrap: wrap; }
    #instagram-auth-status { width: 100%; white-space: normal; }
    .comments-options-panel { align-items: flex-start; flex-direction: column; }
    .winner-live-message { top: 8px; width: calc(100% - 24px); }
}

.roulette-card.plat-youtube {
    border-color: rgba(255,77,77,.30);
    background: linear-gradient(180deg, rgba(255,77,77,.055), rgba(255,255,255,.018));
}
.roulette-card.plat-youtube.winner-card-highlight,
.winner-card-highlight.plat-youtube {
    border-color: #ff4d4d;
    box-shadow: 0 0 20px rgba(255,77,77,.38);
}
.roulette-card.plat-instagram {
    border-color: rgba(244,114,182,.30);
    background: linear-gradient(180deg, rgba(244,114,182,.055), rgba(255,255,255,.018));
}
.roulette-card.plat-instagram.winner-card-highlight,
.winner-card-highlight.plat-instagram {
    border-color: #f472b6;
    box-shadow: 0 0 20px rgba(244,114,182,.38);
}
.history-platform-youtube { color: #ff7b73; }
.history-platform-instagram { color: #f9a8d4; }

.setup-clean {
    width: min(790px, calc(100vw - 24px));
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px;
    gap: 11px;
    scrollbar-width: thin;
}
.setup-clean .modal-title { margin: 0; }
.setup-clean .setup-intro { margin: -3px 0 0; font-size: 12px; }
.setup-clean .setup-intro p { margin: 0; }
.setup-clean .mode-help-center { margin: -2px 0 0; font-size: 10.5px; line-height: 1.25; }
.setup-clean .setup-quick-actions { margin: -1px 0 0; }

.mode-card-grid { gap: 8px; }
.mode-card {
    min-height: 78px;
    padding: 10px 11px;
    grid-template-columns: 36px minmax(0,1fr) 20px;
    gap: 8px;
}
.mode-card-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
.mode-card-content strong { font-size: 13px; line-height: 1.15; }
.mode-card-content small { font-size: 9.5px; line-height: 1.2; }
.mode-card-check { width: 20px; height: 20px; }

.platform-selector {
    padding: 4px;
    border-radius: 14px;
    background: rgba(0,0,0,.23);
    border: 1px solid rgba(255,255,255,.055);
    gap: 5px;
}
.plat-checkbox {
    min-height: 35px;
    padding: 7px 11px;
    border-radius: 10px;
    flex: 1 1 0;
    justify-content: center;
    border-left-width: 1px !important;
}
.input-group { margin: 0; }
.setup-clean .modern-input { min-height: 42px; }
.setup-clean #group-keyword .modern-input,
.setup-clean #group-twitch .modern-input,
.setup-clean #group-kick .modern-input,
.setup-clean .social-url-input { padding-top: 10px; padding-bottom: 10px; }

.confirmation-panel {
    gap: 8px;
    padding: 0;
}
.confirmation-field,
.auto-confirm-toggle {
    min-height: 66px;
    padding: 10px 12px;
}
.confirmation-field label { margin-bottom: 5px; }

.weights-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(169,112,255,.18);
    border-radius: 13px;
    padding: 9px 12px;
    background: rgba(169,112,255,.035);
    color: var(--text-main);
    cursor: pointer;
    transition: .2s ease;
    text-align: left;
}
.weights-toggle-btn:hover,
.weights-toggle-btn.is-open {
    border-color: rgba(169,112,255,.42);
    background: rgba(169,112,255,.075);
}
.weights-toggle-main { display:flex; align-items:center; gap:9px; min-width:0; }
.weights-toggle-icon {
    width: 31px; height: 31px; flex: 0 0 31px;
    display:grid; place-items:center;
    border-radius:10px;
    color:#c084fc;
    background:rgba(169,112,255,.09);
}
.weights-toggle-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.weights-toggle-copy strong { color:#fff; font-size:11px; font-weight:900; }
.weights-toggle-copy small {
    color:var(--text-muted); font-size:9px; line-height:1.2;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:610px;
}
.weights-toggle-btn > .fa-chevron-down,
.weights-toggle-btn > .fa-chevron-up { color:#94a3b8; font-size:10px; flex:0 0 auto; }

#weights-panel {
    padding: 13px;
    margin-top: -3px;
    border-radius: 13px;
}
#weights-panel .weights-title { font-size: 11px; margin: 0 0 9px; }
#weights-panel .weights-grid { gap: 8px 10px; }
#weights-panel .weight-input label { font-size: 9px; margin-bottom: 4px; }
#weights-panel .weight-input .modern-input { min-height: 36px; height: 36px; padding: 7px 10px; }
#weights-panel .cache-row { margin-top: 9px; padding-top: 8px; }
#weights-panel .gift-bonus-panel { margin-top: 8px; }

.setup-comments-mode .weights-toggle-btn,
.setup-comments-mode #weights-panel { display:none !important; }

.instagram-auth-box { padding: 9px 11px; min-height: 52px; }
.comments-options-panel { padding: 8px 10px; }
#start-btn { padding: 13px 20px; min-height: 46px; }

.howto-box { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 26px); overflow-y:auto; }
.howto-content-updated { grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px; }
.howto-content-updated .howto-step { min-height: 94px; }

@media (max-height: 820px) and (min-width: 641px) {
    .setup-clean { padding: 16px 22px; gap: 7px; }
    .setup-clean .setup-intro { display:none; }
    .mode-card { min-height: 58px; padding: 8px 10px; }
    .mode-card-icon { width:32px; height:32px; }
    .mode-card-content small { display:none; }
    .setup-clean .mode-help-center { font-size:9.5px; }
    .setup-clean .custom-raffle-link { padding-top:5px; padding-bottom:5px; }
    .plat-checkbox { min-height:31px; padding:5px 9px; }
    .setup-clean .modern-input { min-height:37px; }
    .confirmation-field, .auto-confirm-toggle { min-height:56px; padding:7px 10px; }
    .auto-confirm-toggle small { display:none; }
    .weights-toggle-btn { padding:7px 10px; }
    #start-btn { min-height:41px; padding:10px 18px; }
}

@media (max-width: 640px) {
    .setup-clean { width:calc(100vw - 12px); max-height:calc(100vh - 12px); padding:18px 12px; gap:9px; border-radius:18px; }
    .mode-card-grid { grid-template-columns:repeat(3, minmax(0,1fr)); gap:5px; }
    .mode-card { display:flex; flex-direction:column; justify-content:center; min-height:86px; padding:8px 5px; text-align:center; gap:5px; }
    .mode-card-icon { width:30px; height:30px; border-radius:9px; }
    .mode-card-content small { display:none; }
    .mode-card-content strong { font-size:10.5px; }
    .mode-card-check { position:absolute; top:5px; right:5px; width:16px; height:16px; font-size:8px; }
    .setup-clean .setup-intro { display:none; }
    .setup-clean .mode-help-center { font-size:9px; }
    .platform-selector { flex-direction:row; flex-wrap:wrap; }
    .plat-checkbox { min-width:calc(33.333% - 5px); flex:1 1 calc(33.333% - 5px); min-height:34px; font-size:10px; padding:6px 5px; }
    .confirmation-panel { grid-template-columns:1fr; }
    .confirmation-field, .auto-confirm-toggle { min-height:auto; }
    .weights-toggle-copy small { max-width:220px; }
    .howto-content-updated { grid-template-columns:1fr; }
    .howto-content-updated .howto-step { min-height:auto; }
}

.weights-modal-overlay {
    z-index: 3200;
    padding: 18px;
    background: rgba(4, 4, 9, .82);
    backdrop-filter: blur(10px);
}
.weights-modal-box {
    width: min(680px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 32px));
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(24,24,32,.98), rgba(12,12,18,.98));
    border: 1px solid rgba(169,112,255,.24);
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 28px rgba(169,112,255,.09);
    scrollbar-width: thin;
}
.weights-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.weights-modal-header > div { min-width: 0; }
.weights-modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c4b5fd;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.weights-modal-header h2 {
    margin: 5px 0 3px;
    color: #fff;
    font-size: 19px;
    line-height: 1.1;
}
.weights-modal-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}
.weights-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: #cbd5e1;
    cursor: pointer;
}
.weights-modal-close:hover { color:#fff; border-color:rgba(169,112,255,.38); background:rgba(169,112,255,.08); }
.weights-panel-modal {
    display: block !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 15px !important;
    background: rgba(0,0,0,.24) !important;
    border: 1px solid rgba(255,255,255,.06) !important;
}
.weights-panel-modal .weights-title { margin: 0 0 11px; font-size: 11px; }
.weights-panel-modal .weights-grid { gap: 9px 10px; }
.weights-panel-modal .weight-input .modern-input { min-height: 38px; height: 38px; padding: 7px 10px; }
.weights-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.weights-modal-actions .btn-gradient-primary { min-width: 150px; width: auto; padding: 10px 18px; }
.weights-toggle-btn > #weights-toggle-chevron { color:#c4b5fd; font-size:10px; }
.setup-comments-mode .weights-modal-overlay { display:none !important; }

.setup-chat-mode #platform-selector {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
}
.setup-chat-mode #platform-selector .plat-checkbox {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 8px;
    white-space: nowrap;
}
.setup-comments-mode #platform-selector {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.setup-comments-mode #platform-selector .plat-checkbox { min-width:0; width:100%; }
.comments-unique-toggle > span:last-child { white-space: nowrap; }

@media (max-width: 640px) {
    .weights-modal-overlay { padding: 7px; }
    .weights-modal-box { width: calc(100vw - 14px); max-height: calc(100vh - 14px); padding: 14px; border-radius: 17px; }
    .weights-panel-modal .weights-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .weights-modal-actions .btn-gradient-primary { width:100%; }
    .setup-chat-mode #platform-selector { grid-template-columns: repeat(3, minmax(0,1fr)); gap:4px; }
    .setup-chat-mode #platform-selector .plat-checkbox { padding:6px 3px; font-size:9px; gap:4px; }
    .setup-comments-mode #platform-selector { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .comments-options-panel { flex-direction:row; align-items:center; justify-content:space-between; }
    .comments-unique-toggle > span:last-child { font-size:9px; }
}

.comments-unique-toggle > .comments-unique-copy { white-space: normal !important; }
.comments-unique-toggle > .comments-unique-copy > span { white-space: nowrap; }
@media (max-width: 700px) {
    .comments-unique-toggle { align-items:flex-start; width:100%; max-width:none; }
    .comments-unique-copy > span { white-space:normal; }
    .comments-unique-copy small { max-width:none; }
}

.gallery-controls {
    flex-direction: column;
    gap: 14px;
}

.raffle-overview-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 12px;
    align-items: stretch;
}

.raffle-summary-panel,
.current-winner-panel {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    padding: 13px 14px;
}

.raffle-summary-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.current-winner-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, rgba(169,112,255,.06), rgba(255,255,255,.018));
}

.raffle-panel-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(205,211,226,.72);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.raffle-panel-heading i {
    color: rgba(169,112,255,.9);
    font-size: 11px;
}

.winner-panel-heading i {
    color: #fbbf24;
}

.raffle-summary-panel .status-tags {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
}

.raffle-summary-panel .badge-modern {
    min-height: 34px;
    padding: 7px 11px;
    gap: 6px;
    font-size: 10.5px;
    letter-spacing: .35px;
}

.raffle-summary-panel .badge-modern i {
    font-size: 12px;
}

.raffle-summary-panel .badge-value {
    font-size: 12.5px;
}

.current-winner-empty {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(155,164,184,.62);
    font-size: 12px;
    font-weight: 700;
}

.current-winner-empty i {
    color: rgba(169,112,255,.55);
}

.current-winner-panel #last-winner-badge {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 7px 10px;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0;
    box-sizing: border-box;
}

.current-winner-panel #last-winner-avatar {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px;
}

.current-winner-panel #last-winner-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.winner-action-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.winner-action-row .ticket-audit-main-btn {
    min-height: 32px;
    flex: 1 1 130px;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 9px;
    letter-spacing: .25px;
}

.footer-privacy-link.footer-legal-link {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(155,164,184,.62);
    font-size: 11px;
    font-weight: 600;
    box-shadow: none !important;
    opacity: .9;
}

.footer-privacy-link.footer-legal-link:hover {
    color: rgba(235,238,247,.92);
    background: transparent !important;
    border-color: transparent !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .raffle-overview-grid {
        grid-template-columns: 1fr;
    }
    .current-winner-panel {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .raffle-summary-panel,
    .current-winner-panel {
        padding: 12px;
    }
    .raffle-summary-panel .status-tags {
        justify-content: center;
    }
    .winner-action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .winner-action-row .ticket-audit-main-btn {
        flex: 0 0 auto;
        width: 100%;
    }
}

.grid-toolbar {
    gap: 18px;
}

.grid-toolbar-metrics {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-metric {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    color: rgba(180,188,207,.8);
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35px;
    white-space: nowrap;
}

.gallery-metric i {
    font-size: 10px;
}

.gallery-metric strong {
    color: #f5f7fb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.gallery-metric-people {
    border-color: rgba(96,165,250,.25);
    background: rgba(59,130,246,.055);
}

.gallery-metric-people i {
    color: #60a5fa;
}

.gallery-metric-chances {
    border-color: rgba(52,211,153,.25);
    background: rgba(16,185,129,.055);
}

.gallery-metric-chances i {
    color: #34d399;
}

.raffle-summary-panel .status-tags {
    gap: 6px;
}

.raffle-summary-panel .badge-modern {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 9.5px;
}

.raffle-summary-panel .badge-modern i {
    font-size: 10.5px;
}

@media (max-width: 700px) {
    .grid-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .grid-toolbar-metrics {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 440px) {
    .gallery-metric {
        font-size: 8.5px;
        padding: 5px 8px;
    }
    .gallery-metric strong {
        font-size: 10.5px;
    }
}

.winners-history-card {
    display: none !important;
}

.gallery-controls {
    gap: 0;
    padding-top: 14px;
    padding-bottom: 14px;
}

.raffle-overview-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(310px, .82fr);
    gap: 10px;
}

.raffle-summary-panel,
.current-winner-panel {
    padding: 11px 12px;
    border-radius: 14px;
}

.raffle-summary-panel {
    gap: 9px;
    justify-content: flex-start;
}

.current-winner-panel {
    gap: 7px;
    justify-content: flex-start;
}

.raffle-panel-heading {
    font-size: 9px;
    letter-spacing: .72px;
}

.raffle-summary-panel .status-tags {
    gap: 6px;
    min-height: 32px;
    align-content: center;
}

.raffle-summary-panel .badge-modern {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 9.5px;
}

.raffle-summary-panel .badge-value {
    font-size: 11px;
}

.compact-raffle-actions {
    display: grid !important;
    grid-template-columns: minmax(112px, auto) minmax(220px, 1fr) 48px;
    align-items: stretch;
    gap: 8px !important;
    width: 100%;
    margin-top: 0 !important;
}

.compact-raffle-actions #reset-btn,
.compact-raffle-actions #draw-btn,
.compact-raffle-actions #refresh-subs-btn {
    min-height: 42px;
    height: 42px;
    margin: 0;
    border-radius: 10px;
    box-sizing: border-box;
}

.compact-raffle-actions #reset-btn {
    padding: 0 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
}

.compact-raffle-actions #draw-btn {
    padding: 0 16px !important;
    font-size: 14px !important;
    flex: initial !important;
    width: 100%;
}

.compact-raffle-actions #refresh-subs-btn {
    width: 48px;
    min-width: 48px;
    padding: 0 !important;
    font-size: 14px;
}

.current-winner-empty {
    min-height: 34px;
    font-size: 11px;
}

.current-winner-panel #last-winner-badge {
    min-height: 38px;
    padding: 5px 9px;
}

.current-winner-panel #last-winner-avatar {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px;
}

.current-winner-panel #last-winner-name {
    font-size: 12.5px;
}

.winner-action-row {
    gap: 6px;
    flex-wrap: nowrap;
}

.winner-action-row .ticket-audit-main-btn {
    min-height: 29px;
    padding: 5px 7px;
    font-size: 8px;
    flex: 1 1 0;
    white-space: nowrap;
}

.gallery-container .participants-section,
.participants-section {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .raffle-overview-grid {
        grid-template-columns: 1fr;
    }
    .compact-raffle-actions {
        grid-template-columns: minmax(108px, auto) minmax(180px, 1fr) 46px;
    }
}

@media (max-width: 620px) {
    .compact-raffle-actions {
        grid-template-columns: 1fr 44px;
    }
    .compact-raffle-actions #reset-btn {
        grid-column: 1 / -1;
        height: 36px;
        min-height: 36px;
    }
    .compact-raffle-actions #draw-btn {
        height: 42px;
        min-height: 42px;
    }
    .compact-raffle-actions #refresh-subs-btn {
        width: 44px;
        min-width: 44px;
    }
    .winner-action-row {
        flex-direction: row;
        align-items: stretch;
    }
    .winner-action-row .ticket-audit-main-btn {
        width: auto;
        flex: 1 1 0;
    }
}

.main-container {
    gap: 8px;
}

.gallery-controls {
    padding-top: 10px;
    padding-bottom: 10px;
}

.gallery-container .participants-section,
.participants-section {
    margin-top: 0 !important;
}

.current-winner-panel {
    gap: 6px;
}

.current-winner-panel #last-winner-badge.winner-profile-card {
    width: 100%;
    min-height: 58px;
    padding: 7px 10px;
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.current-winner-panel #last-winner-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    flex: 0 0 44px;
    border-radius: 12px !important;
    object-fit: cover;
    border: 1.5px solid currentColor;
    box-shadow: 0 5px 14px rgba(0,0,0,.24);
}

.winner-profile-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.winner-profile-name-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.winner-profile-name-row > i {
    flex: 0 0 auto;
    font-size: 11px;
}

.current-winner-panel #last-winner-name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.15;
    font-weight: 950;
}

.winner-profile-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 750;
    color: rgba(210,216,232,.62);
    white-space: nowrap;
    overflow: hidden;
}

#last-winner-platform {
    flex: 0 0 auto;
    font-weight: 900;
}

#last-winner-time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-meta-separator {
    opacity: .45;
}

.winner-action-row {
    margin-top: 1px;
}

@media (max-width: 980px) {
    .main-container { gap: 7px; }
}

@media (max-width: 620px) {
    .current-winner-panel #last-winner-badge.winner-profile-card {
        min-height: 54px;
        padding: 6px 8px;
    }
    .current-winner-panel #last-winner-avatar {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        flex-basis: 40px;
    }
    .current-winner-panel #last-winner-name { font-size: 12.5px; }
    .winner-profile-meta { font-size: 8.5px; }
}

.current-winner-panel {
    justify-content: center !important;
}

.raffle-summary-panel #command-badge {
    min-height: 36px;
    padding: 7px 12px;
    gap: 8px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(169,112,255,.22), 0 0 22px rgba(169,112,255,.22);
}

.raffle-summary-panel #command-badge i {
    font-size: 12px;
}

.raffle-summary-panel #command-badge #command-badge-label {
    font-size: 10.5px;
    letter-spacing: .55px;
}

.raffle-summary-panel #command-badge .badge-value {
    min-width: 72px;
    padding: 5px 13px;
    font-size: 13.5px;
    line-height: 1;
    letter-spacing: .25px;
    text-align: center;
    background: rgba(255,255,255,.11);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), 0 0 12px rgba(169,112,255,.10);
}

@media (max-width: 620px) {
    .raffle-summary-panel #command-badge {
        min-height: 34px;
        padding: 6px 10px;
    }
    .raffle-summary-panel #command-badge .badge-value {
        min-width: 60px;
        padding: 5px 10px;
        font-size: 12.5px;
    }
}

.footer-seo-guides{display:inline-flex;align-items:center;gap:5px;margin-left:6px;font-size:10px;color:#5f5f72;white-space:nowrap}.footer-seo-guides a{color:#68687b;text-decoration:none;transition:color .18s ease}.footer-seo-guides a:hover{color:#aaaabc}@media(max-width:760px){.footer-seo-guides{display:none}}

@media (max-width: 620px) {
    .custom-avatar-preview-wrap { width:38px; height:38px; border-radius:10px; }
    .custom-avatar-preview { border-radius:7px; }
}

.raffle-style-panel {
    display: none;
    margin: 2px 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(169, 112, 255, .15);
    background: rgba(13, 13, 22, .55);
    border-radius: 14px;
}
body.setup-chat-mode .raffle-style-panel { display: block; }
body.setup-subs-mode .raffle-style-panel,
body.setup-comments-mode .raffle-style-panel { display: none !important; }
.raffle-style-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.raffle-style-heading span { display: inline-flex; align-items: center; gap: 7px; }
.raffle-style-heading i { color: #a970ff; }
.raffle-style-heading small { color: #777b8c; font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.raffle-style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.raffle-style-option {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    color: #d8d9e1;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}
.raffle-style-option:hover { border-color: rgba(169,112,255,.4); background: rgba(169,112,255,.07); }
.raffle-style-option.active { border-color: rgba(169,112,255,.75); background: linear-gradient(135deg, rgba(169,112,255,.16), rgba(83,252,24,.035)); box-shadow: inset 0 0 18px rgba(169,112,255,.06); }
.raffle-style-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(169,112,255,.12); color: #c9a6ff; }
.raffle-style-option strong { display: block; color: #fff; font-size: 12px; }
.raffle-style-option small { display: block; margin-top: 2px; color: #868997; font-size: 9px; line-height: 1.25; }
.raffle-style-check { color: #53fc18; opacity: 0; transform: scale(.6); transition: .2s ease; }
.raffle-style-option.active .raffle-style-check { opacity: 1; transform: scale(1); }

.cards-prep-overlay { background: rgba(7, 7, 12, .985) !important; }
.cards-prep-message {
    width: min(92vw, 760px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-align: center;
    line-height: 1.05;
}
.cards-prep-message span { font-size: clamp(28px, 4.5vw, 58px); font-weight: 900; letter-spacing: -.035em; }
.cards-prep-message small { font-size: clamp(13px, 1.4vw, 18px); color: #9ca0b1; font-weight: 700; }
@keyframes cardsPrepIn { from { opacity: 0; transform: translateY(15px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

.cards-game-board {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    min-height: calc(100vh - 16px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 18px 22px 16px;
    border-radius: 22px;
    overflow: hidden;
}
.cards-game-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 12px; flex: 0 0 auto; }
.cards-game-heading { min-width: 0; }
.cards-game-kicker { display: inline-flex; gap: 7px; align-items: center; color: #b98cff; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.cards-game-heading h2 { margin: 4px 0 2px; color: #fff; font-size: clamp(20px, 2.3vw, 30px); line-height: 1; }
.cards-game-heading p { margin: 0; max-width: 720px; color: #858a9b; font-size: 11px; line-height: 1.35; }
.cards-game-summary { flex: 0 0 auto; min-width: 128px; padding: 9px 13px; border: 1px solid rgba(169,112,255,.18); border-radius: 13px; background: rgba(169,112,255,.055); text-align: center; }
.cards-game-summary strong { display: block; color: #fff; font-size: 24px; line-height: 1; }
.cards-game-summary span { display: block; margin-top: 3px; color: #d6d7df; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cards-game-summary small { display: block; margin-top: 4px; color: #737789; font-size: 8px; }

.cards-game-grid {
    --cards-columns: 6;
    --cards-width: 104px;
    --cards-height: 142px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(169,112,255,.35) transparent;
}
.cards-game-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cards-mode-help-btn {
    width: 22px; height: 22px; margin-left: 5px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border-radius: 50%; border: 1px solid rgba(169,112,255,.32); background: rgba(169,112,255,.09);
    color: #c9a6ff; font-size: 11px; font-weight: 900; cursor: pointer; transition: .18s ease;
}
.cards-mode-help-btn:hover { background: rgba(169,112,255,.18); border-color: rgba(169,112,255,.7); transform: translateY(-1px); }
.cards-help-modal { background: rgba(7,7,12,.84); backdrop-filter: blur(8px); padding: 18px; }
.cards-help-dialog { position: relative; width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 36px); overflow:auto; padding: 22px; border-radius: 18px; }
.cards-help-close { position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:9px; border:1px solid rgba(255,255,255,.09); background:#15151e; color:#a8abba; cursor:pointer; }
.cards-help-heading span { color:#a970ff; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.11em; }
.cards-help-heading h3 { margin:4px 36px 12px 0; color:#fff; font-size:22px; }
.cards-help-intro { color:#aeb1bd; font-size:11px; line-height:1.55; margin-bottom:12px; }
.cards-help-steps { display:grid; gap:7px; }
.cards-help-steps > div { display:grid; grid-template-columns:26px minmax(0,1fr); gap:9px; align-items:start; padding:9px; border-radius:11px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.055); }
.cards-help-steps > div > b { width:24px; height:24px; display:grid; place-items:center; border-radius:8px; background:rgba(169,112,255,.13); color:#c9a6ff; font-size:10px; }
.cards-help-steps span { color:#8f93a1; font-size:10px; line-height:1.45; }
.cards-help-steps strong { display:block; margin-bottom:2px; color:#e9e9ef; font-size:10px; }
.cards-help-note { margin:12px 0 0; padding:9px 10px; border-radius:10px; background:rgba(83,252,24,.045); border:1px solid rgba(83,252,24,.12); color:#9fa3ae; font-size:9px; line-height:1.5; }
.cards-help-note i { color:#53fc18; margin-right:5px; }

.cards-game-card {
    position: relative;
    width: var(--cards-width);
    height: var(--cards-height);
    padding: 0;
    border: 0;
    background: transparent;
    perspective: 900px;
    cursor: pointer;
    border-radius: 14px;
    transition: transform .22s ease, opacity .3s ease;
}
.cards-game-card:hover:not(.is-revealed) { transform: translateY(-5px); }
.cards-game-card.is-selected:not(.is-revealed) { transform: translateY(-7px) scale(1.035); }
.cards-game-card.is-selected:not(.is-revealed)::after { content: ""; position: absolute; inset: -4px; border-radius: 17px; border: 2px solid #a970ff; box-shadow: 0 0 24px rgba(169,112,255,.55); pointer-events: none; }
.cards-game-card-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .68s cubic-bezier(.2,.75,.18,1); }
.cards-game-card.is-revealed .cards-game-card-inner { transform: rotateY(180deg); }
.cards-game-card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 10px 28px rgba(0,0,0,.32); }
.cards-game-card-back { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle at 50% 35%, rgba(169,112,255,.24), transparent 42%), linear-gradient(145deg, #171323, #0c0c13 72%); }
.cards-game-card-back::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(169,112,255,.24); border-radius: 10px; background-image: linear-gradient(45deg, rgba(169,112,255,.035) 25%, transparent 25%, transparent 75%, rgba(169,112,255,.035) 75%), linear-gradient(45deg, rgba(169,112,255,.035) 25%, transparent 25%, transparent 75%, rgba(169,112,255,.035) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.cards-game-card-back img { position: relative; z-index: 1; width: 34%; max-width: 48px; height: auto; object-fit: contain; filter: drop-shadow(0 0 10px rgba(169,112,255,.28)); }
.cards-game-card-back small { position: relative; z-index: 1; color: #9d7bd0; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.cards-game-card-number { position: absolute; z-index: 2; top: 8px; left: 9px; color: rgba(255,255,255,.68); font-size: 9px; font-weight: 900; }
.cards-game-card-front { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 7px; box-sizing: border-box; background: linear-gradient(155deg, #1b1725, #0f0f16 75%); }
.cards-game-card-front > img { width: 58%; aspect-ratio: 1; border-radius: 18%; object-fit: cover; border: 2px solid #a970ff; box-shadow: 0 0 16px rgba(169,112,255,.25); }
.cards-game-card-front strong { width: 100%; color: #fff; font-size: clamp(8px, 1vw, 11px); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards-game-card-platform { position: absolute; top: 7px; right: 8px; font-size: 10px; }
.cards-game-card-result-label { min-height: 14px; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cards-game-card.is-eliminated .cards-game-card-face { border-color: rgba(239,68,68,.72); box-shadow: 0 0 26px rgba(239,68,68,.24); }
.cards-game-card.is-eliminated .cards-game-card-result-label { color: #fb7185; }
.cards-game-card.is-eliminated .cards-game-card-front::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cards-width) * .76); line-height: 1; font-weight: 300; color: rgba(239,68,68,.22); pointer-events: none; }
.cards-game-card.is-winner { transform: translateY(-8px) scale(1.06); z-index: 4; }
.cards-game-card.is-winner .cards-game-card-face { border-color: #53fc18; box-shadow: 0 0 36px rgba(83,252,24,.34); }
.cards-game-card.is-winner .cards-game-card-front > img { border-color: #53fc18; }
.cards-game-card.is-winner .cards-game-card-result-label { color: #53fc18; }

.cards-selection-actions { flex: 0 0 auto; min-height: 52px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 13px; border: 1px solid rgba(169,112,255,.2); background: rgba(13,13,20,.86); }
.cards-selected-label { color: #d8d9e2; font-size: 11px; font-weight: 800; }
.cards-selected-label i { color: #a970ff; margin-right: 5px; }
.cards-selection-buttons { display: flex; gap: 8px; }
.cards-selection-buttons button { min-height: 36px; padding: 0 15px; font-size: 10px; }
.cards-eliminate-btn { border-color: rgba(239,68,68,.28) !important; color: #fda4af !important; }
.cards-winner-btn { min-width: 155px; }
.cards-eliminated-panel { flex: 0 0 auto; margin-top: 8px; min-height: 30px; align-items: center; gap: 10px; color: #686d7d; font-size: 8px; text-transform: uppercase; font-weight: 900; letter-spacing: .05em; }
.cards-eliminated-list { min-width: 0; display: flex; gap: 6px; overflow: hidden; }
.cards-eliminated-chip { max-width: 140px; height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid rgba(239,68,68,.13); background: rgba(239,68,68,.045); border-radius: 999px; color: #a3a6b2; text-transform: none; letter-spacing: 0; font-size: 8px; }
.cards-eliminated-chip > span { color: #fb7185; font-weight: 900; }
.cards-eliminated-chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.cards-eliminated-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-mode-winner-hero { width: min(100%, 520px); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px; border-radius: 17px; border: 1px solid rgba(83,252,24,.32); background: linear-gradient(135deg, rgba(83,252,24,.08), rgba(169,112,255,.08)); box-shadow: 0 0 30px rgba(83,252,24,.06); }
.card-mode-winner-hero > img { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 20px; object-fit: cover; border: 3px solid #53fc18; box-shadow: 0 0 26px rgba(83,252,24,.2); }
.card-mode-winner-copy { min-width: 0; text-align: left; }
.card-mode-winner-copy span { display: block; color: #53fc18; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.card-mode-winner-copy strong { display: block; max-width: 300px; margin-top: 4px; color: #fff; font-size: clamp(21px, 3vw, 34px); line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-mode-winner-number { align-self: flex-start; flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: rgba(169,112,255,.12); color: #c9a6ff; font-size: 9px; font-weight: 900; }

#rouletteModal.cards-mode-active .roulette-container-full { width: 100%; }
#rouletteModal.cards-mode-active .roulette-result-panel { margin-top: 0; }

@media (max-width: 900px) {
    .raffle-style-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .raffle-style-option { grid-template-columns: 30px minmax(0,1fr) 14px; padding: 8px; }
    .cards-game-board { width: calc(100vw - 16px); max-height: calc(100vh - 16px); min-height: calc(100vh - 16px); padding: 12px 10px; }
    .cards-game-header { align-items: flex-start; margin-bottom: 6px; }
    .cards-game-heading p { font-size: 9px; }
    .cards-game-summary { min-width: 92px; padding: 7px 8px; }
    .cards-game-grid { gap: 6px; align-content: center; }
    .cards-game-row { gap: 6px !important; }
    .cards-game-card { width: min(var(--cards-width), 15vw) !important; height: auto !important; aspect-ratio: .73; max-width: 92px; }
    .cards-selection-actions { align-items: stretch; flex-direction: column; }
    .cards-selection-buttons { display: grid; grid-template-columns: 1fr 1fr; }
    .cards-selection-buttons button { min-width: 0; padding: 0 8px; }
    .cards-eliminated-panel { display: none !important; }
    .card-mode-winner-hero > img { width: 70px; height: 70px; }
}

@media (max-width: 540px) {
    .raffle-style-options { grid-template-columns: 1fr; }
    .cards-game-row { gap: 5px !important; }
    .cards-game-card { width: min(var(--cards-width), 18vw) !important; }
    .cards-game-heading h2 { font-size: 19px; }
    .cards-game-heading p { display: none; }
    .cards-game-summary small { display: none; }
}

.audit-cards-history { margin: 12px 0; padding: 12px; border: 1px solid rgba(169,112,255,.15); border-radius: 14px; background: rgba(169,112,255,.035); }
.audit-cards-history-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:8px; color:#c6c8d2; font-size:10px; font-weight:800; }
.audit-cards-history-head span { display:inline-flex; gap:6px; align-items:center; }
.audit-cards-history-head i { color:#a970ff; }
.audit-cards-history-head strong { color:#8b8e9b; font-size:9px; }
.audit-cards-eliminated-list { display:flex; flex-wrap:wrap; gap:6px; }
.audit-card-eliminated-item { min-width:0; display:inline-grid; grid-template-columns:auto auto 24px minmax(0,1fr); align-items:center; gap:5px; padding:5px 7px; border-radius:10px; border:1px solid rgba(239,68,68,.12); background:rgba(239,68,68,.035); font-size:8px; color:#898d9b; }
.audit-card-eliminated-item > b { color:#fb7185; }
.audit-card-eliminated-item > span { color:#b6b8c2; font-weight:800; }
.audit-card-eliminated-item img { width:24px; height:24px; object-fit:cover; border-radius:7px; }
.audit-card-eliminated-item strong { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e7e8ed; }
.audit-card-eliminated-item small { grid-column:3/5; color:#626675; font-size:7px; }
.audit-cards-empty { color:#777b89; font-size:9px; }

.cards-selection-buttons button:disabled {
    opacity: .38;
    cursor: not-allowed;
    filter: saturate(.45);
    box-shadow: none !important;
}
.audit-cards-eliminated-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    max-height: 126px;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(169,112,255,.38) transparent;
}
.audit-cards-eliminated-list::-webkit-scrollbar { width: 7px; }
.audit-cards-eliminated-list::-webkit-scrollbar-track { background: transparent; }
.audit-cards-eliminated-list::-webkit-scrollbar-thumb { background: rgba(169,112,255,.28); border-radius: 999px; }
.audit-cards-eliminated-list::-webkit-scrollbar-thumb:hover { background: rgba(169,112,255,.48); }
.audit-card-eliminated-item { width: 100%; box-sizing: border-box; }

.cards-game-card.is-removing {
    pointer-events: none;
    animation: cardsEliminatedLeave .38s ease forwards;
}
@keyframes cardsEliminatedLeave {
    from { opacity: 1; transform: scale(1); filter: blur(0); }
    to { opacity: 0; transform: translateY(14px) scale(.90); filter: blur(2px); }
}

.raffle-style-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.maze-game-board {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    max-width: none;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14,16,31,.98), rgba(7,9,18,.99));
}

.maze-game-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(7,9,20,.9);
}

.maze-game-topbar {
    position: relative;
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(150px,1fr) auto minmax(220px,1fr);
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
}
.maze-mode-pill {
    justify-self: start;
    display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px;
    color:#d8d0ff; background:rgba(116,84,255,.12); border:1px solid rgba(151,128,255,.22);
    font-size:9px; font-weight:800; white-space:nowrap;
}
.maze-site-brand {
    justify-self:center;
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:4px 10px; border:0; background:transparent; color:#fff; cursor:pointer;
    border-radius:12px; transition:.18s ease;
}
.maze-site-brand:hover { background:rgba(255,255,255,.035); }
.maze-site-brand img { width:28px; height:28px; object-fit:contain; filter:drop-shadow(0 0 10px rgba(169,112,255,.22)); }
.maze-site-brand span { font-size:18px; letter-spacing:-.04em; white-space:nowrap; }
.maze-site-brand b { font-weight:900; }
.maze-game-meta { justify-self:end; display:flex; gap:6px; align-items:center; }
.maze-game-meta > div { min-width:70px; padding:5px 8px; border-radius:10px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.05); text-align:right; }
.maze-game-meta span { display:block; color:#707996; font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.maze-game-meta strong { display:block; margin-top:1px; color:#f7f8ff; font-size:11px; }

.maze-game-viewport {
    position: relative;
    min-height: 0;
    overflow: hidden;
    cursor: grab;
    background: radial-gradient(circle at 50% 45%, rgba(81,57,197,.12), transparent 48%), linear-gradient(180deg, #080b18, #050711);
}
.maze-game-viewport:active { cursor: grabbing; }
#mazeCanvas { width:100%; height:100%; display:block; }

.maze-hud-message {
    position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
    min-width:min(430px,70%); padding:18px 24px; border-radius:17px; text-align:center; pointer-events:none;
    background:rgba(5,7,18,.76); border:1px solid rgba(164,145,255,.22); box-shadow:0 18px 50px rgba(0,0,0,.42),0 0 50px rgba(103,70,255,.08);
    backdrop-filter:blur(14px); transition:opacity .35s ease,transform .35s ease;
}
.maze-hud-message.hidden { opacity:0; transform:translate(-50%,-47%) scale(.98); }
.maze-hud-message .hud-kicker { color:#9d8cff; font-size:9px; font-weight:900; letter-spacing:.15em; }
.maze-hud-message .hud-title { margin-top:4px; color:#fff; font-size:clamp(24px,3vw,42px); font-weight:900; letter-spacing:-.04em; }
.maze-hud-message .hud-subtitle { margin-top:5px; color:#9ca4bf; font-size:10px; }

.maze-ranking-panel {
    min-width:0; min-height:0; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:10px;
    padding:14px; border:1px solid rgba(255,255,255,.065); border-radius:16px; overflow:hidden;
    background:linear-gradient(180deg,rgba(15,17,34,.94),rgba(8,10,21,.94));
}
.maze-ranking-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.maze-ranking-head > div:first-child > span { display:block; color:#8575ea; font-size:8px; font-weight:900; letter-spacing:.14em; }
.maze-ranking-head h2 { margin:4px 0 0; color:#fff; font-size:20px; letter-spacing:-.035em; }
.maze-live-dot { display:flex; gap:6px; align-items:center; color:#9199b4; font-size:8px; font-weight:800; letter-spacing:.08em; }
.maze-live-dot > span { width:7px; height:7px; border-radius:50%; background:#ff4b72; box-shadow:0 0 0 5px rgba(255,75,114,.08); animation:pulse 1.4s infinite; }

.maze-winner-card {
    position:relative; overflow:hidden; min-height:154px; padding:12px; border-radius:14px;
    border:1px solid rgba(255,255,255,.07);
    background:radial-gradient(circle at 85% 20%,rgba(114,88,255,.18),transparent 42%),linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
    transition:.2s ease;
}
.maze-winner-card.active { border-color:rgba(255,211,94,.28); box-shadow:0 0 30px rgba(255,211,94,.05); }
.maze-winner-card.is-confirmed { border-color:rgba(83,252,24,.34); box-shadow:0 0 34px rgba(83,252,24,.08); }
.maze-winner-main { display:flex; align-items:center; gap:10px; min-width:0; }
.maze-winner-avatar { width:54px; height:54px; flex:0 0 54px; border-radius:14px; object-fit:cover; border:2px solid rgba(169,112,255,.48); background:#11131d; }
.maze-winner-card.active .maze-winner-avatar { border-color:#f6c94e; box-shadow:0 0 18px rgba(246,201,78,.12); }
.maze-winner-card.is-confirmed .maze-winner-avatar { border-color:#53fc18; box-shadow:0 0 18px rgba(83,252,24,.14); }
.maze-winner-copy { min-width:0; }
.maze-winner-label { display:block; color:#8f97b3; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.maze-winner-copy strong { display:block; margin-top:4px; color:#fff; font-size:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.maze-winner-copy > span:last-child { display:block; margin-top:3px; color:#9ea6c1; font-size:9px; }
.maze-winner-confirmation { margin-top:10px; padding-top:9px; border-top:1px solid rgba(255,255,255,.055); }
.maze-winner-confirmation > span { display:block; color:#b5bad0; font-size:9px; font-weight:800; line-height:1.35; }
.maze-winner-confirmation > small { display:block; margin-top:3px; color:#666f8b; font-size:7.5px; line-height:1.35; }
.maze-winner-confirmation button { width:100%; min-height:32px; margin-top:8px; font-size:9px; }
.maze-winner-confirmation button:disabled { opacity:.38; cursor:not-allowed; filter:saturate(.45); }
.maze-winner-confirmation button.is-confirmed { opacity:1; background:linear-gradient(180deg,#3ba31a,#237910); border-color:rgba(83,252,24,.42); }

.maze-ranking-list { min-height:0; margin:0; padding:0; list-style:none; overflow:auto; scrollbar-width:thin; scrollbar-color:rgba(139,121,255,.35) transparent; }
#mazeGameBoard .ranking-entry { display:grid; grid-template-columns:30px 12px minmax(0,1fr) auto; gap:8px; align-items:center; min-height:38px; padding:0 5px; border-bottom:1px solid rgba(255,255,255,.045); }
#mazeGameBoard .rank-number { color:#69718c; font-size:9px; font-weight:900; }
#mazeGameBoard .rank-swatch { width:8px; height:8px; border-radius:3px; box-shadow:0 0 8px currentColor; }
#mazeGameBoard .rank-name { min-width:0; color:#e9ebf7; font-size:10px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#mazeGameBoard .rank-time { color:#7f88a5; font-size:8px; font-variant-numeric:tabular-nums; }
.maze-ranking-footer { display:flex; flex-direction:column; gap:5px; padding-top:8px; border-top:1px solid rgba(255,255,255,.055); color:#727b98; font-size:8px; }
.maze-ranking-footer code { color:#a99aff; }

.maze-game-actions {
    grid-column:1 / -1;
    min-height:54px;
    display:grid;
    grid-template-columns:minmax(170px,1fr) auto minmax(170px,1fr);
    align-items:center;
    gap:14px;
    padding:8px 74px 8px 14px;
    border:1px solid rgba(255,255,255,.065); border-radius:14px;
    background:linear-gradient(180deg,rgba(15,17,31,.96),rgba(8,10,20,.96));
}
.maze-game-actions-status { grid-column:1; min-width:0; color:#858da9; font-size:9px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.maze-game-actions-buttons { grid-column:2; display:flex; align-items:center; justify-content:center; gap:8px; flex:0 0 auto; }
.maze-game-actions-buttons button { min-height:34px; padding:0 16px; font-size:9px; font-weight:900; }
.maze-start-race-btn { min-width:150px; }
.maze-repick-btn { border-color:rgba(169,112,255,.25) !important; color:#d5c2ff !important; }

#rouletteModal.maze-mode-active .roulette-container-full { width:100%; height:100%; }
#rouletteModal.maze-mode-active .roulette-result-panel { display:none !important; }

#rouletteModal.cards-mode-active .roulette-container-full { width:100%; }

@media (max-width: 980px) {
    .raffle-style-options { grid-template-columns:1fr; }
    .maze-game-board { width:calc(100vw - 6px); height:calc(100vh - 6px); grid-template-columns:minmax(0,1fr) 260px; gap:6px; padding:6px; }
    .maze-game-topbar { grid-template-columns:auto 1fr auto; gap:8px; }
    .maze-site-brand span { font-size:15px; }
    .maze-site-brand img { width:23px; height:23px; }
    .maze-mode-pill { font-size:7px; padding:4px 6px; }
    .maze-game-meta > div { min-width:52px; padding:4px 6px; }
    .maze-ranking-panel { padding:10px; }
}

@media (max-width: 720px) {
    .maze-game-board { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) 205px auto; }
    .maze-game-main { grid-column:1; grid-row:1; }
    .maze-ranking-panel { grid-column:1; grid-row:2; grid-template-columns:150px minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); gap:7px 10px; }
    .maze-ranking-head { grid-column:1; grid-row:1; }
    .maze-winner-card { grid-column:1; grid-row:2; min-height:0; padding:8px; }
    .maze-winner-avatar { width:38px; height:38px; flex-basis:38px; border-radius:10px; }
    .maze-winner-copy strong { font-size:14px; }
    .maze-winner-confirmation > small { display:none; }
    .maze-winner-confirmation button { min-height:27px; margin-top:5px; font-size:7px; }
    .maze-ranking-list { grid-column:2; grid-row:1/3; }
    .maze-ranking-footer { display:none; }
    .maze-game-actions { grid-column:1; grid-row:3; min-height:48px; padding:6px 58px 6px 8px; grid-template-columns:minmax(90px,1fr) auto minmax(16px,.35fr); gap:6px; }
    .maze-game-actions-status { font-size:7.5px; }
    .maze-game-actions-buttons button { min-height:31px; padding:0 10px; font-size:7.5px; }
    .maze-game-topbar { min-height:48px; }
    .maze-mode-pill { display:none; }
    .maze-game-topbar { grid-template-columns:1fr auto; }
    .maze-site-brand { justify-self:start; }
    .maze-game-meta > div:nth-child(3) { display:none; }
}
body.maze-direct-mode #rouletteModal.maze-mode-active {
    display: flex !important;
}
body.maze-direct-mode #rouletteModal.maze-mode-active #mazeGameBoard {
    display: grid !important;
}

.maze-game-main {
    grid-template-rows: auto auto minmax(0,1fr);
}

.maze-lobby-info {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: linear-gradient(90deg, rgba(123,84,255,.08), rgba(255,255,255,.018) 45%, rgba(65,225,190,.045));
}
.maze-lobby-command {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.maze-lobby-command > span {
    color: #818aa8;
    font-size: 7.5px;
    font-weight: 900;
    letter-spacing: .08em;
}
.maze-lobby-command > strong {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 11px;
    border: 1px solid rgba(169,112,255,.32);
    border-radius: 999px;
    color: #fff;
    background: rgba(127,82,255,.13);
    box-shadow: inset 0 0 14px rgba(169,112,255,.05);
    font-size: 10px;
    font-weight: 900;
}
.maze-lobby-chances {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    overflow: hidden;
}
.maze-lobby-chances > span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.025);
    color: #8e97b4;
    font-size: 7.5px;
    font-weight: 700;
}
.maze-lobby-chances > span b {
    color: #d8dcef;
    font-weight: 900;
}

body.maze-direct-mode #app-container,
body.maze-direct-mode .main-container,
body.maze-direct-mode #gridArea {
    display: none !important;
}
body.maze-direct-mode #rouletteModal.maze-mode-active {
    inset: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 980px) {
    .maze-lobby-info { gap: 7px; }
    .maze-lobby-command { min-width: 150px; }
    .maze-lobby-command > span { display: none; }
    .maze-lobby-chances { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .maze-lobby-chances::-webkit-scrollbar { display:none; }
}

@media (max-width: 720px) {
    .maze-lobby-info { min-height: 38px; padding: 5px 7px; }
    .maze-lobby-command { min-width: 100px; }
    .maze-lobby-command > strong { max-width: 120px; font-size: 8px; padding: 4px 7px; }
    .maze-lobby-chances > span { font-size: 6.5px; padding: 3px 5px; }
}

.maze-new-raffle-btn {
    border-color: rgba(92,225,190,.24) !important;
    color: #aef9df !important;
}
.maze-home-btn {
    border-color: rgba(255,255,255,.09) !important;
    color: #aeb5cb !important;
}
body.maze-direct-mode #app-container {
    display: none !important;
}
body.maze-direct-mode #rouletteModal.maze-mode-active,
body.maze-direct-mode #rouletteModal.maze-mode-active #mazeGameBoard {
    visibility: visible !important;
    opacity: 1 !important;
}

#mazeGameBoard {
    grid-template-columns: minmax(0, 1fr) 350px;
}

#mazeGameBoard .maze-mode-pill {
    font-size: 11px;
    padding: 6px 10px;
}
#mazeGameBoard .maze-site-brand span { font-size: 22px; }
#mazeGameBoard .maze-site-brand img { width: 32px; height: 32px; }

#mazeGameBoard .maze-game-meta > div {
    min-width: 78px;
    padding: 7px 10px;
}
#mazeGameBoard .maze-game-meta span { font-size: 9px; }
#mazeGameBoard .maze-game-meta strong { font-size: 14px; }

#mazeGameBoard .maze-lobby-info {
    min-height: 50px;
    padding: 8px 12px;
}
#mazeGameBoard .maze-lobby-command > span { font-size: 10px; }
#mazeGameBoard .maze-lobby-command > strong {
    font-size: 13px;
    padding: 6px 12px;
}
#mazeGameBoard .maze-lobby-chances { gap: 7px; }
#mazeGameBoard .maze-lobby-chances > span {
    font-size: 10px;
    padding: 6px 9px;
}

#mazeGameBoard .maze-hud-message .hud-kicker { font-size: 11px; }
#mazeGameBoard .maze-hud-message .hud-subtitle { font-size: 13px; }

#mazeGameBoard .maze-ranking-panel { padding: 16px; gap: 12px; }
#mazeGameBoard .maze-ranking-head > div:first-child > span { font-size: 10px; }
#mazeGameBoard .maze-ranking-head h2 { font-size: 24px; }
#mazeGameBoard .maze-live-dot { font-size: 10px; }

#mazeGameBoard .maze-winner-label { font-size: 10px; }
#mazeGameBoard .maze-winner-copy strong { font-size: 24px; }
#mazeGameBoard .maze-winner-copy > span:last-child { font-size: 12px; }
#mazeGameBoard .maze-winner-confirmation > span { font-size: 11px; }
#mazeGameBoard .maze-winner-confirmation > small { font-size: 9.5px; }
#mazeGameBoard .maze-winner-confirmation button {
    min-height: 40px;
    font-size: 11px;
}

#mazeGameBoard .ranking-entry {
    grid-template-columns: 34px 13px minmax(0,1fr) auto;
    min-height: 44px;
    gap: 9px;
}
#mazeGameBoard .rank-number { font-size: 11px; }
#mazeGameBoard .rank-swatch { width: 10px; height: 10px; }
#mazeGameBoard .rank-name { font-size: 12px; }
#mazeGameBoard .rank-time { font-size: 10px; }
#mazeGameBoard .maze-ranking-footer { font-size: 10px; }

#mazeGameBoard .maze-game-actions {
    min-height: 64px;

    grid-template-columns: minmax(190px,1fr) auto minmax(330px,1.35fr);
    gap: 16px;
    padding: 10px 96px 10px 16px;
}
#mazeGameBoard .maze-game-actions-status { font-size: 11px; }
#mazeGameBoard .maze-game-actions-buttons {
    gap: 10px;
    transform: translateX(-42px);
}
#mazeGameBoard .maze-game-actions-buttons button {
    min-height: 40px;
    padding: 0 18px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    #mazeGameBoard { grid-template-columns: minmax(0,1fr) 310px; }
    #mazeGameBoard .maze-game-actions {
        grid-template-columns: minmax(150px,1fr) auto minmax(220px,1.15fr);
        padding-right: 82px;
    }
    #mazeGameBoard .maze-game-actions-buttons { transform: translateX(-24px); }
}

@media (max-width: 720px) {
    #mazeGameBoard { grid-template-columns: 1fr; }
    #mazeGameBoard .maze-game-actions {
        grid-template-columns: 1fr;
        padding: 8px 66px 8px 10px;
    }
    #mazeGameBoard .maze-game-actions-status,
    #mazeGameBoard .maze-game-actions-buttons { grid-column: 1; }
    #mazeGameBoard .maze-game-actions-buttons {
        transform: none;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    #mazeGameBoard .maze-game-actions-status { font-size: 10px; }
    #mazeGameBoard .maze-game-actions-buttons button { font-size: 10px; min-height: 36px; }
    #mazeGameBoard .maze-lobby-command > strong { font-size: 11px; }
    #mazeGameBoard .maze-lobby-chances > span { font-size: 9px; }
}

#rouletteModal.maze-mode-active #mazeGameBoard.maze-game-board.neon-card-strong {
    width: calc(100vw - 32px);
    height: calc(100vh - 28px);
    padding: 0;
    gap: 12px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

body.maze-direct-mode #rouletteModal.maze-mode-active {
    background: #09090e !important;
    padding: 0 !important;
}

#mazeGameBoard .maze-hud-message {
    padding: 22px 30px;
}
#mazeGameBoard .maze-hud-message .hud-subtitle {
    margin-top: 10px;
    color: #d9dcef;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

@media (max-width: 980px) {
    #rouletteModal.maze-mode-active #mazeGameBoard.maze-game-board.neon-card-strong {
        width: calc(100vw - 20px);
        height: calc(100vh - 18px);
        gap: 8px;
    }
    #mazeGameBoard .maze-hud-message .hud-subtitle { font-size: 14px; }
}

#mazeGameBoard .maze-lobby-info {
    justify-content: flex-end;
}
#mazeGameBoard .maze-lobby-chances {
    width: 100%;
    justify-content: flex-end;
}

#mazeGameBoard .maze-hud-message .hud-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 14px auto 0;
    padding: 9px 16px;
    border: 1px solid rgba(157, 140, 255, .30);
    border-radius: 999px;
    background: rgba(118, 84, 255, .13);
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .01em;
    box-shadow: inset 0 0 18px rgba(132, 103, 255, .06);
}

@media (max-width: 980px) {
    #mazeGameBoard .maze-hud-message .hud-subtitle {
        font-size: 16px;
        padding: 8px 13px;
    }
}

#mazeGameBoard .maze-regenerate-btn {
    border-color: rgba(95, 223, 255, .24) !important;
    color: #c9f5ff !important;
}
#mazeGameBoard .maze-regenerate-btn:hover {
    background: rgba(73, 195, 229, .09) !important;
    border-color: rgba(95, 223, 255, .42) !important;
}

body.ball-direct-mode #app-container,
body.ball-direct-mode .main-container,
body.ball-direct-mode #gridArea { display:none !important; }
body.ball-direct-mode #rouletteModal.ball-mode-active {
    display:flex !important;
    align-items:stretch !important;
    justify-content:stretch !important;
    padding:10px !important;
    background:#050711 !important;
}
#rouletteModal.ball-mode-active .roulette-container-full {
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    padding:0 !important;
}
#rouletteModal.ball-mode-active .roulette-window,
#rouletteModal.ball-mode-active #cardsGameBoard,
#rouletteModal.ball-mode-active #mazeGameBoard,
#rouletteModal.ball-mode-active #rouletteResultPanel { display:none !important; }

.ball-game-board {
    width:100%;
    height:100%;
    min-height:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    grid-template-rows:minmax(0,1fr) auto;
    gap:10px;
    background:#050711;
    color:#f8f9ff;
}
.ball-game-main {
    min-width:0;
    min-height:0;
    display:grid;
    grid-template-rows:auto auto minmax(0,1fr);
    border:1px solid rgba(255,255,255,.055);
    border-radius:16px;
    overflow:hidden;
    background:#080b16;
}
.ball-game-topbar {
    min-height:66px;
    padding:9px 14px;
    display:grid;
    grid-template-columns:minmax(150px,1fr) auto minmax(290px,1fr);
    align-items:center;
    gap:12px;
    border-bottom:1px solid rgba(255,255,255,.055);
    background:linear-gradient(180deg,rgba(19,22,40,.88),rgba(9,12,24,.92));
}
.ball-mode-pill {
    justify-self:start;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(124,92,255,.13);
    border:1px solid rgba(150,126,255,.25);
    color:#ded9ff;
    font-size:12px;
    font-weight:900;
}
.ball-site-brand {
    border:0;
    background:transparent;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    cursor:pointer;
    font-size:23px;
    letter-spacing:-.05em;
}
.ball-site-brand img { width:28px; height:28px; object-fit:contain; }
.ball-site-brand b { font-weight:950; }
.ball-game-meta {
    justify-self:end;
    display:flex;
    gap:7px;
}
.ball-game-meta > div {
    min-width:78px;
    padding:7px 9px;
    border-radius:10px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.05);
    text-align:right;
}
.ball-game-meta span { display:block; color:#868fa9; font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.ball-game-meta strong { font-size:14px; }
.ball-game-toolbar {
    min-height:52px;
    padding:7px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border-bottom:1px solid rgba(255,255,255,.05);
    background:#090d19;
}
.ball-lobby-chances { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.ball-lobby-chances span {
    padding:5px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.06);
    color:#aeb7cc;
    font-size:10px;
    font-weight:800;
}
.ball-lobby-chances b { color:#f2f4ff; }
.ball-toolbar-actions { display:flex; gap:7px; flex-shrink:0; }
.ball-toolbar-actions button { min-height:36px; }
.ball-quake-btn:not(:disabled) { border-color:rgba(255,161,89,.25); color:#ffd8b8; }

.ball-game-viewport {
    position:relative;
    min-width:0;
    min-height:0;
    overflow:hidden;
    cursor:grab;
    background:#050711;
}
.ball-game-viewport:active { cursor:grabbing; }
#ballCanvas { display:block; width:100%; height:100%; }
.ball-hud-message {
    position:absolute;
    left:50%; top:50%;
    transform:translate(-50%,-50%);
    width:min(570px,72%);
    padding:20px 24px;
    border-radius:18px;
    text-align:center;
    background:rgba(6,8,19,.78);
    border:1px solid rgba(255,255,255,.075);
    backdrop-filter:blur(10px);
    pointer-events:none;
    transition:opacity .2s ease,transform .2s ease;
}
.ball-hud-message.hidden { opacity:0; transform:translate(-50%,-48%) scale(.98); }
.ball-hud-kicker { color:#9989ff; font-size:11px; font-weight:950; letter-spacing:.16em; }
.ball-hud-title { margin-top:5px; font-size:clamp(28px,3vw,46px); line-height:1.02; font-weight:950; letter-spacing:-.045em; }
.ball-hud-subtitle { margin-top:8px; color:#aab2c7; font-size:14px; }
.ball-map-hint {
    position:absolute;
    left:12px; bottom:12px;
    padding:7px 9px;
    border-radius:9px;
    background:rgba(4,6,14,.72);
    border:1px solid rgba(255,255,255,.055);
    color:#9da7bd;
    font-size:10px;
    pointer-events:none;
}

.ball-ranking-panel {
    min-width:0;
    min-height:0;
    grid-column:2;
    grid-row:1;
    display:grid;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    gap:10px;
    padding:14px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.055);
    border-radius:16px;
    background:linear-gradient(180deg,#0c1020,#080b16);
}
.ball-ranking-head { display:flex; justify-content:space-between; gap:8px; }
.ball-ranking-head > div:first-child > span { color:#9586ff; font-size:9px; font-weight:950; letter-spacing:.14em; }
.ball-ranking-head h2 { margin:2px 0 0; font-size:25px; letter-spacing:-.04em; }
.ball-live-dot { display:flex; align-items:center; gap:6px; color:#8e97af; font-size:9px; font-weight:900; }
.ball-live-dot > span { width:7px; height:7px; border-radius:50%; background:#ff4f78; box-shadow:0 0 0 5px rgba(255,79,120,.08); }
.ball-winner-card {
    padding:13px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.065);
    background:linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.ball-winner-card.active { border-color:rgba(255,214,106,.26); }
.ball-winner-card.is-confirmed { border-color:rgba(101,244,205,.32); }
.ball-winner-main { display:flex; align-items:center; gap:10px; }
.ball-winner-avatar { width:54px; height:54px; border-radius:14px; object-fit:cover; border:1px solid rgba(164,146,255,.34); background:#12162a; }
.ball-winner-copy { min-width:0; }
.ball-winner-copy > span { display:block; color:#949db5; font-size:10px; }
.ball-winner-copy strong { display:block; margin:2px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:22px; }
.ball-winner-label { text-transform:uppercase; letter-spacing:.08em; font-weight:900; }
.ball-winner-confirmation { margin-top:12px; padding-top:11px; border-top:1px solid rgba(255,255,255,.055); }
.ball-winner-confirmation > span { display:block; color:#bcc4d7; font-size:11px; line-height:1.35; }
.ball-confirm-countdown { margin:8px 0; display:flex; align-items:baseline; gap:8px; }
.ball-confirm-countdown strong { font-size:26px; color:#fff1a9; }
.ball-confirm-countdown small { color:#8992aa; }
.ball-winner-confirmation button { width:100%; min-height:38px; }
.ball-ranking-list { min-height:0; margin:0; padding:0; list-style:none; overflow:auto; overscroll-behavior:contain; }
.ball-rank-row {
    min-height:43px;
    display:grid;
    grid-template-columns:28px 11px minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    border-bottom:1px solid rgba(255,255,255,.045);
}
.ball-rank-row.is-current { background:rgba(255,230,130,.055); }
.ball-rank-row.is-eliminated { opacity:.55; }
.ball-rank-row.is-eliminated .ball-rank-name { text-decoration:line-through; }
.ball-rank-pos { color:#818ba6; font-size:11px; font-weight:950; }
.ball-rank-dot { width:10px; height:10px; border-radius:50%; box-shadow:0 0 8px currentColor; }
.ball-rank-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:850; }
.ball-rank-time { color:#929bb2; font-size:10px; }
.ball-ranking-footer { display:flex; justify-content:space-between; gap:8px; padding-top:9px; border-top:1px solid rgba(255,255,255,.05); color:#768098; font-size:9px; }
.ball-ranking-footer code { color:#a99eff; }

.ball-game-actions {
    grid-column:1 / -1;
    grid-row:2;
    min-height:54px;
    padding:8px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid rgba(255,255,255,.055);
    border-radius:14px;
    background:#090c17;
}
.ball-game-actions-status { color:#9da7bd; font-size:11px; font-weight:700; }
.ball-game-actions-buttons { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; margin-right:72px; }
.ball-game-actions-buttons button { min-height:36px; }

.raffle-style-options { flex-wrap:wrap; }
.raffle-style-option { flex:1 1 210px; }

@media (max-width:1100px) {
    .ball-game-board { grid-template-columns:minmax(0,1fr) 280px; gap:7px; }
    .ball-game-topbar { grid-template-columns:auto 1fr; }
    .ball-site-brand { order:-1; grid-column:1 / -1; }
    .ball-game-meta { justify-self:end; }
    .ball-game-toolbar { align-items:flex-start; flex-direction:column; }
    .ball-toolbar-actions { align-self:flex-end; }
}
@media (max-width:780px) {
    body.ball-direct-mode #rouletteModal.ball-mode-active { padding:4px !important; }
    .ball-game-board { grid-template-columns:1fr; grid-template-rows:minmax(620px,1fr) 300px auto; }
    .ball-game-main { grid-column:1; grid-row:1; }
    .ball-ranking-panel { grid-column:1; grid-row:2; }
    .ball-game-actions { grid-column:1; grid-row:3; align-items:flex-start; flex-direction:column; }
    .ball-game-actions-buttons { margin-right:0; justify-content:flex-start; }
    .ball-game-topbar { grid-template-columns:1fr; }
    .ball-mode-pill,.ball-game-meta { justify-self:center; }
    .ball-game-meta { flex-wrap:wrap; justify-content:center; }
}

@media (min-width: 761px) {
    .raffle-style-options {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    .raffle-style-option {
        flex: none !important;
        min-width: 0 !important;
        min-height: 58px;
        grid-template-columns: 28px minmax(0, 1fr) 12px !important;
        gap: 6px !important;
        padding: 7px 7px !important;
        border-radius: 10px;
    }
    .raffle-style-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
        font-size: 12px;
    }
    .raffle-style-option strong { font-size: 11px !important; line-height: 1.05; }
    .raffle-style-option small { font-size: 8px !important; line-height: 1.18 !important; }
    .raffle-style-check { font-size: 10px; }
}
@media (max-width: 920px) and (min-width: 761px) {
    .raffle-style-option small { display: none !important; }
    .raffle-style-option { min-height: 46px; }
}

.raffle-style-heading-actions {
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    min-width:0;
}
.raffle-style-help-btn,
.game-mode-help-inline,
.roulette-game-help-btn {
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:inline-grid;
    place-items:center;
    border-radius:50%;
    border:1px solid rgba(169,112,255,.34);
    background:rgba(169,112,255,.10);
    color:#e4d8ff;
    font-weight:900;
    font-size:13px;
    line-height:1;
    cursor:pointer;
    transition:.16s ease;
}
.raffle-style-help-btn:hover,
.game-mode-help-inline:hover,
.roulette-game-help-btn:hover {
    background:rgba(169,112,255,.20);
    border-color:rgba(169,112,255,.68);
    transform:translateY(-1px);
}
.game-mode-pill-wrap {
    justify-self:start;
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-width:0;
}
.cards-inline-help {
    width:22px;
    height:22px;
    flex-basis:22px;
    margin-left:6px;
    vertical-align:middle;
    font-size:11px;
}
.roulette-game-help-btn {
    position:absolute;
    top:10px;
    right:12px;
    z-index:12;
    background:rgba(10,11,20,.80);
    backdrop-filter:blur(7px);
}
@media (max-width:780px) {
    .raffle-style-heading { align-items:center; }
    .raffle-style-heading-actions small { display:none; }
    .game-mode-pill-wrap { justify-self:center; }
}

#mazeRankingList .ranking-entry,
#ballRankingList .ball-rank-row {
    content-visibility: auto;
    contain-intrinsic-size: 48px;
}

.gallery-participant-search {
    width: clamp(180px, 18vw, 250px);
    height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 7px 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(169,112,255,.22);
    background: rgba(10,11,18,.58);
    color: rgba(169,112,255,.78);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    box-sizing: border-box;
}
.gallery-participant-search:focus-within {
    border-color: rgba(169,112,255,.72);
    background: rgba(169,112,255,.055);
    box-shadow: 0 0 0 3px rgba(169,112,255,.08);
}
.gallery-participant-search > i {
    flex: 0 0 auto;
    font-size: 10px;
}
.gallery-participant-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f3f5fb;
    font: inherit;
    font-size: 10.5px;
    font-weight: 700;
    padding: 0;
}
.gallery-participant-search input::placeholder {
    color: rgba(155,164,184,.68);
    font-weight: 650;
}
.gallery-participant-search input::-webkit-search-cancel-button { display:none; }
.gallery-participant-search input:disabled { cursor:not-allowed; opacity:.45; }
.gallery-participant-search-count {
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(52,211,153,.24);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}
.gallery-participant-search-count.is-empty {
    background: rgba(244,63,94,.11);
    border-color: rgba(251,113,133,.24);
    color: #fda4af;
}
.gallery-participant-search-clear {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.055);
    color: rgba(205,211,226,.72);
    cursor: pointer;
    padding: 0;
}
.gallery-participant-search-clear:hover {
    background: rgba(244,63,94,.14);
    color: #fda4af;
}
.participant-search-empty {
    margin: 14px 25px 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 12px;
    color: rgba(155,164,184,.82);
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.018);
}
.participant-search-empty[hidden] { display:none !important; }
.participant-search-empty i { color: rgba(169,112,255,.72); }

@media (max-width: 820px) {
    .gallery-participant-search {
        width: min(100%, 280px);
        flex: 1 1 180px;
    }
}
@media (max-width: 700px) {
    .gallery-participant-search {
        width: 100%;
        flex-basis: 100%;
        max-width: none;
    }
}

body.setup-subs-mode #bits-bonus-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 205px;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    margin-top: 8px;
    padding: 8px 12px;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-copy {
    min-width: 0;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-copy strong {
    margin: 0;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-meta {
    max-width: none;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

body.setup-subs-mode #bits-bonus-panel #bits-eventsub-status,
body.setup-subs-mode #bits-bonus-panel #bits-session-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

body.setup-subs-mode #bits-bonus-panel #bits-eventsub-status {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.setup-subs-mode #bits-bonus-panel #bits-eventsub-status[data-state="ok"] { color: #86efac; }
body.setup-subs-mode #bits-bonus-panel #bits-eventsub-status[data-state="loading"] { color: #c4b5fd; }
body.setup-subs-mode #bits-bonus-panel #bits-eventsub-status[data-state="error"] { color: #fca5a5; }
body.setup-subs-mode #bits-bonus-panel #bits-eventsub-status[data-state="idle"] { color: var(--text-muted); }

body.setup-subs-mode #bits-bonus-panel .bits-meta-separator {
    opacity: .38;
    flex: 0 0 auto;
}

body.setup-subs-mode #bits-bonus-panel #bits-session-summary {
    flex: 0 0 auto;
    color: var(--text-muted);
}

body.setup-subs-mode #bits-bonus-panel #bits-session-summary strong {
    color: #d8dced;
    font-size: inherit;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-extra-field {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 30px;
    align-items: center;
    gap: 8px;
    align-self: center;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-extra-field label {
    width: auto;
    max-width: none;
    margin: 0;
    text-align: right;
    line-height: 1.05;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-extra-field input {
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 34px;
    margin: 0;
}

body.setup-subs-mode #bits-bonus-panel .bits-reset-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

body.setup-subs-mode #bits-bonus-panel .bits-reset-btn i {
    margin: 0;
}

body.setup-subs-mode #bits-bonus-panel .gift-bonus-disabled {
    opacity: .45;
}

@media (max-width: 760px) {
    body.setup-subs-mode #bits-bonus-panel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.setup-subs-mode #bits-bonus-panel .bits-bonus-extra-field {
        grid-template-columns: 1fr 84px 34px;
    }

    body.setup-subs-mode #bits-bonus-panel .bits-bonus-extra-field label {
        text-align: left;
    }

    body.setup-subs-mode #bits-bonus-panel .bits-bonus-extra-field input {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
    }

    body.setup-subs-mode #bits-bonus-panel .bits-bonus-meta {
        white-space: normal;
        flex-wrap: wrap;
        row-gap: 2px;
    }
}

body.setup-subs-mode #bits-bonus-panel {
    grid-template-columns: minmax(0, 1fr) 205px;
    min-height: 54px;
    padding: 8px 12px;
    gap: 16px;
}

body.setup-subs-mode #bits-bonus-panel .bits-bonus-toggle {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.setup-subs-mode #bits-bonus-panel .bits-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.setup-subs-mode #bits-bonus-panel .bits-card-status[data-state="ok"] { color: #86efac; }
body.setup-subs-mode #bits-bonus-panel .bits-card-status[data-state="loading"] { color: #c4b5fd; }
body.setup-subs-mode #bits-bonus-panel .bits-card-status[data-state="error"] { color: #fca5a5; }
body.setup-subs-mode #bits-bonus-panel .bits-card-status[data-state="idle"] { color: var(--text-muted); }

.bits-open-settings {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 9px 6px 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(169,112,255,.18);
    border-radius: 11px;
    background: rgba(169,112,255,.055);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.bits-open-settings:hover {
    border-color: rgba(169,112,255,.42);
    background: rgba(169,112,255,.10);
}
.bits-open-settings:active { transform: translateY(1px); }
.bits-open-settings-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.bits-open-settings-copy strong,
.bits-open-settings-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bits-open-settings-copy strong { font-size: 10px; line-height: 1.15; color: #f1f5f9; }
.bits-open-settings-copy small { font-size: 9px; line-height: 1.15; color: var(--text-muted); }
.bits-open-settings > i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #c4b5fd;
    background: rgba(169,112,255,.08);
}

.bits-settings-overlay {
    z-index: 3350;
    padding: 16px;
    background: rgba(4,4,9,.88);
    backdrop-filter: blur(11px);
}
.bits-settings-box {
    width: min(560px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 24px));
    overflow-y: auto;
    padding: 18px;
    border-radius: 19px;
    border: 1px solid rgba(169,112,255,.28);
    box-shadow: 0 24px 70px rgba(0,0,0,.62), 0 0 30px rgba(169,112,255,.10);
    scrollbar-width: thin;
}
.bits-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}
.bits-settings-header > div { min-width: 0; }
.bits-settings-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c4b5fd;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.bits-settings-header h2 {
    margin: 5px 0 3px;
    color: #fff;
    font-size: 19px;
    line-height: 1.1;
}
.bits-settings-header p {
    max-width: 430px;
    margin: 0;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}
.bits-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bits-setting-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bits-setting-field > span:first-child {
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.bits-setting-field .modern-input,
.bits-period-select {
    width: 100%;
    min-height: 38px;
    height: 38px;
    margin: 0;
}
.bits-period-select { cursor: pointer; }
.bits-ticket-control {
    display: grid;
    grid-template-columns: 86px minmax(0,1fr);
    align-items: center;
    gap: 8px;
}
.bits-ticket-control small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.2;
}
.bits-custom-period {
    margin-top: 10px;
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}
.bits-custom-period > small {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 9px;
}
.bits-live-toggle {
    margin-top: 10px;
    min-height: 50px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(169,112,255,.15);
    border-radius: 13px;
    background: rgba(169,112,255,.035);
    cursor: pointer;
}
.bits-live-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.bits-live-toggle > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bits-live-toggle strong { color: #f1f5f9; font-size: 10px; }
.bits-live-toggle small { color: var(--text-muted); font-size: 9px; line-height: 1.3; }
.bits-live-toggle .toggle-ui {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #7c8296;
}
.bits-live-toggle > input:checked + .toggle-ui {
    color: #fff;
    border-color: rgba(169,112,255,.46);
    background: rgba(169,112,255,.18);
    box-shadow: 0 0 16px rgba(169,112,255,.10);
}
.bits-sync-panel {
    margin-top: 10px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 34px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}
.bits-sync-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bits-sync-copy > strong { color: #f1f5f9; font-size: 10px; }
#bits-history-status,
#bits-eligibility-status,
#bits-live-status {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.25;
}
#bits-history-status > span, #bits-eligibility-status > span { overflow: hidden; text-overflow: ellipsis; }
#bits-history-status[data-state="ok"], #bits-eligibility-status[data-state="ok"], #bits-live-status[data-state="ok"] { color: #86efac; }
#bits-history-status[data-state="loading"], #bits-eligibility-status[data-state="loading"], #bits-live-status[data-state="loading"] { color: #c4b5fd; }
#bits-history-status[data-state="error"], #bits-eligibility-status[data-state="error"], #bits-live-status[data-state="error"] { color: #fca5a5; }
.bits-history-refresh {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
}
.bits-history-refresh i { margin: 0; }
.bits-settings-note {
    margin-top: 9px;
    display: grid;
    grid-template-columns: 14px minmax(0,1fr);
    gap: 6px;
    color: #9298aa;
    font-size: 8px;
    line-height: 1.35;
}
.bits-settings-note i { margin-top: 1px; color: #a78bfa; }
.bits-settings-actions {
    margin-top: 13px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.bits-settings-actions .cache-reset-btn,
.bits-settings-actions .btn-gradient-primary {
    width: auto;
    min-width: 112px;
    min-height: 38px;
    padding: 8px 14px;
}

@media (max-width: 760px) {
    body.setup-subs-mode #bits-bonus-panel {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .bits-open-settings { min-height: 40px; }
}

@media (max-width: 560px) {
    .bits-settings-overlay { padding: 7px; }
    .bits-settings-box { width: calc(100vw - 14px); max-height: calc(100vh - 14px); padding: 14px; border-radius: 17px; }
    .bits-settings-grid { grid-template-columns: 1fr; }
    .bits-custom-period { grid-template-columns: 1fr; }
    .bits-settings-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .bits-settings-actions .cache-reset-btn,
    .bits-settings-actions .btn-gradient-primary { min-width: 0; width: 100%; }
}

.bits-period-select {
    -webkit-appearance: none;
    appearance: none;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 38px 0 12px !important;
    line-height: 36px !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: rgba(0,0,0,.42) !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #c4b5fd 50%),
        linear-gradient(135deg, #c4b5fd 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 16px,
        calc(100% - 11px) 16px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.bits-period-select:focus {
    background-color: rgba(0,0,0,.62) !important;
}
.bits-period-select option {
    color: #f8fafc;
    background: #15151d;
    font-weight: 600;
}

.subs-chance-group-label { display:none; }
body.setup-subs-mode .subs-chance-group-label {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:4px 0 7px;
    padding:0 2px;
}
body.setup-subs-mode .subs-chance-group-label span {
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#e9e7ff;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.65px;
    white-space:nowrap;
}
body.setup-subs-mode .subs-chance-group-label span i { color:#c4b5fd; }
body.setup-subs-mode .subs-chance-group-label small {
    color:#747d92;
    font-size:8.5px;
    font-weight:650;
    text-align:right;
    line-height:1.2;
}
body.setup-subs-mode .subs-donor-group-label {
    margin-top:11px;
    padding-top:9px;
    border-top:1px solid rgba(255,255,255,.055);
}
body.setup-subs-mode .subs-donor-group-label span i { color:#fbbf24; }
body.setup-subs-mode #gift-bonus-panel { margin-top:0; }
body.setup-subs-mode #bits-bonus-panel { margin-top:6px; }

.btn-mamou {
    border-color:rgba(244,114,182,.42) !important;
    background:rgba(244,114,182,.075) !important;
    color:#f9a8d4 !important;
}
.btn-mamou:hover {
    border-color:rgba(244,114,182,.72) !important;
    background:rgba(244,114,182,.14) !important;
    color:#fce7f3 !important;
}

@media (max-width:760px) {
    body.setup-subs-mode .subs-chance-group-label { align-items:flex-start; flex-direction:column; gap:2px; }
    body.setup-subs-mode .subs-chance-group-label small { text-align:left; }
}

#bits-eligibility-status[data-state="idle"] { color: #a8adc0; }

.system-dialog-overlay.is-mamou-dialog .system-dialog-card {
    width: min(100%, 590px);
}
.system-dialog-overlay.is-mamou-dialog .system-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}
.system-dialog-overlay.is-mamou-dialog .system-dialog-actions .btn-outline,
.system-dialog-overlay.is-mamou-dialog .system-dialog-actions .btn-gradient-primary {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 12px;
    font-size: 12px;
    white-space: nowrap;
    justify-content: center;
}
@media (max-width: 430px) {
    .system-dialog-overlay.is-mamou-dialog .system-dialog-actions {
        grid-template-columns: 1fr;
    }
}

.system-dialog-overlay.is-recovery-dialog .system-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}
.system-dialog-overlay.is-recovery-dialog .system-dialog-actions .btn-outline,
.system-dialog-overlay.is-recovery-dialog .system-dialog-actions .btn-gradient-primary {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 14px;
    justify-content: center;
}
@media (max-width: 430px) {
    .system-dialog-overlay.is-recovery-dialog .system-dialog-actions {
        grid-template-columns: 1fr;
    }
}

:root{
  --sortix-content-width:1120px;
  --sortix-header-h:78px;
  --sortix-footer-h:44px;
  --sortix-accent:#9a5bff;
  --sortix-accent-2:#6c2ce2;
  --sortix-accent-rgb:154,91,255;
  --sortix-accent-text:#dcc9ff;
  --sortix-bg:#07080d;
  --sortix-panel:rgba(15,18,28,.66);
  --sortix-panel-strong:rgba(18,22,34,.80);
  --sortix-line:rgba(255,255,255,.085);
  --sortix-muted:#9da4b7;
  --sortix-shadow:0 20px 72px rgba(0,0,0,.45);
}
html,body{background:#07080d!important;color:#f7f8fc}
body{min-height:100dvh;overflow:hidden!important;background:
 radial-gradient(900px 430px at 50% -180px,rgba(var(--sortix-accent-rgb),.13),transparent 70%),
 radial-gradient(680px 360px at 22% 105%,rgba(var(--sortix-accent-rgb),.055),transparent 72%),
 linear-gradient(180deg,#090a10 0%,#07080d 62%,#06070b 100%)!important;transition:background .45s ease}
body:before{content:"";position:fixed;z-index:0;inset:0;pointer-events:none;opacity:.14;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,transparent,#000 14%,#000 86%,transparent)}
body:after{content:"";position:fixed;z-index:0;inset:-18%;pointer-events:none;background:
 radial-gradient(720px 350px at 50% 34%,rgba(var(--sortix-accent-rgb),.10),transparent 70%),
 radial-gradient(480px 280px at 18% 72%,rgba(var(--sortix-accent-rgb),.04),transparent 75%),
 radial-gradient(500px 260px at 82% 68%,rgba(var(--sortix-accent-rgb),.03),transparent 75%);filter:blur(5px);opacity:.9;animation:sortixBetaDrift 12s ease-in-out infinite alternate}
@keyframes sortixBetaDrift{from{transform:translate3d(-1.5%,-.7%,0) scale(1)}to{transform:translate3d(1.5%,.8%,0) scale(1.025)}}

.beta-global-header{position:fixed;z-index:3100;top:0;left:0;right:0;height:var(--sortix-header-h);background:linear-gradient(180deg,rgba(8,9,14,.97),rgba(8,9,14,.88));backdrop-filter:blur(18px);border-bottom:1px solid rgba(var(--sortix-accent-rgb),.11)}
.beta-global-header:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent 8%,rgba(var(--sortix-accent-rgb),.28) 32%,rgba(255,255,255,.46) 50%,rgba(var(--sortix-accent-rgb),.28) 68%,transparent 92%);opacity:.5}
.beta-global-header-inner{position:relative;width:min(var(--sortix-content-width),calc(100vw - 48px));height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between}
.beta-language-switcher{display:flex!important;align-items:center;gap:4px!important;position:static!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important}
.beta-language-switcher .language-flag-btn{width:28px!important;height:28px!important;padding:2px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.075)!important;background:rgba(12,15,23,.74)!important;opacity:.66;transition:.18s ease;display:grid!important;place-items:center!important}
.beta-language-switcher .language-flag-btn:hover{opacity:1;transform:translateY(-1px);border-color:rgba(var(--sortix-accent-rgb),.4)!important}
.beta-language-switcher .language-flag-btn.active,.beta-language-switcher .language-flag-btn[data-active="true"]{opacity:1;border-color:rgba(var(--sortix-accent-rgb),.72)!important;box-shadow:inset 0 0 0 1px rgba(var(--sortix-accent-rgb),.42),0 0 20px rgba(var(--sortix-accent-rgb),.13)}
.beta-language-switcher .language-flag-svg{width:20px!important;height:14px!important;border-radius:3px!important}
.beta-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:9px;padding:4px 8px;cursor:pointer}
.beta-brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 0 15px rgba(var(--sortix-accent-rgb),.24));animation:betaLogoFloat 4.6s ease-in-out infinite}.beta-brand span{font-size:26px;font-weight:950;letter-spacing:-.4px}.beta-brand em{font-style:normal;color:#bfc3d1;font-weight:700}.beta-brand small{position:absolute;right:-22px;top:4px;font-size:6px;letter-spacing:1px;color:var(--sortix-accent-text);border:1px solid rgba(var(--sortix-accent-rgb),.28);background:rgba(var(--sortix-accent-rgb),.08);border-radius:999px;padding:2px 4px}
@keyframes betaLogoFloat{50%{transform:translateY(-3px) rotate(-4deg)}}
.beta-header-actions{display:flex;align-items:center;gap:9px}.beta-discord-status{position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(126,94,255,.25);background:rgba(13,17,26,.76);color:#8d7cff}.beta-discord-status span{position:absolute;right:0;bottom:1px;width:9px;height:9px;border:2px solid #090b10;border-radius:50%;background:#71798a}.beta-discord-status.connected span{background:#2ae769;box-shadow:0 0 12px rgba(42,231,105,.42)}
.beta-profile{height:42px;min-width:168px;border:1px solid rgba(var(--sortix-accent-rgb),.68);background:linear-gradient(180deg,#121622,#0c0f17);color:white;border-radius:999px;padding:4px 11px 4px 5px;display:flex;align-items:center;gap:9px;box-shadow:0 0 20px rgba(var(--sortix-accent-rgb),.10);transition:.18s}.beta-profile:hover{transform:translateY(-1px);border-color:rgba(var(--sortix-accent-rgb),.9)}.beta-avatar-ring{width:31px;height:31px;border-radius:50%;padding:2px;background:linear-gradient(135deg,#4faaff,var(--sortix-accent));display:block}.beta-avatar-ring img{width:100%;height:100%;object-fit:cover;border-radius:50%;background:#161a25}.beta-profile>span:nth-child(2){font-size:13px;color:#b5b8c6}.beta-profile strong{color:#fff}.beta-profile>i{margin-left:auto;font-size:9px;color:#737a8e}
.beta-profile-menu{position:fixed;z-index:3300;top:66px;right:max(calc((100vw - var(--sortix-content-width))/2),24px);width:235px;border:1px solid rgba(255,255,255,.09);background:rgba(16,20,30,.96);backdrop-filter:blur(18px);border-radius:14px;padding:6px;box-shadow:var(--sortix-shadow)}.beta-profile-menu[hidden]{display:none}.beta-profile-menu button{width:100%;height:40px;border:0;background:transparent;color:#d4d9e4;text-align:left;padding:0 11px;border-radius:9px;display:flex;align-items:center;gap:10px;font-size:12px}.beta-profile-menu button:hover{background:#191e2c;color:#fff}.beta-profile-menu button i{width:18px;text-align:center;color:#aa78ff}.beta-profile-menu button.danger{color:#ffb4c0}.beta-profile-menu button.danger i{color:#ff6f87}
body.beta-home-visible .beta-header-actions{display:none!important}
body.beta-home-visible .beta-global-header{background:linear-gradient(180deg,rgba(8,9,14,.74),rgba(8,9,14,.24));border-bottom-color:transparent}
#main-header{display:none!important}

#landing-screen.beta-home{position:fixed!important;z-index:5!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;padding:calc(var(--sortix-header-h) + 18px) 24px calc(var(--sortix-footer-h) + 12px)!important;align-items:center!important;justify-content:center!important;background:transparent!important;overflow:hidden!important}
.beta-home-shell{width:min(var(--sortix-content-width),calc(100vw - 48px));display:grid;grid-template-columns:.92fr 1.08fr;gap:40px;align-items:center;margin:auto}
.beta-home-copy{max-width:470px}.beta-eyebrow{display:inline-flex;align-items:center;gap:8px;height:27px;padding:0 10px;border:1px solid rgba(var(--sortix-accent-rgb),.28);background:rgba(var(--sortix-accent-rgb),.07);border-radius:999px;color:var(--sortix-accent-text);font-size:9px;font-weight:900;letter-spacing:.8px;text-transform:uppercase}.beta-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--sortix-accent);box-shadow:0 0 12px rgba(var(--sortix-accent-rgb),.6);animation:betaDot 1.9s infinite}@keyframes betaDot{50%{transform:scale(.72);opacity:.55}}
.beta-home-copy h1{font-size:50px;line-height:.98;letter-spacing:-2.1px;margin:18px 0 16px;font-weight:950;max-width:460px}.beta-home-copy h1 span{display:inline;background:linear-gradient(90deg,#fff 0%,var(--sortix-accent-text) 52%,#fff 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:betaTextShine 5s linear infinite}@keyframes betaTextShine{to{background-position:-220% 0}}
.beta-home-copy p{margin:0;max-width:430px;color:#adb3c2;font-size:15px;line-height:1.62}.beta-home-copy p strong{color:#fff}.beta-platform-list{display:flex;gap:13px;margin-top:19px;color:#9299aa;font-size:11px;font-weight:800}.beta-platform-list span{display:flex;align-items:center;gap:6px}.beta-platform-list .fa-twitch{color:#a66cff}.beta-platform-list b{color:#63ff39}.beta-platform-list .fa-youtube{color:#ff4052}.beta-platform-list .fa-instagram{color:#ff6daf}.beta-home-cta-row{display:flex;align-items:center;gap:12px;margin-top:26px}.beta-home-start{min-width:210px!important;height:50px!important;border-radius:13px!important;font-size:14px!important}.beta-home-cta-row small{max-width:145px;color:#71788b;font-size:10px;line-height:1.4}
.beta-home-showcase{position:relative;height:470px;display:flex;align-items:center;justify-content:center;perspective:1200px;min-width:0}.beta-home-showcase:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(var(--sortix-accent-rgb),.18),rgba(var(--sortix-accent-rgb),.03) 55%,transparent 72%);filter:blur(14px);animation:betaHalo 5.6s ease-in-out infinite}@keyframes betaHalo{50%{transform:scale(1.05);opacity:.75}}
.beta-slider{position:relative;width:100%;height:405px}.beta-slide{position:absolute;top:50%;left:50%;width:370px;height:388px;border:1px solid rgba(255,255,255,.09);border-radius:26px;background:linear-gradient(150deg,rgba(22,26,38,.76),rgba(8,11,17,.72));backdrop-filter:blur(20px) saturate(130%);box-shadow:0 26px 90px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.045);transform:translate(-50%,-50%);overflow:hidden;transition:transform .55s cubic-bezier(.2,.82,.2,1),opacity .48s ease,filter .48s ease,border-color .45s ease,box-shadow .45s ease;user-select:none;opacity:0;pointer-events:none}.beta-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 12%,rgba(255,255,255,.045) 40%,transparent 62%);transform:translateX(-130%);animation:betaGlassSweep 7s ease-in-out infinite}@keyframes betaGlassSweep{0%,54%{transform:translateX(-130%)}70%,100%{transform:translateX(140%)}}
.beta-slide.active{z-index:6;transform:translate(-50%,-50%) scale(1);opacity:1;filter:none;pointer-events:auto;border-color:rgba(var(--sortix-accent-rgb),.55);box-shadow:0 34px 110px rgba(0,0,0,.5),0 0 45px rgba(var(--sortix-accent-rgb),.12),inset 0 1px 0 rgba(255,255,255,.065)}.beta-slide.prev{z-index:3;transform:translate(calc(-50% - 248px),-50%) scale(.78) rotateY(10deg);opacity:.34;filter:saturate(.65) brightness(.72)}.beta-slide.next{z-index:3;transform:translate(calc(-50% + 248px),-50%) scale(.78) rotateY(-10deg);opacity:.34;filter:saturate(.65) brightness(.72)}.beta-slide.far-prev{z-index:1;transform:translate(calc(-50% - 405px),-50%) scale(.62) rotateY(14deg);opacity:.06}.beta-slide.far-next{z-index:1;transform:translate(calc(-50% + 405px),-50%) scale(.62) rotateY(-14deg);opacity:.06}
.beta-game-pill{position:absolute;z-index:2;top:22px;left:22px;height:27px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(var(--sortix-accent-rgb),.22);background:rgba(var(--sortix-accent-rgb),.07);border-radius:999px;color:var(--sortix-accent-text);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.8px}.beta-game-pill i{width:7px;height:7px;border-radius:50%;background:var(--sortix-accent)}.beta-slide-visual{height:250px;border-bottom:1px solid rgba(255,255,255,.065);position:relative;display:grid;place-items:center}.beta-slide-copy{padding:17px 22px 20px}.beta-slide-copy h3{font-size:24px;margin:0 0 7px;letter-spacing:-.8px}.beta-slide-copy p{margin:0;color:#aeb5c4;font-size:12px;line-height:1.45}.beta-slide-copy>div{display:flex;gap:6px;margin-top:12px}.beta-slide-copy>div span{font-size:7px;font-weight:900;letter-spacing:.7px;border:1px solid rgba(var(--sortix-accent-rgb),.22);background:rgba(var(--sortix-accent-rgb),.06);color:var(--sortix-accent-text);border-radius:999px;padding:4px 7px}.beta-wheel-visual{display:grid;place-items:center}.beta-wheel{width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--sortix-accent) 0 12.5%,#171b25 12.5% 25%,var(--sortix-accent) 25% 37.5%,#171b25 37.5% 50%,var(--sortix-accent) 50% 62.5%,#171b25 62.5% 75%,var(--sortix-accent) 75% 87.5%,#171b25 87.5%);box-shadow:inset 0 0 0 19px rgba(6,8,13,.42),0 0 32px rgba(var(--sortix-accent-rgb),.18);animation:betaWheel 5s linear infinite}.beta-wheel:after{content:"";position:absolute;width:48px;height:48px;border-radius:50%;background:#090c12;left:50%;top:50%;transform:translate(-50%,-50%)}.beta-wheel-pointer{position:absolute;z-index:2;top:47px;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:18px solid var(--sortix-accent)}@keyframes betaWheel{to{transform:rotate(360deg)}}.beta-cards-visual{display:flex;align-items:center;justify-content:center}.beta-cards-visual .c{position:absolute;width:86px;height:125px;border:1px solid rgba(var(--sortix-accent-rgb),.42);background:linear-gradient(155deg,rgba(var(--sortix-accent-rgb),.20),rgba(15,17,26,.88));border-radius:16px;display:grid;place-items:center;color:var(--sortix-accent-text);font-size:30px;box-shadow:0 18px 38px rgba(0,0,0,.3)}.beta-cards-visual .c1{transform:translateX(-54px) rotate(-13deg);animation:cardFloatA 4s ease-in-out infinite}.beta-cards-visual .c2{z-index:2;animation:cardFloatB 3.6s ease-in-out infinite}.beta-cards-visual .c3{transform:translateX(54px) rotate(13deg);animation:cardFloatC 4.2s ease-in-out infinite}@keyframes cardFloatA{50%{transform:translate(-54px,-5px) rotate(-10deg)}}@keyframes cardFloatB{50%{transform:translateY(-8px)}}@keyframes cardFloatC{50%{transform:translate(54px,-5px) rotate(10deg)}}.beta-maze-visual .maze-line{position:absolute;background:rgba(var(--sortix-accent-rgb),.5);box-shadow:0 0 12px rgba(var(--sortix-accent-rgb),.18)}.beta-maze-visual .a{left:70px;top:150px;width:110px;height:4px}.beta-maze-visual .b{left:176px;top:90px;width:4px;height:64px}.beta-maze-visual .c{left:176px;top:90px;width:110px;height:4px}.beta-maze-visual .maze-dot{position:absolute;left:76px;top:142px;width:18px;height:18px;border-radius:50%;background:var(--sortix-accent);box-shadow:0 0 18px rgba(var(--sortix-accent-rgb),.5);animation:mazeRun 3s ease-in-out infinite}@keyframes mazeRun{0%{transform:translate(0,0)}45%{transform:translate(96px,0)}65%{transform:translate(96px,-60px)}100%{transform:translate(196px,-60px)}}.beta-ball-visual{background-image:radial-gradient(circle,rgba(255,255,255,.22) 0 4px,transparent 4.5px);background-size:35px 30px;background-position:66px 74px}.beta-ball{position:absolute;width:19px;height:19px;border-radius:50%;background:var(--sortix-accent);box-shadow:0 0 16px rgba(var(--sortix-accent-rgb),.55)}.beta-ball.b1{left:180px;top:74px;animation:ballFall 2.5s ease-in infinite}.beta-ball.b2{left:220px;top:125px;animation:ballFall 2.1s .5s ease-in infinite}@keyframes ballFall{0%{transform:translate(0,-24px);opacity:0}15%{opacity:1}55%{transform:translate(-22px,54px)}100%{transform:translate(22px,120px);opacity:.35}}.beta-quiz-visual{grid-template-columns:72px 72px;grid-template-rows:44px 44px;gap:58px 76px}.beta-quiz-visual span{width:72px;height:38px;border:1px solid rgba(var(--sortix-accent-rgb),.45);border-radius:10px;display:grid;place-items:center;font-weight:900}.beta-quiz-visual b{position:absolute;width:78px;height:78px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(var(--sortix-accent-rgb),.35),rgba(var(--sortix-accent-rgb),.09));border:1px solid rgba(var(--sortix-accent-rgb),.55);font-size:38px;box-shadow:0 0 32px rgba(var(--sortix-accent-rgb),.16);animation:qPulse 2.4s ease-in-out infinite}@keyframes qPulse{50%{transform:scale(1.06)}}.beta-slider-dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:7px;align-items:center}.beta-slider-dots button{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.18);transition:.2s}.beta-slider-dots button.active{width:24px;background:var(--sortix-accent);box-shadow:0 0 16px rgba(var(--sortix-accent-rgb),.28)}

#setup-modal{z-index:1200!important;top:var(--sortix-header-h)!important;bottom:var(--sortix-footer-h)!important;height:auto!important;min-height:0!important;padding:16px 24px!important;background:transparent!important;backdrop-filter:none!important;align-items:center!important;overflow:hidden!important}
#setup-modal>.setup-box{width:min(var(--sortix-content-width),calc(100vw - 48px))!important;max-width:none!important;max-height:calc(100dvh - var(--sortix-header-h) - var(--sortix-footer-h) - 32px)!important;min-height:0!important;margin:auto!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:9px!important}
#setup-modal .modal-title,#setup-modal .setup-help-btn,#setup-modal .setup-intro{display:none!important}
#setup-modal:before{content:"ESCOLHA COMO VAI SORTEAR";position:absolute;top:14px;left:50%;transform:translateX(-50%);color:#fff;font-size:20px;font-weight:950;letter-spacing:-.4px;pointer-events:none}
#setup-modal>.setup-box{padding-top:42px!important}
.mode-card-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:10px!important;margin:0!important}.mode-card{height:74px!important;min-height:74px!important;max-width:none!important;border:1px solid rgba(255,255,255,.08)!important;background:linear-gradient(180deg,rgba(16,20,30,.86),rgba(10,13,20,.82))!important;border-radius:15px!important;padding:10px 20px 10px 10px!important;grid-template-columns:40px 1fr!important;gap:9px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;overflow:hidden!important;position:relative!important}.mode-card:hover{transform:translateY(-2px)!important;border-color:rgba(var(--sortix-accent-rgb),.34)!important}.mode-card.active{border-color:rgba(var(--sortix-accent-rgb),.7)!important;background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.13),rgba(12,12,20,.86))!important;box-shadow:0 9px 28px rgba(var(--sortix-accent-rgb),.10),inset 0 0 0 1px rgba(var(--sortix-accent-rgb),.08)!important}.mode-card.active:after{content:"";position:absolute;right:-5px;top:50%;width:12px;height:21px;transform:translateY(-50%);border-radius:8px;background:var(--sortix-accent);box-shadow:0 0 18px rgba(var(--sortix-accent-rgb),.55)}.mode-card-icon{width:39px!important;height:39px!important;border-radius:12px!important;background:#080b11!important;border:1px solid rgba(255,255,255,.07)!important;color:var(--sortix-accent)!important}.mode-card-content strong{font-size:12.5px!important}.mode-card-content small{font-size:9px!important;line-height:1.18!important;color:#9ea4b5!important}.mode-help{font-size:10px!important;line-height:1.25!important;margin:0!important;min-height:0!important;color:#aeb4c4!important;text-align:center!important}
.raffle-style-panel{margin:0!important;padding:10px!important;border:1px solid rgba(255,255,255,.07)!important;background:linear-gradient(180deg,rgba(15,18,28,.72),rgba(10,13,20,.72))!important;border-radius:17px!important;box-shadow:var(--sortix-shadow)!important}.raffle-style-heading{margin-bottom:8px!important}.raffle-style-heading>span{font-size:16px!important;font-weight:950!important}.raffle-style-heading-actions small{font-size:10px!important;color:#aab0c0!important}.raffle-style-options{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:8px!important}.raffle-style-option{height:78px!important;border-radius:14px!important;background:rgba(14,18,27,.82)!important;border:1px solid rgba(255,255,255,.075)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:8px!important;position:relative!important;overflow:hidden!important}.raffle-style-option strong{font-size:11px!important}.raffle-style-icon{width:auto!important;height:auto!important;background:transparent!important;border:0!important;font-size:22px!important;color:#aeb4c5!important}.raffle-style-option.active{border-color:rgba(var(--sortix-accent-rgb),.68)!important;background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.16),rgba(16,13,24,.86))!important;box-shadow:0 8px 28px rgba(var(--sortix-accent-rgb),.10)!important}.beta-new-badge{position:absolute!important;top:5px!important;right:6px!important;padding:2px 5px!important;border-radius:999px!important;background:#197b33!important;color:#b7ffc6!important;font-size:6px!important;font-weight:950!important}
.setup-quick-actions{display:none!important}
.platform-selector{display:flex!important;gap:8px!important;margin:0!important}.plat-checkbox{flex:1!important;max-width:none!important;height:38px!important;border-radius:999px!important;background:#0d111a!important;border:1px solid rgba(255,255,255,.075)!important;font-size:14px!important;font-weight:900!important}.modern-input{height:42px!important;border-radius:12px!important;background:#0d1118!important;border:1px solid rgba(255,255,255,.07)!important;color:#fff!important;font-size:14px!important}.input-group{margin:0!important}.input-group+.input-group{margin-top:0!important}.social-source-group{margin:0!important}.confirmation-panel{margin:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.confirmation-field,.auto-confirm-toggle,#weights-toggle-btn{height:52px!important;min-height:52px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.075)!important;background:rgba(15,19,29,.82)!important}.confirmation-field{padding:7px 10px!important}.confirmation-input-wrap input{height:34px!important}.auto-confirm-toggle strong{font-size:10px!important}.weights-toggle-btn{margin:0!important;padding:6px 10px!important}.weights-toggle-main{gap:8px!important}.weights-toggle-icon{width:33px!important;height:33px!important}.weights-toggle-copy strong{font-size:10px!important}.setup-box>#start-btn{height:46px!important;border-radius:999px!important;margin:0!important;font-size:15px!important;font-weight:950!important;box-shadow:0 14px 34px rgba(var(--sortix-accent-rgb),.18)!important}
.twitch-subs-auth-box,.instagram-auth-box,.comments-options-panel,.quiz-setup-panel{margin:0!important;border-radius:14px!important;border:1px solid rgba(255,255,255,.075)!important;background:rgba(15,19,29,.76)!important}.twitch-subs-auth-box,.instagram-auth-box{padding:8px 10px!important}.auth-copy strong{font-size:10px!important}.auth-copy span{font-size:8px!important}.auth-status{font-size:8px!important}.comments-options-panel{padding:7px!important;gap:7px!important;display:flex;flex-wrap:wrap}.comments-source-note{width:100%;font-size:9px!important;padding:6px 8px!important}.beta-comments-toggle{flex:1;min-width:260px;padding:7px 9px!important;margin:0!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:11px!important;background:#0d1118!important}.comments-unique-copy>span{font-size:10px!important}.comments-unique-copy small{font-size:7.5px!important;line-height:1.25!important}
body.setup-comments-mode #raffle-style-panel,body.setup-comments-mode #weights-toggle-btn,body.setup-comments-mode .confirmation-panel{display:none!important}body.setup-subs-mode #raffle-style-panel{display:none!important}body.setup-comments-mode .mode-help,body.setup-subs-mode .mode-help{margin-bottom:2px!important}
.quiz-setup-panel{padding:9px 10px!important}.quiz-config-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.quiz-config-head span{font-size:11px;font-weight:900;color:var(--sortix-accent-text)}.quiz-config-head small{font-size:8px;color:#858da0}.quiz-config-grid{display:grid;grid-template-columns:1.05fr .7fr .65fr .65fr 1fr 2.2fr;gap:7px}.quiz-config-grid label{display:flex;flex-direction:column;gap:4px}.quiz-config-grid label>span{font-size:7.5px;font-weight:900;color:#8f97aa;text-transform:uppercase;letter-spacing:.45px}.quiz-config-grid .modern-input{height:36px!important;font-size:11px!important;padding:0 9px!important}.quiz-inline-input{position:relative}.quiz-inline-input .modern-input{width:100%}.quiz-inline-input em{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-style:normal;font-size:9px;color:#7f8799}.quiz-sheet-field{grid-column:auto}.setup-chat-mode[data-quiz="true"]{}

.modal-overlay:not(#setup-modal):not(#rouletteModal):not(#countdownOverlay):not(#quizGameOverlay){backdrop-filter:blur(10px)!important;background:rgba(3,4,8,.72)!important}.weights-box,.custom-raffle-box,.discord-box,.howto-box,.ticket-audit-dialog,.cards-help-dialog,.system-dialog-card{border:1px solid rgba(255,255,255,.09)!important;background:linear-gradient(180deg,rgba(18,23,34,.96),rgba(10,14,21,.96))!important;box-shadow:0 32px 110px rgba(0,0,0,.72),0 0 55px rgba(var(--sortix-accent-rgb),.08)!important;border-radius:18px!important;backdrop-filter:blur(18px)!important}

#app-container{position:fixed!important;z-index:20!important;inset:var(--sortix-header-h) 0 var(--sortix-footer-h)!important;width:100%!important;height:auto!important;min-height:0!important;background:transparent!important;overflow:hidden!important;padding:16px 24px!important;display:none;align-items:center!important;justify-content:center!important}
#app-container>.main-container{width:min(var(--sortix-content-width),calc(100vw - 48px))!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0 auto!important;padding:0!important;display:flex!important;flex-direction:column!important;gap:10px!important}
.dashboard-card,#winners-history-card{display:none!important}.beta-gallery-top{flex:0 0 auto;display:grid;grid-template-columns:102px 214px 1fr 48px 92px 92px 92px 96px;gap:8px;padding:9px;border:1px solid rgba(255,255,255,.07);background:linear-gradient(180deg,rgba(17,21,31,.84),rgba(10,13,20,.82));border-radius:20px;box-shadow:var(--sortix-shadow),inset 0 1px 0 rgba(255,255,255,.03);backdrop-filter:blur(18px)}.beta-gallery-top>*{height:42px!important;border-radius:14px!important}.beta-gallery-back,.beta-gallery-top #draw-btn{margin:0!important}.beta-gallery-back{border:1px solid rgba(255,255,255,.075);background:#101521;color:#d4d8e2;font-size:11px;font-weight:850;padding:0 10px}.beta-gallery-top #draw-btn{width:100%!important;min-width:0!important;font-size:12px!important;border-radius:14px!important}.beta-command-box{display:flex;flex-direction:column;align-items:center;justify-content:center}.beta-command-box span{font-size:11px;color:#8f95a7;line-height:1}.beta-command-box strong{margin-top:3px;font-size:16px;color:#fff;line-height:1}.beta-gallery-icon{border:1px solid rgba(255,255,255,.075);background:#101521;color:#d8c4ff;display:grid;place-items:center}.beta-gallery-metric{border:1px solid rgba(255,255,255,.075);background:#101521;padding:6px 10px;display:flex;flex-direction:column;justify-content:center}.beta-gallery-metric span{font-size:7.5px;color:#8c93a7;text-transform:uppercase;font-weight:900;letter-spacing:.65px}.beta-gallery-metric strong{margin-top:3px;font-size:13px;line-height:1}.beta-gallery-filterbar{flex:0 0 auto;display:grid;grid-template-columns:1fr auto;gap:8px}.beta-gallery-filterbar .gallery-participant-search{height:46px!important;max-width:none!important;width:100%!important;border-radius:14px!important;background:#0d1118!important;border:1px solid rgba(255,255,255,.075)!important}.beta-gallery-filterbar .gallery-participant-search input{font-size:13px!important}.beta-gallery-filters{display:flex;gap:8px;align-items:center}.beta-filter-chip{height:40px;padding:0 14px;border-radius:13px;border:1px solid rgba(255,255,255,.075);background:#101521;color:#b4bad0;font-size:11px;font-weight:850}.beta-filter-chip.active{color:#fff;border-color:rgba(var(--sortix-accent-rgb),.56);background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.16),rgba(22,16,35,.86))}.beta-filter-chip.icon{width:40px;padding:0}
.participants-section{flex:1!important;min-height:0!important;margin:0!important;padding:10px!important;border:1px solid rgba(255,255,255,.07)!important;background:linear-gradient(180deg,rgba(17,21,31,.84),rgba(10,13,20,.82))!important;border-radius:20px!important;box-shadow:var(--sortix-shadow),inset 0 1px 0 rgba(255,255,255,.03)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.participants-section>.grid-toolbar{padding:2px 4px 10px!important;min-height:28px!important}.participants-section .grid-title{font-size:17px!important;font-weight:900!important}.participants-section .grid-toolbar-metrics{display:none!important}.grid-container{flex:1!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;padding:10px!important;border:1px solid rgba(255,255,255,.055)!important;background:linear-gradient(180deg,rgba(7,10,15,.72),rgba(11,15,22,.62))!important;border-radius:18px!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px!important;align-content:start!important}.grid-container::-webkit-scrollbar{width:10px}.grid-container::-webkit-scrollbar-track{background:rgba(255,255,255,.03);border-radius:999px}.grid-container::-webkit-scrollbar-thumb{background:rgba(var(--sortix-accent-rgb),.32);border-radius:999px;border:2px solid rgba(12,15,22,.85)}

.empty-state{grid-column:1/-1!important;align-self:center!important;justify-self:center!important}

footer{position:fixed!important;z-index:3050!important;left:0!important;right:0!important;bottom:0!important;height:var(--sortix-footer-h)!important;min-height:var(--sortix-footer-h)!important;margin:0!important;padding:0!important;background:linear-gradient(0deg,rgba(8,9,14,.97),rgba(8,9,14,.86))!important;backdrop-filter:blur(15px)!important;border-top:1px solid #141927!important;display:flex!important;align-items:center!important;justify-content:center!important}.footer-content{width:min(var(--sortix-content-width),calc(100vw - 48px))!important;max-width:none!important;margin:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;color:#7f8596!important;font-size:10px!important}.footer-support-btn{height:27px!important;padding:0 10px!important;font-size:9px!important;border-radius:999px!important}.footer-privacy-link,.footer-seo-guides,.footer-seo-guides a{font-size:9px!important;color:#777f91!important}

#rouletteModal{top:0!important;bottom:0!important;background:rgba(7,8,13,.97)!important;backdrop-filter:blur(10px)!important}.roulette-window,.roulette-result-panel,.cards-game-board,.maze-game-board,.ball-game-board{border-color:rgba(255,255,255,.085)!important;background:linear-gradient(180deg,rgba(17,21,31,.88),rgba(10,13,20,.86))!important;box-shadow:0 28px 90px rgba(0,0,0,.48),0 0 44px rgba(var(--sortix-accent-rgb),.06)!important;backdrop-filter:blur(16px)!important}.btn-gradient-primary{background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent))!important;border-color:rgba(var(--sortix-accent-rgb),.52)!important;box-shadow:0 12px 30px rgba(var(--sortix-accent-rgb),.15)!important}.btn-outline{background:rgba(15,19,29,.78)!important;border-color:rgba(255,255,255,.09)!important;color:#d8dce6!important}.neon-card,.neon-card-strong{border-color:rgba(255,255,255,.08)!important}.roulette-result-card,.winner-profile-card,.ticket-audit-summary-card{background:rgba(13,17,25,.78)!important;backdrop-filter:blur(12px)!important}
.volume-control{z-index:3200!important;right:28px!important;bottom:calc(var(--sortix-footer-h) + 16px)!important}

.quiz-game-overlay{position:fixed;z-index:2200;inset:var(--sortix-header-h) 0 var(--sortix-footer-h);padding:14px 24px;background:rgba(7,8,13,.96);backdrop-filter:blur(10px);align-items:center;justify-content:center;overflow:hidden}.quiz-game-shell{width:min(var(--sortix-content-width),calc(100vw - 48px));height:100%;min-height:0;margin:auto;display:flex;flex-direction:column;gap:10px}.quiz-game-topbar{flex:0 0 58px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(17,21,31,.88),rgba(10,13,20,.86));border-radius:17px;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--sortix-shadow)}.quiz-game-topbar>div:first-child{display:flex;align-items:center;gap:12px}.quiz-mode-pill{height:32px;padding:0 11px;border:1px solid rgba(var(--sortix-accent-rgb),.3);background:rgba(var(--sortix-accent-rgb),.08);color:var(--sortix-accent-text);border-radius:999px;display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:900;letter-spacing:.5px}.quiz-game-topbar>div:first-child>strong{font-size:16px}.quiz-live-meta{display:flex;gap:7px}.quiz-live-meta>span{height:40px;min-width:80px;border:1px solid rgba(255,255,255,.07);background:#0c1119;border-radius:12px;padding:5px 9px;display:flex;flex-direction:column;justify-content:center}.quiz-live-meta small{font-size:7px;color:#7f879b;text-transform:uppercase;font-weight:900;letter-spacing:.6px}.quiz-live-meta b{font-size:12px;margin-top:2px}.quiz-game-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:10px}.quiz-stage,.quiz-ranking{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(17,21,31,.88),rgba(10,13,20,.86));border-radius:20px;box-shadow:var(--sortix-shadow);min-height:0}.quiz-stage{padding:14px;display:flex;flex-direction:column}.quiz-question-card{flex:1;min-height:0;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(8,12,18,.84),rgba(12,16,24,.68));border-radius:18px;padding:18px;display:flex;flex-direction:column}.quiz-difficulty-pill{align-self:flex-start;height:25px;padding:0 9px;border-radius:999px;border:1px solid rgba(var(--sortix-accent-rgb),.25);background:rgba(var(--sortix-accent-rgb),.07);color:var(--sortix-accent-text);font-size:8px;font-weight:900;display:flex;align-items:center;text-transform:uppercase;letter-spacing:.7px}.quiz-question-card h2{margin:16px auto 18px;text-align:center;font-size:27px;line-height:1.15;letter-spacing:-.7px;max-width:820px}.quiz-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:1;align-content:center}.quiz-option{min-height:78px;border:1px solid rgba(255,255,255,.08);background:#0e131c;color:#e9ecf4;border-radius:15px;padding:10px 14px;display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;text-align:left;transition:.18s}.quiz-option:hover{transform:translateY(-1px);border-color:rgba(var(--sortix-accent-rgb),.34)}.quiz-option>b{width:36px;height:36px;border-radius:11px;border:1px solid rgba(var(--sortix-accent-rgb),.3);background:rgba(var(--sortix-accent-rgb),.09);color:var(--sortix-accent-text);display:grid;place-items:center;font-size:15px}.quiz-option>span{font-size:14px;font-weight:800}.quiz-option>em{font-style:normal;font-size:11px;font-weight:900;color:#9da5b9}.quiz-option.correct{border-color:rgba(67,220,121,.6);background:rgba(29,93,54,.35);box-shadow:0 0 24px rgba(67,220,121,.09)}.quiz-option.wrong{opacity:.55}.quiz-timer{height:32px;margin-top:14px;border:1px solid rgba(255,255,255,.07);background:#090d14;border-radius:999px;position:relative;overflow:hidden}.quiz-timer>div{position:absolute;inset:0 auto 0 0;width:100%;background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent));transition:width .16s linear}.quiz-timer strong{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;text-shadow:0 1px 3px #000}.quiz-round-message{text-align:center;margin-top:8px;color:#9ca4b7;font-size:10px;min-height:15px}.quiz-stage-actions{height:48px;margin-top:10px;display:grid;grid-template-columns:110px 110px 1fr 110px;gap:8px}.quiz-stage-actions button{height:48px!important;border-radius:13px!important;font-size:11px!important;font-weight:900!important}.quiz-ranking{padding:12px;display:flex;flex-direction:column}.quiz-ranking-head{display:flex;align-items:center;justify-content:space-between;padding:3px 2px 10px}.quiz-ranking-head small{font-size:7px;color:#7f879b;font-weight:900;letter-spacing:.8px}.quiz-ranking-head h3{font-size:16px;margin:2px 0 0}.quiz-live-dot{height:25px;padding:0 8px;border:1px solid rgba(67,220,121,.18);background:rgba(26,65,38,.28);color:#aaffc3;border-radius:999px;font-size:7px;font-weight:900;display:flex;align-items:center;gap:5px}.quiz-live-dot i{width:7px;height:7px;border-radius:50%;background:#43dc79;box-shadow:0 0 9px rgba(67,220,121,.4)}.quiz-ranking-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:7px}.quiz-rank-row{min-height:48px;border:1px solid rgba(255,255,255,.06);background:#0c1119;border-radius:12px;padding:7px;display:grid;grid-template-columns:24px 35px 1fr auto;gap:7px;align-items:center}.quiz-rank-row .pos{font-size:11px;font-weight:950;color:#8f97aa;text-align:center}.quiz-rank-row img{width:34px;height:34px;border-radius:10px;object-fit:cover}.quiz-rank-row .copy{min-width:0;display:flex;flex-direction:column}.quiz-rank-row .copy strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quiz-rank-row .copy small{font-size:7.5px;color:#7f8799;margin-top:2px}.quiz-rank-row .score{text-align:right;font-size:10px;font-weight:900}.quiz-rank-row.eliminated{opacity:.38;filter:grayscale(.5)}.quiz-victory-overlay{position:absolute;z-index:10;inset:0;background:rgba(5,7,11,.86);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center}.quiz-victory-card{width:min(620px,90vw);border:1px solid rgba(var(--sortix-accent-rgb),.28);background:linear-gradient(180deg,rgba(19,24,35,.97),rgba(10,14,21,.97));border-radius:22px;padding:24px;box-shadow:0 32px 110px rgba(0,0,0,.7),0 0 60px rgba(var(--sortix-accent-rgb),.10);text-align:center}.quiz-victory-card>span{font-size:8px;color:var(--sortix-accent-text);font-weight:900;letter-spacing:1px}.quiz-victory-card h2{font-size:25px;margin:7px 0 18px}.quiz-podium{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:9px;align-items:end}.quiz-podium-item{border:1px solid rgba(255,255,255,.07);background:#0d121b;border-radius:14px;padding:12px}.quiz-podium-item.first{padding-top:20px;border-color:rgba(255,202,66,.25)}.quiz-podium-item img{width:55px;height:55px;border-radius:16px;object-fit:cover}.quiz-podium-item strong{display:block;font-size:11px;margin-top:7px}.quiz-podium-item small{font-size:9px;color:#9ca4b7}.quiz-victory-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.quiz-victory-actions button{height:44px!important;border-radius:12px!important;font-size:11px!important;font-weight:900!important}

@media(max-height:820px) and (min-width:900px){:root{--sortix-header-h:70px;--sortix-footer-h:38px}.beta-brand img{width:38px;height:38px}.beta-brand span{font-size:23px}.beta-language-switcher .language-flag-btn{width:29px!important;height:29px!important}.mode-card{height:66px!important;min-height:66px!important}.raffle-style-option{height:68px!important}.modern-input{height:37px!important}.confirmation-field,.auto-confirm-toggle,#weights-toggle-btn{height:46px!important;min-height:46px!important}.setup-box>#start-btn{height:43px!important}.beta-home-copy h1{font-size:45px}.beta-home-showcase{height:430px}.beta-slide{height:355px}.beta-slide-visual{height:220px}}
@media(max-width:1160px){:root{--sortix-content-width:1060px}.grid-container{grid-template-columns:repeat(6,minmax(0,1fr))!important}.beta-gallery-top{grid-template-columns:94px 194px 1fr 46px 84px 84px 84px 90px}.quiz-config-grid{grid-template-columns:1fr .65fr .6fr .6fr 1fr 1.8fr}}
@media(max-width:980px){:root{--sortix-content-width:940px}.beta-home-shell{grid-template-columns:1fr}.beta-home-copy{text-align:center;max-width:none}.beta-platform-list,.beta-home-cta-row{justify-content:center}.beta-home-copy h1,.beta-home-copy p{margin-left:auto;margin-right:auto}.beta-home-showcase{height:400px}.mode-card-grid{grid-template-columns:repeat(2,1fr)!important}.raffle-style-options{grid-template-columns:repeat(5,1fr)!important}.beta-gallery-top{grid-template-columns:1fr 1fr}.beta-command-box{grid-column:1/-1}.beta-gallery-filterbar{grid-template-columns:1fr}.grid-container{grid-template-columns:repeat(4,minmax(0,1fr))!important}.quiz-game-main{grid-template-columns:1fr}.quiz-ranking{display:none}.quiz-config-grid{grid-template-columns:repeat(3,1fr)}.quiz-sheet-field{grid-column:1/-1}}
@media(max-width:760px){body{overflow:auto!important}.beta-global-header-inner,.footer-content{width:calc(100vw - 24px)!important}.beta-profile{min-width:auto;width:44px;padding:5px}.beta-profile>span:nth-child(2),.beta-profile>i{display:none}.beta-brand span{font-size:19px}.beta-brand img{width:34px;height:34px}.beta-brand small{display:none}.beta-language-switcher{gap:3px!important}.beta-language-switcher .language-flag-btn{width:28px!important;height:28px!important}.beta-language-switcher .language-flag-svg{width:20px!important;height:14px!important}.beta-discord-status{display:none}.beta-home-shell{width:calc(100vw - 24px);grid-template-columns:1fr}.beta-home-copy h1{font-size:38px}.beta-home-showcase{height:390px}.beta-slide{width:300px}.beta-slide.prev{transform:translate(calc(-50% - 190px),-50%) scale(.72)}.beta-slide.next{transform:translate(calc(-50% + 190px),-50%) scale(.72)}#setup-modal{overflow:auto!important}.mode-card-grid{grid-template-columns:1fr 1fr!important}.raffle-style-options{grid-template-columns:repeat(3,1fr)!important}.quiz-config-grid{grid-template-columns:1fr 1fr}.quiz-sheet-field{grid-column:1/-1}#app-container{position:relative!important;inset:auto!important;height:auto!important;min-height:calc(100dvh - var(--sortix-header-h) - var(--sortix-footer-h));padding:92px 12px 70px!important}.grid-container{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:56vh!important}.footer-content{flex-wrap:wrap!important}.footer-seo-guides{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.beta-game-summary{width:100%;min-height:62px;margin-top:8px;border:1px solid rgba(255,255,255,.075);background:linear-gradient(180deg,rgba(17,21,31,.80),rgba(10,13,20,.78));border-radius:14px;color:#fff;padding:8px 10px;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:left;transition:.18s ease}.beta-game-summary:hover{transform:translateY(-1px);border-color:rgba(var(--sortix-accent-rgb),.34);background:rgba(18,22,33,.92)}.beta-game-summary-icon{width:40px;height:40px;border-radius:11px;border:1px solid rgba(var(--sortix-accent-rgb),.28);background:rgba(var(--sortix-accent-rgb),.08);color:var(--sortix-accent-text);display:grid;place-items:center}.beta-game-summary-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.beta-game-summary-copy strong{font-size:11px}.beta-game-summary-copy small{font-size:8.5px;line-height:1.35;color:#9da5b8}.beta-game-summary-open{height:28px;padding:0 9px;border-radius:999px;border:1px solid rgba(255,255,255,.075);background:#0d1119;color:#aeb5c6;font-size:8px;font-weight:900;display:inline-flex;align-items:center;gap:6px}

.beta-generic-modal{position:fixed;z-index:3400;inset:0;background:rgba(3,4,8,.72);backdrop-filter:blur(10px);display:grid;place-items:center;padding:20px}.beta-generic-card{position:relative;width:min(520px,92vw);max-height:72vh;overflow:auto;border:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,rgba(18,23,34,.97),rgba(10,14,21,.97));border-radius:18px;padding:18px;box-shadow:0 32px 110px rgba(0,0,0,.72),0 0 55px rgba(var(--sortix-accent-rgb),.08)}.beta-generic-card h3{margin:0 38px 15px 0;font-size:20px}.beta-generic-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border:1px solid rgba(255,255,255,.09);background:#141925;color:#b8bfce;border-radius:10px;font-size:20px}.beta-generic-body{display:flex;flex-direction:column;gap:8px}.beta-history-copy .history-item,.beta-history-copy>*{margin-bottom:7px}.beta-connection-row{height:46px;border:1px solid rgba(255,255,255,.06);background:#0d121b;border-radius:11px;padding:0 11px;display:grid;grid-template-columns:24px 1fr auto;gap:9px;align-items:center}.beta-connection-row i{color:var(--sortix-accent)}.beta-connection-row strong{font-size:11px}.beta-connection-row span{font-size:9px;color:#8d95a8}

#landing-screen.beta-home{
  padding:calc(var(--sortix-header-h) + 28px) 24px calc(var(--sortix-footer-h) + 24px)!important;
}
.beta-home-shell{
  width:min(var(--sortix-content-width),calc(100vw - 48px))!important;
  grid-template-columns:.92fr 1.08fr!important;
  gap:40px!important;
  align-items:center!important;
}
.beta-home-copy{max-width:470px!important;padding-left:0!important}
.beta-eyebrow{
  height:28px!important;padding:0 10px!important;border-radius:999px!important;
  font-size:10px!important;font-weight:900!important;letter-spacing:.9px!important;
  text-transform:uppercase!important;
}
.beta-home-copy h1{
  font-size:52px!important;line-height:.98!important;letter-spacing:-2.2px!important;
  margin:18px 0 16px!important;font-weight:950!important;max-width:460px!important;
}
.beta-home-copy h1>span{
  display:inline-block!important;
  background:linear-gradient(90deg,#fff 0%,var(--sortix-accent-text) 52%,#fff 100%)!important;
  background-size:220% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;
  color:transparent!important;animation:beta2TextShine 5s linear infinite!important;
}
@keyframes beta2TextShine{to{background-position:-220% 0}}
.beta-home-copy p{max-width:430px!important;margin:0!important;color:#adb3c2!important;font-size:15px!important;line-height:1.62!important}
.beta-platform-list{gap:14px!important;margin-top:20px!important;font-size:11px!important;font-weight:800!important}
.beta-home-cta-row{gap:12px!important;margin-top:28px!important;align-items:center!important}
.beta-home-start{
  height:52px!important;min-width:215px!important;padding:0 25px!important;
  border:1px solid rgba(255,255,255,.09)!important;border-radius:14px!important;
  color:#fff!important;font-weight:950!important;font-size:15px!important;
  background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent))!important;
  box-shadow:0 13px 34px rgba(var(--sortix-accent-rgb),.22),inset 0 1px 0 rgba(255,255,255,.2)!important;
  transition:.22s!important;position:relative!important;overflow:hidden!important;
}
.beta-home-start:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 22%,rgba(255,255,255,.22) 48%,transparent 72%);transform:translateX(-130%);transition:.55s}
.beta-home-start:hover{transform:translateY(-2px) scale(1.01)!important;box-shadow:0 18px 40px rgba(var(--sortix-accent-rgb),.29)!important}
.beta-home-start:hover:before{transform:translateX(130%)}
.beta-home-cta-row small{font-size:10px!important;color:#6f7688!important;line-height:1.45!important;max-width:150px!important}
.beta-home-showcase{
  position:relative!important;min-width:0!important;height:480px!important;display:flex!important;
  align-items:center!important;justify-content:center!important;perspective:1200px!important;
}
.beta-home-showcase:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;background:radial-gradient(circle,rgba(var(--sortix-accent-rgb),.18),rgba(var(--sortix-accent-rgb),.03) 55%,transparent 72%);filter:blur(14px);animation:beta2Halo 5.6s ease-in-out infinite}
@keyframes beta2Halo{50%{transform:scale(1.05);opacity:.75}}
.beta-slider{height:410px!important;overflow:visible!important}
.beta-slide{
  width:372px!important;height:390px!important;border-radius:28px!important;
  transition:transform .65s cubic-bezier(.2,.82,.2,1),opacity .55s ease,filter .55s ease,border-color .45s ease,box-shadow .45s ease!important;
}
.beta-slide.active{transform:translate(-50%,-50%) scale(1)!important;opacity:1!important}
.beta-slide.prev{transform:translate(calc(-50% - 250px),-50%) scale(.78) rotateY(10deg)!important;opacity:.34!important;filter:saturate(.65) brightness(.75)!important}
.beta-slide.next{transform:translate(calc(-50% + 250px),-50%) scale(.78) rotateY(-10deg)!important;opacity:.34!important;filter:saturate(.65) brightness(.75)!important}
.beta-slide.far-prev{transform:translate(calc(-50% - 405px),-50%) scale(.62) rotateY(14deg)!important;opacity:.07!important}
.beta-slide.far-next{transform:translate(calc(-50% + 405px),-50%) scale(.62) rotateY(-14deg)!important;opacity:.07!important}
.beta-game-pill{top:24px!important;left:24px!important;height:27px!important;padding:0 10px!important;font-size:9px!important}
.beta-slide-visual{position:relative!important;height:235px!important;margin:4px 12px 0!important;border-bottom:1px solid rgba(255,255,255,.065)!important;display:grid!important;place-items:center!important}
.beta-slide-copy{padding:16px 22px 20px!important}
.beta-slide-copy h3{font-size:24px!important;margin:0 0 6px!important;letter-spacing:-.7px!important;line-height:1.05!important}
.beta-slide-copy p{font-size:12px!important;line-height:1.45!important;color:#aeb5c4!important}
.beta-slide-copy>div{margin-top:10px!important;gap:6px!important}.beta-slide-copy>div span{font-size:7px!important;padding:4px 7px!important}

.beta-wheel-wrap{position:relative;width:190px;height:190px;display:grid;place-items:center}
.beta-wheel{position:relative!important;width:154px!important;height:154px!important;border-radius:50%!important;background:conic-gradient(var(--sortix-accent) 0 12.5%,#171b25 12.5% 25%,var(--sortix-accent) 25% 37.5%,#171b25 37.5% 50%,var(--sortix-accent) 50% 62.5%,#171b25 62.5% 75%,var(--sortix-accent) 75% 87.5%,#171b25 87.5%)!important;box-shadow:inset 0 0 0 22px rgba(6,8,13,.42),0 0 32px rgba(var(--sortix-accent-rgb),.18)!important;animation:beta2Wheel 6s linear infinite!important}
.beta-wheel:after{content:"";position:absolute;width:52px;height:52px;border-radius:50%;background:#090c12;left:50%;top:50%;transform:translate(-50%,-50%)}
.beta-wheel-pointer{position:absolute!important;z-index:3!important;top:4px!important;left:50%!important;transform:translateX(-50%)!important;width:0!important;height:0!important;border-left:11px solid transparent!important;border-right:11px solid transparent!important;border-top:20px solid var(--sortix-accent)!important}
@keyframes beta2Wheel{to{transform:rotate(360deg)}}
.beta-cards-art{position:relative;width:220px;height:190px}
.beta-game-card-mini{position:absolute;width:112px;height:158px;left:54px;top:14px;border-radius:18px;background:linear-gradient(160deg,rgba(var(--sortix-accent-rgb),.38),#121621 55%,#090c13);border:1px solid rgba(var(--sortix-accent-rgb),.6);box-shadow:0 18px 40px rgba(0,0,0,.35),0 0 24px rgba(var(--sortix-accent-rgb),.08);transform-origin:50% 90%;display:grid;place-items:center;color:var(--sortix-accent-text);font-size:40px}
.beta-game-card-mini.c1{transform:rotate(-16deg) translateX(-42px);animation:beta2CardOne 4.2s ease-in-out infinite}.beta-game-card-mini.c2{z-index:2;animation:beta2CardTwo 4.2s ease-in-out infinite}.beta-game-card-mini.c3{transform:rotate(16deg) translateX(42px);animation:beta2CardThree 4.2s ease-in-out infinite}
@keyframes beta2CardOne{50%{transform:rotate(-21deg) translate(-49px,-6px)}}@keyframes beta2CardTwo{50%{transform:translateY(-10px) scale(1.035)}}@keyframes beta2CardThree{50%{transform:rotate(21deg) translate(49px,-6px)}}
.beta-maze-art{position:relative;width:236px;height:178px;border:1px solid rgba(var(--sortix-accent-rgb),.34);border-radius:18px;background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.06),rgba(7,10,15,.85));box-shadow:inset 0 0 35px rgba(var(--sortix-accent-rgb),.05)}
.beta-maze-line{position:absolute;background:rgba(var(--sortix-accent-rgb),.56);box-shadow:0 0 10px rgba(var(--sortix-accent-rgb),.12)}.beta-maze-line.h{height:4px;border-radius:8px}.beta-maze-line.v{width:4px;border-radius:8px}
.beta-maze-runner{position:absolute;width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,var(--sortix-accent),var(--sortix-accent-text));box-shadow:0 0 18px rgba(var(--sortix-accent-rgb),.55);animation:beta2RunnerPath 6s cubic-bezier(.45,.05,.55,.95) infinite}
@keyframes beta2RunnerPath{0%{left:12px;top:143px}18%{left:71px;top:143px}29%{left:71px;top:92px}46%{left:127px;top:92px}58%{left:127px;top:38px}74%{left:194px;top:38px}88%{left:194px;top:116px}100%{left:213px;top:116px}}
.beta-ball-art{position:relative;width:235px;height:190px}.beta-home-peg{position:absolute;width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.16);box-shadow:0 0 6px rgba(255,255,255,.08)}
.beta-home-ball{position:absolute;width:19px;height:19px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,var(--sortix-accent) 25%,var(--sortix-accent-2) 70%);box-shadow:0 0 18px rgba(var(--sortix-accent-rgb),.45);animation:beta2DropBall 3.6s cubic-bezier(.4,.05,.3,1) infinite}.beta-home-ball.b2{animation-delay:-1.25s;left:145px}.beta-home-ball.b3{animation-delay:-2.4s;left:78px}
@keyframes beta2DropBall{0%{top:-14px;transform:translateX(0)}18%{transform:translateX(19px)}38%{transform:translateX(-12px)}60%{transform:translateX(25px)}82%{transform:translateX(-4px)}100%{top:167px;transform:translateX(12px);opacity:.3}}
.beta-quiz-art{position:relative;width:235px;height:190px;display:grid;place-items:center}.beta-qmark{width:86px;height:86px;border-radius:26px;background:linear-gradient(145deg,rgba(var(--sortix-accent-rgb),.35),rgba(var(--sortix-accent-rgb),.10));border:1px solid rgba(var(--sortix-accent-rgb),.58);display:grid;place-items:center;font-size:52px;font-weight:950;color:var(--sortix-accent-text);box-shadow:0 0 34px rgba(var(--sortix-accent-rgb),.12);animation:beta2QPulse 3.2s ease-in-out infinite}
@keyframes beta2QPulse{50%{transform:translateY(-6px) scale(1.035);box-shadow:0 0 48px rgba(var(--sortix-accent-rgb),.18)}}
.beta-answer{position:absolute;width:70px;height:34px;border:1px solid rgba(var(--sortix-accent-rgb),.28);background:rgba(14,17,25,.88);border-radius:10px;display:grid;place-items:center;font-weight:950;color:#bfc5d3;font-size:13px;animation:beta2AnsFloat 4.8s ease-in-out infinite}.beta-answer.aA{left:0;top:26px}.beta-answer.aB{right:0;top:26px;animation-delay:-1.2s}.beta-answer.aC{left:0;bottom:20px;animation-delay:-2.1s}.beta-answer.aD{right:0;bottom:20px;animation-delay:-3.2s}
@keyframes beta2AnsFloat{50%{transform:translateY(-5px);border-color:rgba(var(--sortix-accent-rgb),.58);color:#fff}}
.beta-slider-dots{bottom:0!important;gap:8px!important}.beta-slider-dots button{width:7px!important;height:7px!important;background:rgba(255,255,255,.18)!important}.beta-slider-dots button.active{width:24px!important;background:var(--sortix-accent)!important}

#setup-modal:before{display:none!important}
#setup-modal>.setup-box{padding-top:0!important;gap:8px!important}
.beta-setup-heading{text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px;margin:0 0 2px}
.beta-setup-heading>span{font-size:7.5px;letter-spacing:1.7px;font-weight:950;color:var(--sortix-accent-text);opacity:.88}
.beta-setup-heading h2{margin:0;font-size:21px;line-height:1.05;letter-spacing:-.45px;font-weight:950}
.beta-setup-heading p{margin:2px 0 0;color:#9299ab;font-size:10px}
.mode-card-grid{width:min(940px,100%)!important;margin:0 auto!important;gap:10px!important}
.mode-card{height:80px!important;min-height:80px!important;padding:12px 21px 12px 12px!important}
.mode-card-icon{width:42px!important;height:42px!important}.mode-card-content small{font-size:9.3px!important}
.raffle-style-panel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
.raffle-style-heading{justify-content:center!important;margin:0 0 10px!important;position:relative!important;padding-top:10px!important;border-top:1px solid rgba(255,255,255,.075)!important}
.raffle-style-heading:before{content:"";position:absolute;left:0;top:-1px;width:35%;height:1px;background:linear-gradient(90deg,var(--sortix-accent),rgba(var(--sortix-accent-rgb),.2),transparent)}
.raffle-style-heading>span{font-size:21px!important}.raffle-style-heading-actions small{font-size:10.5px!important}
.raffle-style-options{max-width:595px!important;gap:8px!important}.raffle-style-option{height:86px!important}.raffle-style-option strong{font-size:11.3px!important}.raffle-style-icon{font-size:26px!important}
.beta-game-summary{margin:0!important;min-height:86px!important;padding:10px 12px!important;grid-template-columns:48px 1fr auto!important}
.beta-game-summary-icon{width:46px!important;height:46px!important}.beta-game-summary-copy small{font-size:9.3px!important}.beta-game-summary-open{margin-right:2px!important}
.platform-selector{gap:9px!important}.plat-checkbox{height:39px!important;font-size:16px!important}.modern-input{height:43px!important;font-size:14.5px!important}.confirmation-field,.auto-confirm-toggle,#weights-toggle-btn{height:54px!important;min-height:54px!important}.setup-box>#start-btn{height:50px!important;font-size:16.5px!important}

.beta-profile-menu{width:258px!important;padding:8px!important;border-radius:15px!important}
.beta-profile-menu button{min-height:38px!important;height:38px!important;font-size:11px!important}

.beta-discord-status{border-color:rgba(134,142,160,.20)!important;background:linear-gradient(180deg,rgba(21,24,34,.72),rgba(10,13,20,.72))!important;color:#687083!important;transition:.2s ease!important}
.beta-discord-status span{right:-2px!important;bottom:-1px!important;width:12px!important;height:12px!important;border-width:2px!important;background:#555d6d!important;box-shadow:none!important}
.beta-discord-status.connected{border-color:rgba(124,94,255,.48)!important;color:#a796ff!important;box-shadow:0 0 22px rgba(108,84,255,.10)!important}
.beta-discord-status.connected span{background:#2ae769!important;box-shadow:0 0 5px rgba(42,231,105,.95),0 0 15px rgba(42,231,105,.65),0 0 28px rgba(42,231,105,.28)!important}

.quiz-game-overlay.quiz-lobby-state .quiz-question-card{align-items:center!important;justify-content:center!important;text-align:center!important}
.quiz-game-overlay.quiz-lobby-state .quiz-difficulty-pill{align-self:center!important;height:30px!important;padding:0 12px!important;font-size:9px!important}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{font-size:42px!important;line-height:1!important;letter-spacing:-1.4px!important;margin:18px auto 12px!important;color:#fff!important;text-shadow:0 0 28px rgba(var(--sortix-accent-rgb),.16)!important}
.quiz-game-overlay.quiz-lobby-state .quiz-options-grid,.quiz-game-overlay.quiz-lobby-state .quiz-timer{display:none!important}
.quiz-game-overlay.quiz-lobby-state .quiz-round-message{font-size:12px!important;line-height:1.5!important;max-width:560px!important;color:#aab2c2!important;margin:2px auto 0!important}
.quiz-game-overlay.quiz-lobby-state .quiz-stage-actions{grid-template-columns:minmax(0,1fr) 150px!important;height:50px!important}
.quiz-game-overlay.quiz-lobby-state #quizSkipBtn,.quiz-game-overlay.quiz-lobby-state #quizRevealBtn{display:none!important}
.quiz-game-overlay.quiz-lobby-state #quizNextBtn{grid-column:1!important}.quiz-game-overlay.quiz-lobby-state #quizEndBtn{grid-column:2!important}
.quiz-game-overlay.quiz-lobby-state .quiz-ranking-head small{color:var(--sortix-accent-text)!important}.quiz-game-overlay.quiz-lobby-state .quiz-rank-row .score{font-size:8px!important;color:#8eeaaa!important}
.quiz-game-overlay.quiz-lobby-state .quiz-live-meta>span:first-child small:after{content:""}

@media(max-height:820px) and (min-width:900px){
  .beta-home-copy h1{font-size:46px!important;margin:13px 0 12px!important}.beta-home-copy p{font-size:13.5px!important}.beta-platform-list{margin-top:15px!important}.beta-home-cta-row{margin-top:20px!important}.beta-home-showcase{height:420px!important}.beta-slider{height:380px!important}.beta-slide{height:360px!important;width:360px!important}.beta-slide-visual{height:200px!important}
  .mode-card{height:68px!important;min-height:68px!important}.raffle-style-option{height:72px!important}.modern-input{height:36px!important}.confirmation-field,.auto-confirm-toggle,#weights-toggle-btn{height:46px!important;min-height:46px!important}.setup-box>#start-btn{height:43px!important}
}

#setup-modal .setup-box{width:min(1040px,calc(100vw - 44px))!important;padding:18px 20px 18px!important;gap:10px!important}
.beta-setup-heading{margin:0 0 4px!important;gap:1px!important}
.beta-setup-heading>span{display:none!important}
.beta-setup-heading h2{font-size:19px!important;letter-spacing:-.35px!important}
.beta-setup-heading p{display:none!important}
.mode-card-grid{width:100%!important;max-width:none!important;gap:10px!important}
.mode-card{height:76px!important;min-height:76px!important;padding:12px 18px 12px 12px!important;border-radius:17px!important}
.mode-card-icon{width:40px!important;height:40px!important;border-radius:12px!important}
.mode-card-content strong{font-size:13px!important}
.mode-card-content small{font-size:9px!important;line-height:1.25!important}
.mode-help.mode-help-center{margin:0 0 2px!important;font-size:10px!important;color:#b0b6c4!important}
.raffle-style-panel{padding:9px!important;border-radius:16px!important}
.raffle-style-heading{justify-content:space-between!important;align-items:flex-end!important;padding-top:0!important;border-top:0!important;margin:0 0 8px!important}
.raffle-style-heading:before{display:none!important}
.raffle-style-heading>span{font-size:14px!important;text-transform:uppercase!important;letter-spacing:.2px!important}
.raffle-style-heading-actions small{font-size:10px!important}
.raffle-style-options{gap:8px!important}
.raffle-style-option{height:72px!important;border-radius:14px!important}
.raffle-style-icon{font-size:20px!important}
.raffle-style-option strong{font-size:11.5px!important}
.beta-game-summary{min-height:74px!important;height:74px!important;padding:10px 12px!important;border-radius:14px!important}
.beta-game-summary-icon{width:40px!important;height:40px!important;border-radius:12px!important}
.beta-game-summary-copy strong{font-size:13px!important}.beta-game-summary-copy small{font-size:9px!important;line-height:1.3!important}
.beta-game-summary-open{font-size:10px!important;padding:0 10px!important;height:32px!important;border-radius:999px!important}
.platform-selector{gap:8px!important}.plat-checkbox{height:37px!important;font-size:15px!important}
.modern-input{height:40px!important;font-size:14px!important;border-radius:11px!important}
#group-keyword .modern-input,#group-twitch .modern-input,#group-kick .modern-input,#group-youtube .modern-input{font-size:13px!important}
.confirmation-panel,.beta-confirmation-inline{grid-template-columns:1.1fr .9fr 1fr!important;gap:8px!important;align-items:stretch!important}
#weights-toggle-btn{order:0!important}
#confirmation-time-field{order:1!important}
.auto-confirm-toggle{order:2!important}
.confirmation-field,.auto-confirm-toggle,#weights-toggle-btn{height:50px!important;min-height:50px!important;border-radius:12px!important}
.weights-toggle-btn{padding:6px 10px!important}
.weights-toggle-copy strong{font-size:10.5px!important}.weights-toggle-copy small{font-size:8px!important}
.confirmation-field{padding:6px 10px!important}.confirmation-field label{font-size:8px!important}.confirmation-input-wrap input{height:32px!important}.confirmation-input-wrap span{font-size:10px!important}
.auto-confirm-toggle{padding:7px 10px!important}.auto-confirm-toggle strong{font-size:10.5px!important}
.setup-box>#start-btn{height:48px!important;font-size:15.5px!important;border-radius:999px!important;margin-top:0!important}

.beta-brand small{display:none!important}
.beta-discord-status.connected span{width:13px!important;height:13px!important}
.beta-discord-status:not(.connected){color:#666f83!important;border-color:rgba(140,146,160,.16)!important}.beta-discord-status:not(.connected) span{background:#596172!important;box-shadow:none!important}

@media(max-height:820px) and (min-width:900px){
  #setup-modal .setup-box{padding:16px 18px 16px!important}
  .mode-card{height:69px!important;min-height:69px!important}
  .raffle-style-option{height:66px!important}
  .beta-game-summary{min-height:68px!important;height:68px!important}
  .modern-input{height:37px!important}
  .confirmation-field,.auto-confirm-toggle,#weights-toggle-btn{height:45px!important;min-height:45px!important}
  .setup-box>#start-btn{height:43px!important}
}

#setup-modal>.setup-box{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
#setup-modal>.setup-box::before{display:none!important;content:none!important}
#setup-modal>.setup-box>*{position:relative!important;z-index:1!important}

#quiz-setup-panel{display:none!important}
.beta-quiz-help-copy{border:1px solid rgba(var(--sortix-accent-rgb),.18);background:rgba(var(--sortix-accent-rgb),.055);border-radius:13px;padding:11px 12px;color:#aeb5c4;font-size:10px;line-height:1.45}
.beta-quiz-help-copy p{margin:0}.beta-quiz-help-copy p+p{margin-top:7px}.beta-quiz-help-copy strong{color:#fff}
.beta-quiz-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:4px}.beta-quiz-modal-grid label{display:flex;flex-direction:column;gap:5px}.beta-quiz-modal-grid label.wide{grid-column:1/-1}.beta-quiz-modal-grid label>span{font-size:8px;color:#9299ab;font-weight:900;text-transform:uppercase;letter-spacing:.45px}.beta-quiz-modal-grid input,.beta-quiz-modal-grid select{height:39px;border:1px solid #2a3044;background:#0b0f17;color:#fff;border-radius:10px;padding:0 10px;outline:0}.beta-quiz-modal-grid input:focus,.beta-quiz-modal-grid select:focus{border-color:rgba(var(--sortix-accent-rgb),.62);box-shadow:0 0 0 3px rgba(var(--sortix-accent-rgb),.06)}

.confirmation-panel.beta-quick-settings>#weights-toggle-btn,.confirmation-panel.beta-quick-settings>#confirmation-time-field,.confirmation-panel.beta-quick-settings>.auto-confirm-toggle{background:linear-gradient(180deg,rgba(17,22,34,.88),rgba(12,16,25,.86))!important;border-color:rgba(255,255,255,.085)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
.confirmation-panel.beta-quick-settings>#weights-toggle-btn:hover,.confirmation-panel.beta-quick-settings>.auto-confirm-toggle:hover{border-color:rgba(var(--sortix-accent-rgb),.32)!important;background:rgba(18,23,35,.94)!important}
.weights-toggle-icon{border-color:rgba(var(--sortix-accent-rgb),.38)!important;background:rgba(var(--sortix-accent-rgb),.10)!important;color:var(--sortix-accent-text)!important}
.confirmation-input-wrap{background:#0b1018!important;border-color:rgba(255,255,255,.075)!important}.auto-confirm-toggle .toggle-ui{background:#0b1018!important;border-color:rgba(255,255,255,.075)!important}.auto-confirm-toggle input:checked+.toggle-ui{background:rgba(var(--sortix-accent-rgb),.16)!important;border-color:rgba(var(--sortix-accent-rgb),.5)!important;color:var(--sortix-accent-text)!important}

.beta-home-copy{position:relative!important;z-index:12!important}.beta-home-showcase{position:relative!important;z-index:2!important}.beta-slider{z-index:1!important}.beta-slide{z-index:1}.beta-slide.active{z-index:5!important}.beta-slide.prev,.beta-slide.next{z-index:2!important}.beta-slide.far-prev,.beta-slide.far-next{z-index:1!important}

.beta-cs-roulette-visual{overflow:hidden!important}.beta-cs-roulette-window{position:relative;width:330px;height:150px;border:1px solid rgba(var(--sortix-accent-rgb),.24);background:linear-gradient(180deg,rgba(8,11,17,.88),rgba(14,17,26,.78));border-radius:18px;overflow:hidden;box-shadow:inset 0 0 34px rgba(var(--sortix-accent-rgb),.04)}
.beta-cs-roulette-window:before,.beta-cs-roulette-window:after{content:"";position:absolute;z-index:4;top:0;bottom:0;width:55px;pointer-events:none}.beta-cs-roulette-window:before{left:0;background:linear-gradient(90deg,#090c12,transparent)}.beta-cs-roulette-window:after{right:0;background:linear-gradient(-90deg,#090c12,transparent)}
.beta-cs-marker{position:absolute;z-index:6;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);background:linear-gradient(180deg,transparent,var(--sortix-accent) 18%,var(--sortix-accent) 82%,transparent);box-shadow:0 0 14px rgba(var(--sortix-accent-rgb),.65)}
.beta-cs-marker:before,.beta-cs-marker:after{content:"";position:absolute;left:50%;transform:translateX(-50%);border-left:7px solid transparent;border-right:7px solid transparent}.beta-cs-marker:before{top:0;border-top:10px solid var(--sortix-accent)}.beta-cs-marker:after{bottom:0;border-bottom:10px solid var(--sortix-accent)}
.beta-cs-track{position:absolute;top:23px;left:0;height:104px;display:flex;gap:8px;animation:betaCsRoll 5.2s cubic-bezier(.42,.01,.2,1) infinite}.beta-cs-item{width:74px;height:104px;flex:0 0 74px;border:1px solid rgba(255,255,255,.07);background:#111621;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9ca4b7}.beta-cs-item>span{width:45px;height:45px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(var(--sortix-accent-rgb),.55),rgba(var(--sortix-accent-rgb),.16));color:#fff;font-size:14px;font-weight:950;border:1px solid rgba(var(--sortix-accent-rgb),.32)}.beta-cs-item small{font-size:7px;font-weight:850;max-width:64px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.beta-cs-item.active{border-color:rgba(var(--sortix-accent-rgb),.44);box-shadow:0 0 20px rgba(var(--sortix-accent-rgb),.08)}
@keyframes betaCsRoll{0%{transform:translateX(-15px)}15%{transform:translateX(-88px)}38%{transform:translateX(-164px)}66%{transform:translateX(-250px)}82%,100%{transform:translateX(-326px)}}

.beta-gallery-top.no-command{grid-template-columns:102px 214px 48px 92px 92px 92px 96px!important}.beta-command-box[hidden]{display:none!important}.beta-filter-chip[hidden]{display:none!important}.beta-filter-chip.loading{opacity:.55;pointer-events:none}.beta-filter-chip.loading{animation:betaRefreshPulse .7s ease-in-out infinite alternate}@keyframes betaRefreshPulse{to{filter:brightness(1.45)}}
@media(max-width:1160px){.beta-gallery-top.no-command{grid-template-columns:94px 194px 46px 84px 84px 84px 90px!important}}

:root{
  --sortix-content-width:1080px;
  --sortix-header-h:80px;
  --sortix-footer-h:48px;
}

#setup-modal{
  top:var(--sortix-header-h)!important;
  bottom:var(--sortix-footer-h)!important;
  height:auto!important;
  padding:12px 24px!important;
  align-items:center!important;
  overflow:hidden!important;
  background:transparent!important;
}
#setup-modal>.setup-box{
  width:min(var(--sortix-content-width),calc(100vw - 48px))!important;
  max-width:none!important;
  max-height:calc(100dvh - var(--sortix-header-h) - var(--sortix-footer-h) - 24px)!important;
  margin:auto!important;
  padding:0!important;
  gap:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
}
#setup-modal .modal-title,#setup-modal .setup-help-btn,#setup-modal .setup-intro,#setup-modal .setup-quick-actions,#raffle-mode-help{display:none!important}

#beta-setup-heading{
  order:-10;
  text-align:center!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:2px!important;
  margin:0 0 11px!important;
}
#beta-setup-heading>span{font-size:7.5px!important;letter-spacing:1.7px!important;font-weight:950!important;color:var(--sortix-accent-text)!important;opacity:.88}
#beta-setup-heading>h2{margin:0!important;font-size:21px!important;line-height:1.05!important;letter-spacing:-.45px!important;font-weight:950!important;color:#fff!important}
#beta-setup-heading>p{margin:2px 0 0!important;color:#9299ab!important;font-size:10px!important;line-height:1.2!important}

.mode-card-grid{
  order:-9;
  width:min(940px,100%)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  padding:0!important;
  position:relative!important;
}
.mode-card{
  min-width:0!important;max-width:none!important;width:auto!important;
  height:80px!important;min-height:80px!important;
  border-radius:15px!important;
  padding:12px 21px 12px 12px!important;
  display:grid!important;grid-template-columns:42px 1fr!important;gap:10px!important;
  align-items:center!important;text-align:left!important;
  border:1px solid rgba(157,169,203,.13)!important;
  background:linear-gradient(180deg,rgba(20,24,36,.68),rgba(9,12,19,.58))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.mode-card-icon{width:42px!important;height:42px!important;border-radius:12px!important;background:#080b11!important;border:1px solid #1e2434!important;color:var(--sortix-accent)!important;display:grid!important;place-items:center!important}
.mode-card-content{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important}
.mode-card-content strong{font-size:13px!important;line-height:1.1!important;color:#fff!important}
.mode-card-content small{margin-top:4px!important;font-size:9.3px!important;line-height:1.18!important;color:#9ea4b5!important}
.mode-card.active{border-color:rgba(var(--sortix-accent-rgb),.82)!important;background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.14),rgba(13,13,21,.67))!important;box-shadow:inset 0 0 0 1px rgba(var(--sortix-accent-rgb),.08),0 10px 32px rgba(var(--sortix-accent-rgb),.105),0 0 22px rgba(var(--sortix-accent-rgb),.045)!important}
.mode-card.active:after{content:""!important;display:block!important;position:absolute!important;right:-5px!important;top:50%!important;width:12px!important;height:21px!important;transform:translateY(-50%)!important;border-radius:8px!important;background:var(--sortix-accent)!important;box-shadow:0 0 20px rgba(var(--sortix-accent-rgb),.58)!important}
.mode-card-check{display:none!important}

.mode-card-grid:after{
  content:"";position:absolute;left:-78px;right:-78px;bottom:-15px;height:1px;
  background:linear-gradient(90deg,rgba(var(--sortix-accent-rgb),.70),rgba(255,255,255,.14) 55%,rgba(var(--sortix-accent-rgb),.10));
  box-shadow:0 0 14px rgba(var(--sortix-accent-rgb),.12);
}

#raffle-style-panel{
  order:-8;
  margin:25px 0 0!important;padding:0 0 14px!important;
  display:grid!important;
  grid-template-columns:minmax(565px,595px) minmax(0,1fr)!important;
  column-gap:12px!important;row-gap:10px!important;
  align-items:stretch!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  position:relative!important;
}
#raffle-style-panel:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,rgba(var(--sortix-accent-rgb),.65),rgba(255,255,255,.12),rgba(var(--sortix-accent-rgb),.10))}
.raffle-style-heading{grid-column:1/-1!important;margin:0!important;display:flex!important;align-items:baseline!important;justify-content:center!important;gap:24px!important;min-height:0!important}
.raffle-style-heading>span{font-size:21px!important;line-height:1!important;font-weight:950!important;letter-spacing:-.35px!important;color:#fff!important;text-transform:uppercase!important}
.raffle-style-heading>span i{display:none!important}
.raffle-style-heading-actions{display:flex!important;align-items:center!important;gap:0!important}.raffle-style-heading-actions small{font-size:10.5px!important;color:#b8bdca!important;white-space:nowrap!important}.raffle-style-help-btn{display:none!important}
.raffle-style-options{grid-column:1!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;margin:0!important}
.raffle-style-option{height:86px!important;min-height:86px!important;width:auto!important;max-width:none!important;border-radius:14px!important;padding:8px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;background:linear-gradient(180deg,rgba(20,24,36,.66),rgba(11,14,22,.58))!important;border:1px solid rgba(157,169,203,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
.raffle-style-option .raffle-style-icon{width:auto!important;height:auto!important;border:0!important;background:transparent!important;font-size:26px!important;color:#adb2c3!important}
.raffle-style-option>span:nth-child(2){display:block!important;text-align:center!important}.raffle-style-option>span:nth-child(2) small{display:none!important}.raffle-style-option strong{font-size:11.3px!important;line-height:1!important}.raffle-style-option.active{border-color:rgba(var(--sortix-accent-rgb),.88)!important;background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.16),rgba(var(--sortix-accent-rgb),.065))!important;box-shadow:inset 0 0 0 1px rgba(var(--sortix-accent-rgb),.07),0 8px 26px rgba(var(--sortix-accent-rgb),.13)!important}.raffle-style-option.active:after{content:"";position:absolute;left:20%;right:20%;bottom:-1px;height:2px;border-radius:5px;background:var(--sortix-accent);box-shadow:0 0 12px rgba(var(--sortix-accent-rgb),.7)}.raffle-style-option.active .raffle-style-icon{color:var(--sortix-accent-text)!important}.raffle-style-check{display:none!important}.beta-new-badge{top:6px!important;right:6px!important;font-size:6.5px!important}
.beta-game-summary{grid-column:2!important;grid-row:2!important;margin:0!important;min-height:86px!important;height:86px!important;padding:10px 12px!important;border-radius:14px!important;grid-template-columns:48px 1fr auto!important;background:linear-gradient(180deg,rgba(20,24,36,.72),rgba(11,14,22,.64))!important;border-color:rgba(157,169,203,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important}
.beta-game-summary-icon{width:46px!important;height:46px!important;border-radius:11px!important}.beta-game-summary-copy strong{font-size:13.5px!important}.beta-game-summary-copy small{font-size:9.3px!important;line-height:1.24!important}.beta-game-summary-open{height:auto!important;padding:0!important;margin-right:0!important;border:0!important;background:transparent!important;font-size:0!important;color:transparent!important;width:18px!important;min-width:18px!important}.beta-game-summary-open i{font-size:10px!important;color:var(--sortix-accent-text)!important;width:18px!important;height:18px!important;border-radius:50%!important;border:1px solid rgba(var(--sortix-accent-rgb),.35)!important;background:rgba(var(--sortix-accent-rgb),.10)!important;display:grid!important;place-items:center!important}

.beta-platform-helper{margin:10px 0 8px!important;text-align:center!important;font-size:10.8px!important;line-height:1.25!important;color:#e5e6eb!important}
.platform-selector{display:flex!important;justify-content:center!important;gap:14px!important;margin:0!important;width:100%!important}
.plat-checkbox{position:relative!important;overflow:hidden!important;flex:1 1 250px!important;max-width:360px!important;min-width:220px!important;height:39px!important;border-radius:999px!important;background:linear-gradient(180deg,rgba(18,22,34,.66),rgba(10,13,20,.56))!important;border:1px solid rgba(157,169,203,.14)!important;color:#d7dae3!important;font-size:16px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.plat-checkbox input{display:none!important}.plat-checkbox:not(.active-twitch):not(.active-kick):not(.active-youtube):not(.active-instagram){opacity:.45!important}.plat-checkbox.active-twitch,.plat-checkbox.active-kick,.plat-checkbox.active-youtube,.plat-checkbox.active-instagram{opacity:1!important;border-color:#30364b!important;background:#111622!important}
.plat-checkbox i,.plat-checkbox>span{font-size:18px!important}
#platform-selector + .input-group{margin-top:8px!important}
.input-group{margin:0 0 8px!important}.input-group:last-of-type{margin-bottom:0!important}.modern-input{height:43px!important;border-radius:11px!important;background:rgba(16,20,25,.70)!important;border:1px solid rgba(255,255,255,.018)!important;color:#fff!important;font-size:14.5px!important;padding-left:15px!important}.modern-input::placeholder{color:#656b79!important}.modern-input:focus{border-color:rgba(var(--sortix-accent-rgb),.48)!important;box-shadow:0 0 0 3px rgba(var(--sortix-accent-rgb),.055),0 8px 30px rgba(var(--sortix-accent-rgb),.035)!important}.social-source-group .modern-input{padding-left:45px!important}

.confirmation-panel.beta-quick-settings,.confirmation-panel.beta-confirmation-inline{
  margin:8px 0 0!important;
  display:grid!important;
  grid-template-columns:1.1fr .9fr 1.1fr!important;
  gap:8px!important;
  align-items:stretch!important;
}
.confirmation-panel.beta-quick-settings>#weights-toggle-btn,.confirmation-panel.beta-quick-settings>#confirmation-time-field,.confirmation-panel.beta-quick-settings>.auto-confirm-toggle,
.confirmation-panel.beta-confirmation-inline>#weights-toggle-btn,.confirmation-panel.beta-confirmation-inline>#confirmation-time-field,.confirmation-panel.beta-confirmation-inline>.auto-confirm-toggle{
  height:54px!important;min-height:54px!important;margin:0!important;border-radius:10px!important;border:1px solid #242a3d!important;background:linear-gradient(180deg,rgba(20,24,36,.72),rgba(11,14,22,.64))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
#weights-toggle-btn{order:1!important;padding:7px 11px!important}.weights-toggle-main{gap:10px!important}.weights-toggle-icon{width:34px!important;height:34px!important;border-radius:9px!important}.weights-toggle-copy strong{font-size:10.4px!important;line-height:1.15!important}.weights-toggle-copy small{font-size:7.8px!important;margin-top:2px!important}.weights-toggle-btn>i{margin-left:auto!important;color:#adb2c3!important}
#confirmation-time-field{order:2!important;padding:7px 11px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.confirmation-field>label{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;font-size:0!important;color:transparent!important}.confirmation-field>label:before{content:"TEMPO PARA CONFIRMAR";font-size:7.8px!important;color:#8b92a6!important;font-weight:800!important}.confirmation-field>label:after{content:"Resposta do vencedor";font-size:10.4px!important;color:#fff!important;font-weight:800!important}.confirmation-field>label i{display:none!important}.confirmation-input-wrap{height:32px!important;width:88px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #2a3044!important;background:#0b0e16!important;border-radius:9px!important;padding:0!important;margin-left:auto!important}.confirmation-input-wrap input{width:54px!important;height:30px!important;padding:0!important;border:0!important;background:transparent!important;text-align:center!important;font-weight:900!important;font-size:15px!important}.confirmation-input-wrap span{font-size:0!important;color:#6f7588!important}.confirmation-input-wrap span:after{content:"s";font-size:9px!important}
.auto-confirm-toggle{order:3!important;padding:7px 11px!important;display:flex!important;align-items:center!important;gap:10px!important}.auto-confirm-toggle>span:not(.toggle-ui){order:1!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;flex:1!important}.auto-confirm-toggle strong{font-size:10.4px!important;line-height:1.15!important}.auto-confirm-toggle small{font-size:7.8px!important;color:#9298ab!important;margin-top:2px!important}.auto-confirm-toggle .toggle-ui{order:2!important;margin-left:auto!important;width:44px!important;height:24px!important;border-radius:999px!important;padding:2px!important;border:1px solid #383f57!important;background:#242a3d!important;display:block!important}.auto-confirm-toggle .toggle-ui i{display:block!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#747c92!important;font-size:0!important;transition:.18s ease!important}.auto-confirm-toggle input:checked+.toggle-ui{background:rgba(var(--sortix-accent-rgb),.18)!important;border-color:rgba(var(--sortix-accent-rgb),.55)!important}.auto-confirm-toggle input:checked+.toggle-ui i{transform:translateX(19px)!important;background:var(--sortix-accent-text)!important;box-shadow:0 0 12px rgba(var(--sortix-accent-rgb),.4)!important}
.setup-box>#start-btn{height:50px!important;min-height:50px!important;margin:8px 0 0!important;border-radius:999px!important;font-size:16.5px!important;font-weight:950!important;letter-spacing:-.25px!important;background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent) 50%,var(--sortix-accent-2))!important;border:1px solid rgba(var(--sortix-accent-rgb),.82)!important;box-shadow:0 12px 38px rgba(var(--sortix-accent-rgb),.17)!important}

body.setup-subs-mode #beta-platform-helper,body.setup-comments-mode #beta-platform-helper{font-size:11.5px!important;margin:13px 0 10px!important;color:#cbd0dc!important}
body.setup-subs-mode #twitch-subs-auth-box,body.setup-comments-mode #instagram-auth-box{min-height:66px!important;padding:12px 14px!important;border-radius:14px!important}
body.setup-subs-mode #twitch-subs-auth-box .auth-copy strong,body.setup-comments-mode #instagram-auth-box .auth-copy strong{font-size:12.5px!important}
body.setup-subs-mode #twitch-subs-auth-box .auth-copy span,body.setup-comments-mode #instagram-auth-box .auth-copy span{font-size:9.5px!important;line-height:1.35!important;margin-top:3px!important}
body.setup-comments-mode #platform-selector{gap:12px!important;margin-bottom:9px!important}
body.setup-comments-mode #platform-selector .plat-checkbox{height:43px!important;font-size:15.5px!important}
body.setup-comments-mode .modern-input{height:45px!important;font-size:15px!important}
body.setup-comments-mode #comments-options-panel{gap:9px!important;margin-top:9px!important}
body.setup-comments-mode .comments-source-note{font-size:10px!important;line-height:1.4!important;padding:10px 12px!important}
body.setup-comments-mode .comments-unique-toggle{min-height:58px!important;padding:10px 12px!important;border-radius:12px!important}
body.setup-comments-mode .comments-unique-copy>span{font-size:11.5px!important}.setup-comments-mode .comments-unique-copy small{font-size:9.2px!important;line-height:1.35!important;margin-top:3px!important}
body.setup-comments-mode .confirmation-panel{display:none!important}
body.setup-subs-mode #raffle-style-panel,body.setup-comments-mode #raffle-style-panel{display:none!important}
body.setup-subs-mode .mode-card-grid:after,body.setup-comments-mode .mode-card-grid:after{bottom:-17px!important}

@media(max-height:820px) and (min-width:900px){
  :root{--sortix-header-h:72px;--sortix-footer-h:42px}
  #setup-modal{padding:8px 24px!important}
  #beta-setup-heading{margin-bottom:7px!important}#beta-setup-heading>p{display:none!important}#beta-setup-heading>h2{font-size:19px!important}
  .mode-card{height:68px!important;min-height:68px!important;padding-top:9px!important;padding-bottom:9px!important}.mode-card-icon{width:39px!important;height:39px!important}
  #raffle-style-panel{margin-top:19px!important;padding-bottom:9px!important;row-gap:7px!important}.raffle-style-heading>span{font-size:19px!important}.raffle-style-heading-actions small{font-size:10px!important}.raffle-style-option{height:72px!important;min-height:72px!important}.beta-game-summary{height:72px!important;min-height:72px!important}
  .beta-platform-helper{margin:7px 0 6px!important}.plat-checkbox{height:35px!important}.modern-input{height:36px!important}.input-group{margin-bottom:6px!important}
  .confirmation-panel.beta-quick-settings,.confirmation-panel.beta-confirmation-inline{margin-top:6px!important}.confirmation-panel.beta-quick-settings>#weights-toggle-btn,.confirmation-panel.beta-quick-settings>#confirmation-time-field,.confirmation-panel.beta-quick-settings>.auto-confirm-toggle,.confirmation-panel.beta-confirmation-inline>#weights-toggle-btn,.confirmation-panel.beta-confirmation-inline>#confirmation-time-field,.confirmation-panel.beta-confirmation-inline>.auto-confirm-toggle{height:46px!important;min-height:46px!important}
  .setup-box>#start-btn{height:43px!important;min-height:43px!important;margin-top:6px!important}
}
@media(max-width:1050px){
  :root{--sortix-content-width:930px}
  .mode-card-grid{width:100%!important}.mode-card-content small{display:none!important}
  #raffle-style-panel{grid-template-columns:1fr!important}.raffle-style-options,.beta-game-summary{grid-column:1!important}.beta-game-summary{grid-row:auto!important}
}

#setup-modal > .setup-box.beta-panel-model{
  width:min(1080px, calc(100vw - 72px))!important;
}
#setup-modal .setup-box.beta-panel-model{
  padding:22px 44px 28px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#setup-modal .setup-box.beta-panel-model:before{
  content:"";position:absolute;inset:22px 28px;border-radius:28px;
  background:radial-gradient(820px 260px at 50% 0, rgba(var(--sortix-accent-rgb), .10), transparent 68%),
             linear-gradient(180deg, rgba(10,13,20,.78), rgba(8,11,18,.52));
  border:1px solid rgba(255,255,255,.045);
  pointer-events:none; z-index:-1;
}
#setup-modal .setup-box.beta-panel-model:after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;
  background-image:linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size:44px 44px; mask-image:linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
}
#beta-setup-heading{margin:0 0 12px!important}
#beta-setup-heading>span{display:block!important;font-size:8px!important;letter-spacing:1.8px!important}
#beta-setup-heading>h2{font-size:26px!important;letter-spacing:-.7px!important}
#beta-setup-heading>p{display:block!important;font-size:11px!important;color:#98a0b5!important}
.mode-card-grid{gap:12px!important}
.mode-card{height:80px!important;min-height:80px!important;padding:12px 22px 12px 12px!important;border-radius:16px!important}
.mode-card .mode-card-content strong{font-size:14px!important;line-height:1.08!important}
.mode-card .mode-card-content small{font-size:10px!important;line-height:1.28!important;margin-top:4px!important;display:block!important}
#raffle-style-panel{margin-top:22px!important;padding-bottom:12px!important;row-gap:12px!important}
.raffle-style-heading>span{font-size:20px!important;letter-spacing:-.4px!important}
.raffle-style-heading-actions small{font-size:11px!important}
.raffle-style-option{height:84px!important;min-height:84px!important}
.beta-game-summary{height:84px!important;min-height:84px!important;padding:12px 13px!important}.beta-game-summary-copy small{font-size:10px!important;line-height:1.3!important}
.beta-platform-helper{margin:12px 0 10px!important;font-size:11px!important;color:#d7dbe6!important}
.platform-selector{gap:10px!important}
.plat-checkbox{height:40px!important;min-width:0!important;flex:1 1 0!important;font-size:15px!important}
.modern-input{height:43px!important;font-size:15px!important;border-radius:12px!important}
#group-twitch .modern-input,#group-kick .modern-input,#group-keyword .modern-input{padding-left:16px!important}
#comments-options-panel .comments-source-note{font-size:10.4px!important;padding:10px 12px!important}
#comments-options-panel .comments-unique-toggle{padding:10px 12px!important;min-height:56px!important}
#comments-options-panel .comments-unique-copy>span{font-size:11.7px!important}
#comments-options-panel .comments-unique-copy small{font-size:9px!important;line-height:1.35!important}
body.setup-subs-mode #twitch-subs-auth-box, body.setup-comments-mode #instagram-auth-box{
  min-height:72px!important;padding:14px 15px!important;border-radius:15px!important;gap:14px!important
}
body.setup-subs-mode #twitch-subs-auth-box .auth-copy strong, body.setup-comments-mode #instagram-auth-box .auth-copy strong{font-size:13px!important}
body.setup-subs-mode #twitch-subs-auth-box .auth-copy span, body.setup-comments-mode #instagram-auth-box .auth-copy span{font-size:10px!important;line-height:1.4!important}
.confirmation-panel.beta-quick-settings,.confirmation-panel.beta-confirmation-inline{margin-top:10px!important;grid-template-columns:1.08fr .82fr 1.12fr!important}
.confirmation-panel.beta-quick-settings>#weights-toggle-btn,.confirmation-panel.beta-quick-settings>#confirmation-time-field,.confirmation-panel.beta-quick-settings>.auto-confirm-toggle,.confirmation-panel.beta-confirmation-inline>#weights-toggle-btn,.confirmation-panel.beta-confirmation-inline>#confirmation-time-field,.confirmation-panel.beta-confirmation-inline>.auto-confirm-toggle{height:56px!important;min-height:56px!important;border-radius:12px!important}
#weights-toggle-btn .weights-toggle-icon{width:36px!important;height:36px!important}
#weights-toggle-btn .weights-toggle-copy strong{font-size:10.8px!important}
#weights-toggle-btn .weights-toggle-copy small{font-size:8px!important}
#confirmation-time-field .confirmation-input-wrap{width:90px!important;height:34px!important}
#confirmation-time-field .confirmation-input-wrap input{font-size:16px!important}
.auto-confirm-toggle strong{font-size:10.8px!important}.auto-confirm-toggle small{font-size:8px!important}
.setup-box>#start-btn{height:48px!important;min-height:48px!important;margin-top:10px!important;font-size:17px!important}
@media(max-width:1200px){
  #setup-modal .setup-box.beta-panel-model{padding:18px 28px 24px!important}
  #setup-modal > .setup-box.beta-panel-model{width:min(1040px, calc(100vw - 40px))!important}
}
@media(max-width:980px){
  #setup-modal .setup-box.beta-panel-model:before{inset:12px 8px!important;border-radius:22px!important}
  #setup-modal .setup-box.beta-panel-model{padding:14px 18px 18px!important}
  #beta-setup-heading>h2{font-size:22px!important}
  .mode-card{height:74px!important;min-height:74px!important}.mode-card .mode-card-content small{display:block!important}
  .raffle-style-option{height:76px!important;min-height:76px!important}.beta-game-summary{height:auto!important;min-height:76px!important}
  .confirmation-panel.beta-quick-settings,.confirmation-panel.beta-confirmation-inline{grid-template-columns:1fr!important}
}

#setup-modal{padding:18px 28px 16px!important;align-items:flex-start!important;overflow:auto!important}
#setup-modal > .setup-box.beta-panel-model{position:relative!important;width:min(1120px,calc(100vw - 70px))!important;min-height:auto!important}
#setup-modal .setup-box.beta-panel-model{padding:26px 44px 28px!important}
#setup-modal .setup-box.beta-panel-model:before{inset:10px 10px 14px!important;border-radius:32px!important;background:
  radial-gradient(720px 240px at 50% 0, rgba(var(--sortix-accent-rgb), .13), transparent 72%),
  linear-gradient(180deg, rgba(10,13,20,.80), rgba(7,10,17,.62))!important;border:1px solid rgba(255,255,255,.05)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
#setup-modal .setup-box.beta-panel-model:after{opacity:.14!important}
#beta-setup-heading{margin:0 0 14px!important}
#beta-setup-heading>span{font-size:8px!important;letter-spacing:1.9px!important;color:var(--sortix-accent-text)!important}
#beta-setup-heading>h2{font-size:26px!important;letter-spacing:-.75px!important}
#beta-setup-heading>p{font-size:11px!important;color:#9ca4b8!important}
.mode-card-grid{width:min(980px,100%)!important;gap:12px!important}
.mode-card{height:82px!important;min-height:82px!important;padding:12px 22px 12px 12px!important;border-radius:16px!important}
.mode-card .mode-card-icon{width:42px!important;height:42px!important;border-radius:13px!important}
.mode-card .mode-card-content strong{font-size:14px!important}
.mode-card .mode-card-content small{display:block!important;font-size:10px!important;line-height:1.28!important}
#raffle-style-panel{margin-top:22px!important;padding-bottom:14px!important;grid-template-columns:minmax(560px,606px) minmax(0,1fr)!important;row-gap:12px!important}
.raffle-style-heading{justify-content:flex-start!important;gap:26px!important;padding-left:2px!important}
.raffle-style-heading>span{font-size:20px!important}
.raffle-style-heading-actions small{font-size:11px!important;color:#c8cedb!important}
.raffle-style-option{height:84px!important;min-height:84px!important;border-radius:15px!important}
.raffle-style-option strong{font-size:12px!important}
.beta-game-summary{height:84px!important;min-height:84px!important;padding:11px 13px!important;border-radius:15px!important}
.beta-game-summary-copy strong{font-size:14px!important}
.beta-game-summary-copy small{font-size:10px!important;line-height:1.3!important;color:#bcc2d0!important}
.beta-platform-helper{margin:12px 0 10px!important;font-size:11px!important;color:#d9dce6!important}
.platform-selector{gap:12px!important}
.plat-checkbox{height:40px!important;max-width:none!important;flex:1 1 0!important;font-size:15.5px!important}
.plat-checkbox i,.plat-checkbox>span{font-size:16px!important}
.input-group{margin:0 0 9px!important}
.modern-input{height:43px!important;border-radius:12px!important;font-size:15px!important;padding-left:16px!important}
.social-source-group .social-input-icon{left:14px!important}.social-source-group .modern-input{padding-left:46px!important}
.confirmation-panel.beta-quick-settings,.confirmation-panel.beta-confirmation-inline{margin-top:10px!important;grid-template-columns:1.05fr .8fr 1.12fr!important;gap:10px!important}
.confirmation-panel.beta-quick-settings>#weights-toggle-btn,.confirmation-panel.beta-quick-settings>#confirmation-time-field,.confirmation-panel.beta-quick-settings>.auto-confirm-toggle,.confirmation-panel.beta-confirmation-inline>#weights-toggle-btn,.confirmation-panel.beta-confirmation-inline>#confirmation-time-field,.confirmation-panel.beta-confirmation-inline>.auto-confirm-toggle{height:54px!important;min-height:54px!important;border-radius:13px!important}
#weights-toggle-btn .weights-toggle-copy strong,.auto-confirm-toggle strong{font-size:10.8px!important}
#weights-toggle-btn .weights-toggle-copy small,.auto-confirm-toggle small{font-size:8.1px!important}
#confirmation-time-field .confirmation-input-wrap{width:92px!important;height:34px!important}
.setup-box>#start-btn{height:48px!important;min-height:48px!important;margin-top:10px!important;font-size:17px!important;border-radius:999px!important}

body.setup-subs-mode #beta-platform-helper, body.setup-comments-mode #beta-platform-helper{font-size:12.2px!important;line-height:1.35!important;margin:15px 0 12px!important;color:#d8ddea!important}
body.setup-subs-mode #twitch-subs-auth-box, body.setup-comments-mode #instagram-auth-box{min-height:78px!important;padding:16px 16px!important;border-radius:16px!important;gap:15px!important}
body.setup-subs-mode #twitch-subs-auth-box .auth-copy strong, body.setup-comments-mode #instagram-auth-box .auth-copy strong{font-size:13.6px!important}
body.setup-subs-mode #twitch-subs-auth-box .auth-copy span, body.setup-comments-mode #instagram-auth-box .auth-copy span{font-size:10.5px!important;line-height:1.42!important}
body.setup-subs-mode .auth-status, body.setup-comments-mode .auth-status{font-size:10.5px!important}
body.setup-comments-mode #platform-selector{gap:14px!important;margin-bottom:11px!important}
body.setup-comments-mode #platform-selector .plat-checkbox{height:44px!important;font-size:16px!important}
body.setup-comments-mode .modern-input{height:46px!important;font-size:15.4px!important}
body.setup-comments-mode #comments-options-panel{gap:10px!important;margin-top:10px!important}
body.setup-comments-mode .comments-source-note{font-size:10.6px!important;line-height:1.45!important;padding:11px 13px!important;border-radius:12px!important}
body.setup-comments-mode .comments-unique-toggle{min-height:60px!important;padding:11px 13px!important;border-radius:13px!important}
body.setup-comments-mode .comments-unique-copy>span{font-size:12px!important}
body.setup-comments-mode .comments-unique-copy small{font-size:9.4px!important;line-height:1.38!important}
@media(max-width:1100px){
  #setup-modal .setup-box.beta-panel-model{padding:20px 28px 24px!important}
  #setup-modal > .setup-box.beta-panel-model{width:min(1040px,calc(100vw - 40px))!important}
  #raffle-style-panel{grid-template-columns:1fr!important}
  .beta-game-summary{grid-column:1!important;grid-row:auto!important}
}

#setup-modal .mode-card-grid:after{
  left:0!important;
  right:0!important;
  bottom:-15px!important;
}

#setup-modal #platform-selector{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  justify-content:center!important;
}

body.setup-chat-mode #label-twitch,
body.setup-chat-mode #label-kick,
body.setup-chat-mode #label-youtube{
  display:flex!important;
}
body.setup-chat-mode #label-instagram{
  display:none!important;
}
body.setup-chat-mode #platform-selector .plat-checkbox{
  flex:1 1 250px!important;
  max-width:360px!important;
  min-width:220px!important;
}

body.setup-subs-mode #platform-selector{
  display:flex!important;
  width:100%!important;
  margin:0 auto!important;
}
body.setup-subs-mode #label-twitch{
  display:flex!important;
  flex:0 1 360px!important;
  width:min(360px,100%)!important;
  max-width:360px!important;
  min-width:220px!important;
}
body.setup-subs-mode #label-kick,
body.setup-subs-mode #label-youtube,
body.setup-subs-mode #label-instagram{
  display:none!important;
}
body.setup-subs-mode #group-kick,
body.setup-subs-mode #group-youtube,
body.setup-subs-mode #group-instagram,
body.setup-subs-mode #group-keyword{
  display:none!important;
}

body.setup-comments-mode #platform-selector{
  display:flex!important;
  width:min(740px,100%)!important;
  margin:0 auto 10px!important;
  gap:14px!important;
}
body.setup-comments-mode #label-twitch,
body.setup-comments-mode #label-kick{
  display:none!important;
}
body.setup-comments-mode #label-youtube,
body.setup-comments-mode #label-instagram{
  display:flex!important;
  flex:1 1 0!important;
  width:auto!important;
  max-width:360px!important;
  min-width:220px!important;
}
body.setup-comments-mode #group-twitch,
body.setup-comments-mode #group-kick,
body.setup-comments-mode #group-keyword{
  display:none!important;
}

body.setup-comments-mode #comments-options-panel{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;
  padding:0!important;
  margin:9px 0 0!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
}
body.setup-comments-mode #comments-options-panel .comments-source-note{
  display:none!important;
}
body.setup-comments-mode #comments-options-panel .comments-unique-toggle{
  width:100%!important;
  max-width:none!important;
  min-height:54px!important;
  margin:0!important;
  padding:8px 11px!important;
  border:1px solid #242a3d!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(20,24,36,.72),rgba(11,14,22,.64))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
body.setup-comments-mode #comments-options-panel .comments-unique-copy{
  flex:1!important;
  min-width:0!important;
}
body.setup-comments-mode #comments-options-panel .comments-unique-copy>span{
  font-size:10.5px!important;
  line-height:1.15!important;
  white-space:normal!important;
}
body.setup-comments-mode #comments-options-panel .comments-unique-copy small{
  margin-top:2px!important;
  font-size:7.8px!important;
  line-height:1.25!important;
  color:#9298ab!important;
}
body.setup-comments-mode #comments-options-panel .toggle-mini{
  flex:0 0 auto!important;
}

#setup-modal #confirmation-time-field{
  overflow:hidden!important;
  min-width:0!important;
}
#setup-modal #confirmation-time-field .confirmation-input-wrap{
  position:static!important;
  flex:0 0 88px!important;
  width:88px!important;
  height:32px!important;
  min-height:0!important;
  max-height:32px!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#setup-modal #confirmation-time-field .confirmation-input-wrap input.modern-input,
#setup-modal #confirmation-time-field .confirmation-input-wrap input{
  position:static!important;
  display:block!important;
  width:54px!important;
  min-width:0!important;
  max-width:54px!important;
  height:30px!important;
  min-height:0!important;
  max-height:30px!important;
  margin:0!important;
  padding:0!important;
  line-height:30px!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
#setup-modal #confirmation-time-field .confirmation-input-wrap span{
  position:static!important;
  display:inline!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

body.setup-chat-mode .confirmation-panel.beta-quick-settings,
body.setup-subs-mode .confirmation-panel.beta-quick-settings,
body.setup-chat-mode .confirmation-panel.beta-confirmation-inline,
body.setup-subs-mode .confirmation-panel.beta-confirmation-inline{
  display:grid!important;
  grid-template-columns:1.1fr .9fr 1.1fr!important;
  align-items:stretch!important;
  overflow:visible!important;
}

body.setup-comments-mode .confirmation-panel{
  display:none!important;
}

#setup-modal #raffle-mode-help{
  display:none!important;
}

body.setup-subs-mode #beta-platform-helper,
body.setup-comments-mode #beta-platform-helper{
  font-size:11.2px!important;
  line-height:1.35!important;
  margin:14px 0 10px!important;
}
body.setup-subs-mode #twitch-subs-auth-box{
  margin:1px 0 0!important;
}
body.setup-comments-mode #instagram-auth-box{
  margin:0 0 8px!important;
}

@media(min-width:900px) and (min-height:800px){
  #setup-modal{overflow:hidden!important;}
}
@media(max-height:799px) and (min-width:900px){
  #setup-modal{overflow:auto!important;}
}
@media(max-width:760px){
  body.setup-comments-mode #comments-options-panel{grid-template-columns:1fr!important;}
  body.setup-comments-mode #platform-selector{width:100%!important;}
  body.setup-comments-mode #label-youtube,
  body.setup-comments-mode #label-instagram{min-width:0!important;max-width:none!important;}
}

#setup-modal .mode-card-grid{
  position:relative!important;
}
#setup-modal .mode-card-grid:after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  width:auto!important;
  bottom:-15px!important;
  height:1px!important;
  transform:none!important;
  animation:none!important;
  background:linear-gradient(90deg,
    rgba(var(--sortix-accent-rgb),.70) 0%,
    rgba(var(--sortix-accent-rgb),.30) 28%,
    rgba(255,255,255,.11) 58%,
    rgba(var(--sortix-accent-rgb),.10) 100%)!important;
  box-shadow:0 0 10px rgba(var(--sortix-accent-rgb),.09)!important;
  pointer-events:none!important;
}

body.setup-subs-mode #platform-selector{
  display:none!important;
}
body.setup-subs-mode #beta-platform-helper{
  margin:13px 0 10px!important;
}

#setup-modal #confirmation-time-field.confirmation-time-card{
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  padding:7px 10px!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid #242a3d!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(20,24,36,.72),rgba(11,14,22,.64))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
#setup-modal #confirmation-time-field .confirmation-time-copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:2px!important;
  line-height:1!important;
}
#setup-modal #confirmation-time-field .confirmation-time-copy>span{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#8b92a6!important;
  font-size:7.8px!important;
  font-weight:800!important;
  letter-spacing:.15px!important;
  white-space:nowrap!important;
}
#setup-modal #confirmation-time-field .confirmation-time-copy>strong{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-size:10.4px!important;
  font-weight:850!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
#setup-modal #confirmation-time-field .confirmation-time-box{
  position:static!important;
  flex:0 0 88px!important;
  width:88px!important;
  height:34px!important;
  min-width:88px!important;
  min-height:34px!important;
  max-width:88px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 9px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  overflow:hidden!important;
  border:1px solid #2a3044!important;
  border-radius:9px!important;
  background:#0b0e16!important;
  box-sizing:border-box!important;
  cursor:text!important;
}
#setup-modal #confirmation-time-field #confirmation-time{
  appearance:textfield!important;
  -moz-appearance:textfield!important;
  position:static!important;
  display:block!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  text-align:right!important;
  font-size:16px!important;
  font-weight:950!important;
  line-height:30px!important;
  box-sizing:border-box!important;
}
#setup-modal #confirmation-time-field #confirmation-time::-webkit-outer-spin-button,
#setup-modal #confirmation-time-field #confirmation-time::-webkit-inner-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}
#setup-modal #confirmation-time-field .confirmation-time-box>span{
  position:static!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#777f91!important;
  font-size:9px!important;
  font-weight:700!important;
  line-height:1!important;
}

#setup-modal #confirmation-time-field>label:before,
#setup-modal #confirmation-time-field>label:after,
#setup-modal #confirmation-time-field .confirmation-time-box>span:after{
  content:none!important;
  display:none!important;
}

body.setup-chat-mode .confirmation-panel.beta-quick-settings,
body.setup-subs-mode .confirmation-panel.beta-quick-settings,
body.setup-chat-mode .confirmation-panel.beta-confirmation-inline,
body.setup-subs-mode .confirmation-panel.beta-confirmation-inline{
  grid-template-columns:1.1fr .9fr 1.1fr!important;
  align-items:stretch!important;
  overflow:visible!important;
}

#instagram-logout-button.instagram-logout-icon{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  font-size:13px!important;
}
#instagram-logout-button.instagram-logout-icon i{
  margin:0!important;
  font-size:13px!important;
}

@media(max-height:799px) and (min-width:900px){
  #setup-modal #confirmation-time-field.confirmation-time-card{
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
  }
  #setup-modal #confirmation-time-field .confirmation-time-box{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
  }
}

#setup-modal .mode-card-grid{
  margin-bottom:30px!important;
}
#setup-modal .mode-card-grid:after{
  left:0!important;
  right:0!important;
  bottom:-16px!important;
  width:100%!important;
  opacity:.78!important;
}

body.setup-chat-mode #raffle-style-panel{
  margin-top:0!important;
  margin-bottom:18px!important;
  padding-bottom:15px!important;
}
body.setup-chat-mode #raffle-style-panel:after{
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  opacity:.78!important;
}
body.setup-chat-mode #beta-platform-helper{
  margin:0 0 12px!important;
}

body.setup-subs-mode #twitch-subs-auth-box{
  margin-top:4px!important;
  margin-bottom:18px!important;
}
body.setup-subs-mode #beta-platform-helper{
  margin:0 0 16px!important;
}
body.setup-comments-mode #beta-platform-helper{
  margin:0 0 16px!important;
  padding-top:0!important;
}
body.setup-comments-mode #platform-selector{
  margin-top:0!important;
  margin-bottom:14px!important;
}

#setup-modal .mode-card-grid,
#setup-modal #raffle-style-panel,
#setup-modal #beta-platform-helper,
#setup-modal #platform-selector,
#setup-modal #twitch-subs-auth-box,
#setup-modal #instagram-auth-box,
#setup-modal #comments-options-panel,
#setup-modal .confirmation-panel,
#setup-modal #start-btn{
  width:100%!important;
  max-width:none!important;
}

.system-dialog-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  align-items:stretch!important;
  width:100%!important;
}
.system-dialog-actions .btn-outline,
.system-dialog-actions .btn-gradient-primary{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  margin:0!important;
  justify-content:center!important;
}
@media(max-width:560px){
  .system-dialog-actions{grid-template-columns:1fr!important;}
}

#instagram-auth-box .auth-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
#instagram-auth-button.btn-auth-instagram{
  min-width:176px!important;
  width:176px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:10.5px!important;
  font-weight:850!important;
  justify-content:center!important;
  box-shadow:none!important;
  opacity:1!important;
}
#instagram-auth-button.btn-auth-instagram.auth-disconnected,
#instagram-auth-button.btn-auth-instagram:not(.auth-connected){
  color:#aeb5c4!important;
  border-color:#2b3140!important;
  background:linear-gradient(180deg,#141925,#0d1119)!important;
}
#instagram-auth-button.btn-auth-instagram.auth-connected{
  color:#bfffd5!important;
  border-color:rgba(52,211,153,.48)!important;
  background:linear-gradient(180deg,rgba(22,92,65,.62),rgba(11,49,36,.72))!important;
  box-shadow:0 0 18px rgba(52,211,153,.12)!important;
}
#instagram-auth-button.btn-auth-instagram.auth-connected i{color:#45e6a1!important;}
#instagram-logout-button.instagram-logout-icon{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
}
#instagram-auth-status{
  min-width:104px!important;
  justify-content:flex-start!important;
  font-size:10.5px!important;
}

#setup-modal .setup-box.beta-panel-model{
  padding-top:30px!important;
  padding-bottom:30px!important;
}

#setup-modal .raffle-style-heading{
  justify-content:center!important;
  text-align:center!important;
  gap:26px!important;
  padding-left:0!important;
}
#setup-modal .raffle-style-heading>span,
#setup-modal .raffle-style-heading-actions{justify-content:center!important;text-align:center!important}
#setup-modal .raffle-style-heading-actions{display:flex!important;align-items:center!important}

body.setup-chat-mode #platform-selector{min-height:40px!important}
body.setup-chat-mode #platform-selector .plat-checkbox{transition:opacity .18s ease,border-color .18s ease,box-shadow .18s ease!important}

#comments-keyword-group{position:relative!important;margin:9px 0 0!important}
#comments-keyword-group .social-input-icon{color:var(--sortix-accent)!important}
body.setup-comments-mode #comments-keyword-group{display:block!important}
body:not(.setup-comments-mode) #comments-keyword-group{display:none!important}
body.setup-comments-mode #comments-keyword-group .modern-input{height:46px!important;font-size:14.5px!important}

#howto-modal .howto-box,
#weights-modal .weights-modal-box,
#custom-raffle-modal .custom-raffle-box,
#cards-help-modal .cards-help-dialog,
#ticket-audit-modal .ticket-audit-modal,
#discord-modal .discord-modal-box,
#system-dialog .system-dialog-card,
.beta-generic-card{
  background:linear-gradient(180deg,rgba(17,21,31,.985),rgba(9,12,19,.985))!important;
  border:1px solid rgba(154,91,255,.22)!important;
  box-shadow:0 30px 100px rgba(0,0,0,.62),0 0 42px rgba(139,82,255,.09),inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(22px) saturate(125%)!important;
}
#howto-modal button,
#weights-modal button,
#custom-raffle-modal button,
#cards-help-modal button,
#ticket-audit-modal button,
#discord-modal button,
#system-dialog button,
.beta-generic-card button{
  border-radius:12px!important;
}
#howto-modal .btn-gradient-primary,
#weights-modal .btn-gradient-primary,
#custom-raffle-modal .btn-gradient-primary,
#cards-help-modal .btn-gradient-primary,
#ticket-audit-modal .btn-gradient-primary,
#discord-modal .btn-gradient-primary,
#system-dialog .btn-gradient-primary,
.beta-generic-card .btn-gradient-primary{
  background:linear-gradient(90deg,#6f2cf4,#a65cff)!important;
  border:1px solid rgba(177,111,255,.62)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(126,63,239,.19),inset 0 1px 0 rgba(255,255,255,.14)!important;
}
#howto-modal .btn-outline,
#weights-modal .btn-outline,
#custom-raffle-modal .btn-outline,
#cards-help-modal .btn-outline,
#ticket-audit-modal .btn-outline,
#discord-modal .btn-outline,
#system-dialog .btn-outline,
.beta-generic-card .btn-outline{
  background:#111622!important;
  border:1px solid rgba(255,255,255,.09)!important;
  color:#d8dce7!important;
}

.beta-gallery-top{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px!important;
}
.beta-gallery-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.beta-gallery-controls .beta-gallery-back{width:102px!important;height:42px!important}
.beta-gallery-controls #draw-btn{width:214px!important;height:42px!important;min-width:214px!important}
.beta-command-box{flex:1 1 auto!important;min-width:120px!important;height:42px!important}
.beta-gallery-stats{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.beta-gallery-stats .beta-gallery-icon{width:48px!important;height:42px!important;border-radius:14px!important}
.beta-gallery-stats .beta-gallery-metric{width:92px!important;height:42px!important;border-radius:14px!important}
.beta-gallery-top.no-command .beta-gallery-stats{margin-left:auto!important}
.beta-gallery-top.no-command .beta-command-box{display:none!important}

#app-container>.main-container{justify-content:flex-start!important}
.participants-section{
  flex:0 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - var(--sortix-header-h) - var(--sortix-footer-h) - 205px)!important;
  padding:10px!important;
  overflow:hidden!important;
}
.grid-container{
  flex:0 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - var(--sortix-header-h) - var(--sortix-footer-h) - 255px)!important;
  padding:8px 10px 10px!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow-y:auto!important;
}
.participants-section>.grid-toolbar{padding:2px 4px 7px!important}

.beta-filter-chip.icon{position:relative!important}
.beta-filter-chip.icon:hover{border-color:rgba(var(--sortix-accent-rgb),.34)!important;color:#fff!important}

@media(max-width:1160px){
  .beta-gallery-controls .beta-gallery-back{width:94px!important}
  .beta-gallery-controls #draw-btn{width:194px!important;min-width:194px!important}
  .beta-gallery-stats .beta-gallery-metric{width:84px!important}
  .beta-gallery-stats .beta-gallery-icon{width:46px!important}
}
@media(max-width:980px){
  .beta-gallery-top{flex-wrap:wrap!important}
  .beta-gallery-controls{width:100%!important}
  .beta-gallery-controls #draw-btn{flex:1!important;width:auto!important;min-width:0!important}
  .beta-command-box{order:2;width:100%!important;flex-basis:100%!important}
  .beta-gallery-stats{order:3;width:100%!important;justify-content:flex-end!important}
}

#setup-modal .beta-input-with-icon{position:relative!important}
#setup-modal .beta-input-with-icon .beta-setup-input-icon{position:absolute!important;left:15px!important;top:50%!important;transform:translateY(-50%)!important;z-index:3!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important;pointer-events:none!important;font-size:16px!important;font-weight:950!important}
#setup-modal .beta-input-with-icon .modern-input{padding-left:48px!important;font-size:15.5px!important;font-weight:540!important;letter-spacing:.01em!important}
#setup-modal .beta-icon-twitch{color:#9146ff!important}
#setup-modal .beta-icon-kick{color:#53fc18!important;font-size:18px!important}
#setup-modal .beta-icon-youtube{color:#ff334d!important}
#setup-modal .beta-icon-keyword{color:#9a5bff!important}
#setup-modal .beta-icon-kick b{font:950 18px/1 Inter,system-ui,sans-serif!important}
#setup-modal .social-source-group .modern-input{font-size:15.5px!important;font-weight:540!important}
#setup-modal #comments-keyword-group .modern-input{font-size:15px!important}

#setup-modal .setup-box.beta-panel-model{gap:0!important}
#setup-modal #beta-setup-heading{margin-bottom:15px!important}
#setup-modal .mode-card-grid{margin-bottom:12px!important}
#setup-modal #raffle-style-panel{margin-top:12px!important;margin-bottom:12px!important}
#setup-modal #beta-platform-helper{margin:10px 0 9px!important}
#setup-modal #platform-selector{margin-bottom:9px!important}
#setup-modal .input-group{margin-bottom:9px!important}
#setup-modal #twitch-subs-auth-box,#setup-modal #instagram-auth-box{margin-bottom:11px!important}
#setup-modal #comments-options-panel{margin-top:9px!important;margin-bottom:9px!important}
#setup-modal .confirmation-panel.beta-quick-settings,#setup-modal .confirmation-panel.beta-confirmation-inline{margin-top:1px!important;margin-bottom:9px!important}
#setup-modal .setup-box>#start-btn{margin-top:0!important}

.beta-gallery-top #draw-btn,.beta-gallery-top #draw-btn .draw-btn-label{color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:950!important}
.beta-gallery-top #draw-btn:disabled,.beta-gallery-top #draw-btn[disabled]{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:.58!important}
.beta-command-box{gap:2px!important;text-align:center!important;align-self:stretch!important}
.beta-command-box span{font-size:12px!important;line-height:1.05!important;color:#a8afc0!important;font-weight:650!important;letter-spacing:.015em!important}
.beta-command-box strong{margin-top:3px!important;font-size:20px!important;line-height:1!important;color:#fff!important;font-weight:950!important;letter-spacing:-.45px!important;text-shadow:0 0 16px rgba(var(--sortix-accent-rgb),.18)!important}
.beta-command-box #keyword-tag{font-size:inherit!important;font-weight:inherit!important;color:inherit!important}

#app-container>.main-container{gap:10px!important}
.beta-gallery-top{margin-bottom:0!important}
.beta-gallery-filterbar{margin:0!important}
.participants-section{margin-top:0!important}

.beta-gallery-top button,.beta-gallery-filterbar button{cursor:pointer}

:root{
  --sortix-game-bg:#080a0f;
  --sortix-game-surface:#0d1017;
  --sortix-game-surface-2:#10141d;
  --sortix-game-line:rgba(255,255,255,.075);
  --sortix-game-line-soft:rgba(255,255,255,.05);
}

#rouletteModal{
  top:var(--sortix-header-h)!important;
  right:0!important;
  bottom:var(--sortix-footer-h)!important;
  left:0!important;
  width:auto!important;
  height:auto!important;
  box-sizing:border-box!important;
  padding:10px 12px!important;
  overflow:hidden!important;
  background:var(--sortix-game-bg)!important;
  backdrop-filter:none!important;
}
#rouletteModal .roulette-container-full{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-height:0!important;
  box-sizing:border-box!important;
}

.roulette-window,.roulette-result-panel,.cards-game-board,
.maze-game-main,.maze-ranking-panel,.maze-game-actions,
.ball-game-main,.ball-ranking-panel,.ball-game-actions,
.quiz-game-topbar,.quiz-stage,.quiz-ranking{
  background:linear-gradient(180deg,rgba(15,18,26,.97),rgba(9,12,18,.97))!important;
  border-color:var(--sortix-game-line)!important;
  box-shadow:0 18px 54px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.025)!important;
}

body.maze-direct-mode #rouletteModal.maze-mode-active{
  top:var(--sortix-header-h)!important;
  bottom:var(--sortix-footer-h)!important;
  padding:10px 12px!important;
  background:var(--sortix-game-bg)!important;
}
#rouletteModal.maze-mode-active #mazeGameBoard.maze-game-board.neon-card-strong{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:10px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:hidden!important;
}
#mazeGameBoard .maze-game-main,
#mazeGameBoard .maze-ranking-panel,
#mazeGameBoard .maze-game-actions{border-radius:15px!important;overflow:hidden!important}
#mazeGameBoard .maze-game-viewport{
  background:
    radial-gradient(circle at 50% 42%,rgba(var(--sortix-accent-rgb),.07),transparent 46%),
    linear-gradient(180deg,#0a0d14,#07090e)!important;
}
#mazeGameBoard .maze-ranking-panel{
  background:linear-gradient(180deg,#0e1119,#090c12)!important;
}
#mazeGameBoard .maze-game-actions{
  background:linear-gradient(180deg,#0e1118,#090c12)!important;
}

body.ball-direct-mode #rouletteModal.ball-mode-active{
  top:var(--sortix-header-h)!important;
  bottom:var(--sortix-footer-h)!important;
  padding:10px 12px!important;
  background:var(--sortix-game-bg)!important;
}
#rouletteModal.ball-mode-active #ballGameBoard.ball-game-board{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:10px!important;
  overflow:hidden!important;
  background:transparent!important;
}
#ballGameBoard .ball-game-main,
#ballGameBoard .ball-ranking-panel,
#ballGameBoard .ball-game-actions{border-radius:15px!important;overflow:hidden!important}
#ballGameBoard .ball-game-viewport{
  background:
    radial-gradient(circle at 50% 38%,rgba(var(--sortix-accent-rgb),.055),transparent 48%),
    linear-gradient(180deg,#0a0d14,#07090e)!important;
}
#ballGameBoard .ball-game-toolbar,
#ballGameBoard .ball-game-topbar{
  background:linear-gradient(180deg,#0e1119,#0a0d13)!important;
  border-color:var(--sortix-game-line-soft)!important;
}
#ballGameBoard .ball-ranking-panel,
#ballGameBoard .ball-game-actions{
  background:linear-gradient(180deg,#0e1119,#090c12)!important;
}

.quiz-game-overlay{
  inset:var(--sortix-header-h) 0 var(--sortix-footer-h)!important;
  padding:12px 24px!important;
  background:var(--sortix-game-bg)!important;
  overflow:hidden!important;
}
.quiz-game-shell{
  width:min(var(--sortix-content-width),calc(100vw - 48px))!important;
  height:100%!important;
  min-height:0!important;
  gap:10px!important;
}
.quiz-game-main{min-height:0!important;overflow:hidden!important}
.quiz-stage,.quiz-ranking{min-height:0!important;overflow:hidden!important}
.quiz-ranking{height:100%!important;max-height:100%!important;display:flex!important;flex-direction:column!important}
.quiz-ranking-list{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(var(--sortix-accent-rgb),.28) transparent!important;
}
.quiz-ranking-list::-webkit-scrollbar{width:7px}.quiz-ranking-list::-webkit-scrollbar-track{background:transparent}.quiz-ranking-list::-webkit-scrollbar-thumb{background:rgba(var(--sortix-accent-rgb),.28);border-radius:999px}

.quiz-lobby-guide{display:none;width:min(760px,96%);margin:16px auto 10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;text-align:left}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide{display:grid!important}
.quiz-lobby-guide-card{
  min-height:92px;padding:12px;border:1px solid var(--sortix-game-line);border-radius:14px;
  background:linear-gradient(180deg,rgba(18,22,31,.88),rgba(11,14,20,.88));display:flex;align-items:flex-start;gap:10px
}
.quiz-lobby-guide-card>i{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;color:var(--sortix-accent-text);background:rgba(var(--sortix-accent-rgb),.08);border:1px solid rgba(var(--sortix-accent-rgb),.22)}
.quiz-lobby-guide-card span{min-width:0}.quiz-lobby-guide-card strong{display:block;color:#fff;font-size:11px}.quiz-lobby-guide-card small{display:block;margin-top:5px;color:#aab1c0;font-size:9px;line-height:1.42}.quiz-lobby-guide-card small b{color:#fff}
.quiz-lobby-guide-card.is-mode{border-color:rgba(var(--sortix-accent-rgb),.24)}
.quiz-lobby-mode-note{grid-column:1/-1;padding:10px 12px;border-radius:12px;border:1px solid rgba(var(--sortix-accent-rgb),.12);background:rgba(var(--sortix-accent-rgb),.04);color:#aeb5c3;font-size:9.3px;line-height:1.45;text-align:center}.quiz-lobby-mode-note b{color:#fff}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card{padding:22px!important;background:linear-gradient(180deg,#0b0e14,#090c12)!important}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{font-size:40px!important;margin:14px auto 5px!important}
.quiz-game-overlay.quiz-lobby-state .quiz-round-message{margin-top:7px!important}

.quiz-question-card{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  padding:14px!important;
  background:linear-gradient(180deg,#0b0e14,#090c12)!important;
}
.quiz-question-card h2{
  width:100%!important;
  min-height:108px!important;
  margin:10px 0 12px!important;
  padding:18px 24px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  max-width:none!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.22)!important;
  border-radius:16px!important;
  background:linear-gradient(110deg,rgba(var(--sortix-accent-rgb),.12),rgba(14,17,24,.92) 62%)!important;
  font-size:clamp(24px,2vw,34px)!important;
  line-height:1.12!important;
}
.quiz-options-grid{
  flex:1 1 auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:repeat(4,minmax(58px,1fr))!important;
  gap:8px!important;
  align-content:stretch!important;
}
.quiz-option{
  min-height:58px!important;
  width:100%!important;
  border-radius:14px!important;
  padding:9px 15px!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;
  background:linear-gradient(180deg,#101319,#0d1016)!important;
}
.quiz-option>b{width:38px!important;height:38px!important;border-radius:10px!important}
.quiz-option>span{font-size:15px!important}.quiz-option>em{font-size:10px!important}
.quiz-timer{height:28px!important;margin-top:10px!important}.quiz-round-message{margin-top:6px!important}

#cardsGameBoard,.roulette-window,.roulette-result-panel{
  background:linear-gradient(180deg,#0f1219,#090c12)!important;
}

@media(max-height:780px) and (min-width:900px){
  #rouletteModal{padding:7px 10px!important}
  .quiz-game-overlay{padding:8px 20px!important}
  .quiz-question-card h2{min-height:82px!important;font-size:25px!important;margin:7px 0 8px!important;padding:12px 18px!important}
  .quiz-options-grid{grid-template-rows:repeat(4,minmax(50px,1fr))!important;gap:6px!important}
  .quiz-option{min-height:50px!important;padding:7px 12px!important}.quiz-option>b{width:34px!important;height:34px!important}.quiz-option>span{font-size:13px!important}
  .quiz-lobby-guide-card{min-height:76px!important;padding:9px!important}.quiz-lobby-guide{margin:10px auto 6px!important}
}

#comments-keyword-group .comments-keyword-icon{
  position:absolute!important;left:15px!important;top:50%!important;transform:translateY(-50%)!important;
  z-index:3!important;width:18px!important;height:22px!important;display:grid!important;place-items:center!important;
  color:var(--sortix-accent)!important;font-size:20px!important;font-weight:500!important;line-height:1!important;pointer-events:none!important;
}
#comments-keyword-group .modern-input{padding-left:44px!important}

.beta-generic-card:has(.beta-history-list){width:min(700px,94vw)!important;max-height:78vh!important;padding:20px!important}
.beta-history-list{display:flex;flex-direction:column;gap:9px}
.beta-history-row{min-height:66px;display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 11px;border:1px solid rgba(255,255,255,.075);background:rgba(12,16,24,.78);border-radius:13px}
.beta-history-row>img{width:46px;height:46px;border-radius:12px;object-fit:cover;border:1px solid rgba(var(--sortix-accent-rgb),.28);background:#111722}
.beta-history-person{min-width:0;display:flex;flex-direction:column;gap:5px}.beta-history-person strong{font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.beta-history-person small{font-size:9.5px;color:#8f98aa;display:flex;gap:6px;align-items:center}
.beta-history-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.beta-history-meta>span{height:28px;padding:0 9px;border-radius:999px;border:1px solid rgba(255,255,255,.075);background:#101520;display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:900;color:#cbd1de;white-space:nowrap}
.beta-history-mode i{color:var(--sortix-accent)}.beta-history-platform-twitch{color:#d3b6ff!important;border-color:rgba(145,70,255,.22)!important}.beta-history-platform-youtube{color:#ff9aa6!important;border-color:rgba(255,48,74,.20)!important}.beta-history-platform-instagram{color:#f7a9d1!important;border-color:rgba(244,114,182,.22)!important}.beta-history-platform-kick{color:#baff9f!important;border-color:rgba(83,252,24,.20)!important}.beta-history-kick{font-weight:950;color:#53fc18}.beta-history-empty{min-height:120px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:#8992a5}.beta-history-empty i{font-size:25px;color:var(--sortix-accent)}

body.beta-roulette-spin-active #beta-global-header,
body.beta-roulette-spin-active > footer{display:none!important}
body.beta-roulette-spin-active #rouletteModal{inset:0!important;padding:18px 20px!important}
body.beta-roulette-spin-active #rouletteModal .roulette-container-full{min-height:calc(100dvh - 36px)!important}

@media(max-width:640px){.beta-history-row{grid-template-columns:42px 1fr}.beta-history-row>img{width:42px;height:42px}.beta-history-meta{grid-column:1/-1;justify-content:flex-start;padding-left:54px}}

.game-status-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;clip-path:inset(50%)!important}
#rouletteModal.maze-mode-active #mazeGameBoard,
#rouletteModal.ball-mode-active #ballGameBoard{
  grid-template-rows:minmax(0,1fr)!important;
  gap:8px!important;
  padding:8px!important;
}
#mazeGameBoard .maze-game-main,
#ballGameBoard .ball-game-main{
  grid-template-rows:auto minmax(0,1fr)!important;
}
#mazeGameBoard .maze-game-topbar,
#ballGameBoard .ball-game-topbar{
  min-height:58px!important;
  height:58px!important;
  display:grid!important;
  grid-template-columns:auto minmax(160px,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:7px 10px!important;
  background:linear-gradient(180deg,#10131c,#0b0e15)!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
}
#mazeGameBoard .maze-lobby-chances,
#ballGameBoard .ball-lobby-chances{
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  scrollbar-width:none!important;
}
#mazeGameBoard .maze-lobby-chances::-webkit-scrollbar,
#ballGameBoard .ball-lobby-chances::-webkit-scrollbar{display:none!important}
#mazeGameBoard .maze-lobby-chances>span,
#ballGameBoard .ball-lobby-chances>span{
  flex:0 0 auto!important;
  height:26px!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:8.5px!important;
  color:#b8bfcc!important;
  background:#141923!important;
  border:1px solid rgba(255,255,255,.07)!important;
}
#mazeGameBoard .maze-game-meta,
#ballGameBoard .ball-game-meta{justify-self:end!important;gap:5px!important}
#mazeGameBoard .maze-game-meta>div,
#ballGameBoard .ball-game-meta>div{min-width:64px!important;padding:5px 7px!important;background:#111620!important;border-color:rgba(255,255,255,.06)!important}
#mazeGameBoard .maze-game-meta span,
#ballGameBoard .ball-game-meta span{font-size:7px!important}
#mazeGameBoard .maze-game-meta strong,
#ballGameBoard .ball-game-meta strong{font-size:12px!important}
.maze-top-actions,.ball-top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important}
.maze-top-actions button,.ball-top-actions button{height:38px!important;min-height:38px!important;padding:0 12px!important;font-size:9px!important;white-space:nowrap!important;border-radius:10px!important}
.maze-start-race-btn,.ball-start-btn{min-width:136px!important}
#mazeGameBoard .maze-site-brand,#ballGameBoard .ball-site-brand,
#mazeGameBoard .maze-lobby-info,#ballGameBoard .ball-game-toolbar,
#mazeGameBoard .maze-game-actions,#ballGameBoard .ball-game-actions{display:none!important}
#mazeGameBoard .maze-game-viewport,#ballGameBoard .ball-game-viewport{background:#080b11!important}
#mazeGameBoard .maze-ranking-panel,#ballGameBoard .ball-ranking-panel{background:linear-gradient(180deg,#11141c,#0b0e15)!important}

.quiz-game-overlay.quiz-lobby-state .quiz-question-card{justify-content:center!important;padding:30px 34px!important}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{font-size:46px!important;margin:18px auto 14px!important}
.quiz-game-overlay.quiz-lobby-state .quiz-round-message{font-size:14px!important;max-width:760px!important;margin-top:8px!important}
.quiz-lobby-guide{width:min(880px,98%)!important;margin:24px auto 12px!important;gap:13px!important}
.quiz-lobby-guide-card{min-height:118px!important;padding:16px!important;gap:13px!important;border-radius:15px!important}
.quiz-lobby-guide-card>i{width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:12px!important;font-size:17px!important}
.quiz-lobby-guide-card strong{font-size:13px!important;line-height:1.25!important}
.quiz-lobby-guide-card small{font-size:11px!important;line-height:1.48!important;margin-top:7px!important}
.quiz-lobby-mode-note{padding:12px 16px!important;font-size:11px!important;line-height:1.5!important;border-radius:13px!important}
@media(max-width:1180px){
  #mazeGameBoard .maze-game-topbar,#ballGameBoard .ball-game-topbar{grid-template-columns:auto minmax(100px,1fr) auto!important;height:auto!important;min-height:58px!important}
  .maze-top-actions,.ball-top-actions{grid-column:1/-1!important;justify-content:flex-end!important}
}

.weights-base-group-label{margin-top:2px!important}
.weights-base-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-bottom:14px!important}
.weights-extra-group-label{margin-top:4px!important}
.weights-panel-modal .weight-platform-base{border-color:rgba(var(--sortix-accent-rgb),.16)!important;background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.065),rgba(10,13,20,.64))!important}
.weights-panel-modal .weight-platform-base label{font-weight:900!important}
.weights-panel-modal .weight-platform-base .modern-input{font-size:17px!important;font-weight:900!important;text-align:center!important}
@media(max-width:760px){.weights-base-grid{grid-template-columns:1fr!important}}

#rouletteModal.cards-mode-active{
  overflow:hidden!important;
}
#rouletteModal.cards-mode-active .roulette-container-full{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}
#rouletteModal.cards-mode-active #cardsGameBoard.cards-game-board{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:16px 20px 14px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
#rouletteModal.cards-mode-active #cardsGameGrid.cards-game-grid{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  padding:8px 12px 10px!important;
}
#rouletteModal.cards-mode-active #cardsSelectionActions.cards-selection-actions{
  flex:0 0 auto!important;
  width:100%!important;
  min-height:54px!important;
  margin:8px 0 0!important;
  padding:8px 10px 8px 14px!important;
  border-radius:14px!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.24)!important;
  background:linear-gradient(180deg,rgba(17,21,31,.98),rgba(10,13,20,.98))!important;
  box-shadow:0 -8px 28px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)!important;
  z-index:20!important;
}
#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selected-label{
  font-size:11px!important;
  color:#dfe3ec!important;
}
#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons button{
  min-height:38px!important;
  border-radius:11px!important;
  padding:0 16px!important;
  font-size:10px!important;
  font-weight:900!important;
}
#rouletteModal.cards-mode-active #cardsSelectionActions .cards-eliminate-btn{
  background:rgba(239,68,68,.07)!important;
  border-color:rgba(239,68,68,.34)!important;
  color:#ff9aa8!important;
}
#rouletteModal.cards-mode-active #cardsSelectionActions .cards-winner-btn{
  min-width:170px!important;
  color:#fff!important;
}
#rouletteModal.cards-mode-active #cardsEliminatedPanel.cards-eliminated-panel{
  flex:0 0 auto!important;
  max-height:34px!important;
  margin-top:6px!important;
}

@media(max-height:760px) and (min-width:900px){
  #rouletteModal.cards-mode-active #cardsGameBoard.cards-game-board{padding:11px 16px 10px!important}
  #rouletteModal.cards-mode-active .cards-game-header{margin-bottom:5px!important}
  #rouletteModal.cards-mode-active #cardsSelectionActions.cards-selection-actions{min-height:48px!important;padding:6px 8px 6px 12px!important}
  #rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons button{min-height:34px!important}
}

body.beta-classic-roulette-overlay-active #beta-global-header,
body.beta-classic-roulette-overlay-active > footer{
  display:none!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active){
  inset:0!important;
  top:0!important;right:0!important;bottom:0!important;left:0!important;
  width:100vw!important;height:100dvh!important;
  padding:18px 20px!important;
  background:rgba(3,5,9,.62)!important;
  -webkit-backdrop-filter:blur(12px) brightness(.42) saturate(.78)!important;
  backdrop-filter:blur(12px) brightness(.42) saturate(.78)!important;
  overflow:hidden!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-container-full{
  width:100%!important;
  min-height:calc(100dvh - 36px)!important;
  height:auto!important;
  max-height:calc(100dvh - 36px)!important;
  justify-content:center!important;
  align-items:center!important;
  gap:26px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-container-full::-webkit-scrollbar{display:none!important}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window{
  flex:0 0 auto!important;
  width:100%!important;
  margin:0!important;
  background:linear-gradient(180deg,rgba(15,18,26,.96),rgba(8,11,17,.96))!important;
  box-shadow:0 24px 70px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) #rouletteResultPanel{
  flex:0 0 auto!important;
  margin:0 auto!important;
  background:linear-gradient(180deg,rgba(15,18,26,.98),rgba(9,12,18,.98))!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.28)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.58),0 0 34px rgba(var(--sortix-accent-rgb),.10),inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(18px)!important;
}

body.beta-roulette-spin-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active){
  background:rgba(3,5,9,.62)!important;
  -webkit-backdrop-filter:blur(12px) brightness(.42) saturate(.78)!important;
  backdrop-filter:blur(12px) brightness(.42) saturate(.78)!important;
}
@media(max-height:760px) and (min-width:900px){
  body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active){padding:10px 14px!important}
  body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-container-full{min-height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;gap:14px!important}
  body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window{height:230px!important}
}

#weights-modal .weights-panel-modal{
  background:rgba(7,10,16,.52)!important;
  border:1px solid rgba(255,255,255,.065)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
}
#weights-modal .weights-panel-modal .weights-base-grid,
#weights-modal .weights-panel-modal .weights-extra-grid{
  align-items:end!important;
}
#weights-modal .weights-panel-modal .weight-input,
#weights-modal .weights-panel-modal .weight-platform-base{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
#weights-modal .weights-panel-modal .weight-input label{
  min-height:20px!important;
  margin:0 0 6px!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  color:#aeb7ca!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
#weights-modal .weights-panel-modal .weight-tier-only label{
  color:#c8c0dd!important;
  font-weight:900!important;
}
#weights-modal .weights-panel-modal .weight-input .modern-input{
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  padding:8px 12px!important;
  border-radius:12px!important;
  background:#0d1118!important;
  border:1px solid rgba(255,255,255,.065)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:900!important;
  text-align:center!important;
}
#weights-modal .weights-panel-modal .weight-input .modern-input:focus{
  border-color:rgba(var(--sortix-accent-rgb),.55)!important;
  box-shadow:0 0 0 3px rgba(var(--sortix-accent-rgb),.08)!important;
  outline:0!important;
}

body.beta-cards-result-overlay-active #beta-global-header,
body.beta-cards-result-overlay-active > footer{
  display:none!important;
}
body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active{
  inset:0!important;
  top:0!important;right:0!important;bottom:0!important;left:0!important;
  width:100vw!important;
  height:100dvh!important;
  padding:18px 20px!important;
  background:rgba(3,5,9,.62)!important;
  -webkit-backdrop-filter:blur(12px) brightness(.42) saturate(.78)!important;
  backdrop-filter:blur(12px) brightness(.42) saturate(.78)!important;
  overflow:hidden!important;
}
body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-container-full{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:calc(100dvh - 36px)!important;
  max-height:calc(100dvh - 36px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #cardsGameBoard.cards-game-board{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  opacity:.34!important;
  filter:blur(10px) brightness(.54) saturate(.76)!important;
  transform:scale(.985)!important;
  pointer-events:none!important;
  user-select:none!important;
}
body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #cardsSelectionActions.cards-selection-actions,
body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #cardsEliminatedPanel.cards-eliminated-panel{
  visibility:hidden!important;
}
body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #rouletteResultPanel.roulette-result-panel{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:40!important;
  width:min(92vw,720px)!important;
  max-width:720px!important;
  margin:0!important;
  background:linear-gradient(180deg,rgba(15,18,26,.985),rgba(9,12,18,.985))!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.28)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.58),0 0 34px rgba(var(--sortix-accent-rgb),.10),inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(18px)!important;
}
@media(max-width:900px){
  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active{padding:12px!important}
  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-container-full{min-height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important}
  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #rouletteResultPanel.roulette-result-panel{width:min(96vw,720px)!important}
}

body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window,
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) #rouletteResultPanel{
  align-self:center!important;
}

#beta-generic-modal.beta-generic-modal{z-index:4200!important}
.beta-history-empty{min-height:90px;display:flex;align-items:center;justify-content:center;gap:10px;color:#aeb6c8;text-align:center;font-size:12px}
.beta-history-empty i{color:var(--sortix-accent);font-size:18px}

.btn-gradient-primary:disabled,
.btn-gradient-primary[disabled]{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent))!important;
  opacity:.60!important;
  filter:saturate(.72) brightness(.96)!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
}
.btn-gradient-primary:disabled i,
.btn-gradient-primary[disabled] i,
.btn-outline:disabled i,
.btn-outline[disabled] i{
  color:inherit!important;
}
#mazeGameBoard .maze-winner-confirmation button:disabled,
#ballGameBoard .ball-winner-confirmation button:disabled,
.quiz-stage-actions .btn-gradient-primary:disabled,
.quiz-stage-actions .btn-gradient-primary[disabled]{
  opacity:.60!important;
}
.btn-outline:disabled,
.btn-outline[disabled]{
  color:rgba(255,255,255,.84)!important;
  opacity:.60!important;
}
.beta-language-switcher .language-flag-btn[data-lang]{
  flex:0 0 28px!important;
}
@media(max-width:760px){
  .beta-language-switcher{gap:3px!important}
  .beta-language-switcher .language-flag-btn{width:26px!important;height:26px!important;padding:2px!important}
  .beta-language-switcher .language-flag-svg{width:18px!important;height:13px!important}
}

.quiz-game-overlay.quiz-lobby-state .quiz-question-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto auto!important;
  align-content:start!important;
  justify-items:stretch!important;
  gap:10px!important;
  padding:18px 18px 16px!important;
  justify-content:flex-start!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-difficulty-pill{
  justify-self:center!important;
  margin:0!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{
  width:100%!important;
  min-height:96px!important;
  margin:0!important;
  padding:14px 22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:16px!important;
  font-size:clamp(34px,4vw,54px)!important;
  line-height:1.02!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-options-grid,
.quiz-game-overlay.quiz-lobby-state .quiz-timer{
  display:none!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide{
  width:100%!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  text-align:left!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card{
  min-height:88px!important;
  padding:12px 14px!important;
  gap:10px!important;
  border-radius:14px!important;
  align-items:flex-start!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card > i{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:11px!important;
  font-size:15px!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card strong{
  font-size:12px!important;
  line-height:1.2!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card small{
  margin-top:5px!important;
  font-size:10px!important;
  line-height:1.42!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-mode-note{
  grid-column:1 / -1!important;
  width:100%!important;
  margin:0!important;
  padding:10px 14px!important;
  border-radius:13px!important;
  font-size:10px!important;
  line-height:1.42!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-round-message{
  width:100%!important;
  max-width:none!important;
  min-height:48px!important;
  margin:0!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  color:#d6dbea!important;
  font-size:11px!important;
  line-height:1.35!important;
  border:1px solid rgba(255,255,255,.06)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(12,16,24,.84),rgba(8,11,17,.84))!important;
}

@media(max-width:1180px){
  .quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:760px){
  .quiz-game-overlay.quiz-lobby-state .quiz-question-card{
    padding:14px 14px 12px!important;
    gap:8px!important;
  }
  .quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{
    min-height:82px!important;
    padding:12px 16px!important;
    font-size:clamp(28px,8vw,42px)!important;
  }
  .quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card{
    min-height:76px!important;
    padding:10px 12px!important;
  }
  .quiz-game-overlay.quiz-lobby-state .quiz-round-message{
    min-height:42px!important;
    font-size:10px!important;
  }

}

body.beta-classic-roulette-overlay-active #app-container{
  visibility:hidden!important;
  content-visibility:hidden!important;
}
body.beta-classic-roulette-overlay-active::before,
body.beta-classic-roulette-overlay-active::after{
  display:none!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active),
body.beta-roulette-spin-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active){
  background:#07090e!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window,
body.beta-roulette-spin-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:0 18px 46px rgba(0,0,0,.44)!important;
}
body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-track{
  will-change:transform!important;
  transform:translateZ(0);
  backface-visibility:hidden;
}

@media (min-width: 981px){
  #landing-screen.beta-home .beta-home-shell{
    transform:translateY(-70px)!important;
  }
}

@media (max-width: 980px){
  #landing-screen.beta-home .beta-home-shell{
    transform:none!important;
  }
}

#setup-modal .raffle-style-panel{
  position:relative!important;
}

#setup-modal .raffle-style-panel::before{top:-1px}
#setup-modal .raffle-style-panel::after{
  bottom:-1px;
  animation-delay:-2.2s;
}

@keyframes betaConfigLineSweep{
  0%{transform:translate3d(0,0,0);opacity:0}
  10%{opacity:.9}
  88%{opacity:.9}
  100%{transform:translate3d(194%,0,0);opacity:0}
}

@media (prefers-reduced-motion: reduce){
  }

#beta-global-header{
  overflow:hidden;
}

#beta-global-header::before{
  content:none!important;
  display:none!important;
  animation:none!important;
  box-shadow:none!important;
  background:none!important;
}

#beta-global-header::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:auto!important;
  height:1px!important;
  opacity:1!important;
  pointer-events:none!important;
  background:rgba(255,255,255,.07)!important;
  box-shadow:none!important;
  animation:none!important;
}

#setup-modal .confirmation-panel.beta-quick-settings,
#setup-modal .confirmation-panel.beta-confirmation-inline{
  grid-template-columns:1.16fr .84fr 1fr!important;
  gap:10px!important;
}

#setup-modal #weights-toggle-btn{
  height:58px!important;
  min-height:58px!important;
  padding:8px 12px!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.48)!important;
  border-radius:13px!important;
  background:
    linear-gradient(135deg,
      rgba(var(--sortix-accent-rgb),.16) 0%,
      rgba(var(--sortix-accent-rgb),.075) 48%,
      rgba(14,18,28,.94) 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 0 0 1px rgba(var(--sortix-accent-rgb),.045),
    0 7px 20px rgba(var(--sortix-accent-rgb),.07)!important;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease!important;
}

#setup-modal #weights-toggle-btn:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(var(--sortix-accent-rgb),.78)!important;
  background:
    linear-gradient(135deg,
      rgba(var(--sortix-accent-rgb),.24) 0%,
      rgba(var(--sortix-accent-rgb),.11) 50%,
      rgba(16,20,31,.98) 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 0 0 1px rgba(var(--sortix-accent-rgb),.08),
    0 9px 24px rgba(var(--sortix-accent-rgb),.11)!important;
}

#setup-modal #weights-toggle-btn .weights-toggle-main{
  gap:10px!important;
  min-width:0!important;
}

#setup-modal #weights-toggle-btn .weights-toggle-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  border-radius:10px!important;
  color:var(--sortix-accent-text)!important;
  background:rgba(var(--sortix-accent-rgb),.17)!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.26)!important;
}

#setup-modal #weights-toggle-btn .weights-toggle-icon i{
  font-size:14px!important;
}

#setup-modal #weights-toggle-btn .weights-toggle-copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:3px!important;
}

#setup-modal #weights-toggle-btn .weights-toggle-copy strong{
  color:#fff!important;
  font-size:13.4px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.28px!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}

#setup-modal #weights-toggle-btn .weights-toggle-copy small{
  color:#aeb6c9!important;
  font-size:9.3px!important;
  line-height:1.08!important;
  font-weight:650!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}

#setup-modal #weights-toggle-btn #weights-toggle-chevron{
  margin-left:auto!important;
  padding-left:8px!important;
  color:rgba(var(--sortix-accent-rgb),.95)!important;
  font-size:12px!important;
}

#setup-modal #confirmation-time-field.confirmation-time-card{
  height:58px!important;
  min-height:58px!important;
  max-height:58px!important;
  padding:8px 11px!important;
}

#setup-modal #confirmation-time-field .confirmation-time-copy{
  gap:3px!important;
}

#setup-modal #confirmation-time-field .confirmation-time-copy>span{
  color:#a1a9ba!important;
  font-size:8.7px!important;
  font-weight:850!important;
  letter-spacing:.2px!important;
}

#setup-modal #confirmation-time-field .confirmation-time-copy>strong{
  color:#fff!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1.02!important;
  letter-spacing:.1px!important;
}

#setup-modal #confirmation-time-field .confirmation-time-box{
  width:92px!important;
  min-width:92px!important;
  max-width:92px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  border-color:#343b50!important;
}

#setup-modal #confirmation-time-field #confirmation-time{
  font-size:18px!important;
}

#setup-modal .auto-confirm-toggle{
  height:58px!important;
  min-height:58px!important;
  padding:8px 11px!important;
}

#setup-modal .auto-confirm-toggle strong{
  color:#f7f8fb!important;
  font-size:11.6px!important;
  font-weight:900!important;
  line-height:1.08!important;
}

#setup-modal .auto-confirm-toggle small{
  color:#969eb0!important;
  font-size:8.7px!important;
  line-height:1.12!important;
}

@media(max-width:760px){
  #setup-modal .confirmation-panel.beta-quick-settings,
  #setup-modal .confirmation-panel.beta-confirmation-inline{
    grid-template-columns:1fr!important;
  }

  #setup-modal #weights-toggle-btn,
  #setup-modal #confirmation-time-field.confirmation-time-card,
  #setup-modal .auto-confirm-toggle{
    height:58px!important;
    min-height:58px!important;
  }

  #setup-modal #weights-toggle-btn .weights-toggle-copy strong{
    font-size:13px!important;
  }
}

.grid-container{
  gap:12px!important;
}

@media(max-height:820px) and (min-width:900px){

}
@media(max-width:760px){

}

.beta-gallery-stats .beta-gallery-icon{
  width:36px!important;
  min-width:36px!important;
  height:42px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  color:#d8c4ff!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
}
.beta-gallery-stats .beta-gallery-icon i{
  font-size:18px!important;
}

.beta-gallery-stats .beta-gallery-metric{
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:6px 8px!important;
}
.beta-gallery-stats .beta-gallery-metric span,
.beta-gallery-stats .beta-gallery-metric strong{
  width:100%!important;
  text-align:center!important;
}

.beta-gallery-controls .beta-gallery-back{
  width:94px!important;
  min-width:94px!important;
  text-align:center!important;
  justify-content:center!important;
  gap:7px!important;
  white-space:nowrap!important;
}

#setup-modal{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  touch-action:pan-y!important;
}
#setup-modal > .setup-box,
#setup-modal > .setup-box.beta-panel-model{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:0 0 auto!important;
  margin:0 auto!important;
  padding-bottom:24px!important;
}
#setup-modal{
  scrollbar-width:thin;
  scrollbar-color:rgba(var(--sortix-accent-rgb),.62) rgba(255,255,255,.035);
}
#setup-modal::-webkit-scrollbar{width:10px}
#setup-modal::-webkit-scrollbar-track{background:rgba(255,255,255,.025)}
#setup-modal::-webkit-scrollbar-thumb{
  background:rgba(var(--sortix-accent-rgb),.60);
  border:3px solid rgba(7,9,14,.95);
  border-radius:999px;
}
@media(min-width:900px) and (min-height:800px){
  #setup-modal{overflow-y:auto!important;overflow-x:hidden!important}
}
#setup-modal .setup-box > #start-btn{
  flex:0 0 auto!important;
  margin-bottom:8px!important;
}

body.setup-subs-mode #weights-modal .weights-base-group-label,
body.setup-subs-mode #weights-modal .weights-base-grid,
body.setup-subs-mode #weights-modal .weight-platform-base{
  display:none!important;
}
body.setup-subs-mode #weights-modal .weights-extra-group-label{margin-top:0!important}

.participant-card-tooltip[hidden]{display:none!important}

body.beta-classic-roulette-overlay-active #rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) #rouletteResultPanel{
  width:min(92vw,620px)!important;
  max-width:620px!important;
  padding:18px!important;
  gap:10px!important;
  border-radius:18px!important;
}
.roulette-winner-profile{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:0 2px 2px;
}
.roulette-winner-avatar{
  width:58px;
  height:58px;
  min-width:58px;
  object-fit:cover;
  border-radius:15px;
  border:1px solid rgba(var(--sortix-accent-rgb),.55);
  background:#0b0f17;
}
.roulette-winner-profile-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.roulette-winner-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--sortix-accent-text);
  font-size:8px;
  font-weight:950;
  letter-spacing:1.15px;
  line-height:1;
}
.roulette-winner-kicker i{font-size:8px}
#rouletteWinnerProfile .roulette-winner-name{
  width:100%!important;
  margin:0!important;
  display:block!important;
  text-align:left!important;
  font-size:clamp(22px,3vw,31px)!important;
  line-height:1!important;
  color:#fff!important;
  text-shadow:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#rouletteWinnerProfile .winner-name-text{
  display:block;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.roulette-winner-meta{
  width:100%;
  min-height:20px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  flex-wrap:wrap;
}
.winner-meta-chip{
  height:20px;
  min-height:20px;
  padding:0 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:#0c1119;
  color:#bdc5d7;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:7px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}
.winner-meta-chip i{font-size:7px}
.winner-meta-platform{color:#d8ddec}
.winner-meta-vip{color:#baffc7;border-color:rgba(91,226,122,.20);background:rgba(22,74,35,.28)}
.winner-meta-sub{color:#d9c7ff;border-color:rgba(154,91,255,.22);background:rgba(92,50,150,.20)}
.winner-meta-gifts{color:#ffe08a;border-color:rgba(255,210,78,.22);background:rgba(103,75,18,.25)}
.winner-meta-bits{color:#ddc2ff;border-color:rgba(169,112,255,.25);background:rgba(73,44,111,.28)}

body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-stats-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .stat-box{
  min-height:54px!important;
  padding:8px 9px!important;
  border-radius:12px!important;
  background:rgba(7,10,16,.72)!important;
  border:1px solid rgba(255,255,255,.055)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .stat-label{
  font-size:7.2px!important;
  line-height:1!important;
  letter-spacing:.55px!important;
  text-align:center!important;
  color:#8f99af!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .stat-value{
  font-size:20px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .result-tool-row{
  width:100%!important;
  margin:0!important;
  gap:8px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .ticket-audit-result-btn{
  min-height:36px!important;
  padding:0 12px!important;
  font-size:9px!important;
  border-radius:10px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .chat-timer-box{
  width:100%!important;
  min-height:60px!important;
  margin:0!important;
  padding:9px 12px!important;
  border-radius:12px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .chat-timer-label{
  font-size:8px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .chat-timer-value{
  font-size:24px!important;
  line-height:1!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-result-actions{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:0!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-result-actions button{
  min-width:0!important;
  min-height:42px!important;
  padding:8px 10px!important;
  font-size:9.5px!important;
  border-radius:10px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnConfirmWinner{
  grid-column:auto!important;
}
#rouletteModal.cards-mode-active #rouletteWinnerProfile,
#rouletteModal.maze-mode-active #rouletteWinnerProfile,
#rouletteModal.ball-mode-active #rouletteWinnerProfile{
  display:none!important;
}

#system-dialog.is-mamou-dialog .system-dialog-close{
  display:inline-flex!important;
}

@media(max-width:640px){
  .roulette-winner-profile{grid-template-columns:48px minmax(0,1fr);gap:10px}
  .roulette-winner-avatar{width:48px;height:48px;min-width:48px;border-radius:13px}
  #rouletteWinnerProfile .roulette-winner-name{font-size:22px!important}
  body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-stats-grid{gap:6px!important}
  body.beta-classic-roulette-overlay-active #rouletteResultPanel .stat-label{font-size:6.5px!important}
  body.beta-classic-roulette-overlay-active #rouletteResultPanel .stat-value{font-size:17px!important}
  body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-result-actions{grid-template-columns:1fr!important}
}

.roulette-game-help-btn{display:none!important}

body.beta-classic-roulette-overlay-active #rouletteResultPanel{
  padding:16px 18px!important;
  gap:9px!important;
}
.roulette-result-head{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 156px!important;
  gap:12px!important;
  align-items:center!important;
}
.roulette-result-head .roulette-winner-profile{padding:0!important}

body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer{
  width:156px!important;
  min-width:156px!important;
  max-width:156px!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:8px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  border-radius:12px!important;
  background:rgba(8,11,17,.76)!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.20)!important;
  box-shadow:none!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer .chat-timer-label{
  width:100%!important;
  max-width:100%!important;
  font-size:7.2px!important;
  line-height:1.08!important;
  text-align:center!important;
  color:#9ca5b9!important;
  white-space:normal!important;
  text-transform:uppercase!important;
  font-weight:900!important;
  letter-spacing:.32px!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer .chat-timer-value{
  font-size:22px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#fff!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer.timer-success{
  border-color:rgba(16,185,129,.35)!important;
  background:rgba(8,33,27,.52)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer.timer-success .chat-timer-value{
  color:#31e6a1!important;
}

body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-result-actions button{
  min-height:44px!important;
  padding:9px 10px!important;
  border-radius:11px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.22px!important;
  text-transform:uppercase!important;
  box-shadow:none!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnRepick{
  color:#ff9aa9!important;
  border-color:rgba(255,73,102,.32)!important;
  background:rgba(91,20,34,.32)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnRepick:hover{
  color:#ffd6dc!important;
  border-color:rgba(255,73,102,.55)!important;
  background:rgba(117,25,43,.45)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnForceConfirm{
  color:#9df4c7!important;
  border-color:rgba(16,185,129,.35)!important;
  background:rgba(10,73,55,.30)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnForceConfirm:hover{
  border-color:rgba(16,185,129,.62)!important;
  background:rgba(12,96,70,.42)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnDrawAnother{
  color:#d9c5ff!important;
  border-color:rgba(154,91,255,.38)!important;
  background:rgba(73,38,126,.30)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnDrawAnother:hover{
  border-color:rgba(154,91,255,.68)!important;
  background:rgba(92,49,157,.42)!important;
}
body.beta-classic-roulette-overlay-active #rouletteResultPanel #btnConfirmWinner{
  color:#fff!important;
  border-color:rgba(var(--sortix-accent-rgb),.58)!important;
  background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent))!important;
}

.winner-live-message{
  top:14px!important;
  width:min(520px,calc(100% - 48px))!important;
  min-height:38px!important;
  padding:8px 11px!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  border-color:rgba(var(--sortix-accent-rgb),.38)!important;
  background:rgba(8,11,17,.94)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
  backdrop-filter:none!important;
}
.winner-live-message::after{display:none!important}
.winner-live-message-platform{display:inline-grid!important;place-items:center!important;flex:0 0 auto!important}
.winner-live-message-user{
  flex:0 0 auto!important;
  max-width:120px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--sortix-accent-text)!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
}
.winner-live-message-user::after{content:":";color:#667087;margin-left:1px}
.winner-live-message-text{
  flex:1 1 auto!important;
  min-width:0!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.winner-live-message.is-winner-message{
  border-color:rgba(16,185,129,.50)!important;
  background:rgba(7,30,24,.95)!important;
}
.winner-live-message.is-winner-message .winner-live-message-user{color:#45e9aa!important}

@media(max-width:640px){
  .roulette-result-head{grid-template-columns:1fr!important;gap:8px!important}
  body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer{
    width:100%!important;min-width:0!important;max-width:none!important;height:48px!important;min-height:48px!important;
    flex-direction:row!important;justify-content:space-between!important;padding:7px 12px!important;
  }
  body.beta-classic-roulette-overlay-active #rouletteResultPanel .roulette-head-timer .chat-timer-label{text-align:left!important}
  .winner-live-message{width:calc(100% - 24px)!important;top:8px!important}
}

#rouletteModal.cards-mode-active .cards-game-header{
  position:relative!important;
  flex:0 0 52px!important;
  min-height:52px!important;
  margin:0 0 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 132px!important;
  box-sizing:border-box!important;
}

#rouletteModal.cards-mode-active .cards-game-heading{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  text-align:center!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-kicker{
  flex:0 0 auto!important;
  font-size:9px!important;
  letter-spacing:.08em!important;
}

#rouletteModal.cards-mode-active .cards-game-heading h2{
  flex:0 0 auto!important;
  margin:0!important;
  font-size:clamp(18px,1.7vw,25px)!important;
  line-height:1!important;
}

#rouletteModal.cards-mode-active .cards-game-heading p{
  min-width:0!important;
  max-width:580px!important;
  margin:0!important;
  color:#858da0!important;
  font-size:9px!important;
  line-height:1.1!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-summary{
  position:absolute!important;
  top:50%!important;
  right:0!important;
  transform:translateY(-50%)!important;
  min-width:112px!important;
  height:42px!important;
  padding:5px 10px!important;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  grid-template-rows:1fr 1fr!important;
  column-gap:7px!important;
  align-items:center!important;
  border-radius:11px!important;
  text-align:left!important;
  box-sizing:border-box!important;
}

#rouletteModal.cards-mode-active .cards-game-summary strong{
  grid-row:1/-1!important;
  align-self:center!important;
  font-size:20px!important;
  line-height:1!important;
}

#rouletteModal.cards-mode-active .cards-game-summary span{
  margin:0!important;
  font-size:7px!important;
  line-height:1!important;
}

#rouletteModal.cards-mode-active .cards-game-summary small{
  margin:0!important;
  font-size:6.8px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active #cardsGameBoard.cards-game-board{
  padding:8px 10px 8px!important;
}

#rouletteModal.cards-mode-active #cardsGameGrid.cards-game-grid{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  padding:4px 8px!important;
  gap:var(--cards-gap,10px)!important;
  justify-content:center!important;
  overflow:hidden!important;
}

#rouletteModal.cards-mode-active .cards-game-row{
  width:100%!important;
  gap:var(--cards-gap,10px)!important;
  justify-content:center!important;
}

#rouletteModal.cards-mode-active .cards-game-card{
  width:var(--cards-width)!important;
  height:var(--cards-height)!important;
  max-width:none!important;
  aspect-ratio:auto!important;
  flex:0 0 auto!important;
}

#rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
  flex:0 0 44px!important;
  min-height:44px!important;
  width:100%!important;
  margin:4px 0 0!important;
  padding:5px 7px 5px 10px!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.20)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,rgba(16,20,30,.94),rgba(10,13,20,.94))!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

#rouletteModal.cards-mode-active .cards-game-toolbar-info{
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  overflow:hidden!important;
}

#rouletteModal.cards-mode-active #cardsSelectedLabel.cards-selected-label{
  flex:0 0 auto!important;
  height:30px!important;
  padding:0 9px!important;
  align-items:center!important;
  border-radius:9px!important;
  background:rgba(var(--sortix-accent-rgb),.08)!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.17)!important;
  font-size:9px!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active #cardsEliminatedPanel.cards-eliminated-panel{
  min-width:0!important;
  flex:1 1 auto!important;
  max-height:none!important;
  height:30px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  overflow:hidden!important;
}

#rouletteModal.cards-mode-active .cards-eliminated-title{
  flex:0 0 auto!important;
  font-size:7px!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-eliminated-list{
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  gap:4px!important;
  overflow:hidden!important;
}

#rouletteModal.cards-mode-active .cards-eliminated-chip{
  flex:0 1 auto!important;
  max-width:112px!important;
  height:26px!important;
  padding:0 6px!important;
  gap:4px!important;
  font-size:7px!important;
}

#rouletteModal.cards-mode-active .cards-eliminated-chip img{
  width:16px!important;
  height:16px!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions.cards-selection-actions{
  flex:0 0 auto!important;
  width:auto!important;
  min-height:0!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons{
  height:34px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons button{
  min-height:32px!important;
  height:32px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:9px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions .cards-winner-btn{
  min-width:145px!important;
}

#rouletteModal.cards-mode-active > #cardsSelectionActions,
#rouletteModal.cards-mode-active > #cardsEliminatedPanel{
  margin:0!important;
}

@media(max-width:1100px){
  #rouletteModal.cards-mode-active .cards-game-header{
    padding:0 104px 0 0!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading{
    gap:8px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading p{
    max-width:360px!important;
    font-size:8px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    min-width:98px!important;
  }
  #rouletteModal.cards-mode-active .cards-eliminated-title{
    display:none!important;
  }
}

@media(max-width:760px){
  #rouletteModal.cards-mode-active .cards-game-header{
    flex-basis:46px!important;
    min-height:46px!important;
    padding-right:90px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-kicker{
    display:none!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading h2{
    font-size:17px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading p{
    display:none!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    min-width:84px!important;
    height:38px!important;
  }
  #rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
    min-height:42px!important;
    flex-basis:42px!important;
    padding:4px 5px!important;
  }
  #rouletteModal.cards-mode-active #cardsEliminatedPanel.cards-eliminated-panel{
    display:none!important;
  }
  #rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons button{
    padding:0 8px!important;
    font-size:8px!important;
  }
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #cardModeWinnerHero{
  display:none!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #rouletteWinnerProfile{
  display:grid!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #rouletteResultPanel{
  width:min(92vw,620px)!important;
  max-width:620px!important;
  padding:16px 18px!important;
  gap:9px!important;
  border-radius:18px!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-result-head{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 156px!important;
  gap:12px!important;
  align-items:center!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-head-timer{
  width:156px!important;
  min-width:156px!important;
  max-width:156px!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:8px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  border-radius:12px!important;
  background:rgba(8,11,17,.76)!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.20)!important;
  box-shadow:none!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-head-timer .chat-timer-label{
  width:100%!important;
  max-width:100%!important;
  font-size:7.2px!important;
  line-height:1.08!important;
  text-align:center!important;
  color:#9ca5b9!important;
  white-space:normal!important;
  text-transform:uppercase!important;
  font-weight:900!important;
  letter-spacing:.32px!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-head-timer .chat-timer-value{
  font-size:22px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#fff!important;
}

.winner-meta-card{
  color:#e1cfff!important;
  border-color:rgba(var(--sortix-accent-rgb),.24)!important;
  background:rgba(var(--sortix-accent-rgb),.10)!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-stats-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .stat-box{
  min-height:54px!important;
  padding:8px 9px!important;
  border-radius:12px!important;
  background:rgba(7,10,16,.72)!important;
  border:1px solid rgba(255,255,255,.055)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .stat-label{
  font-size:7.2px!important;
  line-height:1!important;
  letter-spacing:.55px!important;
  text-align:center!important;
  color:#8f99af!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .stat-value{
  font-size:20px!important;
  line-height:1!important;
  font-weight:950!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .result-tool-row{
  width:100%!important;
  margin:0!important;
  gap:8px!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .ticket-audit-result-btn{
  min-height:36px!important;
  padding:0 12px!important;
  font-size:9px!important;
  border-radius:10px!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-result-actions{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:0!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-result-actions button{
  min-width:0!important;
  min-height:44px!important;
  padding:9px 10px!important;
  border-radius:11px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.22px!important;
  text-transform:uppercase!important;
  box-shadow:none!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #btnRepick{
  color:#ff9aa9!important;
  border-color:rgba(255,73,102,.32)!important;
  background:rgba(91,20,34,.32)!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #btnForceConfirm{
  color:#9df4c7!important;
  border-color:rgba(16,185,129,.35)!important;
  background:rgba(10,73,55,.30)!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #btnDrawAnother{
  color:#d9c5ff!important;
  border-color:rgba(154,91,255,.38)!important;
  background:rgba(73,38,126,.30)!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #btnConfirmWinner{
  color:#fff!important;
  border-color:rgba(var(--sortix-accent-rgb),.58)!important;
  background:linear-gradient(90deg,var(--sortix-accent-2),var(--sortix-accent))!important;
}

body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #btnAuditTickets{
  min-width:210px!important;
}

@media(max-width:640px){
  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-result-head{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-head-timer{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:48px!important;
    min-height:48px!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    padding:7px 12px!important;
  }

  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active .roulette-result-actions{
    grid-template-columns:1fr!important;
  }

  body.beta-cards-result-overlay-active #rouletteModal.cards-mode-active #btnAuditTickets{
    min-width:0!important;
    width:100%!important;
  }
}

#rouletteModal.cards-mode-active .cards-game-header{
  display:grid!important;
  grid-template-columns:minmax(155px,1fr) auto minmax(155px,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  padding:0 4px!important;
  column-gap:14px!important;
}

#rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker{
  position:static!important;
  grid-column:1!important;
  justify-self:start!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-heading{
  grid-column:2!important;
  width:auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  text-align:center!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-heading h2{
  margin:0!important;
  font-size:clamp(18px,1.7vw,25px)!important;
  line-height:1!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-heading p{
  margin:0!important;
  max-width:min(34vw,560px)!important;
  font-size:9px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
}

#rouletteModal.cards-mode-active .cards-game-summary{
  position:static!important;
  grid-column:3!important;
  justify-self:end!important;
  transform:none!important;
  width:auto!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border-radius:10px!important;
  text-align:center!important;
  box-sizing:border-box!important;
}

#rouletteModal.cards-mode-active .cards-game-summary strong,
#rouletteModal.cards-mode-active .cards-game-summary span{
  grid-row:auto!important;
  align-self:auto!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-summary strong{
  font-weight:950!important;
  color:#fff!important;
}

#rouletteModal.cards-mode-active .cards-game-summary span{
  font-weight:650!important;
  color:#aeb5c6!important;
  text-transform:uppercase!important;
}

#rouletteModal.cards-mode-active #cardsGameGrid.cards-game-grid{
  padding:8px 12px!important;
}

#rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
  padding-right:72px!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions.cards-selection-actions{
  margin-right:0!important;
}

@media(max-width:1200px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:minmax(125px,1fr) auto minmax(125px,1fr)!important;
    column-gap:9px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading{
    gap:7px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading p{
    max-width:300px!important;
    font-size:8px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary strong,
  #rouletteModal.cards-mode-active .cards-game-summary span{
    font-size:12px!important;
  }
}

@media(max-width:860px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:110px 1fr 110px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading p{
    display:none!important;
  }
  #rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker{
    font-size:8px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    height:34px!important;
    padding:0 8px!important;
    gap:4px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary strong,
  #rouletteModal.cards-mode-active .cards-game-summary span{
    font-size:10px!important;
  }
  #rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
    padding-right:58px!important;
  }
}

@media(max-width:640px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:1fr auto!important;
  }
  #rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker{
    display:none!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading{
    grid-column:1!important;
    justify-self:start!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:2!important;
  }
  #rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
    padding-right:52px!important;
  }
}

.game-performance-warning{
  grid-column:1/-1!important;
  min-height:30px!important;
  margin-top:8px!important;
  padding:6px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid rgba(255,183,77,.18)!important;
  background:rgba(94,60,14,.13)!important;
  border-radius:9px!important;
  color:#d9c49a!important;
  font-size:8.4px!important;
  line-height:1.2!important;
  text-align:center!important;
}
.game-performance-warning[hidden]{display:none!important}
.game-performance-warning i{color:#f0b74a!important;font-size:9px!important}

.beta-game-summary-open{
  width:auto!important;
  min-width:auto!important;
  padding:0 2px!important;
  gap:8px!important;
  font-size:10.5px!important;
  color:#dfe7f6!important;
}
.beta-game-summary-open i{
  width:24px!important;
  height:24px!important;
  font-size:13px!important;
  border-radius:999px!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.42)!important;
  background:rgba(var(--sortix-accent-rgb),.14)!important;
  color:var(--sortix-accent-text)!important;
  display:grid!important;
  place-items:center!important;
}

.quiz-game-overlay.quiz-lobby-state .quiz-question-card{
  padding:18px 18px 16px!important;
  gap:12px!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-difficulty-pill{
  justify-self:flex-start!important;
  align-self:flex-start!important;
  margin:0 auto 0 0!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{
  min-height:108px!important;
  font-size:clamp(42px,4.5vw,62px)!important;
  text-align:center!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  margin:0!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card,
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card.full-row{
  width:100%!important;
  min-height:84px!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:14px!important;
  padding:14px 16px!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,rgba(12,17,24,.92),rgba(9,13,19,.92))!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card > i{
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  border-radius:12px!important;
  font-size:17px!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card strong{
  font-size:15px!important;
  line-height:1.18!important;
  letter-spacing:.02em!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card small{
  margin-top:6px!important;
  font-size:12.5px!important;
  line-height:1.56!important;
  color:#d8deea!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-lobby-mode-note{
  width:100%!important;
  margin:0!important;
  padding:12px 16px!important;
  border-radius:14px!important;
  text-align:left!important;
  font-size:12.3px!important;
  line-height:1.56!important;
  color:#d3daea!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-round-message{
  min-height:56px!important;
  font-size:12.5px!important;
  line-height:1.42!important;
}
.quiz-stage-actions{
  grid-template-columns:110px 138px 166px minmax(0,1fr) 130px!important;
  gap:8px!important;
}
.quiz-stage-actions button{
  letter-spacing:.03em!important;
}
#quizConfigBtn{
  display:none;
  white-space:nowrap!important;
  border-color:rgba(var(--sortix-accent-rgb),.28)!important;
  color:var(--sortix-accent-text)!important;
}
#quizConfigBtn i{font-size:13px!important}
.quiz-game-overlay.quiz-lobby-state .quiz-stage-actions{
  grid-template-columns:160px minmax(0,1fr) 170px!important;
  height:52px!important;
}
.quiz-game-overlay.quiz-lobby-state #quizSkipBtn,
.quiz-game-overlay.quiz-lobby-state #quizRevealBtn{
  display:none!important;
}
.quiz-game-overlay.quiz-lobby-state #quizConfigBtn{grid-column:1!important;display:inline-flex!important}
.quiz-game-overlay.quiz-lobby-state #quizNextBtn{grid-column:2!important}
.quiz-game-overlay.quiz-lobby-state #quizEndBtn{grid-column:3!important}
@media(max-width:1180px){
  .quiz-game-overlay.quiz-lobby-state .quiz-stage-actions{grid-template-columns:150px minmax(0,1fr) 150px!important}
  .quiz-stage-actions{grid-template-columns:104px 128px 150px minmax(0,1fr) 116px!important}
}
@media(max-width:760px){
  .quiz-game-overlay.quiz-lobby-state .quiz-question-card h2{font-size:clamp(30px,8vw,42px)!important;min-height:86px!important}
  .quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card{padding:12px 13px!important}
  .quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card strong{font-size:13px!important}
  .quiz-game-overlay.quiz-lobby-state .quiz-lobby-guide-card small,.quiz-game-overlay.quiz-lobby-state .quiz-lobby-mode-note,.quiz-game-overlay.quiz-lobby-state .quiz-round-message{font-size:11px!important}
}

.quiz-game-overlay.quiz-lobby-state .quiz-stage{
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  gap:10px!important;
  min-height:0!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-question-card{
  min-height:0!important;
  overflow:auto!important;
  padding-bottom:12px!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-round-message{
  flex:0 0 auto!important;
  margin-top:0!important;
  margin-bottom:0!important;
  position:relative!important;
  z-index:1!important;
}
.quiz-game-overlay.quiz-lobby-state .quiz-stage-actions{
  margin-top:0!important;
  position:relative!important;
  z-index:2!important;
}

.quiz-game-overlay:not(.quiz-lobby-state) .quiz-stage-actions{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  height:54px!important;
  gap:10px!important;
}
.quiz-game-overlay:not(.quiz-lobby-state) #quizConfigBtn{
  display:none!important;
}
.quiz-game-overlay:not(.quiz-lobby-state) .quiz-stage-actions button{
  width:100%!important;
  height:54px!important;
  min-width:0!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font-size:12.5px!important;
  letter-spacing:.03em!important;
  text-align:center!important;
}
.quiz-game-overlay:not(.quiz-lobby-state) #quizSkipBtn{grid-column:1!important}
.quiz-game-overlay:not(.quiz-lobby-state) #quizRevealBtn{grid-column:2!important}
.quiz-game-overlay:not(.quiz-lobby-state) #quizNextBtn{grid-column:3!important}
.quiz-game-overlay:not(.quiz-lobby-state) #quizEndBtn{grid-column:4!important}
@media(max-width:1180px){
  .quiz-game-overlay:not(.quiz-lobby-state) .quiz-stage-actions{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
  }
}

.quiz-game-overlay:not(.quiz-lobby-state) #quizRevealBtn:not(:disabled){
  color:#17130a!important;
  border-color:#f2c84b!important;
  background:linear-gradient(180deg,#f7d765,#eab83d)!important;
  box-shadow:none!important;
}
.quiz-game-overlay:not(.quiz-lobby-state) #quizRevealBtn:not(:disabled) i{
  color:#17130a!important;
}
.quiz-game-overlay:not(.quiz-lobby-state) #quizRevealBtn:not(:disabled):hover{
  background:linear-gradient(180deg,#ffe184,#f2c84b)!important;
  border-color:#ffe07b!important;
}

.grid-container{
  grid-template-columns:repeat(auto-fill,138px)!important;
  justify-content:center!important;
  align-content:start!important;
  gap:12px!important;
}

.participant-card{
  position:relative!important;
  box-sizing:border-box!important;
  width:138px!important;
  height:126px!important;
  min-width:138px!important;
  min-height:126px!important;
  max-width:138px!important;
  max-height:126px!important;
  margin:0!important;
  padding:8px!important;

  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:60px 16px 16px!important;
  row-gap:8px!important;
  justify-items:center!important;
  align-items:center!important;

  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,rgba(14,18,27,.92),rgba(9,13,20,.92))!important;
  color:#f7f8fc!important;
  overflow:visible!important;
  box-shadow:none!important;
  transform:none!important;
  transition:border-color .15s ease,background-color .15s ease!important;

  content-visibility:auto!important;
  contain:layout paint style!important;
  contain-intrinsic-size:138px 126px!important;
}
.participant-card:hover{
  transform:none!important;
  box-shadow:none!important;
  background:rgba(16,20,30,.96)!important;
}
.participant-card.platform-twitch:hover{border-color:rgba(154,91,255,.42)!important}
.participant-card.platform-kick:hover{border-color:rgba(86,255,34,.38)!important}
.participant-card.platform-youtube:hover{border-color:rgba(255,74,95,.38)!important}
.participant-card.platform-instagram:hover{border-color:rgba(255,86,180,.38)!important}
.participant-card.platform-custom:hover{border-color:rgba(192,132,252,.38)!important}

.participant-card__avatar,
.participant-avatar{
  grid-row:1!important;
  grid-column:1!important;
  box-sizing:border-box!important;
  width:60px!important;
  height:60px!important;
  min-width:60px!important;
  min-height:60px!important;
  max-width:60px!important;
  max-height:60px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
  object-fit:cover!important;
  box-shadow:none!important;
  transform:none!important;
}
.participant-card.platform-twitch .participant-avatar{border-color:rgba(154,91,255,.48)!important}
.participant-card.platform-kick .participant-avatar{border-color:rgba(86,255,34,.44)!important}
.participant-card.platform-youtube .participant-avatar{border-color:rgba(255,74,95,.44)!important}
.participant-card.platform-instagram .participant-avatar{border-color:rgba(255,86,180,.44)!important}
.participant-card.platform-custom .participant-avatar{border-color:rgba(192,132,252,.44)!important}
.participant-card:hover .participant-avatar{box-shadow:none!important;transform:none!important}

.participant-card__name,
.participant-name{
  grid-row:2!important;
  grid-column:1!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0 2px!important;
  display:block!important;
  color:#dce2f0!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:16px!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
}
.participant-card:hover .participant-name{color:#fff!important}

.participant-card__extras,
.participant-extra-badges{
  grid-row:3!important;
  grid-column:1!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
  position:static!important;
}
.participant-card__extras:empty{visibility:hidden!important}

.participant-card__badge,
.participant-gift-badge,
.participant-bits-badge,
.participant-subs-donor-badge{
  box-sizing:border-box!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  min-width:0!important;
  margin:0!important;
  padding:0 5px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  position:static!important;
  visibility:visible!important;
  opacity:1!important;
  font-size:7px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.participant-card__badge:only-child{flex:0 1 auto!important;max-width:100%!important}
.participant-card__badge:not(:only-child){flex:1 1 0!important;max-width:58px!important}
.participant-card__badge i{font-size:7px!important;line-height:1!important;flex:0 0 auto!important}
.participant-card__badge span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
.participant-card__badge--subs,
.participant-subs-donor-badge{
  color:#ffe08a!important;
  border:1px solid rgba(255,210,78,.25)!important;
  background:rgba(103,75,18,.30)!important;
}
.participant-card__badge--bits,
.participant-bits-badge{
  color:#ddc2ff!important;
  border:1px solid rgba(169,112,255,.28)!important;
  background:rgba(73,44,111,.32)!important;
}

.participant-card__corner,
.participant-corner-stack{
  position:absolute!important;
  z-index:5!important;
  top:8px!important;
  left:8px!important;
  width:30px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  pointer-events:none!important;
}
.participant-card__platform,
.platform-icon-small{
  position:static!important;
  box-sizing:border-box!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  display:grid!important;
  place-items:center!important;
  font-size:11px!important;
  line-height:1!important;
  box-shadow:none!important;
}
.participant-card__vip,
.participant-vip-chip{
  box-sizing:border-box!important;
  width:30px!important;
  height:15px!important;
  min-height:15px!important;
  margin:0!important;
  padding:0 4px!important;
  border-radius:999px!important;
  border:1px solid rgba(91,226,122,.23)!important;
  background:rgba(22,74,35,.48)!important;
  color:#baffc7!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  font-size:6px!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.participant-vip-chip i{font-size:6px!important}
.participant-vip-chip b{font:inherit!important}
.participant-extra-badge.vip{display:none!important}

.participant-card__tickets,
.ticket-count-badge{
  position:absolute!important;
  z-index:5!important;
  top:8px!important;
  right:8px!important;
  left:auto!important;
  bottom:auto!important;
  box-sizing:border-box!important;
  height:20px!important;
  min-height:20px!important;
  min-width:30px!important;
  margin:0!important;
  padding:0 6px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:999px!important;
  background:#0a0f17!important;
  color:#f4f6fb!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:none!important;
}
.participant-card:hover .ticket-count-badge{background:#0a0f17!important;color:#fff!important;border-color:rgba(255,255,255,.14)!important}

.participant-card__remove,
.participant-remove-btn{
  position:absolute!important;
  z-index:8!important;
  top:6px!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
  padding:0!important;
  border-radius:999px!important;
  border:1px solid rgba(244,63,94,.35)!important;
  background:rgba(40,11,18,.96)!important;
  color:#fb7185!important;
  display:grid!important;
  place-items:center!important;
  opacity:0!important;
  pointer-events:none!important;
  transform:translate(-50%,-4px)!important;
  transition:opacity .14s ease,transform .14s ease!important;
  box-shadow:none!important;
}
.participant-card:hover .participant-remove-btn,
.participant-card:focus-within .participant-remove-btn{
  opacity:1!important;
  pointer-events:auto!important;
  transform:translate(-50%,0)!important;
}
.participant-remove-btn:hover{background:#4a1420!important;color:#fff!important;box-shadow:none!important}

@media(max-width:760px){
  .grid-container{
    grid-template-columns:repeat(auto-fill,138px)!important;
    gap:10px!important;
  }
  .participant-card{
    width:138px!important;
    min-width:138px!important;
    max-width:138px!important;
    height:126px!important;
    min-height:126px!important;
    max-height:126px!important;
  }
}

.grid-container{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  justify-content:stretch!important;
  gap:10px!important;
}
.participant-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.participant-card__vip,
.participant-vip-chip{
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  padding:0!important;
  border-radius:999px!important;
  gap:0!important;
}
.participant-vip-chip i{font-size:7px!important}
.participant-vip-chip b{display:none!important}
.participant-card__badge:not(:only-child),
.participant-gift-badge:not(:only-child),
.participant-bits-badge:not(:only-child){
  flex:1 1 0!important;
  max-width:58px!important;
}

.participant-card-tooltip{
  position:fixed;
  z-index:2147482500;
  width:max-content;
  max-width:min(260px,calc(100vw - 20px));
  padding:9px 11px;
  border:1px solid rgba(168,85,247,.34);
  border-radius:11px;
  background:rgba(9,12,19,.98);
  color:#d9deeb;
  box-shadow:0 10px 28px rgba(0,0,0,.38);
  pointer-events:none;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .12s ease,transform .12s ease;
}
.participant-card-tooltip.is-visible{opacity:1;transform:translateY(0)}
.participant-card-tooltip strong{
  display:block;
  margin-bottom:5px;
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1.15;
}
.participant-card-tooltip div{
  white-space:pre-line;
  font-size:9px;
  font-weight:650;
  line-height:1.45;
  color:#aeb6c8;
}
@media(max-width:980px){.grid-container{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:760px){.grid-container{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}}
@media(max-width:560px){.grid-container{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:410px){.grid-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.participant-card{
  grid-template-rows:70px 5px 15px!important;
}

.beta-history-caption{
  margin:0 0 10px;
  color:#9aa4b8;
  font-size:10px;
  line-height:1.4;
}
.beta-history-list{
  max-height:min(520px,58vh);
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:5px;
  scrollbar-width:thin;
  scrollbar-color:rgba(var(--sortix-accent-rgb),.38) transparent;
}
.beta-history-list::-webkit-scrollbar{width:7px}
.beta-history-list::-webkit-scrollbar-track{background:transparent}
.beta-history-list::-webkit-scrollbar-thumb{background:rgba(var(--sortix-accent-rgb),.34);border-radius:999px}


/* ========================================================================== 
   Sortixgg 3.1.1 — importar lista no Sorteio Personalizado
   ========================================================================== */
.custom-raffle-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.custom-paste-btn{
    border:1px solid rgba(67,220,121,.30);background:rgba(67,220,121,.07);color:#9ff6bc;
    border-radius:10px;padding:9px 12px;font-size:11px;font-weight:900;cursor:pointer;
}
.custom-paste-btn:hover{background:rgba(67,220,121,.13);border-color:rgba(67,220,121,.50);color:#c6ffd8}
.custom-paste-panel{
    flex:0 0 auto;border:1px solid rgba(67,220,121,.20);background:linear-gradient(180deg,rgba(10,17,18,.96),rgba(9,13,19,.96));
    border-radius:14px;padding:13px;display:grid;gap:10px;
}
.custom-paste-panel[hidden]{display:none!important}
.custom-paste-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.custom-paste-head>div{min-width:0}.custom-paste-head strong{display:flex;align-items:center;gap:8px;color:#fff;font-size:13px}
.custom-paste-head strong i{color:#69e795}.custom-paste-head small{display:block;margin-top:4px;color:#9ca5b7;font-size:10px;line-height:1.35}
.custom-paste-close{width:30px;height:30px;flex:0 0 30px;border-radius:9px;border:1px solid rgba(255,255,255,.08);background:#10151e;color:#8f98aa;cursor:pointer}
.custom-paste-close:hover{color:#fff;background:#171d28}
.custom-paste-text{width:100%;min-height:112px;max-height:210px;resize:vertical;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:#080c12;color:#f3f5f9;padding:11px 12px;font:600 12px/1.5 Inter,system-ui,sans-serif;outline:none}
.custom-paste-text:focus{border-color:rgba(67,220,121,.48);box-shadow:0 0 0 3px rgba(67,220,121,.05)}
.custom-paste-text::placeholder{color:#5f6879}
.custom-paste-help{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#8791a4;font-size:9.5px}
.custom-paste-help>span{margin-right:2px}.custom-paste-help i{color:#69e795}
.custom-paste-help code{padding:4px 7px;border:1px solid rgba(255,255,255,.07);border-radius:7px;background:#0c1118;color:#b9c1cf;font:700 9px/1.1 Inter,system-ui,sans-serif}
.custom-paste-replace{display:inline-flex;align-items:center;gap:8px;color:#bbc3d1;font-size:10px;font-weight:750;cursor:pointer;width:max-content}
.custom-paste-replace input{accent-color:#43dc79}
.custom-paste-feedback{min-height:0;font-size:10px;font-weight:800;color:#99a3b5}.custom-paste-feedback:empty{display:none}
.custom-paste-feedback.success{color:#9ff6bc}.custom-paste-feedback.error{color:#ff98aa}
.custom-paste-load{height:40px;border:1px solid rgba(67,220,121,.46);border-radius:10px;background:linear-gradient(180deg,#2bc866,#1ea653);color:white;font-size:11px;font-weight:950;cursor:pointer}
.custom-paste-load:hover{filter:brightness(1.06)}
.custom-paste-load i{margin-right:6px}
@media(max-width:620px){.custom-raffle-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.custom-add-btn,.custom-paste-btn{width:100%}.custom-paste-panel{padding:11px}.custom-paste-help{line-height:1.6}}


/* ==========================================================================
   V3.1.6 — Roleta: fundo da galeria + modo de desempenho
   ========================================================================== */

/* Mesmo fundo geral usado atrás da galeria. */
body.beta-classic-roulette-overlay-active
#rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active),
body.beta-roulette-spin-active
#rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active){
  background:
    radial-gradient(900px 430px at 50% -180px,rgba(var(--sortix-accent-rgb),.13),transparent 70%),
    radial-gradient(680px 360px at 22% 105%,rgba(var(--sortix-accent-rgb),.055),transparent 72%),
    linear-gradient(180deg,#090a10 0%,#07080d 62%,#06070b 100%)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* Mesmo fundo da área interna da galeria. */
body.beta-classic-roulette-overlay-active
#rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window,
body.beta-roulette-spin-active
#rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-window{
  background:linear-gradient(180deg,rgba(7,10,15,.72),rgba(11,15,22,.62))!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

body.beta-roulette-spin-active:after{
  animation-play-state:paused!important;
}

body.beta-roulette-spin-active #landing-screen *,
body.beta-roulette-spin-active #app-container *,
body.beta-roulette-spin-active .community-highlights-track,
body.beta-roulette-spin-active #beta-global-header *,
body.beta-roulette-spin-active > footer *{
  animation-play-state:paused!important;
}

body.beta-roulette-spin-active
#rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-track{
  will-change:transform!important;
  backface-visibility:hidden!important;
  transform-style:flat!important;
  pointer-events:none!important;
}

body.beta-roulette-spin-active
#rouletteModal:not(.cards-mode-active):not(.maze-mode-active):not(.ball-mode-active) .roulette-card{
  contain:layout paint style!important;
  transition:none!important;
}


/* ==========================================================================
   V3.1.7 — Perfil / limpeza forte dos dados do site
   ========================================================================== */
.beta-clear-site-warning{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:13px;
  align-items:start;
  padding:14px;
  border:1px solid rgba(255,98,122,.24);
  background:linear-gradient(180deg,rgba(76,19,31,.24),rgba(28,12,18,.32));
  border-radius:14px;
}
.beta-clear-site-warning-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,92,116,.11);
  color:#ff7188;
  font-size:18px;
}
.beta-clear-site-warning strong{
  display:block;
  color:#fff;
  font-size:13px;
  margin:1px 0 6px;
}
.beta-clear-site-warning p{
  margin:0;
  color:#d9dde7;
  font-size:11.5px;
  line-height:1.6;
}
.beta-clear-site-warning small{
  display:block;
  margin-top:8px;
  color:#959eaf;
  font-size:10px;
  line-height:1.5;
}
.beta-clear-site-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:5px;
}
.beta-clear-site-actions button{
  min-height:40px;
  border-radius:10px;
  padding:0 15px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  cursor:pointer;
}
.beta-clear-site-actions button:disabled{
  opacity:.62;
  cursor:wait;
}
.beta-clear-site-cancel{
  border:1px solid rgba(255,255,255,.09);
  background:#111722;
  color:#c9cfdb;
}
.beta-clear-site-cancel:hover{
  background:#171e2b;
  color:#fff;
}
.beta-clear-site-confirm{
  border:1px solid rgba(255,91,116,.35);
  background:linear-gradient(135deg,#b92542,#7c1730);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 8px 24px rgba(136,21,46,.22);
}
.beta-clear-site-confirm:hover{
  filter:brightness(1.08);
}
@media(max-width:520px){
  .beta-clear-site-actions{flex-direction:column-reverse}
  .beta-clear-site-actions button{width:100%}
}


/* ==========================================================================
   V3.1.8 — Modo Cartas / informações do jogo + ajuda ampliada
   ========================================================================== */

/* Botão textual ao lado de "Modo Cartas". */
#rouletteModal.cards-mode-active .cards-inline-help{
  width:auto!important;
  height:28px!important;
  min-width:0!important;
  flex:0 0 auto!important;
  margin-left:7px!important;
  padding:0 10px!important;
  border-radius:9px!important;
  gap:6px!important;
  font-size:9px!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
}
#rouletteModal.cards-mode-active .cards-inline-help i{
  font-size:10px!important;
}

/* Cabeçalho: esquerda / título / 4 métricas. */
#rouletteModal.cards-mode-active .cards-game-header{
  grid-template-columns:minmax(220px,.85fr) minmax(260px,1.15fr) minmax(410px,1.45fr)!important;
  column-gap:14px!important;
  min-height:48px!important;
}

#rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker{
  font-size:10px!important;
}

#rouletteModal.cards-mode-active .cards-game-summary{
  width:100%!important;
  max-width:480px!important;
  min-height:42px!important;
  height:auto!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(82px,1fr))!important;
  gap:6px!important;
  background:transparent!important;
  border:0!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric{
  min-width:0!important;
  min-height:42px!important;
  padding:6px 8px!important;
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:6px!important;
  align-items:center!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(17,22,32,.84),rgba(10,14,21,.78))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > i{
  grid-row:1 / 3!important;
  width:18px!important;
  color:#9e77ff!important;
  font-size:10px!important;
  text-align:center!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > span{
  min-width:0!important;
  margin:0!important;
  color:#8e96a8!important;
  font-size:6.7px!important;
  line-height:1.05!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.035em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > strong{
  margin:0!important;
  color:#f4f6fb!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}

/* Ajuda do Modo Cartas ganha largura e tipografia próprias. */
#cards-help-modal[data-help-mode="cards"]{
  padding:20px!important;
  background:rgba(4,5,9,.88)!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-dialog{
  width:min(900px,calc(100vw - 34px))!important;
  max-height:calc(100vh - 40px)!important;
  padding:28px!important;
  border-radius:20px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-heading span{
  font-size:10px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-heading h3{
  margin:5px 42px 18px 0!important;
  font-size:28px!important;
  line-height:1.08!important;
}

.cards-help-rich-intro{
  margin:0 0 16px!important;
  color:#c3c9d5!important;
  font-size:13.5px!important;
  line-height:1.62!important;
}

.cards-help-concepts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:19px!important;
}

.cards-help-concepts article{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:10px!important;
  padding:13px!important;
  border:1px solid rgba(169,112,255,.14)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(169,112,255,.065),rgba(255,255,255,.018))!important;
}

.cards-help-concepts article > i{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:11px!important;
  color:#c8a8ff!important;
  background:rgba(169,112,255,.11)!important;
  font-size:14px!important;
}

.cards-help-concepts strong{
  display:block!important;
  margin-bottom:4px!important;
  color:#fff!important;
  font-size:12px!important;
}

.cards-help-concepts span{
  display:block!important;
  color:#9fa7b7!important;
  font-size:11px!important;
  line-height:1.5!important;
}

.cards-help-section-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 9px!important;
  color:#eceff6!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.07em!important;
}

.cards-help-section-title i{
  color:#a970ff!important;
}

.cards-help-flow{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}

.cards-help-flow article{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.024)!important;
}

.cards-help-flow article > b{
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  color:#d9c3ff!important;
  background:rgba(169,112,255,.12)!important;
  font-size:11px!important;
}

.cards-help-flow strong{
  display:block!important;
  margin-bottom:4px!important;
  color:#f1f3f7!important;
  font-size:11.5px!important;
}

.cards-help-flow span{
  display:block!important;
  color:#9ea6b6!important;
  font-size:10.8px!important;
  line-height:1.5!important;
}

.cards-help-section-title-scenarios{
  margin-top:20px!important;
}

.cards-help-scenarios{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}

.cards-help-scenarios article{
  padding:12px!important;
  border:1px solid rgba(255,255,255,.065)!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,rgba(16,21,31,.72),rgba(10,14,21,.64))!important;
}

.cards-help-scenario-tag{
  display:inline-flex!important;
  align-items:center!important;
  min-height:22px!important;
  padding:0 8px!important;
  margin-bottom:7px!important;
  border-radius:7px!important;
  color:#d8c5ff!important;
  background:rgba(169,112,255,.10)!important;
  border:1px solid rgba(169,112,255,.14)!important;
  font-size:9px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}

.cards-help-scenarios p{
  margin:0!important;
  color:#a4acba!important;
  font-size:10.8px!important;
  line-height:1.55!important;
}

.cards-help-metrics-explainer{
  margin-top:18px!important;
  padding:13px!important;
  border:1px solid rgba(83,252,24,.11)!important;
  border-radius:14px!important;
  background:rgba(83,252,24,.032)!important;
}

.cards-help-metrics-explainer > strong{
  display:block!important;
  margin-bottom:9px!important;
  color:#eaf5e7!important;
  font-size:11px!important;
}

.cards-help-metrics-explainer > strong i{
  margin-right:6px!important;
  color:#53fc18!important;
}

.cards-help-metrics-explainer > div{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px 14px!important;
}

.cards-help-metrics-explainer span{
  color:#9fa8b6!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}

.cards-help-metrics-explainer span b{
  display:block!important;
  margin-bottom:2px!important;
  color:#d9dee7!important;
  font-size:10px!important;
}

.cards-help-note-large{
  margin-top:14px!important;
  padding:11px 12px!important;
  font-size:10.5px!important;
  line-height:1.5!important;
}

/* Responsividade do novo cabeçalho. */
@media(max-width:1180px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:minmax(200px,.85fr) minmax(220px,1fr)!important;
    grid-template-rows:auto auto!important;
    row-gap:7px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:1 / -1!important;
    grid-row:2!important;
    justify-self:center!important;
    max-width:620px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading{
    grid-column:2!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading p{
    display:none!important;
  }
}

@media(max-width:760px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
    gap:7px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker,
  #rouletteModal.cards-mode-active .cards-game-heading,
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:1!important;
    justify-self:center!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading{
    grid-row:2!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-row:3!important;
    grid-template-columns:repeat(2,minmax(110px,1fr))!important;
    max-width:360px!important;
  }

  #cards-help-modal[data-help-mode="cards"] .cards-help-dialog{
    padding:22px 17px!important;
  }
  #cards-help-modal[data-help-mode="cards"] .cards-help-heading h3{
    font-size:24px!important;
  }
  .cards-help-concepts,
  .cards-help-scenarios{
    grid-template-columns:1fr!important;
  }
  .cards-help-flow,
  .cards-help-metrics-explainer > div{
    grid-template-columns:1fr!important;
  }
}


/* ==========================================================================
   V3.1.9 — Modo Cartas: correções de cabeçalho, ações e ajuda
   ========================================================================== */

/* Cabeçalho estável: título não empurra as métricas para fora. */
#rouletteModal.cards-mode-active .cards-game-header{
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  display:grid!important;
  grid-template-columns:minmax(210px,auto) minmax(260px,1fr) minmax(430px,500px)!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 2px!important;
  box-sizing:border-box!important;
}

#rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  justify-self:start!important;
  white-space:nowrap!important;
}

#rouletteModal.cards-mode-active .cards-game-heading{
  min-width:0!important;
  width:100%!important;
  text-align:center!important;
  justify-self:stretch!important;
}

#rouletteModal.cards-mode-active .cards-game-heading h2{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Botão novo, mais claro e integrado à identidade do site. */
#rouletteModal.cards-mode-active .cards-inline-help{
  width:auto!important;
  min-width:118px!important;
  height:32px!important;
  margin:0 0 0 6px!important;
  padding:0 12px 0 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid rgba(var(--sortix-accent-rgb),.30)!important;
  border-radius:999px!important;
  background:
    linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.13),rgba(var(--sortix-accent-rgb),.055))!important;
  color:#e3d5ff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 7px 22px rgba(0,0,0,.18)!important;
  font-size:9.5px!important;
  font-weight:900!important;
  letter-spacing:.015em!important;
  text-transform:none!important;
  white-space:nowrap!important;
  transition:border-color .18s ease,background .18s ease,transform .18s ease!important;
}

#rouletteModal.cards-mode-active .cards-inline-help i{
  width:20px!important;
  height:20px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 20px!important;
  border-radius:50%!important;
  background:rgba(var(--sortix-accent-rgb),.16)!important;
  color:#c8a7ff!important;
  font-size:10px!important;
}

#rouletteModal.cards-mode-active .cards-inline-help:hover{
  border-color:rgba(var(--sortix-accent-rgb),.55)!important;
  background:
    linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.20),rgba(var(--sortix-accent-rgb),.085))!important;
  transform:translateY(-1px)!important;
}

/* Quatro métricas compactas e sempre dentro do board. */
#rouletteModal.cards-mode-active .cards-game-summary{
  width:100%!important;
  min-width:0!important;
  max-width:500px!important;
  justify-self:end!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(92px,1fr))!important;
  gap:6px!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric{
  min-width:0!important;
  height:44px!important;
  padding:6px 8px!important;
  box-sizing:border-box!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > span{
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  font-size:6.5px!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > strong{
  font-size:14px!important;
}

/* Toolbar inferior: ações não deformam nem vazam da área do game. */
#rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  flex:0 0 44px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:5px 68px 5px 8px!important;
  box-sizing:border-box!important;
}

#rouletteModal.cards-mode-active #cardsGameToolbar .cards-game-toolbar-info{
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions.cards-selection-actions{
  flex:0 0 auto!important;
  min-width:0!important;
  margin:0!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons{
  width:auto!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
}

#rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons button{
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 13px!important;
  border-radius:10px!important;
  font-size:9px!important;
  line-height:1!important;
}

/* Popup confinado exatamente entre o cabeçalho e o rodapé globais. */
#cards-help-modal[data-help-mode="cards"]{
  top:var(--sortix-header-h)!important;
  right:0!important;
  bottom:var(--sortix-footer-h)!important;
  left:0!important;
  width:auto!important;
  height:auto!important;
  padding:8px 16px!important;
  align-items:flex-start!important;
  justify-content:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-dialog{
  width:min(920px,calc(100vw - 36px))!important;
  max-width:920px!important;
  height:auto!important;
  max-height:100%!important;
  margin:0 auto!important;
  padding:18px 22px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  border-radius:18px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-dialog::-webkit-scrollbar{
  width:7px!important;
}
#cards-help-modal[data-help-mode="cards"] .cards-help-dialog::-webkit-scrollbar-thumb{
  background:rgba(var(--sortix-accent-rgb),.28)!important;
  border-radius:999px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-heading h3{
  margin:3px 42px 10px 0!important;
  font-size:24px!important;
  line-height:1.05!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-rich-intro{
  margin-bottom:10px!important;
  font-size:12px!important;
  line-height:1.48!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-concepts{
  gap:7px!important;
  margin-bottom:12px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-concepts article{
  grid-template-columns:32px minmax(0,1fr)!important;
  gap:8px!important;
  padding:9px 10px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-concepts article > i{
  width:32px!important;
  height:32px!important;
  font-size:12px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-concepts strong{
  font-size:10.8px!important;
}
#cards-help-modal[data-help-mode="cards"] .cards-help-concepts span{
  font-size:9.8px!important;
  line-height:1.38!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-section-title{
  margin-bottom:6px!important;
  font-size:9.5px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-flow{
  gap:6px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-flow article{
  grid-template-columns:29px minmax(0,1fr)!important;
  gap:8px!important;
  padding:8px 9px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-flow article > b{
  width:28px!important;
  height:28px!important;
  font-size:9.5px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-flow strong{
  margin-bottom:2px!important;
  font-size:10px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-flow span{
  font-size:9.4px!important;
  line-height:1.38!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-section-title-scenarios{
  margin-top:12px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-scenarios{
  gap:6px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-scenarios article{
  padding:8px 9px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-scenario-tag{
  min-height:19px!important;
  margin-bottom:5px!important;
  padding:0 7px!important;
  font-size:8px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-scenarios p{
  font-size:9.2px!important;
  line-height:1.4!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-metrics-explainer{
  margin-top:10px!important;
  padding:9px 10px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-metrics-explainer > strong{
  margin-bottom:6px!important;
  font-size:9.8px!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-metrics-explainer span{
  font-size:9px!important;
  line-height:1.35!important;
}

#cards-help-modal[data-help-mode="cards"] .cards-help-note-large{
  margin-top:8px!important;
  padding:8px 10px!important;
  font-size:9px!important;
  line-height:1.35!important;
}

@media(max-width:1180px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:minmax(190px,auto) minmax(220px,1fr)!important;
    grid-template-rows:auto auto!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:1 / -1!important;
    grid-row:2!important;
    justify-self:center!important;
    max-width:620px!important;
  }
  #rouletteModal.cards-mode-active .cards-game-heading{
    grid-column:2!important;
    grid-row:1!important;
  }
}

@media(max-width:760px){
  #rouletteModal.cards-mode-active .cards-game-header{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
  }
  #rouletteModal.cards-mode-active .cards-game-header > .cards-game-kicker,
  #rouletteModal.cards-mode-active .cards-game-heading,
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:1!important;
    justify-self:center!important;
  }
  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-template-columns:repeat(2,minmax(110px,1fr))!important;
    max-width:360px!important;
  }
  #rouletteModal.cards-mode-active #cardsGameToolbar.cards-game-toolbar{
    padding-right:54px!important;
  }
  #rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons{
    gap:5px!important;
  }
  #rouletteModal.cards-mode-active #cardsSelectionActions .cards-selection-buttons button{
    padding:0 9px!important;
    font-size:8px!important;
  }
  #cards-help-modal[data-help-mode="cards"]{
    padding:6px 8px!important;
  }
  #cards-help-modal[data-help-mode="cards"] .cards-help-dialog{
    width:100%!important;
    max-width:none!important;
    padding:15px 13px!important;
  }
  #cards-help-modal[data-help-mode="cards"] .cards-help-concepts,
  #cards-help-modal[data-help-mode="cards"] .cards-help-scenarios,
  #cards-help-modal[data-help-mode="cards"] .cards-help-flow,
  #cards-help-modal[data-help-mode="cards"] .cards-help-metrics-explainer > div{
    grid-template-columns:1fr!important;
  }
}


/* ==========================================================================
   V3.1.10 — Modo Cartas: correção definitiva das métricas do canto direito
   ========================================================================== */

/*
  O projeto acumulou regras antigas para .cards-game-summary.
  Este bloco final redefine a área inteira para impedir que labels/valores
  sejam cortados pelo cabeçalho ou recebam grid-row de regras legadas.
*/
#rouletteModal.cards-mode-active .cards-game-header{
  flex:0 0 58px!important;
  min-height:58px!important;
  height:58px!important;
  align-items:center!important;
  overflow:visible!important;
}

#rouletteModal.cards-mode-active .cards-game-summary{
  position:static!important;
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
  justify-self:end!important;
  transform:none!important;
  width:100%!important;
  max-width:500px!important;
  min-width:0!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;

  display:grid!important;
  grid-template-columns:repeat(4,minmax(92px,1fr))!important;
  grid-template-rows:48px!important;
  gap:6px!important;

  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding:7px 9px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;

  display:grid!important;
  grid-template-columns:19px minmax(0,1fr)!important;
  grid-template-rows:15px 19px!important;
  column-gap:7px!important;
  row-gap:0!important;
  align-items:center!important;

  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(17,22,32,.88),rgba(10,14,21,.82))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > i{
  position:static!important;
  grid-column:1!important;
  grid-row:1 / 3!important;
  align-self:center!important;
  justify-self:center!important;

  width:19px!important;
  height:19px!important;
  display:grid!important;
  place-items:center!important;

  margin:0!important;
  padding:0!important;
  color:#a970ff!important;
  font-size:10px!important;
  line-height:1!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > span{
  position:static!important;
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  justify-self:start!important;

  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;

  color:#8f98aa!important;
  font-size:6.8px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

#rouletteModal.cards-mode-active .cards-summary-metric > strong{
  position:static!important;
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  justify-self:start!important;

  margin:1px 0 0!important;
  padding:0!important;

  color:#f5f7fb!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
}

/* Mantém a versão responsiva da v3.1.9, mas sem cortar as métricas. */
@media(max-width:1180px){
  #rouletteModal.cards-mode-active .cards-game-header{
    flex-basis:108px!important;
    min-height:108px!important;
    height:108px!important;
    grid-template-columns:minmax(190px,auto) minmax(220px,1fr)!important;
    grid-template-rows:48px 48px!important;
    row-gap:6px!important;
  }

  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:1 / -1!important;
    grid-row:2!important;
    justify-self:center!important;
    width:min(620px,100%)!important;
    max-width:620px!important;
  }
}

@media(max-width:760px){
  #rouletteModal.cards-mode-active .cards-game-header{
    flex-basis:auto!important;
    height:auto!important;
    min-height:0!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
    gap:7px!important;
    padding-bottom:5px!important;
  }

  #rouletteModal.cards-mode-active .cards-game-summary{
    grid-column:1!important;
    grid-row:3!important;
    width:min(360px,100%)!important;
    max-width:360px!important;
    height:auto!important;
    min-height:102px!important;
    grid-template-columns:repeat(2,minmax(120px,1fr))!important;
    grid-template-rows:repeat(2,48px)!important;
    gap:6px!important;
  }
}


/* ==========================================================================
   V3.1.11 — Roleta Canvas isolada
   ========================================================================== */
.roulette-canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:none;
  z-index:2;
  pointer-events:none!important;
}

body.sortix-roulette-canvas-active #rouletteCanvas{
  display:block!important;
}

body.sortix-roulette-canvas-active #rouletteTrack{
  display:none!important;
}

/* Marcadores, mensagem do vencedor e fades continuam no DOM acima do Canvas. */
body.sortix-roulette-canvas-active .roulette-marker-top,
body.sortix-roulette-canvas-active .roulette-marker-bottom{
  z-index:10!important;
}
body.sortix-roulette-canvas-active .roulette-fade-left,
body.sortix-roulette-canvas-active .roulette-fade-right{
  z-index:5!important;
}
body.sortix-roulette-canvas-active #winner-live-message{
  z-index:12!important;
}

/* Durante o giro reduzimos custo gráfico de tudo que não é a própria Roleta. */
body.sortix-roulette-isolated #rouletteModal{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.sortix-roulette-isolated #rouletteModal .roulette-window{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:none!important;
}
body.sortix-roulette-isolated #landing-screen *,
body.sortix-roulette-isolated .community-highlights-track,
body.sortix-roulette-isolated #beta-global-header *,
body.sortix-roulette-isolated > footer *,
body.sortix-roulette-isolated .volume-control *{
  animation-play-state:paused!important;
  transition:none!important;
}
body.sortix-roulette-isolated #gridArea,
body.sortix-roulette-isolated .participants-section{
  visibility:hidden!important;
}


/* ==========================================================================
   V3.1.12 — Roleta Canvas: plataforma nos cards + frame final persistente
   ========================================================================== */

/*
  Depois que a animação termina o último frame permanece na tela.
  Assim o painel do vencedor aparece com a Roleta parada ao fundo/na parte
  superior, em vez de deixar somente os marcadores sobre uma faixa vazia.
*/
body.sortix-roulette-canvas-result #rouletteCanvas{
  display:block!important;
}

body.sortix-roulette-canvas-result #rouletteTrack{
  display:none!important;
}

body.sortix-roulette-canvas-result .roulette-marker-top,
body.sortix-roulette-canvas-result .roulette-marker-bottom{
  z-index:10!important;
}

body.sortix-roulette-canvas-result .roulette-fade-left,
body.sortix-roulette-canvas-result .roulette-fade-right{
  z-index:5!important;
}

body.sortix-roulette-canvas-result #winner-live-message{
  z-index:12!important;
}

/* =========================================================
   V3.1.14 — polimento dos controles de participantes
   ========================================================= */
.beta-gallery-filterbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.beta-gallery-search-tools{
  min-width:0;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.beta-gallery-search-tools .gallery-participant-search{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
}
.gallery-session-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
  padding:4px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(18,22,32,.92),rgba(11,14,21,.94));
  box-shadow:0 10px 24px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.03);
}
.gallery-session-icon-btn,
.game-transfer-icon-btn{
  position:relative;
  padding:0;
  display:inline-grid;
  place-items:center;
  border-radius:12px;
  color:#aeb7c9;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;
}
.gallery-session-icon-btn{
  width:40px;
  height:40px;
  min-width:40px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(24,29,41,.96),rgba(13,17,25,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.gallery-session-icon-btn:hover:not(:disabled),
.game-transfer-icon-btn:hover:not(:disabled){
  color:#fff;
  border-color:rgba(var(--sortix-accent-rgb),.44);
  background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.16),rgba(19,23,34,.98));
  box-shadow:0 10px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  transform:translateY(-1px);
}
.gallery-session-icon-btn:disabled,
.game-transfer-icon-btn:disabled{
  opacity:.32;
  cursor:not-allowed;
}
.gallery-session-icon-btn.has-snapshot,
.game-transfer-icon-btn.has-snapshot{
  color:#efe7ff;
  border-color:rgba(var(--sortix-accent-rgb),.46);
  background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.16),rgba(16,19,29,.98));
}
.gallery-session-icon-btn.is-success,
.game-transfer-icon-btn.is-success{
  color:#dbffe6;
  border-color:rgba(74,222,128,.56);
  background:linear-gradient(180deg,rgba(34,197,94,.22),rgba(14,38,23,.96));
}
.gallery-session-tool-btn > i,
.game-transfer-icon-btn > i{
  font-size:14px;
}
.gallery-entry-toggle-btn{
  width:auto;
  min-width:132px;
  padding:0 12px 0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  overflow:visible;
}
.gallery-entry-toggle-btn>i{
  width:26px;
  height:26px;
  min-width:26px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:12px;
  color:#dbe3f4;
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.gallery-entry-toggle-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  line-height:1;
}
.gallery-entry-toggle-copy strong{
  color:#f2f5fb;
  font-size:11px;
  font-weight:900;
  letter-spacing:.01em;
}
.gallery-entry-toggle-status{
  position:static;
  max-width:none;
  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.12em;
  color:#7c8699;
}
.gallery-entry-toggle-btn.is-active{
  color:#effff2;
  border-color:rgba(74,222,128,.65);
  background:linear-gradient(180deg,rgba(34,197,94,.24),rgba(15,61,31,.92));
  box-shadow:0 0 0 1px rgba(74,222,128,.10) inset,0 12px 24px rgba(12,25,17,.28);
}
.gallery-entry-toggle-btn.is-active>i{
  color:#d9ffe6;
  background:rgba(10,58,27,.34);
}
.gallery-entry-toggle-btn.is-active .gallery-entry-toggle-status{color:#9ef2b3}

.game-participant-transfer-actions{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:4px;
  margin-right:2px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(18,22,32,.92),rgba(11,14,21,.94));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.game-transfer-icon-btn{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.game-transfer-icon-btn:hover:not(:disabled){
  background:rgba(var(--sortix-accent-rgb),.12)!important;
}
.game-transfer-icon-btn.has-snapshot,
.game-transfer-icon-btn.is-success{
  box-shadow:none!important;
}


@media (max-width: 1220px) {
  .beta-gallery-filterbar{
    grid-template-columns:1fr;
  }
  .beta-gallery-search-tools{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .beta-gallery-filters{
    flex-wrap:wrap;
  }
}

@media (max-width: 760px) {
  .beta-gallery-search-tools{
    grid-template-columns:1fr;
  }
  .gallery-session-actions{
    justify-content:flex-start;
    width:max-content;
  }
}

.participant-transfer-toast{
  position:fixed;
  z-index:12000;
  left:50%;
  bottom:28px;
  transform:translate(-50%,18px);
  opacity:0;
  pointer-events:none;
  display:flex;
  align-items:center;
  gap:9px;
  max-width:min(520px,calc(100vw - 28px));
  padding:11px 14px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(12,16,24,.96);
  color:#e7ebf3;
  box-shadow:0 18px 48px rgba(0,0,0,.42);
  backdrop-filter:blur(16px);
  font-size:11px;
  font-weight:800;
  transition:opacity .18s ease,transform .18s ease;
}
.participant-transfer-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.participant-transfer-toast.is-ok i,.participant-transfer-toast.is-load i{color:#6ee7b7}
.participant-transfer-toast.is-error i{color:#ff718e}

#mazeGameBoard .maze-ranking-panel,
#ballGameBoard .ball-ranking-panel{
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
}
.race-position-search{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.race-position-search[hidden]{display:none!important}
.race-position-search>label{
  height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.075);
  background:#0c1119;
  color:#7f899d;
}
.race-position-search>label:focus-within{
  border-color:rgba(var(--sortix-accent-rgb),.48);
  box-shadow:0 0 0 2px rgba(var(--sortix-accent-rgb),.08);
}
.race-position-search>label>i{font-size:10px;color:var(--sortix-accent)}
.race-position-search input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#eef1f6;
  font:800 10px/1 Inter,system-ui,sans-serif;
}
.race-position-search input::placeholder{color:#697286}
.race-position-search input::-webkit-search-cancel-button{display:none}
.race-position-search-result{
  min-height:38px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:7px 9px;
  border-radius:10px;
  border:1px solid rgba(var(--sortix-accent-rgb),.24);
  background:rgba(var(--sortix-accent-rgb),.07);
}
.race-position-search-result[hidden]{display:none!important}
.race-position-search-result>i{color:var(--sortix-accent);font-size:12px}
.race-position-search-result>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.race-position-search-result b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4f6fa;font-size:10px}
.race-position-search-result small{color:#7e8799;font-size:7px;text-transform:uppercase;font-weight:900;letter-spacing:.08em}
.race-position-search-result>strong{color:#fff;font-size:14px;white-space:nowrap}
.race-position-search-result>strong em{font-style:normal;color:#7f899d;font-size:8px;font-weight:800}
.race-position-search-result.is-empty{grid-template-columns:auto 1fr;border-color:rgba(255,113,142,.22);background:rgba(255,78,113,.06);color:#c9ced9}
.race-position-search-result.is-empty>i{color:#ff718e}
.race-position-search-result.is-empty>span{font-size:9px;line-height:1.25}
#mazeRankingList .is-position-search-hit,
#ballRankingList .is-position-search-hit{
  border-color:rgba(var(--sortix-accent-rgb),.42)!important;
  background:rgba(var(--sortix-accent-rgb),.12)!important;
  box-shadow:inset 3px 0 0 var(--sortix-accent);
}

@media(max-width:980px){
  .beta-gallery-search-tools{width:100%;grid-template-columns:minmax(0,1fr) auto}
  .gallery-session-icon-btn{width:40px;min-width:40px;height:40px}
  .gallery-entry-toggle-btn{min-width:118px;padding:0 10px}
}
@media(max-width:720px){
  .beta-gallery-search-tools{gap:6px;grid-template-columns:minmax(0,1fr) auto}
  .gallery-session-actions{gap:4px;padding:3px}
  .gallery-session-icon-btn{width:36px;min-width:36px;height:36px;border-radius:10px}
  .gallery-entry-toggle-btn{min-width:108px;padding:0 9px;gap:7px}
  .gallery-entry-toggle-btn>i{width:23px;height:23px;min-width:23px}
  .gallery-entry-toggle-copy strong{font-size:10px}
  .gallery-entry-toggle-status{font-size:7px}
  #mazeGameBoard .maze-ranking-panel{
    grid-template-columns:150px minmax(0,1fr)!important;
    grid-template-rows:auto auto minmax(0,1fr)!important;
  }
  #mazeGameBoard .maze-ranking-head{grid-column:1;grid-row:1}
  #mazeGameBoard .maze-winner-card{grid-column:1;grid-row:2/4}
  #mazeGameBoard .race-position-search{grid-column:2;grid-row:1}
  #mazeGameBoard .maze-ranking-list{grid-column:2;grid-row:2/4}
}


/* =========================================================
   V3.1.23 — Blacklist discreta no menu do perfil
   ========================================================= */
.sortix-blacklist-modal .beta-generic-card{
  width:min(720px,94vw)!important;
  max-height:min(82vh,780px)!important;
  overflow:auto;
  padding:20px!important;
}
.sortix-blacklist-intro{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:13px 14px;
  border:1px solid rgba(var(--sortix-accent-rgb),.20);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.09),rgba(255,255,255,.018));
}
.sortix-blacklist-shield{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  color:#e6d8ff;background:rgba(var(--sortix-accent-rgb),.14);border:1px solid rgba(var(--sortix-accent-rgb),.24);
}
.sortix-blacklist-intro strong{display:block;color:#f5f2fb;font-size:12px;font-weight:900;margin:1px 0 4px}
.sortix-blacklist-intro p{margin:0;color:#aab1c1;font-size:10.5px;line-height:1.45}
.sortix-blacklist-intro small{display:block;margin-top:5px;color:#767f91;font-size:9px}
.sortix-blacklist-add{
  display:grid;grid-template-columns:132px minmax(0,1fr) 116px;gap:8px;align-items:center;margin-top:6px
}
.sortix-blacklist-add select,
.sortix-blacklist-add label,
.sortix-blacklist-tools label{
  min-width:0;height:42px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:#0d121b;color:#dfe4ee
}
.sortix-blacklist-add select{padding:0 11px;outline:0;font:800 10px/1 Inter,system-ui,sans-serif}
.sortix-blacklist-add label,.sortix-blacklist-tools label{display:flex;align-items:center;gap:8px;padding:0 11px}
.sortix-blacklist-add label:focus-within,.sortix-blacklist-tools label:focus-within{border-color:rgba(var(--sortix-accent-rgb),.48);box-shadow:0 0 0 3px rgba(var(--sortix-accent-rgb),.07)}
.sortix-blacklist-add label>i,.sortix-blacklist-tools label>i{color:#788297;font-size:10px}
.sortix-blacklist-add input,.sortix-blacklist-tools input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#f3f5f9;font:750 10.5px/1 Inter,system-ui,sans-serif}
.sortix-blacklist-add input::placeholder,.sortix-blacklist-tools input::placeholder{color:#677184}
#sortix-blacklist-add-btn{
  height:42px;border-radius:11px;border:1px solid rgba(var(--sortix-accent-rgb),.38);background:linear-gradient(180deg,rgba(var(--sortix-accent-rgb),.28),rgba(var(--sortix-accent-rgb),.14));color:#f5edff;font-size:10px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px
}
#sortix-blacklist-add-btn:hover{border-color:rgba(var(--sortix-accent-rgb),.62);transform:translateY(-1px)}
.sortix-blacklist-feedback{min-height:18px;padding:0 2px;color:#8f98aa;font-size:9px;font-weight:750;display:flex;align-items:center}
.sortix-blacklist-feedback.is-success{color:#78e49b}.sortix-blacklist-feedback.is-error{color:#ff8ba0}.sortix-blacklist-feedback.is-info{color:#bda2ef}
.sortix-blacklist-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.sortix-blacklist-tools label{height:36px}
#sortix-blacklist-count{min-width:72px;text-align:right;color:#7f8899;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.sortix-blacklist-list{display:flex;flex-direction:column;gap:6px;max-height:310px;overflow:auto;padding-right:2px}
.sortix-blacklist-row{
  min-height:48px;display:grid;grid-template-columns:118px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:6px 7px 6px 10px;border-radius:11px;border:1px solid rgba(255,255,255,.065);background:rgba(255,255,255,.018)
}
.sortix-blacklist-row:hover{border-color:rgba(255,255,255,.11);background:rgba(255,255,255,.026)}
.sortix-blacklist-platform{min-width:0;display:flex;align-items:center;gap:7px;color:#aeb6c8;font-size:9px;font-weight:850}
.sortix-blacklist-platform>i,.sortix-blacklist-platform>b{width:18px;height:18px;display:grid;place-items:center;border-radius:6px;background:rgba(255,255,255,.04);font-size:10px;font-style:normal}
.sortix-blacklist-platform-twitch>i{color:#b98cff}.sortix-blacklist-platform-kick>b{color:#75ff43}.sortix-blacklist-platform-youtube>i{color:#ff6a6a}.sortix-blacklist-platform-instagram>i{color:#ee7fcf}
.sortix-blacklist-platform em{font-style:normal;color:#7f899a}
.sortix-blacklist-row>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e9edf5;font-size:11px;font-weight:850}
.sortix-blacklist-remove{width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:9px!important;border:1px solid rgba(255,255,255,.06)!important;background:#121722!important;color:#828c9e!important;display:grid!important;place-items:center!important}
.sortix-blacklist-remove:hover{color:#ff9bac!important;border-color:rgba(255,104,132,.28)!important;background:rgba(255,79,111,.08)!important}
.sortix-blacklist-empty{min-height:130px;border:1px dashed rgba(255,255,255,.075);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;color:#697386}
.sortix-blacklist-empty[hidden]{display:none!important}.sortix-blacklist-empty>i{font-size:18px;color:#8065ae}.sortix-blacklist-empty strong{font-size:10px;color:#a9b1c0}.sortix-blacklist-empty span{font-size:9px;max-width:340px}
.sortix-blacklist-footer{display:flex;justify-content:flex-end;padding-top:2px}
#sortix-blacklist-clear{min-height:34px!important;height:34px!important;padding:0 10px!important;border-radius:9px!important;border:1px solid rgba(255,94,124,.12)!important;background:rgba(255,67,101,.04)!important;color:#a57882!important;font-size:9px!important;font-weight:800!important}
#sortix-blacklist-clear:hover{color:#ff9bac!important;border-color:rgba(255,94,124,.28)!important;background:rgba(255,67,101,.08)!important}
@media(max-width:640px){
  .sortix-blacklist-add{grid-template-columns:1fr}.sortix-blacklist-row{grid-template-columns:92px minmax(0,1fr) 32px}.sortix-blacklist-platform em{display:none}.sortix-blacklist-tools{grid-template-columns:1fr}.sortix-blacklist-tools #sortix-blacklist-count{text-align:left}
}


/* v3.1.37 TESTE — alinhamento responsivo da experiência.
   Escopo da configuração apenas: não altera Canvas, Worker ou física da roleta. */
#setup-modal #raffle-style-panel .raffle-style-heading {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  margin-inline: auto !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: clamp(8px, 2vw, 24px) !important;
}
#setup-modal #raffle-style-panel .raffle-style-heading > span {
  min-width: 0 !important;
}
#setup-modal #raffle-style-panel .raffle-style-heading-actions {
  min-width: 0 !important;
}
#setup-modal #raffle-style-panel .raffle-style-options {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 606px !important;
  margin-inline: auto !important;
  justify-content: center !important;
}
@media (max-width: 1100px) {
  #setup-modal #raffle-style-panel .raffle-style-heading {
    grid-column: 1 / -1 !important;
    max-width: 606px !important;
  }
}
@media (max-width: 680px) {
  #setup-modal #raffle-style-panel .raffle-style-heading {
    flex-wrap: wrap !important;
    row-gap: 5px !important;
  }
  #setup-modal #raffle-style-panel .raffle-style-heading-actions small {
    white-space: normal !important;
  }
  #setup-modal #raffle-style-panel .raffle-style-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 440px) {
  #setup-modal #raffle-style-panel .raffle-style-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v3.1.37 TESTE — marca de origem em cards da galeria.
   Mesma caixa para todas as plataformas, mantendo os ícones CSS já existentes. */
.participant-card__corner,
.participant-corner-stack {
  width: 34px !important;
}
.participant-card__platform,
.platform-icon-small {
  width: 22px !important;
  height: 22px !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

/* v3.1.37 — ícones de plataformas no seletor e na configuração.
   Nenhuma fonte ou biblioteca adicional; reutiliza o conjunto já carregado. */
#setup-modal .plat-checkbox .fa-brands,
#setup-modal .social-input-icon .fa-brands,
#setup-modal .weight-input label .fa-brands,
#setup-modal .badge-modern .fa-brands,
.beta-platform-list .fa-brands {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  font-size: 21px !important;
  line-height: 1 !important;
}


/* ===========================================================
   SORTIXGG v3.1.37 | revisão de marcas + comentários legíveis
   A marca do YouTube usa um único SVG local cacheável.
   Não adiciona bibliotecas, filtros de animação ou imagens por ticket.
   =========================================================== */

/* Símbolo YouTube realmente >= 20 CSS px de altura visual.
   Substitui apenas o glifo Font Awesome; conserva os demais ícones leves. */
i.fa-brands.fa-youtube, i.fa-youtube {
  display: inline-block !important;
  vertical-align: middle !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 20px !important;
  min-width: 28px !important;
  min-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: url('/assets/youtube-brand-mark.svg') center / 28px 20px no-repeat !important;
}
i.fa-brands.fa-youtube::before, i.fa-youtube::before { content: none !important; display: none !important; }

/* Mesmo eixo e altura de leitura na Home. O Kick deixa de ser um K minúsculo. */
.beta-platform-list { align-items:center !important; gap: 14px !important; flex-wrap:wrap; }
.beta-platform-list > span,
.beta-platform-list > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 26px !important;
  color: #a3a8b8;
  text-decoration: none;
}
.beta-platform-list .fa-twitch,
.beta-platform-list .fa-instagram {
  display: inline-grid !important;
  place-items:center !important;
  flex:0 0 24px !important;
  width:24px !important;
  height:24px !important;
  font-size:23px !important;
  line-height:1 !important;
}
.beta-platform-list b.beta-kick-mark,
#setup-modal .plat-checkbox .beta-kick-mark {
  display:inline-grid !important;
  place-items:center !important;
  flex:0 0 24px !important;
  width:24px !important;
  height:24px !important;
  font:1000 30px/1 system-ui,Arial,sans-serif !important;
  letter-spacing:-2px !important;
  color:#53fc18 !important;
}
.beta-platform-list > a:hover { color: #fff !important; }

/* Seletor de plataformas: mesma área para Twitch/Kick/YouTube/Instagram. */
#setup-modal .plat-checkbox { gap:9px !important; }
#setup-modal .plat-checkbox .fa-twitch,
#setup-modal .plat-checkbox .fa-instagram {
  display:inline-grid !important;
  place-items:center !important;
  flex:0 0 24px !important;
  width:24px !important;
  height:24px !important;
  font-size:23px !important;
  line-height:1 !important;
}
#setup-modal .social-input-icon { width:34px !important; }
#setup-modal .social-input-icon .fa-brands:not(.fa-youtube) {
  font-size:22px !important;
  line-height:1 !important;
}
#setup-modal .social-source-group .modern-input {
  padding-left:55px !important;
}

/* Galeria: selo de origem realmente legível mesmo com avatar reduzido. */
.participant-card__corner, .participant-corner-stack { width:36px !important; }
.participant-card__platform, .platform-icon-small {
  box-sizing:border-box !important;
  width:34px !important;
  min-width:34px !important;
  height:26px !important;
  min-height:26px !important;
  font-size:22px !important;
  line-height:1 !important;
}
.participant-card__platform .fa-twitch,
.participant-card__platform .fa-instagram,
.platform-icon-small .fa-twitch,
.platform-icon-small .fa-instagram {
  font-size:22px !important;
  line-height:1 !important;
}
.participant-card__platform .sortix-kick-glyph,
.platform-icon-small .sortix-kick-glyph {
  font:1000 24px/1 system-ui,Arial,sans-serif !important;
  letter-spacing:-2px;
}

/* Os dois cartões de opções dos comentários recebem tipografia real, não 7px. */
body.setup-comments-mode #setup-modal #comments-options-panel {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  margin-top:12px !important;
  margin-bottom:12px !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-toggle {
  min-height:84px !important;
  padding:15px 16px !important;
  gap:12px !important;
  border-radius:14px !important;
  align-items:center !important;
  cursor:pointer;
}
body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-copy {
  display:flex !important;
  flex-direction:column !important;
  gap:5px !important;
  min-width:0 !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-copy > span {
  font-size:14px !important;
  font-weight:850 !important;
  line-height:1.25 !important;
  white-space:normal !important;
  color:#f3f5fa !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-copy small {
  font-size:11.5px !important;
  font-weight:550 !important;
  line-height:1.4 !important;
  color:#adb6ca !important;
  max-width:none !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel .toggle-mini {
  width:42px !important;
  min-width:42px !important;
  height:24px !important;
  border-radius:999px !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel .toggle-mini::after {
  width:17px !important;
  height:17px !important;
  left:3px !important;
  top:2.5px !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel input:checked + .toggle-mini::after {
  left:20px !important;
}
body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-toggle:focus-within {
  outline:2px solid var(--sortix-accent) !important;
  outline-offset:2px !important;
}
body.setup-comments-mode #setup-modal .comments-keyword-group .modern-input,
body.setup-comments-mode #setup-modal .social-source-group .modern-input {
  height:50px !important;
  font-size:15.5px !important;
}
body.setup-comments-mode #setup-modal .setup-box > #start-btn {
  height:58px !important;
  min-height:58px !important;
  font-size:18px !important;
  letter-spacing:-.15px !important;
  font-weight:950 !important;
}
body.setup-comments-mode #setup-modal #start-btn .fa-youtube { margin-right:8px !important; }
@media(max-width:760px) {
  body.setup-comments-mode #setup-modal #comments-options-panel {
    grid-template-columns:1fr !important;
  }
  body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-toggle {
    min-height:70px !important;
  }
  .beta-platform-list { justify-content:center !important; }
}
@media (max-height:750px) and (min-width:900px) {
  body.setup-comments-mode #setup-modal #comments-options-panel .comments-unique-toggle {
    min-height:66px !important;
    padding:9px 13px !important;
  }
  body.setup-comments-mode #setup-modal .setup-box > #start-btn {
    height:51px !important;
    min-height:51px !important;
  }
}


/* SORTIXGG v3.1.37 — plataformas na Home: uma linha, sem quebra ou sublinhado.
   Ícones originais reaproveitados, sem novas fontes/imagens para a Home. */
#landing-screen .beta-platform-list {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin-top: 19px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
#landing-screen .beta-platform-list::-webkit-scrollbar { display: none; }
#landing-screen .beta-platform-list > a.beta-platform-link,
#landing-screen .beta-platform-list > a.beta-platform-link:link,
#landing-screen .beta-platform-list > a.beta-platform-link:visited,
#landing-screen .beta-platform-list > a.beta-platform-link:hover,
#landing-screen .beta-platform-list > a.beta-platform-link:active {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font: 800 11px/1.2 Inter,system-ui,Arial,sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  color: #a3a8b8 !important;
  -webkit-text-fill-color: #a3a8b8 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-transform: none !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link:focus-visible {
  outline: 2px solid var(--sortix-accent) !important;
  outline-offset: 2px !important;
  border-radius: 3px !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link > i.fa-brands,
#landing-screen .beta-platform-list > a.beta-platform-link > b.beta-kick-mark {
  display: inline-flex !important;
  flex: 0 0 30px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link > i.fa-twitch,
#landing-screen .beta-platform-list > a.beta-platform-link > i.fa-instagram {
  font-size: 22px !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link > i.fa-twitch {
  color: #a970ff !important;
  -webkit-text-fill-color: #a970ff !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link > i.fa-instagram {
  color: #ff6daf !important;
  -webkit-text-fill-color: #ff6daf !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link > b.beta-kick-mark {
  font: 1000 27px/1 system-ui,Arial,sans-serif !important;
  letter-spacing: -2px !important;
  color: #53fc18 !important;
  -webkit-text-fill-color: #53fc18 !important;
}
#landing-screen .beta-platform-list > a.beta-platform-link > i.fa-youtube {
  width: 32px !important;
  min-width: 32px !important;
  flex-basis: 32px !important;
  height: 24px !important;
  min-height: 24px !important;
  background-size: 32px 24px !important;
}
@media (max-width: 980px) {
  #landing-screen .beta-platform-list { justify-content: center !important; }
}
@media (max-width: 520px) {
  #landing-screen .beta-platform-list {
    justify-content: flex-start !important;
    gap: 9px !important;
  }
  #landing-screen .beta-platform-list > a.beta-platform-link { font-size: 10px !important; }
}


/* v3.1.37 — configuração: marcas discretas, alinhamento comum.
   A Home mantém seu próprio tamanho; no site o ícone YouTube tem 20px de altura
   com proporção preservada. Não interfere no desenho Canvas da Roleta. */
#setup-modal #platform-selector .plat-checkbox {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 7px !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  padding: 0 10px !important;
}
#setup-modal #platform-selector .plat-checkbox > .platform-option-mark {
  display: inline-flex !important;
  flex: 0 0 30px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
}
#setup-modal #platform-selector .plat-checkbox > .platform-option-label {
  display: inline-block !important;
  flex: 0 0 auto !important;
  font: 900 15px/1.2 Inter,system-ui,Arial,sans-serif !important;
  white-space: nowrap !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-twitch,
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-instagram {
  display: inline-flex !important;
  flex: 0 0 24px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  font-size: 23px !important;
}
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-youtube {
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 20px !important;
  min-height: 20px !important;
  background-size: 28px 20px !important;
}
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > .beta-kick-mark {
  display: inline-flex !important;
  flex: 0 0 24px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  font: 1000 24px/1 system-ui,Arial,sans-serif !important;
  letter-spacing: -1px !important;
  color: #53fc18 !important;
}
#setup-modal .social-source-group .social-input-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 28px !important;
  left: 12px !important;
  line-height: 1 !important;
  background: transparent !important;
}
#setup-modal .social-source-group .social-input-icon > i.fa-youtube {
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 20px !important;
  min-height: 20px !important;
  background-size: 28px 20px !important;
}
#setup-modal .social-source-group .modern-input { padding-left: 50px !important; }
/* Caso um script legado injete o ícone duplicado, manter somente o original do HTML. */
#setup-modal .social-source-group:has(.social-input-icon) > .beta-setup-input-icon {
  display: none !important;
}

/* v3.1.37 — ajuste fino da configuração: Home permanece como aprovada.
   Marca Kick SVG reutilizável e YouTube sem glifo FontAwesome duplicado.
   Símbolo YouTube continua com 20 CSS px de altura. */
#setup-modal #platform-selector .plat-checkbox {
  display: inline-flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
}
#setup-modal #platform-selector .plat-checkbox > .platform-option-mark,
#setup-modal #platform-selector .plat-checkbox > .platform-option-label {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#setup-modal #platform-selector .plat-checkbox > .platform-option-mark {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 26px !important;
  min-height: 26px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
#setup-modal #platform-selector .plat-checkbox > .platform-option-label {
  display: inline-block !important;
  flex: 0 0 auto !important;
  font: 850 15px/1.2 Inter,system-ui,Arial,sans-serif !important;
  white-space: nowrap !important;
  text-align: left !important;
}
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-twitch,
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-instagram {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px !important;
  font-size: 21px !important;
  line-height: 1 !important;
}
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-youtube {
  display: inline-block !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 20px !important;
  min-height: 20px !important;
  background-size: 28px 20px !important;
}
/* Kick: a marca verdadeira substitui a letra tipográfica sem nova biblioteca. */
#setup-modal #platform-selector .platform-option-mark > .beta-kick-mark {
  display: inline-block !important;
  box-sizing: border-box !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: transparent url('/assets/kick-brand-mark.svg') center / 22px 24px no-repeat !important;
}
#setup-modal #group-youtube .social-input-icon {
  display: flex !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 26px !important;
  min-height: 26px !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: none !important;
}
#setup-modal #group-youtube .sortix-youtube-input-brand {
  display: block !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent url('/assets/youtube-brand-mark.svg') center / 28px 20px no-repeat !important;
}
#setup-modal #group-youtube .social-input-icon > .fa-youtube,
#setup-modal #group-youtube > .beta-setup-input-icon {
  display: none !important;
}
#setup-modal #group-youtube .modern-input {
  padding-left: 53px !important;
}

/* v3.1.37 — Seletores por modo: corrige conflito de especificidade dos ícones.
   As regras com #setup-modal #platform-selector .plat-checkbox tinham prioridade
   sobre o display:none dos modos. Apenas os serviços compatíveis ficam visíveis. */
body.setup-chat-mode #setup-modal #platform-selector {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
}
body.setup-chat-mode #setup-modal #platform-selector #label-twitch,
body.setup-chat-mode #setup-modal #platform-selector #label-kick,
body.setup-chat-mode #setup-modal #platform-selector #label-youtube {
  display: inline-flex !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}
body.setup-chat-mode #setup-modal #platform-selector #label-instagram {
  display: none !important;
}
body.setup-comments-mode #setup-modal #platform-selector {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  width: min(740px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}
body.setup-comments-mode #setup-modal #platform-selector #label-youtube,
body.setup-comments-mode #setup-modal #platform-selector #label-instagram {
  display: inline-flex !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}
body.setup-comments-mode #setup-modal #platform-selector #label-twitch,
body.setup-comments-mode #setup-modal #platform-selector #label-kick {
  display: none !important;
}
body.setup-subs-mode #setup-modal #platform-selector #label-kick,
body.setup-subs-mode #setup-modal #platform-selector #label-youtube,
body.setup-subs-mode #setup-modal #platform-selector #label-instagram {
  display: none !important;
}
@media (max-width: 600px) {
  body.setup-chat-mode #setup-modal #platform-selector,
  body.setup-comments-mode #setup-modal #platform-selector {
    gap: 6px !important;
  }
  body.setup-chat-mode #setup-modal #platform-selector .platform-option-label,
  body.setup-comments-mode #setup-modal #platform-selector .platform-option-label {
    font-size: clamp(11px, 3vw, 15px) !important;
  }
  body.setup-chat-mode #setup-modal #platform-selector .plat-checkbox,
  body.setup-comments-mode #setup-modal #platform-selector .plat-checkbox {
    padding-inline: 4px !important;
    gap: 4px !important;
  }
}


/* v3.1.38 TESTE — somente os quatro cartões superiores de modo de sorteio.
   Retrato/tablet: 2x2. Celular estreito: uma coluna. Desktop largo: padrão 4x1.
   Textos completos e alturas flexíveis evitam corte ao trocar de resolução. */
@media (max-width: 1100px), (orientation: portrait) and (max-width: 1400px) {
  #setup-modal .mode-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(940px, 100%) !important;
    max-width: 100% !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-inline: auto !important;
  }
  #setup-modal .mode-card-grid > .mode-card {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 11px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 90px !important;
    max-height: none !important;
    padding: 12px 19px 12px 12px !important;
    text-align: left !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    align-self: center !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: left !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-content strong {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-size: 14px !important;
    line-height: 1.24 !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-content small {
    display: block !important;
    width: 100% !important;
    margin-top: 4px !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 600px) {
  #setup-modal .mode-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }
  #setup-modal .mode-card-grid > .mode-card {
    min-height: 74px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    column-gap: 11px !important;
    padding: 10px 18px 10px 11px !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-icon {
    width: 38px !important;
    height: 38px !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-content strong {
    font-size: 13px !important;
  }
  #setup-modal .mode-card-grid > .mode-card .mode-card-content small {
    font-size: 10px !important;
  }
  #setup-modal #beta-setup-heading h2 {
    font-size: clamp(17px, 5vw, 22px) !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }
}

/* Aviso de transparência de uso da API: só aparece quando o YouTube está selecionado.
   Mantém ícones e motores Canvas/Worker inalterados. */
#setup-modal .youtube-api-notice {
  display: none;
  max-width: 100%;
  margin: 4px 0 12px;
  font: 500 11px/1.55 Inter, system-ui, Arial, sans-serif;
  color: #9b9eae;
  text-align: left;
}
#setup-modal:has(#enable-youtube:checked) .youtube-api-notice {
  display: block;
}
#setup-modal .youtube-api-notice a {
  color: #cbb7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Release: platform corner markers ~12% smaller, without altering card/avatar layout. */
.participant-card__platform,.platform-icon-small{
  width:30px!important;min-width:30px!important;height:23px!important;min-height:23px!important;
  font-size:20px!important;
}
.participant-card__platform .fa-twitch,.platform-icon-small .fa-twitch{
  display:inline-block!important;width:20px!important;height:20px!important;min-width:20px!important;
  font-size:0!important;color:transparent!important;
  background:url('/assets/twitch-brand-mark.svg') center/contain no-repeat!important;
}
#platform-selector .platform-option-mark > i.fa-twitch,
#setup-modal #platform-selector .plat-checkbox .platform-option-mark > i.fa-twitch,
.beta-platform-list i.fa-twitch,.beta-platform-link i.fa-twitch{
  display:inline-block!important;background:url('/assets/twitch-brand-mark.svg') center/contain no-repeat!important;
  color:transparent!important;font-size:0!important;width:21px!important;height:21px!important;
  min-width:21px!important;min-height:21px!important;
}
.participant-card__platform .fa-instagram,.platform-icon-small .fa-instagram{font-size:20px!important}
.participant-card__platform .sortix-kick-glyph,.platform-icon-small .sortix-kick-glyph{font-size:21px!important}
