    :root {
        --primary: #00f2ff;
        --secondary: #ff00ea;
        --danger: #ff3333;
        --gold: #ffd700;
        --toxic: #39ff14;
        --purple: #9d00ff;
        --blue: #0088ff;
        --bg: #050505;
        --panel: rgba(22, 22, 22, 0.98);
    }

    * {
        box-sizing: border-box;
        user-select: none;
    }

    body {
        margin: 0;
        padding: 0;
        background: var(--bg);
        color: white;
        font-family: 'Segoe UI', sans-serif;
        overflow: hidden;
        transition: filter 0.5s;
    }

    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #111;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 5px;
        border: 2px solid #000;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: white;
    }

    @keyframes spinOrbit {
        from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
    }

    @keyframes portalBG {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    @keyframes coinFlip {
        0% { transform: rotateY(0); }
        100% { transform: rotateY(1800deg); }
    }

    @keyframes jumpScareAnim {
        0% { transform: scale(0.1); opacity: 0; }
        50% { transform: scale(1.5); opacity: 1; }
        100% { transform: scale(1); opacity: 1; }
    }

    @keyframes pulseRed {
        0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
        100% { box-shadow: 0 0 0 20px rgba(0,0,0,0); }
    }

    @keyframes shake {
        0% { transform: translate(1px, 1px) rotate(0deg); }
        10% { transform: translate(-1px, -2px) rotate(-1deg); }
        20% { transform: translate(-3px, 0px) rotate(1deg); }
        30% { transform: translate(3px, 2px) rotate(0deg); }
        40% { transform: translate(1px, -1px) rotate(1deg); }
        50% { transform: translate(-1px, 2px) rotate(-1deg); }
        60% { transform: translate(-3px, 1px) rotate(0deg); }
        70% { transform: translate(3px, 1px) rotate(-1deg); }
        80% { transform: translate(-1px, -1px) rotate(1deg); }
        90% { transform: translate(1px, 2px) rotate(0deg); }
        100% { transform: translate(1px, -2px) rotate(-1deg); }
    }

    .btn {
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-family: 'Bungee';
        cursor: pointer;
        transition: 0.2s;
        font-size: 14px;
        text-transform: uppercase;
    }

    .btn:active { transform: scale(0.95); }
    .btn.active { filter: brightness(1.25); box-shadow: 0 4px 0 rgba(255,255,255,0.35); }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-primary { background: var(--primary); color: black; box-shadow: 0 4px 0 rgba(0,242,255,0.3); }
    .btn-secondary { background: var(--secondary); color: white; box-shadow: 0 4px 0 rgba(255,0,234,0.3); }
    .btn-danger { background: var(--danger); color: white; }
    .btn-gold { background: var(--gold); color: black; }
    .btn-toxic { background: var(--toxic); color: black; }
    .btn-purple { background: var(--purple); color: white; }
    .btn-blue { background: var(--blue); color: white; }
    .btn-green { background: limegreen; color: black; }

    .back-btn { position: fixed; top: 20px; left: 20px; z-index: 1000; }

    .notification {
        position: fixed; top: 100px; left: 50%; transform: translateX(-50%);
        background: rgba(0,0,0,0.95); border: 2px solid white; padding: 15px 40px;
        font-family: 'Bungee'; z-index: 99999; display: none; color: var(--gold);
        font-size: 24px; box-shadow: 0 0 50px rgba(0,0,0,0.8); border-radius: 50px;
    }

    #auth-screen {
        position: fixed; inset: 0; z-index: 10000; background: #000;
        display: flex; justify-content: center; align-items: center;
        background-image: radial-gradient(circle, #111 10%, #000 90%);
    }

    .login-box {
        width: 450px; text-align: center; border: 4px solid var(--primary);
        box-shadow: 0 0 60px var(--primary); padding: 50px; background: #111; border-radius: 20px;
    }

    .login-input {
        width: 100%; padding: 15px; margin: 10px 0; background: #222;
        border: 1px solid #444; color: white; font-family: 'Roboto Mono';
        text-align: center; font-size: 18px; border-radius: 5px;
    }

    #site-hub {
        display: none; height: 100vh; flex-direction: column; align-items: center;
        padding-top: 40px; position: relative; overflow-y: auto;
        background: linear-gradient(-45deg, #050505, #1a001a, #001a1a);
        background-size: 400% 400%; animation: portalBG 15s ease infinite;
    }

    .hub-title {
        font-family: 'Black Ops One'; font-size: clamp(42px, 8vw, 90px); color: transparent;
        -webkit-text-stroke: 3px var(--primary); margin: 0; text-shadow: 0 0 30px var(--primary);
        text-align: center;
    }

    .hub-stats {
        font-family: 'Bungee'; color: #fff; font-size: 20px; background: rgba(0,0,0,0.7);
        padding: 15px 40px; border-radius: 50px; border: 2px solid var(--gold);
        margin-top: 20px; display: flex; align-items: center; gap: 15px;
        flex-wrap: wrap; justify-content: center;
    }

    .game-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        z-index: 2;
        margin-top: 35px;
        width: min(1400px, 92vw);
        padding-bottom: 50px;
    }

    .missions-panel {
        width: min(1100px, 92vw);
        margin-top: 22px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.68), rgba(0, 20, 25, 0.62));
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 0 28px rgba(0, 0, 0, 0.45);
    }

    .missions-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: 'Black Ops One';
        letter-spacing: 1px;
        color: var(--gold);
        margin-bottom: 10px;
    }

    #daily-mission-counter {
        font-family: 'Roboto Mono';
        font-size: 12px;
        color: #ddd;
    }

    .missions-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 10px;
    }

    .mission-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        padding: 10px;
    }

    .mission-card.ready {
        border-color: rgba(255, 215, 0, 0.65);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.16);
    }

    .mission-card.claimed {
        opacity: 0.72;
    }

    .mission-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 25px;
        background: rgba(255, 255, 255, 0.08);
    }

    .mission-content {
        flex: 1;
        min-width: 0;
    }

    .mission-title {
        font-family: 'Bungee';
        font-size: 11px;
        color: #fff;
        margin-bottom: 6px;
    }

    .mission-progress {
        width: 100%;
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        overflow: hidden;
    }

    .mission-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 999px;
        transition: width 0.25s ease;
    }

    .mission-meta {
        font-family: 'Roboto Mono';
        font-size: 11px;
        color: #bbb;
        margin-top: 6px;
    }

    .game-card {
        width: 220px; background: rgba(20,20,25,0.9); border: 2px solid #444;
        border-radius: 20px; padding: 25px; text-align: center; transition: 0.3s;
        cursor: pointer; position: relative; overflow: hidden;
        backdrop-filter: blur(3px);
        justify-self: center;
    }

    .game-card:hover {
        transform: translateY(-20px); border-color: var(--gold);
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
    }

    .game-card h2 {
        margin: 0 0 14px;
        font-family: 'Black Ops One';
        letter-spacing: 1px;
    }

    .game-icon {
        font-size: 50px; margin-bottom: 20px; display: block;
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    }

    #event-banner {
        display: none; position: fixed; top: 0; width: 100%;
        background: linear-gradient(90deg, gold, orange); color: black;
        text-align: center; font-family: 'Black Ops One'; font-size: 20px;
        padding: 10px; z-index: 30000; animation: pulseRed 1s infinite;
        border-bottom: 3px solid white;
    }

    #game-clicker {
        display: none; height: 100vh; grid-template-columns: 350px 1fr 350px;
        background: radial-gradient(circle at center, #1a1a1a, #000);
    }

    #game-minecraft {
        display: none; height: 100vh; padding: 40px;
        background: radial-gradient(circle at center, #0b230b, #000);
        color: white;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    .minecraft-toolbar {
        display: flex; gap: 10px; margin-bottom: 12px;
    }

    .minecraft-toolbar button {
        padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.6); color: white;
        cursor: pointer;
    }

    .minecraft-toolbar button.selected {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.8);
    }

    #mc-canvas { border: 2px solid rgba(255,255,255,0.3); border-radius: 15px; background: #000; cursor: crosshair; }

    .shop-col {
        background: rgba(15,15,15,0.98); border-right: 2px solid #333;
        border-left: 2px solid #333; display: flex; flex-direction: column;
    }

    .shop-header {
        padding: 20px; text-align: center; font-family: 'Black Ops One';
        color: white; background: #111; border-bottom: 2px solid #333;
        font-size: 22px; letter-spacing: 2px;
    }

    .shop-list { flex: 1; overflow-y: auto; padding: 20px; }

    .shop-card {
        background: linear-gradient(135deg, #222, #151515); border: 2px solid #333;
        border-left: 5px solid #555; border-radius: 12px; padding: 15px; margin-bottom: 15px;
        display: flex; align-items: center; justify-content: space-between;
        transition: 0.2s; box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .shop-card:hover { transform: translateX(5px); border-color: #555; }
    .shop-card.power { border-left-color: var(--primary); }
    .shop-card.auto { border-left-color: var(--secondary); }
    .shop-card.pet { border-left-color: orange; }
    .shop-card.skin { border-left-color: white; }

    .card-icon { font-size: 35px; margin-right: 15px; width: 40px; text-align: center; }
    .card-info { flex: 1; }
    .card-title { font-family: 'Bungee'; font-size: 13px; color: white; display: block; margin-bottom: 3px; }
    .card-stats { font-family: 'Roboto Mono'; font-size: 11px; color: #aaa; display: block; }

    .card-btn {
        background: #333; color: #888; border: none; padding: 8px 15px;
        border-radius: 6px; font-weight: bold; cursor: not-allowed;
        font-family: 'Black Ops One'; font-size: 12px;
    }

    .card-btn.can-buy { background: var(--toxic); color: black; cursor: pointer; box-shadow: 0 3px 0 #005500; }
    .card-btn.can-buy:active { transform: translateY(2px); box-shadow: none; }

    .clicker-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }

    .upgrade-slider-wrap {
        width: min(540px, 86%);
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        padding: 10px 14px;
        margin-bottom: 18px;
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
    }

    .upgrade-slider-text {
        display: block;
        font-family: 'Bungee';
        font-size: 12px;
        color: #ddd;
        margin-bottom: 8px;
        text-align: center;
    }

    #upgrade-tier-slider {
        width: 100%;
        accent-color: var(--gold);
        cursor: pointer;
    }

    .toilet-btn {
        width: 300px; height: 300px; background: white; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; font-size: 160px;
        cursor: pointer; border: 12px solid var(--primary); box-shadow: 0 0 100px var(--primary);
        z-index: 10; transition: 0.05s; position: relative;
    }

    .toilet-btn:active { transform: scale(0.95); }

    .pet-orbit { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }

    .pet-slot {
        position: absolute; width: 50px; height: 50px; font-size: 40px;
        text-align: center; line-height: 50px; animation: spinOrbit 6s linear infinite;
        top: 50%; left: 50%; margin-top: -25px; margin-left: -25px;
        filter: drop-shadow(0 0 10px var(--secondary));
    }

    .money-display {
        font-family: 'Black Ops One'; font-size: 60px; color: var(--gold);
        text-shadow: 0 0 25px rgba(255,215,0,0.6); margin-bottom: 5px;
    }

    .dps-display {
        font-family: 'Bungee'; color: #888; font-size: 16px; margin-bottom: 50px;
        background: #111; padding: 8px 20px; border-radius: 20px; border: 1px solid #333;
    }

    #game-guess, #game-slots, #game-crate, #game-crypto, #game-mines, #game-plinko, #game-roulette, #game-flip, #game-rps, #game-target, #game-reaction, #game-code, #game-duel, #game-ttt, #game-rps-multi {
        display: none; height: 100vh; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, #111, #000);
    }

    .reaction-stage {
        width: min(620px, 90vw);
        height: 230px;
        border-radius: 18px;
        border: 3px solid #444;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Black Ops One';
        font-size: clamp(28px, 5vw, 54px);
        letter-spacing: 2px;
        background: linear-gradient(135deg, #1a1a1a, #0b0b0b);
        box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.07), 0 0 35px rgba(0, 0, 0, 0.5);
        cursor: pointer;
        user-select: none;
    }

    .reaction-stage.waiting {
        border-color: #888;
        color: #ddd;
    }

    .reaction-stage.ready {
        border-color: #39ff14;
        color: #062806;
        text-shadow: none;
        background: radial-gradient(circle at center, #8eff7e, #39ff14);
    }

    .reaction-readout {
        margin-top: 16px;
        font-family: 'Bungee';
        font-size: 18px;
        color: var(--gold);
        text-align: center;
    }

    .code-log {
        width: min(520px, 90vw);
        min-height: 210px;
        max-height: 260px;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid #333;
        border-radius: 12px;
        padding: 10px 12px;
        font-family: 'Roboto Mono';
        color: #ddd;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .code-log-line {
        padding: 7px 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    .duel-controls {
        display: flex;
        gap: 10px;
        align-items: center;
        margin: 12px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .duel-board {
        width: min(620px, 92vw);
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid #3a3a3a;
        border-radius: 14px;
        padding: 14px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
    }

    .duel-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        font-family: 'Bungee';
        color: #ddd;
        margin-bottom: 10px;
    }

    .duel-guess-buttons {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .rps-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ttt-board {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 10px auto;
        max-width: 360px;
    }

    .ttt-cell {
        position: relative;
        width: 100%;
        padding-top: 100%;
        background: rgba(255, 255, 255, 0.08);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        cursor: pointer;
        font-size: 48px;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
    }

    .ttt-cell.disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

    .rps-result {
        margin-top: 20px;
        min-width: 360px;
        text-align: center;
        font-family: 'Roboto Mono';
        padding: 12px 16px;
        border: 1px solid #333;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
    }

    .target-hud {
        display: flex;
        gap: 25px;
        font-family: 'Bungee';
        margin: 15px 0;
    }

    .target-area {
        width: min(700px, 92vw);
        height: min(420px, 58vh);
        border: 3px solid var(--danger);
        border-radius: 14px;
        position: relative;
        background: radial-gradient(circle at center, #1a0a0a, #080808);
        overflow: hidden;
        touch-action: manipulation;
    }

    .target-dot {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 3px solid white;
        background: radial-gradient(circle, #ff7777, var(--danger));
        position: absolute;
        cursor: crosshair;
        box-shadow: 0 0 20px rgba(255, 51, 51, 0.8);
        animation: pulseRed 0.9s infinite;
    }

    #game-shooter {
        display: none; height: 100vh; background: #000022; position: relative; overflow: hidden; cursor: none;
    }

    .cards-container { display: flex; gap: 30px; perspective: 1200px; margin: 60px 0; }

    .guess-card {
        width: 180px; height: 260px; position: relative; transform-style: preserve-3d;
        transition: 0.6s; cursor: pointer;
    }

    .guess-card.flipped { transform: rotateY(180deg); }

    .card-face {
        position: absolute; inset: 0; backface-visibility: hidden; display: flex;
        align-items: center; justify-content: center; font-size: 80px;
        border-radius: 18px; border: 4px solid #444;
    }

    .card-front { background: #222; color: var(--secondary); }
    .card-back { background: white; transform: rotateY(180deg); }

    .shooter-ui {
        position: absolute; top: 20px; right: 20px; text-align: right;
        z-index: 10; font-family: 'Bungee'; pointer-events: none; font-size: 24px;
    }

    .player-ship {
        position: absolute; bottom: 30px; width: 70px; height: 70px; font-size: 60px;
        transform: translateX(-50%); z-index: 5; text-align: center;
    }

    .enemy { position: absolute; font-size: 50px; z-index: 4; }
    .bullet { position: absolute; width: 8px; height: 25px; background: var(--toxic); z-index: 3; }

    #shooter-shop-modal {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95);
        z-index: 100; flex-direction: column; align-items: center; justify-content: center;
    }

    .mines-ui { display: flex; gap: 40px; }

    .mines-grid {
        display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
        width: 500px; height: 500px; background: #151515; padding: 15px; border-radius: 15px;
    }

    .mine-tile {
        background: #2a2a2a; border-radius: 8px; cursor: pointer; display: flex;
        align-items: center; justify-content: center; font-size: 40px;
    }

    .mine-tile.revealed { background: #0a0a0a; border: 2px solid #333; }
    .mine-tile.safe { border-color: cyan; }
    .mine-tile.exploded { border-color: red; }

    .mines-input {
        width: 100%; background: #222; border: 1px solid #444; padding: 10px; color: white; text-align: center;
    }

    .plinko-board {
        width: 600px; height: 500px; position: relative; background: #111;
        border: 4px solid var(--secondary); border-radius: 20px; overflow: hidden; margin-bottom: 20px;
    }

    .plinko-peg { position: absolute; width: 8px; height: 8px; background: white; border-radius: 50%; }
    .plinko-ball { position: absolute; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; z-index: 10; }

    .plinko-slot {
        position: absolute; bottom: 0; width: 10%; height: 30px; display: flex;
        align-items: center; justify-content: center; font-size: 10px;
        font-weight: bold; color: black; border-top: 2px solid black;
    }

    .roulette-track-container {
        width: 800px; height: 120px; background: #111; border: 4px solid var(--gold);
        border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 40px;
    }

    .roulette-track { display: flex; height: 100%; transition: transform 5s cubic-bezier(0.1, 0.9, 0.3, 1); }

    .roulette-tile {
        width: 100px; height: 100%; display: flex; align-items: center; justify-content: center;
        font-size: 40px; flex-shrink: 0; border-right: 2px solid rgba(0,0,0,0.5); font-family: 'Black Ops One';
    }

    .r-red { background: #b00; }
    .r-black { background: #111; }
    .r-green { background: #0b0; }

    .coin {
        width: 250px; height: 250px; position: relative; transform-style: preserve-3d;
        transition: transform 3s ease-out; margin-bottom: 50px;
    }

    .coin-side {
        position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center;
        justify-content: center; font-size: 100px; border: 10px solid var(--gold);
        background: #333; backface-visibility: hidden;
    }

    .coin-front { transform: rotateY(0deg); }
    .coin-back { transform: rotateY(180deg); }

    #game-flappy {
        display: none; height: 100vh; flex-direction: column; align-items: center;
        justify-content: center; background: skyblue; position: relative; overflow: hidden;
    }

    #flappy-canvas {
        border: 4px solid #333; background: #4ec0ca; box-shadow: 0 0 50px rgba(0,0,0,0.5); cursor: pointer;
    }

    .flappy-score {
        position: absolute; top: 100px; font-family: 'Black Ops One'; font-size: 60px;
        color: white; -webkit-text-stroke: 2px black; z-index: 10;
    }

    #game-memory {
        display: none; height: 100vh; flex-direction: column; align-items: center;
        justify-content: center; background: radial-gradient(circle, #200020, #000);
    }

    .memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; perspective: 1000px; }

    .mem-card {
        width: 100px; height: 100px; position: relative; transform-style: preserve-3d; transition: 0.5s; cursor: pointer;
    }

    .mem-card.flipped { transform: rotateY(180deg); }

    .mem-face {
        position: absolute; inset: 0; backface-visibility: hidden; display: flex; align-items: center;
        justify-content: center; font-size: 40px; border-radius: 10px; border: 2px solid #555;
    }

    .mem-front { background: linear-gradient(45deg, #333, #111); color: var(--gold); font-family: 'Bungee'; }
    .mem-back { background: white; transform: rotateY(180deg); border-color: var(--primary); }
    .mem-back.matched { background: lime; border-color: white; box-shadow: 0 0 20px lime; }

    #cat { position: fixed; pointer-events: none; z-index: 999999; font-size: 30px; }

    .crypto-dashboard { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 20px; }

    .crypto-header {
        display: flex; justify-content: space-between; align-items: center; background: #111;
        padding: 15px; border: 1px solid #333; border-radius: 10px;
    }

    .crypto-networth { font-family: 'Black Ops One'; font-size: 24px; color: var(--gold); }

    .news-ticker-container {
        width: 100%; background: #220000; border: 1px solid red; overflow: hidden;
        white-space: nowrap; padding: 5px 0; border-radius: 5px; margin-bottom: 10px;
    }

    .news-ticker {
        display: inline-block; padding-left: 100%; animation: ticker 15s linear infinite;
        font-family: 'Roboto Mono'; color: white; font-size: 14px;
    }

    @keyframes ticker {
        0% { transform: translate(0, 0); }
        100% { transform: translate(-100%, 0); }
    }

    .coin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; width: 100%; }

    .coin-card {
        background: #0a0a0a; border: 1px solid #333; padding: 15px; border-radius: 10px;
        position: relative; overflow: hidden; transition: 0.3s; box-shadow: 0 0 10px rgba(0,0,0,0.5);
    }

    .coin-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 0 20px rgba(0, 242, 255, 0.1); }

    .coin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .coin-name { font-family: 'Black Ops One'; font-size: 20px; color: white; }
    .coin-price { font-family: 'Roboto Mono'; font-size: 18px; color: var(--gold); }

    .coin-chart { width: 100%; height: 60px; background: rgba(255,255,255,0.02); border-bottom: 1px solid #222; margin-bottom: 10px; }

    .coin-stats { display: flex; justify-content: space-between; font-size: 12px; font-family: 'Bungee'; color: #888; margin-bottom: 10px; }

    .trend-up { color: var(--toxic); }
    .trend-down { color: var(--danger); }

    .trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

    .trade-btn { border: none; padding: 8px; font-family: 'Bungee'; cursor: pointer; border-radius: 4px; transition: 0.2s; font-size: 12px; }

    .btn-buy { background: rgba(57, 255, 20, 0.2); color: var(--toxic); border: 1px solid var(--toxic); }
    .btn-buy:hover { background: var(--toxic); color: black; }
    .btn-sell { background: rgba(255, 51, 51, 0.2); color: var(--danger); border: 1px solid var(--danger); }
    .btn-sell:hover { background: var(--danger); color: white; }

    #updates-btn {
        position: fixed; top: 80px; right: 20px; z-index: 2147483647; font-size: 18px;
        padding: 10px 14px; border-radius: 50px; border: 2px solid white;
        color: black; cursor: pointer; display: none; box-shadow: 0 0 10px black;
    }

    #settings-btn {
        position: fixed; top: 145px; right: 20px; z-index: 2147483647; font-size: 20px;
        padding: 10px 15px; border-radius: 50px; background: #555; border: 2px solid white;
        color: white; cursor: pointer; display: none; box-shadow: 0 0 10px black;
    }

    #chat-btn {
        position: fixed; top: 210px; right: 20px; z-index: 2147483647; font-size: 20px;
        padding: 10px 15px; border-radius: 50px; background: #0088ff; border: 2px solid white;
        color: white; cursor: pointer; display: none; box-shadow: 0 0 10px black;
    }

    #admin-btn {
        position: fixed; top: 275px; right: 20px; z-index: 2147483647; font-size: 20px;
        padding: 10px 15px; border-radius: 50px; background: #ff4444; border: 2px solid white;
        color: white; cursor: pointer; display: none; box-shadow: 0 0 10px black;
    }

    @media (max-width: 900px) {
        #updates-btn,
        #settings-btn,
        #chat-btn,
        #admin-btn {
            right: 20px;
        }

        #updates-btn {
            top: 80px;
        }

        #settings-btn {
            top: 145px;
        }

        #chat-btn {
            top: 210px;
        }

        #admin-btn {
            top: 275px;
        }
    }

    #chat-modal {
        display: none; position: fixed; bottom: 20px; right: 20px; width: 450px; height: 520px;
        background: rgba(0,0,0,0.9); border: 2px solid var(--primary); border-radius: 15px;
        z-index: 2147483647; flex-direction: column; overflow: hidden; box-shadow: 0 0 30px rgba(0,0,0,0.8);
    }

    #admin-modal {
        display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 92vw; max-width: 900px; max-height: 90vh; z-index: 2147483647;
        overflow: auto; padding: 20px;
    }

    .chat-header {
        background: #111; padding: 10px; border-bottom: 1px solid #333; display: flex;
        justify-content: space-between; align-items: center; font-family: 'Black Ops One'; color: var(--primary);
    }

    .chat-body {
        flex: 1; display: flex; overflow: hidden;
    }

    .chat-messages {
        flex: 1; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
        font-family: 'Roboto Mono'; font-size: 12px;
    }

    .chat-users {
        width: 160px; border-left: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column;
    }

    .chat-users-header {
        padding: 10px; font-family: 'Black Ops One'; font-size: 12px; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .chat-users-list {
        flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px;
    }

    .chat-user {
        background: rgba(20,20,25,0.9); padding: 8px 10px; border-radius: 10px; font-size: 11px;
        display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    }

    .chat-user:hover { background: rgba(255,255,255,0.08); }

    .chat-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .chat-user button {
        border: none; background: rgba(255,255,255,0.1); color: #fff; font-size: 10px;
        padding: 3px 7px; border-radius: 8px; cursor: pointer;
    }

    .chat-user button:hover { background: rgba(255,255,255,0.2); }

    .chat-input-area { padding: 10px; background: #111; border-top: 1px solid #333; display: flex; gap: 5px; }

    .chat-msg { background: #222; padding: 8px 12px; border-radius: 10px; border-bottom-left-radius: 0; max-width: 90%; word-wrap: break-word; color: #ddd; }
    .chat-msg.mine { align-self: flex-end; background: #004488; border-bottom-left-radius: 10px; border-bottom-right-radius: 0; color: white; }
    .chat-msg.system { align-self: center; background: rgba(255,255,255,0.1); color: #ccc; font-style: italic; border: 1px dashed rgba(255,255,255,0.2); }

    .msg-user { font-weight: bold; color: var(--gold); font-size: 10px; margin-bottom: 2px; display: block; }
    .msg-time { font-size: 9px; color: #666; float: right; margin-left: 5px; margin-top: 3px; }

    .chat-del-btn { background: none; border: none; color: #555; cursor: pointer; font-size: 10px; margin-left: 5px; float: right; }
    .chat-del-btn:hover { color: red; }

    .owner-tag { background: red; color: white; padding: 2px 5px; border-radius: 3px; font-size: 8px; margin-right: 5px; font-weight: bold; font-family: 'Black Ops One'; }

    .notif-dot {
        position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; background: red;
        border-radius: 50%; border: 2px solid white; display: none; animation: pulseRed 1s infinite;
    }

    #daily-popup {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 99998;
        align-items: center;
        justify-content: center;
    }

    .daily-box {
        background: rgba(20, 20, 20, 0.95);
        border: 2px solid var(--primary);
        border-radius: 20px;
        padding: 40px;
        text-align: center;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    }

    /* --- TROPHY / ACHIEVEMENT MODAL --- */
    #rewards-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 30px;
    }

    .rewards-box {
        width: min(650px, 95vw);
        max-height: 85vh;
        background: rgba(15, 15, 20, 0.97);
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
        padding: 25px;
        display: flex;
        flex-direction: column;
    }

    .achievement-card {
        display: flex;
        gap: 15px;
        align-items: center;
        padding: 14px 12px;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        margin-bottom: 12px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .achievement-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
    }
    .achievement-card.claimed { opacity: 0.6; }
    .achievement-card.ready { border-color: var(--gold); }

    .achievement-icon {
        font-size: 42px;
        width: 56px;
        height: 56px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

    .achievement-body { flex: 1; }
    .achievement-title { font-family: 'Black Ops One'; font-size: 16px; margin: 0; color: white; }
    .achievement-desc { font-size: 12px; color: #aaa; margin: 4px 0 8px; }

    .achievement-progress { display: flex; align-items: center; gap: 10px; }
    .achievement-progress-bar {
        flex: 1;
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }
    .achievement-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 999px;
        transition: width 0.3s;
    }
    .achievement-progress-text { font-size: 12px; color: #bbb; min-width: 55px; text-align: right; }
    .achievement-reward { font-size: 12px; color: #ccc; margin-top: 6px; }

    .achievement-action { display: flex; align-items: center; }

    /* --- CRATE UI --- */
    #crate-result-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .crate-result-box {
        width: min(480px, 90vw);
        background: rgba(15, 15, 20, 0.97);
        border: 2px solid var(--gold);
        border-radius: 20px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.4);
    }

    .crate-result-icon { font-size: 70px; margin-bottom: 18px; text-shadow: 0 0 30px var(--gold); }
    .crate-result-text { font-family: 'Bungee'; font-size: 22px; margin-bottom: 24px; color: var(--primary); }

    .crate-window {
        position: relative;
        width: min(940px, 92vw);
        height: 220px;
        overflow: hidden;
        background: radial-gradient(circle at 50% 30%, rgba(0, 255, 255, 0.08), rgba(0, 0, 0, 0.85));
        border: 2px solid rgba(255, 255, 255, 0.12);
        border-radius: 24px;
        box-shadow: 0 0 60px rgba(0, 255, 255, 0.12);
        margin: 25px 0;
    }

    .crate-line {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 4px;
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
        pointer-events: none;
    }

    .crate-track {
        position: absolute;
        top: 50%;
        left: 0;
        display: flex;
        align-items: center;
        gap: 14px;
        transform: translateY(-50%);
    }

    .crate-item {
        width: 140px;
        height: 180px;
        flex-shrink: 0;
        background: rgba(0, 0, 0, 0.35);
        border: 2px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-family: 'Bungee';
        text-align: center;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .crate-item:hover { transform: translateY(-4px); }
    .crate-item.common { border-color: rgba(255, 255, 255, 0.15); }
    .crate-item.rare { border-color: rgba(0, 200, 255, 0.6); }
    .crate-item.epic { border-color: rgba(250, 0, 255, 0.7); }
    .crate-item.legendary { border-color: rgba(255, 215, 0, 0.9); }
    .crate-item.winner { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 255, 255, 0.9); }

    .item-icon { font-size: 48px; margin-bottom: 10px; }
    .item-val { font-size: 18px; color: var(--gold); }

    /* --- SETTINGS MODAL --- */
    #settings-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 25px;
    }

    #updates-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 25px;
    }

    .updates-box {
        width: min(580px, 92vw);
        background: rgba(15, 15, 20, 0.97);
        border: 2px solid rgba(255, 215, 0, 0.6);
        border-radius: 20px;
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.25);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .updates-list {
        margin: 0;
        padding-left: 18px;
        color: #ddd;
        font-family: 'Roboto Mono';
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .settings-box {
        width: min(540px, 92vw);
        background: rgba(15, 15, 20, 0.97);
        border: 2px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    #admin-modal .settings-box {
        background: linear-gradient(135deg, rgba(0, 242, 255, 0.18), rgba(255, 0, 234, 0.18));
        border-color: rgba(255, 255, 255, 0.25);
    }

    .admin-section {
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        padding: 12px;
        background: rgba(0, 0, 0, 0.35);
    }

    .admin-section h3 {
        margin: 0 0 8px;
        color: var(--gold);
        font-size: 16px;
    }

    .settings-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .settings-content { display: flex; flex-direction: column; gap: 12px; }

    .settings-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.03);
    }

    .settings-option:hover { background: rgba(255, 255, 255, 0.06); }

    .settings-option input { accent-color: var(--primary); }

    .settings-footer { display: flex; justify-content: flex-end; }


    /* --- DEVICE MODES --- */
    body.device-phone {
        zoom: 0.78;
    }

    body.device-phone #cat {
        display: none;
    }

    /* Phone model theming */
    body.phone-iphone {
        background: radial-gradient(circle, #0f0f1f, #000);
    }

    body.phone-samsung {
        background: radial-gradient(circle, #0a1f3b, #000);
    }

    body.phone-xiaomi {
        background: radial-gradient(circle, #1a1f0a, #000);
    }

    body.phone-pixel {
        background: radial-gradient(circle, #130f1f, #000);
    }

    body.setting-no-cat #cat {
        display: none;
    }

    body.setting-no-toast .notification {
        display: none !important;
    }

    body.setting-no-bg #site-hub,
    body.setting-no-bg #event-banner {
        animation: none !important;
    }

    body.setting-reduce-motion *,
    body.setting-reduce-motion *::before,
    body.setting-reduce-motion *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body.device-laptop {
        zoom: 0.9;
    }

    body.device-pc {
        zoom: 1;
    }

    #dm-window {
        display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 400px; height: 500px; background: #080808; border: 3px solid var(--secondary);
        border-radius: 15px; z-index: 2147483647; flex-direction: column; box-shadow: 0 0 100px rgba(255, 0, 234, 0.4); overflow: hidden;
    }

    .dm-header {
        background: #1a001a; padding: 15px; border-bottom: 2px solid var(--secondary);
        display: flex; justify-content: space-between; align-items: center; color: white; font-family: 'Black Ops One';
    }

    .dm-content {
        flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column;
        gap: 10px; background: radial-gradient(circle at center, #110011, #000);
    }

    .dm-input-box { padding: 15px; border-top: 1px solid #333; background: #111; display: flex; gap: 10px; }

    .dm-msg { padding: 10px; border-radius: 10px; font-family: 'Roboto Mono'; font-size: 12px; max-width: 80%; }
    .dm-msg.them { background: #333; color: #eee; align-self: flex-start; border-bottom-left-radius: 0; border-left: 3px solid var(--secondary); }
    .dm-msg.me { background: var(--secondary); color: white; align-self: flex-end; border-bottom-right-radius: 0; }