/* =========================================================
   Liluni's Horn Blast - Arcade Styling
   Cosmic Dreamscape / Responsive Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&family=Fredoka:wght@600;700&display=swap');

:root {
    --bg-dark: #090714;
    --bg-card: rgba(18, 14, 38, 0.75);
    --bg-card-border: rgba(168, 85, 247, 0.25);
    --accent-pink: #ec4899;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-neon: 0 0 25px rgba(236, 72, 153, 0.35);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Ambient cosmic animated background */
.liluni-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.18) 0%, rgba(236, 72, 153, 0.12) 40%, rgba(9, 7, 20, 0.98) 85%),
                linear-gradient(180deg, #090714 0%, #0d0a22 50%, #07050f 100%);
    position: relative;
}

.cosmic-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cosmic-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.cosmic-orb-1 {
    width: 450px;
    height: 450px;
    background: #ec4899;
    top: -100px;
    left: 20%;
    animation-duration: 16s;
}

.cosmic-orb-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: 5%;
    right: 15%;
    animation-duration: 22s;
}

.cosmic-orb-3 {
    width: 350px;
    height: 350px;
    background: #06b6d4;
    top: 40%;
    left: -80px;
    animation-duration: 19s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Base Shell */
.liluni-shell {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Nav Header */
.liluni-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.liluni-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.liluni-brand-avatar {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(236, 72, 153, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.5));
    flex-shrink: 0;
}

.liluni-brand-avatar img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.liluni-brand-title {
    font-family: 'Fredoka', cursive, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 20%, #f472b6 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.liluni-brand-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.liluni-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.liluni-btn-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.liluni-btn-icon:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: var(--accent-pink);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.liluni-btn-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.liluni-btn-back:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* Telemetry HUD Bar */
.liluni-telemetry {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    align-items: center;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
}

.telemetry-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.telemetry-value {
    font-family: 'Fredoka', cursive, sans-serif;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.telemetry-value.gold {
    color: var(--accent-gold);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.telemetry-value.pink {
    color: #f472b6;
    text-shadow: 0 0 12px rgba(244, 114, 182, 0.4);
}

.telemetry-sub {
    font-size: 0.74rem;
    font-weight: 700;
    color: #a855f7;
    margin-top: 1px;
}

.telemetry-balls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.ball-pip {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #ec4899 60%, #9d174d 100%);
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.7);
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.ball-pip.spent {
    opacity: 0.2;
    transform: scale(0.75);
    background: #475569;
    box-shadow: none;
}

.telemetry-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fomo-meter-wrap,
.fever-meter-wrap {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 3px;
}

.fomo-meter-fill,
.fever-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ec4899, #f59e0b, #10b981, #06b6d4, #8b5cf6);
    background-size: 200% 100%;
    animation: fomoGlow 2s linear infinite;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
}

@keyframes fomoGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes feverGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Viewport Card & Canvas */
.game-viewport-card {
    position: relative;
    background: rgba(10, 8, 24, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block;
    cursor: crosshair;
    background: transparent;
    touch-action: none;
}

/* Mobile Controls */
.mobile-controls-bar {
    display: none;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
}

.mobile-fire-btn {
    flex: 1;
    height: 48px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    touch-action: manipulation;
}

.mobile-fire-btn:active {
    transform: scale(0.97);
    filter: brightness(1.2);
}

.mobile-fine-aim {
    display: flex;
    gap: 6px;
}

.aim-step-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.aim-step-btn:active {
    background: rgba(139, 92, 246, 0.35);
}

/* Modals */
.liluni-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 15, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.liluni-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: linear-gradient(165deg, rgba(28, 20, 56, 0.96), rgba(16, 12, 34, 0.98));
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 24px;
    padding: 24px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(236, 72, 153, 0.25);
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #f472b6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.modal-copy {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.controls-guide-list {
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    list-style: none;
    margin-bottom: 18px;
    font-size: 0.84rem;
    color: #e2e8f0;
}

.controls-guide-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.controls-guide-list li:last-child {
    border-bottom: none;
}

.controls-guide-list span {
    font-weight: 700;
    color: var(--accent-pink);
}

/* Highscores Table */
.highscores-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.88rem;
}

.highscores-table th {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    font-weight: 700;
    padding: 8px 10px;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.highscores-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    color: #e2e8f0;
}

.highscores-table tr:last-child td {
    border-bottom: none;
}

.highscores-rank {
    font-weight: 700;
    color: var(--accent-gold);
    width: 28px;
}

.highscores-score {
    font-family: 'Fredoka', cursive;
    font-weight: 700;
    color: #fff;
    text-align: right !important;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.liluni-btn-primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    transition: transform 0.15s ease;
}

.liluni-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
}

.liluni-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.liluni-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   ARCADE NAME ENTRY & ON-SCREEN KEYPAD
   ========================================================= */
.name-entry-box {
    max-width: 440px;
    padding: 20px;
}

.arcade-cabinet-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f472b6;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 8px;
}

.current-player-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.edit-name-inline-btn {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.edit-name-inline-btn:hover {
    background: rgba(236, 72, 153, 0.4);
}

.name-entry-stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.name-entry-stat {
    display: flex;
    flex-direction: column;
}

.name-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.name-stat-value {
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.name-stat-value-sub {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 4px;
}

.arcade-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.arcade-name-input {
    width: 100%;
    height: 48px;
    background: rgba(9, 7, 20, 0.9);
    border: 2px solid var(--accent-pink);
    border-radius: 14px;
    padding: 0 42px 0 16px;
    color: #fff;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
    outline: none;
    transition: all 0.2s ease;
}

.arcade-name-input:focus {
    border-color: #f472b6;
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.6);
}

.name-key-clear {
    position: absolute;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.name-key-clear:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* Virtual On-Screen Keypad */
.virtual-keypad-container {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 8px;
    user-select: none;
    -webkit-user-select: none;
}

.virtual-keypad-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 6px;
}

.keypad-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 700;
}

.virtual-keypad-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vkey-row {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.vkey {
    flex: 1 1 0;
    max-width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    touch-action: manipulation;
}

.vkey:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-1px);
}

.vkey:active {
    transform: scale(0.92);
    background: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.vkey-backspace {
    max-width: 44px;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 1.1rem;
}

.vkey-backspace:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
}

.vkey-space {
    max-width: 170px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.35);
}

.vkey-space:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: #8b5cf6;
}

.highlight-row {
    background: rgba(236, 72, 153, 0.18) !important;
    font-weight: 700 !important;
}

.highlight-row td {
    color: #f472b6 !important;
    border-bottom: 1px solid rgba(236, 72, 153, 0.35) !important;
}

.new-record-badge {
    display: inline-block;
    background: linear-gradient(90deg, #f59e0b, #ec4899);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    animation: recordPulse 1.5s infinite;
}

@keyframes recordPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Footer info */
.liluni-footer {
    position: relative;
    z-index: 10;
    padding: 6px 12px;
    text-align: center;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.4);
}

.liluni-footer a {
    color: rgba(236, 72, 153, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(236, 72, 153, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.liluni-footer a:hover {
    color: #f472b6;
    text-decoration-color: #f472b6;
}

/* =========================================================
   DESKTOP VIEWPORT FIT (No Scrolling, 100% Visible)
   ========================================================= */
@media (min-width: 769px) {
    html, body {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .liluni-body {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .liluni-shell {
        height: 100%;
        max-height: 100vh;
        padding: 6px 12px;
        gap: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }

    .liluni-nav {
        padding: 5px 14px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .liluni-brand-avatar {
        width: 34px;
        height: 34px;
    }

    .liluni-brand-title {
        font-size: 1.15rem;
    }

    .liluni-btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .liluni-btn-back {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .liluni-telemetry {
        padding: 5px 14px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .telemetry-label {
        font-size: 0.64rem;
    }

    .telemetry-value {
        font-size: 1.25rem;
    }

    .ball-pip {
        width: 12px;
        height: 12px;
    }

    .fomo-meter-wrap,
    .fever-meter-wrap {
        width: 110px;
        height: 8px;
    }

    .game-viewport-card {
        flex: 1 1 0;
        min-height: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 18px;
    }

    #gameCanvas {
        height: 100%;
        max-height: 100%;
        width: auto;
        max-width: 100%;
        aspect-ratio: 760 / 940;
        object-fit: contain;
    }

    .liluni-footer {
        padding: 2px 6px;
        font-size: 0.68rem;
        flex-shrink: 0;
    }
}

@media (min-width: 769px) and (max-height: 720px) {
    .liluni-shell {
        padding: 3px 8px;
        gap: 3px;
    }
    .liluni-nav {
        padding: 3px 10px;
    }
    .liluni-brand-avatar {
        width: 28px;
        height: 28px;
    }
    .liluni-brand-title {
        font-size: 1rem;
    }
    .liluni-telemetry {
        padding: 3px 10px;
    }
    .telemetry-value {
        font-size: 1.1rem;
    }
    .liluni-footer {
        display: none;
    }
}

/* =========================================================
   MOBILE RESPONSIVENESS (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .liluni-shell {
        padding: 8px 10px;
        gap: 8px;
        max-width: 100%;
    }

    .liluni-nav {
        padding: 8px 12px;
        border-radius: 14px;
    }

    .liluni-brand-avatar {
        width: 34px;
        height: 34px;
    }

    .liluni-brand-title {
        font-size: 1.05rem;
    }

    .liluni-brand-tag {
        display: none;
    }

    .liluni-nav-actions {
        gap: 4px;
    }

    .liluni-btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .liluni-btn-back {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .liluni-telemetry {
        padding: 8px 12px;
        gap: 6px;
        border-radius: 14px;
    }

    .telemetry-value {
        font-size: 1.15rem;
    }

    .ball-pip {
        width: 13px;
        height: 13px;
    }

    .game-viewport-card {
        width: 100%;
        border-radius: 16px;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
        max-height: 72vh;
        aspect-ratio: 760 / 940;
    }

    .mobile-controls-bar {
        display: flex;
    }
}
