* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: linear-gradient(135deg, #0a0a1a, #15152b);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-height: 100vh;
    padding: 15px;
    padding-bottom: 80px; /* Отступ для нижней навигационной панели */
    -webkit-tap-highlight-color: transparent;
}
.tournament-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tournament-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(32, 178, 170, 0.1));
    border-radius: 20px;
    border: 3px solid #FFD700;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}
.tournament-title {
    font-size: 2em;
    background: linear-gradient(90deg, #FFD700, #FF69B4, #20B2AA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tournament-subtitle {
    color: #a0a0c0;
    font-size: 0.9em;
    margin-bottom: 15px;
}
.help-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    border-radius: 50%;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
}
.help-btn:hover, .help-btn:active {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}
.tournament-status-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.status-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.status-label {
    font-size: 0.8em;
    color: #a0a0c0;
    margin-bottom: 5px;
}
.status-value {
    font-size: 1.4em;
    color: #FFD700;
    font-weight: bold;
}
.status-subtext {
    font-size: 0.75em;
    color: #20B2AA;
    margin-top: 3px;
}
.player-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.player-stat {
    background: rgba(32, 178, 170, 0.1);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(32, 178, 170, 0.3);
}
.player-stat-label {
    font-size: 0.75em;
    color: #a0a0c0;
    margin-bottom: 5px;
}
.player-stat-value {
    font-size: 1.2em;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.player-stat-value.number-update {
    animation: numberBounce 0.3s ease;
    color: #FFD700;
}

@keyframes numberBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}
.player-stat-change {
    font-size: 0.7em;
    color: #4CAF50;
    margin-top: 3px;
}
.player-stat-change.negative {
    color: #FF5252;
}
.slot-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #20B2AA;
    position: relative;
    overflow: hidden;
}
.slot-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.03) 50%, transparent 70%);
    pointer-events: none;
}
.slot-machine {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    perspective: 1000px;
    position: relative;
}
.reel {
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, #1a1c2a, #0f1117);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    border: 3px solid #2a2d34;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.reel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    pointer-events: none;
    animation: shine 3s infinite;
}
@keyframes shine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
.tournament-controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.tournament-controls button {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
}
.btn-join {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.btn-spin {
    background: linear-gradient(135deg, #FFD700, #FF9800);
}
.btn-leaderboard {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}
.tournament-controls button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.tournament-controls button:active:not(:disabled) {
    transform: translateY(-1px);
}
.tournament-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
.spin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.spin-count {
    font-size: 1.1em;
    color: #FFD700;
}
.spin-restore {
    font-size: 0.9em;
    color: #20B2AA;
}
.result-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1em;
    margin: 15px 0;
}

.result-display.result-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.result-display.result-error {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.5);
    color: #FF5252;
}

.result-display.result-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
    color: #FFC107;
}

.result-display.result-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.5);
    color: #2196F3;
}

.result-display.result-spinning {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    color: #FFD700;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
.tournament-leaderboard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #FF69B4;
    display: none; /* Скрыто по умолчанию */
    margin-top: 15px;
    display: none;
}
.leaderboard-title {
    color: #FF69B4;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.leaderboard-list {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 5px;
    padding-bottom: 20px; /* Отступ для нижней панели */
    margin-bottom: 20px;
}
.leader-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.leader-item.champion {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border-left-color: #FFD700;
}
.leader-item.current-player {
    background: rgba(32, 178, 170, 0.2);
    border-left-color: #20B2AA;
    animation: pulse 2s infinite;
}
.leader-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}
.leader-position {
    width: 40px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
}
.leader-info {
    flex: 1;
    margin: 0 15px;
}
.leader-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}
.leader-stats {
    font-size: 0.8em;
    color: #a0a0c0;
}
.leader-score {
    background: linear-gradient(135deg, #FF69B4, #20B2AA);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}
.prize-pool-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 105, 180, 0.1));
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #FFD700;
    display: none; /* Скрыто по умолчанию */
    margin-top: 15px;
    display: none;
}
.prize-title {
    color: #FFD700;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.prize-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px; /* Отступ для нижней панели */
    margin-bottom: 20px;
}
.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.prize-position {
    width: 40px;
    text-align: center;
    font-weight: bold;
    color: #FFD700;
}
.prize-amount {
    color: white;
    font-weight: bold;
}
.prize-percent {
    color: #20B2AA;
    font-size: 0.9em;
}
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.help-content {
    background: linear-gradient(135deg, #15152b, #0a0a1a);
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 95%;
    border: 3px solid #FFD700;
    position: relative;
    animation: slideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes slideIn {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.help-title {
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
}
.tournament-type {
    background: rgba(32, 178, 170, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #20B2AA;
}
.tournament-type h3 {
    color: #20B2AA;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.type-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: center;
}
.help-close {
    background: linear-gradient(135deg, #FFD700, #FF9800);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: transform 0.2s ease;
    touch-action: manipulation;
    font-size: 1.1em;
    margin-top: 25px;
}
.help-close:hover, .help-close:active {
    transform: scale(1.05);
}
.tournament-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #2196F3;
    display: none; /* Скрыто по умолчанию */
    margin-top: 15px;
    display: none;
}
.tournament-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.tournament-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}
.tournament-item.active {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}
.tournament-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.tournament-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
}
.tournament-status {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}
.tournament-status.registration {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}
.tournament-status.finished {
    background: linear-gradient(135deg, #9E9E9E, #616161);
}
.tournament-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.tournament-detail {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.detail-label {
    font-size: 0.8em;
    color: #a0a0c0;
    margin-bottom: 5px;
}
.detail-value {
    font-size: 1.1em;
    color: white;
    font-weight: bold;
}
.tournament-join-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FFD700, #FF9800);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tournament-join-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}
.tournament-join-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.registration-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #4CAF50;
    display: none; /* Скрыто по умолчанию */
    margin-top: 15px;
    text-align: center;
    display: none;
}
.registration-title {
    color: #4CAF50;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.registration-info {
    background: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.registration-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.registration-detail {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.registration-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.registration-actions button {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-register {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.btn-cancel {
    background: linear-gradient(135deg, #FF5252, #D32F2F);
}
.emoji-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}
.emoji-particle {
    position: absolute;
    font-size: 24px;
    animation: fall linear forwards;
    opacity: 0.8;
}
@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}
@keyframes jackpot {
    0%, 100% { 
        background: rgba(255, 215, 0, 0.2); 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% { 
        background: rgba(255, 105, 180, 0.3); 
        box-shadow: 0 0 50px rgba(255, 105, 180, 0.7);
    }
}
.jackpot-animation {
    animation: jackpot 0.8s infinite;
}
@keyframes winPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.8);
    }
}

@keyframes jackpotPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
        border-color: #FFD700;
    }
    25% {
        transform: scale(1.1);
        box-shadow: 0 15px 50px rgba(255, 215, 0, 0.9);
        border-color: #FF69B4;
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 20px 60px rgba(255, 105, 180, 1);
        border-color: #FFD700;
    }
    75% {
        transform: scale(1.1);
        box-shadow: 0 15px 50px rgba(255, 215, 0, 0.9);
        border-color: #FF69B4;
    }
}

.winning-reel {
    animation: winPulse 0.6s ease 4;
    border-color: #4CAF50 !important;
    background: linear-gradient(145deg, #2e7d32, #1b5e20) !important;
}

.jackpot-reel {
    animation: jackpotPulse 0.8s ease infinite;
    border-color: #FFD700 !important;
    background: linear-gradient(145deg, #ffd700, #ff9800) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8) !important;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.swipe-hint {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #FFD700;
    font-size: 0.9em;
    animation: pulse 2s infinite;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.bonus-badge {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(135deg, #FF69B4, #FF4081);
    color: white;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
    animation: pulse 1.5s infinite;
}
.event-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF4081, #FF69B4);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}
.tournament-timer {
    font-size: 1.1em;
    color: #FFD700;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.mobile-controls {
    display: none;
}
@media (max-width: 480px) {
    .reel {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    .tournament-title {
        font-size: 1.6em;
    }
    .help-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .tournament-status-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tournament-controls {
        flex-direction: column;
    }
    .tournament-controls button {
        width: 100%;
    }
    .player-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .player-stat {
        padding: 8px;
    }
    .registration-actions {
        flex-direction: column;
    }
    .type-features {
        grid-template-columns: 1fr;
    }
    .tournament-details {
        grid-template-columns: 1fr;
    }
    .registration-details {
        grid-template-columns: 1fr;
    }
    body {
        padding: 10px;
        padding-bottom: 75px; /* Отступ для нижней навигационной панели на мобильных */
    }
    .tournament-container {
        gap: 10px;
    }
    .mobile-controls {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    .mobile-controls button {
        flex: 1;
        padding: 15px;
        background: linear-gradient(135deg, #2196F3, #0D47A1);
        border: none;
        border-radius: 10px;
        color: white;
        font-weight: bold;
        cursor: pointer;
    }
}

/* 🧭 НАВИГАЦИОННОЕ МЕНЮ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(21, 21, 43, 0.95);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 10px;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    height: 70px;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

/* Скрытие панели при прокрутке */
.bottom-nav.nav-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Показ панели при наведении (для удобства) */
.bottom-nav:hover {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #a0a0c0;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    min-width: 60px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFD700;
}

.nav-btn.active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.nav-icon {
    font-size: 1.5em;
    line-height: 1;
}

.nav-label {
    font-size: 0.75em;
    font-weight: 500;
}

/* Кнопка "Назад" */
.btn-back {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
    border-color: rgba(255, 215, 0, 0.5);
}

.btn-back:active {
    transform: translateX(-1px);
}

/* Отступ для контента при наличии кнопки "Назад" */
.tournament-list,
.registration-panel,
.slot-panel,
.tournament-leaderboard,
.prize-pool-info {
    position: relative;
    padding-top: 50px;
}

.tournament-list:has(.btn-back[style*="display: none"]),
.slot-panel:has(.btn-back[style*="display: none"]) {
    padding-top: 20px;
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 8px 5px;
        height: 65px;
    }
    
    .nav-btn {
        padding: 8px 10px;
        min-width: 50px;
    }
    
    .nav-icon {
        font-size: 1.3em;
    }
    
    .nav-label {
        font-size: 0.7em;
    }
    
    .btn-back {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .tournament-list,
    .registration-panel,
    .slot-panel,
    .tournament-leaderboard,
    .prize-pool-info {
        padding-top: 45px;
    }
}