/* Mobile-First CSS Reset */* {    margin: 0;    padding: 0;    box-sizing: border-box;}body {    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);    min-height: 100vh;    font-size: 16px;    line-height: 1.5;    color: #333;    overflow-x: hidden;    -webkit-font-smoothing: antialiased;    -moz-osx-font-smoothing: grayscale;}/* PWA Support - Safe Area for notch devices */.app-container {    max-width: 100%;    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);    min-height: 100vh;    display: flex;    flex-direction: column;}/* Header */.app-header {    text-align: center;    padding: 20px 15px;    color: white;    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);}.app-header h1 {    font-size: 2.5rem;    margin-bottom: 8px;    font-weight: 800;    letter-spacing: -0.02em;}.subtitle {    font-size: 1.1rem;    opacity: 0.9;    font-weight: 300;}/* Responsible Gambling Notice */.responsible-gambling {    background: linear-gradient(135deg, #ff6b6b, #ee5a24);    color: white;    padding: 15px;    margin: 0 15px 20px;    border-radius: 12px;    text-align: center;    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);    border: 1px solid rgba(255, 255, 255, 0.2);}.responsible-gambling strong {    display: block;    margin-bottom: 8px;    font-size: 1.1rem;}.responsible-gambling a {    color: #fff;    text-decoration: underline;    font-weight: 500;}/* Main Content */.main-content {    flex: 1;    padding: 0 15px 20px;}/* Sections */section {    background: rgba(255, 255, 255, 0.95);    border-radius: 16px;    padding: 20px;    margin-bottom: 20px;    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);    backdrop-filter: blur(10px);    border: 1px solid rgba(255, 255, 255, 0.2);}/* Lottery Selection */.lotto-selection label {    display: block;    margin-bottom: 10px;    font-weight: 600;    color: #2c3e50;    font-size: 1.1rem;}select, input {    width: 100%;    padding: 15px;    border: 2px solid #e0e6ed;    border-radius: 12px;    font-size: 16px;    background: white;    transition: all 0.3s ease;    -webkit-appearance: none;    appearance: none;    min-height: 44px; /* iOS touch target */}select {    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");    background-position: right 12px center;    background-repeat: no-repeat;    background-size: 16px;    padding-right: 40px;}select:focus, input:focus {    outline: none;    border-color: #667eea;    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);    transform: translateY(-1px);}/* Lotto Config */.lotto-config {    margin-top: 15px;    padding: 15px;    background: #f8f9fa;    border-radius: 8px;    border-left: 4px solid #667eea;}/* Toggle Advanced Button */.toggle-advanced {    width: 100%;    padding: 15px;    background: linear-gradient(135deg, #667eea, #764ba2);    color: white;    border: none;    border-radius: 12px;    font-size: 16px;    font-weight: 600;    margin-bottom: 15px;    cursor: pointer;    transition: all 0.3s ease;    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);    min-height: 44px;}.toggle-advanced:hover {    transform: translateY(-2px);    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);}.toggle-advanced:active {    transform: translateY(0);}/* Prominent Advanced Options Button */.prominent-button {    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;    font-size: 18px !important;    padding: 18px 20px !important;    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4) !important;    border: 2px solid rgba(255, 255, 255, 0.2) !important;    text-transform: uppercase;    letter-spacing: 0.5px;    font-weight: 700 !important;}.prominent-button:hover {    transform: translateY(-3px) !important;    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.5) !important;}/* Advanced Options */.advanced-options h3 {    color: #2c3e50;    margin-bottom: 20px;    text-align: center;    font-size: 1.2rem;}.option-grid {    display: grid;    grid-template-columns: 1fr 1fr;    gap: 15px;    margin-bottom: 15px;}.option-group {    display: flex;    flex-direction: column;}.option-group.full-width {    grid-column: 1 / -1;}.option-group label {    margin-bottom: 8px;    font-weight: 600;    color: #2c3e50;    font-size: 0.9rem;}.note {    font-size: 0.85rem;    color: #666;    font-style: italic;    text-align: center;    margin-top: 10px;}/* Generate Button */.generate-btn {    width: 100%;    padding: 20px;    background: linear-gradient(135deg, #ff6b6b, #ee5a24);    color: white;    border: none;    border-radius: 16px;    font-size: 1.2rem;    font-weight: 700;    margin: 20px 0;    cursor: pointer;    transition: all 0.4s ease;    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);    text-transform: uppercase;    letter-spacing: 0.5px;    min-height: 60px;}.generate-btn:hover {    transform: translateY(-3px);    box-shadow: 0 12px 35px rgba(238, 90, 36, 0.4);}.generate-btn:active {    transform: translateY(-1px);}.generate-btn:disabled {    opacity: 0.6;    transform: none;    cursor: not-allowed;}/* Results */.results h2 {    color: #2c3e50;    margin-bottom: 20px;    text-align: center;    font-size: 1.3rem;}.results h3 {    color: #2c3e50;    margin: 20px 0 10px;    text-align: center;    font-size: 1.1rem;}.numbers-container {    display: flex;    flex-wrap: wrap;    justify-content: center;    gap: 8px;    margin-bottom: 15px;}.number-ball {    width: 40px;    height: 40px;    border-radius: 50%;    display: flex;    align-items: center;    justify-content: center;    font-weight: 700;    font-size: 0.9rem;    color: white;    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);    animation: numberPop 0.5s ease-out;    background: linear-gradient(135deg, #667eea, #764ba2);    border: 2px solid rgba(255, 255, 255, 0.3);}.number-ball.powerball {    background: linear-gradient(135deg, #ff6b6b, #ee5a24);}.number-ball.supplementary {    background: linear-gradient(135deg, #feca57, #ff9ff3);}@keyframes numberPop {    0% {        transform: scale(0);        opacity: 0;    }    50% {        transform: scale(1.2);    }    100% {        transform: scale(1);        opacity: 1;    }}/* Inline Number Display with Color Coding */
.number-set-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8efff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
}

.set-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #667eea, transparent);
    margin: 10px 0;
    border-radius: 1px;
}

/* Color Legend */
.color-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.legend-ball {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
    margin: 0 !important;
    animation: none !important;
}

@media (max-width: 480px) {
    .color-legend {
        gap: 10px;
        padding: 10px;
    }
    
    .legend-item {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .legend-ball {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 480px) {
    .number-set-inline {
        gap: 4px;
        padding: 10px;
        justify-content: center;
    }
    
    .number-ball {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .prominent-button {
        font-size: 16px !important;
        padding: 16px 18px !important;
    }
}

@media (max-width: 360px) {
    .number-ball {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .number-set-inline {
        gap: 3px;
        padding: 8px;
    }
}

/* History Section Inline Display */
.history-numbers {
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.history-ball {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
    animation: none !important;
}

.history-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lottery-type {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.timestamp {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}

/* Mobile responsive for history */
@media (max-width: 480px) {
    .history-numbers {
        gap: 4px;
        padding: 8px;
    }
    
    .history-ball {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    .history-item {
        padding: 10px;
    }
}

/* Clear History Button */
.clear-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.clear-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.clear-btn:before {
    content: "🗑️";
    font-size: 16px;
}

/* Mobile responsive for clear button */
@media (max-width: 480px) {
    .clear-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .clear-btn:before {
        font-size: 14px;
    }
}

/* Enhanced Money Animation */
.money-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
}

.floating-money {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 3s ease-out forwards;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.money-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: moneyBurst 2s ease-out forwards;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50vh) rotate(180deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes moneyBurst {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.3) rotate(20deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1) rotate(-10deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
        opacity: 0;
    }
}

/* Coin Flip Animation */
@keyframes coinFlip {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.2);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

/* Money Rain Effect */
@keyframes moneyRain {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating money variations */
.floating-money:nth-child(even) {
    animation-name: moneyRain;
    font-size: 1.5rem;
}

.floating-money:nth-child(3n) {
    animation-name: coinFlip, floatUp;
    animation-duration: 0.8s, 3s;
    animation-timing-function: ease-in-out, ease-out;
}

.floating-money:nth-child(5n) {
    animation-delay: 0.5s;
    font-size: 2.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .floating-money {
        font-size: 1.5rem;
    }
    
    .money-burst {
        font-size: 3rem;
    }
    
    .floating-money:nth-child(5n) {
        font-size: 2rem;
    }
}

/* Mobile Install Prompt */
.mobile-install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-install-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-install-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.install-steps {
    text-align: left;
    margin: 20px 0;
}

.install-steps p {
    margin: 12px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    line-height: 1.4;
}

.install-steps strong {
    color: #2c3e50;
}

.ios-icon {
    font-size: 1.1rem;
    background: #007AFF;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.mobile-install-content button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.mobile-install-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Install Button Styling */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 14px;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* PWA Info Styling */
.pwa-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.pwa-info-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pwa-info-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.pwa-info-content p {
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-info-content button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pwa-info-content button:hover {
    background: #5a67d8;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .mobile-install-content {
        padding: 20px;
        margin: 10px;
    }
    
    .install-steps p {
        font-size: 0.85rem;
        padding: 6px;
    }
    
    .install-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }
}