@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --mustard: #FFC107;
    --mustard-hover: #FFCA28;
    --charcoal: #121212;
    --led-red: #ff0b0b;
    --led-red-glow: rgba(255, 11, 11, 0.7);
    --led-green: #00ff00;
}

body, html {
    margin: 0; padding: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--charcoal);
    font-family: 'Mukta', sans-serif;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

/* Hero Viewport */
.hero-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
}

/* Background image & Monsoon filter */
.background {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    transition: filter 1.5s ease-in-out;
    z-index: 1;
}
body.raining .background {
    filter: brightness(0.5) saturate(0.75) contrast(1.1);
}

/* Canvas Rain Layer */
#rain-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3; pointer-events: none;
    opacity: 0; transition: opacity 0.5s ease;
}
body.raining #rain-canvas { opacity: 1; }

/* Vignette Overlay */
.vignette {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 5; pointer-events: none;
}

/* UI Container */
.ui-container {
    position: absolute; bottom: 45px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    width: 90%; max-width: 420px;
}

/* Scroll Cue */
.scroll-cue {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); font-size: 0.8rem; z-index: 10;
    pointer-events: none; animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

/* Kaka's Voice Bubble */
.kaka-dialogue {
    background: rgba(255, 255, 255, 0.1);
    color: #fff; font-weight: 600; font-size: 1rem;
    padding: 6px 20px; border-radius: 20px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

/* Transparent Media Controls Bar */
.media-controls-bar {
    background: rgba(18, 18, 18, 0.65);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.control-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}
.control-nav-btn:hover { background: rgba(255, 193, 7, 0.3); border-color: var(--mustard); }
.control-nav-btn:active { transform: scale(0.92); }

/* Now Playing Track Ticker */
.track-ticker {
    color: var(--mustard);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    justify-content: center;
}

/* Fare Meter */
.meter-container {
    background: #0a0a0a;
    border: 4px solid #2a2a2a; border-radius: 12px;
    padding: 15px 30px; width: 100%; box-sizing: border-box;
    cursor: pointer; user-select: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.7), inset 0 0 20px rgba(0,0,0,1);
    transform: translateY(0); transition: transform 0.1s, border-color 0.3s;
}
.meter-container:active { transform: translateY(4px); }
.meter-container:hover { border-color: #444; }

.meter-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 5px; border-bottom: 1px solid #222; padding-bottom: 4px;
}

.meter-label { color: #777; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; }
.meter-status { color: #555; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; }
.meter-container.playing .meter-status { color: var(--led-green); text-shadow: 0 0 8px rgba(0,255,0,0.5); }

.meter-display {
    font-family: 'Share Tech Mono', monospace;
    color: var(--led-red);
    text-shadow: 0 0 15px var(--led-red-glow), 0 0 5px var(--led-red-glow);
    display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.rupee { font-size: 2rem; font-family: 'Mukta', sans-serif; opacity: 0.8; }
#meter-led { font-size: 4rem; line-height: 1; }

/* Controls */
.controls { display: flex; gap: 12px; width: 100%; justify-content: center; }
.toggle-btn {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px; border-radius: 30px;
    font-family: 'Mukta', sans-serif; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center;
}
.toggle-btn:hover { background: rgba(255,255,255,0.2); }
.toggle-btn:active { transform: scale(0.95); }

.rain-btn.active {
    background: #1976D2; border-color: #42A5F5;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
}
.tip-btn { background: var(--mustard); color: var(--charcoal); border: none; }
.tip-btn:hover { background: var(--mustard-hover); }

/* Below-the-Fold Scroll Section */
.info-section {
    background: linear-gradient(to bottom, #141414, #0a0a0a);
    color: #e0e0e0;
    padding: 70px 20px;
    border-top: 4px solid var(--mustard);
}
.info-content { max-width: 800px; margin: 0 auto; }
.receipt-header-box {
    border-left: 5px solid var(--mustard);
    padding-left: 15px;
    margin-bottom: 35px;
}
.info-section h2 { color: var(--mustard); font-size: 2.2rem; margin: 0 0 10px 0; }
.info-section p { font-size: 1.1rem; line-height: 1.6; color: #bbb; margin: 0; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}
.info-card {
    background: #1b1b1b;
    border: 1px solid #2d2d2d;
    border-top: 3px solid var(--mustard);
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.wide-card { width: 100%; box-sizing: border-box; }
.info-card h3 { color: var(--mustard); margin-top: 0; font-size: 1.25rem; }

.tariff-list, .route-list {
    list-style: none; padding: 0; margin: 0;
}
.tariff-list li, .route-list li {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #282828;
    font-size: 0.95rem; color: #ccc;
}
.tariff-list li:last-child, .route-list li:last-child { border-bottom: none; }
.tariff-list strong, .route-list strong { color: var(--mustard); }

.site-footer {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 25px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* UPI Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
    display: flex; justify-content: center; align-items: center;
    z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: #181818; border: 2px solid var(--mustard);
    padding: 24px; border-radius: 16px; text-align: center; color: #fff;
    max-width: 300px; width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.modal-content h3 { margin-top: 0; color: var(--mustard); font-size: 1.3rem; }
.modal-content p { font-size: 0.9rem; color: #ccc; margin-bottom: 12px; }
.upi-id { font-family: monospace; color: var(--mustard); font-size: 0.95rem; margin: 12px 0; }
.close-btn {
    background: var(--mustard); border: none; padding: 8px 24px;
    font-family: 'Mukta', sans-serif; font-weight: bold; border-radius: 20px;
    cursor: pointer; color: var(--charcoal); margin-top: 5px; font-size: 0.95rem;
}
.close-btn:hover { background: var(--mustard-hover); }