* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 0;
}

.app-container {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Header with fancy logo */
.header {
    background: linear-gradient(135deg, #ffd600 0%, #ffea00 100%);
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.logo-area {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-area:active {
    transform: scale(0.98);
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d32f2f, #b71c1c, #ff6b6b, #d32f2f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 1px;
    animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-sub {
    font-size: 0.7rem;
    color: #b71c1c;
    font-weight: 500;
    letter-spacing: 2px;
}

.badge-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge-3d {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-2d {
    background: linear-gradient(135deg, #ff8f00, #e65100);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.badge-2d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Main Display */
.main-display {
    text-align: center;
    padding: 40px 0;
}

#live-number {
    font-size: 300px;
    font-weight: 900;
    color: #4caf50;
    letter-spacing: 5px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.1);
    transition: opacity 0.1s ease;
}

.update-time {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.material-icons {
    font-size: 18px;
    vertical-align: middle;
}

/* Result Cards */
.results-section {
    padding: 10px;
}

.card {
    background-color: #f44336;
    color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-time {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

.card-stats small {
    font-size: 10px;
    text-transform: uppercase;
}

.result-num {
    font-size: 28px;
    font-weight: bold;
    color: #ffeb3b;
}

.coin-value {
    font-size: 16px;
    font-weight: bold;
}

.card-update-time {
    font-size: 10px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0.8;
}

/* Recommend Section */
.recommend-section {
    margin-top: 20px;
    padding: 10px;
}

.rec-title {
    font-size: 1rem;
    font-weight: bold;
    color: #f44336;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f44336;
}

.special-rec {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.special-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.special-num {
    background: #ff5722;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    min-width: 70px;
    text-align: center;
}

.mino-rec {
    background: #e8eaf6;
    border: 1px solid #3f51b5;
    border-radius: 12px;
    padding: 15px;
}

.mino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mino-num {
    background: #3f51b5;
    border-radius: 10px;
    padding: 10px 5px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

/* Holiday Message */
.holiday-message {
    text-align: center;
    padding: 80px 20px;
    background: #ffeb3b;
    margin: 20px;
    border-radius: 16px;
}

.holiday-title {
    font-size: 2rem;
    font-weight: bold;
    color: #f44336;
}

.holiday-text {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 500px) {
    #live-number { font-size: 80px; }
    .card-time { font-size: 18px; }
    .result-num { font-size: 24px; }
    .special-num { font-size: 1rem; padding: 8px 12px; min-width: 55px; }
    .mino-num { font-size: 0.75rem; padding: 8px 4px; }
    .logo-main { font-size: 1.3rem; }
    .badge-2d, .badge-3d { padding: 4px 10px; font-size: 0.75rem; }
}