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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f1115;
    color: #e6e6e6;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffd700;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card {
    background: #1a1d24;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    background: radial-gradient(circle at 30% 30%, #ffe066, #f5c518);
    color: #222;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.ball.euro {
    background: radial-gradient(circle at 30% 30%, #ff8a8a, #e63946);
    color: #fff;
}

.ball.hit {
    box-shadow: 0 0 0 3px #4ade80, 0 2px 8px rgba(74, 222, 128, 0.5);
    transform: scale(1.05);
}

.separator {
    color: #555;
    font-size: 1.5rem;
    margin: 0 0.4rem;
}

.draw-date {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.win-class {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: #2a2e38;
    font-weight: 500;
}

.win-class.win {
    background: linear-gradient(90deg, #15803d, #22c55e);
    color: #fff;
}

.history-item {
    border-bottom: 1px solid #2a2e38;
    padding: 1rem 0;
}

.history-item:last-child {
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-box {
    background: #2a2e38;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
}

.stat-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 0.3rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2e38;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #888;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    color: #ffd700;
}

.site-header {
    text-align: center;
    margin-bottom: 2rem;
}

.site-header .logo {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.site-header h1 {
    margin-bottom: 0.3rem;
}

.subtitle {
    color: #888;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.next-draw-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, #1f2030, #2c2438);
    border: 1px solid #3a3550;
}

.next-draw-info,
.jackpot {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.next-draw-label,
.jackpot-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.next-draw-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6e6e6;
}

.jackpot {
    text-align: right;
}

.jackpot-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.history-card summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.history-card summary::-webkit-details-marker {
    display: none;
}

.history-card summary::before {
    content: "▶";
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.2s;
}

.history-card[open] summary::before {
    transform: rotate(90deg);
}

.history-count {
    color: #888;
    font-size: 0.9rem;
    font-weight: normal;
}

.history-card[open] #history {
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .next-draw-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .jackpot {
        text-align: left;
    }
}
