/* ================================================
   PENGUIN RACE - PREMIUM WEB3 BETTING ARENA
   Winter Theme Edition
   ================================================ */

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

:root {
    --bg-dark: #070B14;
    --bg-mid: #0C1222;
    --bg-light: #111827;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);

    /* Penguin accent colors */
    --frost: #00D4FF;
    --blaze: #FF6B35;
    --shadow: #A855F7;
    --storm: #3B82F6;
    --thunder: #FACC15;
    --glacier: #10B981;
    --midnight: #EC4899;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ================================================
   WINTER BACKGROUND
   ================================================ */

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: url('../images/background-dekstop.png') center center / cover no-repeat;
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 20, 0.92);
    pointer-events: none;
}

@media (max-width: 768px) {
    .bg {
        background: url('../images/background-phone.png') center center / cover no-repeat;
    }
}

.bg-sky {
    display: none;
}

.bg-sun,
.bg-sun::before,
.bg-mountains,
.bg-snow,
.bg-ground {
    display: none;
}

/* ================================================
   ENTRANCE ANIMATIONS
   ================================================ */
/*
 * These classes are added/removed by JS (animations.js)
 * This approach prevents backdrop-filter issues
 */

/* Base animation class */
.animate {
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade In */
.animate.fade-in {
    animation: anim-fade-in 0.4s;
}

@keyframes anim-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade In Up */
.animate.fade-in-up {
    animation: anim-fade-in-up 0.5s;
}

@keyframes anim-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left */
.animate.slide-in-left {
    animation: anim-slide-in-left 0.5s;
}

@keyframes anim-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
.animate.slide-in-right {
    animation: anim-slide-in-right 0.5s;
}

@keyframes anim-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
.animate.scale-in {
    animation: anim-scale-in 0.4s;
}

@keyframes anim-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================
   APP LAYOUT
   ================================================ */

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================================
   TOP BAR
   ================================================ */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 36px;
    height: 36px;
    animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--frost) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pot {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pot-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.pot-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    animation: pot-glow 3s ease-in-out infinite;
}

@keyframes pot-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.2)); }
}

.pot-currency {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.how-btn {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.how-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.how-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: var(--frost);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.how-btn:hover::before {
    opacity: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.status-indicator.betting {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    animation: status-glow-cyan 2s ease-in-out infinite;
}

.status-indicator.racing {
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
    animation: status-glow-yellow 1s ease-in-out infinite;
}

@keyframes status-glow-cyan {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.25); }
}

@keyframes status-glow-yellow {
    0%, 100% { box-shadow: 0 0 15px rgba(250, 204, 21, 0.1); }
    50% { box-shadow: 0 0 30px rgba(250, 204, 21, 0.3); }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s;
}

.status-indicator.live .status-dot {
    background: #10B981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
}

.status-indicator.betting .status-dot {
    background: var(--frost);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
    animation: pulse 2s infinite;
}

.status-indicator.racing .status-dot {
    background: #FACC15;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================================
   RACE ARENA
   ================================================ */

.arena {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    position: relative;
}

.arena-header {
    margin-bottom: 12px;
}

.round {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Arena Status Banner - Centered on track */
.arena-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    padding: 24px 48px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When racing - move to top right corner and shrink */
.arena-status.minimized {
    top: 16px;
    left: auto;
    right: 16px;
    transform: translate(0, 0);
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
}

.arena-status.minimized .arena-status-main {
    font-size: 14px;
    margin-bottom: 2px;
}

.arena-status.minimized .arena-status-sub {
    display: none;
}

.arena-status.minimized .arena-status-timer {
    font-size: 18px;
}

.arena-status-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--frost);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    transition: all 0.3s;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: text-glow-cyan 2s ease-in-out infinite;
}

.arena-status-main.racing {
    color: #FACC15;
    text-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
    animation: text-glow-yellow 1s ease-in-out infinite;
}

@keyframes text-glow-cyan {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
    50% { text-shadow: 0 0 40px rgba(0, 212, 255, 0.7); }
}

@keyframes text-glow-yellow {
    0%, 100% { text-shadow: 0 0 20px rgba(250, 204, 21, 0.4); }
    50% { text-shadow: 0 0 50px rgba(250, 204, 21, 0.8); }
}

.arena-status-sub {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.arena-status-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 42px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s;
}

.arena-status-timer.urgent {
    color: #ef4444;
    animation: timer-urgent 0.5s ease-in-out infinite;
}

@keyframes timer-urgent {
    0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { transform: scale(1.05); text-shadow: 0 0 25px rgba(239, 68, 68, 0.8); }
}

.race-track {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.race-track:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.finish-line {
    position: absolute;
    right: 15%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,0.3) 8px,
        rgba(255,255,255,0.3) 16px
    );
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: finish-pulse 2s ease-in-out infinite;
}

@keyframes finish-pulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
    50% { opacity: 1; box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); }
}

.lanes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lane {
    display: flex;
    align-items: center;
    height: 36px;
    position: relative;
}

.lane-info {
    width: 120px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lane-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.lane-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.lane:hover .lane-name {
    text-shadow: 0 0 15px currentColor;
    transform: scale(1.05);
}

.lane-track {
    flex: 1;
    height: 100%;
    position: relative;
    margin-right: 24px;
}

.penguin-racer {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    transition: left 0.1s linear, filter 0.3s;
    filter: drop-shadow(0 0 10px var(--glow-color, rgba(255,255,255,0.3)));
    animation: idle-float 2s ease-in-out infinite;
}

@keyframes idle-float {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-53%); }
}

.penguin-racer.racing {
    animation: waddle 0.25s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--glow-color, rgba(255,255,255,0.5)));
}

.penguin-racer.winner {
    animation: winner-bounce 0.4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--glow-color, #FACC15)) drop-shadow(0 0 60px var(--glow-color, #FACC15));
}

@keyframes waddle {
    0%, 100% { transform: translateY(-50%) rotate(-4deg) scale(1.05); }
    50% { transform: translateY(-50%) rotate(4deg) scale(1.05); }
}

@keyframes winner-bounce {
    0%, 100% { transform: translateY(-50%) scale(1.2); }
    50% { transform: translateY(-65%) scale(1.3); }
}

/* Winner Overlay - Semi-transparent so race track stays visible */
.winner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 20, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    border-radius: 20px;
    z-index: 20;
}

.winner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.winner-content {
    text-align: center;
}

.winner-badge {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #FACC15;
    margin-bottom: 12px;
    padding: 8px 24px;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 100px;
    display: inline-block;
    animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(250, 204, 21, 0.3); }
    50% { box-shadow: 0 0 30px rgba(250, 204, 21, 0.6); }
}

.winner-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FACC15 0%, #FDE68A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(250, 204, 21, 0.5));
    animation: winner-text-glow 1s ease-in-out infinite;
}

@keyframes winner-text-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 50px rgba(250, 204, 21, 0.8)); transform: scale(1.02); }
}

.winner-sub {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ================================================
   PENGUIN CARDS
   ================================================ */

.penguins {
    padding: 12px 0;
}

.penguins-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .penguins-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .penguins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.penguin-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.penguin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-color, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.penguin-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.penguin-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color, var(--glass-border));
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(var(--accent-color-rgb, 255, 255, 255), 0.1);
}

.penguin-card:hover::before {
    opacity: 0.25;
}

.penguin-card:hover::after {
    transform: translateX(100%);
}

.penguin-card:hover .card-avatar {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--accent-color));
}

.penguin-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.penguin-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.penguin-card.disabled:hover .card-avatar {
    transform: none;
    filter: none;
}

.card-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.card-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.card-bet {
    font-size: 11px;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.card-bet span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how-section {
    padding: 48px 0 32px;
    border-top: 1px solid var(--glass-border);
    margin-top: 12px;
}

.how-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.how-section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.how-section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.how-section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.how-section-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.how-section-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.how-section-card:hover .how-section-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.how-section-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--frost) 0%, #0EA5E9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.how-section-icon svg {
    width: 24px;
    height: 24px;
    stroke: #000;
}

.how-section-num {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-section-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.how-section-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.how-section-footer {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.how-section-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--thunder);
}

.how-section-note svg {
    width: 18px;
    height: 18px;
    stroke: var(--thunder);
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .how-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .how-section {
        padding: 32px 0 24px;
    }

    .how-section-header h2 {
        font-size: 22px;
    }

    .how-section-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .how-section-card {
        padding: 20px 16px;
    }

    .how-section-note {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* ================================================
   LEARN MORE SECTION
   ================================================ */

.learn-more-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.learn-more-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-more-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.learn-more-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.learn-more-card:hover::before {
    opacity: 1;
}

.learn-more-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--shadow) 0%, var(--storm) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.learn-more-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.learn-more-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.learn-more-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learn-more-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.learn-more-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.learn-more-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: all 0.3s;
}

.learn-more-card:hover .learn-more-arrow {
    background: rgba(168, 85, 247, 0.2);
}

.learn-more-card:hover .learn-more-arrow svg {
    stroke: var(--shadow);
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .learn-more-section {
        padding: 0 16px 40px;
    }

    .learn-more-card {
        padding: 20px;
        gap: 16px;
    }

    .learn-more-icon {
        width: 48px;
        height: 48px;
    }

    .learn-more-content h3 {
        font-size: 17px;
    }

    .learn-more-content p {
        font-size: 13px;
    }

    .learn-more-arrow {
        display: none;
    }
}

/* ================================================
   ON-CHAIN TRANSPARENCY SECTION
   ================================================ */

.transparency-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.transparency-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    color: var(--glacier);
    margin-bottom: 24px;
}

.transparency-badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--glacier);
}

.transparency-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.check-addresses-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.check-addresses-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: var(--glacier);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    transform: translateY(-3px);
}

.check-addresses-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--glacier);
}

.check-addresses-btn .arrow {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: transform 0.2s, stroke 0.2s;
}

.check-addresses-btn:hover .arrow {
    transform: translateX(5px);
    stroke: var(--glacier);
}

@media (max-width: 600px) {
    .transparency-section {
        padding: 48px 16px 60px;
    }

    .transparency-badge {
        font-size: 14px;
        padding: 12px 22px;
    }

    .transparency-text {
        font-size: 14px;
    }

    .check-addresses-btn {
        padding: 16px 28px;
        font-size: 15px;
    }
}

/* ================================================
   MODAL - Premium Glass Design
   ================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(
        165deg,
        rgba(20, 30, 48, 0.85) 0%,
        rgba(15, 23, 42, 0.9) 50%,
        rgba(10, 18, 35, 0.92) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 36px 40px 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 80px -20px rgba(0, 212, 255, 0.15);
    overflow: hidden;
}

/* Subtle inner glow */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Animated gradient border */
.modal::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 70%
    );
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal:hover::after {
    opacity: 1;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    animation: modal-avatar-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

@keyframes modal-avatar-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    }
    50% {
        transform: translateY(-6px) scale(1.02);
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    }
}

.modal-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-instruction {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    opacity: 0.8;
}

.modal-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    word-break: break-all;
    line-height: 1.6;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 12px;
}

.modal-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 8px;
}

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

.modal-copy:active {
    transform: scale(0.98);
}

.modal-copy svg {
    opacity: 0.6;
}

.modal-copy.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.modal-copy.copied svg {
    opacity: 1;
}

.modal-qr {
    width: 140px;
    height: 140px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.modal-qr:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.modal-qr canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}

.modal-footer {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 16px;
}

/* Divider */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Phantom Button */
.modal-phantom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(171, 154, 255, 0.15) 0%, rgba(120, 100, 200, 0.15) 100%);
    border: 1px solid rgba(171, 154, 255, 0.3);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #AB9AFF;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-phantom-btn:hover {
    background: linear-gradient(135deg, rgba(171, 154, 255, 0.25) 0%, rgba(120, 100, 200, 0.25) 100%);
    border-color: rgba(171, 154, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(171, 154, 255, 0.2);
}

.modal-phantom-btn:active {
    transform: translateY(0);
}

/* Phantom Section */
.modal-phantom-section {
    animation: fadeIn 0.3s ease;
}

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

.modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.modal-back-btn:hover {
    color: var(--text-primary);
}

.phantom-input-wrap {
    margin-bottom: 16px;
}

.phantom-input-wrap label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.phantom-input-wrap input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.phantom-input-wrap input:focus {
    border-color: rgba(171, 154, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(171, 154, 255, 0.1);
}

.phantom-input-wrap input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Hide number input spinners */
.phantom-input-wrap input::-webkit-outer-spin-button,
.phantom-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.phantom-input-wrap input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.modal-send-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #AB9AFF 0%, #8B7FD4 100%);
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(171, 154, 255, 0.3);
}

.modal-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(171, 154, 255, 0.4);
}

.modal-send-btn:active {
    transform: translateY(0);
}

.modal-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.phantom-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    opacity: 0.7;
}

/* ================================================
   HOW IT WORKS MODAL
   ================================================ */

.how-modal {
    max-width: 500px;
    padding: 40px;
}

.how-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 24px;
}

.how-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.how-step-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--frost) 0%, #0EA5E9 100%);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.how-step-content {
    flex: 1;
    padding-top: 4px;
}

.how-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.how-step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.how-note {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

/* ================================================
   TOAST
   ================================================ */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.15);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.15);
}

.toast.info {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.15);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ================================================
   SITE FOOTER
   ================================================ */

.site-footer {
    margin-top: 60px;
    padding: 48px 24px 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, var(--frost) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--frost);
    transform: translateX(4px);
}

.footer-links a svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-links a:hover svg {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-badge svg {
    width: 14px;
    height: 14px;
}

.footer-badge.solana {
    color: #14F195;
    border-color: rgba(20, 241, 149, 0.2);
}

.footer-badge.solana svg {
    stroke: #14F195;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 32px 16px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
        gap: 16px;
    }

    .pot {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .pot-value {
        font-size: 32px;
    }

    .topbar-right {
        order: 2;
    }

    .arena-status {
        padding: 16px 28px;
    }

    .arena-status-main {
        font-size: 22px;
    }

    .arena-status-timer {
        font-size: 32px;
    }

    .arena-status.minimized {
        padding: 8px 12px;
    }

    .arena-status.minimized .arena-status-main {
        font-size: 12px;
    }

    .arena-status.minimized .arena-status-timer {
        font-size: 16px;
    }

    .race-track {
        padding: 14px 20px;
    }

    .lane-info {
        width: 100px;
    }

    .lane-name {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .app {
        padding: 0 16px 16px;
    }

    .pot-value {
        font-size: 28px;
    }

    .how-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .race-track {
        padding: 12px 16px;
    }

    .lane-track {
        margin-right: 16px;
    }

    .penguin-racer {
        width: 28px;
        height: 28px;
    }

    .arena-status {
        padding: 14px 24px;
    }

    .arena-status-main {
        font-size: 18px;
    }

    .arena-status-sub {
        font-size: 11px;
    }

    .arena-status-timer {
        font-size: 28px;
    }

    .arena-status.minimized {
        padding: 6px 10px;
        top: 10px;
        right: 10px;
    }

    .arena-status.minimized .arena-status-main {
        font-size: 11px;
    }

    .arena-status.minimized .arena-status-timer {
        font-size: 14px;
    }

    .modal {
        padding: 24px;
    }

    .modal-name {
        font-size: 22px;
    }

    .how-modal {
        padding: 24px;
    }

    .how-title {
        font-size: 22px;
    }
}
