/* Championship CSS - Beautiful Modern Design - No Scroll Layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #141825;
    --bg-tertiary: #1e2436;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-gold: #FFD700;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --border-color: rgba(148, 163, 184, 0.2);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    background-image: 
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* Full Page Container */
.championship-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Compact Header */
.header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(20, 24, 37, 0.95) 0%, rgba(10, 14, 26, 0.95) 100%);
    border-bottom: 2px solid var(--accent-gold);
    padding: 10px 15px;
    height: 70px;
    margin: 5px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Mini Pong Court */
.pong-court-mini {
    position: relative;
    width: 200px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.pong-court-mini .center-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.3) 5px,
        transparent 5px,
        transparent 10px
    );
}

.pong-court-mini .paddle {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(90deg, #fff, #ddd);
    border-radius: 2px;
}

.pong-court-mini .paddle-left {
    left: 10px;
    animation: paddleLeftMini 3s ease-in-out infinite;
}

.pong-court-mini .paddle-right {
    right: 10px;
    animation: paddleRightMini 3s ease-in-out infinite;
}

.pong-court-mini .ball {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff 0%, #ddd 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: ballMoveMini 2s linear infinite;
}

.pong-court-mini .score-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Championship Title Compact */
.championship-title-compact {
    text-align: center;
    flex: 1;
}

.championship-title-compact h1 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #ffa500 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.championship-title-compact .subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* DeFAI Logo Styling */
.defai-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.6));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.6)) brightness(1);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 165, 0, 0.9)) brightness(1.1);
        transform: scale(1.02);
    }
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-item-compact {
    text-align: center;
}

.status-item-compact .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-item-compact .value {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-green);
}

.progress-bar-mini {
    width: 150px;
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-mini .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    transition: width 0.5s ease;
}

/* Main Grid Layout - Live Matches Focus */
.main-grid {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 20px;
    padding: 20px;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 100px);
}

/* Left Panel - Tournament Bracket (Modern) */
.left-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(20, 24, 37, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
}

.left-panel.modern-bracket {
    padding: 0;
    position: relative;
}

/* Modern Bracket Header */
.bracket-header-modern {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px;
}

.bracket-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bracket-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.bracket-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

/* Modern Bracket Tabs */
.bracket-tabs-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bracket-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bracket-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.bracket-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.tab-icon {
    font-size: 20px;
}

.tab-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.bracket-tab.active .tab-text {
    color: var(--accent-gold);
}

/* Center Panel - Live Matches (2x2 Grid) */
.center-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 15px;
    padding: 0 20px;
    height: 100%;
}

/* Live Matches Grid Container */
.matches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    flex-shrink: 0;
    height: auto;
}

/* Right Panel - Betting */
.betting-panel {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Betting Header Styles */
.betting-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.wallet-address {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.wallet-balance {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 15px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.connect-wallet-btn {
    background: linear-gradient(45deg, #00D4FF, #39FF14);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.connect-wallet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

.deposit-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    margin-left: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.deposit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.betting-balance {
    color: #FFD700;
    font-weight: 700;
    margin-left: 15px;
    padding: 5px 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Matches List (Vertical) */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling */
.matches-list::-webkit-scrollbar {
    width: 6px;
}

.matches-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.matches-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.matches-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.match-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 3px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.match-card[data-match-id] {
    cursor: pointer;
}

.match-card[data-match-id]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

.match-card.live {
    animation: livePulse 2s ease-in-out infinite;
    border-width: 3px;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.5); }
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.match-id {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.match-phase {
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    border-radius: 20px;
    border: 1px solid var(--accent-purple);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.match-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.team-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.team-name-large {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.team-score-large {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-green);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.stat-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.team-holdings {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.holding-sol {
    color: var(--accent-blue);
}

.holding-defai {
    color: var(--accent-purple);
}

.vs-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-gold);
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 24px;
    border: 3px solid var(--accent-gold);
    z-index: 10;
    letter-spacing: -0.02em;
}

/* Large Timer Section */
.match-timer-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-top: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    margin: 15px 0;
}

.timer-icon {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

.timer-text {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: -0.02em;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Hover effect for timer */
.match-card:hover .timer-text {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.match-card:hover .timer-icon {
    animation-duration: 1s;
}

/* Urgent timer styling */
.match-timer-large.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: var(--error-color);
}

.match-timer-large.urgent .timer-text {
    color: var(--error-color);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    animation: urgentPulse 0.5s ease-in-out infinite;
}

.match-timer-large.urgent .timer-icon {
    animation: urgentShake 0.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes urgentShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.match-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 15px 0;
    border-top: none;
}

.match-timer {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
}

.match-action {
    font-size: 11px;
    color: var(--accent-gold);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.match-card:hover .match-action {
    opacity: 1;
}

/* Placeholder for empty match slots */
.match-card-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
    opacity: 0.3;
}

/* Chart and Log Container */
.chart-log-container {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Defined.fi Embed Container */
.defined-embed-container {
    flex: 1.5;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.embed-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.defined-embed-container iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    min-height: 0;
}

/* Log Ticker */
.log-ticker-container {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 15px;
}

/* Tournament Stats Section */
.tournament-stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
}

.tournament-stat-item {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.tournament-stat-item .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    line-height: 1;
}

/* Special styling for time remaining */
#round-time-remaining {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* Special styling for market cap */
#defai-market-cap {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Special styling for volume */
#defai-volume {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Log ticker section takes remaining space */
.log-ticker-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ticker-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.log-ticker {
    flex: 1;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    min-height: 0;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.9;
    font-size: 16px;
}

.log-timestamp {
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 10px;
}

/* Right Panel - Bracket (legacy - now center-panel) */
.right-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    gap: 15px;
}

.bracket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bracket-tabs-compact {
    display: flex;
    gap: 10px;
}

.bracket-tab-mini {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bracket-tab-mini:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.bracket-tab-mini.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* ==================== BETTING PANEL STYLES ==================== */

/* Betting Tabs */
.betting-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding: 0;
}

.bet-tab {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bet-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.bet-tab.active {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.bet-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
}

.bet-count {
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Betting Content */
.betting-content {
    flex: 1;
    overflow: hidden;
    padding: 20px;
}

.bet-view {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.bet-view.active {
    display: block;
}

/* Match Cards with Odds */
.match-card.with-odds .teams-with-odds {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.team-row .team-name {
    flex: 1;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-row .team-pnl {
    margin: 0 10px;
    font-weight: bold;
    font-size: 0.875rem;
}

.team-row .team-pnl.positive {
    color: var(--accent-green);
}

.team-row .team-pnl.negative {
    color: var(--accent-red);
}

.odds-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.odds-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: scale(1.05);
}

.odds-btn.selected {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.odds-btn.updating {
    animation: oddsUpdate 0.5s ease;
}

@keyframes oddsUpdate {
    0% { 
        background: rgba(255, 215, 0, 0.5);
        transform: scale(1.1);
    }
    100% { 
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
        transform: scale(1);
    }
}

/* Quick Bet Buttons */
.quick-bet-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.quick-bet-btn {
    flex: 1;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-bet-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Betting Matches List */
.betting-matches {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.betting-match {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.betting-match:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.betting-match h4 {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: center;
}

.odds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.bet-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bet-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
}

.bet-option.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--accent-gold);
}

.bet-option .team {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.bet-option .odds {
    display: block;
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--accent-gold);
}

/* Bet Slip Styles */
.bet-slip-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bet-slip-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.bet-slip-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.bet-slip-item .remove-bet {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bet-slip-item .remove-bet:hover {
    opacity: 1;
}

.bet-slip-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.bet-amount-section {
    margin-bottom: 15px;
}

.bet-amount-section label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.bet-amount-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Orbitron', monospace;
}

.bet-amount-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.bet-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.bet-summary-row span:last-child {
    font-weight: bold;
    color: var(--accent-gold);
}

.place-bet-btn {
    width: 100%;
    background: linear-gradient(45deg, #00D4FF, #39FF14);
    color: var(--bg-primary);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.place-bet-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

.place-bet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Betting History */
.bet-history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.history-filter {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.history-filter.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.bet-history-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.betting-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.betting-stats .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.betting-stats .stat-value {
    font-weight: bold;
}

.betting-stats .stat-value.positive {
    color: var(--accent-green);
}

/* Betting Leaderboard Widget */
.betting-leaderboard-widget {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-align: center;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Update for database-driven leaderboard */
#betting-leaders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leader-item {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.leader-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.leader-item .rank {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--accent-gold);
}

.leader-item:first-child .rank {
    color: #FFD700;
}

.leader-item:nth-child(2) .rank {
    color: #C0C0C0;
}

.leader-item:nth-child(3) .rank {
    color: #CD7F32;
}

.leader-item .address {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.leader-item .profit {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
}

.leader-item .profit.positive {
    color: var(--accent-green);
}

.leader-item .profit.negative {
    color: var(--accent-red);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.75rem;
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--accent-gold);
    margin-right: 8px;
}

.leaderboard-profit {
    color: var(--accent-green);
    font-weight: bold;
}

/* Compact Log Ticker for smaller left panel */
.log-ticker-container.compact {
    height: 120px;
    padding: 10px;
    flex: none;
}

.log-ticker-container.compact .ticker-title {
    font-size: 10px;
    margin-bottom: 8px;
}

.log-ticker-container.compact .log-ticker {
    font-size: 10px;
    line-height: 1.3;
}

/* Modern Bracket Container */
.bracket-container-modern {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.bracket-view {
    display: none;
    height: 100%;
    width: 100%;
}

.bracket-view.active {
    display: block;
}

/* Bracket Tree - Vertical Layout */
.bracket-tree {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Vertical Bracket Rounds */
.bracket-rounds {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bracket-round-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--accent-gold);
}

.round-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--accent-gold);
}

.round-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Match Cards - Vertical */
.bracket-matches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 20px;
}

.bracket-match {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.bracket-match[data-match-id] {
    cursor: pointer;
}

.bracket-match:hover,
.bracket-match[data-match-id]:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.bracket-match.completed {
    opacity: 0.8;
}

.bracket-match.active {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.05);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(34, 197, 94, 0.2); }
}

.bracket-team {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.bracket-team:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bracket-team.winner {
    background: rgba(255, 215, 0, 0.1);
}

.bracket-team.winner::before {
    content: '👑';
    position: absolute;
    left: -5px;
    font-size: 12px;
}

.team-name {
    flex: 1;
}

.team-score {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--accent-gold);
    margin-left: 10px;
}

/* Eliminated Teams Grid */
.eliminated-grid {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
}

.eliminated-team {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.eliminated-team:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateX(5px);
}

.eliminated-team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.elimination-rank {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--accent-red);
    opacity: 0.8;
}

.eliminated-team-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eliminated-team .team-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.eliminated-team .team-record {
    font-size: 12px;
    color: var(--text-secondary);
}

.elimination-time {
    font-size: 11px;
    color: var(--accent-red);
    opacity: 0.6;
}

/* Bracket Info Footer */
.bracket-info {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bracket-stat {
    text-align: center;
}

.bracket-stat .stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.bracket-stat .stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: var(--accent-gold);
}

/* Scrollbar Styling */
.bracket-tree::-webkit-scrollbar,
.eliminated-grid::-webkit-scrollbar {
    width: 6px;
}

.bracket-tree::-webkit-scrollbar-track,
.eliminated-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.bracket-tree::-webkit-scrollbar-thumb,
.eliminated-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.bracket-tree::-webkit-scrollbar-thumb:hover,
.eliminated-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Remove old bracket styles */
.bracket-display,
.bracket-header,
.bracket-tabs-compact,
.bracket-tab-mini {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.eliminated-team {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(20, 24, 37, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.8;
    font-size: 11px;
}

/* Animations */
@keyframes paddleLeftMini {
    0%, 100% { top: 15%; }
    50% { top: 65%; }
}

@keyframes paddleRightMini {
    0%, 100% { top: 65%; }
    50% { top: 15%; }
}

@keyframes ballMoveMini {
    0% { left: 15px; top: 25%; }
    25% { left: 50%; top: 65%; }
    50% { left: calc(100% - 15px); top: 45%; }
    75% { left: 50%; top: 15%; }
    100% { left: 15px; top: 25%; }
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 80px;
    width: 90%;
    max-width: 1800px;
    border-radius: 40px;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--glow-gold);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.player-modal-content {
    max-width: 1200px;
}

.close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 80px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-red);
}

/* Player Profile Styles */
.player-profile-header {
    text-align: center;
    margin-bottom: 60px;
}

.profile-image {
    font-size: 120px;
    margin-bottom: 40px;
}

.profile-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.profile-team {
    font-size: 28px;
    color: var(--text-secondary);
}

.profile-bio {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    font-style: italic;
    line-height: 1.6;
    font-size: 32px;
}

.profile-stats {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 28px;
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--accent-green);
}

.health-bar {
    width: 400px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.health-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.health-percent {
    margin-left: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
}

.profile-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.profile-btn {
    padding: 24px 48px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Wallet Address Display */
.wallet-address-row {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.wallet-address-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.wallet-address-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-address-btn {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-address-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
}

/* Heal Button (SOL) */
.heal-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.heal-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.heal-btn:hover::before {
    transform: scale(1);
}

.heal-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* Mana Button (DEFAI) */
.mana-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.mana-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.mana-btn:hover::before {
    transform: scale(1);
}

.mana-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Match Detail Styles */
.match-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.match-detail-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 36px;
    color: var(--accent-gold);
}

.match-status {
    padding: 16px 32px;
    border-radius: 40px;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.match-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.match-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.match-status.completed {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.detail-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: start;
}

.detail-team {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.detail-team h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 40px;
    text-align: center;
}

.detail-vs {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    color: var(--text-secondary);
    align-self: center;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wallet-item {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 24px;
}

.wallet-name {
    font-weight: 600;
    color: var(--accent-blue);
    cursor: pointer;
    transition: color 0.3s ease;
}

.wallet-name:hover {
    color: var(--accent-gold);
}

.wallet-health {
    text-align: center;
}

.health-alive {
    color: var(--accent-green);
}

.health-dead {
    color: var(--accent-red);
}

.wallet-balance {
    text-align: right;
    font-size: 22px;
    color: var(--text-secondary);
}

.match-phase-info {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    font-size: 28px;
}

.match-phase-info p {
    margin: 20px 0;
}

.match-phase-info strong {
    color: var(--accent-gold);
}

/* Winner Celebration */
.winner-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-celebration.hidden {
    display: none;
}

.winner-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 3px solid var(--accent-gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    box-shadow: var(--glow-gold);
}

.trophy-animation {
    font-size: 100px;
    animation: trophyBounce 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.winner-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.winner-team {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.winner-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.winner-stats .stat {
    text-align: center;
}

.winner-stats .label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.winner-stats .value {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--accent-green);
}

.winner-wallets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.winner-wallet-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.winner-wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.winner-wallet-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.celebrate-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.celebrate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.close-celebration {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 50px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-celebration:hover {
    color: var(--accent-red);
}

/* Hide original elements */
.pong-header,
.container,
.tournament-status,
.matches-section,
.bracket-section,
.log-section,
.section-title {
    display: none;
}

/* Responsive */
@media (max-width: 1400px) {
    .defined-embed-container {
        display: none;
    }
    
    .bracket-display {
        max-height: none;
        flex: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .main-grid {
        grid-template-columns: 220px 1fr 280px;
    }
    
    .betting-panel {
        padding: 15px;
    }
    
    .betting-content {
        padding: 15px;
    }
    
    .matches-grid {
        gap: 15px;
    }
    
    .match-card {
        padding: 20px;
        height: 260px;
    }
}

@media (max-width: 1200px) {
    /* Stack betting panel below */
    .main-grid {
        grid-template-columns: 200px 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .betting-panel {
        grid-column: 1 / -1;
        height: 350px;
        margin-top: 20px;
    }
    
    .matches-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .match-card {
        padding: 16px;
        height: 220px;
    }
    
    .team-name-large {
        font-size: 18px;
    }
    
    .team-score-large {
        font-size: 26px;
    }
    
    .chart-log-container {
        flex-direction: column;
        min-height: 300px;
    }
    
    .defined-embed-container {
        min-height: 200px;
    }
    
    .log-ticker-container {
        min-height: 100px;
    }
    
    /* Responsive tournament stats */
    .tournament-stats-section {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        min-height: auto;
    }
    
    .tournament-stat-item {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tournament-stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-value-large {
        font-size: 28px;
    }
    
    /* Adjust timer size on smaller screens */
    .timer-text {
        font-size: 36px !important;
    }
    
    .timer-icon {
        font-size: 28px !important;
    }
    
    .match-timer-large {
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile layout */
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        padding: 10px;
    }
    
    .left-panel {
        display: none;
    }
    
    .center-panel {
        padding: 10px;
    }
    
    .bracket-display {
        min-height: 200px;
    }
    
    .defined-embed-container {
        height: 250px;
        margin-top: 10px;
    }
    
    /* Betting panel as slide-up drawer */
    .betting-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70vh;
        transform: translateY(calc(100% - 60px));
        transition: transform 0.3s ease;
        z-index: 1000;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }
    
    .betting-panel::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .betting-panel.expanded {
        transform: translateY(0);
    }
    
    /* Compact header on mobile */
    .header-compact {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    
    .betting-header {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .wallet-info {
        font-size: 0.75rem;
    }
    
    .connect-wallet-btn {
        padding: 8px 15px;
        font-size: 0.875rem;
    }
    
    /* Further reduce timer size on mobile */
    .timer-text {
        font-size: 20px !important;
    }
    
    .timer-icon {
        font-size: 20px !important;
    }
    
    .match-timer-large {
        padding: 10px !important;
        gap: 10px !important;
    }
}

/* Make sure clickable elements are clickable */
.clickable,
.wallet-name {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clickable:hover,
.wallet-name:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px currentColor;
    transform: translateY(-1px);
}

/* No matches display */
.no-matches {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-style: italic;
    opacity: 0.7;
}

.profile-error {
    text-align: center;
    padding: 40px;
    color: var(--text-primary);
}

.profile-error h2 {
    color: var(--danger);
    margin-bottom: 20px;
    font-size: 24px;
}

.profile-error p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.profile-error .profile-btn {
    margin-top: 20px;
}

/* Mini wallet address with Solscan link */
.wallet-address-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.solscan-link-mini {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.solscan-link-mini:hover {
    opacity: 1;
    font-style: italic;
} 

/* Dual Wallet Button Styles */
.wallet-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
}

.connect-wallet-btn .btn-icon {
    font-size: 18px;
}

.connect-wallet-btn .btn-text {
    white-space: nowrap;
}

/* Demo Mode Button */
.connect-wallet-btn.demo-mode {
    background: linear-gradient(45deg, #8B5CF6, #EC4899);
    color: white;
    border: 2px solid transparent;
}

.connect-wallet-btn.demo-mode:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.connect-wallet-btn.demo-mode::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8B5CF6, #EC4899, #8B5CF6);
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.connect-wallet-btn.demo-mode:hover::before {
    opacity: 1;
}

/* Production Mode Button */
.connect-wallet-btn.production-mode {
    background: linear-gradient(45deg, #00D4FF, #39FF14);
    color: #0A0B0D;
}

.connect-wallet-btn.production-mode:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

/* Connected State */
.connect-wallet-btn.connected {
    background: linear-gradient(45deg, #22C55E, #10B981);
}

.connect-wallet-btn.connected:hover {
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.5);
}

/* Demo Connected State */
.connect-wallet-btn.demo-mode.connected {
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wallet-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .connect-wallet-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.profile-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

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

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

.profile-content {
    margin-top: 20px;
}

/* Wallet Balances */
.wallet-balances {
    display: grid;
    gap: 15px;
}

.balance-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.balance-row:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.token-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 18px;
}

.token-balance {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--accent-green);
    text-align: right;
}

.token-value {
    color: var(--text-secondary);
    font-size: 14px;
}

.balance-row.total-row {
    margin-top: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
}

.balance-row.total-row .token-name {
    color: var(--accent-gold);
}

.wallet-address-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.wallet-address-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.solscan-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.solscan-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.stat-value.profit {
    color: var(--accent-green);
}

.stat-value.loss {
    color: var(--accent-red);
}

/* STREAM OPTIMIZED SPONSOR BORDER LAYOUT */
.championship-container {
    position: relative;
    border: 8px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                linear-gradient(45deg, var(--accent-gold), #ff6b35, var(--accent-purple), var(--accent-gold)) border-box;
    height: 100vh;
    overflow: hidden;
}

/* Top Sponsor Bar */
.sponsor-border-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 107, 53, 0.95) 50%, rgba(139, 92, 246, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10000;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Bottom Sponsor Bar */
.sponsor-border-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(255, 107, 53, 0.95) 50%, rgba(255, 215, 0, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10000;
    border-top: 3px solid var(--accent-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

/* Left Sponsor Bar */
.sponsor-border-left {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 80px;
    width: 120px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 107, 53, 0.95) 50%, rgba(139, 92, 246, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px 10px;
    z-index: 10000;
    border-right: 3px solid var(--accent-gold);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

/* Right Sponsor Bar */
.sponsor-border-right {
    position: fixed;
    right: 0;
    top: 80px;
    bottom: 80px;
    width: 120px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.95) 0%, rgba(255, 107, 53, 0.95) 50%, rgba(255, 215, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px 10px;
    z-index: 10000;
    border-left: 3px solid var(--accent-gold);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

/* Main Content Area with Border Offset */
.championship-content {
    position: absolute;
    top: 80px;
    left: 120px;
    right: 120px;
    bottom: 80px;
    overflow: hidden;
}

/* Sponsor Slot Styles */
.sponsor-slot {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Horizontal sponsor slots (top/bottom) */
.sponsor-border-top .sponsor-slot,
.sponsor-border-bottom .sponsor-slot {
    width: 300px;
    height: 60px;
    margin: 0 10px;
}

/* Vertical sponsor slots (left/right) */
.sponsor-border-left .sponsor-slot,
.sponsor-border-right .sponsor-slot {
    width: 100px;
    height: 100px;
    margin: 10px 0;
}

.sponsor-slot:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

.sponsor-placeholder {
    text-align: center;
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-text {
    display: block;
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.sponsor-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.sponsor-link:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.sponsor-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    padding: 8px;
    transition: all 0.3s ease;
    flex-direction: column;
}

.sponsor-active:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.sponsor-logo {
    max-width: 60px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.sponsor-info {
    text-align: center;
}

.sponsor-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    line-height: 1;
}

.sponsor-expires {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Vertical sponsor slots specific styling */
.sponsor-border-left .sponsor-logo,
.sponsor-border-right .sponsor-logo {
    max-width: 50px;
    max-height: 30px;
}

.sponsor-border-left .sponsor-name,
.sponsor-border-right .sponsor-name {
    font-size: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Horizontal sponsor slots specific styling */
.sponsor-border-top .sponsor-active,
.sponsor-border-bottom .sponsor-active {
    flex-direction: row;
    gap: 12px;
}

.sponsor-border-top .sponsor-info,
.sponsor-border-bottom .sponsor-info {
    text-align: left;
}

/* OTB Brand in Corner */
.otb-corner-brand {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, var(--accent-gold), #ff6b35);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 18px;
    color: black;
    text-shadow: none;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Main Tournament Title */
.tournament-title-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.tournament-title-overlay h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-gold);
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Responsive sponsor banner */
@media (max-width: 1024px) {
    .sponsor-slots {
        gap: 20px;
        padding: 0 15px;
    }
    
    .sponsor-slot {
        max-width: 250px;
        min-height: 100px;
    }
    
    .sponsor-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .sponsor-name {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .otb-sponsor-banner {
        padding: 15px 0;
    }
    
    .sponsor-slots {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .sponsor-slot {
        max-width: 100%;
        width: 300px;
    }
}


