* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f1419;
    --card: #1a2332;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #e7edf3;
    --text-muted: #8b949e;
    --error: #ef4444;
    --success: #22c55e;
    --scrollbar-size: 6px;
    --scrollbar-thumb: rgba(113, 120, 127, 0.42);
    --scrollbar-thumb-hover: rgba(183, 189, 198, 0.62);
    --scrollbar-track: transparent;
    --lobby-header-h: 4.35rem;
    --lobby-footer-h: 9.5rem;
    --home-scroll-pane-h: calc(100dvh - var(--lobby-header-h));
    --tvt-btn-radius: 5px;
}

/* Blago zaobljeni gumbi — pill/kružne kontrole zadržavaju svoj radius */
button:not(.home-hero-dot):not(.profile-avatar-opt):not(.home-hero-nav):not(.home-carousel-btn):not(.home-scroll-cue):not(.top-nav-link),
input[type="submit"],
input[type="button"],
.btn,
.btn-icon,
.tab,
.home-cta,
.lobby-menu-toggle,
.leaderboard-page-btn,
.results-page-btn,
.leaderboard-filter,
.results-filter-btn {
    border-radius: var(--tvt-btn-radius);
}

html {
    margin: 0;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

/* Tanak scrollbar (Binance-style) na scroll kontejnerima */
.tvt-scrollbar,
.lobby-main-scroll,
.lobby-screen.is-tournaments-scroll,
.lobby-dynamic-panel,
.home-scroll-root,
.trade-tournament-tab-pane,
.trade-tournament-card .tournament-detail-section,
.tournament-final-table-wrap,
.tournament-final-overlay,
.buy-in-overlay,
.login-history-wrap,
.chart-panel-positions,
.trading-chat-messages,
.positions-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.tvt-scrollbar::-webkit-scrollbar,
.lobby-main-scroll::-webkit-scrollbar,
.lobby-screen.is-tournaments-scroll::-webkit-scrollbar,
.lobby-dynamic-panel::-webkit-scrollbar,
.home-scroll-root::-webkit-scrollbar,
.trade-tournament-tab-pane::-webkit-scrollbar,
.tournament-final-table-wrap::-webkit-scrollbar,
.tournament-final-overlay::-webkit-scrollbar,
.trading-chat-messages::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

.tvt-scrollbar::-webkit-scrollbar-thumb,
.lobby-main-scroll::-webkit-scrollbar-thumb,
.lobby-screen.is-tournaments-scroll::-webkit-scrollbar-thumb,
.lobby-dynamic-panel::-webkit-scrollbar-thumb,
.home-scroll-root::-webkit-scrollbar-thumb,
.trade-tournament-tab-pane::-webkit-scrollbar-thumb,
.tournament-final-table-wrap::-webkit-scrollbar-thumb,
.tournament-final-overlay::-webkit-scrollbar-thumb,
.trading-chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.tvt-scrollbar::-webkit-scrollbar-thumb:hover,
.lobby-main-scroll::-webkit-scrollbar-thumb:hover,
.lobby-screen.is-tournaments-scroll::-webkit-scrollbar-thumb:hover,
.lobby-dynamic-panel::-webkit-scrollbar-thumb:hover,
.home-scroll-root::-webkit-scrollbar-thumb:hover,
.trade-tournament-tab-pane::-webkit-scrollbar-thumb:hover,
.tournament-final-table-wrap::-webkit-scrollbar-thumb:hover,
.tournament-final-overlay::-webkit-scrollbar-thumb:hover,
.trading-chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

html[data-theme="light"] {
    --bg: #f1f5f9;
    --card: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text: #0f172a;
    --text-muted: #64748b;
    --error: #dc2626;
    --success: #16a34a;
}

html[data-theme="light"] body {
    background-color: #e8eef5;
    background-image: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text);
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #040608;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.18) 0, transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.08) 0, transparent 22%),
        radial-gradient(circle at 75% 78%, rgba(96, 165, 250, 0.12) 0, transparent 24%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #0a0d12 0%, #030405 72%, #000000 100%);
    color: var(--text);
    min-height: 100vh;
}

body:not(.is-app-shell) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

body.is-app-shell {
    display: block;
    padding: 0;
    min-height: 100dvh;
}

.container {
    width: 100%;
    max-width: 420px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012)),
        linear-gradient(135deg, rgba(59, 130, 246, 0.06), transparent 45%),
        rgba(14, 18, 24, 0.94);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.35rem;
}

.site-logo {
    display: block;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-logo--login {
    max-height: 3.25rem;
    max-width: min(280px, 100%);
}

.site-logo--lobby {
    max-height: 2rem;
    max-width: 140px;
}

.site-logo--trading {
    max-height: 2rem;
    max-width: 140px;
    flex: 0 0 auto;
    margin: 0;
}

.trading-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.trading-screen-title {
    display: none;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s infinite;
}

.connection-status.connected .status-dot {
    background: var(--success);
}

.connection-status.error .status-dot {
    background: var(--error);
}

.connection-status.connecting .status-dot {
    background: #f59e0b;
}

.connection-status--floating {
    position: fixed;
    right: -8px;
    top: 12px;
    z-index: 9999;
    margin-bottom: 0;
    padding: 0.38rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(9, 12, 17, 0.86);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.connection-status--floating .status-text {
    display: none;
}

.connection-status--floating .status-dot {
    width: 10px;
    height: 10px;
}

/* Skriveno u UI; JS i dalje ažurira klasu/status — ukloni --ui-hidden za prikaz */
.connection-status--ui-hidden {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

@keyframes pulse {
    50% { opacity: 0.5; }
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.form h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-message {
    min-height: 1.25rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.form-message.error {
    color: var(--error);
}

.form-message.success {
    color: var(--success);
}

.btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--tvt-btn-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.logged-in-panel {
    text-align: center;
    padding: 1rem 0;
}

.logged-in-panel.hidden {
    display: none !important;
}

.user-info {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.hidden {
    display: none;
}

.btn-ghost {
    background: transparent !important;
    color: var(--text-muted);
    border: 1px dashed rgba(255,255,255,0.2);
    margin-top: 1rem;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.4);
}

/* Trading ekran */
.trading-screen {
    position: fixed;
    inset: 0;
    background-color: #040608;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.16) 0, transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(34, 197, 94, 0.07) 0, transparent 24%),
        radial-gradient(circle at 78% 78%, rgba(96, 165, 250, 0.1) 0, transparent 26%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #0a0d12 0%, #030405 72%, #000000 100%);
    box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.trading-screen.hidden {
    display: none !important;
}

.trading-screen .position-item strong,
.trading-screen .trading-info-left strong,
.trading-screen .info-chip strong,
.trading-screen .chart-live-price,
.trading-screen .trade-order-tab {
    color: #ffffff;
}

.trading-screen .position-meta,
.trading-screen .chart-tab {
    color: rgba(255, 255, 255, 0.88);
}

.trading-screen .chart-tab.active {
    color: var(--accent);
}

.trading-screen .chart-tab--tournament.active {
    color: #bbf7d0;
}

.trading-top-chrome {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        rgba(8, 10, 14, 0.9);
}

.trading-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.5rem 0.55rem;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.trading-info-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0 1.5rem 0.6rem;
    background: transparent;
    border-bottom: none;
}

.trading-top-slot--brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.trading-top-slot--actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.trading-top-slot--balance {
    flex-shrink: 0;
}

.trading-top-slot--tools {
    margin-left: auto;
}

.btn-icon--trade-close .btn-icon__short {
    display: none;
}

.btn-icon--trade-close .btn-icon__long {
    display: inline;
}

.trading-balance {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.trading-balance__dot {
    display: none;
}

.trading-balance__head {
    display: inline;
}

.trading-balance__label {
    display: none;
}

.trading-balance__amount {
    font: inherit;
    color: inherit;
}

.trading-balance__pnl {
    font-size: inherit;
}

.info-chip__trophy {
    width: 1rem;
    height: 1rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.info-chip--prize .info-chip__trophy {
    display: none;
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-back:hover {
    background: rgba(255,255,255,0.05);
}

.trading-header h1,
.trading-header .trading-screen-title {
    flex: 1;
    font-size: 1.25rem;
}

.guest-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trading-chat-toggle {
    margin-left: auto;
    min-width: 72px;
}

.trading-chat-panel {
    position: fixed;
    right: 1rem;
    bottom: 5.25rem;
    width: min(360px, calc(100% - 2rem));
    height: min(430px, calc(100vh - 8rem));
    z-index: 70;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    background: rgba(8, 12, 19, 0.96);
    box-shadow: 0 16px 36px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
}

.trading-chat-panel.hidden {
    display: none !important;
}

.trading-chat-panel--embedded {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    z-index: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.trading-chat-panel--embedded.trading-chat-panel--in-side .trading-chat-head {
    display: none;
}

.trade-tournament-chat-host,
.trading-side-pane--chat.is-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.trading-side-pane--chat:not(.is-active) {
    display: none;
}

.tab-pane--chat-mount.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.trading-side-rail-btn__badge,
.chart-tab__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1rem;
    text-align: center;
}

.trading-side-rail-btn {
    position: relative;
}

.chart-tab {
    position: relative;
}

.chart-tab__badge.hidden,
.trading-side-rail-btn__badge.hidden {
    display: none;
}

.mobile-trade-mode-toggle {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-trade-mode-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 3.1rem;
    padding: 0.28rem 0.45rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.mobile-trade-mode-btn__icon {
    width: 1.2rem;
    height: 1.2rem;
}

.mobile-trade-mode-btn__label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mobile-trade-mode-btn.is-active {
    background: rgba(34, 197, 94, 0.18);
    color: #ffffff;
}

.mobile-trade-mode-btn + .mobile-trade-mode-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.trade-tx-list--compact {
    padding: 0.2rem 0.1rem 0.45rem;
    gap: 0.15rem;
}

.trade-tx-row-compact {
    font-size: 0.66rem;
}

.trade-tx-row-compact__time {
    color: #94a3b8;
    font-weight: 500;
}

.trade-tx-row--new {
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
    animation: tradeTxRowFlash 1.2s ease-out 2;
}

@keyframes tradeTxRowFlash {
    0% { background: rgba(34, 197, 94, 0.34); }
    100% { background: rgba(34, 197, 94, 0.14); }
}

.trade-tx-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.trade-tx-page-btn {
    min-width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
}

.trade-tx-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.trading-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trading-chat-close {
    min-width: 34px;
    padding: 0.35rem 0.4rem;
}

.trading-chat-messages {
    flex: 1;
    overflow: auto;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trading-chat-empty {
    color: rgba(255,255,255,0.62);
    font-size: 0.84rem;
    margin-top: 0.2rem;
}

.trading-chat-msg {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    background: rgba(255,255,255,0.03);
}

.trading-chat-msg.is-own {
    border-color: rgba(34,197,94,0.45);
    background: rgba(34,197,94,0.1);
}

.trading-chat-msg-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.66);
    margin-bottom: 0.2rem;
}

.trading-chat-msg p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.trading-chat-compose {
    padding: 0.55rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.trading-chat-compose input {
    flex: 1;
    min-width: 0;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 0.5rem 0.55rem;
}

.trading-chat-emoji-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #f8fafc;
    cursor: pointer;
    flex: 0 0 auto;
    line-height: 1;
}

.trading-chat-compose button {
    border-radius: 9px;
    border: 1px solid rgba(134,239,172,0.6);
    background: rgba(34,197,94,0.18);
    color: #bbf7d0;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.trading-chat-emoji-picker {
    margin: 0.15rem 0.65rem 0.35rem;
    padding: 0.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.trading-chat-emoji-picker.hidden {
    display: none !important;
}

.trading-chat-emoji-group-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.58);
    margin-top: 0.05rem;
}

.trading-chat-emoji-group {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.25rem;
}

.trading-chat-emoji-item {
    border: 1px solid transparent;
    border-radius: 7px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.28rem 0.1rem;
}

.trading-chat-emoji-item:hover {
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.08);
}

.trading-chat-hint {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.52);
    padding: 0.35rem 0.65rem 0.5rem;
}

.trading-chat-fab-wrap {
    position: fixed;
    right: clamp(0.75rem, 2vw, 1.1rem);
    bottom: clamp(0.75rem, 2vw, 1.1rem);
    z-index: 75;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.trading-chat-fab-wrap.hidden {
    display: none !important;
}

.trading-chat-fab {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(134, 239, 172, 0.45);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.35), rgba(21, 128, 61, 0.28));
    color: #dcfce7;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.trading-chat-fab:hover,
.trading-chat-fab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(22, 101, 52, 0.35);
    outline: none;
}

.trading-chat-fab:active {
    transform: scale(0.96);
}

.trading-chat-fab-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(8, 12, 19, 0.95);
}

.trading-chat-fab-badge.hidden {
    display: none !important;
}

.trading-chat-fab-dismiss {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 12, 19, 0.88);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    line-height: 1;
    font-size: 0.95rem;
}

.trading-chat-fab-dismiss:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.tournament-entry-loader {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(34, 197, 94, 0.07) 0, transparent 42%),
        #000;
    opacity: 0;
    pointer-events: all;
}

body.tournament-entry-active {
    overflow: hidden;
}

.tournament-entry-loader.hidden {
    display: none !important;
}

.tournament-entry-loader.is-preparing {
    animation: tournamentLoaderFadeIn 0.4s ease forwards;
}

.tournament-entry-loader.is-preparing .tournament-entry-loader-inner {
    visibility: hidden;
    opacity: 0;
}

.tournament-entry-loader.is-animating {
    opacity: 1;
}

.tournament-entry-loader.is-animating .tournament-entry-loader-inner {
    visibility: visible;
    opacity: 1;
}

.tournament-entry-loader.is-exiting {
    animation: tournamentLoaderFadeOut 0.42s ease forwards;
}

.tournament-entry-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: min(420px, calc(100% - 2rem));
    text-align: center;
}

.loader-logo-stage {
    --loader-logo-w: min(200px, 58vw);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--loader-logo-w) * 1.2);
    min-height: calc(var(--loader-logo-w) * 0.42);
    margin-bottom: 0.05rem;
    overflow: visible;
    perspective: 900px;
    -webkit-perspective: 900px;
    perspective-origin: center center;
}

.loader-logo-glow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 0 transparent);
}

.loader-logo-spin {
    position: relative;
    width: var(--loader-logo-w);
    transform: rotateY(0deg);
    transform-origin: center center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.loader-logo-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.loader-logo-face--front {
    position: relative;
    transform: rotateY(0deg) translateZ(1px);
}

.loader-logo-face--back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg) translateZ(1px);
}

.loader-logo {
    display: block;
    width: var(--loader-logo-w);
    max-width: 100%;
    height: auto;
}

.loader-logo-shine {
    position: absolute;
    inset: -12% -18%;
    background: linear-gradient(
        108deg,
        transparent 30%,
        rgba(74, 222, 128, 0.12) 40%,
        rgba(187, 247, 208, 0.98) 50%,
        rgba(74, 222, 128, 0.12) 60%,
        transparent 70%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-140%) skewX(-8deg);
    filter: blur(0.4px);
}

.tournament-entry-loader.is-animating .loader-logo-shine {
    animation: tournamentLoaderShine 0.52s ease-out 1.45s forwards;
}

.tournament-entry-loader.is-animating .loader-logo-spin {
    animation: tournamentLoaderSpin 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tournament-entry-loader.is-animating .loader-logo-glow {
    animation: tournamentLoaderGlowHold 0.48s ease-out 1.45s forwards;
}

.loader-start-label {
    margin: 0.65rem 0 0;
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-size: clamp(0.95rem, 3vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #f8fafc;
    opacity: 0;
    transform: translateY(16px) scale(0.88);
    text-shadow: none;
}

.tournament-entry-loader.is-animating .loader-start-label {
    animation: tournamentLoaderStartPop 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) 1.58s forwards;
}

.loader-subtitle {
    margin: 0.28rem 0 0;
    max-width: min(360px, 88vw);
    text-align: center;
    color: rgba(203, 213, 225, 0.96);
    font-size: clamp(0.82rem, 2.5vw, 0.96rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.35;
    opacity: 0;
}

.tournament-entry-loader.is-animating .loader-subtitle:not(.hidden) {
    animation: tournamentLoaderSubtitleFade 0.42s ease 2.02s forwards;
}

@keyframes tournamentLoaderCardIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes tournamentLoaderCardOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.94) translateY(6px);
    }
}

@keyframes tournamentLoaderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tournamentLoaderFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes tournamentLoaderSpin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(720deg); }
}

@keyframes tournamentLoaderShine {
    0% {
        opacity: 0;
        transform: translateX(-140%) skewX(-8deg);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(140%) skewX(-8deg);
    }
}

@keyframes tournamentLoaderGlowHold {
    0% {
        filter: drop-shadow(0 0 0 transparent);
    }
    30% {
        filter:
            drop-shadow(0 0 22px rgba(74, 222, 128, 0.72))
            drop-shadow(0 0 42px rgba(34, 197, 94, 0.28));
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.34));
    }
}

@keyframes tournamentLoaderStartPop {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.88);
        text-shadow: none;
        color: #e2e8f0;
    }
    55% {
        opacity: 1;
        transform: translateY(-3px) scale(1.04);
        color: #ecfdf5;
        text-shadow:
            0 0 16px rgba(74, 222, 128, 0.65),
            0 0 32px rgba(34, 197, 94, 0.28);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        color: #f8fafc;
        text-shadow: 0 0 10px rgba(74, 222, 128, 0.22);
    }
}

@keyframes tournamentLoaderSubtitleFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tournament-entry-loader.is-animating {
        animation: tournamentLoaderFadeIn 0.35s ease forwards;
    }
    .tournament-entry-loader.is-animating .loader-logo-spin {
        animation: tournamentLoaderSpin 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    .tournament-entry-loader.is-animating .loader-logo-glow {
        animation: tournamentLoaderGlowHold 0.4s ease-out 1.75s forwards;
    }
    .tournament-entry-loader.is-animating .loader-logo-shine {
        animation: tournamentLoaderShine 0.45s ease-out 1.75s forwards;
    }
    .tournament-entry-loader.is-animating .loader-start-label {
        animation: tournamentLoaderStartPop 0.38s ease 1.88s forwards;
    }
    .tournament-entry-loader.is-animating .loader-subtitle:not(.hidden) {
        animation: tournamentLoaderSubtitleFade 0.32s ease 2.28s forwards;
    }
}

.trading-info-left {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    min-width: 0;
}

.trading-info-left strong {
    font-size: 0.95rem;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trading-info-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.trading-top-slot--chips {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .trading-top-slot--tools,
    .mobile-trade-mode-toggle,
    .trading-top-slot--mode-toggle {
        display: none !important;
    }
    .trading-top-row2-meta {
        display: contents;
    }
    .trading-balance__dot,
    .trading-balance__label,
    .trading-balance__pnl {
        display: none !important;
    }
    .trading-balance__head {
        display: inline;
    }
    .trading-balance__amount {
        font: inherit;
        color: inherit;
    }
    .info-chip--prize .info-chip__trophy {
        display: none;
    }
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    max-width: 100%;
}

.info-chip-label {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.info-chip strong {
    font-size: 0.76rem;
    color: #e2e8f0;
    white-space: nowrap;
}

.trading-info-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.trading-info-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.trade-info-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(2, 6, 14, 0.72);
    color: #e2e8f0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.trade-info-tool-btn.hidden {
    display: none !important;
}

.trade-info-tool-btn__icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.trade-info-tool-btn:hover {
    border-color: rgba(148,163,184,0.45);
    background: rgba(30, 41, 59, 0.65);
}

.trade-info-tool-btn.is-active {
    border-color: rgba(59,130,246,0.55);
    background: rgba(37, 99, 235, 0.18);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 6px 16px rgba(0,0,0,0.25);
}

.trade-info-tool-btn--chart.is-active {
    border-color: rgba(74,222,128,0.5);
    background: rgba(34,197,94,0.14);
    box-shadow: 0 0 0 1px rgba(74,222,128,0.18), 0 6px 16px rgba(0,0,0,0.25);
}

.trade-info-tool-btn--rank.is-active {
    border-color: rgba(251,191,36,0.5);
    background: rgba(245,158,11,0.14);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.18), 0 6px 16px rgba(0,0,0,0.25);
}

.info-chip--prize {
    border-color: rgba(251,191,36,0.35);
    background: rgba(245,158,11,0.08);
}

.info-chip--prize strong {
    color: #fcd34d;
    font-weight: 800;
}

.info-chip--status {
    padding: 0.24rem 0.55rem;
}

.info-chip--live {
    border-color: rgba(74,222,128,0.55);
    background: rgba(34,197,94,0.2);
    box-shadow: 0 0 12px rgba(34,197,94,0.22);
}

.info-chip--live strong {
    color: #4ade80;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.info-chip--soon {
    border-color: rgba(96,165,250,0.4);
    background: rgba(59,130,246,0.12);
}

.info-chip--soon strong {
    color: #93c5fd;
}

.info-chip--ended {
    border-color: rgba(148,163,184,0.35);
    background: rgba(100,116,139,0.12);
}

.info-chip--ended strong {
    color: #cbd5e1;
}

.info-chip--detail {
    padding: 0.2rem 0.45rem;
}

.info-chip--detail .info-chip-label {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}

.info-chip--detail strong {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.info-chip--alert {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.28);
}

.info-chip--alert strong {
    color: #fecaca;
}

.info-chip--alert[title] {
    cursor: help;
}

.trading-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: 0.15rem 0.25rem 0.35rem;
    gap: 0.35rem;
}

.trading-layout-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden;
    position: relative;
    --trading-side-panel-width: 280px;
}

.trading-side-rail {
    flex: 0 0 48px;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.35rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006)),
        rgba(8, 12, 18, 0.96);
}

.trading-side-rail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}

.trading-side-rail-btn__icon {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.trading-side-rail-btn:hover {
    border-color: rgba(148,163,184,0.45);
    background: rgba(30, 41, 59, 0.75);
    color: #e2e8f0;
}

.trading-side-rail-btn.is-active {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 6px 16px rgba(0,0,0,0.25);
}

.trading-side-panel {
    flex: 0 0 var(--trading-side-panel-width);
    width: var(--trading-side-panel-width);
    min-width: 0;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(0, 0, 0, 0.12)),
        rgba(10, 14, 18, 0.96);
    box-shadow: 8px 0 24px rgba(0,0,0,0.22);
    overflow: hidden;
}

.trading-side-panel.is-closed {
    flex-basis: 0;
    width: 0;
    border-right: none;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
}

.trading-side-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.trading-side-panel__title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86efac;
}

.trading-side-panel__close {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    width: 1.65rem;
    height: 1.65rem;
    cursor: pointer;
    line-height: 1;
    font-size: 1rem;
}

.trading-side-panel__close:hover {
    border-color: rgba(248,113,113,0.45);
    color: #fecaca;
}

.trading-side-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.trading-side-pane {
    display: none;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem 0.4rem 0.5rem;
}

.trading-side-pane.is-active {
    display: flex;
    flex-direction: column;
}

.trading-side-resize-handle {
    flex: 0 0 6px;
    width: 6px;
    cursor: col-resize;
    background: transparent;
    position: relative;
    touch-action: none;
}

.trading-side-resize-handle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    transition: background 0.15s;
}

.trading-side-resize-handle:hover::after,
.trading-side-resize-handle.is-dragging::after {
    background: rgba(34, 197, 94, 0.55);
}

.trading-layout-main.trading-side-panel-closed .trading-side-resize-handle {
    display: none;
}

.trading-side-panel .trade-tournament-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.trading-side-panel .trade-tournament-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.trading-side-panel .trade-tournament-card .tournament-detail-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.trading-side-panel .trade-tournament-card .leaderboard-list,
.trading-side-panel .trade-tournament-card .participant-list.leaderboard-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.trading-side-panel .trade-tournament-transactions {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.trading-side-panel .trade-tx-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.trading-side-panel .trade-tournament-card {
    padding: 0.5rem 0.45rem 0.65rem;
}

.trading-side-panel .trade-leaderboard-controls {
    margin-bottom: 0.35rem;
    gap: 0.35rem;
}

.trading-side-panel .participant-list {
    border-radius: 8px;
}

.trading-side-panel .leaderboard-row--trade-aside.leaderboard-row,
.trading-side-panel .participant-row.leaderboard-row--trade-aside {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.12rem 0.35rem;
    padding: 0.32rem 0.4rem;
    font-size: 0.7rem;
    flex-wrap: nowrap;
}

.trading-side-panel .leaderboard-row--trade-aside .participant-rank {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 1.35rem;
    font-size: 0.64rem;
    padding: 0;
}

.trading-side-panel .leaderboard-row--trade-aside .participant-name {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    min-width: 0;
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-self: start;
    text-align: left;
}

.trading-side-panel .leaderboard-row--trade-aside .leaderboard-equity-tokens {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    font-size: 0.64rem;
    font-weight: 600;
    white-space: nowrap;
    justify-self: end;
    text-align: right;
}

.trading-side-panel .leaderboard-row--trade-aside .leaderboard-metric {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    justify-self: start;
    text-align: left;
    font-size: 0.62rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trading-side-panel .leaderboard-row--trade-aside .leaderboard-prize-preview {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.6rem;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.trading-side-panel .leaderboard-row--trade-aside > span:nth-child(n+3) {
    justify-self: auto;
}

.trade-leaderboard-aside {
    flex: 0 0 clamp(200px, 24vw, 260px);
    min-width: 0;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(0, 0, 0, 0.15)),
        rgba(10, 14, 18, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.trade-leaderboard-aside .trade-tournament-main-title {
    color: #86efac;
}

.trade-tournament-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.trade-tournament-tab {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.48rem 0.55rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.trade-tournament-tab:hover {
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(30, 41, 59, 0.75);
    color: #e2e8f0;
}

.trade-tournament-tab:active {
    transform: translateY(1px);
}

.trade-tournament-tab:focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.7);
    outline-offset: 1px;
}

.trade-tournament-tab.is-active {
    border-color: rgba(34, 197, 94, 0.55);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(21, 128, 61, 0.2));
    color: #dcfce7;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28), 0 8px 20px rgba(22, 101, 52, 0.24);
}

.chart-panel {
    flex: 1 1 auto;
    padding: 0.25rem 0.35rem;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    border-radius: 12px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.chart-split {
    --chart-main-height: 340px;
    --chart-split-handle-size: 8px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-split-main {
    position: relative;
    flex: 0 0 auto;
    height: var(--chart-main-height);
    min-height: 120px;
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-split-handle {
    flex: 0 0 var(--chart-split-handle-size);
    height: var(--chart-split-handle-size);
    min-height: var(--chart-split-handle-size);
    cursor: row-resize;
    touch-action: none;
    user-select: none;
    background: rgba(255, 255, 255, 0.06);
    border: solid rgba(255, 255, 255, 0.1);
    border-width: 1px 0;
    position: relative;
    z-index: 2;
}

.chart-split-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.45);
    pointer-events: none;
}

.chart-split-handle:hover,
.chart-split-handle:focus-visible {
    background: rgba(59, 130, 246, 0.12);
}

.chart-split-handle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: -1px;
}

.chart-split-bottom {
    flex: 1 1 auto;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
        rgba(17, 21, 28, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.chart-toolbar-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.chart-pair-select {
    min-width: 7rem;
    padding: 0.4rem 0.65rem;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.chart-pair-select option {
    background: #000000;
    color: #ffffff;
}

.chart-pair-select:focus {
    outline: none;
    border-color: var(--accent);
}

.chart-live-quote {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.chart-live-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.chart-live-change {
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.chart-live-change.positive {
    color: var(--success);
}

.chart-live-change.negative {
    color: var(--error);
}

.trading-screen.chart-limit-pick-price .chart-live-quote {
    cursor: pointer;
}

.trading-screen.chart-limit-pick-price .chart-live-quote:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.08);
}

.chart-toolbar-stats {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

.chart-toolbar-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.08rem;
    min-width: 4.5rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-toolbar-stat__label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.1;
}

.chart-toolbar-stat__value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    white-space: nowrap;
}

.chart-toolbar-stat__value--balance {
    color: #ffffff;
}

.trading-screen .chart-toolbar-stat__value--balance-over { color: #4ade80; }
.trading-screen .chart-toolbar-stat__value--balance-exact { color: #ffffff; }
.trading-screen .chart-toolbar-stat__value--balance-under { color: #f87171; }

.trading-screen .chart-toolbar-stat__value--rank-prize { color: #4ade80; }
.trading-screen .chart-toolbar-stat__value--rank-out { color: #f87171; }

.chart-toolbar-stat--prize .chart-toolbar-stat__label {
    color: #86efac;
}

.trading-screen .chart-toolbar-stat__value--prize {
    color: #4ade80;
}

.trading-screen .chart-toolbar-stat__value--pnl.pnl-positive { color: #86efac; }
.trading-screen .chart-toolbar-stat__value--pnl.pnl-negative { color: #fca5a5; }
.trading-screen .chart-toolbar-stat__value--pnl.pnl-neutral { color: #ffffff; }

@media (min-width: 901px) {
    .trading-screen.is-tournament-active .trading-top-slot--balance {
        display: none;
    }
}

.chart-container {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 200px;
    height: auto;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)),
        rgba(17, 21, 28, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
}

.chart-container .tradingview-widget-container {
    min-height: 200px;
}

.ui-ff-hidden {
    display: none !important;
}

.chart-leaderboard-overlay {
    position: absolute;
    left: auto;
    top: auto;
    z-index: 18;
    width: min(280px, 38vw);
    max-height: calc(100% - 0.9rem);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(2,6,14,0.82), rgba(2,6,14,0.42)),
        rgba(2, 6, 14, 0.55);
    box-shadow: 0 16px 30px rgba(0,0,0,0.36);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.chart-leaderboard-overlay.is-dragging {
    opacity: 0.92;
    cursor: grabbing;
}

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

.chart-leaderboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #86efac;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    cursor: grab;
    user-select: none;
}

.chart-leaderboard-close {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.chart-leaderboard-close:hover {
    border-color: rgba(248,113,113,0.5);
    color: #fecaca;
}

.chart-leaderboard-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(134,239,172,0.45);
    border-radius: 999px;
    background: rgba(2, 6, 14, 0.72);
    color: #bbf7d0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22), 0 0 16px rgba(34,197,94,0.14);
    backdrop-filter: blur(5px);
    padding: 0.4rem 0.58rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.chart-leaderboard-show.hidden {
    display: none !important;
}

.chart-leaderboard-show:hover {
    background: rgba(34,197,94,0.16);
}

.chart-leaderboard-show[aria-pressed="true"] {
    border-color: rgba(248,113,113,0.4);
    color: #fecaca;
}

.chart-leaderboard-list {
    display: grid;
    gap: 1px;
}

.chart-leaderboard-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    border: 0;
    border-left: 3px solid rgba(148,163,184,0.5);
    background: rgba(15, 23, 42, 0.32);
    color: #f8fafc;
    padding: 0.34rem 0.48rem 0.34rem 0.38rem;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.chart-leaderboard-row:nth-child(1) { border-left-color: #fbbf24; }
.chart-leaderboard-row:nth-child(2) { border-left-color: #93c5fd; }
.chart-leaderboard-row:nth-child(3) { border-left-color: #fb923c; }

.chart-leaderboard-row.is-self {
    background: rgba(34, 197, 94, 0.18);
}

.chart-leaderboard-rank {
    font-size: 0.76rem;
    font-weight: 900;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.chart-leaderboard-name.results-player-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.chart-leaderboard-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 700;
}

.chart-leaderboard-gap {
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.chart-leaderboard-overlay.is-maximized {
    width: min(420px, 52vw);
    max-height: min(88%, calc(100% - 3rem));
}

.chart-leaderboard-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chart-leaderboard-maximize {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-size: 0.72rem;
}

.chart-leaderboard-maximize:hover {
    border-color: rgba(134,239,172,0.45);
    color: #bbf7d0;
}

.chart-leaderboard-body {
    max-height: 220px;
    overflow: auto;
}

.chart-leaderboard-overlay.is-maximized .chart-leaderboard-body {
    max-height: min(52vh, 480px);
}

.chart-leaderboard-orders {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.35rem 0.45rem 0.5rem;
    max-height: 140px;
    overflow: auto;
}

.chart-leaderboard-overlay.is-maximized .chart-leaderboard-orders {
    max-height: min(36vh, 320px);
}

.chart-leaderboard-orders-title {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.35rem;
}

.chart-leaderboard-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.4rem;
    font-size: 0.68rem;
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chart-leaderboard-order:last-child {
    border-bottom: 0;
}

.chart-leaderboard-order-trader {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-leaderboard-order-meta {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.chart-leaderboard-order-side {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.62rem;
}

.chart-leaderboard-order-side--buy {
    color: #4ade80;
}

.chart-leaderboard-order-side--sell {
    color: #f87171;
}

.tournament-closing-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: min(38vh, 280px);
    z-index: 14;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.65rem;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}

.chart-panel.chart-panel--chart-hidden .tournament-closing-overlay {
    height: auto;
    top: 0.35rem;
}

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

.tournament-closing-overlay__inner {
    text-align: center;
    padding: 0;
}

.tournament-closing-overlay__label {
    display: none;
}

.tournament-closing-overlay__count {
    margin: 0;
    font-size: clamp(3.25rem, 13vw, 5.75rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fef08a;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 1),
        0 0 22px rgba(0, 0, 0, 0.92),
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 36px rgba(250, 204, 21, 0.28);
}

.tournament-closing-overlay.is-end .tournament-closing-overlay__count {
    color: #fca5a5;
    font-size: clamp(2.4rem, 9vw, 4.25rem);
    letter-spacing: 0.06em;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 1),
        0 0 22px rgba(0, 0, 0, 0.92),
        0 0 30px rgba(248, 113, 113, 0.35);
}

.chart-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 999px;
    background: rgba(2, 6, 14, 0.72);
    color: #bfdbfe;
    padding: 0.34rem 0.55rem;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.chart-mobile-toggle:hover {
    background: rgba(59, 130, 246, 0.16);
}

.chart-mobile-toggle[aria-pressed="true"] {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.settings-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 1rem;
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .settings-wallet-actions {
        grid-template-columns: 1fr;
    }
}

.settings-wallet-action {
    display: grid;
    grid-template-rows: auto auto 44px;
    gap: 0.45rem;
}

.settings-wallet-action .btn {
    align-self: stretch;
    height: 44px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#settingsPanelWallet .login-history-wrap {
    max-height: min(32vh, 260px);
    overflow: auto;
}

.settings-tournament-history-table th,
.settings-tournament-history-table td {
    font-size: 0.78rem;
}

.wallet-tx-amount--pos {
    color: #4ade80;
    font-weight: 700;
}

.wallet-tx-amount--neg {
    color: #f87171;
    font-weight: 700;
}

.chart-split-bottom .chart-bottom-tabs {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bottom-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(17, 21, 28, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
}

.chart-tab {
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.chart-tab:hover {
    color: var(--text);
}

.chart-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.chart-tab--tournament {
    color: #86efac;
}

@media (min-width: 769px) {
    .chart-tab--tournament {
        display: none;
    }
    .trading-layout-main:not(.trading-side-desktop-ready) .trading-side-rail,
    .trading-layout-main:not(.trading-side-desktop-ready) .trading-side-panel,
    .trading-layout-main:not(.trading-side-desktop-ready) .trading-side-resize-handle {
        display: none;
    }
}

.chart-tab--tournament.active {
    color: #bbf7d0;
    border-bottom-color: #22c55e;
}

.chart-tabs-content {
    flex: 1 1 auto;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)),
        rgba(17, 21, 28, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    padding: 1rem;
}

.tab-pane.active {
    display: block;
}

.history-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem;
}

.tpsl-section {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.25rem;
}

.tpsl-section.hidden {
    display: none;
}

.tpsl-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tpsl-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.tpsl-row-pair {
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.tpsl-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tpsl-cell label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tpsl-row label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-control {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.price-control .order-input {
    flex: 1;
    border: none;
    border-radius: 0;
}

.price-arrows {
    display: flex;
    flex-direction: column;
}

.price-arr {
    padding: 0.15rem 0.4rem;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.price-arr:hover {
    background: rgba(255,255,255,0.15);
    color: var(--text);
}

.price-arr.up { border-bottom: 1px solid rgba(255,255,255,0.1); }
.price-arr.down { }

.tpsl-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tpsl-amount input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.tpsl-amount input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.tpsl-amount-val {
    min-width: 2rem;
    font-size: 0.85rem;
    color: var(--text);
    text-align: right;
}

.trade-panel {
    flex: 1 1 320px;
    width: min(520px, 100%);
    min-width: 0;
    max-width: 520px;
    padding: 1rem;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012)),
        rgba(14, 18, 24, 0.95);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.trade-panel--locked {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.trade-order-shared {
    padding: 0.35rem 0 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.35rem;
}

.trade-order-shared-inputs {
    gap: 0.45rem;
}

.order-inputs { display: flex; flex-direction: column; gap: 0.6rem; }
.order-row { display: flex; flex-direction: column; gap: 0.25rem; }
.order-row label { font-size: 0.75rem; color: var(--text-muted); }
.order-input {
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
}
.order-input:focus {
    outline: none;
    border-color: var(--accent);
}
.order-input[readonly] {
    color: #cbd5e1;
    background: rgba(255,255,255,0.05);
}
.order-input:disabled {
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.35);
    cursor: not-allowed;
    opacity: 0.88;
}
.order-type-select {
    cursor: pointer;
    font-weight: 600;
    background: #000000;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.order-type-select option {
    background: #000000;
    color: #ffffff;
}

.trade-panel--attention {
    animation: trade-panel-flash 1.35s ease;
}

@keyframes trade-panel-flash {
    0%, 100% {
        box-shadow: none;
    }
    20%, 60% {
        box-shadow:
            0 0 0 2px rgba(59, 130, 246, 0.9),
            0 0 28px rgba(59, 130, 246, 0.35);
    }
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.position-card {
    padding: 0.75rem 0.85rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.position-card--long {
    border-left: 3px solid rgba(74, 222, 128, 0.75);
}

.position-card--short {
    border-left: 3px solid rgba(248, 113, 113, 0.75);
}

.position-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem 0.75rem;
    align-items: start;
}

.position-side-badge {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.position-side-badge--long {
    background: rgba(34, 197, 94, 0.22);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.45);
}

.position-side-badge--short {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.position-card__title {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.position-card__title strong {
    font-size: 0.92rem;
    color: #f8fafc;
}

.position-card__lev {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.position-card__pnl {
    text-align: right;
    min-width: 6.5rem;
}

.position-card__pnl-label {
    display: block;
    font-size: 0.62rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.position-card__pnl-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.position-card__roe {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.position-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
}

.position-card__cell {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.position-card__cell span {
    font-size: 0.64rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.position-card__cell strong {
    font-size: 0.82rem;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}

.position-card__close {
    align-self: flex-start;
}

@media (min-width: 720px) {
    .position-card__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .position-card__head {
        grid-template-columns: auto 1fr;
    }

    .position-card__pnl {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.35rem 0.65rem;
    }

    .position-card__pnl-label {
        width: 100%;
    }
}
.amount-slider input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.amount-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}
.slider-meta {
    margin-top: -0.2rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.slider-meta-main {
    color: var(--text);
    font-weight: 600;
}
.slider-meta-sub {
    color: var(--text-muted);
}
.slider-meta-close {
    color: #93c5fd;
}
.slider-meta-reverse {
    color: #fdba74;
}
.slider-meta-open {
    color: #86efac;
}
.trade-tournament-limits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}
.trade-tournament-limit {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.trade-tournament-limit-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.trade-tournament-limit-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trade-tournament-max-lev {
    color: #86efac;
}
.order-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.trade-token-sizing {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.token-preset-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}
.leverage-preset-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem;
}
.token-preset-btn,
.leverage-preset-btn {
    padding: 0.42rem 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.token-preset-btn:hover,
.leverage-preset-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}
.token-preset-btn.active {
    border-color: rgba(74, 222, 128, 0.65);
    background: rgba(74, 222, 128, 0.12);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
    color: #bbf7d0;
}
.leverage-preset-btn.active {
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(248, 113, 113, 0.14);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.28);
    color: #fecaca;
}
.token-size-slider-wrap,
.leverage-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.token-size-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.token-size-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.55), rgba(74, 222, 128, 0.55));
    outline: none;
}
.token-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4ade80;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.45);
}
.leverage-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.15rem;
}
.leverage-risk-legend {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.leverage-risk-legend--low { color: #86efac; }
.leverage-risk-legend--mid { color: #fde047; text-align: center; }
.leverage-risk-legend--high { color: #fca5a5; text-align: right; }
.leverage-risk-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #22c55e 18%, #eab308 45%, #f97316 70%, #ef4444 100%);
    outline: none;
}
.leverage-risk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid rgba(15, 23, 42, 0.85);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.leverage-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0 0.05rem;
}
.leverage-current {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.leverage-current strong {
    color: var(--text);
    font-size: 0.92rem;
}
.trade-order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}
.trade-order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.trade-order-summary-row strong {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
}
.order-row--qty-hidden,
.slider-meta--hidden {
    display: none !important;
}
.order-options { display: flex; gap: 1rem; }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}
.balance-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.balance-info strong { color: var(--text); }

/* Trading: ljestvica u lijevom stupcu (aside) */
.trade-leaderboard-aside .trade-tournament-inner {
    flex: 1 1 auto;
    min-height: 0;
}

.trade-tournament-sidebar {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.trade-tournament-main-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(248, 250, 252, 0.9);
}

.trade-tournament-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.trade-tournament-tab-pane {
    display: none;
}

.trade-tournament-tab-pane.is-active {
    display: block;
}

.trade-tournament-card {
    padding: 0.85rem 0.95rem 1rem;
}

.trade-tournament-card .tournament-detail-title {
    font-size: 1.02rem;
}

.trade-tournament-inline-header {
    margin-bottom: 0.5rem;
}

.trade-tournament-card .tournament-detail-desc {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
}

.trade-tournament-card .tournament-detail-stats {
    gap: 0.45rem 0.7rem;
    margin-bottom: 0.75rem;
}

.trade-tournament-card .detail-stat {
    padding: 0.4rem 0.5rem;
}

.trade-tournament-card .detail-stat strong {
    font-size: 0.88rem;
}

.trade-tournament-card .tournament-detail-times {
    margin-bottom: 0.75rem;
    font-size: 0.74rem;
}

.trade-tournament-rebuy-wrap {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}
.trade-tournament-rebuy-wrap--hint {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(251, 146, 60, 0.08);
}
.trade-tournament-rebuy-wrap .detail-section-title {
    margin-bottom: 0.35rem;
}
.trade-tournament-rebuy-desc {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
}
.trade-tournament-rebuy-wrap .btn-tournament-rebuy {
    width: 100%;
    justify-content: center;
}

.trade-tournament-card .tournament-detail-section {
    margin-bottom: 0.8rem;
}

.trade-tournament-card .tournament-detail-section:last-child {
    margin-bottom: 0;
}

.trade-tournament-card .participant-list {
    max-height: 160px;
}

.trade-tournament-card .leaderboard-list {
    max-height: min(52vh, 360px);
}

.trade-leaderboard-aside .trade-tournament-card .leaderboard-list {
    max-height: min(58vh, 420px);
}

.leaderboard-row[data-tournament-trader-activity] {
    cursor: pointer;
}

.leaderboard-row[data-tournament-trader-activity]:hover {
    background: rgba(59, 130, 246, 0.16);
}

.leaderboard-row--activity-selected {
    outline: 1px solid rgba(96, 165, 250, 0.55);
    background: rgba(59, 130, 246, 0.2);
}

.trade-leaderboard-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    margin: 0 0 0.5rem;
}

.trade-leaderboard-search,
.trade-leaderboard-sort {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(2, 6, 14, 0.55);
    color: #e2e8f0;
    padding: 0.42rem 0.55rem;
    font-size: 0.76rem;
}

.trader-activity-panel {
    margin-top: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(2, 6, 14, 0.36);
    padding: 0.45rem 0.5rem;
}

.trader-activity-panel .detail-section-title {
    font-size: 0.72rem;
    margin: 0 0 0.2rem;
}

.trader-activity-hint {
    font-size: 0.58rem;
    margin: 0 0 0.22rem;
    line-height: 1.2;
}

.trader-activity-panel--empty {
    padding: 0.3rem 0.45rem;
}

.trader-activity-list {
    display: grid;
    gap: 0.12rem;
    max-height: min(44vh, 340px);
    overflow: auto;
    margin: 0.22rem 0 0;
    padding: 0;
    list-style: none;
}

.trader-activity-row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.28rem;
    align-items: center;
    padding: 0.16rem 0.3rem;
    border-left: 2px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.35);
    color: #cbd5e1;
    font-size: 0.6rem;
    line-height: 1.15;
}

.trader-activity-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trader-activity-row strong {
    color: #f8fafc;
    font-size: inherit;
    font-weight: 700;
}

.trader-activity-row.is-buy {
    border-left-color: #22c55e;
}

.trader-activity-row.is-sell {
    border-left-color: #f97316;
}

.trader-activity-row.is-payment {
    border-left-color: #60a5fa;
}

.trader-activity-time {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    font-size: 0.58rem;
    white-space: nowrap;
}

.trading-side-panel .trader-activity-panel {
    margin-top: 0.3rem;
    padding: 0.32rem 0.38rem;
}

.trading-side-panel .trader-activity-list {
    gap: 0.08rem;
    max-height: min(34vh, 260px);
}

.trading-side-panel .trader-activity-row {
    grid-template-columns: 3.85rem minmax(0, 1fr) !important;
    gap: 0.2rem;
    padding: 0.12rem 0.26rem;
    font-size: 0.56rem;
}

.trading-side-panel .trader-activity-time {
    font-size: 0.54rem;
}

.trading-side-panel .trader-activity-hint {
    display: none;
}

.leaderboard-row--podium-1 .participant-rank {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.35), transparent);
    border-radius: 4px;
    padding: 0.08rem 0.25rem;
}

.leaderboard-row--podium-2 .participant-rank {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), transparent);
    border-radius: 4px;
    padding: 0.08rem 0.25rem;
}

.leaderboard-row--podium-3 .participant-rank {
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.32), transparent);
    border-radius: 4px;
    padding: 0.08rem 0.25rem;
}

.leaderboard-prize-preview {
    font-size: 0.68rem;
    font-weight: 600;
    color: #86efac;
    white-space: nowrap;
}

.results-prize-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fb923c;
    margin-left: 0.25rem;
}

.leaderboard-row {
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.leaderboard-row .participant-name {
    flex: 1;
    min-width: 0;
}

.leaderboard-metric {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    min-width: 3.5rem;
    text-align: right;
}

.leaderboard-equity-tokens {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f1f5f9;
    min-width: 4rem;
    text-align: right;
}

.leaderboard-row--trade-aside.leaderboard-row {
    gap: 0.2rem 0.35rem;
}

.trade-tournament-card .leaderboard-row--trade-aside .participant-name {
    flex: 1 1 56px;
    min-width: 0;
    font-size: 0.72rem;
}

.trade-tournament-card .leaderboard-row--trade-aside .participant-rank {
    min-width: 1.5rem;
    font-size: 0.66rem;
}

.trade-tournament-card .leaderboard-row--trade-aside.leaderboard-row {
    padding: 0.32rem 0.45rem;
}

.trade-order-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.trade-order-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.55rem 0.45rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: clamp(0.7rem, 2.8vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.trade-order-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.trade-order-tab.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border-bottom-color: var(--accent);
}

.trade-order-pane {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
}

.trade-order-pane.active {
    display: flex;
}

.close-leg-card {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.close-leg-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.close-leg-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.close-leg-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.close-leg-card .btn-trade:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.trade-close-sizing {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.15rem;
}
.close-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}
.close-preset-btn {
    padding: 0.42rem 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.close-preset-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}
.close-preset-btn.active {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(96, 165, 250, 0.14);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}
.close-percent-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.close-percent-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0.55));
    outline: none;
}
.close-percent-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}
.trade-close-summary {
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--text-muted);
    padding: 0.35rem 0.1rem 0;
}
.trade-close-summary strong {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.trade-buttons {
    display: flex;
    gap: 0.75rem;
}

.hedge-mode-hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #94a3b8;
}

.btn-trade {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn-trade:hover {
    opacity: 0.9;
}

.btn-trade:active {
    transform: scale(0.97);
    opacity: 0.88;
    filter: brightness(0.92);
}

.btn-long:active {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.22);
}

.btn-short:active {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.22);
}

.btn-trade.active {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.16), 0 0 18px rgba(59, 130, 246, 0.16);
    transform: translateY(-1px);
}

.btn-long {
    background: var(--success);
    color: white;
}

.btn-short {
    background: var(--error);
    color: white;
}

.positions-section h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.position-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.position-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.position-body {
    flex: 1;
    min-width: 0;
}

.position-meta {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.protection-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.protection-label {
    color: var(--text-muted);
}
.protection-empty {
    color: rgba(255,255,255,0.55);
}
.protection-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
}
.protection-chip-tp {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.24);
}
.protection-chip-sl {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.24);
}
.protection-actions {
    margin-top: 0.45rem;
}
.protection-editor {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: auto 1fr 90px;
    gap: 0.45rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
}
.protection-input {
    min-width: 0;
}
.btn-edit-protection,
.btn-save-protection {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.24);
}

.history-card.history-card--with-actions .history-content {
    flex: 1;
    min-width: 0;
    width: auto;
}

.btn-cancel-pending-order {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fecaca;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.35);
}

.btn-cancel-pending-order:hover {
    background: rgba(153, 27, 27, 0.45);
}

.history-card {
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(0,0,0,0.24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(255,255,255,0.02),
        0 0 18px rgba(59, 130, 246, 0.08);
}

.history-content {
    width: 100%;
}

.history-topline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid rgba(255,255,255,0.08);
}

.badge-buy {
    color: #b7f7c9;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.22);
}

.badge-sell {
    color: #ffc2c2;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.22);
}

.badge-status {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}
.badge-pending {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.28);
}
.badge-triggered {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.28);
}
.badge-limit {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.28);
}
.badge-stop {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.28);
}
.badge-market {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.24);
}

.pnl-positive {
    color: var(--success);
}

.pnl-negative {
    color: var(--error);
}

.pnl-neutral {
    color: var(--text);
}

.position-item.long {
    border-left: 3px solid var(--success);
}

.position-item.short {
    border-left: 3px solid var(--error);
}

.btn-close-pos {
    flex-shrink: 0;
    align-self: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.btn-close-pos:hover {
    background: rgba(255,255,255,0.15);
}

/* Lobby ekran */
.lobby-screen {
    --home-green: #4ade80;
    --home-green-mid: #86efac;
    --lobby-footer-h: 9.5rem;
    --home-scroll-pane-h: calc(100dvh - var(--lobby-header-h));
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000000;
    background-image: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    z-index: 90;
}

.lobby-screen.is-tournaments-scroll {
    overflow-x: hidden;
    overflow-y: auto;
}

.lobby-main-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lobby-screen.is-home-scroll .lobby-main-scroll {
    scroll-snap-type: none;
    scroll-behavior: smooth;
}

.lobby-screen.is-tournaments-scroll .lobby-content {
    overflow: visible;
}

.lobby-screen.is-tournaments-scroll .lobby-list-column {
    overflow: visible;
    min-height: auto;
}

.lobby-screen::before,
.lobby-screen::after {
    display: none;
    content: none;
}

/* Legacy: video uklonjen iz HTML-a; ako se vrati, ostaje skriven */
.lobby-bg-video {
    display: none !important;
}

.lobby-screen.hidden {
    display: none !important;
}

/* Hero / ticker full-bleed — oštri rubovi samo na početnoj snap sekciji */
.lobby-screen .lobby-home-panel .home-scroll-section--hero,
.lobby-screen .lobby-home-panel .home-scroll-section--hero .home-hero,
.lobby-screen .lobby-home-panel .home-crypto-ticker--hero-foot {
    border-radius: 0 !important;
}

.lobby-screen .tournament-card::before,
.lobby-screen .tournament-card::after {
    border-radius: 0 !important;
}

/* Gumbi i avatari moraju ostati zaobljeni unutar lobbyja (prije je * sve gasio) */
.lobby-screen button:not(.home-hero-dot):not(.home-hero-nav):not(.home-carousel-btn):not(.home-scroll-cue):not(.top-nav-link),
.lobby-screen .btn,
.lobby-screen .btn-icon,
.lobby-screen .home-cta,
.lobby-screen .leaderboard-filter,
.lobby-screen .results-filter-btn,
.lobby-screen .leaderboard-page-btn,
.lobby-screen .results-page-btn,
.lobby-screen .settings-tab {
    border-radius: var(--tvt-btn-radius) !important;
}

.lobby-screen .results-avatar,
.lobby-screen .leaderboard-avatar,
.lobby-screen .leaderboard-podium-avatar-ring,
.lobby-screen .leaderboard-podium-avatar-ring-inner,
.lobby-screen .profile-avatar-opt,
.lobby-screen .tournament-final-podium-avatar .results-avatar {
    border-radius: 50% !important;
}

/* Lobby: ravne tamne površine na crnoj podlozi (bez gradijenata) */
.lobby-screen .lobby-main-menu,
.lobby-screen .lobby-sidebar:not(.lobby-sidebar--tournament-chart),
.lobby-screen .lobby-detail-panel {
    background: #0a0a0a !important;
    background-image: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.lobby-screen .lobby-home-panel,
.lobby-screen .lobby-community-panel,
.lobby-screen .lobby-dynamic-panel,
.lobby-screen .lobby-coming-soon {
    background: #0a0a0a !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* .home-hero isključen — unutra je <video> + scrim, ne smije biti puna crna podloga */
.lobby-screen .home-strip > div,
.lobby-screen .home-masters,
.lobby-screen .home-how,
.lobby-screen .home-faq-teaser,
.lobby-screen .home-steps article,
.lobby-screen .home-z2h,
.lobby-screen .home-path-step,
.lobby-screen .home-path-step--final,
.lobby-screen .home-tok-banner,
.lobby-screen .home-upcoming-card {
    background: #0a0a0a !important;
    background-image: none !important;
}

.lobby-screen .home-upcoming-card {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 100%),
        var(--home-upcoming-card-bg, url("./img/ccards/card1.png")) center / cover no-repeat !important;
    border: none !important;
}


.lobby-screen .home-upcoming-card__ribbon {
    background: transparent !important;
}

.lobby-screen .home-upcoming-action {
    border-color: rgba(255, 255, 255, 0.34) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.lobby-screen .home-upcoming-action.is-play {
    border-color: rgba(74, 222, 128, 0.5) !important;
    background: rgba(255, 255, 255, 0.17) !important;
    color: #ecfdf5 !important;
}

.lobby-screen .home-upcoming-action.is-buyin {
    border-color: rgba(226, 232, 240, 0.38) !important;
    background: rgba(241, 245, 249, 0.13) !important;
    color: #ffffff !important;
}

.lobby-screen .home-hero {
    background: transparent !important;
    background-image: none !important;
}

.lobby-screen .home-hero-video {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.lobby-screen .tournament-card {
    background: #0a0a0a !important;
    background-image: none !important;
    box-shadow: none !important;
}

.lobby-screen .tournament-card-pro {
    /* Privremeno: bez tourcard slike */
    background: linear-gradient(180deg, rgba(18, 22, 28, 0.98), rgba(10, 14, 20, 0.99)) !important;
    box-shadow: none !important;
}

.lobby-screen .tournament-card:hover {
    background: #111111 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.lobby-screen .tournament-card-pro:hover {
    background: linear-gradient(180deg, rgba(26, 30, 38, 0.99), rgba(14, 18, 24, 0.99)) !important;
    box-shadow: none !important;
}

.lobby-screen .tournament-card-pro--unified:not(.smoked-lobby-card),
.lobby-screen .tournament-card-pro--unified:not(.smoked-lobby-card):hover {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 100%),
        var(--home-upcoming-card-bg, url("./img/ccards/card1.png")) center / cover no-repeat !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.lobby-screen .tournament-card-pro__hero {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%) !important;
}

.lobby-screen .tournament-card-pro__lower {
    background: rgba(0, 0, 0, 0.18) !important;
}

.lobby-screen .tournament-card-left {
    background: #070707 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.lobby-screen .tournament-detail-card,
.lobby-screen .tournament-detail-placeholder {
    background: #0a0a0a !important;
    background-image: none !important;
    box-shadow: none !important;
}

.lobby-screen .detail-stat,
.lobby-screen .participant-list {
    background: #070707 !important;
    background-image: none !important;
}

.lobby-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #000000;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: none;
    box-shadow: none;
}

.lobby-header-left {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex: 0 0 auto;
    min-width: 0;
}

.clickable-logo {
    cursor: pointer;
}

.clickable-logo:hover {
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.35));
}

.lobby-top-nav {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.lobby-top-nav-mobile-actions {
    display: none;
}

.lobby-menu-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    padding: 0.3rem 0.52rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.top-nav-link {
    border: 1px solid transparent;
    background: transparent;
    color: #cbd5e1cc;
    border-radius: 999px;
    padding: 0.44rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.top-nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
}

.top-nav-link.is-active {
    border-color: rgba(96,165,250,0.34);
    background: linear-gradient(180deg, rgba(59,130,246,0.34), rgba(59,130,246,0.18));
    color: #dbeafe;
    box-shadow: 0 0 14px rgba(59,130,246,0.24);
}

/* Mobilni donji izbornik (vidljiv ≤768px) */
.lobby-bottom-nav {
    display: none;
}

.lobby-coming-soon {
    position: relative;
    z-index: 2;
    margin: 0.9rem 1.2rem 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(59,130,246,0.32);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(59,130,246,0.12), rgba(59,130,246,0.04)),
        rgba(10, 14, 20, 0.8);
}

.lobby-coming-soon.hidden {
    display: none !important;
}

.lobby-coming-soon h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.lobby-coming-soon p {
    margin: 0;
    color: #93c5fd;
    font-size: 0.9rem;
}

.lobby-content.hidden {
    display: none !important;
}

.lobby-dynamic-panel {
    position: relative;
    z-index: 2;
    margin: 0.9rem 1.2rem 0;
    padding: 0.9rem 1.05rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
        rgba(10, 14, 20, 0.82);
    overflow: visible;
}

.lobby-dynamic-panel.hidden {
    display: none !important;
}

.leaderboard-panel {
    border: 1px solid rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(3, 8, 16, 0.5), rgba(2, 6, 12, 0.86)),
        url("./img/leaderboard.jpg") center / cover no-repeat;
    min-height: min(70vh, 620px);
}

.leaderboard-panel__overlay {
    padding: 0.85rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: inherit;
}

.leaderboard-panel__head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.leaderboard-panel__head p {
    margin: 0.12rem 0 0;
    color: #cbd5e1;
    font-size: 0.78rem;
    text-align: center;
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
}

.leaderboard-panel__head p strong {
    color: #e2e8f0;
    font-weight: 700;
}

.leaderboard-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.15rem;
}

.leaderboard-filter {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(4, 12, 24, 0.55);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.32rem 0.55rem;
    border-radius: var(--tvt-btn-radius);
    cursor: pointer;
    white-space: nowrap;
}

.leaderboard-filter:hover {
    border-color: rgba(96, 165, 250, 0.45);
    color: #f1f5f9;
    background: rgba(59, 130, 246, 0.12);
}

.leaderboard-filter.is-active {
    border-color: rgba(96, 165, 250, 0.55);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.28), rgba(59, 130, 246, 0.12));
    color: #dbeafe;
}

.leaderboard-table {
    display: grid;
    gap: 0.3rem;
}

.leaderboard-podium {
    display: grid;
    grid-template-columns: 0.9fr 1.08fr 0.9fr;
    align-items: end;
    gap: 0.85rem;
    min-height: 272px;
    padding: 2.05rem 0.75rem 1.2rem;
    margin: 0.15rem 0 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.leaderboard-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.32rem;
    min-height: 148px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 26px;
    color: #f8fafc;
    padding: 1.35rem 0.65rem 1.05rem;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    transition: transform 0.18s ease, filter 0.18s ease;
    background: rgba(6, 10, 18, 0.55);
    backdrop-filter: blur(6px);
}

.leaderboard-podium-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.08);
}

.leaderboard-podium-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: var(--podium-height, 52%);
    z-index: -1;
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.1), var(--podium-base, rgba(34,197,94,0.22))),
        linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.leaderboard-podium-card::after {
    content: "";
    position: absolute;
    inset: -30% -20% auto;
    height: 75%;
    z-index: -2;
    border-radius: 26px;
    background: radial-gradient(circle, var(--podium-glow, rgba(34,197,94,0.22)), transparent 62%);
    filter: blur(8px);
}

.leaderboard-podium-card--rank-1,
.leaderboard-podium-card--rank-2,
.leaderboard-podium-card--rank-3 {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.leaderboard-podium-card--rank-1::before,
.leaderboard-podium-card--rank-2::before,
.leaderboard-podium-card--rank-3::before,
.leaderboard-podium-card--rank-1::after,
.leaderboard-podium-card--rank-2::after,
.leaderboard-podium-card--rank-3::after {
    display: none;
}

.leaderboard-podium-card--rank-1 {
    min-height: 230px;
    transform: translateY(-18px);
    --podium-medal: #facc15;
    --podium-medal-soft: rgba(250, 204, 21, 0.18);
}

.leaderboard-podium-card--rank-2 {
    min-height: 190px;
    --podium-medal: #e5e7eb;
    --podium-medal-soft: rgba(226, 232, 240, 0.16);
}

.leaderboard-podium-card--rank-3 {
    min-height: 168px;
    --podium-medal: #d97706;
    --podium-medal-soft: rgba(180, 83, 9, 0.18);
}

.leaderboard-podium-card--rank-1:hover {
    transform: translateY(-19px);
}

/* Thick medal ring + inner avatar disc (gold largest → silver → bronze) */
.leaderboard-podium-avatar-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    box-sizing: border-box;
    margin-top: 0.15rem;
}

.leaderboard-podium-avatar-ring-inner {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: radial-gradient(circle at 32% 22%, rgba(255,255,255,0.14), #050a12 58%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.leaderboard-podium-avatar-ring--rank-1 {
    width: 7.5rem;
    height: 7.5rem;
    padding: 0.52rem;
    background: conic-gradient(
        from 215deg,
        #fef9c3,
        #facc15,
        #ca8a04,
        #854d0e,
        #fbbf24,
        #fde047,
        #fef9c3
    );
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(250, 204, 21, 0.45);
}

.leaderboard-podium-avatar-ring--rank-2 {
    width: 5.35rem;
    height: 5.35rem;
    padding: 0.42rem;
    background: conic-gradient(
        from 200deg,
        #f8fafc,
        #cbd5e1,
        #64748b,
        #94a3b8,
        #e2e8f0,
        #f1f5f9
    );
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(226, 232, 240, 0.28);
}

.leaderboard-podium-avatar-ring--rank-3 {
    width: 4.15rem;
    height: 4.15rem;
    padding: 0.36rem;
    background: conic-gradient(
        from 195deg,
        #fed7aa,
        #ea580c,
        #9a3412,
        #fb923c,
        #fdba74
    );
    box-shadow:
        0 0 0 2px rgba(0,0,0,0.32),
        0 0 18px rgba(251,146,60,0.28);
}

.leaderboard-podium-avatar-ring .results-avatar,
.leaderboard-podium-avatar-ring .leaderboard-avatar,
.leaderboard-podium-avatar-ring-inner > .results-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1;
    flex: 1 1 auto;
    align-self: stretch;
    font-size: clamp(0.78rem, 2.4vw, 1.28rem);
}

.leaderboard-podium-avatar-ring .results-avatar-img,
.leaderboard-podium-avatar-ring-inner .results-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
}

.leaderboard-podium-avatar-ring--rank-1 .results-avatar,
.leaderboard-podium-avatar-ring--rank-1 .leaderboard-avatar {
    font-size: clamp(0.95rem, 2.8vw, 1.42rem);
}

.leaderboard-podium-avatar-ring--rank-2 .results-avatar,
.leaderboard-podium-avatar-ring--rank-2 .leaderboard-avatar {
    font-size: clamp(0.82rem, 2.2vw, 1.12rem);
}

.leaderboard-podium-avatar-ring--rank-3 .results-avatar,
.leaderboard-podium-avatar-ring--rank-3 .leaderboard-avatar {
    font-size: clamp(0.72rem, 2vw, 0.98rem);
}

.leaderboard-podium-ring-svg {
    position: absolute;
    left: 50%;
    bottom: -2%;
    transform: translateX(-50%);
    width: 108%;
    height: auto;
    max-height: 42%;
    pointer-events: none;
    overflow: visible;
}

.leaderboard-podium-ring-svg__text {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.leaderboard-podium-ring-svg__text--r1 {
    fill: #fef08a;
    filter: drop-shadow(0 0 5px rgba(250,204,21,0.85));
}

.leaderboard-podium-ring-svg__text--r2 {
    fill: #e2e8f0;
    filter: drop-shadow(0 0 4px rgba(226,232,240,0.55));
}

.leaderboard-podium-ring-svg__text--r3 {
    fill: #fdba74;
    filter: drop-shadow(0 0 4px rgba(251,146,60,0.65));
}

.leaderboard-podium-card strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
}

.leaderboard-podium-card > span:not(.leaderboard-podium-avatar-ring) {
    color: #86efac;
    font-size: 0.76rem;
    font-weight: 800;
}

.leaderboard-podium-card i {
    position: absolute;
    bottom: 0.28rem;
    right: 0.45rem;
    font-style: normal;
    font-size: 1.35rem;
    font-weight: 900;
    color: rgba(255,255,255,0.2);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 40px minmax(14rem, 30ch) 64px 52px minmax(76px, 0.7fr) minmax(112px, 0.95fr) minmax(92px, 0.55fr);
    align-items: center;
    gap: 0.52rem;
    padding: 0.43rem 0.55rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(4, 10, 18, 0.72);
    color: #f8fafc;
    font-size: 0.79rem;
}

.leaderboard-row--head {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    background: rgba(15, 41, 70, 0.78);
    color: #cfe6ff;
    gap: 0;
    padding: 0.35rem 0;
}

.leaderboard-row--head .leaderboard-stat-cell--head {
    min-height: 2.95rem;
    height: 100%;
    padding: 0.45rem 0.3rem;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;
    align-self: stretch;
    text-align: right;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: #cfe6ff;
    line-height: 1.15;
}

.leaderboard-row--head > span:nth-child(1),
.leaderboard-row--head > span:nth-child(2) {
    justify-self: start;
    text-align: left;
    padding: 0.45rem 0.3rem;
    box-sizing: border-box;
}

.leaderboard-row > span:nth-child(n+3) {
    justify-self: end;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.leaderboard-head-tour--short {
    display: none;
}

.leaderboard-row--item {
    opacity: 0;
    transform: translateX(-26px) scale(0.985);
    animation: leaderboardRowIn 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--row-index, 0) * 36ms);
    padding: 0.35rem 0;
    border: none;
    background: transparent;
    gap: 0;
}

.leaderboard-panel.is-data-refresh .leaderboard-row--item,
.leaderboard-panel.is-data-refresh .leaderboard-podium-card {
    opacity: 1;
    transform: none;
    animation: none;
}

.leaderboard-row--item .leaderboard-stat-cell {
    min-height: 2.95rem;
    height: 100%;
    padding: 0.45rem 0.3rem;
    margin: 0;
    border: none;
    border-radius: 0;
    background: rgba(6, 10, 18, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 -2px 0 var(--profile-stat-accent, rgba(148, 163, 184, 0.45));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;
    align-self: stretch;
    text-align: right;
}

.leaderboard-row--item .leaderboard-stat-cell strong {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    width: 100%;
    text-align: right;
}

.leaderboard-stat-cell--blue { --profile-stat-accent: rgba(59, 130, 246, 0.65); }
.leaderboard-stat-cell--amber { --profile-stat-accent: rgba(245, 158, 11, 0.65); }
.leaderboard-stat-cell--violet { --profile-stat-accent: rgba(139, 92, 246, 0.65); }
.leaderboard-stat-cell--green { --profile-stat-accent: rgba(34, 197, 94, 0.65); }
.leaderboard-stat-cell--rose { --profile-stat-accent: rgba(244, 63, 94, 0.65); }

.leaderboard-row--in-prize.leaderboard-row--trade-aside {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0;
    background: rgba(74, 222, 128, 0.04);
    box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.88);
}

.leaderboard-row--in-prize .participant-rank {
    color: #4ade80;
    font-weight: 800;
}

.leaderboard-rank {
    font-weight: 800;
    color: #dbeafe;
}

.leaderboard-trader {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 100%;
}

.leaderboard-trader--clickable {
    cursor: pointer;
}

.player-link-btn {
    border: none;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.player-link-btn:hover {
    color: #93c5fd;
}

.leaderboard-avatar {
    width: 2em;
    height: 2em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5em;
    font-weight: 800;
    color: #e2e8f0;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(30, 64, 175, 0.48);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.leaderboard-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
    font-family: "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.01em;
}

.leaderboard-trader-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.leaderboard-name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.06rem;
    min-width: 0;
    max-width: 100%;
}

.leaderboard-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.06rem;
    flex-shrink: 0;
    margin-left: 0.02rem;
}

.trader-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(8, 12, 20, 0.88);
    color: #e2e8f0;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.trader-social-icon svg {
    width: 0.56rem;
    height: 0.56rem;
    fill: currentColor;
}

.trader-social-icon--x:hover {
    border-color: rgba(248, 250, 252, 0.55);
    background: rgba(15, 23, 42, 0.95);
}

.trader-social-icon--telegram {
    color: #7dd3fc;
}

.trader-social-icon--telegram:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(8, 47, 73, 0.55);
}

.leaderboard-tokens {
    font-variant-numeric: tabular-nums;
    color: #bfdbfe;
    white-space: nowrap;
}

.leaderboard-row--item .leaderboard-trader {
    gap: 0.28rem;
}

.leaderboard-row--item .leaderboard-trader .results-avatar {
    width: 2.85rem;
    height: 2.85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    font-size: 0.55rem;
}

.leaderboard-row--item .leaderboard-name {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-winrate {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #86efac;
    text-align: right;
}

.leaderboard-points {
    font-weight: 700;
    color: #bfdbfe;
}

.leaderboard-roi-plus {
    color: #86efac;
    font-weight: 700;
}

.leaderboard-roi-minus {
    color: #fca5a5;
    font-weight: 700;
}

.leaderboard-pager {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #dbeafe;
    font-size: 0.78rem;
}

.leaderboard-page-btn {
    width: 2rem;
    height: 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(4, 12, 24, 0.86);
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
}

.leaderboard-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.results-panel {
    border: 1px solid rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(4, 8, 14, 0.45), rgba(2, 6, 12, 0.86)),
        url("./img/results.jpg") center / cover no-repeat;
    min-height: min(70vh, 620px);
}

.results-panel__overlay {
    padding: 0.85rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: inherit;
}

.results-panel__head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
}

.results-panel__head p {
    margin: 0.12rem 0 0;
    color: #cbd5e1;
    font-size: 0.78rem;
    text-align: center;
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
}

.results-table {
    display: grid;
    gap: 0.3rem;
}

.results-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    margin-bottom: 0.3rem;
}

.results-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(2, 8, 16, 0.78);
    border-radius: 10px;
    padding: 0.5rem 0.56rem;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.results-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

.results-stat-value {
    font-size: 1.06rem;
    font-weight: 800;
    color: #86efac;
}

.results-row {
    display: grid;
    grid-template-columns: 5px 34px minmax(0, 1.2fr) 52px 76px minmax(0, 1fr) 108px;
    align-items: center;
    gap: 0.42rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(3, 10, 18, 0.72);
    color: #f8fafc;
    font-size: 0.75rem;
}

.results-row-accent-spacer {
    width: 5px;
    min-height: 1px;
}

.results-row-accent {
    align-self: stretch;
    width: 5px;
    min-height: 100%;
    border-radius: 999px;
    background: var(--results-accent, #22c55e);
    box-shadow: 0 0 12px rgba(var(--results-accent-rgb, 34, 197, 94), 0.45);
}

.results-tour {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}

.results-tour-name {
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.results-buyin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.42rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--results-accent, #86efac);
    border: 1px solid rgba(var(--results-accent-rgb, 34, 197, 94), 0.55);
    background: rgba(var(--results-accent-rgb, 34, 197, 94), 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.results-meta {
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
}

.results-meta--pool {
    color: rgba(var(--results-accent-rgb, 34, 197, 94), 1);
    font-weight: 800;
}

.results-finished {
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: right;
}

.results-row--head {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(17, 42, 68, 0.8);
    color: #dbeafe;
}

.results-row--item {
    opacity: 0;
    transform: translateX(24px);
    animation: resultsRowIn 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--row-index, 0) * 32ms);
}

.results-panel.is-data-refresh .results-row--item {
    opacity: 1;
    transform: none;
    animation: none;
}

.results-row--clickable {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.results-row--clickable:hover {
    background: rgba(30, 58, 95, 0.55);
    border-color: rgba(96, 165, 250, 0.35);
}

.results-row--clickable:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 2px;
}

.results-row--clickable:hover .results-row-accent {
    box-shadow: 0 0 16px rgba(var(--results-accent-rgb, 34, 197, 94), 0.65);
}

.results-open-hint {
    margin: 0.45rem 0 0;
    padding: 0 0.25rem;
}

.tournament-lb-table-wrap {
    max-height: min(52vh, 440px);
    overflow: auto;
    margin-top: 0.35rem;
    border-radius: 8px;
}

.participant-row--registered .participant-meta {
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
    max-width: 42%;
}

.results-rank {
    font-weight: 800;
    color: #bfdbfe;
}

.results-winner {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.results-prize {
    color: #86efac;
    font-weight: 700;
    min-width: 0;
}

.results-podium-list {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-width: 0;
    width: 100%;
}

.results-podium-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
    width: 100%;
    line-height: 1.3;
}

.results-podium-entry__main {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.results-podium-entry__main .results-avatar {
    width: 1.55rem;
    height: 1.55rem;
    min-width: 1.55rem;
    min-height: 1.55rem;
    margin-right: 0;
    font-size: 0.45rem;
}

.results-podium-entry__rank {
    font-weight: 800;
    color: #93c5fd;
    flex-shrink: 0;
}

.results-podium-entry__main .player-link-btn {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 12rem);
}

.results-podium-entry__detail {
    padding-left: calc(1.55rem + 0.28rem);
    font-size: 0.68rem;
    font-weight: 600;
    color: #cbd5e1;
    word-break: break-word;
}

.results-avatar {
    display: inline-flex;
    flex-shrink: 0;
    width: 2em;
    height: 2em;
    aspect-ratio: 1;
    border-radius: 50%;
    margin-right: 0.4em;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    font-size: 0.5em;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.results-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.leaderboard-trader .results-avatar,
.results-player-cell .results-avatar,
.chart-leaderboard-name .results-avatar {
    margin-right: 0;
}

.results-player-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.results-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
    margin: 0.15rem 0 0.25rem;
}

.results-filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(4, 12, 24, 0.86);
    color: #cbd5e1;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.62rem;
    cursor: pointer;
}

.results-filter-btn.is-active {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(34, 197, 94, 0.22);
    color: #dcfce7;
}

@media (max-width: 900px) {
    .results-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .player-profile-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.results-pager {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #dbeafe;
    font-size: 0.78rem;
}

.results-page-btn {
    width: 2rem;
    height: 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(4, 12, 24, 0.86);
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
}

.results-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Results — tournament detail (Winners / Participants / Trades) */
.results-detail {
    padding: 0.15rem 0.1rem 0.5rem;
}

.results-detail-back {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.2rem 0;
    margin-bottom: 0.65rem;
}

.results-detail-back:hover {
    color: #e2e8f0;
}

.results-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.results-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.results-detail-badge--buyin {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.results-detail-badge--status {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.results-detail-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #f8fafc;
}

.results-detail-dates {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    color: #64748b;
}

.results-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.results-detail-stat {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.85);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.results-detail-stat span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.results-detail-stat strong {
    font-size: 1rem;
    color: #f8fafc;
}

.results-detail-stat--green {
    color: #4ade80 !important;
}

.results-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.85rem;
}

.results-detail-tab {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.results-detail-tab.is-active {
    color: #4ade80;
    border-bottom-color: #4ade80;
}

.results-detail-podium {
    margin: 0.35rem 0 0.85rem;
}

.results-detail-podium-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
}

.results-detail-podium-slot {
    flex: 1 1 0;
    max-width: 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    position: relative;
    padding-bottom: 0.35rem;
}

.results-detail-podium-slot--1 { order: 2; }
.results-detail-podium-slot--2 { order: 1; }
.results-detail-podium-slot--3 { order: 3; }

.results-detail-podium-avatar {
    position: relative;
    margin-bottom: 0.15rem;
}

.results-detail-podium-avatar--1 .results-avatar {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.65), 0 0 18px rgba(74, 222, 128, 0.25);
}

.results-detail-podium-medal {
    position: absolute;
    top: -0.35rem;
    right: -0.2rem;
    font-size: 0.72rem;
}

.results-detail-podium-name {
    font-size: 0.82rem;
    color: #f8fafc;
}

.results-detail-podium-prize {
    font-size: 0.88rem;
    font-weight: 700;
    color: #4ade80;
}

.results-detail-podium-bar {
    display: block;
    width: 100%;
    border-radius: 8px 8px 0 0;
    margin-top: 0.35rem;
    min-height: 4.5rem;
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.35), rgba(74, 222, 128, 0.08));
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.results-detail-podium-slot--2 .results-detail-podium-bar {
    min-height: 3.2rem;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.3), rgba(96, 165, 250, 0.06));
    border-color: rgba(96, 165, 250, 0.25);
}

.results-detail-podium-slot--3 .results-detail-podium-bar {
    min-height: 2.4rem;
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.32), rgba(251, 146, 60, 0.06));
    border-color: rgba(251, 146, 60, 0.25);
}

.results-detail-podium-slot--empty {
    visibility: hidden;
    min-height: 2rem;
}

button.results-detail-podium-slot {
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0 0 0.35rem;
}

button.results-detail-podium-slot:hover .results-detail-podium-name,
button.results-detail-podium-slot:focus-visible .results-detail-podium-name {
    color: #4ade80;
    text-decoration: underline;
}

button.results-detail-podium-slot:focus-visible {
    outline: 2px solid rgba(74, 222, 128, 0.55);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.results-detail-prize-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.62rem;
    font-weight: 700;
}

.results-detail-prize-seg {
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-detail-prize-seg--1 { background: rgba(74, 222, 128, 0.25); color: #bbf7d0; }
.results-detail-prize-seg--2 { background: rgba(96, 165, 250, 0.25); color: #bfdbfe; }
.results-detail-prize-seg--3 { background: rgba(251, 146, 60, 0.25); color: #fed7aa; }
.results-detail-prize-seg--rest { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }

.results-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.results-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.results-detail-table th,
.results-detail-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-detail-table th {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    background: rgba(0, 0, 0, 0.25);
}

.results-detail-table-row--1 td {
    background: rgba(74, 222, 128, 0.06);
}

.results-detail-rank-star {
    color: #4ade80;
}

.results-detail-pnl--pos { color: #4ade80; }
.results-detail-pnl--neg { color: #f87171; }
.results-detail-prize-cell { color: #4ade80; font-weight: 600; }

.results-detail-trades-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.results-detail-trade-select {
    min-width: 9rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 20, 0.9);
    color: #e2e8f0;
    font-size: 0.78rem;
}

.results-detail-trade-sides {
    display: inline-flex;
    gap: 0.25rem;
}

.results-detail-trade-side {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 20, 0.75);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
}

.results-detail-trade-side.is-active {
    border-color: rgba(74, 222, 128, 0.45);
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.results-detail-trade-count {
    margin-left: auto;
    font-size: 0.72rem;
    color: #64748b;
}

.results-detail-trades-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.results-detail-trade-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(8, 12, 20, 0.72);
}

.results-detail-trade-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.results-detail-trade-user strong {
    display: block;
    font-size: 0.82rem;
    color: #f8fafc;
}

.results-detail-trade-user span {
    font-size: 0.68rem;
    color: #64748b;
}

.results-detail-trade-crown {
    font-size: 0.75rem;
}

.results-detail-trade-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.results-detail-trade-symbol {
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    color: #cbd5e1;
}

.results-detail-trade-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.results-detail-trade-badge--long {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.results-detail-trade-badge--short {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.results-detail-trade-lev {
    font-size: 0.68rem;
    color: #64748b;
}

.results-detail-trade-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 7rem;
}

.results-detail-trade-prices {
    font-size: 0.72rem;
    color: #94a3b8;
}

.results-detail-trade-size {
    font-size: 0.65rem;
    color: #64748b;
}

.results-detail-retry {
    margin-top: 0.45rem;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

.results-detail-load-notice {
    padding: 0.75rem 0.35rem;
}

.results-detail-load-more-wrap {
    margin-top: 0.85rem;
    text-align: center;
}

.results-detail-load-more-meta {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
}

.results-detail-load-more {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}

.results-detail-load-more:hover {
    background: rgba(255, 255, 255, 0.08);
}

.results-detail-inline-loading {
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .results-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .results-detail-podium-row {
        gap: 0.35rem;
    }
    .results-detail-trade-row {
        flex-direction: column;
    }
    .results-detail-trade-right {
        text-align: left;
    }
    .results-detail-trade-count {
        margin-left: 0;
        width: 100%;
    }
}

.player-profile-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 8, 16, 0.82);
    padding: 0.9rem;
}

.player-profile-panel.profile-info-page {
    border: 0;
    background: transparent;
    padding: 0.25rem;
}

.player-profile-hero--dashboard .player-profile-inline-socials {
    display: inline-flex;
    gap: 0.35rem;
    margin-left: 0.65rem;
    vertical-align: middle;
}

.player-profile-hero--dashboard .player-social-link {
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem;
}

.player-profile-head {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.player-profile-back {
    align-self: flex-start;
}

.player-profile-hero {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.player-profile-hero .results-avatar {
    width: 52px;
    height: 52px;
    font-size: 0.9rem;
}

.player-profile-meta h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.08rem;
}

.player-profile-meta p {
    margin: 0.14rem 0 0;
    color: #94a3b8;
    font-size: 0.76rem;
}

.player-profile-section h4 {
    margin: 0 0 0.45rem;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.player-profile-table-wrap {
    overflow: auto;
}

.player-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.player-profile-table th,
.player-profile-table td {
    padding: 0.38rem 0.45rem;
    border: 1px solid rgba(255,255,255,0.12);
}

.player-profile-table th {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #bfdbfe;
    background: rgba(17, 42, 68, 0.72);
    font-size: 0.64rem;
}

.player-profile-table td {
    color: #e2e8f0;
    background: rgba(3, 10, 18, 0.72);
}

.player-profile-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    margin-bottom: 0.6rem;
}

.player-profile-kpi {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 8, 16, 0.72);
    padding: 0.42rem 0.48rem;
}

.player-profile-kpi span {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #93c5fd;
}

.player-profile-kpi strong {
    display: block;
    margin-top: 0.18rem;
    color: #86efac;
    font-size: 0.92rem;
}

.player-profile-socials {
    margin-bottom: 0.6rem;
}

.player-profile-socials h4 {
    margin: 0 0 0.35rem;
    color: #e2e8f0;
    font-size: 0.84rem;
}

.player-profile-socials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.player-social-link {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    padding: 0.24rem 0.52rem;
    font-size: 0.72rem;
    color: #cbd5e1;
    text-decoration: none;
    background: rgba(4, 12, 24, 0.7);
    font-family: inherit;
}

.player-social-link.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.settings-social-connect {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.settings-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.settings-social-label {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.settings-social-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.settings-social-status {
    color: #86efac;
    font-size: 0.82rem;
}

.settings-social-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
}

.signup-social-hint {
    margin: 0.35rem 0 0.75rem;
}

.player-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(2, 8, 16, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.player-profile-modal {
    width: min(980px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(2, 8, 16, 0.96);
    padding: 0.85rem;
}

.participant-row[data-open-player-profile] .participant-name {
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: pointer;
}

.masters-panel {
    position: relative;
    border: 1px solid rgba(255,255,255,0.14);
    min-height: min(70vh, 620px);
    overflow: hidden;
}

.masters-panel__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masters-panel__overlay {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem 0.75rem;
    background: linear-gradient(180deg, rgba(2, 8, 18, 0.42), rgba(2, 8, 18, 0.88));
}

.masters-panel__head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.06rem;
    text-align: center;
}

.masters-panel__head p {
    margin: 0.16rem 0 0;
    color: #dbeafe;
    font-size: 0.8rem;
    max-width: 56rem;
    line-height: 1.4;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.masters-grid {
    margin-top: 0.45rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
}

.masters-grid-cell {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(4, 12, 24, 0.66);
    padding: 0.48rem 0.54rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    color: #e2e8f0;
    font-size: 0.74rem;
}

.masters-grid-rank {
    color: #93c5fd;
    font-weight: 800;
}

.masters-grid-name {
    color: #cbd5e1;
}

.masters-grid-points {
    color: #86efac;
    font-weight: 700;
}

.masters-mult-table-wrap {
    margin: 0.35rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(2, 8, 18, 0.55);
}

.masters-mult-table-title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.masters-mult-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem 1rem;
}

@media (max-width: 960px) {
    .masters-mult-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .masters-mult-grid {
        grid-template-columns: 1fr;
    }
}

.masters-mult-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.masters-mult-table th,
.masters-mult-table td {
    padding: 0.28rem 0.35rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.masters-mult-table td:last-child {
    color: #4ade80;
    font-weight: 600;
}

.masters-mult-table-hint {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.masters-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
    flex: 1;
}

.masters-leaderboard-head,
.masters-leaderboard-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 5.5rem 7rem;
    gap: 0.45rem;
    align-items: center;
    padding: 0.35rem 0.45rem;
    font-size: 0.78rem;
}

.masters-leaderboard-head {
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.masters-leaderboard-head span:nth-child(3),
.masters-leaderboard-head span:nth-child(4) {
    text-align: right;
}

.masters-leaderboard-body {
    max-height: min(52vh, 520px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.masters-leaderboard-row {
    border-radius: 0.45rem;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
}

.masters-leaderboard-row:hover {
    background: rgba(74, 222, 128, 0.08);
}

.masters-leaderboard-trader {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.masters-leaderboard-trader .results-avatar {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.masters-leaderboard-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e2e8f0;
}

.masters-leaderboard-rank {
    color: #94a3b8;
    font-weight: 600;
}

.masters-leaderboard-points {
    color: #4ade80;
    font-weight: 700;
    text-align: right;
}

.masters-leaderboard-tours {
    color: #64748b;
    text-align: right;
}

.masters-leaderboard-empty {
    padding: 1rem 0.5rem;
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

.results-detail-masters-note {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.results-detail-masters-tokens {
    color: #4ade80;
    font-weight: 600;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .masters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@keyframes leaderboardRowIn {
    from {
        opacity: 0;
        transform: translateX(-26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes resultsRowIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.results-full-empty {
    padding: 1.35rem 0.75rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.86rem;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(2, 8, 16, 0.55);
}

/* TVT Token (top menu) — two stacked “slides” */
.tvt-token-page {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0.25rem;
}

.tvt-token-slide {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.05rem 1.05rem;
}

.tvt-token-slide-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.tvt-token-slide-head p {
    margin: 0.25rem 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
}

.faq-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(2, 8, 16, 0.74);
    border-radius: 14px;
    padding: 0.95rem 1rem 1rem;
}

.faq-shell__head {
    text-align: center;
    margin-bottom: 0.7rem;
}

.faq-shell__head h2 {
    margin: 0;
    font-size: 1.08rem;
    color: #f8fafc;
}

.faq-shell__head p {
    margin: 0.2rem auto 0;
    color: #94a3b8;
    font-size: 0.82rem;
    max-width: 70ch;
}

.faq-shell__body .faq-wrap { padding: 2rem 0; max-width: 860px; margin: 0 auto; }
.faq-shell__body .faq-header { margin-bottom: 2rem; }
.faq-shell__body .faq-header h1 { font-size: 28px; font-weight: 500; color: var(--color-text-primary); margin: 0 0 8px; }
.faq-shell__body .faq-header p { font-size: 15px; color: var(--color-text-secondary); margin: 0; }
.faq-shell__body .faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.faq-shell__body .cat-btn { padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; cursor: pointer; border: 0.5px solid var(--color-border-secondary); background: var(--color-background-primary); color: var(--color-text-secondary); transition: all 0.15s; }
.faq-shell__body .cat-btn.active { background: #EAF3DE; color: #27500A; border-color: #639922; }
.faq-shell__body .faq-section { margin-bottom: 2rem; }
.faq-shell__body .faq-section-title { font-size: 13px; font-weight: 500; color: #639922; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 0.5px solid var(--color-border-tertiary); }
.faq-shell__body .faq-item { border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); margin-bottom: 8px; overflow: hidden; background: var(--color-background-primary); }
.faq-shell__body .faq-q { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; gap: 16px; }
.faq-shell__body .faq-q:hover { background: var(--color-background-secondary); }
.faq-shell__body .faq-q-text { font-size: 15px; font-weight: 500; color: var(--color-text-primary); line-height: 1.4; }
.faq-shell__body .faq-icon { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: var(--color-background-secondary); border: 0.5px solid var(--color-border-secondary); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--color-text-secondary); transition: transform 0.2s; }
.faq-shell__body .faq-icon.open { transform: rotate(45deg); background: #EAF3DE; color: #27500A; border-color: #639922; }
.faq-shell__body .faq-a { display: none; padding: 0 18px 16px; font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; border-top: 0.5px solid var(--color-border-tertiary); }
.faq-shell__body .faq-a.open { display: block; }
.faq-shell__body .faq-a strong { color: var(--color-text-primary); font-weight: 500; }
.faq-shell__body .search-wrap { position: relative; margin-bottom: 1.5rem; }
.faq-shell__body .search-wrap input { width: 100%; padding: 10px 16px 10px 40px; border-radius: var(--border-radius-lg); border: 0.5px solid var(--color-border-secondary); font-size: 14px; background: var(--color-background-primary); color: var(--color-text-primary); box-sizing: border-box; }
.faq-shell__body .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-secondary); font-size: 14px; pointer-events: none; }
.faq-shell__body .no-results { text-align: center; padding: 3rem 1rem; color: var(--color-text-secondary); font-size: 14px; }

.tvt-token-supply-grid {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.tvt-pie-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.tvt-pie {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    clip-path: circle(50% at 50% 50%);
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: conic-gradient(
        from -90deg,
        #4ade80 0deg 288deg,
        #3b82f6 288deg 324deg,
        #d4d418 324deg 349.2deg,
        #166534 349.2deg 360deg
    );
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.12);
}

.tvt-pie-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.72rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 100%;
}

.tvt-pie-legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tvt-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.tvt-dot--tge { background: #4ade80; }
.tvt-dot--inv { background: #3b82f6; }
.tvt-dot--drop { background: #d4d418; }
.tvt-dot--team { background: #166534; }

.tvt-alloc-cards {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tvt-alloc-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 18, 18, 0.95);
    min-height: 4.5rem;
}

.tvt-alloc-bar {
    width: 6px;
    flex-shrink: 0;
}

.tvt-alloc-card--tge .tvt-alloc-bar { background: #4ade80; }
.tvt-alloc-card--inv .tvt-alloc-bar { background: #3b82f6; }
.tvt-alloc-card--drop .tvt-alloc-bar { background: #d4d418; }
.tvt-alloc-card--team .tvt-alloc-bar { background: #166534; }

.tvt-alloc-body {
    padding: 0.5rem 0.65rem 0.55rem;
    flex: 1;
    min-width: 0;
}

.tvt-alloc-top {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.tvt-alloc-pct {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.tvt-alloc-card--tge .tvt-alloc-pct { color: #4ade80; }
.tvt-alloc-card--inv .tvt-alloc-pct { color: #60a5fa; }
.tvt-alloc-card--drop .tvt-alloc-pct { color: #facc15; }
.tvt-alloc-card--team .tvt-alloc-pct { color: #22c55e; }

.tvt-alloc-amt {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.tvt-alloc-body h3 {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #f8fafc;
}

.tvt-alloc-body p {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
}

.tvt-value-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.tvt-value-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 14, 14, 0.96);
    padding: 0.75rem 0.8rem 0.8rem 0.95rem;
    border-left: 4px solid #22c55e;
}

.tvt-value-card::before {
    position: absolute;
    right: 0.35rem;
    bottom: -0.15rem;
    font-size: 3.6rem;
    line-height: 1;
    opacity: 0.09;
    pointer-events: none;
    font-weight: 700;
}

.tvt-value-card--daily::before { content: "$"; color: #4ade80; }
.tvt-value-card--buyback::before { content: "⟲"; color: #4ade80; }
.tvt-value-card--nodump::before { content: "🔒"; color: #a78bfa; opacity: 0.14; }
.tvt-value-card--moneymaker::before { content: "🏆"; color: #fb923c; opacity: 0.14; }

.tvt-value-card h3 {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 0.86rem;
    color: #f8fafc;
}

.tvt-value-card p {
    margin: 0.35rem 0 0;
    position: relative;
    z-index: 1;
    font-size: 0.76rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.lobby-home-panel {
    /* Početna — akcent zelena (Tailwind-style lime / green-500). Probna drečava bila #39CC14 — arhivirano u gitu. */
    --home-green: #4ade80;
    --home-green-soft: #bbf7d0;
    --home-green-mid: #86efac;
    --home-green-rgb: 34, 197, 94;
    --home-green-dark-rgb: 22, 163, 74;
    --home-cta-gradient: linear-gradient(180deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    --home-hero-glow: rgba(34, 197, 94, 0.14);
    --home-section-stack-gap: 0.9rem;
    --home-section-pad-y: 2.1rem;
    --home-section-pad-bottom: 2.4rem;
    --home-section-inner-gap: 2.1rem;
    --home-discover-stack-gap: 8.1rem;

    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 0;
    background: #000000;
    overflow: visible;
    display: block;
    flex: 0 0 auto;
}

.home-scroll-root {
    display: flex;
    flex-direction: column;
    gap: var(--home-section-stack-gap, 0.9rem);
    overflow: visible;
}

.home-scroll-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: auto;
    box-sizing: border-box;
    padding: var(--home-section-pad-y, 2.1rem) 1.05rem var(--home-section-pad-bottom, 2.4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--home-section-inner-gap, 2.1rem);
}

.home-scroll-section--hero {
    --hero-foot-ticker-h: 2.85rem;
    --hero-nav-inset: clamp(0.35rem, 2.2vw, 1.25rem);
    padding: 0;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    position: relative;
    flex: 0 0 var(--home-scroll-pane-h);
    min-height: var(--home-scroll-pane-h);
    max-height: var(--home-scroll-pane-h);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
}

.home-scroll-section--hero .home-hero {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
}

.home-scroll-section--hero .home-hero-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.home-scroll-section--hero .home-crypto-ticker--hero-foot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 13;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.home-scroll-section--hero .home-scroll-cue {
    position: absolute;
    bottom: calc(var(--hero-foot-ticker-h) + 2.15rem);
    left: 50%;
    z-index: 12;
    margin: 0;
    transform: translateX(-50%);
}

.home-scroll-section--hero .home-scroll-cue:hover,
.home-scroll-section--hero .home-scroll-cue:focus-visible {
    transform: translateX(-50%);
    border: none;
    background: transparent;
    color: var(--home-green-mid);
}

.home-scroll-section--hero .home-hero-dots {
    bottom: calc(var(--hero-foot-ticker-h) + 0.45rem);
    z-index: 11;
}

.home-scroll-section--hero .home-hero-nav {
    z-index: 15;
    width: auto;
    height: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.2rem 0.45rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--home-green);
    font-size: clamp(2.4rem, 6vw, 3.1rem);
    font-weight: 300;
    line-height: 1;
    pointer-events: auto;
    text-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        0 2px 8px rgba(0, 0, 0, 0.85);
}

.home-scroll-section--hero .home-hero-nav--prev {
    left: var(--hero-nav-inset);
    right: auto;
}

.home-scroll-section--hero .home-hero-nav--next {
    right: var(--hero-nav-inset);
    left: auto;
}

.home-scroll-section--hero .home-hero-nav:hover,
.home-scroll-section--hero .home-hero-nav:focus-visible {
    color: var(--home-green-mid);
    background: rgba(0, 0, 0, 0.22);
    border: none;
    outline: none;
}

.home-scroll-section--hero .home-hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-scroll-section--hero .home-hero-media {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.home-scroll-section--hero .home-hero-scrim {
    left: 0;
    right: 0;
    width: 100%;
    background:
        radial-gradient(ellipse 95% 88% at 50% 42%,
            rgba(0, 0, 0, 0.42) 0%,
            rgba(0, 0, 0, 0.5) 55%,
            rgba(0, 0, 0, 0.62) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 22%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, transparent 16%),
        radial-gradient(circle at top right, var(--home-hero-glow), transparent 42%),
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 40%);
}

.home-scroll-section--hero .home-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 56rem);
    margin: 0 auto;
    padding: 1.35rem 1.35rem 1.45rem;
    transform: translateY(3.5vh);
}

.home-scroll-section--tournaments {
    padding-bottom: calc(var(--home-section-pad-bottom, 2.4rem) + 1.5rem);
    background: #0a0a0a;
}

.home-scroll-section--tournaments .home-upcoming {
    margin-top: 0;
    width: 100%;
}

#homeTournamentsSection.tournament-chart-surface > .tournament-lobby-atmosphere,
#homeTournamentsSection.tournament-chart-surface > .tournament-lobby-atmosphere__chart {
    display: none !important;
    background-image: none !important;
}

.home-scroll-section--arena {
    min-height: auto;
    justify-content: flex-start;
    gap: 2.7rem;
    padding: var(--home-section-pad-y, 2.1rem) 1.05rem var(--home-section-pad-bottom, 2.4rem);
}

.home-scroll-section--masters-promo {
    min-height: auto;
    justify-content: flex-start;
    padding: var(--home-section-pad-y, 2.1rem) 1.05rem 2.7rem;
}

.home-scroll-section--arena .home-arena-block {
    flex: 0 1 auto;
    width: min(100%, 72rem);
}

.home-arena-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    width: min(100%, 72rem);
    margin: 2.1rem auto 0;
}

.home-arena-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.82);
    overflow: hidden;
}

.home-arena-stat::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
}

.home-arena-stat--winners::after { background: #4ade80; }
.home-arena-stat--live::after { background: #60a5fa; }
.home-arena-stat--prizes::after { background: #fb923c; }
.home-arena-stat--online::after { background: #2dd4bf; }

.home-arena-stat__icon {
    display: flex;
    align-items: center;
    margin-bottom: 0.15rem;
}

.home-arena-stat--winners .home-arena-stat__icon { color: #4ade80; }
.home-arena-stat--live .home-arena-stat__icon { color: #60a5fa; }
.home-arena-stat--prizes .home-arena-stat__icon { color: #fb923c; }
.home-arena-stat--online .home-arena-stat__icon { color: #2dd4bf; }

.home-arena-stat__label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.home-arena-stat__value {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.home-scroll-section--masters-promo .home-masters-promo {
    margin: 0 auto;
}

.home-arena-block {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.home-arena-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.home-arena-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-green);
    margin-bottom: 0.35rem;
}

.home-arena-title {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.home-arena-sub {
    margin: 0.35rem 0 0;
    color: #94a3b8;
    font-size: 0.92rem;
    max-width: 36rem;
}

.home-arena-head__badge {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    background: rgba(8, 12, 20, 0.72);
    text-align: right;
    min-width: 9rem;
}

.home-arena-head__badge-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.home-arena-head__badge-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}

.home-arena-loading,
.home-arena-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.home-arena-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-arena-podium {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: 0.65rem;
    align-items: end;
    padding: 1.1rem 0.75rem 0.35rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(34, 197, 94, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 14, 0.96));
    overflow: hidden;
    min-height: 13.5rem;
}

.home-arena-podium__bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background: url("./img/leaderboard.jpg") center / cover no-repeat;
    pointer-events: none;
}

.home-arena-podium-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.45rem 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.home-arena-podium-card:focus-visible {
    outline: 2px solid var(--home-green);
    outline-offset: 3px;
    border-radius: 10px;
}

.home-arena-podium-card__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-arena-podium-card__avatar .leaderboard-podium-avatar-ring {
    margin-top: 0;
}

.home-arena-podium-card__avatar .results-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1;
    flex: 1 1 auto;
    align-self: stretch;
}

.home-arena-podium-card__crown {
    position: absolute;
    top: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.95rem;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.home-arena-podium-card__rank {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.home-arena-podium-card__name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-arena-podium-card__tokens {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-arena-podium-card--rank-1 .home-arena-podium-card__tokens { color: #4ade80; }
.home-arena-podium-card--rank-2 .home-arena-podium-card__tokens { color: #60a5fa; }
.home-arena-podium-card--rank-3 .home-arena-podium-card__tokens { color: #fb923c; }

.home-arena-podium-card__block {
    width: 100%;
    margin-top: 0.35rem;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
}

.home-arena-podium-card--rank-1 .home-arena-podium-card__block { height: 4.6rem; background: linear-gradient(180deg, rgba(74, 222, 128, 0.35), rgba(74, 222, 128, 0.08)); }
.home-arena-podium-card--rank-2 .home-arena-podium-card__block { height: 3.2rem; background: linear-gradient(180deg, rgba(96, 165, 250, 0.32), rgba(96, 165, 250, 0.07)); }
.home-arena-podium-card--rank-3 .home-arena-podium-card__block { height: 2.4rem; background: linear-gradient(180deg, rgba(251, 146, 60, 0.32), rgba(251, 146, 60, 0.07)); }

.home-arena-podium-card--rank-1 { order: 2; }
.home-arena-podium-card--rank-2 { order: 1; }
.home-arena-podium-card--rank-3 { order: 3; }

.home-arena-row-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.home-arena-row-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.78);
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.home-arena-row-card:focus-visible {
    outline: 2px solid var(--home-green);
    outline-offset: 2px;
}

.home-arena-row-card__rank {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    min-width: 1.6rem;
}

.home-arena-row-card__avatar .results-avatar {
    width: 2.85rem;
    height: 2.85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    margin-right: 0;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.home-arena-row-card__meta {
    flex: 1;
    min-width: 0;
}

.home-arena-row-card__name {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-arena-row-card__tokens {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    margin-top: 0.1rem;
}

.home-arena-row-card--rank-4 .home-arena-row-card__tokens { color: #c084fc; }
.home-arena-row-card--rank-5 .home-arena-row-card__tokens { color: #f87171; }
.home-arena-row-card--rank-6 .home-arena-row-card__tokens { color: #4ade80; }

.home-masters-promo {
    position: relative;
    width: min(100%, 72rem);
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.22);
}

.home-masters-promo__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(2, 8, 14, 0.94) 0%, rgba(2, 8, 14, 0.78) 42%, rgba(2, 8, 14, 0.55) 100%),
        url("./img/herotopmasters.png") center / cover no-repeat;
    filter: saturate(1.05);
}

.home-masters-promo__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 50%, rgba(74, 222, 128, 0.12), transparent 45%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    pointer-events: none;
}

.home-masters-promo__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.35rem 1.45rem;
}

.home-masters-promo__main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 42rem;
}

.home-masters-promo__title {
    margin: 0.45rem 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.home-masters-promo__desc {
    margin: 0 0 0.75rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 34rem;
}

.home-masters-stats--promo {
    margin-top: 0.35rem;
    max-width: 36rem;
}

.home-masters-promo__actions {
    margin-top: 0.85rem;
    justify-content: flex-start;
}

.home-masters-promo__trophy {
    flex: 0 0 auto;
    color: #fbbf24;
    opacity: 0.92;
    padding-right: 0.35rem;
}

.home-scroll-section--banners {
    min-height: min(var(--home-scroll-pane-h), max-content);
    justify-content: flex-start;
    padding-bottom: 2.25rem;
}

.home-scroll-cue {
    align-self: center;
    margin: 0.3rem auto 0;
    width: auto;
    height: auto;
    min-width: 1.35rem;
    min-height: 1.1rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--home-green);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    animation: home-scroll-cue-bounce 2.2s ease-in-out infinite;
}

.home-scroll-cue:hover,
.home-scroll-cue:focus-visible {
    border: none;
    background: transparent;
    color: var(--home-green-mid);
    outline: none;
}

@keyframes home-scroll-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes home-scroll-cue-bounce-hero {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

.home-scroll-section--hero .home-scroll-cue {
    animation: home-scroll-cue-bounce-hero 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .lobby-screen.is-home-scroll .lobby-main-scroll {
        scroll-behavior: auto;
    }
    .home-scroll-cue {
        animation: none;
    }
}

.lobby-home-panel.hidden {
    display: none !important;
}

.lobby-sub-hero {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #06080d;
    --sub-hero-bg: url("./img/herotop.png");
}

.lobby-sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #06080d;
    background-image: var(--sub-hero-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    pointer-events: none;
}

.lobby-sub-hero--results {
    --sub-hero-bg: url("./img/bg/topresults.png");
}

.lobby-sub-hero--leaderboard {
    --sub-hero-bg: url("./img/bg/topleaderboard.png");
}

.lobby-sub-hero--token {
    --sub-hero-bg: url("./img/bg/toptvttoken.png");
}

.lobby-sub-hero--masters {
    --sub-hero-bg: url("./img/bg/toptvtmasters.png");
}

.lobby-sub-hero--community {
    --sub-hero-bg: url("./img/bg/topcreate.png");
}

.lobby-sub-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 92% 82% at 50% 42%,
            rgba(0, 0, 0, 0.38) 0%,
            rgba(0, 0, 0, 0.48) 55%,
            rgba(0, 0, 0, 0.58) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, transparent 14%),
        linear-gradient(to left, rgba(0, 0, 0, 0.55) 0%, transparent 14%),
        linear-gradient(180deg, rgba(7, 12, 16, 0.32), rgba(7, 12, 16, 0.55));
    text-align: center;
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.3rem;
}

.lobby-sub-hero__badge {
    margin: 0;
    color: #86efac;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lobby-sub-hero__overlay h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.87rem, 3.73vw, 2.93rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lobby-sub-hero__overlay p {
    margin: 0;
    color: #dbeafe;
    font-size: 1.15rem;
    line-height: 1.35;
    max-width: 72ch;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-hero {
    position: relative;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    min-height: clamp(14rem, 42vw, 28rem);
    --hero-fade-duration: 2000ms;
    --hero-fade-ease: cubic-bezier(0.42, 0.08, 0.24, 1);
}

.home-hero-track {
    position: relative;
    min-height: inherit;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
        opacity var(--hero-fade-duration) var(--hero-fade-ease),
        visibility 0s linear var(--hero-fade-duration);
    visibility: hidden;
}

.home-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    transition:
        opacity var(--hero-fade-duration) var(--hero-fade-ease),
        visibility 0s linear 0s;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero {
        --hero-fade-duration: 120ms;
        --hero-fade-ease: ease-out;
    }
}

.lobby-home-panel .home-crypto-ticker {
    flex-shrink: 0;
}

.home-crypto-ticker {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    margin: 0 0 0.7rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 14, 0.72);
    min-height: 2.35rem;
}

.home-crypto-ticker-badge {
    flex-shrink: 0;
    align-self: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(187, 247, 208, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    border-radius: 6px;
    padding: 0.2rem 0.38rem;
    line-height: 1;
}

.home-crypto-ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.home-crypto-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0;
    will-change: transform;
    animation: homeCryptoTickerMarquee var(--ticker-duration, 42s) linear infinite;
}

.home-crypto-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 2.5rem;
}

.home-crypto-ticker-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

.home-crypto-ticker-pair {
    font-weight: 700;
    color: #e2e8f0;
}

.home-crypto-ticker-price {
    font-variant-numeric: tabular-nums;
    color: #cbd5e1;
}

.home-crypto-ticker-pct {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.72rem;
}

.home-crypto-ticker-item.is-up .home-crypto-ticker-pct {
    color: #4ade80;
}

.home-crypto-ticker-item.is-down .home-crypto-ticker-pct {
    color: #f87171;
}

.home-crypto-ticker-sep {
    display: inline-block;
    width: 1px;
    height: 0.85rem;
    margin: 0 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    vertical-align: middle;
}

@keyframes homeCryptoTickerMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--ticker-shift, 50%)));
    }
}

.home-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
    pointer-events: none;
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, var(--home-hero-glow), transparent 48%),
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(7, 12, 16, 0.55), rgba(7, 12, 16, 0.78));
}

.home-hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(1.4rem, 4vw, 2.4rem) 1.1rem 1.15rem;
}

.home-hero .home-badge {
    border: none;
    outline: none;
}

.home-badge {
    display: inline-block;
    width: min(100%, 52rem);
    padding: 0.34rem 1.25rem 0.4rem;
    margin: 0 auto 0.72rem;
    border-top: 1px solid rgba(74, 222, 128, 0.72);
    border-bottom: 1px solid rgba(74, 222, 128, 0.72);
    color: #4ade80;
    font-size: clamp(1rem, 2.2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: none;
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.14), rgba(74, 222, 128, 0.04));
    box-shadow:
        inset 0 1px 0 rgba(74, 222, 128, 0.22),
        inset 0 -1px 0 rgba(74, 222, 128, 0.22),
        0 0 16px rgba(74, 222, 128, 0.18);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.28);
}

.home-hero h1 {
    margin: 0;
    font-size: 4.4rem;
    line-height: 1.1;
    color: #f8fafc;
}

.home-hero h1 span { color: var(--home-green); }

.home-hero p {
    margin: 0.62rem auto 0;
    max-width: 52rem;
    color: #f8fafc;
    font-size: 1.73rem;
    line-height: 1.35;
}

.home-hero-actions {
    display: flex;
    gap: 0.72rem;
    margin-top: 1.08rem;
    flex-wrap: wrap;
    justify-content: center;
}

.home-hero-content--masters h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.home-masters-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 52rem;
    margin: 1rem auto 0;
    width: 100%;
}

.home-masters-stat {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.55rem 0.65rem 0.62rem;
    background: rgba(2, 8, 14, 0.62);
    backdrop-filter: blur(8px);
    text-align: left;
}

.home-masters-stat__label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.home-masters-stat__value {
    display: block;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.home-masters-stat__value--accent {
    color: var(--home-green);
}

.home-masters-stat__value--countdown {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.home-masters-stat__of {
    font-size: 0.72em;
    font-weight: 600;
    color: #94a3b8;
}

.home-hero-slide--community .home-hero-scrim--community {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88));
}

.home-hero-content--community {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto;
}

.home-hero-content--community h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.home-hero-content--community p {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    max-width: 42rem;
}

.home-hero-content--community .home-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.home-hero-content--community .home-cta {
    width: min(100%, 22rem);
    justify-content: center;
}

.home-community-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 36rem;
    margin: 1.1rem auto 0;
    width: 100%;
}

.home-community-stat {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.7rem 0.75rem 0.65rem;
    background: rgba(2, 8, 14, 0.55);
    text-align: center;
}

.home-community-stat__value {
    display: block;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.home-community-stat__label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
}

.home-community-stat__sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: lowercase;
}

.home-masters-fill {
    margin-top: 0.38rem;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.home-masters-fill__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.55), var(--home-green));
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.45);
    transition: width 0.45s ease;
}

.home-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: auto;
    height: auto;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.15rem 0.35rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--home-green);
    font-size: 2.35rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.home-hero-nav:hover,
.home-hero-nav:focus-visible {
    border: none;
    background: transparent;
    color: var(--home-green-mid);
    outline: none;
}

.home-hero-nav--prev { left: clamp(0.35rem, 2.2vw, 1.25rem); }
.home-hero-nav--next { right: clamp(0.35rem, 2.2vw, 1.25rem); }

.home-hero-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.4rem;
}

.home-hero-dot {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.45s var(--hero-fade-ease, ease-out), box-shadow 0.45s ease, transform 0.45s ease;
}

.home-hero-dot.is-active {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
    transform: scale(1.08);
}

.home-cta {
    border-radius: var(--tvt-btn-radius);
    border: 1px solid transparent;
    padding: 0.72rem 1.18rem;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.home-cta-primary {
    background: var(--home-cta-gradient);
    border-color: rgba(var(--home-green-rgb), 0.58);
    color: #052e16;
}

.home-cta-secondary {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #e2e8f0;
}

.home-upcoming {
    margin-top: 0.75rem;
}

#homeTournamentsSection .home-upcoming,
.home-community-tournaments-block .home-upcoming--community {
    width: min(100%, 72rem);
    margin-left: auto;
    margin-right: auto;
    padding: 1rem clamp(0.85rem, 2.5vw, 1.15rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.48)),
        url("./img/bg/blurred_chart.png") center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.05), 0 18px 50px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.home-upcoming-row + .home-upcoming-row {
    margin-top: 0.7rem;
}

.tournament-lobby-zone--home .home-upcoming-row {
    padding-top: 0.4rem;
}

.tournament-lobby-zone--home .carousel-section-head {
    margin: 0.5rem 0 0.55rem;
}

.tournament-lobby-zone--home .home-upcoming-carousel-wrap {
    margin-top: 0.15rem;
}

.home-upcoming-row-title {
    margin: 0 0 0.35rem;
    text-align: center;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.carousel-section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.6rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(8, 12, 20, 0) 0%, rgba(8, 12, 20, 0.55) 20%, rgba(8, 12, 20, 0.62) 50%, rgba(8, 12, 20, 0.55) 80%, rgba(8, 12, 20, 0) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.carousel-section-head::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.26) 28%, rgba(148, 163, 184, 0.26) 72%, transparent);
    z-index: 0;
}

.carousel-section-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    padding: 0.42rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 20, 0.78);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel-section-badge--live {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(34, 197, 94, 0.16);
}

.carousel-section-badge--soon {
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(251, 146, 60, 0.16);
}

.carousel-section-badge--past {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(148, 163, 184, 0.14);
}

.carousel-section-badge--pinned {
    color: #f8fafc;
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(250, 204, 21, 0.16);
}

.carousel-section-count {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    min-width: 2.6rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 20, 0.78);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.home-upcoming-dots {
    display: flex;
    justify-content: center;
    gap: 0.34rem;
    margin-top: 0.2rem;
    min-height: 0.7rem;
}

.home-upcoming-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.34);
    cursor: pointer;
}

.home-upcoming-dot.is-active {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.48);
}

.home-upcoming-head {
    margin: 0 auto 0.7rem;
    max-width: 40rem;
    text-align: center;
}

.home-upcoming-tag {
    color: var(--home-green);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.home-upcoming-head h2,
.home-upcoming-title {
    margin: 0.18rem 0 0;
    color: #f8fafc;
    font-size: clamp(1.45rem, 4.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-transform: none;
}

.home-upcoming-head p {
    margin: 0.25rem 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.home-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.home-upcoming-card {
    border: none;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 100%),
        var(--home-upcoming-card-bg, url("./img/ccards/card1.png")) center / cover no-repeat;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-upcoming-card__inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.home-upcoming-card__top {
    flex: 0 0 auto;
    padding: 0.58rem 0.55rem 0.35rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-upcoming-card__spacer {
    flex: 1 1 auto;
    min-height: 1.25rem;
}

.home-upcoming-card__ribbon {
    flex: 0 0 auto;
    position: relative;
    padding: 0.55rem 0.62rem 0.62rem;
    border-radius: 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-upcoming-card__buyin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.4rem 0.52rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-upcoming-card__ribbon .home-upcoming-card__field-lbl {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f8fafc;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.home-upcoming-card__buyin-val {
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.home-upcoming-card__tournament-name {
    margin: 0;
    padding: 0 0.2rem;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.18;
    color: #f8fafc;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 0 18px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-upcoming-card__duration {
    margin-top: 0.24rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #dbeafe;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.home-upcoming-card__stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-top: 0;
    padding: 0.34rem 0.5rem;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-upcoming-card__buyin-row + .home-upcoming-card__stat-row {
    margin-top: 0.46rem;
}

.home-upcoming-card__stat-row + .home-upcoming-card__stat-row {
    margin-top: 0.36rem;
}

.home-upcoming-card__stat-row .home-upcoming-card__field-lbl {
    flex-shrink: 0;
}

.home-upcoming-card__field-val {
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f1f5f9;
    text-align: right;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    min-width: 0;
    word-break: break-word;
}

.home-upcoming-card__ribbon .home-upcoming-action {
    margin-top: 0.62rem;
}

.home-upcoming-card__ribbon .home-upcoming-action + .home-upcoming-action {
    margin-top: 0.42rem;
}

.home-upcoming-action {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.58rem 0.72rem;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-upcoming-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.42);
}

.home-upcoming-action.is-play {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #ecfdf5;
}

.home-upcoming-action.is-buyin {
    border-color: rgba(226, 232, 240, 0.35);
    background: rgba(241, 245, 249, 0.12);
    color: #ffffff;
}

.home-strip {
    margin-top: 0.72rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-strip > div {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 0.62rem 0.7rem;
    background: rgba(10, 14, 20, 0.72);
    text-align: center;
}

.home-strip strong {
    display: block;
    color: #f1f5f9;
    font-size: 0.92rem;
}

.home-strip span {
    display: block;
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 0.84rem;
}

/* Četiri puna bannera ispod TOP TOURNAMENTS (ukupna visina slična starom videu + 2 panela) */
.home-banner-stack {
    --home-banner-slot-h: clamp(10.95rem, 27vw, 16.05rem);
    margin-top: clamp(0.55rem, 2vw, 0.85rem);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.home-banner-slot {
    width: 100%;
    min-height: var(--home-banner-slot-h);
    max-height: var(--home-banner-slot-h);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.55);
}

.home-banner-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-masters {
    margin-top: 0.72rem;
    border: 1px solid rgba(var(--home-green-rgb), 0.32);
    border-radius: 12px;
    padding: 0.9rem;
    background:
        radial-gradient(circle at top right, rgba(var(--home-green-rgb), 0.18), transparent 42%),
        rgba(7, 12, 16, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    text-align: center;
}

.home-masters-tag {
    color: var(--home-green);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.home-masters h3 {
    margin: 0.25rem 0 0;
    color: #f8fafc;
    font-size: 1.16rem;
}

.home-masters p {
    margin: 0.28rem 0 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    max-width: 690px;
}

.home-how {
    margin-top: 0.72rem;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 0.86rem;
    background: rgba(7, 10, 14, 0.76);
    text-align: center;
    scroll-margin-top: 0.85rem;
}

.home-how:focus {
    outline: none;
}

.home-how:focus-visible {
    box-shadow: 0 0 0 2px rgba(var(--home-green-rgb), 0.65);
}

.home-faq-teaser {
    margin-top: 0.72rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0.86rem;
    background: rgba(7, 10, 14, 0.76);
}

.home-how h3,
.home-faq-teaser h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.12rem;
    text-align: center;
}

.home-steps {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-steps article {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.68rem;
    background: rgba(10, 14, 20, 0.7);
}

.home-how .home-steps article {
    border: none;
    outline: none;
    box-shadow: none;
}

.home-steps strong {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.home-steps p,
.home-faq-teaser p {
    margin: 0.3rem 0 0;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.home-faq-teaser .home-cta {
    margin-top: 0.55rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.home-z2h {
    margin-top: 0.72rem;
    border: 1px solid rgba(255,255,255,0.14);
    outline: none;
    border-radius: 12px;
    padding: 0.86rem 0.75rem 1rem;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.1), transparent 45%),
        rgba(7, 10, 14, 0.82);
    text-align: center;
}

.home-z2h-tag {
    color: var(--home-green);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.home-z2h-title {
    margin: 0.35rem auto 0;
    color: #f8fafc;
    font-size: 1.18rem;
    max-width: 720px;
}

.home-z2h-sub {
    margin: 0.35rem auto 0.65rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 720px;
    text-align: center;
}

.home-path {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.15rem;
    overflow-x: visible;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.home-path-step {
    flex: 0 0 auto;
    min-width: 6.5rem;
    text-align: center;
    padding: 0.55rem 0.45rem;
    border: none;
    outline: none;
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.85);
}

.home-path-step--final {
    border: none;
    background:
        linear-gradient(180deg, rgba(var(--home-green-rgb), 0.16), rgba(10, 14, 20, 0.9));
}

.home-path-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(var(--home-green-rgb), 0.22);
    border: none;
    outline: none;
    color: var(--home-green-mid);
}

.home-path-step--final .home-path-n {
    background: rgba(var(--home-green-rgb), 0.48);
    border: none;
    color: #052e16;
}

.home-path-t {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.25;
}

.home-path-s {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
}

.home-path-arr {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 0.15rem;
    color: var(--home-green);
    font-size: 0.85rem;
    user-select: none;
}

/* Kad sve stanje u jedan red, strelice ostaju uz korake; wrap centrira cijeli blok */
@media (min-width: 1200px) {
    .home-path {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
    }
}

@media (max-width: 1199px) {
    .home-path .home-path-arr {
        display: none;
    }
    .home-path {
        gap: 0.45rem;
    }
}

.home-tok-banner {
    margin-top: 0.72rem;
    border: 1px solid rgba(var(--home-green-rgb), 0.42);
    border-radius: 12px;
    padding: 1rem 1rem;
    background:
        linear-gradient(135deg, rgba(var(--home-green-rgb), 0.14), rgba(7, 12, 16, 0.92));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.home-tok-label {
    font-size: 0.78rem;
    color: var(--home-green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.home-tok-headline {
    font-size: 1.14rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.home-tok-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.45;
    max-width: 520px;
}

.home-tok-right {
    text-align: center;
    min-width: 8.5rem;
}

.home-tok-stat-label {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.home-tok-stat-value {
    font-size: 1.52rem;
    font-weight: 700;
    color: var(--home-green);
    font-variant-numeric: tabular-nums;
}

.home-tok-stat-hint {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.home-tok-cta {
    margin-top: 0.55rem;
}

.lobby-header-right {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.35rem;
}

.lobby-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lobby-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 2px solid rgba(96, 165, 250, 0.45);
    border-radius: 50%;
    background: rgba(8, 12, 20, 0.85);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.lobby-profile-btn:hover,
.lobby-profile-btn:focus-visible {
    border-color: rgba(125, 211, 252, 0.75);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
    outline: none;
    transform: scale(1.03);
}

.lobby-profile-btn .results-avatar,
.lobby-profile-btn__avatar {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 50%;
    font-size: 0.62rem !important;
}

.lobby-profile-btn--mobile {
    display: none;
}

.lobby-profile-btn--mobile.hidden {
    display: none !important;
}

.lobby-profile-btn--login {
    width: auto;
    min-width: 4.6rem;
    height: 2.15rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border-color: rgba(74, 222, 128, 0.42);
    background: rgba(22, 101, 52, 0.22);
    overflow: visible;
}

.lobby-profile-btn--login:hover,
.lobby-profile-btn--login:focus-visible {
    border-color: rgba(74, 222, 128, 0.72);
    background: rgba(22, 101, 52, 0.34);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.lobby-profile-btn__login-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bbf7d0;
    white-space: nowrap;
    line-height: 1;
}

.lobby-profile-menu-wrap {
    position: relative;
    display: inline-flex;
}

.profile-avatar-menu {
    position: fixed;
    z-index: 1200;
    min-width: 11.5rem;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 19, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.profile-avatar-menu.hidden {
    display: none !important;
}

.profile-avatar-menu__item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
}

.profile-avatar-menu__item:hover,
.profile-avatar-menu__item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.profile-avatar-menu__item--danger {
    color: #fca5a5;
}

.profile-avatar-menu__sep {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0.45rem 0.35rem 0.35rem;
}

.open-tournaments-modal {
    max-width: 26rem;
}

.open-tournaments-counter {
    text-align: center;
    margin-bottom: 0.75rem;
}

.open-tournaments-carousel {
    min-height: 7.5rem;
    margin-bottom: 1rem;
}

.open-tournaments-card {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.open-tournaments-card h4 {
    margin: 0.45rem 0 0.35rem;
    font-size: 1.05rem;
}

.open-tournaments-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.open-tournaments-nav {
    min-width: 2.5rem;
    padding-inline: 0.65rem;
}

.protection-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.balance-visibility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-left: 0.25rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.85);
    cursor: pointer;
}

.balance-visibility-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.balance-visibility-toggle__icon.hidden {
    display: none !important;
}

.wallet-page-panel .wallet-page-balance-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.wallet-page-panel .wallet-page-balance-row strong {
    font-size: 1.35rem;
    color: #86efac;
}

.wallet-deposit-section {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(8, 12, 20, 0.55);
}

.wallet-deposit-chains {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.5rem 0 0.85rem;
}

.wallet-deposit-chain {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.wallet-deposit-chain.is-active {
    border-color: rgba(134, 239, 172, 0.55);
    color: #86efac;
    background: rgba(20, 83, 45, 0.35);
}

.wallet-deposit-address-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.wallet-deposit-address-row .btn {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    align-self: stretch;
}

.wallet-deposit-address-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 520px) {
    .wallet-deposit-address-row {
        flex-direction: column;
    }

    .wallet-deposit-address-row .btn {
        width: 100%;
    }
}

.wallet-deposit-status {
    color: #fbbf24;
    margin-top: 0.35rem;
}

.wallet-deposit-chain-hint {
    margin-top: 0.35rem;
}

.wallet-withdraw-section {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(8, 12, 20, 0.55);
}

.wallet-withdraw-to-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.wallet-withdraw-amount-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}

.wallet-withdraw-amount-field {
    flex: 1 1 8rem;
    min-width: 0;
}

.wallet-withdraw-amount-row .btn {
    margin-top: 0;
    width: auto;
    flex: 0 0 auto;
}

.wallet-withdraw-status {
    color: #fbbf24;
    margin-top: 0.5rem;
}

.trade-tx-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem 0.15rem 0.5rem;
    max-height: min(52vh, 420px);
    overflow: auto;
}

.trade-tx-row {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.9fr) minmax(5rem, 1fr) 3.5rem minmax(5rem, 1fr);
    gap: 0.45rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
}

.trade-tx-row__time {
    color: rgba(148, 163, 184, 0.95);
    font-variant-numeric: tabular-nums;
}

.trade-tx-row__trader {
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-tx-row__meta {
    color: rgba(203, 213, 225, 0.92);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.profile-page-panel {
    max-width: min(980px, 100%);
    margin: 0 auto;
    padding: 0.35rem 0.75rem 1.5rem;
}

.profile-page-panel .profile-info-page {
    margin-bottom: 0;
}

.profile-active-block {
    margin-top: clamp(1.35rem, 4.5vw, 2rem);
    padding-top: clamp(1rem, 3.5vw, 1.45rem);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-recent-block {
    margin-top: clamp(1.5rem, 5vw, 2.35rem);
    padding-top: clamp(1rem, 3.5vw, 1.45rem);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-active-block h3,
.profile-badges-block h3,
.profile-recent-block h3 {
    margin: 0.45rem 0 1rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

#profileActiveTournaments {
    margin-top: 0.2rem;
}

.profile-active-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
}

.profile-active-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: 12px;
    background: rgba(8, 16, 24, 0.82);
    color: #f8fafc;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.profile-active-card:hover {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(12, 24, 36, 0.92);
    transform: translateY(-1px);
}

.profile-active-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
}

.profile-active-card__name {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.profile-active-card__status {
    flex-shrink: 0;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-active-card__status--live {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.profile-active-card__status--soon {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.profile-active-card__status--past {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.profile-active-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    color: #94a3b8;
    font-size: 0.72rem;
}

.profile-active-empty {
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.profile-edit-block {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.profile-custom-avatar-preview {
    flex-shrink: 0;
}

.profile-custom-avatar-preview__img,
.profile-custom-avatar-preview .results-avatar {
    width: 4.2rem !important;
    height: 4.2rem !important;
    min-width: 4.2rem !important;
    min-height: 4.2rem !important;
    margin: 0 !important;
    border: 2px solid rgba(96, 165, 250, 0.55);
    font-size: 0.85rem !important;
}

.results-avatar--has-image {
    color: transparent;
    text-shadow: none;
}

.profile-page-save {
    margin-top: 1rem;
    width: 100%;
    max-width: 16rem;
}

.profile-info-avatar .results-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1;
    flex: 1 1 auto;
    align-self: stretch;
    border-radius: 50%;
    font-size: 1.4rem;
}

.profile-info-avatar .results-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
}

.avatar-crop-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
}

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

.avatar-crop-modal {
    width: min(100%, 22rem);
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.avatar-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.avatar-crop-header h3 {
    margin: 0;
    font-size: 1rem;
}

.avatar-crop-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin: 0.55rem 0 0.45rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #050608;
    touch-action: none;
    cursor: grab;
}

.avatar-crop-stage.is-dragging {
    cursor: grabbing;
}

.avatar-crop-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-crop-zoom-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.avatar-crop-zoom {
    width: 100%;
    margin-bottom: 0.75rem;
}

.avatar-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.lang-select-wrap {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
}

.lobby-header-right .lang-select-wrap {
    display: none !important;
}

.lang-select {
    min-width: 10.5rem;
    max-width: 12.5rem;
    padding: 0.38rem 0.55rem;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10, 14, 20, 0.85);
    color: #e2e8f0;
    font-size: 0.8rem;
}

.lang-select:focus {
    outline: none;
    border-color: rgba(96,165,250,0.5);
}

.lobby-balance {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.lobby-balance strong {
    color: var(--success);
    margin-left: 0.25rem;
}

.lobby-balance.guest-only-label-hidden .balance-label {
    display: none;
}

.lobby-menu-balance {
    display: none;
}

.btn-icon {
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--tvt-btn-radius);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.12);
}

.btn-settings {
    font-size: 1.1rem;
    padding: 0.5rem 0.65rem;
}

.lobby-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: block;
    overflow: visible;
    min-height: 0;
}

.lobby-list-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.95rem 1rem 1rem;
    overflow: visible;
}

.lobby-page-heading {
    text-align: center;
    padding: 0.2rem 0.4rem 0.1rem;
}

.lobby-page-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: #f8fafc;
}

.lobby-page-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.lobby-sidebar {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    padding: 1.25rem;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
        rgba(7, 9, 12, 0.62);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.lobby-detail-panel {
    position: relative;
    min-width: 0;
    padding: 1rem 1.15rem;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012)),
        rgba(8, 11, 16, 0.75);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.tournament-detail-inner {
    min-height: 120px;
}

.tournament-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        rgba(255,255,255,0.02);
}

.tournament-detail-card {
    padding: 1.1rem 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
        rgba(12, 16, 22, 0.94);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255,255,255,0.04);
}

.tournament-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.tournament-detail-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.tournament-detail-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

.tournament-detail-desc {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tournament-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.85rem;
    margin-bottom: 1rem;
}

.detail-stat {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.detail-stat .detail-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.detail-stat strong {
    font-size: 0.95rem;
    color: #f8fafc;
}

.tournament-detail-times {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tournament-detail-section {
    margin-bottom: 1.1rem;
}

.detail-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(248, 250, 252, 0.88);
}

.tournament-prize-breakdown {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tournament-prize-breakdown--compact .tournament-prize-table-wrap {
    max-height: 140px;
}

.tournament-prize-breakdown__note {
    margin: 0 0 0.45rem;
}

.tournament-prize-table-wrap {
    max-height: 220px;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.tournament-prize-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.tournament-prize-table th,
.tournament-prize-table td {
    padding: 0.35rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-prize-table th {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    color: rgba(248, 250, 252, 0.88);
    font-weight: 600;
    z-index: 1;
}

.tournament-prize-table tbody tr:last-child td {
    border-bottom: none;
}

.tournament-detail-section--prize-before-lb {
    margin-bottom: 0.65rem;
}

.participant-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.22);
}

.participant-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.participant-row:last-child {
    border-bottom: none;
}

.leaderboard-row--self {
    background: rgba(59, 130, 246, 0.14);
}

.participant-rank {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 2rem;
}

.participant-name {
    color: #e2e8f0;
}

.detail-muted {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-note {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(148, 163, 184, 0.95);
}

.btn-tournament-play {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #052e1a;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 48%, #16a34a 100%);
    box-shadow:
        0 10px 28px rgba(34, 197, 94, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-tournament-play:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 32px rgba(34, 197, 94, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.28);
}

.btn-tournament-action {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(59,130,246,0.25), rgba(59,130,246,0.1));
    color: #dbeafe;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
}

.btn-tournament-action:hover {
    background: linear-gradient(180deg, rgba(59,130,246,0.35), rgba(59,130,246,0.14));
}

.btn-tournament-action.is-play {
    border-color: rgba(34,197,94,0.5);
    background: linear-gradient(180deg, rgba(74,222,128,0.25), rgba(34,197,94,0.12));
    color: #dcfce7;
}

.btn-tournament-action.is-full:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    border-color: rgba(148, 163, 184, 0.35);
    background: linear-gradient(180deg, rgba(71, 85, 105, 0.2), rgba(51, 65, 85, 0.12));
    color: #94a3b8;
}

.btn-tournament-action.btn-tournament-detail.is-detail {
    border-color: rgba(148, 163, 184, 0.4);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.15), rgba(71, 85, 105, 0.1));
    color: #e2e8f0;
}

.lobby-title {
    font-size: 1.18rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.tournament-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.filter-btn.active {
    background: linear-gradient(180deg, #4f8ff8 0%, #2e6fe4 100%);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.28);
}

.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Izdvojeni (pinned) turniri — ispod sub-heroja, iznad tri kolone */
.pinned-tournaments-section {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 1rem;
}
.pinned-tournaments-section__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}
.pinned-tournaments-section__pin {
    font-size: 1rem;
    line-height: 1;
    filter: saturate(1.2);
}
.pinned-tournaments-section__title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.92);
}
.pinned-tournaments-carousel-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
}
.pinned-tournaments-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.pinned-tournaments-track {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    padding: 0.1rem 0 0.35rem;
}
.pinned-feature-card {
    --pinned-accent: #22c55e;
    flex: 0 0 clamp(250px, 30vw, 340px);
    min-width: 250px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--pinned-accent) 65%, rgba(255,255,255,0.12));
    background: linear-gradient(165deg, rgba(18, 22, 28, 0.98), rgba(6, 8, 11, 0.99));
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.35),
        0 16px 40px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    text-align: left;
}
.pinned-feature-card__body {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.55rem;
    flex: 1;
    min-height: 0;
}
.pinned-feature-card__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.pinned-feature-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.pinned-feature-card__pill {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: color-mix(in srgb, var(--pinned-accent) 88%, #000 12%);
    color: #0a0a0a;
}
.pinned-feature-card__tag-meta {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pinned-feature-card__title {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
}
.pinned-feature-card__subtitle {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #94a3b8;
    font-style: italic;
}
.pinned-feature-card__countdown {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pinned-accent);
}
.pinned-feature-card__countdown span {
    color: #64748b;
    font-weight: 600;
    margin-right: 0.25rem;
}
.pinned-feature-card__reg {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}
.pinned-feature-card__aside {
    flex: 0 0 5.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.15rem;
}
.pinned-feature-card__aside-icon {
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.pinned-feature-card__aside-big {
    font-size: 1rem;
    font-weight: 900;
    color: var(--pinned-accent);
    line-height: 1.1;
    word-break: break-word;
}
.pinned-feature-card__aside-sub {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.88);
}
.pinned-feature-card__cta {
    margin: 0 0.75rem 0.75rem;
    width: calc(100% - 1.5rem);
    align-self: center;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    background: color-mix(in srgb, var(--pinned-accent) 92%, #000 8%);
    color: #0a0a0a;
    transition: filter 0.15s ease, transform 0.12s ease;
}
.pinned-feature-card__cta:hover:not(:disabled) {
    filter: brightness(1.06);
}
.pinned-feature-card__cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.pinned-feature-card__cta.is-detail {
    background: color-mix(in srgb, var(--pinned-accent) 35%, rgba(255,255,255,0.12));
    color: #e2e8f0;
}

/* Chart na cijeloj sekciji (home) / lobby-content — kao test-lobby-zone */
.tournament-chart-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.home-scroll-section--tournaments.tournament-chart-surface {
    justify-content: flex-start;
    background-color: #06080d;
    overflow: visible;
}

.home-scroll-section--tournaments .home-scroll-cue,
.home-scroll-section--arena .home-scroll-cue,
.home-scroll-section--masters-promo .home-scroll-cue {
    position: relative;
    z-index: 6;
    flex-shrink: 0;
}

.home-scroll-section--discover {
    min-height: auto;
    justify-content: flex-start;
    padding: var(--home-section-pad-y, 2.1rem) 1.05rem 4.5rem;
    overflow: visible;
}

.home-discover-stack {
    width: min(100%, 72rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--home-discover-stack-gap, 8.1rem);
}

.home-discover-head {
    margin-bottom: 0.65rem;
}

.home-discover-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.home-discover-tag--green {
    color: var(--home-green);
}

.home-discover-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.home-discover-sub {
    margin: 0.3rem 0 0;
    color: #94a3b8;
    font-size: 0.86rem;
}

.home-scroll-section--community {
    min-height: auto;
    justify-content: flex-start;
    padding: var(--home-section-pad-y, 2.1rem) 1.05rem 4.5rem;
    overflow: visible;
}

.home-community-stack {
    width: min(100%, 72rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.home-create-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.home-create-step-card {
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 22, 0.92);
}

.home-create-step-card--wide {
    margin-bottom: 0.75rem;
}

.home-create-step-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    margin-bottom: 0.55rem;
    color: var(--home-green);
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.28);
}

.home-create-step-card__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.home-create-step-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

.home-create-step-card__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #94a3b8;
}

.home-earnings-calc {
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 10, 18, 0.95);
}

.home-earnings-calc__tag {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-green);
    margin-bottom: 0.25rem;
}

.home-earnings-calc__title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
}

.home-earnings-slider + .home-earnings-slider {
    margin-top: 1rem;
}

.home-earnings-slider__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.home-earnings-slider__head strong {
    color: #f8fafc;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.home-earnings-slider__track {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-earnings-slider__track .home-earnings-range {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.home-earnings-step-btn {
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.home-earnings-step-btn:hover {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.home-earnings-step-btn:active {
    transform: scale(0.96);
}

.home-earnings-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-green) 0%, var(--home-green) var(--earn-pct, 50%), rgba(255,255,255,0.12) var(--earn-pct, 50%));
    outline: none;
}

.home-earnings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid var(--home-green);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    cursor: pointer;
}

.home-earnings-slider__scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #64748b;
}

.home-earnings-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1.1rem;
}

.home-earnings-result {
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.home-earnings-result span {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: #94a3b8;
}

.home-earnings-result strong {
    display: block;
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.1;
}

.home-earnings-result--you {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
}
.home-earnings-result--you span { color: var(--home-green); }
.home-earnings-result--you strong { color: var(--home-green); }

.home-earnings-result--fee strong { color: #f8fafc; }

.home-earnings-result--pool {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.1);
}
.home-earnings-result--pool span { color: #60a5fa; }
.home-earnings-result--pool strong { color: #60a5fa; }

.home-upcoming--community {
    width: 100%;
}

.home-upcoming-head--community {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    margin: 0 0 0.7rem;
    max-width: none;
    width: 100%;
}

.home-community-create-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.home-community-create-btn:hover {
    filter: brightness(1.08);
}

/* Community karusel: smoked-lobby-card--community (tournament-lobby-cards.css) */

.home-community-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.home-community-card__badge {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.home-community-card__status {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}
.home-community-card__status.is-live { color: var(--home-green); }
.home-community-card__status.is-open { color: #60a5fa; }
.home-community-card__status.is-ended { color: #94a3b8; }

.lobby-community-panel {
    --home-green: #4ade80;
    --home-green-soft: #bbf7d0;
    --home-green-mid: #86efac;
    --home-green-rgb: 34, 197, 94;
    --home-green-dark-rgb: 22, 163, 74;
    --home-cta-gradient: linear-gradient(180deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    --home-hero-glow: rgba(34, 197, 94, 0.14);
    --home-section-stack-gap: 0.9rem;
    --home-section-pad-y: 2.1rem;
    --home-section-pad-bottom: 2.4rem;
    --home-section-inner-gap: 2.1rem;
    --home-discover-stack-gap: 8.1rem;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0 clamp(0.85rem, 3vw, 1.35rem) 2.5rem;
    background: #0a0a0a;
    overflow: visible;
}

.lobby-community-panel.hidden {
    display: none !important;
}

.lobby-community-panel__carousels {
    width: min(100%, 72rem);
    margin: 0.75rem auto 1.25rem;
    padding: 1rem clamp(0.85rem, 2.5vw, 1.15rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.5)),
        url("./img/bg/blurred_chart.png") center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.lobby-community-panel__stack {
    width: min(100%, 72rem);
    margin: 0 auto;
    padding-top: 0.25rem;
    box-sizing: border-box;
}

.lobby-community-strip {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#lobbyCommunityStrip {
    width: min(100%, 72rem);
    margin: 1.25rem auto 1.25rem;
    padding: 1rem clamp(0.85rem, 2.5vw, 1.15rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.48)),
        url("./img/bg/blurred_chart.png") center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.05), 0 18px 50px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.lobby-community-strip__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.lobby-community-strip__title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    color: #f8fafc;
}

.lobby-community-strip__more {
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 999px;
    padding: 0.38rem 0.85rem;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.lobby-community-strip__more:hover {
    background: rgba(34, 197, 94, 0.22);
}

.lobby-community-triple .home-upcoming-carousel-wrap {
    margin-top: 0.35rem;
}

.lobby-community-triple .home-upcoming-carousel {
    max-height: none;
}

@media (max-width: 900px) {
    .lobby-community-triple.tournaments-triple-col {
        grid-template-columns: 1fr;
    }
}

.home-community-card__title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.home-community-card__org {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.home-community-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.home-community-card__tag {
    font-size: 0.62rem;
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.home-community-card__meta {
    display: flex;
    gap: 0.65rem;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 0.55rem;
}

.home-community-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-community-card__pool-lbl {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.home-community-card__pool {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--home-green);
}

.home-community-card__enter {
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.home-community-organizers-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-community-organizer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 12, 20, 0.9);
}

.home-community-organizer__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #e2e8f0;
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.home-community-organizer__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.home-community-organizer__handle {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.92rem;
}

.home-community-organizer__tier {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    text-transform: uppercase;
}
.home-community-organizer__tier--elite { color: #fb923c; background: rgba(251, 146, 60, 0.12); }
.home-community-organizer__tier--pro { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.home-community-organizer__tier--rookie { color: #94a3b8; background: rgba(148, 163, 184, 0.12); }

.home-community-organizer__stats {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.home-community-organizer__paid {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--home-green);
}

@media (min-width: 768px) {
    .home-create-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-community-stack {
        max-width: 72rem;
    }
}

@media (max-width: 520px) {
    .home-earnings-results {
        grid-template-columns: 1fr;
    }
    .home-upcoming-head--community {
        flex-direction: column;
        align-items: stretch;
    }
}

.home-how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-how-step {
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.78);
}

.home-how-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.home-how-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--home-green);
    background: rgba(74, 222, 128, 0.08);
}

.home-how-step__num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.home-how-step__title {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
}

.home-how-step__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #94a3b8;
}

.home-path-track {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}

.home-path-card {
    position: relative;
    flex: 1 1 0;
    min-width: 7.5rem;
    padding: 0.65rem 0.7rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.82);
    overflow: hidden;
}

.home-path-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.home-path-card--1 .home-path-card__step { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.home-path-card--2 .home-path-card__step { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.home-path-card--3 .home-path-card__step { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.home-path-card--4 .home-path-card__step { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.home-path-card--5 .home-path-card__step { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }

.home-path-card__title {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.home-path-card__desc {
    margin: 0;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.35;
}

.home-path-card__glyph {
    position: absolute;
    right: -0.15rem;
    bottom: -0.35rem;
    font-size: 2.4rem;
    line-height: 1;
    opacity: 0.14;
    pointer-events: none;
}

.home-path-card--1 .home-path-card__glyph { color: #4ade80; }
.home-path-card--2 .home-path-card__glyph { color: #60a5fa; }
.home-path-card--3 .home-path-card__glyph { color: #fb923c; }
.home-path-card--4 .home-path-card__glyph { color: #4ade80; }
.home-path-card--5 .home-path-card__glyph { color: #60a5fa; }

.home-path-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.05rem;
}

.home-faq-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.home-faq-preview-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.78);
    overflow: hidden;
}

.home-faq-preview-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: none;
    background: transparent;
    color: #f8fafc;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.home-faq-preview-q:hover {
    background: rgba(255, 255, 255, 0.04);
}

.home-faq-preview-plus {
    flex: 0 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1;
    transition: transform 0.2s ease;
}

.home-faq-preview-item.is-open .home-faq-preview-plus {
    transform: rotate(45deg);
    color: var(--home-green);
}

.home-faq-preview-a {
    padding: 0 0.85rem 0.75rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-faq-preview-a[hidden] {
    display: none;
}

.home-faq-preview-foot {
    display: flex;
    justify-content: center;
    margin-top: 0.65rem;
}

.home-faq-preview-all {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 20, 0.88);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.home-faq-preview-all:hover {
    border-color: rgba(74, 222, 128, 0.45);
    color: #f8fafc;
}

.home-site-footer {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: end;
    scroll-snap-stop: normal;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #050608;
    padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.home-site-footer__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

.home-site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 0.55rem;
}

.home-site-footer__logo-sep {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    background: var(--home-green);
    border-radius: 1px;
}

.home-site-footer__tagline {
    margin: 0;
    max-width: 22rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
}

.home-site-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.home-site-footer__heading {
    margin: 0 0 0.55rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-green);
}

.home-site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-site-footer__link {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.84rem;
    color: #94a3b8;
    cursor: pointer;
    text-align: left;
}

.home-site-footer__link:hover,
.home-site-footer__link:focus-visible {
    color: #f8fafc;
    outline: none;
}

#homeTournamentsSection.tournament-chart-surface > .tournament-lobby-atmosphere {
    background-size: cover;
    background-position: center center;
}

#homeTournamentsSection.tournament-chart-surface > .tournament-lobby-atmosphere__chart::after {
    background: linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.05) 0%,
        rgba(6, 10, 18, 0.12) 50%,
        rgba(4, 6, 12, 0.28) 100%
    );
}

.lobby-content.tournament-chart-surface {
    min-height: 0;
    background-color: #06080d;
}

.tournament-chart-surface > .tournament-lobby-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #06080d;
    background-image: url("./img/bg/blurred_chart.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.tournament-chart-surface > .tournament-lobby-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 8% 18%, rgba(34, 211, 238, 0.14), transparent 58%),
        radial-gradient(ellipse 50% 40% at 92% 28%, rgba(232, 121, 249, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 88%, rgba(34, 197, 94, 0.1), transparent 52%);
    mix-blend-mode: screen;
    opacity: 0.5;
}

.tournament-chart-surface > .tournament-lobby-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tournament-chart-surface > .tournament-lobby-atmosphere__chart {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

.tournament-chart-surface > .tournament-lobby-atmosphere__chart::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(6, 10, 18, 0.04) 0%,
            rgba(6, 10, 18, 0.1) 45%,
            rgba(4, 6, 12, 0.32) 100%
        );
}

.tournament-chart-surface > .lobby-list-column,
.tournament-chart-surface > .tournament-lobby-zone,
.tournament-lobby-zone > .tournaments-col,
.tournament-lobby-zone > .home-upcoming {
    position: relative;
    z-index: 4;
}

.tournament-lobby-zone {
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.tournament-lobby-zone--home {
    margin-top: 0.25rem;
}

.tournament-lobby-zone--home .home-upcoming {
    padding: 1rem clamp(0.85rem, 2.5vw, 1.15rem);
}

.tournament-chart-surface--debug > .tournament-lobby-atmosphere {
    outline: 3px solid #4ade80;
    outline-offset: -3px;
}

.tournaments-triple-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.5rem 0.85rem;
}

#tournamentsTripleCol {
    width: min(100%, 72rem);
    margin: 0.75rem auto 1.25rem;
    padding: 1rem clamp(0.85rem, 2.5vw, 1.15rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.48)),
        url("./img/bg/blurred_chart.png") center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.05), 0 18px 50px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.tournaments-col {
    width: min(100%, 1140px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tournaments-col-title {
    margin: 0;
    text-align: center;
    width: 100%;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tournaments-col-title--live {
    color: #4ade80;
}

.tournaments-col-title--soon {
    color: #fb923c;
}

.tournaments-col-title--past {
    color: #cbd5e1;
}

.tournament-list-pro {
    display: flex;
    flex-direction: row;
    gap: var(--tvt-carousel-gap, 0.65rem);
    min-height: 2rem;
    align-items: stretch;
    width: max-content;
    min-width: min-content;
}

/* Širina karusel kartica: tournament-lobby-cards.css (--tvt-carousel-card-w) */

.tournament-carousel-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
}

.tournament-carousel {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.tournament-carousel::-webkit-scrollbar {
    display: none;
    height: 0;
}

.tournament-carousel.center-if-few {
    scroll-snap-type: none;
}

.tournament-carousel.center-if-few .tournament-list-pro {
    justify-content: center;
    width: 100%;
}

.tournament-card-pro {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    /* Privremeno: bez tourcard slike */
    background: linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(8, 12, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: left;
}

.tournament-card-pro:hover {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(12, 16, 22, 0.99);
}

.tournament-card-pro--selected {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22);
}

.tournament-card-pro--unified {
    border: none;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 100%),
        var(--home-upcoming-card-bg, url("./img/ccards/card1.png")) center / cover no-repeat;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tournament-card-pro--unified:hover {
    border-color: transparent;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.18) 100%),
        var(--home-upcoming-card-bg, url("./img/ccards/card1.png")) center / cover no-repeat;
}

.tournament-card-pro--unified.tournament-card-pro--selected {
    box-shadow:
        0 0 0 2px rgba(96, 165, 250, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tournament-card-pro__hero {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 1;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.tournament-card-pro__hero-head {
    padding: 0.45rem 0.55rem 0.5rem;
    background: linear-gradient(180deg, rgba(2, 8, 18, 0.35) 0%, rgba(2, 8, 18, 0.08) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-card-pro__hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.tournament-card-pro__hero-head .tournament-card-pro__tier {
    text-align: right;
    line-height: 1.15;
    border-left: 2px solid var(--tournament-accent, #3b82f6);
    padding-left: 0.45rem;
    margin-left: auto;
}

.tournament-card-pro__hero-head .tournament-card-pro__tier-name {
    color: #ffffff;
    text-shadow: none;
}

.tournament-card-pro__hero-head .tournament-card-pro__tier-buyin {
    color: #ffffff;
    font-size: 1.14rem;
    text-shadow: none;
}

.tournament-card-pro__hero-head .tournament-card-pro__title {
    margin: 0.32rem 0 0;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.28;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: none;
}

.tournament-card-pro__lower {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0.6rem 0.6rem;
    margin-top: -2px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.35);
}

.tournament-card-pro__lower .tournament-card-pro__actions {
    margin-top: auto;
}

.tournament-chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border: 1px solid transparent;
}

.tournament-chip--live {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.tournament-chip--soon {
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(251, 146, 60, 0.1);
}

.tournament-chip--full,
.tournament-chip--ended {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(71, 85, 105, 0.15);
}

.tournament-card-pro__tier {
    text-align: right;
    line-height: 1.15;
    border-left: 2px solid var(--tournament-accent, #3b82f6);
    padding-left: 0.45rem;
    margin-left: auto;
}

.tournament-card-pro__tier-name {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tournament-card-pro__tier-buyin {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

.tournament-card-pro__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.tournament-card-pro__info {
    display: grid;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tournament-card-pro__info .tcp-row {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.2rem;
}

.tournament-card-pro__info .tcp-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tournament-card-pro__info .tcp-row--muted {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
}

.tournament-card-pro__info .tcp-row--muted strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 58%;
}

.tournament-card-pro__info .tcp-row strong {
    color: var(--text);
    font-weight: 600;
}

.tournament-card-pro__prize {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.4rem 0.45rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tcp-prize-cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.tcp-prize-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tcp-prize-cell strong {
    font-size: 0.78rem;
    color: #e2e8f0;
}

.tournament-card-pro__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0;
}

.tournament-card-pro__actions .btn-tournament-action {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .tournaments-triple-col {
        gap: 0.8rem;
    }
}

.tournament-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.012)),
        linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 42%),
        rgba(12, 15, 20, 0.96);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    box-shadow:
        0 10px 28px rgba(0,0,0,0.26),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.tournament-card:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.016)),
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 46%),
        rgba(16, 20, 28, 0.98);
    box-shadow:
        0 16px 34px rgba(0,0,0,0.34),
        0 0 0 1px rgba(96, 165, 250, 0.1),
        0 0 28px rgba(59, 130, 246, 0.16);
    transform: translateY(-2px);
}

.tournament-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.08) 46%, transparent 64%);
    transform: translateX(-130%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.tournament-card:hover::before {
    transform: translateX(130%);
}

.tournament-card--selected {
    border-color: rgba(96, 165, 250, 0.55) !important;
    box-shadow:
        0 14px 36px rgba(0,0,0,0.38),
        0 0 0 2px rgba(59, 130, 246, 0.28),
        0 0 32px rgba(59, 130, 246, 0.18) !important;
    transform: translateY(-1px);
}

.tournament-card--selected::after {
    border-color: rgba(96, 165, 250, 0.12);
}

.tournament-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.03);
    pointer-events: none;
}

.tournament-card-left {
    min-width: 90px;
    padding: 0.72rem;
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(255,255,255,0.015)),
        rgba(0,0,0,0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.05);
    border-top: 3px solid var(--tournament-accent, #3b82f6);
}

.tournament-starts {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tournament-accent, var(--accent));
    white-space: nowrap;
}

.tournament-fund {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffb4a8;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.24), rgba(239, 68, 68, 0.12));
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.12);
}

.tournament-card-body {
    flex: 1;
    padding: 0.72rem 0.1rem 0.72rem 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
}

.tournament-description {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.tournament-name {
    font-size: 0.93rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    text-shadow: 0 0 18px rgba(255,255,255,0.05);
}

.tournament-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tournament-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
}

.tournament-detail .icon {
    font-size: 0.75rem;
    opacity: 0.9;
}

.tournament-competition {
    font-size: 0.69rem;
    color: var(--text-muted);
    opacity: 0.9;
}

.tournament-competition.hint-row {
    font-size: 0.72rem;
    opacity: 0.75;
    font-style: italic;
}

.btn-join-tournament {
    align-self: center;
    margin-right: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(180deg, #4f8ff8 0%, #2e6fe4 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn-join-tournament:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.36),
        0 0 22px rgba(59, 130, 246, 0.24);
    transform: translateY(-1px);
}

/* Settings overlay */
.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

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

.settings-panel {
    background: var(--card);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.settings-panel--wide {
    max-width: min(1080px, calc(100vw - 2rem));
    width: min(1080px, calc(100vw - 2rem));
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.settings-header h2 {
    font-size: 1.1rem;
}

.btn-close-settings {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.btn-close-settings:hover {
    color: var(--text);
}

.settings-body {
    padding: 1.5rem;
    max-height: min(72vh, 640px);
    overflow-y: auto;
}

.settings-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.settings-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0.35rem 0 0.4rem;
}

.settings-section-label--tight {
    margin-top: 0.85rem;
}

.settings-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.settings-row label,
.settings-row > span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-row--readonly {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.settings-row--readonly strong {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.settings-select {
    width: 100%;
}

.settings-guest-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.4;
}

.settings-guest-note.hidden,
.settings-account-block.hidden,
.settings-tabs--guest .settings-tab[data-settings-tab="profile"],
.settings-tabs--guest .settings-tab[data-settings-tab="history"] {
    display: none !important;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-tab {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(4, 12, 24, 0.45);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.38rem 0.62rem;
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--tvt-btn-radius);
}

.settings-tab:hover {
    border-color: rgba(96, 165, 250, 0.4);
    color: #f1f5f9;
}

.settings-tab.is-active {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(59, 130, 246, 0.2);
    color: #dbeafe;
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.is-active {
    display: block;
}

.settings-tab-panel--history .login-history-wrap {
    max-height: min(48vh, 420px);
    overflow: auto;
    margin-bottom: 0.35rem;
}

.settings-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0.35rem;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.profile-avatar-opt {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    min-height: 44px;
    transition: border-color 0.15s, transform 0.12s;
    background-color: rgba(255, 255, 255, 0.06);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-avatar-opt:hover {
    transform: scale(1.03);
}

.profile-avatar-opt.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.profile-avatar-opt__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

/* Avatar thumbnails: catalog /api/avatar/catalog/{key}.jpg or custom /api/avatar/{userId}.jpg */

.login-history-wrap {
    overflow-x: auto;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .login-history-wrap {
    border-color: rgba(15, 23, 42, 0.12);
}

.login-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.login-history-table th,
.login-history-table td {
    padding: 0.45rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

html[data-theme="light"] .login-history-table th,
html[data-theme="light"] .login-history-table td {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.login-history-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.login-history-ua {
    display: block;
    max-width: 220px;
    word-break: break-word;
    color: var(--text-muted);
}

.login-history-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.profile-info-page {
    display: grid;
    gap: 1.45rem;
    margin-bottom: 1.25rem;
    color: #f8fafc;
}

.profile-info-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.35rem 0 0.4rem;
}

.profile-info-avatar {
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    border: 2px solid rgba(34, 197, 94, 0.75);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08), 0 0 34px rgba(34, 197, 94, 0.22);
    color: #f8fafc;
    background: radial-gradient(circle at 35% 25%, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.94) 58%);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.profile-info-hero h3 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.profile-info-hero p {
    margin: 0.4rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.profile-info-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.profile-info-stat {
    min-height: 5.2rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.65rem;
    background: linear-gradient(180deg, rgba(15, 15, 22, 0.96), rgba(8, 8, 13, 0.98));
    box-shadow: inset 0 -2px 0 var(--profile-stat-accent, rgba(148, 163, 184, 0.45));
}

.profile-info-stat span {
    display: block;
    margin-bottom: 0.65rem;
    color: #8b949e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-info-stat strong {
    font-size: 1.55rem;
    line-height: 1;
    color: #ffffff;
}

.profile-info-stat--green { --profile-stat-accent: rgba(34, 197, 94, 0.65); }
.profile-info-stat--amber { --profile-stat-accent: rgba(245, 158, 11, 0.65); }
.profile-info-stat--blue { --profile-stat-accent: rgba(59, 130, 246, 0.65); }
.profile-info-stat--rose { --profile-stat-accent: rgba(244, 63, 94, 0.65); }
.profile-info-stat--violet { --profile-stat-accent: rgba(139, 92, 246, 0.65); }

.profile-masters-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 0.75rem;
    background: linear-gradient(90deg, rgba(6, 30, 14, 0.86), rgba(3, 14, 8, 0.7));
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.08);
}

.profile-masters-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.profile-masters-head span,
.profile-info-kicker {
    display: block;
    color: #22c55e;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.profile-masters-head strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
    color: #ecfdf5;
}

.profile-masters-head em {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-style: normal;
}

.profile-masters-bar {
    height: 0.45rem;
    margin-top: 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    overflow: hidden;
}

.profile-masters-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.profile-masters-card p {
    margin: 0.65rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
}

.profile-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.profile-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(10, 10, 12, 0.85);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-badge-pill.is-active {
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(22, 101, 52, 0.28);
    color: #f8fafc;
}

.profile-badge-pill.is-locked {
    opacity: 0.34;
    filter: grayscale(0.7);
}

.profile-history-tournament-link {
    display: inline;
    max-width: 100%;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.profile-recent-table-wrap .login-history-table td:first-child {
    max-width: 12rem;
}

    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(7, 7, 10, 0.76);
}

.profile-recent-table-wrap .login-history-table th {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.profile-recent-table-wrap .login-history-table td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.profile-recent-empty {
    height: 7rem;
    text-align: center !important;
    color: #64748b;
}

.profile-recent-empty span {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.55rem;
}

.profile-edit-label {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

@media (max-width: 860px) {
    .profile-info-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .settings-panel--wide {
        width: calc(100vw - 1rem);
    }

    .profile-info-hero {
        align-items: flex-start;
    }

    .profile-info-avatar {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1.55rem;
    }

    .profile-info-stats {
        grid-template-columns: 1fr;
    }

    .profile-masters-head {
        flex-direction: column;
    }
}

.settings-save-btn {
    width: 100%;
    margin-top: 0.35rem;
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
        rgba(8, 12, 18, 0.94);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 18px rgba(59, 130, 246, 0.08);
    color: var(--text);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.toast-body {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.24);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 20px rgba(34, 197, 94, 0.12);
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 20px rgba(245, 158, 11, 0.14);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.28);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 20px rgba(239, 68, 68, 0.14);
}

.toast--session-expired {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.toast-session-login-btn {
    border: 1px solid rgba(34, 197, 94, 0.55);
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
}

.toast-session-login-btn:hover,
.toast-session-login-btn:focus-visible {
    background: rgba(34, 197, 94, 0.24);
    outline: none;
}

@media (max-width: 768px) {
    .lobby-sub-hero {
        height: 240px;
        margin: 0;
    }
    .home-community-stats {
        gap: 0.4rem;
    }
    .home-community-stat {
        padding: 0.5rem 0.45rem;
    }
    .lobby-content {
        display: block;
    }
    .lobby-list-column {
        padding: 0.75rem 0.6rem 0.9rem;
        gap: 0.7rem;
    }
    .lobby-sidebar {
        width: 100%;
        max-width: none;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .lobby-detail-panel {
        border: 1px solid rgba(255,255,255,0.08);
        max-height: none;
    }
    .trading-layout {
        flex-direction: column;
        overflow: visible;
    }
    .trading-layout-main {
        flex-direction: column;
        overflow: visible;
    }
    .trading-side-rail,
    .trading-side-panel,
    .trading-side-resize-handle {
        display: none !important;
    }
    .chart-split {
        display: flex;
        flex-direction: column;
    }
    .chart-split > .trade-panel {
        order: 2;
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        box-shadow: none;
        padding: 0.85rem 0.75rem 1rem;
    }
    .chart-split-main {
        order: 1;
    }
    .chart-split-bottom {
        order: 3;
    }
    .trade-leaderboard-aside {
        flex: none;
        width: 100%;
        max-width: none;
        max-height: min(38vh, 320px);
    }
    .chart-panel {
        flex: none;
    }
    .chart-split {
        flex: none;
        min-height: 0;
    }
    .chart-split-main {
        height: auto !important;
        max-height: none;
        flex: 0 0 auto;
    }
    .chart-split-handle {
        display: none;
    }
    .chart-split-bottom {
        flex: 1 1 auto;
        min-height: 160px;
    }
    .trading-layout-main > .trade-panel {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
        overflow-y: visible;
    }
    .trading-screen {
        overflow-y: auto;
    }
    .chart-panel.chart-panel--chart-hidden .chart-container {
        display: none;
    }
    .chart-panel.chart-panel--chart-hidden .chart-toolbar-stats {
        display: none;
    }
    .chart-panel.chart-panel--chart-hidden .chart-split-main {
        height: auto !important;
        min-height: 0;
        max-height: none;
    }
    .chart-panel.chart-panel--chart-hidden .chart-split-handle {
        display: none;
    }
    .chart-container {
        flex: none;
        height: 220px;
        min-height: 220px;
    }

    .trading-screen.mobile-trade-mode-orders .chart-split-main {
        display: none !important;
    }

    .trading-screen.mobile-trade-mode-chart .chart-split > .trade-panel {
        display: none !important;
    }

    .trading-screen.mobile-trade-mode-orders .chart-tab--tournament {
        display: none !important;
    }

    .trading-screen.mobile-trade-mode-chart .chart-bottom-tabs .chart-tab:not(.chart-tab--tournament) {
        display: none !important;
    }

    .trading-screen.mobile-trade-mode-chart .chart-panel.chart-panel--chart-hidden .chart-container,
    .trading-screen.mobile-trade-mode-chart .chart-panel.chart-panel--chart-hidden .chart-toolbar-stats {
        display: block;
    }

    .trading-screen.mobile-trade-mode-chart .chart-panel.chart-panel--chart-hidden .chart-split-main {
        display: flex !important;
    }

    .trading-screen.mobile-trade-mode-chart .chart-container {
        height: min(54vh, 500px);
        min-height: 440px;
        border-radius: 0;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        width: calc(100% + 1.5rem);
        max-width: none;
    }

    .trading-screen.mobile-trade-mode-chart .chart-toolbar {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        width: calc(100% + 1.5rem);
    }

    .trading-screen.mobile-trade-mode-chart .chart-tabs-content {
        min-height: 180px;
    }

    .trading-screen.mobile-trade-mode-chart .chart-split-bottom {
        flex: 1 1 auto;
        min-height: 200px;
    }
    .chart-leaderboard-overlay {
        width: min(178px, 58vw);
        max-height: min(42vh, 220px);
    }
    .trading-info-meta-row {
        width: 100%;
        align-items: center;
    }
    .trading-top-row2-meta ~ .trading-info-tools,
    .trading-info-right > .trading-info-tools {
        margin-left: auto;
        flex-shrink: 0;
    }
    .info-chip--prize .info-chip-label,
    .info-chip--detail .info-chip-label {
        display: none;
    }
    .trading-info-left .info-chip-label {
        font-size: 0.58rem;
    }
    .trading-info-left strong {
        font-size: 0.72rem;
    }
    .trade-info-tool-btn {
        width: 2.15rem;
        height: 2.15rem;
    }
    .trade-info-tool-btn__icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    .chart-leaderboard-title {
        padding: 0.34rem 0.45rem 0.28rem;
        font-size: 0.56rem;
    }
    .chart-leaderboard-row {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        padding: 0.27rem 0.36rem 0.27rem 0.28rem;
    }
    .chart-leaderboard-name,
    .chart-leaderboard-rank {
        font-size: 0.68rem;
    }
    .chart-leaderboard-gap {
        font-size: 0.6rem;
    }
    .leaderboard-podium {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 0.32rem;
        padding: 0.85rem 0.18rem 0.55rem;
        min-height: 0;
        align-items: end;
    }
    .leaderboard-podium-card,
    .leaderboard-podium-card--rank-2,
    .leaderboard-podium-card--rank-3 {
        min-height: 118px;
        padding: 1rem 0.2rem 0.5rem;
        transform: none;
    }
    .leaderboard-podium-card--rank-1 {
        min-height: 138px;
        padding: 1rem 0.22rem 0.55rem;
        transform: translateY(-10px);
    }
    .leaderboard-podium-card:hover {
        transform: translateY(-2px);
    }
    .leaderboard-podium-card--rank-1:hover {
        transform: translateY(-12px);
    }
    .trade-leaderboard-controls {
        grid-template-columns: 1fr;
    }
    .trader-activity-row {
        grid-template-columns: 1fr;
        gap: 0.16rem;
    }
    .leaderboard-podium-avatar-ring--rank-1 {
        width: 5.35rem;
        height: 5.35rem;
        padding: 0.38rem;
    }
    .leaderboard-podium-avatar-ring--rank-2 {
        width: 4.45rem;
        height: 4.45rem;
        padding: 0.32rem;
    }
    .leaderboard-podium-avatar-ring--rank-3 {
        width: 3.95rem;
        height: 3.95rem;
        padding: 0.28rem;
    }
    .leaderboard-podium-avatar-ring .results-avatar,
    .leaderboard-podium-avatar-ring .leaderboard-avatar {
        font-size: 0.72rem;
    }
    .leaderboard-podium-avatar-ring--rank-1 .results-avatar,
    .leaderboard-podium-avatar-ring--rank-1 .leaderboard-avatar {
        font-size: 0.82rem;
    }
    .leaderboard-podium-ring-svg__text {
        font-size: 7px;
    }
    .chart-tabs-content {
        flex: 1 1 auto;
        min-height: 120px;
    }
    .trading-top-chrome {
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
        grid-template-areas:
            "brand balance actions"
            "tournament . prize"
            "chips chips mode";
        column-gap: 0.35rem;
        row-gap: 0.28rem;
        padding: 0.4rem 0.6rem 0.45rem;
        position: relative;
        isolation: isolate;
    }
    .trading-top-chrome::after {
        content: '';
        grid-row: 2 / 4;
        grid-column: 1 / -1;
        border-radius: 12px;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)),
            rgba(11, 15, 22, 0.92);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.05),
            0 6px 18px rgba(0,0,0,0.22);
        z-index: 0;
        align-self: stretch;
        min-height: 0;
    }
    .trading-header,
    .trading-info-strip,
    .trading-info-right {
        display: contents;
    }
    .trading-top-slot--brand {
        grid-area: brand;
        flex: none;
        min-width: 0;
        z-index: 1;
        flex-shrink: 0;
    }
    .trading-top-slot--actions {
        grid-area: actions;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: nowrap;
        max-width: 100%;
        z-index: 1;
    }
    .trading-top-slot--prize {
        grid-area: prize;
        justify-self: end;
        align-self: end;
        min-width: 0;
        max-width: 100%;
        z-index: 1;
        padding: 0.45rem 0.42rem 0.08rem 0.15rem;
    }
    .trading-top-row2-meta {
        display: contents;
    }
    .trading-top-slot--balance {
        grid-area: balance;
        min-width: 0;
        max-width: 100%;
        z-index: 1;
        align-self: center;
        justify-self: center;
        padding: 0.1rem 0.15rem;
        overflow: hidden;
    }
    .trading-top-slot--chips {
        grid-area: chips;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 0.22rem;
        row-gap: 0.12rem;
        min-width: 0;
        padding: 0.22rem 0.15rem 0.28rem 0.42rem;
        z-index: 1;
        overflow: hidden;
    }
    .trading-top-slot--tools {
        grid-area: meta;
        flex: 0 0 auto;
        margin-left: 0;
        display: inline-flex;
        gap: 0.28rem;
        padding: 0.22rem 0.42rem 0.28rem 0.15rem;
        z-index: 1;
        justify-self: end;
        align-self: center;
    }
    .trading-top-slot--mode-toggle,
    .mobile-trade-mode-toggle.trading-top-slot--mode-toggle {
        grid-area: mode;
        justify-self: end;
        align-self: start;
        flex: 0 0 auto;
        margin-top: 0.12rem;
        padding: 0 0.42rem 0.22rem 0.15rem;
        z-index: 1;
    }
    .trading-top-slot--mode-toggle:not(.hidden) {
        display: inline-flex;
    }
    .trading-top-slot--tournament {
        grid-area: tournament;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.06rem;
        min-width: 0;
        max-width: 100%;
        z-index: 1;
        padding: 0.45rem 0.15rem 0.14rem 0.42rem;
    }
    .trading-top-slot--tournament .info-chip-label {
        display: none;
    }
    .trading-top-slot--tournament strong {
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #e2e8f0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    .trading-header {
        padding: 0;
        align-items: center;
    }
    .trading-info-strip {
        padding: 0;
    }
    .site-logo--trading,
    #tradingLogoBtn {
        width: auto;
        max-width: 88px;
        height: auto;
        max-height: 28px;
    }
    .trading-screen-title {
        display: none;
    }
    .btn-icon--trade-close {
        padding: 0.28rem 0.5rem;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        border-color: rgba(248,113,113,0.45);
        color: #fecaca;
        min-height: 1.75rem;
    }
    .btn-icon--trade-close .btn-icon__short {
        display: inline;
    }
    .btn-icon--trade-close .btn-icon__long {
        display: none;
    }
    .guest-badge {
        padding: 0.22rem 0.45rem;
        font-size: 0.68rem;
    }
    .trading-balance {
        width: 100%;
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        gap: 0.22rem;
        flex-wrap: nowrap;
        justify-content: center;
        overflow: hidden;
    }
    .trading-balance__dot {
        display: inline-block;
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 50%;
        background: #4ade80;
        box-shadow: 0 0 8px rgba(74,222,128,0.45);
        flex-shrink: 0;
    }
    .trading-balance__head {
        display: inline-flex;
        align-items: baseline;
        gap: 0.22rem;
        min-width: 0;
        flex-shrink: 1;
    }
    .trading-balance__label {
        display: none;
    }
    .trading-balance__amount {
        font-size: 0.76rem;
        font-weight: 800;
        color: #f8fafc;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .trading-balance__pnl {
        margin-left: 0;
        flex-shrink: 0;
        padding: 0.1rem 0.32rem;
        border-radius: 999px;
        font-size: 0.54rem;
        font-weight: 700;
        background: rgba(34,197,94,0.14);
        border: 1px solid rgba(74,222,128,0.28);
        color: #86efac;
    }
    .trading-balance__pnl.pnl-negative {
        background: rgba(239,68,68,0.14);
        border-color: rgba(248,113,113,0.28);
        color: #fca5a5;
    }
    .trading-balance__pnl.pnl-neutral {
        background: rgba(148,163,184,0.12);
        border-color: rgba(148,163,184,0.25);
        color: #cbd5e1;
    }
    .info-chip--prize .info-chip__trophy {
        display: none;
    }
    .trading-top-slot--prize.info-chip--prize,
    .info-chip--prize {
        display: inline-flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-end;
        gap: 0.28rem;
        width: auto;
        max-width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        flex-wrap: nowrap;
    }
    .info-chip--prize .info-chip-label {
        display: inline;
        font-size: 0.52rem;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
        font-weight: 600;
        white-space: nowrap;
    }
    .info-chip--prize .info-chip-label::after {
        content: ':';
    }
    .info-chip--prize strong {
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        color: #fcd34d;
        white-space: nowrap;
    }
    .trading-top-row2-meta .trading-info-tools {
        margin-left: 0;
    }
    .trading-top-slot--chips .info-chip {
        padding: 0.14rem 0.3rem;
        flex-shrink: 0;
    }
    .trading-top-slot--chips .info-chip strong {
        font-size: 0.56rem;
    }
    .trading-top-slot--chips .info-chip--detail {
        min-width: 0;
        flex-shrink: 1;
    }
    .trading-top-slot--chips .info-chip--detail .info-chip-label {
        display: none;
    }
    .trading-top-slot--chips .info-chip--detail:has(#infoTournamentTime) {
        max-width: min(42vw, 9.5rem);
        flex-shrink: 1;
    }
    .trading-top-slot--chips #infoTournamentTime {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    /* Lobby header mobile: hamburger + dropdown menu */
    .lobby-screen {
        --lobby-bottom-nav-h: calc(3.65rem + env(safe-area-inset-bottom, 0px));
    }
    .lobby-header {
        display: grid;
        grid-template-columns: 2.75rem 1fr 2.75rem;
        grid-template-rows: auto;
        column-gap: 0.35rem;
        row-gap: 0.45rem;
        align-items: center;
        z-index: 40;
        overflow: visible;
    }
    .lobby-header-left {
        display: contents;
    }
    .lobby-header-left .site-logo--lobby,
    #lobbyLogoBtn {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        max-width: 140px;
        width: auto;
        height: auto;
        margin: 0;
    }
    .lobby-menu-toggle {
        display: inline-flex !important;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-items: center;
        justify-content: center;
        z-index: 12;
    }
    .lobby-profile-btn--mobile {
        display: inline-flex !important;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: 2.15rem;
        height: 2.15rem;
        z-index: 12;
    }
    .lobby-profile-btn--mobile.lobby-profile-btn--login {
        width: auto;
        min-width: 4.25rem;
        height: 2rem;
        padding: 0 0.7rem;
    }
    .lobby-header-right {
        display: none;
    }
    .lobby-top-nav {
        display: none !important;
        position: fixed;
        top: 64px;
        left: 0;
        transform: none;
        width: min(84vw, 320px);
        padding: 0.55rem;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 12px;
        background: rgba(7, 12, 16, 0.96);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
        z-index: 80;
        gap: 0.3rem;
        flex-direction: column;
        align-items: stretch;
    }
    .lobby-top-nav.is-open {
        display: flex !important;
    }
    .lobby-top-nav .top-nav-link {
        width: 100%;
        text-align: left;
        border-radius: 10px;
    }
    .lobby-top-nav-mobile-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        margin-top: 0.2rem;
    }
    .lobby-menu-balance {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 10px;
        padding: 0.4rem 0.55rem;
        background: rgba(15, 23, 42, 0.6);
        color: #e2e8f0;
    }
    .lobby-menu-balance__label {
        font-size: 0.72rem;
        color: #94a3b8;
    }
    .lobby-menu-balance strong {
        font-size: 0.82rem;
        color: #86efac;
    }
    .lobby-menu-action {
        color: #e2e8f0;
    }
    .lobby-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
        padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: #15181d;
        box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.45);
    }
    .lobby-bottom-nav__btn {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        margin: 0;
        padding: 0.28rem 0.12rem 0.32rem;
        border: none;
        background: transparent;
        color: #94a3b8;
        font: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .lobby-bottom-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        opacity: 0.92;
    }
    .lobby-bottom-nav__icon svg {
        display: block;
    }
    .lobby-bottom-nav__label-short {
        display: none;
    }
    .lobby-bottom-nav__label {
        display: block;
        max-width: 100%;
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1.12;
        letter-spacing: 0.01em;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
    }
    .lobby-bottom-nav__btn.is-active {
        color: #e2e8f0;
        background: rgba(59, 130, 246, 0.16);
        box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28);
    }
    .lobby-bottom-nav__btn.is-active .lobby-bottom-nav__icon {
        opacity: 1;
        color: #93c5fd;
    }
    .lang-select-wrap {
        align-self: flex-end;
    }
    .lang-select {
        max-width: 100%;
    }
    .lobby-screen {
        --home-scroll-pane-h: calc(100dvh - var(--lobby-header-h) - var(--lobby-bottom-nav-h, 4rem));
    }
    .lobby-main-scroll {
        padding-bottom: var(--lobby-bottom-nav-h, 4rem);
    }
    .lobby-home-panel {
        max-height: none;
        padding: 0;
    }
    .home-scroll-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 1.8rem;
        padding-bottom: 2.1rem;
    }
    .home-scroll-section--tournaments {
        padding-bottom: calc(2.1rem + 1.2rem);
    }
    .home-scroll-root {
        gap: 0.6rem;
    }
    .home-discover-stack {
        gap: 6rem;
    }
    .lobby-dynamic-panel {
        max-height: none;
    }
    .lobby-dynamic-panel:has(.leaderboard-panel) {
        margin: 0.45rem 0.28rem 0;
        padding: 0.35rem 0.15rem;
        border-radius: 10px;
    }
    .home-scroll-section--hero .home-hero-content {
        padding: 0.85rem 0.85rem 1rem;
        transform: translateY(2vh);
    }
    .home-hero h1 {
        font-size: 2.32rem;
    }
    .home-hero p {
        font-size: 1.41rem;
    }
    .home-cta {
        font-size: 0.78rem;
        padding: 0.48rem 0.75rem;
    }
    .home-upcoming-head h2,
    .home-upcoming-title {
        font-size: clamp(1.35rem, 4.8vw, 2.24rem);
    }
    .home-upcoming-head p {
        font-size: 0.78rem;
    }
    .home-upcoming-tag {
        font-size: 0.7rem;
    }
    .home-upcoming-card__buyin-val {
        font-size: 0.98rem;
    }
    .home-upcoming-card__tournament-name {
        font-size: 0.92rem;
    }
    .home-upcoming-card__field-val {
        font-size: 0.7rem;
    }
    .home-upcoming-card__ribbon {
        padding: 0.62rem 0.58rem 0.58rem;
    }
    .home-upcoming-track .home-upcoming-card {
        min-height: 14.5rem;
    }
    .home-ticker-track {
        font-size: 0.72rem;
        padding: 0.38rem 0.6rem;
    }
    .home-strip strong {
        font-size: 0.84rem;
    }
    .home-strip span {
        font-size: 0.78rem;
    }
    .home-banner-stack {
        --home-banner-slot-h: clamp(10.05rem, 42vw, 14.55rem);
    }
    .home-masters h3 {
        font-size: 1.02rem;
    }
    .home-masters p {
        font-size: 0.82rem;
    }
    .home-masters-tag {
        font-size: 0.72rem;
    }
    .home-how h3,
    .home-faq-teaser h3 {
        font-size: 1rem;
    }
    .home-steps strong {
        font-size: 0.82rem;
    }
    .home-steps p,
    .home-faq-teaser p {
        font-size: 0.8rem;
    }
    .home-z2h {
        padding: 0.75rem 0.6rem 0.85rem;
    }
    .home-z2h-title {
        font-size: 1.05rem;
    }
    .home-z2h-sub {
        font-size: 0.82rem;
    }
    .home-z2h-tag {
        font-size: 0.74rem;
    }
    .home-path-step {
        min-width: 5.6rem;
        padding: 0.45rem 0.32rem;
    }
    .home-path-n {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.58rem;
    }
    .home-path-t {
        font-size: 0.68rem;
    }
    .home-path-s {
        font-size: 0.6rem;
    }
    .home-path-arr {
        font-size: 0.75rem;
        padding: 0 0.08rem;
    }
    .home-tok-banner {
        padding: 0.85rem 0.75rem;
        flex-direction: column;
        align-items: center;
    }
    .home-tok-headline {
        font-size: 1.02rem;
    }
    .home-tok-desc {
        font-size: 0.82rem;
    }
    .home-tok-label {
        font-size: 0.72rem;
    }
    .home-tok-stat-value {
        font-size: 1.28rem;
    }
    .home-tok-stat-label {
        font-size: 0.7rem;
    }
    .home-tok-stat-hint {
        font-size: 0.64rem;
    }
    .home-tok-right {
        text-align: center;
        width: 100%;
    }
    .home-strip,
    .home-steps {
        grid-template-columns: 1fr;
    }
    .home-masters {
        align-items: flex-start;
        flex-direction: column;
    }
    .home-upcoming-grid {
        grid-template-columns: 1fr;
    }
    .lobby-bottom-nav__label-long {
        display: none;
    }
    .lobby-bottom-nav__label-short {
        display: block;
    }
    .lobby-bottom-nav__label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
        hyphens: none;
        font-size: 0.54rem;
        line-height: 1.05;
    }
    .leaderboard-panel {
        min-height: min(76vh, 680px);
    }
    .leaderboard-panel__overlay {
        padding: 0.35rem 0.18rem 0.45rem;
        gap: 0.35rem;
    }
    .leaderboard-table {
        width: 100%;
        max-width: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .leaderboard-row {
        grid-template-columns:
            1.05rem
            minmax(0, 1.22fr)
            2rem
            minmax(0, 0.5fr)
            minmax(0, 0.46fr);
        gap: 0.08rem 0.04rem;
        padding: 0.28rem 0.08rem 0.28rem 0.08rem;
        font-size: 0.64rem;
        min-width: 0;
        width: 100%;
    }
    .leaderboard-row--item {
        padding: 0.24rem 0.08rem 0.24rem 0.06rem;
    }
    .leaderboard-row--head {
        font-size: 0.48rem;
        letter-spacing: 0.015em;
        padding: 0.28rem 0.08rem 0.28rem 0.06rem;
        gap: 0.08rem 0.1rem;
    }
    .leaderboard-row--head .leaderboard-stat-cell--head {
        min-height: 1.9rem;
        padding: 0.2rem 0.06rem;
        justify-self: end;
        text-align: right;
        align-items: flex-end;
        justify-content: flex-end;
        white-space: normal;
        line-height: 1.05;
        word-break: break-word;
    }
    .leaderboard-row--head span:nth-child(1),
    .leaderboard-row--item > span:nth-child(1) {
        grid-column: 1;
    }
    .leaderboard-row--head span:nth-child(2),
    .leaderboard-row--item > span:nth-child(2) {
        grid-column: 2;
        justify-self: stretch;
        text-align: left;
    }
    .leaderboard-row--head span:nth-child(3),
    .leaderboard-row--item > span:nth-child(3) {
        grid-column: 3;
        margin-left: 0.14rem;
    }
    .leaderboard-row--head span:nth-child(5),
    .leaderboard-row--item > span:nth-child(5) {
        grid-column: 4;
    }
    .leaderboard-row--head span:nth-child(6),
    .leaderboard-row--item > span:nth-child(6) {
        grid-column: 5;
    }
    .leaderboard-row--head span:nth-child(4),
    .leaderboard-row--head span:nth-child(7),
    .leaderboard-row--item > span:nth-child(4),
    .leaderboard-row--item > span:nth-child(7) {
        display: none !important;
    }
    .leaderboard-rank {
        justify-self: start;
        padding-left: 0;
        min-width: 0;
        font-size: 0.58rem;
        line-height: 1;
    }
    .leaderboard-row--item .leaderboard-trader {
        gap: 0.12rem;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .leaderboard-row--item .leaderboard-socials {
        display: none;
    }
    .leaderboard-row--item .leaderboard-trader .results-avatar {
        width: 1.7rem;
        height: 1.7rem;
        min-width: 1.7rem;
        min-height: 1.7rem;
        font-size: 0.38rem;
    }
    .leaderboard-row--item .leaderboard-name {
        font-size: 0.68rem;
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    .leaderboard-row--item .leaderboard-stat-cell {
        min-height: 1.9rem;
        padding: 0.2rem 0.05rem;
        min-width: 0;
        overflow: hidden;
    }
    .leaderboard-row--item > span:nth-child(5) .leaderboard-stat-cell {
        padding-right: 0;
    }
    .leaderboard-row--item > span:nth-child(6) .leaderboard-stat-cell {
        padding-left: 0;
        padding-right: 0.04rem;
    }
    .leaderboard-row--head span:nth-child(5) {
        padding-right: 0;
    }
    .leaderboard-row--head span:nth-child(6) {
        padding-left: 0;
        padding-right: 0.04rem;
    }
    .leaderboard-row--item .leaderboard-stat-cell strong {
        font-size: 0.56rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    .leaderboard-row--head span:nth-child(3),
    .leaderboard-row--head span:nth-child(5),
    .leaderboard-row--head span:nth-child(6),
    .leaderboard-row--item > span:nth-child(3),
    .leaderboard-row--item > span:nth-child(5),
    .leaderboard-row--item > span:nth-child(6) {
        justify-self: end;
        text-align: right;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .leaderboard-winrate {
        font-size: 0.56rem;
        padding: 0;
    }
    .leaderboard-tokens {
        font-size: 0.54rem;
        padding: 0;
    }
    .leaderboard-points {
        font-size: 0.54rem;
        text-align: right;
        padding: 0;
    }
    .leaderboard-avatar {
        width: 2em;
        height: 2em;
        font-size: 0.5em;
    }
    .leaderboard-panel__head h2 {
        font-size: 0.92rem;
    }
    .leaderboard-panel__head p {
        font-size: 0.7rem;
    }
    .leaderboard-filters {
        gap: 0.2rem;
        padding: 0.2rem 0;
        margin-bottom: 0.05rem;
    }
    .leaderboard-filter {
        font-size: 0.62rem;
        padding: 0.22rem 0.34rem;
    }
    .results-panel {
        min-height: min(76vh, 680px);
    }
    .results-panel__overlay {
        padding: 0.55rem 0.4rem 0.65rem;
    }
    .results-table {
        gap: 0.4rem;
    }
    .results-row--head {
        display: none;
    }
    .results-row--item {
        grid-template-columns: 4px 20px minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 0.22rem 0.3rem;
        padding: 0.42rem 0.38rem 0.42rem 0.28rem;
        font-size: 0.66rem;
        align-items: start;
    }
    .results-row-accent {
        grid-row: 1 / 4;
        grid-column: 1;
    }
    .results-rank {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 0.62rem;
        padding-left: 0;
    }
    .results-tour {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        padding-right: 0.2rem;
    }
    .results-finished {
        grid-column: 4;
        grid-row: 1;
        align-self: start;
        text-align: right;
        font-size: 0.56rem;
        line-height: 1.2;
        max-width: 4.2rem;
        word-break: break-word;
    }
    .results-meta {
        grid-column: 2 / 3;
        grid-row: 2;
        text-align: left;
        font-size: 0.62rem;
    }
    .results-meta--pool {
        grid-column: 3 / 5;
        grid-row: 2;
        text-align: right;
        font-size: 0.62rem;
    }
    .results-meta::before {
        content: "Players: ";
        font-weight: 600;
        color: #94a3b8;
    }
    .results-meta--pool::before {
        content: "Prize pool: ";
        font-weight: 600;
        color: #94a3b8;
    }
    .results-prize {
        grid-column: 2 / 5;
        grid-row: 3;
        width: 100%;
        color: #e2e8f0;
        font-weight: 600;
    }
    .results-podium-entry__detail {
        padding-left: calc(1.55rem + 0.28rem);
        font-size: 0.62rem;
    }
    .results-podium-entry__main .player-link-btn {
        max-width: min(100%, 9.5rem);
    }

    .home-masters-stats {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .home-arena-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-how-steps {
        grid-template-columns: 1fr;
    }
    .home-faq-preview-grid {
        grid-template-columns: 1fr;
    }
    .home-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }
    .home-site-footer__cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-site-footer {
        padding-bottom: 1.5rem;
    }
    .home-arena-podium {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 0.85rem 0.55rem 0.25rem;
    }
    .home-arena-podium-card--rank-1,
    .home-arena-podium-card--rank-2,
    .home-arena-podium-card--rank-3 {
        order: unset;
    }
    .home-arena-podium-card__block {
        display: none;
    }
    .home-arena-row-cards {
        grid-template-columns: 1fr;
    }
    .home-masters-promo__body {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-masters-promo__trophy {
        display: none;
    }
    .home-arena-head__badge {
        width: 100%;
        text-align: left;
    }
    .results-row--head {
        font-size: 0.56rem;
    }
    .results-panel__head h2 {
        font-size: 0.92rem;
    }
    .results-panel__head p {
        font-size: 0.7rem;
    }
    .masters-panel {
        min-height: min(76vh, 680px);
    }
    .masters-panel__overlay {
        padding: 0.65rem;
    }
    .masters-panel__head h2 {
        font-size: 0.92rem;
    }
    .masters-panel__head p {
        font-size: 0.72rem;
    }
    .masters-grid {
        grid-template-columns: 1fr;
    }
    .tvt-token-supply-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .tvt-pie {
        width: 160px;
        height: 160px;
    }
    .tvt-value-grid {
        grid-template-columns: 1fr;
    }
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
    .toast {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    .lobby-home-panel {
        padding: 0.72rem 0.65rem;
    }
    .home-hero h1 {
        font-size: 2.05rem;
    }
    .home-hero p {
        font-size: 1.34rem;
    }
    .home-upcoming-head h2,
    .home-upcoming-title {
        font-size: clamp(1.25rem, 5.2vw, 2.04rem);
    }
    .home-upcoming-card__buyin-val {
        font-size: 0.95rem;
    }
    .home-z2h-title {
        font-size: 0.98rem;
    }
    .home-z2h-sub {
        font-size: 0.78rem;
    }
    .home-path-step {
        min-width: 5.1rem;
        padding: 0.4rem 0.28rem;
    }
    .home-tok-stat-value {
        font-size: 1.18rem;
    }
    .leaderboard-row {
        grid-template-columns:
            1rem
            minmax(0, 1.08fr)
            1.95rem
            minmax(0, 0.48fr)
            minmax(0, 0.44fr);
        gap: 0.06rem 0.03rem;
        padding: 0.24rem 0.05rem 0.24rem 0.05rem;
    }
    .leaderboard-row--item .leaderboard-trader .results-avatar {
        width: 1.55rem;
        height: 1.55rem;
        min-width: 1.55rem;
        min-height: 1.55rem;
    }
    .leaderboard-row--item .leaderboard-name {
        font-size: 0.64rem;
    }
    .leaderboard-row--item .leaderboard-stat-cell strong {
        font-size: 0.52rem;
    }
    .leaderboard-row--head {
        font-size: 0.44rem;
    }
}

/* Home upcoming carousel */
.home-upcoming-carousel-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.home-upcoming-carousel.center-if-few .home-upcoming-track,
.tournament-carousel.center-if-few .tournament-list-pro {
    justify-content: center;
}

.home-upcoming-carousel {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

#homeCommunityActiveCarousel.home-upcoming-carousel,
#homeCommunityUpcomingCarousel.home-upcoming-carousel {
    padding-right: 0.15rem;
}

#homeCommunityActiveCarousel .home-upcoming-track,
#homeCommunityUpcomingCarousel .home-upcoming-track {
    padding-right: 0.35rem;
    box-sizing: border-box;
}
.home-upcoming-carousel::-webkit-scrollbar {
    display: none;
    height: 0;
}
.home-upcoming-carousel.center-if-few {
    scroll-snap-type: none;
}
.home-upcoming-carousel.center-if-few .home-upcoming-track {
    justify-content: center;
    width: 100%;
}
.home-upcoming-track {
    display: flex;
    gap: var(--tvt-carousel-gap, 0.65rem);
    padding: 0.2rem 0 0.5rem;
    width: max-content;
    min-width: min-content;
    box-sizing: border-box;
}
.home-carousel-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 2rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--home-green);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    align-self: center;
    padding: 0.2rem 0.35rem;
}

.home-carousel-btn:hover,
.home-carousel-btn:focus-visible {
    border: none;
    background: transparent;
    color: var(--home-green-mid);
    outline: none;
}

.home-carousel-btn.is-disabled {
    opacity: 0.28;
    color: #64748b !important;
    cursor: default;
    pointer-events: none;
}

.home-carousel-btn.is-hidden-nav {
    visibility: hidden;
    pointer-events: none;
}

/* Završetak turnira — pult + puna tablica + share (prezentacija) */
.tournament-final-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(2, 4, 8, 0.82);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.tournament-final-overlay.hidden {
    display: none;
}
.tournament-final-modal {
    position: relative;
    width: min(920px, 100%);
    margin: 0.5rem auto 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(22, 26, 34, 0.98), rgba(8, 10, 14, 0.99));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    padding: 1.35rem 1.5rem 1.5rem;
}
.tournament-final-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #e2e8f0;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.tournament-final-close:hover {
    background: rgba(255, 255, 255, 0.08);
}
.tournament-final-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.tournament-final-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    padding-right: 2.5rem;
}
.tournament-final-podium {
    margin-bottom: 1.25rem;
}
.tournament-final-podium-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0.65rem;
}
.tournament-final-podium-slot {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    border-radius: 14px;
    padding: 0.75rem 0.55rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
}
.tournament-final-podium-slot--1 {
    order: 2;
    min-height: 11.5rem;
    border-color: rgba(234, 179, 8, 0.55);
    box-shadow: 0 0 28px rgba(234, 179, 8, 0.18);
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.22), rgba(30, 22, 8, 0.85));
}
.tournament-final-podium-slot--2 {
    order: 1;
    min-height: 9rem;
    border-color: rgba(148, 163, 184, 0.45);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), rgba(15, 18, 24, 0.92));
}
.tournament-final-podium-slot--3 {
    order: 3;
    min-height: 8rem;
    border-color: rgba(180, 83, 9, 0.45);
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.22), rgba(24, 14, 8, 0.9));
}
.tournament-final-podium-slot--empty {
    visibility: hidden;
    pointer-events: none;
}
.tournament-final-podium-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
}

.tournament-final-podium-avatar .results-avatar {
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 0.42em;
}

.tournament-final-podium-avatar--1 {
    width: 4.85rem;
    height: 4.85rem;
}

.tournament-final-podium-avatar--2 {
    width: 3.85rem;
    height: 3.85rem;
}

.tournament-final-podium-avatar--3 {
    width: 3.15rem;
    height: 3.15rem;
}

.tournament-final-podium-medal {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.tournament-final-podium-metal {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: #e2e8f0;
}
.tournament-final-podium-slot--1 .tournament-final-podium-metal {
    color: #fde047;
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.55);
}
.tournament-final-podium-slot--2 .tournament-final-podium-metal {
    color: #cbd5e1;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.45);
}
.tournament-final-podium-slot--3 .tournament-final-podium-metal {
    color: #fdba74;
    text-shadow: 0 0 10px rgba(180, 83, 9, 0.45);
}
.tournament-final-podium-rank {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}
.tournament-final-podium-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}
.tournament-final-podium-meta {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #94a3b8;
}
.tournament-final-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
}
.tournament-final-table-wrap {
    margin-bottom: 1rem;
    max-height: min(52vh, 480px);
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
}
.tournament-final-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.tournament-final-table th,
.tournament-final-table td {
    padding: 0.45rem 0.55rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tournament-final-table th {
    position: sticky;
    top: 0;
    background: rgba(12, 14, 18, 0.98);
    color: #94a3b8;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tournament-final-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}
.tournament-final-row--1 td {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.22), rgba(255, 255, 255, 0.02) 55%) !important;
    border-left: 3px solid #eab308;
}
.tournament-final-row--2 td {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(255, 255, 255, 0.02) 55%) !important;
    border-left: 3px solid #94a3b8;
}
.tournament-final-row--3 td {
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.22), rgba(255, 255, 255, 0.02) 55%) !important;
    border-left: 3px solid #d97706;
}
.tournament-final-share {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tournament-final-share-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}
.tournament-final-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.tournament-final-share-btn {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}
.tournament-final-share-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Buy-in modal */
.buy-in-overlay {
    position: fixed;
    inset: 0;
    z-index: 13100;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.buy-in-overlay.hidden {
    display: none;
}
.buy-in-modal {
    width: min(400px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #0f1419;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.buy-in-modal h3 {
    margin: 0 0 0.35rem;
    color: #f8fafc;
    font-size: 1.15rem;
}
.buy-in-sub {
    margin: 0 0 1rem;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.45;
}
.buy-in-ticket-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #a5b4fc;
    line-height: 1.35;
}
.buy-in-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.logout-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.buy-in-opt {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}
.buy-in-opt:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.22);
}
.buy-in-opt:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.buy-in-close {
    margin-top: 1rem;
    width: 100%;
}
.rebuy-prompt-modal {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 48px rgba(234, 179, 8, 0.14);
}
.rebuy-prompt-hint {
    margin: 0.85rem 0 0;
    font-size: 0.76rem;
    color: #64748b;
    text-align: center;
    line-height: 1.35;
}
.out-of-tokens-modal .buy-in-sub {
    color: #fca5a5;
}
.out-of-tokens-modal .buy-in-opt {
    text-align: center;
}
.out-of-tokens-modal .buy-in-close {
    margin-top: 0.45rem;
}
.btn-tournament-rebuy {
    width: 100%;
    border-radius: 9px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.12);
    color: #fef3c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.38rem 0.5rem;
    cursor: pointer;
}
.btn-tournament-rebuy:hover {
    background: rgba(251, 191, 36, 0.22);
}
.detail-actions-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
}
.detail-entry-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

/* Community create tournament modal */
.community-create-overlay {
    z-index: 13200;
    align-items: flex-start;
    padding: 0.5rem;
}
.community-create-modal {
    width: min(520px, 100%);
    max-height: min(96vh, 900px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: #0a0e12;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.community-create-modal__head {
    padding: 1rem 1.15rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.community-create-back {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.35rem;
}
.community-create-modal__head h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #f8fafc;
}
.community-create-modal__sub {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
}
.community-create-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1.15rem 1.25rem;
}
.community-create-section {
    margin-bottom: 1.1rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.community-create-section h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: #e2e8f0;
}
.community-create-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}
.community-create-label .req { color: #f87171; }
.community-create-label input,
.community-create-label textarea,
.community-create-label select {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111820;
    color: #f1f5f9;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.community-create-money {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.community-create-money input {
    flex: 1;
    margin-top: 0;
}
.community-create-hint,
.community-create-note {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0.2rem 0 0.5rem;
}
.community-create-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.community-create-chips button {
    min-width: 2.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a222d;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.community-create-chips button.is-selected {
    background: #22c55e;
    border-color: #22c55e;
    color: #052e16;
}
.community-create-chips button:disabled.is-selected {
    background: rgba(124, 58, 237, 0.35);
    border-color: rgba(167, 139, 250, 0.5);
    color: #e9d5ff;
    cursor: default;
    opacity: 1;
}
.community-create-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.35rem 0 0.65rem;
}
.community-create-step {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.community-create-stepper strong {
    min-width: 3rem;
    text-align: center;
    color: #f8fafc;
    font-size: 1rem;
}
.community-create-start-cards,
.community-create-vis-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.community-create-start-card,
.community-create-vis-card {
    text-align: left;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141a22;
    color: #94a3b8;
    cursor: pointer;
}
.community-create-start-card.is-selected,
.community-create-vis-card.is-selected {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.community-create-start-card strong,
.community-create-vis-card strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}
.community-create-start-card span,
.community-create-vis-card span {
    font-size: 0.68rem;
    line-height: 1.35;
}
.community-create-datetime {
    display: block;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0f1419;
    color: #f1f5f9;
    font-size: 0.8rem;
}
.community-create-datetime.hidden { display: none; }
.community-create-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.65rem;
    cursor: pointer;
    font-size: 0.78rem;
    color: #cbd5e1;
}
.community-create-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.community-create-toggle__ui {
    flex-shrink: 0;
    width: 2.4rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #334155;
    position: relative;
}
.community-create-toggle input:checked + .community-create-toggle__ui {
    background: #22c55e;
}
.community-create-toggle__ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}
.community-create-toggle input:checked + .community-create-toggle__ui::after {
    transform: translateX(1.1rem);
}
.community-create-toggle small {
    display: block;
    color: #64748b;
    margin-top: 0.15rem;
}
.community-create-rebuy-fields {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.community-create-rebuy-fields.hidden {
    display: none;
}
.community-create-review {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
}
.community-create-review div {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.community-create-review dt { color: #64748b; margin: 0; }
.community-create-review dd { color: #e2e8f0; margin: 0; }
.community-create-earnings {
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 0.65rem;
}
.community-create-earnings p { margin: 0 0 0.5rem; font-size: 0.78rem; color: #94a3b8; }
.community-create-earnings div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.25rem;
}
.community-create-earnings span { font-size: 0.68rem; color: #64748b; letter-spacing: 0.04em; }
.community-create-earnings strong { font-size: 1.35rem; color: #4ade80; }
.community-create-earnings strong.pool { color: #60a5fa; }
.community-create-terms {
    display: flex;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    cursor: pointer;
}
.community-create-terms input { flex-shrink: 0; margin-top: 0.15rem; }
.community-create-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}
.community-create-preview-wrap { margin-top: 0.5rem; }
.community-create-preview-tag {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #64748b;
}
.community-create-preview-card {
    position: relative;
    margin-top: 0.35rem;
    padding: 0.85rem;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(255,255,255,0.14) 0%, rgba(20, 16, 34, 0.84) 48%, rgba(10, 8, 20, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(233, 213, 255, 0.12), inset 0 -38px 70px rgba(168, 85, 247, 0.12);
}
.community-create-preview-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 6px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, transparent, #a855f7 45%, transparent);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}
.community-create-preview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(168, 85, 247, 0.34), transparent 62%);
}
.community-create-preview-badge {
    position: absolute;
    right: 0.45rem;
    top: 2.7rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.62rem;
    padding: 0.42rem 0.18rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
    letter-spacing: 0.12em;
}
.community-create-preview-open {
    float: right;
    font-size: 0.62rem;
    color: #60a5fa;
}
.community-create-preview-card h4 { margin: 0.6rem 1.1rem 0.15rem 0; color: #f8fafc; font-size: 1rem; }
.community-create-preview-by { margin: 0; font-size: 0.72rem; color: #64748b; }
.community-create-preview-tags { display: flex; gap: 0.3rem; margin: 0.4rem 0; flex-wrap: wrap; }
.community-create-preview-tags span {
    font-size: 0.65rem;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}
.community-create-preview-meta {
    display: flex;
    gap: 0.65rem;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.community-create-preview-card footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #64748b;
}
.community-create-preview-card footer strong { color: #4ade80; font-size: 1rem; }
.community-create-preview-enter {
    margin-left: auto;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #a855f7, #7c3aed);
    color: #f3e8ff;
    font-weight: 700;
}
.community-create-modal__head {
    position: relative;
}
.community-create-x {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    font-size: 1.2rem;
    cursor: pointer;
}
.community-create-x:hover {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.55);
}
.community-create-msg {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}
.community-create-msg.success { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.lobby-community-strip__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

