:root {
    --primary: #ff5e00;
    --secondary: #ff2a00;
    --accent: #ff9600;
    --background: #e0950a;
    --card-bg: #fff7e6;
    --text-light: #fff;
    --text-dark: #333;
    --success: #4CAF50;
    --error: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    background: rgb(253, 253, 253);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
}

.announcement-bar {
    width: 100%;
    overflow: hidden;
    background: rgb(253, 199, 91);
    color: #fff;
    font-weight: bold;
    padding: 8px 0;
    position: relative;
    z-index: 200;
}

.announcement-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-size: 1rem;
   display: inline-block;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    min-width: 100%;
    will-change: transform;
    text-shadow: none;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
     min-width: 200%;
}

.announcement-text:hover {
    animation-play-state: paused;
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    background: rgb(255, 235, 199);
    border-bottom: 1px solid var(--secondary);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(255, 42, 0, 0.5);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    background: rgba(255, 42, 0, 0.1);
    color: var(--accent);
}

.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    position: relative;
    max-width: 100%;
    width: 100%;
    padding: 0 5% 20px;
}

.game-title {
    text-align: center;
    margin: 25px 0 20px;
}

.game-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.game-title p {
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

/* DESKTOP LAYOUT - Perfect Horizontal Rectangle */
.coreball-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 2.2 / 1;
    background-color: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.coreball {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 0 5px #aaa;
    transition: all 0.2s ease;
    position: relative;
}

.coreball.active {
    background: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 42, 0, 0.9);
    color: var(--text-light);
    transform: scale(1.05);
}

.coreball.hit {
    background: var(--success);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.9);
}

.coreball.missed {
    background: var(--error);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

.game-controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.timer-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: #228B22;
    background: #e0ffe0;
    padding: 10px 30px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    min-width: 200px;
    text-align: center;
}

.message {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 10px 0;
  padding: 6px 12px;
  min-height: 40px;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}


.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
}

.stat-card {
    background: #f2f2f2;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 160px;
    border: 1px solid #ddd;
    flex: 1;
    min-width: 140px;
}

.stat-card h3 {
    color: #888;
    font-size: 1rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-family: 'Courier New', monospace;
}

.best .stat-value {
    color: #d4af37;
}

.average .stat-value {
    color: #228b22;
}

.attempts .stat-value {
    color: #dc143c;
}

.upgrade-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--primary);
    text-align: center;
}

.upgrade-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.upgrades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.upgrade-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 180px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upgrade-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.upgrade-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.upgrade-card .price {
    font-weight: bold;
    color: #d4af37;
}

footer {
  background-color: #fff7e6;
  color: #333;
  text-align: center;
  padding: 10px 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  border-top: 1px solid #ff5e00;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  line-height: 1.4;
}

footer p {
  margin: 6px 0;
}

footer a {
  color: #ff5e00;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ff2a00;
  text-decoration: underline;
}

footer strong {
  color: #ff2a00;
}

footer small,
footer p:last-of-type {
  font-size: 11px;
  color: #666;
}

.monetization-banner {
    background: linear-gradient(135deg, #ff9600, #ff5e00);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.monetization-banner .coins {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.floating-icons {
    position: absolute;
    top: 120px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    align-items: flex-end;
}

.floating-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #fff7e6;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.close-btn:hover {
    transform: scale(1.1);
}

.sidebar-content {
    padding: 60px 30px 30px;
    height: 100%;
    color: #333;
}

.overlay {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.sidebar h2 {
    color: #ff5e00;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-options {
    margin-top: 20px;
}

.setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting label {
    font-size: 1rem;
    color: #333;
}

.setting input[type="checkbox"] {
    transform: scale(1.3);
    accent-color: #ff5e00;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.shop-item {
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shop-item h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.shop-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.shop-item .price {
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 10px;
}

.buy-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px 15px;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.buy-btn:hover {
    transform: translateY(-2px);
}

.temp-message {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20000;
    padding: 10px 16px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
    animation: fadeOut 2s ease-out forwards;
}
.temp-message.info {
  background-color: #d9f0ff;
  color: #004085;
  border-left: 5px solid #004085;
}

.temp-message.success {
    background-color: #e6ffed;
    color: #1a7f37;
    border-left: 5px solid #1a7f37;
}

.temp-message.error {
    background-color: #ffe6e6;
    color: #c12f2f;
    border-left: 5px solid #c12f2f;
}

.mystery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mystery-box-popup {
    background: #222;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    animation: popIn 0.4s ease-out forwards;
    box-shadow: 0 0 30px #ffcc00;
    max-width: 300px;
}

.reward-banner {
    background: linear-gradient(135deg, #fff7e6, #ffe6cc);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 12px rgba(255, 94, 0, 0.3), inset 0 0 8px rgba(255, 215, 0, 0.1);
    animation: pulseGlow 2s ease-in-out infinite;
}

.reward-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
    text-align: center;
}

.reward-banner p {
    font-size: 1rem;
    margin: 6px 0;
    color: #444;
    font-weight: 500;
}

.burst-effect {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    animation: burst-pop 0.2s ease-out forwards;
    z-index: 9999;
}

.mystery-box-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1.2s infinite;
}

.mystery-box-spinner {
    font-size: 1.2rem;
    margin-top: 10px;
    animation: blink 1s steps(2, start) infinite;
}

/* Neon Theme Styles */
.theme-Neon::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    background-size: 600px 600px;
    animation: seamlessStarsMove 40s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    filter: brightness(3) blur(0.4px);
    transform: translate(-150%, -150%);
}

.theme-Neon {
    background-color: #000;
    color: #39ff14;
}

.theme-Neon .coreball {
    position: relative;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.9) 30%, rgba(0, 0, 0, 0.8) 70%);
    border: 1px solid rgba(57, 255, 20, 0.2);
    color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.15), inset 0 0 8px rgba(57, 255, 20, 0.1);
    animation: floatSpace 6s ease-in-out infinite;
    backdrop-filter: blur(1px);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    overflow: visible;
    z-index: 2;
}

.theme-Neon .coreball::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    background-size: 600px 600px;
    animation: continuousStarTrail 12s linear infinite;
    z-index: 1;
    opacity: 0.65;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: screen;
    filter: brightness(1.5) blur(0.5px);
    transform: translate(-20%, -20%);
}

.theme-Neon .coreball.active::before {
    animation: continuousStarTrail 3s linear infinite;
    opacity: 0.65;
}

.theme-Neon .coreball.active {
    animation: neonBumpHold 0.2s ease-out forwards;
    transform: scale(1.1);
    box-shadow: 0 0 40px 20px rgba(57, 255, 20, 0.8),
                inset 0 0 25px rgba(57, 255, 20, 0.6);
    color: #39ff14;
    z-index: 2;
}


.effect-Particles.active {
    box-shadow: 0 0 20px 5px orange;
    animation: pulse 0.4s infinite alternate;
}

/* Animations */
@keyframes neonBumpHold {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 40px 20px rgba(57, 255, 20, 0.8),
                inset 0 0 25px rgba(57, 255, 20, 0.6);
  }
}

@keyframes continuousStarTrail {
    0% { transform: translate(-10%, -10%) scale(1); }
    100% { transform: translate(40%, 40%) scale(1.1); }
}

@keyframes seamlessStarsMove {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 1200px; }
}

@keyframes floatSpace {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes neonStarsMoveOutward {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(400px, 400px) scale(1.2); }
}

@keyframes burst-pop {
    0% {
        transform: scale(0.4);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 150, 0, 0.3), inset 0 0 5px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 150, 0, 0.6), inset 0 0 12px rgba(255, 215, 0, 0.2);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes blink {
    50% {
        opacity: 0.2;
    }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* RESPONSIVE BREAKPOINTS */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .coreball-container {
        max-width: 700px;
        gap: 18px;
        padding: 20px;
        aspect-ratio: 2.1 / 1;
    }
    
    .coreball {
        max-width: 110px;
        font-size: 1.6rem;
    }
    
    .game-title h1 {
        font-size: 2.2rem;
    }
    
    .timer-display {
        font-size: 3rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 3%;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 20px;
    }

    .game-container {
        padding: 0 3% 15px;
    }

    .game-title h1 {
        font-size: 2rem;
    }

    .game-title p {
        font-size: 1rem;
    }

    /* Tablet: Still horizontal but smaller */
    .coreball-container {
        max-width: 600px;
        aspect-ratio: 2 / 1;
        gap: 16px;
        padding: 18px;
    }

    .coreball {
        max-width: 100px;
        font-size: 1.4rem;
    }

    .timer-display {
        font-size: 2.5rem;
        padding: 8px 20px;
        min-width: 180px;
    }

    .message {
        font-size: 1.3rem;
    }

    .stats {
        gap: 12px;
    }

    .stat-card {
        min-width: 120px;
        padding: 15px 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .upgrades {
        flex-direction: column;
        align-items: center;
    }

    .upgrade-card {
        width: 100%;
        max-width: 280px;
    }

    .floating-icons {
        top: 100px;
        right: 10px;
        gap: 8px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .sidebar {
        width: 85%;
        max-width: 300px;
    }

    .sidebar-content {
        padding: 50px 20px 20px;
    }
}

/* Mobile phones - Perfect Vertical Rectangle */
@media (max-width: 600px) {
    .announcement-text {
        font-size: 0.9rem;
    }

    header {
        padding: 12px 2%;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .logo-text {
        font-size: 18px;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .game-container {
        padding: 0 2% 10px;
    }

    .game-title {
        margin: 20px 0 15px;
    }

    .game-title h1 {
        font-size: 1.8rem;
    }

    .game-title p {
        font-size: 0.9rem;
    }

    /* Mobile: Perfect 2x4 vertical rectangle */
    .coreball-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 15px;
        padding: 20px;
        max-width: 320px;
        aspect-ratio: 1 / 1.8;
        justify-items: center;
        align-items: center;
    }

    .coreball {
        max-width: 90px;
        font-size: 1.2rem;
    }

    .timer-display {
        font-size: 2.2rem;
        padding: 8px 16px;
        min-width: 160px;
    }

    .message {
        font-size: 1.1rem;
        margin: 12px 0;
    }

    .game-controls {
        gap: 12px;
        margin: 15px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .stats {
        gap: 8px;
        margin: 15px 0;
    }

    .stat-card {
        min-width: 100px;
        padding: 12px 8px;
    }

    .stat-card h3 {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .upgrade-section {
        padding: 15px;
    }

    .upgrade-title {
        font-size: 1.3rem;
    }




.shop-item h4 {
  margin-bottom: 5px;
  color: var(--primary);
}



.buy-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 10px 15px;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease;
}


.temp-message.success {
  background-color: #e6ffed;
  color: #1a7f37;
  border-left: 5px solid #1a7f37;
}

.temp-message.error {
  background-color: #ffe6e6;
  color: #c12f2f;
  border-left: 5px solid #c12f2f;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}






.shop-item p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.shop-item .price {
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 10px;
}


.buy-btn:hover {
  transform: translateY(-2px);
}

.temp-message.success {
  background-color: #e6ffed;
  color: #1a7f37;
  border-left: 5px solid #1a7f37;
}

.temp-message.error {
  background-color: #ffe6e6;
  color: #c12f2f;
  border-left: 5px solid #c12f2f;
}

.mystery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.mystery-box-popup {
  background: #222;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  color: white;
  font-size: 1.2rem;
  animation: popIn 0.4s ease-out forwards;
  box-shadow: 0 0 30px #ffcc00;
  max-width: 300px;
}

.mystery-box-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 1.2s infinite;
}

.mystery-box-spinner {
  font-size: 1.2rem;
  margin-top: 10px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes blink {
  50% { opacity: 0.2; }
}
.overlay {
  display: none;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: #fff7e6;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-content {
  padding: 60px 30px 30px;
  height: 100%;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.close-btn:hover {
  transform: scale(1.1);
}

.sidebar h2 {
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-options {
  margin-top: 20px;
}

.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.setting label {
  font-size: 1rem;
  color: #333;
}

.setting input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: var(--primary);
}
.floating-icons {
  position: absolute;
  top: 120px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  align-items: flex-end;
}

.floating-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}