@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-variant-numeric: tabular-nums;
}

:root {
    --bg:       #141414;
    --card-bg:  #1c1c1e;
    --accent:   #E6FF66;
    --yes:      #00FF66;
    --no:       #FF003C;
    --text:     #ffffff;
    --muted:    #888888;
    --border:   #2a2a2e;
    --whale:    #00BFFF;
    --jackpot:  #FFD700;
    --font:     'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
    --shadow:   0 8px 24px rgba(0, 0, 0, 0.45);
    --radius:   16px;
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
}

/* ── TOPBAR ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 16px;
    background: #000;
    border-bottom: 1px solid #333;
}

.topbar-logo { justify-self: start; }

.topbar-logo { 
    color: #d8d8d8 !important; 
    font-weight: 900; 
    letter-spacing: 1px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    flex-shrink: 0;
}

/* ── JACKPOT TICKER ── */
.jackpot-ticker {
    justify-self: center;
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 4px 12px;
    background: transparent;
    border-radius: 0;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    will-change: transform, opacity;
    animation: jackpot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes jackpot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.85; transform: scale(1.04); }
}

.topbar-bal {
    justify-self: end;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar-bal span {
    color: var(--accent);
}

/* ══════════════════════════════════════════
   TACTICAL TOPBAR ACTION BUTTONS
══════════════════════════════════════════ */
.btn-top-deposit,
.btn-top-withdraw {
    background: #0f0f13;
    color: var(--text);
    font-family: 'Courier New', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-top-deposit:hover,
.btn-top-withdraw:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(230, 255, 102, 0.5),
                inset 0 0 6px rgba(230, 255, 102, 0.15);
}

.btn-top-deposit:active,
.btn-top-withdraw:active {
    transform: scale(0.96);
}

.btn-top-deposit:disabled,
.btn-top-withdraw:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ══════════════════════════════════════════
   SYNDICATE RANK BADGES
══════════════════════════════════════════ */
.rank-badge {
    font-family: var(--font);
    font-weight: bold;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.rank-NORMIE {
    color: #888888;
    border: 1px solid #555555;
}

.rank-DEGEN {
    color: #00ff00;
    border: 1px solid #00ff00;
}

.rank-WHALE {
    color: #b026ff;
    border: 1px solid #b026ff;
    text-shadow: 0 0 5px #b026ff;
    box-shadow: 0 0 8px rgba(176, 38, 255, 0.4);
}

.rank-ORACLE {
    color: #E6FF66;
    border: 1px solid #E6FF66;
    text-shadow: 0 0 5px #E6FF66;
    box-shadow: 0 0 8px rgba(230, 255, 102, 0.4);
}

/* Topbar rank badge */
#userRankBadge {
    font-size: 9px;
    letter-spacing: 2px;
    padding: 2px 6px;
    vertical-align: middle;
}

/* ══════════════════════════════════════════
   TACTICAL GRID — 3-COLUMN DESKTOP LAYOUT
══════════════════════════════════════════ */
.tactical-grid {
    display: grid;
    grid-template-columns: 20vw 1fr 20vw;
    gap: 14px;
    height: 100vh;
    overflow: hidden;
    padding: 59px 14px 14px;
}

/* ── SHARED PANEL BASE ── */
.panel {
    height: 100%;
    overflow: hidden;
    background: #050505;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border: 1px solid #222;
    box-shadow: none;
}

/* ── PANEL HEADER ── */
.panel-header {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* ── LEFT PANEL ── */
.panel-left {
    border-right: none;
}

/* ── KILL FEED ── */
.kill-feed {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kill-feed::-webkit-scrollbar { display: none; }

/* Strict single-line truncation — no layout jitter */
.kf-entry {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.kf-liquidated { color: var(--no); }
.kf-profit     { color: var(--yes); }
.kf-bet        { color: var(--muted); }
.kf-whale      { color: var(--whale); }
.kf-defect     { color: var(--jackpot); }

/* ── CENTER PANEL ── */
.panel-center {
    border-right: none;
    overflow: hidden;
}

/* ── SNAP SCROLL CONTAINER ── */
.feed {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.feed::-webkit-scrollbar { display: none; }

/* ── MARKET CARD ── */
.card {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 32px;
    position: relative;
    overflow: hidden;
}

/* ── MEME MYSTERY BOX COVER ── */
.meme-cover {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    background-color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ── MODE BADGE ── */
.card-mode {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── CARD BODY ── */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a1f 0%, #0d0d10 100%);
    border: 1px solid #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
                0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ── QUESTION ── */
.card-question {
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: 1px;
}

/* ── POOLS ROW ── */
.pools {
    display: flex;
    gap: 32px;
}

.pool {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pool-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
}

.pool-value {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.pool-value.yes { color: var(--yes); }
.pool-value.no  { color: var(--no); }

/* ── BATTLE BAR ── */
.battle-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.battle-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.battle-bar-labels .lbl-yes { color: var(--yes); }
.battle-bar-labels .lbl-no  { color: var(--no); }

.battle-bar-track {
    width: 100%;
    height: 16px;
    border-radius: 8px;
    background: var(--no);
    position: relative;
    overflow: hidden;
}

.battle-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--yes);
    transition: width 0.5s ease;
}

/* ── STAKE ROW ── */
.stake-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stake-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.stake-chips {
    display: flex;
    gap: 6px;
}

.chip {
    background: #333;
    border: none;
    border-radius: 10px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 12px;
    cursor: pointer;
    will-change: transform;
    transition: transform 0.08s ease, color 0.1s, background 0.1s;
}

.chip:active {
    transform: scale(0.95);
}

.chip.active {
    background: var(--accent);
    color: #0a0a0a;
}

.btn-battle-royale {
    background: var(--accent);
    color: #000;
    font-weight: 900;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    animation: jackpot-pulse 2s ease-in-out infinite;
    will-change: transform, opacity;
    transition: transform 0.1s;
}

.btn-battle-royale:active { transform: scale(0.95); }

.stake-amount {
    margin-left: auto;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ── ACTION BUTTONS ── */
.actions {
    display: flex;
    gap: 10px;
}

.btn-yes,
.btn-no {
    flex: 1;
    border: none;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a0a0a;
    padding: 20px 0;
    cursor: pointer;
    will-change: transform;
    transition: transform 0.08s ease;
}

.btn-yes { background: var(--yes); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3); }
.btn-no  { background: var(--no); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3); }
.btn-yes:active, .btn-no:active,
.btn-yes.flash, .btn-no.flash { transform: scale(0.95); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3); }
.btn-yes:disabled, .btn-no:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── COUNTDOWN ── */
.card-countdown {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: var(--accent);
}

.card-countdown.danger {
    color: var(--no);
    will-change: opacity;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% { opacity: 0.15; }
}

/* ── CLOSED BANNER ── */
.closed-banner {
    display: none;
    text-align: center;
    padding: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--bg);
    margin-bottom: 16px;
}

.card.closed .closed-banner { display: block; }
.card.closed .btn-yes,
.card.closed .btn-no  { opacity: 0.2; pointer-events: none; }
.card.closed .chip    { opacity: 0.2; pointer-events: none; }

/* ── SCROLL HINT ── */
.scroll-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    animation: fadeUpDown 2s ease-in-out infinite;
}

@keyframes fadeUpDown {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 0.8; transform: translateX(-50%) translateY(-4px); }
}

/* ── GLITCH EFFECT ── */
.glitch {
    position: relative;
    display: inline-block;
    color: var(--no);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: glitch-main 2.5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.glitch::before {
    color: var(--yes);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    animation: glitch-top 2.5s infinite;
}

.glitch::after {
    color: var(--accent);
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    animation: glitch-bot 2.5s infinite;
}

@keyframes glitch-main {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, 2px); }
    98% { transform: translate(1px, -2px); }
}

@keyframes glitch-top {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    92% { transform: translate(3px, 0); opacity: 0.8; }
    94% { transform: translate(-3px, 0); opacity: 0.8; }
    96% { transform: translate(0); opacity: 0; }
}

@keyframes glitch-bot {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    93% { transform: translate(-3px, 0); opacity: 0.8; }
    95% { transform: translate(3px, 0); opacity: 0.8; }
    97% { transform: translate(0); opacity: 0; }
}

/* ── CARD ACCENT LINE (top) ── */
.card-accent-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}

.card-accent-line.standard { background: var(--accent); }
.card-accent-line.survival { background: var(--no); }
.card-accent-line.sniper   { background: var(--yes); }
.card-accent-line.whale    { background: var(--whale); }

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 28px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 14px;
    border-width: 1px;
    border-style: solid;
    background: var(--bg);
    pointer-events: none;
    white-space: nowrap;
}

.toast.success { color: var(--yes); border-color: var(--yes); }
.toast.error   { color: var(--no);  border-color: var(--no); }

/* ══════════════════════════════════════════
   RIGHT PANEL — CARTEL DASHBOARD
══════════════════════════════════════════ */
.panel-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.right-top {
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}

.right-top::-webkit-scrollbar { display: none; }

/* Compact stat blocks — no dividers between them */
.stat-block {
    padding: 7px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.stat-value.accent  { color: var(--accent); }
.stat-value.yes-col { color: var(--yes); }
.stat-value.no-col  { color: var(--no); }

/* Utility color classes */
.accent  { color: var(--accent); }
.yes-col { color: var(--yes); }
.no-col  { color: var(--no); }
.muted   { color: var(--muted); }

/* ── BOTTOM COMM-LINK ── */
.right-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.trollbox {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.trollbox::-webkit-scrollbar { display: none; }

.troll-line {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
    word-break: break-word;
}

.troll-handle {
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 6px;
}

.troll-msg { color: #888888; }

.comm-input-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    gap: 6px;
    flex-shrink: 0;
}

.comm-prompt {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    flex-shrink: 0;
}

.comm-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    caret-color: transparent;
    min-width: 0;
}

.comm-input::placeholder { color: transparent; }

.comm-cursor {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    animation: cursor-blink 1s steps(2, start) infinite;
    flex-shrink: 0;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ══════════════════════════════════════════
   V2.0 — DEFECTOR ZONE
══════════════════════════════════════════ */
.defect-zone {
    border: 1px solid var(--jackpot);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.04);
    will-change: opacity;
    animation: defect-flash 1s steps(2, start) infinite;
}

@keyframes defect-flash {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

.defect-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--jackpot);
    margin-bottom: 8px;
}

.defect-actions {
    display: flex;
    gap: 8px;
}

.btn-defect {
    flex: 1;
    background: transparent;
    border: 1px solid var(--jackpot);
    color: var(--jackpot);
    font-family: var(--font);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 6px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.btn-defect:active {
    background: var(--jackpot);
    color: var(--bg);
}

.btn-defect:disabled { opacity: 0.3; cursor: not-allowed; }

.defect-penalty {
    font-size: 8px;
    font-weight: 700;
    color: var(--no);
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   V2.0 — BATTLE ROYALE WARZONE (CENTER PINNED)
══════════════════════════════════════════ */
.br-warzone {
    position: relative;
    flex-shrink: 0;
    margin: 0 0 10px;
    padding: 14px 16px 16px;
    background: #070707;
    border: 2px solid var(--no);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 0, 60, 0.25),
                inset 0 0 24px rgba(176, 38, 255, 0.06);
    overflow: hidden;
}

.br-warzone-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--no), #b026ff, var(--no));
    animation: jackpot-pulse 2s ease-in-out infinite;
}

.br-warzone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.br-warzone-tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b026ff;
    text-shadow: 0 0 8px rgba(176, 38, 255, 0.6);
}

.br-warzone-round {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.br-warzone-timer {
    font-size: 44px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 3px;
    color: var(--accent);
    text-align: center;
    line-height: 1;
    margin: 4px 0;
}

.br-warzone-timer.danger {
    color: var(--no);
    animation: blink 1s steps(2, start) infinite;
}

.br-warzone-survivors {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--yes);
    margin-bottom: 12px;
}

.br-warzone-survivors span { color: var(--text); }

.br-warzone-actions {
    display: flex;
    gap: 10px;
}

.br-warzone-actions .btn-yes,
.br-warzone-actions .btn-no {
    padding: 14px 0;
    font-size: 15px;
}

/* ══════════════════════════════════════════
   V2.0 — BATTLE ROYALE RIGHT MODULE (JOIN / RADAR)
══════════════════════════════════════════ */
.br-waiting {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.br-waiting span { color: var(--accent); }

.br-enter-btn {
    font-size: 11px !important;
    letter-spacing: 1px;
    background: var(--no);
    color: #070707;
    box-shadow: 0 0 14px rgba(255, 0, 60, 0.5);
}

.br-radar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.br-radar-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

.br-radar-value {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.br-radar-value.accent { color: var(--accent); }

.br-radar-status {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.br-radar-status.alive {
    color: var(--yes);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.br-radar-status.eliminated {
    color: var(--no);
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.5);
}

/* ══════════════════════════════════════════
   V2.0 — WHALE BADGE
══════════════════════════════════════════ */
.whale-badge {
    display: inline-block;
    border: 1px solid var(--whale);
    color: var(--whale);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 4px;
}

/* ══════════════════════════════════════════
   V2.0 — ELIMINATION FLASH ANIMATION
══════════════════════════════════════════ */
@keyframes elimination-flash {
    0%   { opacity: 0.45; transform: translateX(-4px); }
    100% { opacity: 1; transform: translateX(0); }
}

.kf-liquidated {
    will-change: transform, opacity;
    animation: elimination-flash 0.6s ease-out;
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 1024px)
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .topbar {
        border-bottom: none;
    }

    .jackpot-ticker {
        font-size: 8px;
        padding: 3px 6px;
        letter-spacing: 1px;
    }

    .tactical-grid {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }

    #panel-left,
    #panel-right {
        display: none;
    }

    .panel-center {
        width: 100vw;
        border-right: none;
    }

    .feed { height: 100%; }
    .card { height: 100vh; }

    .card-mode      { top: 72px; }
    .card-countdown { top: 72px; }
}

/* ══════════════════════════════════════════
   WHALE SLAIN ALERT — SCREEN SHAKE
══════════════════════════════════════════ */
@keyframes whale-shake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.whale-slain-flash {
    animation: whale-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    box-shadow: inset 0 0 120px rgba(255, 0, 60, 0.9) !important;
    border: 2px solid #FF003C !important;
}

/* ══════════════════════════════════════════
   LEDGER — CYBERPUNK GLASS CONSOLE MODAL
══════════════════════════════════════════ */
.btn-top-ledger {
    background: #0f0f13;
    color: var(--text);
    font-family: 'Courier New', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-top-ledger:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(230, 255, 102, 0.5),
                inset 0 0 6px rgba(230, 255, 102, 0.15);
}

.btn-top-ledger:active { transform: scale(0.96); }

.ledger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 8, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ledger-overlay.hidden { display: none !important; }

.ledger-console {
    position: relative;
    width: 460px;
    max-width: 92vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 24, 22, 0.92) 0%, rgba(10, 12, 14, 0.96) 100%);
    border: 1px solid rgba(0, 255, 102, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.18),
                inset 0 0 40px rgba(0, 255, 102, 0.04),
                0 24px 60px rgba(0, 0, 0, 0.7);
    animation: ledger-boot 0.25s ease-out;
}

@keyframes ledger-boot {
    0%   { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ledger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
    flex-shrink: 0;
}

.ledger-title {
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--yes);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.ledger-close {
    background: transparent;
    border: 1px solid rgba(255, 0, 60, 0.4);
    color: var(--no);
    font-size: 12px;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s, box-shadow 0.12s;
}

.ledger-close:hover {
    background: rgba(255, 0, 60, 0.15);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.4);
}

.ledger-scanline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.7), transparent);
    flex-shrink: 0;
    animation: ledger-scan 2.5s linear infinite;
    opacity: 0.6;
}

@keyframes ledger-scan {
    0%, 100% { opacity: 0.2; }
    50%       { opacity: 0.7; }
}

.ledger-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 102, 0.4) transparent;
    padding: 8px 0;
    font-family: 'Courier New', ui-monospace, monospace;
}

.ledger-body::-webkit-scrollbar { width: 4px; }
.ledger-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.4);
    border-radius: 2px;
}

.ledger-loading {
    text-align: center;
    padding: 40px 0;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

.ledger-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "type   detail amount"
        "time   detail amount";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.1s;
}

.ledger-row:hover { background: rgba(0, 255, 102, 0.04); }

.ledger-row .ledger-type   { grid-area: type; }
.ledger-row .ledger-time   { grid-area: time; }
.ledger-row .ledger-detail { grid-area: detail; }
.ledger-row .ledger-amount { grid-area: amount; }

.ledger-detail {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ledger-time {
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--muted);
    white-space: nowrap;
    opacity: 0.7;
}

/* ── Per-type amount coloring ── */
.ledger-row.kf-profit  .ledger-amount,
.ledger-row.kf-deposit .ledger-amount {
    color: var(--yes);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

.ledger-row.kf-bet        .ledger-amount,
.ledger-row.kf-liquidated .ledger-amount {
    color: var(--no);
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.4);
}

/* ── Decrypting state inside the ledger body ── */
.ledger-decrypting {
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    letter-spacing: 3px;
}

.ledger-row-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ledger-type {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}

.ledger-meta {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ledger-amount {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.ledger-amount.gain {
    color: var(--yes);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

.ledger-amount.loss {
    color: var(--no);
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.4);
}

.ledger-icon {
    font-size: 11px;
    margin-right: 4px;
}

.ledger-empty {
    text-align: center;
    padding: 40px 18px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .ledger-console { width: 94vw; max-height: 85vh; }
}

/* ══════════════════════════════════════════
   PNL POSTER — VIRAL FLEX MODAL
══════════════════════════════════════════ */
.pnl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 3, 5, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
}

.pnl-overlay.hidden { display: none !important; }

.pnl-console {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-height: 92vh;
}

.pnl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
}

.pnl-title {
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 8px rgba(230, 255, 102, 0.5);
}

.pnl-close {
    background: transparent;
    border: 1px solid rgba(255, 0, 60, 0.4);
    color: var(--no);
    font-size: 12px;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s, box-shadow 0.12s;
}

.pnl-close:hover {
    background: rgba(255, 0, 60, 0.15);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.4);
}

#pnlCanvas {
    width: 400px;
    height: 500px;
    max-width: 100%;
    max-height: 70vh;
    aspect-ratio: 800 / 1000;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.btn-x-share {
    width: 100%;
    max-width: 400px;
    background: #000;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 16px 0;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(230, 255, 102, 0.6);
    box-shadow: 0 0 16px rgba(230, 255, 102, 0.4),
                inset 0 0 12px rgba(230, 255, 102, 0.08);
    transition: transform 0.1s, box-shadow 0.15s;
}

.btn-x-share:hover {
    box-shadow: 0 0 24px rgba(230, 255, 102, 0.7),
                inset 0 0 16px rgba(230, 255, 102, 0.15);
}

.btn-x-share:active { transform: scale(0.97); }

@media (max-width: 1024px) {
    #pnlCanvas { width: 320px; height: 400px; }
    .pnl-header, .btn-x-share { max-width: 320px; }
}

/* ══════════════════════════════════════════
   PRIORITY 1 — RADAR (UPCOMING MATCH COUNTDOWN BAR)
   Minimalist terminal band pinned below the topbar.
══════════════════════════════════════════ */
.radar-bar {
    position: fixed;
    top: 59px;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 26px;
    padding: 0 16px;
    overflow: hidden;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    font-family: 'Courier New', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    white-space: nowrap;
}

.radar-bar.hidden { display: none !important; }

.radar-label {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.radar-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.radar-item {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
}

.radar-item .radar-vs    { color: var(--text); }
.radar-item .radar-clock { color: var(--accent); }

/* ══════════════════════════════════════════
   PRIORITY 1 — TICKER (LIVE EVENT FEED)
   Mirrors the kill-feed convention: scrolling single-line entries.
══════════════════════════════════════════ */
.ticker-feed {
    flex-shrink: 0;
    max-height: 120px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.ticker-feed::-webkit-scrollbar { display: none; }

.ticker-entry {
    display: block;
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
}

.ticker-entry .tk-time { color: var(--accent); margin-right: 6px; }
.ticker-entry .tk-team { color: var(--text); }

.ticker-goal { color: var(--yes); }
.ticker-card-yellow { color: var(--jackpot); }
.ticker-card-red    { color: var(--no); }

/* Push the grid down to make room for the fixed radar bar */
.tactical-grid.with-radar { padding-top: 85px; }

@media (max-width: 1024px) {
    .radar-bar { top: 45px; }
    .tactical-grid.with-radar { padding-top: 71px; }
}

/* ══════════════════════════════════════════
   DECRYPTING ORACLE DATA — FULL-SCREEN SUSPENSE OVERLAY
══════════════════════════════════════════ */
.decrypting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.decrypting-overlay.hidden {
    display: none !important;
}

.glitch-text {
    color: #E6FF66;
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(230, 255, 102, 0.8);
    animation: jackpot-pulse 1s infinite alternate;
}

/* ══════════════════════════════════════════
   DEGEN TERMINAL BRUTALISM — GLOBAL REMASTER
══════════════════════════════════════════ */

/* 1. Zero radius everywhere */
.chip,
.panel,
.modal,
.br-enter-btn,
.btn-yes,
.btn-no,
.btn-top-deposit,
.btn-top-withdraw,
.btn-top-ledger,
.btn-battle-royale,
.btn-defect,
.btn-x-share,
.jackpot-ticker,
.rank-badge,
.whale-badge,
.meme-cover,
.card-body,
.battle-bar-track,
.battle-bar-fill,
.br-warzone,
.ledger-console,
.ledger-close,
.pnl-close,
.toast,
input,
button {
    border-radius: 0 !important;
}

/* 2. Topbar buttons — small, sharp terminal style */
.btn-top-deposit,
.btn-top-withdraw,
.btn-top-ledger,
.chip {
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid #444;
    background: transparent;
    color: #aaa;
    text-transform: uppercase;
    box-shadow: none;
    transition: none;
}

.btn-top-deposit:hover,
.btn-top-withdraw:hover,
.btn-top-ledger:hover,
.chip:hover {
    background: #d8d8d8;
    color: #000;
    border-color: #d8d8d8;
    box-shadow: none;
    transition: none;
}

/* 3. Market buttons — climax YES/NO */
.btn-yes {
    background: transparent;
    border: 1px solid #00b25a;
    color: #00b25a;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.btn-yes:hover {
    background: #00b25a;
    color: #000;
}

.btn-no {
    background: transparent;
    border: 1px solid #b22222;
    color: #b22222;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.btn-no:hover {
    background: #b22222;
    color: #000;
}

/* 4. Battle Royale enter button */
.br-enter-btn {
    background: #b22222;
    color: #fff;
    border: 1px solid #ff003c;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: none;
    transition: none;
}

/* TERMINAL SCROLLBAR & SELECTION */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #d8d8d8; }
::selection { background: #00b25a; color: #000; }

/* LIVE NODE LOGO DOT */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FF003C;
    border-radius: 50% !important; /* Override global brutalism for the dot */
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.8);
    animation: live-pulse 1.5s infinite ease-in-out;
}
@keyframes live-pulse {
    0% { opacity: 1; box-shadow: 0 0 8px rgba(255, 0, 60, 0.8); }
    50% { opacity: 0.4; box-shadow: 0 0 2px rgba(255, 0, 60, 0.4); }
    100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 0, 60, 0.8); }
}
