:root {
    --green: #1b4332;
    --green-dark: #10281e;
    --gold: #d4af37;
    --gold-light: #f2d675;
    --bg: #0e1512;
    --card: #16211c;
    --text: #eef2ee;
    --muted: #9db3a6;
    --danger: #c65b5b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top, var(--green) 0%, var(--bg) 60%);
    color: var(--text);
    min-height: 100vh;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

header.site {
    text-align: center;
    margin-bottom: 28px;
}

header.site h1 {
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    margin: 0;
}

header.site .ball {
    font-size: 2rem;
}

.card {
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    margin-bottom: 24px;
}

label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 600;
    color: var(--gold-light);
}

input[type=text], input[type=date], input[type=time], select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2c3b32;
    background: #0f1712;
    color: var(--text);
    font-size: 1rem;
}

input:focus, select:focus {
    outline: 2px solid var(--gold);
}

.row {
    display: flex;
    gap: 12px;
}
.row > div { flex: 1; }

button, .btn {
    display: inline-block;
    background: var(--gold);
    color: #16211c;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 22px;
    transition: transform .1s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); }

.btn.secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
}

.team-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
@media (max-width: 520px) {
    .team-inputs { grid-template-columns: 1fr; }
    .row { flex-direction: column; }
}

.notice {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.4);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.notice.danger {
    background: rgba(198,91,91,0.12);
    border-color: rgba(198,91,91,0.5);
    color: #f0c9c9;
}

.link-box {
    background: #0f1712;
    border: 1px dashed rgba(212,175,55,0.5);
    padding: 12px 14px;
    border-radius: 8px;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    margin: 8px 0 18px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 28px 0;
    flex-wrap: wrap;
}
.countdown .unit {
    background: var(--green-dark);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 84px;
    text-align: center;
}
.countdown .unit .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}
.countdown .unit .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-top: 6px;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    counter-reset: pick;
}
.results-list li {
    counter-increment: pick;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--green-dark);
    border: 1px solid rgba(212,175,55,0.2);
    margin-bottom: 8px;
    font-size: 1.05rem;
    animation: pop .35s ease both;
    transition: background .5s ease, border-color .5s ease;
}
.results-list li::before {
    content: counter(pick);
    background: var(--gold);
    color: #16211c;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@keyframes pop {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Placeholder slots shown before each pick is revealed */
.results-list li.placeholder {
    color: var(--muted);
    opacity: 0.55;
    font-style: italic;
}
.results-list li.placeholder::before {
    background: transparent;
    border: 1px dashed var(--gold);
    color: var(--gold);
}

/* Flash highlight the instant a pick is revealed */
.results-list li.just-revealed {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--gold);
    animation: reveal-flash .6s ease;
}
@keyframes reveal-flash {
    0%   { transform: scale(1.04); box-shadow: 0 0 0 2px rgba(212,175,55,0.6); }
    100% { transform: scale(1); box-shadow: none; }
}

/* Teaser text shown before the reveal begins ("THIS IS IT!", "3", "2", "1"...) */
.teaser {
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--gold-light);
    font-size: 2.6rem;
    margin: 40px 0;
    min-height: 60px;
    text-shadow: 0 0 24px rgba(212,175,55,0.5);
}
.teaser.pulse {
    animation: teaser-pulse .85s ease both;
}
@keyframes teaser-pulse {
    0%   { opacity: 0; transform: scale(0.7); }
    30%  { opacity: 1; transform: scale(1.12); }
    60%  { transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

#skip-btn {
    display: block;
    margin: 18px auto 0;
}

.muted { color: var(--muted); font-size: 0.9rem; }

footer.site {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 40px;
}

a { color: var(--gold-light); }

.remove-team {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 4px;
    padding: 0;
}
