body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #2c3e50, #4a6741);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f5f0;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid #d4926b;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.powerball-logo {
    font-size: 32px;
    font-weight: bold;
    color: #d4926b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.jackpot-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.ticket-section {
    background: white;
    border: 2px solid #d4926b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.number-grid {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    min-height: 150px;
}

.number-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.number-row:last-child {
    margin-bottom: 0;
}

.row-label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    width: 20px;
    margin-right: 15px;
}

.numbers-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.number-cell {
    width: 35px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    background: white;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.number-cell.powerball {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    margin-left: 15px;
}

.number-cell.generated {
    animation: numberPop 0.5s ease;
}

.number-cell.historical-match {
    background: #ffc107 !important;
    color: #333 !important;
    border-color: #ffc107 !important;
    animation: historicalGlow 1s ease infinite alternate;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
    transform: scale(1.05);
    font-weight: bold;
    position: relative;
}

.number-cell.powerball.historical-match {
    background: #fd7e14 !important;
    color: white !important;
    border-color: #fd7e14 !important;
    animation: historicalGlow 1s ease infinite alternate;
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.8);
}

.number-cell.historical-match::after {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    color: #ffc107;
    animation: sparkle 1.5s ease infinite;
}

.number-cell.powerball.historical-match::after {
    color: #fd7e14;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes numberPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes historicalGlow {
    0% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.7); }
    100% { box-shadow: 0 0 15px rgba(255, 193, 7, 1); }
}

.generate-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin: 20px auto;
    display: block;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.draw-checker {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.draw-checker h3 {
    color: #d4926b;
    margin-bottom: 20px;
    text-align: center;
}

.draw-input-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.draw-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.draw-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.draw-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: 2px solid #333;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.powerball-input {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    margin-left: 10px;
}

.powerball-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.check-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instant-feedback {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.5s ease;
    animation: feedbackPop 0.5s ease;
}

.instant-feedback.winner {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 3px solid #28a745;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.instant-feedback.loser {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: 3px solid #6c757d;
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.3);
}

.instant-feedback.historical {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #333;
    border: 3px solid #ffc107;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

@keyframes feedbackPop {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.results-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    min-width: 100px;
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #d4926b;
}

.results-grid {
    margin-top: 20px;
}

.result-row {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.result-row.winner {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.result-row.historical {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.result-label {
    font-weight: bold;
    width: 20px;
    margin-right: 15px;
}

.result-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.result-number {
    width: 30px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #333;
    background: white;
}

.result-number.match {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.result-number.powerball {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.result-number.powerball.match {
    background: #28a745;
    border-color: #28a745;
}

.result-prize {
    margin-left: auto;
    font-weight: bold;
    color: #28a745;
}

.loading-indicator {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.cache-info {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.historical-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
    color: #856404;
}