/*
 * AquaRing Web Premium Stylesheet
 * Incorporates a responsive mobile mockup container, glassmorphism, HSL theme colors, and animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Base theme colors overridden dynamically by body class */
    --theme-bg: #0A1628;
    --theme-border: #1E6EA8;
    --theme-glow: rgba(30, 110, 168, 0.45);
    --theme-accent: #FFD700;
    --theme-text-glow: #4DBCE8;

    /* UI Static Palette */
    --color-white: #ffffff;
    --color-red: #E74C3C;
    --color-green: #2ECC71;
    --color-gold: #F1C40F;
    --glass-bg: rgba(10, 25, 45, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Theme Color Configurations (from GameTheme.kt) --- */
.theme-ocean {
    --theme-bg: #0A1628;
    --theme-border: #1E6EA8;
    --theme-glow: rgba(30, 110, 168, 0.45);
    --theme-accent: #FFD700;
    --theme-text-glow: #4DBCE8;
}
.theme-coral {
    --theme-bg: #0D1F1A;
    --theme-border: #2ECC71;
    --theme-glow: rgba(46, 204, 113, 0.45);
    --theme-accent: #F39C12;
    --theme-text-glow: #55E896;
}
.theme-lava {
    --theme-bg: #1A0800;
    --theme-border: #FF5500;
    --theme-glow: rgba(255, 85, 0, 0.45);
    --theme-accent: #FFFF00;
    --theme-text-glow: #FF6600;
}
.theme-arctic {
    --theme-bg: #E8F4FD;
    --theme-border: #5BA3C9;
    --theme-glow: rgba(91, 163, 201, 0.45);
    --theme-accent: #E67E22;
    --theme-text-glow: #2980B9;
    --glass-bg: rgba(230, 244, 253, 0.75);
    --glass-border: rgba(91, 163, 201, 0.15);
}
.theme-galaxy {
    --theme-bg: #050510;
    --theme-border: #9B59B6;
    --theme-glow: rgba(155, 89, 182, 0.45);
    --theme-accent: #F1C40F;
    --theme-text-glow: #BDC3C7;
}
.theme-golden {
    --theme-bg: #1A1200;
    --theme-border: #DAA520;
    --theme-glow: rgba(218, 165, 32, 0.45);
    --theme-accent: #FFFFFF;
    --theme-text-glow: #DAA520;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #020813;
    font-family: var(--font-body);
    color: var(--color-white);
    min-height: 100vh;
    overflow: hidden;
    transition: background 0.4s ease;
    margin: 0;
    padding: 0;
}

/* --- Responsive Device Mockup --- */
.app-container {
    width: min(440px, 92vh * 0.49);
    height: min(900px, 92vh);
    background: var(--theme-bg);
    border-radius: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 40px var(--theme-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Desktop bezel details */
.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 999;
}

/* --- Screen Transitions --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    z-index: 10;
    padding: 30px 24px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 20;
}

/* --- Headers and Typography --- */
h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #ffffff, var(--theme-text-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-top: 15px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
}

/* --- HOME SCREEN SPECIFICS --- */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: min(5vh, 40px);
}

.logo-circle {
    width: min(110px, 12vh);
    height: min(110px, 12vh);
    background: radial-gradient(circle, var(--theme-border), var(--theme-bg));
    border: 3px solid var(--theme-border);
    border-radius: 50%;
    
    align-items: center;
    font-size: min(48px, 6vh);
    box-shadow: 0 0 25px var(--theme-glow);
    animation: logoPulse 2.8s infinite ease-in-out;
}

/* Stats Dashboard Panel */
.stats-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: min(14px, 1.5vh);
    margin: min(30px, 3vh) 0;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-box.full-span {
    grid-column: span 2;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-text-glow);
    margin-top: 4px;
}

.stat-value.gold-text {
    color: var(--color-gold);
}

/* Premium Buttons Layout */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: min(16px, 1.8vh);
    margin-top: auto;
    margin-bottom: min(40px, 4vh);
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-border), #1D4ED8);
    border: none;
    outline: none;
    border-radius: 28px;
    padding: 16px 20px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.45), 0 0 15px var(--theme-glow);
    transition: all 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 16px 20px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.05);
}

/* Daily Reward Banner */
.btn-daily {
    background: linear-gradient(135deg, #F39C12, #D35400);
    border: none;
    border-radius: 24px;
    padding: 12px 18px;
    color: var(--color-white);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    transition: all 0.2s ease;
}

.btn-daily.claimed {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* --- DIFFICULTY SCREEN --- */
.difficulty-cards {
    display: flex;
    flex-direction: column;
    gap: min(20px, 2.2vh);
    margin: min(40px, 4vh) 0;
}

.diff-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 22px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.diff-card:active {
    transform: scale(0.97);
}

.diff-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.diff-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

#btnEasy h3 { color: var(--color-green); }
#btnMedium h3 { color: var(--color-gold); }
#btnHard h3 { color: var(--color-red); }

/* --- LEVEL SELECT SCREEN --- */
.level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.level-grid::-webkit-scrollbar {
    display: none;
}

.level-card {
    aspect-ratio: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.level-card:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.08);
}

.level-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.level-num {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.level-stars {
    font-size: 9px;
    margin-top: 2px;
    color: var(--color-gold);
}

/* --- THEME SHOP SCREEN --- */
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.theme-list::-webkit-scrollbar {
    display: none;
}

.theme-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
}

.theme-card.active {
    border-color: var(--theme-border);
    box-shadow: 0 0 15px var(--theme-glow);
}

.theme-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-emoji {
    font-size: 32px;
}

.theme-title-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.theme-desc-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.theme-colors-preview {
    display: flex;
    gap: 8px;
}

.theme-colors-preview span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-select-theme {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.15s ease;
}

.btn-select-theme.select {
    background: var(--theme-border);
    color: var(--color-white);
}

.btn-select-theme.active {
    background: var(--glass-border);
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}

.btn-select-theme.locked {
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.4);
    cursor: default;
}

/* --- GAME SCREEN WRAPPER & HUD --- */
#screenGame {
    padding: 0;
    position: relative;
}

.game-screen-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: filter 0.2s ease;
}

/* Boost Fire Screen Flash Overlay */
.game-screen-wrapper.boost-flash::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0.4;
    z-index: 100;
    pointer-events: none;
}

/* Top HUD bar */
.game-hud {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.hud-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.hud-panel.lives-panel {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 11px 12px;
}

.life-heart {
    font-size: 16px;
    transition: opacity 0.2s ease;
}

.hud-label {
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hud-value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-text-glow);
}

/* Level badge center */
.hud-level-badge {
    background: var(--theme-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 0 10px var(--theme-glow);
}

/* Second HUD Row */
.game-hud-second {
    position: absolute;
    top: 66px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 50;
    pointer-events: none;
}

#tvTimer {
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-text-glow);
    transition: transform 0.15s ease, color 0.15s ease;
}

#tvTimer.low-time {
    color: var(--color-red);
}

#tvTimer.pulse {
    transform: scale(1.3);
}

#tvDifficulty {
    font-size: 11px;
    color: var(--color-green);
}

/* Game Canvas Container */
.canvas-container {
    flex: 1;
    position: relative;
    width: 100%;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- BOTTOM CONTROL PANEL --- */
.control-panel {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 10px 24px 10px;
    display: grid;
    grid-template-columns: 0.5fr 1fr 1.3fr 1.2fr 1fr;
    align-items: center;
    gap: 8px;
    z-index: 45;
}

.control-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--color-white);
    transition: all 0.15s ease;
}

.control-btn:active, .control-btn.pressed {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.94);
}

.control-btn.pause-btn {
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
}

.control-btn.push-btn {
    background: var(--theme-border);
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--theme-glow);
}

.control-btn.push-btn:active, .control-btn.push-btn.pressed {
    background: #1D4ED8;
    transform: scale(0.92);
}

.control-btn.boost-btn {
    background: rgba(241, 196, 15, 0.08);
    border-color: rgba(241, 196, 15, 0.2);
}

.control-btn.boost-btn:active, .control-btn.boost-btn.pressed {
    background: rgba(241, 196, 15, 0.2);
}

.btn-arrow-sym {
    font-size: 18px;
    color: var(--theme-text-glow);
}

.btn-arrow-label {
    font-size: 8px;
    opacity: 0.5;
}

.push-sym {
    font-size: 18px;
}

.push-label {
    font-size: 10px;
    font-weight: 700;
}

.boost-sym {
    font-size: 18px;
}

.boost-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-gold);
}

.control-btn.shake {
    animation: btnShake 0.2s ease-in-out;
}

/* Target Strip direction overlay */
.target-strip {
    position: absolute;
    top: 96px;
    left: 20px;
    right: 20px;
    height: 36px;
    
    align-items: center;
    background: rgba(30, 160, 220, 0.1);
    border-radius: 8px;
    z-index: 50;
    pointer-events: none;
}

.target-strip-label {
    font-weight: 600;
    font-size: 11px;
    color: var(--color-gold);
    visibility: hidden;
    text-transform: uppercase;
}

/* Floating scores and overlay animations */
.tv-floating-score {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gold);
    opacity: 0;
    z-index: 60;
    pointer-events: none;
}

.tv-floating-score.active {
    animation: scoreFloatUp 0.9s ease-out forwards;
}

.tv-bonus-banner {
    position: absolute;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-gold);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
    opacity: 0;
    z-index: 55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tv-bonus-banner.active {
    opacity: 1;
}

.hint-card {
    position: absolute;
    bottom: 110px;
    left: 20px;
    right: 20px;
    background: rgba(10, 25, 45, 0.95);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--theme-text-glow);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 60;
    pointer-events: none;
}

.hint-card.active {
    opacity: 1;
    transform: scale(1.0);
}

.get-ready-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-text-glow);
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    z-index: 65;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    transition: opacity 0.3s ease;
}

.get-ready-overlay.active {
    opacity: 1;
}

/* --- DIALOG MODALS --- */
.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-card {
    background: rgba(10, 25, 45, 0.9);
    border: 2px solid var(--theme-border);
    box-shadow: 0 15px 35px var(--theme-glow);
    border-radius: 28px;
    width: 86%;
    padding: min(30px, 3.5vh) min(24px, 3vh);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dialog-overlay.active .dialog-card {
    transform: scale(1.0);
}

.dialog-emoji {
    font-size: min(48px, 6vh);
    margin-bottom: min(12px, 1.5vh);
}

.dialog-title {
    font-family: var(--font-heading);
    font-size: min(26px, 3.2vh);
    font-weight: 700;
    margin-bottom: min(8px, 1vh);
    color: var(--theme-text-glow);
}

.dialog-stars-row {
    
    gap: 8px;
    margin: min(18px, 2vh) 0;
}

.star {
    font-size: min(28px, 3.5vh);
    color: rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.star.active {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
    transform: scale(1.2);
}

.dialog-score {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: min(8px, 1vh);
}

.dialog-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: min(24px, 3vh);
    line-height: 1.4;
}

.dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dialog-btn {
    width: 100%;
    padding: 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dialog-btn.btn-confirm {
    background: linear-gradient(135deg, var(--theme-border), #1D4ED8);
    color: var(--color-white);
}

.dialog-btn.btn-confirm:active {
    transform: scale(0.96);
}

.dialog-btn.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.dialog-btn.btn-cancel:active {
    transform: scale(0.96);
}

.dialog-btn.btn-ad {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: var(--color-white);
}

/* --- AD MOCK MODAL --- */
.ad-video-mock {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--theme-border);
    margin: 20px auto;
    
    align-items: center;
    font-size: 40px;
    animation: adPulse 1.5s infinite alternate;
}

#adCount {
    font-weight: 600;
    color: var(--color-gold);
    margin-top: 10px;
}

/* --- SETTINGS MODAL --- */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0;
    text-align: left;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}

.settings-label {
    font-weight: 600;
    font-size: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .3s;
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--theme-border);
}

input:checked + .slider::before {
    transform: translateX(22px);
}

/* --- ANIMATIONS DEFINITIONS --- */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1.0);
        box-shadow: 0 0 20px var(--theme-glow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px var(--theme-glow);
    }
}

@keyframes btnShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes scoreFloatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80px) scale(0.85);
    }
}

@keyframes adPulse {
    0% {
        transform: scale(1.0);
        box-shadow: 0 0 10px var(--theme-glow);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 25px var(--theme-glow);
    }
}

/* --- MOBILE STYLING OVERRIDE (NO SCREEN SCALING) --- */
@media (max-width: 768px) {
    body {
        background: #000000;
        align-items: stretch;
    }
    .app-container {
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .app-container::before {
        display: none;
    }
    .control-panel {
        padding-bottom: env(safe-area-inset-bottom, 24px);
    }
}
