@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;900&family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --bg:               #060C18;
    --surface:          #0A1525;
    --surface-mid:      #0F1E35;
    --surface-high:     #152540;

    --on-surface:       #EEF4FF;
    --on-surface-2:     rgba(238,244,255,0.70);
    --on-surface-3:     rgba(238,244,255,0.38);

    --primary:          #00AEEF;
    --primary-light:    #29BEFF;
    --primary-dim:      #0090CC;
    --primary-muted:    rgba(0,174,239,0.10);
    --primary-border:   rgba(0,174,239,0.22);
    --primary-glow:     rgba(0,174,239,0.18);

    --navy:             #0D2755;
    --navy-light:       #1A3A6E;
    --navy-border:      rgba(13,39,85,0.6);

    --border:           rgba(238,244,255,0.07);
    --border-strong:    rgba(238,244,255,0.13);

    --max-w: 1140px;
}

html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }

body {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    background: var(--bg);
    color: var(--on-surface);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.022;
    pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,174,239,0.28); border-radius: 2px; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 768px)  { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,174,239,0.12) 0%, transparent 70%);
    top: -120px; left: -160px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(13,39,85,0.55) 0%, transparent 70%);
    bottom: -80px; right: -100px;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,174,239,0.07) 0%, transparent 70%);
    bottom: 10%; left: 20%;
}

.inner { position: relative; z-index: 1; width: 100%; max-width: 780px; margin: 0 auto; text-align: center; }

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}
.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    letter-spacing: 0.08em;
    color: var(--on-surface);
}
.brand-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid var(--primary-border);
    background: var(--primary-muted);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}
.eyebrow-pulse {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 1.6s ease-in-out infinite;
}

.cs-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.cs-heading .line-1 { color: var(--on-surface); display: block; }
.cs-heading .line-2 {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #29CFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-sub {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--on-surface-3);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface-mid);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    min-width: 72px;
    position: relative;
    overflow: hidden;
}
.cd-unit::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-border), transparent);
}
.cd-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}
.cd-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface-3);
}
.cd-sep {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--on-surface-3);
    padding-bottom: 1rem;
    align-self: center;
}

.lb-preview {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
}
.lb-preview::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
    z-index: 2;
}
.lb-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-mid);
}
.lb-preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface-2);
}
.lb-preview-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid var(--primary-border);
    background: var(--primary-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
}
.lb-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 1fr 1fr;
    align-items: center;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
    opacity: var(--row-opacity, 1);
}
.lb-row:last-child { border-bottom: none; }
.lb-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
}
.rank-1 { color: #F5BF00; }
.rank-2 { color: #B0BABF; }
.rank-3 { color: #CD7F32; }
.rank-other { color: var(--on-surface-3); }
.lb-player {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.lb-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    flex-shrink: 0;
}
.av-1 { background: rgba(245,191,0,0.12); color: #F5BF00; border: 1px solid rgba(245,191,0,0.25); }
.av-2 { background: rgba(176,186,191,0.10); color: #B0BABF; border: 1px solid rgba(176,186,191,0.20); }
.av-3 { background: rgba(205,127,50,0.10); color: #CD7F32; border: 1px solid rgba(205,127,50,0.20); }
.av-o { background: rgba(238,244,255,0.05); color: var(--on-surface-3); border: 1px solid var(--border); }
.lb-pname {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--on-surface-2);
    text-align: left;
}
.lb-wager {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--on-surface-3);
    text-align: right;
}
.lb-prize {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}
.lb-col-head {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface-3);
    text-align: right;
}
.lb-col-head:first-child { text-align: center; }
.lb-col-head:nth-child(2) { text-align: left; }

.blur-placeholder {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: radial-gradient(ellipse at center, rgba(6,12,24,0.5) 0%, rgba(6,12,24,0.2) 100%);
}
.locked-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,174,239,0.08);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}
.locked-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.06em;
}

.notify-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.notify-input {
    flex: 1;
    min-width: 200px;
    background: var(--surface-mid);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.85rem;
    color: var(--on-surface);
    outline: none;
    transition: border-color 0.2s;
}
.notify-input::placeholder { color: var(--on-surface-3); }
.notify-input:focus { border-color: var(--primary-border); }
.btn-notify {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.btn-notify:hover { background: var(--primary-light); }
.btn-notify:active { transform: scale(0.97); }

.footer-note {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.72rem;
    color: var(--on-surface-3);
    margin-top: 2rem;
}

.notfound-code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(6rem, 20vw, 11rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 480px) {
    .cd-unit { min-width: 58px; padding: 0.75rem 0.875rem; }
    .cd-sep { font-size: 1.1rem; }
    .lb-row { grid-template-columns: 2rem 1fr 1fr; }
    .lb-row > .lb-wager { display: none; }
    .lb-col-head.hide-mobile { display: none; }
}
