
/* --- DAILY SPIN STYLES --- */
#daily-spin-prompt {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 30px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(192, 132, 252, 0.2);
    z-index: 999;
    display: none;
    align-items: center;
    gap: 12px;
    animation: pulseGlow 2s infinite ease-in-out;
    pointer-events: none;
}
#daily-spin-prompt strong {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(192, 132, 252, 0.2); transform: translateX(-50%) scale(1); }
    50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 35px rgba(192, 132, 252, 0.4); transform: translateX(-50%) scale(1.03); }
}

#daily-spin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 24, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#daily-spin-overlay.active {
    opacity: 1;
}

#daily-spin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.02);
    border-radius: 36px;
    width: 90%;
    max-width: 820px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#daily-spin-overlay.active #daily-spin-card {
    transform: scale(1);
}

#daily-spin-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

#daily-spin-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
#daily-spin-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

#daily-spin-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#daily-spin-wheel-container {
    position: relative;
    width: 380px;
    height: 380px;
}

#daily-spin-wheel-canvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

#daily-spin-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 46px;
    z-index: 5;
    transform-origin: 50% 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.05s ease-out;
}

#daily-spin-right {
    flex: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#daily-spin-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 30%, #a3a1cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.3);
    margin: 0;
    letter-spacing: 1px;
}

#daily-spin-desc {
    color: #a3a1cc;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.daily-spin-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 22px;
    border-radius: 20px;
}

.daily-spin-stat-lbl {
    font-size: 0.85rem;
    color: #818cf8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.daily-spin-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

#daily-spin-action-btn {
    background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
    border: none;
    border-radius: 24px;
    padding: 18px 40px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(192, 132, 252, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
#daily-spin-action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(192, 132, 252, 0.6), 0 0 20px rgba(244, 114, 182, 0.4);
    background: linear-gradient(135deg, #d8b4fe 0%, #f9a8d4 100%);
}
#daily-spin-action-btn:active:not(:disabled) {
    transform: translateY(-1px);
}
#daily-spin-action-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

#daily-spin-cooldown-box {
    display: none;
    flex-direction: column;
    gap: 10px;
}

#daily-spin-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

#daily-spin-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 1s linear;
}

/* --- WINNING MODAL STYLES --- */
#daily-spin-win-modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 20, 0.9);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    opacity: 0;
    transition: opacity 0.5s;
}

#daily-spin-win-modal.active {
    opacity: 1;
}

#daily-spin-win-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 50px rgba(251, 191, 36, 0.15);
    border-radius: 36px;
    width: 90%;
    max-width: 520px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#daily-spin-win-modal.active #daily-spin-win-card {
    transform: scale(1);
}

#daily-spin-win-rays {
    position: absolute;
    width: 600px;
    height: 600px;
    background: repeating-conic-gradient(from 0deg, rgba(251, 191, 36, 0.04) 0deg 15deg, transparent 15deg 30deg);
    animation: rotateRays 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateRays {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#daily-spin-win-amount {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #facc15;
    text-shadow: 0 0 30px rgba(250, 204, 21, 0.6), 0 0 60px rgba(250, 204, 21, 0.3);
    margin: 20px 0;
    z-index: 1;
    animation: winPulse 1.5s infinite alternate ease-in-out;
}

@keyframes winPulse {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(250, 204, 21, 0.6)); }
}

#daily-spin-win-btn {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border: none;
    border-radius: 20px;
    padding: 15px 45px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(250, 204, 21, 0.4);
    transition: all 0.2s;
    text-transform: uppercase;
    z-index: 1;
}
#daily-spin-win-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.6);
}

#daily-spin-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10999;
    display: none;
}

@keyframes asteroidsFadeIn {

    from { opacity: 0; }

    to { opacity: 1; }

}

@keyframes asteroidsZoomIn {

    from { transform: scale(0.7); opacity: 0; }

    to { transform: scale(1); opacity: 1; }

}

@keyframes tronPulse {

    0% { opacity: 0.4; transform: translateX(-50%) scale(0.95); text-shadow: 0 0 5px #00ffff; }

    100% { opacity: 1.0; transform: translateX(-50%) scale(1.05); text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff; }

}

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

html, body {

    background: #000; overflow: hidden;

    font-family: 'Quicksand', sans-serif;

    /* Prevent pull-to-refresh and overscroll on mobile */

    overscroll-behavior: none;

    touch-action: none;

    position: fixed; width: 100%; height: 100%;

}

#c { display: block; width: 100vw; height: 100vh; touch-action: none; }



#crosshair {

    position: fixed; top: 50%; left: 50%;

    transform: translate(-50%, -50%) translateZ(1000px);

    will-change: transform;

    width: 26px; height: 26px; pointer-events: none;

    display: none;

    z-index: 100000;

}

#crosshair::before, #crosshair::after {

    content: ''; position: absolute; background: #ffffff;

    border: 1px solid #000000;

    box-shadow: 0 0 3px rgba(0,0,0,0.8);

    transition: background 0.15s;

}

#crosshair::before { width: 4px; height: 100%; left: 50%; transform: translateX(-50%); box-sizing: border-box; }

#crosshair::after  { width: 100%; height: 4px; top: 50%;  transform: translateY(-50%); box-sizing: border-box; }



#crosshair.hover-insert-coin::before, #crosshair.hover-insert-coin::after {

    background: #facc15;

}

#crosshair.hover-start-game::before, #crosshair.hover-start-game::after {

    background: #4ade80;

}

#crosshair.hover-exit-game::before, #crosshair.hover-exit-game::after {

    background: #ef4444;

}

#crosshair.hover-cycle-game::before, #crosshair.hover-cycle-game::after {

    background: #c084fc;

}



#hud-name {

    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);

    font-size: 0.85rem; color: rgba(255,255,255,0.6);

    text-shadow: 0 1px 4px rgba(0,0,0,0.8);

    pointer-events: none; display: none;

    font-family: 'Quicksand', sans-serif;

    letter-spacing: 0.06em;

}



/* ── Lock screen overlay ── */

#lock-screen {

    position: fixed; inset: 0; z-index: 100;

    background: rgba(7,8,18,0.88); backdrop-filter: blur(6px);

    display: flex; flex-direction: column; align-items: center; justify-content: center;

    gap: 18px; color: #f1f0fb;

}

#lock-screen h1 {

    font-family: 'Orbitron', monospace; font-size: 2rem; color: #c084fc;

    letter-spacing: 0.12em; text-shadow: 0 0 30px rgba(192,132,252,0.4);

}

#lock-screen p {

    font-family: 'Quicksand', sans-serif; font-size: 0.92rem;

    color: #a3a1cc; letter-spacing: 0.04em; text-align: center; line-height: 1.7;

}

#lock-screen .keys {

    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px;

}

.key {

    font-family: monospace; font-size: 0.8rem; font-weight: 700;

    background: rgba(192,132,252,0.12); border: 1px solid rgba(192,132,252,0.3);

    border-radius: 6px; padding: 5px 12px; color: #c084fc;

}

#click-to-play {

    /* Hidden until the scene is fully warmed up — see revealClickToPlay().
       Stops the button appearing while the main thread is still compiling
       shaders (where it looks present but isn't clickable). */
    visibility: hidden;

    margin-top: 10px; padding: 14px 38px; border-radius: 50px; cursor: pointer;

    font-family: 'Quicksand', sans-serif; font-size: 0.85rem; font-weight: 700;

    text-transform: uppercase; letter-spacing: 0.1em;

    background: rgba(192,132,252,0.12); border: 1px solid rgba(192,132,252,0.4);

    color: #c084fc; transition: all 0.2s;

}

#click-to-play:hover { background: rgba(192,132,252,0.25); border-color: #c084fc; }



/* ── Virtual joysticks (mobile only) ── */

.vjoy-wrap {

    position: fixed; bottom: 36px; z-index: 200;

    width: 65px; height: 65px;

    display: none;          /* shown only on mobile via JS */

    pointer-events: auto;

}

#vjoy-left  { left:  24px; }

#vjoy-right { right: 24px; }

.vjoy-base {

    width: 100%; height: 100%; border-radius: 50%;

    background: rgba(255,255,255,0.07);

    border: 2px solid rgba(255,255,255,0.18);

    position: relative;

}

.vjoy-knob {

    position: absolute;

    width: 27px; height: 27px; border-radius: 50%;

    background: rgba(192,132,252,0.45);

    border: 2px solid rgba(192,132,252,0.85);

    box-shadow: 0 0 14px rgba(192,132,252,0.4);

    top: 50%; left: 50%;

    transform: translate(-50%,-50%);

    transition: transform 0.05s;

    pointer-events: none;

}

.vjoy-label {

    position: absolute; bottom: -22px; left: 50%;

    transform: translateX(-50%);

    font-family: 'Quicksand', sans-serif; font-size: 0.6rem;

    letter-spacing: 0.1em; text-transform: uppercase;

    color: rgba(163,161,204,0.5); pointer-events: none; white-space: nowrap;

}



/* ── Guest banner ── */

#guest-banner {

    position: fixed; bottom: 24px; right: 24px; z-index: 100;

    background: rgba(7,8,18,0.88); backdrop-filter: blur(10px);

    border: 1px solid rgba(192,132,252,0.35); border-radius: 16px;

    padding: 14px 18px; max-width: 280px;

    font-family: 'Quicksand', sans-serif;

    box-shadow: 0 0 24px rgba(192,132,252,0.15);

    animation: bannerIn 0.5s ease 1.5s both;

}

@keyframes bannerIn {

    from { opacity:0; transform: translateY(12px); }

    to   { opacity:1; transform: translateY(0); }

}

#guest-banner p {

    font-size: 0.78rem; color: #a3a1cc; line-height: 1.5; margin-bottom: 10px;

}

#guest-banner strong { color: #f1f0fb; }

#guest-banner a {

    display: block; text-align: center;

    background: linear-gradient(135deg, #c084fc, #7c3aed);

    color: #fff; border-radius: 50px; padding: 9px 16px;

    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;

    text-transform: uppercase; text-decoration: none;

    transition: box-shadow 0.2s;

}

#guest-banner a:hover { box-shadow: 0 0 20px rgba(192,132,252,0.5); }

#guest-banner-close {

    position: absolute; top: 8px; right: 10px;

    background: none; border: none; color: #a3a1cc;

    font-size: 0.85rem; cursor: pointer; line-height: 1;

    padding: 2px 4px;

}

#guest-banner-close:hover { color: #f472b6; }

/* On mobile: float banner at the top so it clears the joysticks */

@media (pointer: coarse) {

    #guest-banner { bottom: auto; top: 72px; right: 12px; left: 12px; max-width: none; border-radius: 12px; }

}



/* ── Back link ── */

#back-btn {

    position: fixed; top: 16px; left: 16px; z-index: 50;

    font-family: 'Quicksand', sans-serif; font-size: 0.7rem; font-weight: 700;

    text-transform: uppercase; letter-spacing: 0.08em;

    padding: 7px 16px; border-radius: 50px; text-decoration: none;

    background: rgba(7,8,18,0.7); border: 1px solid rgba(192,132,252,0.25);

    color: #a3a1cc; transition: all 0.2s; backdrop-filter: blur(4px);

}

#back-btn:hover { color: #c084fc; border-color: #c084fc; }



/* ── Loading Screen Styles ── */

#loading-screen {

    position: fixed; inset: 0; z-index: 1000;

    background: radial-gradient(circle at center, #0e0f24 0%, #05060f 100%);

    display: flex; align-items: center; justify-content: center;

    color: #f1f0fb; opacity: 1; transition: opacity 0.5s ease, visibility 0.5s;

    font-family: 'Quicksand', sans-serif;

}

.loading-container {

    width: 90%; max-width: 450px;

    display: flex; flex-direction: column; align-items: center; gap: 12px;

}

.loading-title {

    font-family: 'Orbitron', sans-serif; font-size: 2.2rem; color: #c084fc;

    letter-spacing: 0.15em; text-shadow: 0 0 25px rgba(192, 132, 252, 0.4);

    animation: titlePulse 2s infinite ease-in-out;

}

@keyframes titlePulse {

    0%, 100% { text-shadow: 0 0 20px rgba(192,132,252,0.3); transform: scale(1); }

    50% { text-shadow: 0 0 35px rgba(192,132,252,0.6); transform: scale(1.02); }

}

.loading-subtitle {

    font-size: 0.95rem; color: #a3a1cc; letter-spacing: 0.05em; margin-bottom: 20px;

}

.progress-bar-container {

    width: 100%; height: 8px; background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(192, 132, 252, 0.15); border-radius: 10px;

    position: relative; overflow: hidden;

    box-shadow: 0 0 14px rgba(192, 132, 252, 0.45);

}

/* Indeterminate sweep — animates on the compositor thread, so the bar keeps
   moving even while the main thread is busy compiling shaders. */
.progress-bar-container::after {

    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;

    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);

    transform: translateX(-120%); will-change: transform;

    animation: barSweep 1.15s linear infinite;

}

@keyframes barSweep {

    0%   { transform: translateX(-120%); }

    100% { transform: translateX(260%); }

}

/* Once assets are ready we drop the opaque backdrop so the 3D scene can present
   (absorbing the first-frame GPU stall) while this overlay + animated bar stay up. */
#loading-screen.unveiled {

    background: transparent; backdrop-filter: none;

}

.progress-bar {

    height: 100%; width: 0%;

    background: linear-gradient(90deg, #c084fc 0%, #a78bfa 50%, #818cf8 100%);

    border-radius: 10px; transition: width 0.3s cubic-bezier(0.1, 0.8, 0.25, 1);

    position: relative; box-shadow: 0 0 12px rgba(192, 132, 252, 0.7);

}

.progress-bar-glow {

    position: absolute; inset: -3px;

    background: linear-gradient(90deg, #c084fc 0%, #a78bfa 50%, #818cf8 100%);

    border-radius: 10px; filter: blur(8px); opacity: 0.3; pointer-events: none;

}

.loading-status {

    font-size: 0.75rem; color: rgba(163, 161, 204, 0.6); margin-top: 8px;

    text-align: center; max-width: 100%; white-space: nowrap;

    overflow: hidden; text-overflow: ellipsis; font-family: monospace;

}

.loading-percentage {

    font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 700;

    color: #c084fc; margin-top: 15px; text-shadow: 0 0 10px rgba(192, 132, 252, 0.3);

}



/* ── Game Stats HUD Overlay ── */

#game-stats-overlay {

    position: fixed;

    top: 16px;

    right: 16px;

    z-index: 100;

    display: flex;

    gap: 12px;

    font-family: 'Quicksand', sans-serif;

    pointer-events: none;

}

.stat-box {

    display: flex;

    align-items: center;

    gap: 10px;

    background: rgba(7, 8, 18, 0.72);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(192, 132, 252, 0.25);

    border-radius: 50px;

    padding: 8px 16px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);

    color: #f1f0fb;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.03em;

    pointer-events: auto;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

.stat-box:hover {

    transform: translateY(-2px);

    border-color: rgba(192, 132, 252, 0.5);

    box-shadow: 0 6px 24px rgba(192, 132, 252, 0.2);

}

.stat-box.kelcoins-box {

    border-color: rgba(250, 204, 21, 0.25);

}

.stat-box.kelcoins-box:hover {

    border-color: rgba(250, 204, 21, 0.5);

    box-shadow: 0 6px 24px rgba(250, 204, 21, 0.2);

}

.stat-icon {

    font-size: 1.1rem;

    display: inline-block;

}

.stat-icon.spin {

    animation: coinSpin 4s linear infinite;

}

@keyframes coinSpin {

    0% { transform: rotateY(0deg); }

    100% { transform: rotateY(360deg); }

}

@keyframes neonPulse {

    from { opacity: 0.35; transform: scale(0.95); }

    to { opacity: 1; transform: scale(1.05); }

}

.stat-val {

    font-family: 'Orbitron', monospace;

    font-weight: 700;

}

.stat-val.gold {

    color: #facc15;

    text-shadow: 0 0 8px rgba(250, 204, 21, 0.3);

}

.stat-val.blue {

    color: #38bdf8;

    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);

}

.stat-lbl {

    font-size: 0.62rem;

    color: #a3a1cc;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}

@media (pointer: coarse) {

    #game-stats-overlay {

        top: 16px;

        left: 50%;

        transform: translateX(-50%);

        right: auto;

        flex-direction: row;

        align-items: center;

        justify-content: center;

        gap: 8px;

    }

}

.is-mobile #guest-banner {

    display: none !important;

}

.is-mobile #ammo-hud {

    display: none !important;

}

.is-mobile #game-stats-overlay {

    top: 16px;

    left: 50%;

    transform: translateX(-50%);

    right: auto;

    flex-direction: row;

    align-items: center;

    justify-content: center;

    gap: 8px;

}

/* While a minigame runs on mobile the full score panel + controls legend
   covered a quarter of the screen — collapse it into a slim strip across
   the top (JS hides the world-stats bar at the same time). !important is
   needed throughout: the panel carries inline styles */
.is-mobile #asteroids-game-hud.minigame-hud-mobile {
    top: 6px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    max-width: 96vw !important;
    padding: 7px 14px !important;
    border-radius: 40px !important;
}

.is-mobile #asteroids-game-hud.minigame-hud-mobile #hud-game-title {
    display: none !important;
}

.is-mobile #asteroids-game-hud.minigame-hud-mobile > div {
    white-space: nowrap;
    flex-shrink: 0;
}

.is-mobile #asteroids-game-hud.minigame-hud-mobile #hud-pacman-controls {
    display: none !important;
}



/* Magnet Kitchens Shop Styling */

#mk-shop-list::-webkit-scrollbar {

    width: 6px;

}

#mk-shop-list::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.02);

    border-radius: 4px;

}

#mk-shop-list::-webkit-scrollbar-thumb {

    background: rgba(192, 132, 252, 0.25);

    border-radius: 4px;

}

#mk-shop-list::-webkit-scrollbar-thumb:hover {

    background: rgba(192, 132, 252, 0.45);

}

.mk-shop-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 20px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid rgba(192, 132, 252, 0.12);

    border-radius: 16px;

    transition: all 0.25s ease;

    gap: 16px;

}

.mk-shop-item:hover {

    background: rgba(192, 132, 252, 0.04);

    border-color: rgba(192, 132, 252, 0.35);

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.1);

}

.mk-btn {

    font-family: 'Orbitron', sans-serif;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    padding: 8px 18px;

    border-radius: 50px;

    border: none;

    cursor: pointer;

    transition: all 0.2s;

    white-space: nowrap;

}

.mk-btn-buy {

    background: linear-gradient(135deg, #c084fc, #7c3aed);

    color: white;

    box-shadow: 0 0 10px rgba(192,132,252,0.3);

}

.mk-btn-buy:hover {

    box-shadow: 0 0 18px rgba(192,132,252,0.5);

    transform: translateY(-1px);

}

.mk-btn-buy:disabled {

    background: rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.25);

    cursor: default;

    box-shadow: none;

    transform: none;

}

.mk-btn-sell {

    background: rgba(244, 114, 182, 0.08);

    color: #f472b6;

    border: 1px solid rgba(244, 114, 182, 0.35);

}

.mk-btn-sell:hover {

    background: rgba(244, 114, 182, 0.18);

    border-color: #f472b6;

    transform: translateY(-1px);

}

#tr-shop-list::-webkit-scrollbar {

    width: 8px;

}

#tr-shop-list::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.02);

    border-radius: 4px;

}

#tr-shop-list::-webkit-scrollbar-thumb {

    background: rgba(244, 114, 182, 0.25);

    border-radius: 4px;

}

#tr-shop-list::-webkit-scrollbar-thumb:hover {

    background: rgba(244, 114, 182, 0.45);

}

.tr-shop-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 20px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid rgba(244, 114, 182, 0.12);

    border-radius: 16px;

    transition: all 0.25s ease;

    gap: 16px;

}

.tr-shop-item:hover {

    background: rgba(244, 114, 182, 0.04);

    border-color: rgba(244, 114, 182, 0.35);

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.1);

}

.tr-btn {

    font-family: 'Orbitron', sans-serif;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    padding: 8px 18px;

    border-radius: 50px;

    border: none;

    cursor: pointer;

    transition: all 0.2s;

    white-space: nowrap;

}

.tr-btn-buy {

    background: linear-gradient(135deg, #f472b6, #fb7185);

    color: white;

    box-shadow: 0 0 10px rgba(244,114,182,0.3);

}

.tr-btn-buy:hover {

    box-shadow: 0 0 18px rgba(244,114,182,0.5);

    transform: translateY(-1px);

}

.tr-btn-buy:disabled {

    background: rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.25);

    cursor: default;

    box-shadow: none;

    transform: none;

}

.tr-btn-sell {

    background: rgba(192, 132, 252, 0.08);

    color: #c084fc;

    border: 1px solid rgba(192, 132, 252, 0.35);

}

.tr-btn-sell:hover {

    background: rgba(192, 132, 252, 0.18);

    border-color: #c084fc;

    transform: translateY(-1px);

}



/* ── Screenshot Toast Notification ── */

.screenshot-toast {

    position: fixed;

    top: 24px;

    right: 24px;

    background: rgba(15, 23, 42, 0.85); /* Slate 900 base */

    backdrop-filter: blur(8px);

    border: 1px solid rgba(168, 85, 247, 0.4); /* Purple border highlight */

    border-radius: 12px;

    padding: 12px 18px;

    color: #fff;

    font-family: 'Quicksand', sans-serif;

    font-weight: 600;

    font-size: 0.95rem;

    display: flex;

    align-items: center;

    gap: 10px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(168, 85, 247, 0.15);

    z-index: 999999;

    transform: translateX(120%);

    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;

    pointer-events: none;

    opacity: 0;

}

.screenshot-toast.show {

    transform: translateX(0);

    opacity: 1;

}

.screenshot-toast .toast-icon {

    font-size: 1.2rem;

}



/* ── HUD Minimap Styles ── */

#hud-minimap-container {

    position: fixed;

    top: 76px;

    left: 16px;

    width: 150px;

    height: 150px;

    border-radius: 50%;

    border: 2px solid rgba(192, 132, 252, 0.45);

    background: rgba(7, 8, 18, 0.65);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255,255,255,0.05);

    z-index: 1000;

    overflow: hidden;

    pointer-events: none;

    transition: border-color 0.3s, opacity 0.3s;

}

