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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

#announcement {
    background: #0d1b36;
    text-align: center;
    border-top: 1px solid #1a2744;
}

.countdown-row {
    border-top: 1px solid #1a2744;
    padding: 0.7rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8899aa;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.announce-row {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #99a;
}

#announce-daily {
    border-top: 1px solid #1a2744;
}

#announce-emoji {
    font-size: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

#daily-emoji {
    font-size: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

#announce-text {
    vertical-align: middle;
}

header {
    background: #16213e;
    padding: 2rem 1rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.end-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card {
    background: #16213e;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 4px solid transparent;
}

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

.card.highlighted {
    background: #1a2744;
    box-shadow: 0 0 0 1px rgba(92,154,255,0.3);
}

.card.glowing {
    position: relative;
    background: #1a2744;
    box-shadow: 0 0 5px rgba(255,215,0,0.4), 0 0 10px rgba(255,215,0,0.2);
    border-left-color: gold !important;
    animation: golden-glow 2s ease-in-out infinite;
}

@keyframes golden-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255,215,0,0.4), 0 0 10px rgba(255,215,0,0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(255,215,0,0.6), 0 0 20px rgba(255,215,0,0.4), 0 0 40px rgba(255,215,0,0.15);
    }
}

.card.glowing-silver {
    position: relative;
    background: #1a2744;
    box-shadow: 0 0 5px rgba(192,192,192,0.4), 0 0 10px rgba(192,192,192,0.2);
    border-left-color: silver !important;
    animation: silver-glow 2s ease-in-out infinite;
}

@keyframes silver-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(192,192,192,0.4), 0 0 10px rgba(192,192,192,0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(192,192,192,0.6), 0 0 20px rgba(192,192,192,0.4), 0 0 40px rgba(192,192,192,0.15);
    }
}

.sparkle-star {
    position: absolute;
    font-size: 0.75rem;
    color: gold;
    pointer-events: none;
    z-index: 1;
    animation: sparkle-twinkle var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}

.sparkle-star.silver {
    color: silver;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50% { opacity: 1; transform: scale(1.3); }
}

.card .rank {
    font-size: 1rem;
    font-weight: 700;
    color: #aaa;
    min-width: 1.5rem;
    text-align: center;
}

.card .emoji {
    font-size: 2rem;
    min-width: 2.5rem;
    text-align: center;
}

.card .info {
    flex: 1;
    min-width: 0;
}

.card .name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.card .name-row .percent {
    font-size: 1.1rem;
    font-weight: 700;
}

.card .name-row .scores {
    font-size: 0.8rem;
    color: #999;
}

.card .name-row .unit {
    font-size: 0.75rem;
    color: #667;
    margin-left: 0.3rem;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: #0f3460;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

/* Mini chart */

.mini-chart {
    display: flex;
    align-items: stretch;
    height: 60px;
    margin-bottom: 0.5rem;
    background: #0d1b36;
    border-radius: 6px;
    padding: 4px 0 4px 34px;
    position: relative;
    overflow: hidden;
}

.mini-yaxis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px 4px 3px 0;
    align-items: flex-end;
    pointer-events: none;
}

.mini-yaxis span {
    font-size: 0.5rem;
    color: #556;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mini-chart-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.mini-grid-h {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px dashed rgba(92, 154, 255, 0.15);
    pointer-events: none;
}

.mini-band {
    position: absolute;
    right: 0;
    min-height: 6px;
    z-index: 0;
    pointer-events: none;
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    width: 100%;
    height: 100%;
}

.mini-bar {
    flex: 1;
    min-width: 2px;
    background: #5c9aff;
    border-radius: 1px 1px 0 0;
    transition: height 0.3s ease, background 0.15s;
}

.mini-bar:hover {
    filter: brightness(1.4);
}


