:root {
    --neon-blue: #fceb6a;
    --neon-pink: #00e5ff;
    --box-orange: #ff7e00;
    --box-dark: #e65100;
    --error-red: #ff3e3e;
    --bg-deep: #05080a;
}

body, html {
    margin: 0; padding: 0; width: 100%; min-height: 100vh;
    background: var(--bg-deep); color: #fff;
    font-family: 'Segoe UI', 'Orbitron', sans-serif; overflow-x: hidden;
}

#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

/* ---  Logo --- */
.system-logo {
    position: fixed; top: 20px; left: 20px; z-index: 1000;
    display: flex; align-items: center; gap: 12px;
    padding: 10px; background: rgba(0,0,0,0.3); border-radius: 12px; backdrop-filter: blur(5px);
}
.logo-img {
    width: 64px; height: 64px; border: 1px solid var(--neon-blue);
    background: rgba(0, 243, 255, 0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.logo-img img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { border-left: 2px solid var(--neon-pink); padding-left: 10px; }
.logo-title { font-size: 18px; font-weight: 900; letter-spacing: 1px; color: #fff; display: block; }
.logo-subtitle { font-size: 9px; color: var(--neon-pink); text-transform: uppercase; }

/* ---  (Toasts) --- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast {
    background: rgba(10, 10, 20, 0.9); border-left: 4px solid var(--neon-blue);
    color: #fff; padding: 15px 25px; margin-bottom: 10px; border-radius: 4px;
    transform: translateX(120%); transition: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.27);
    font-size: 14px; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(10px);
}
.toast.active { transform: translateX(0); }
.toast.error { border-left-color: var(--error-red); color: var(--error-red); }

/* --- container --- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

.hero { height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.console {
    background: rgba(10, 15, 25, 0.85); border: 2px solid var(--neon-blue);
    padding: 5px; display: flex; width: 100%; max-width: 480px; margin-bottom: 40px;
}
input { background: transparent; border: none; color: #fff; padding: 15px; flex: 1; outline: none; font-size: 16px; letter-spacing: 2px; }
.action-btn { border: none; padding: 0 25px; font-weight: 900; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.draw-btn { background: var(--neon-blue); color: #000; }
.query-btn { background: transparent; color: var(--neon-blue); border: 1px solid var(--neon-blue); }

/* box */
.box-stage { position: relative; width: 180px; height: 180px; margin-bottom: 30px; }
.box-body { position: absolute; bottom: 0; width: 100%; height: 140px; background: linear-gradient(135deg, var(--box-orange), var(--box-dark)); border-radius: 4px; z-index: 5; }
.box-lid { position: absolute; bottom: 130px; left: -10px; width: 200px; height: 40px; background: var(--box-orange); border-radius: 4px; z-index: 10; transition: 0.6s; }
.ribbon { position: absolute; left: 50%; transform: translateX(-50%); width: 30px; height: 100%; background: #00e5ff; box-shadow: 0 0 10px var(--neon-blue); }

.is-shaking { animation: shake 0.1s infinite; }
@keyframes shake { 0% { transform: translateX(2px); } 100% { transform: translateX(-2px); } }
.is-open .box-lid { transform: translateY(-160px) rotate(-15deg); opacity: 0; }

/* --- prize --- */
.prize-section { padding-bottom: 80px; }
.section-header { font-size: 20px; color: var(--neon-blue); margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.section-header::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--neon-blue), transparent); }

.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
.prize-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 12px; text-align: center; transition: 0.3s; }
.prize-card:hover { border-color: var(--neon-pink); transform: translateY(-5px); background: rgba(255, 0, 255, 0.05); }
.img-slot { width: 64px; height: 64px; margin: 0 auto 12px; background: rgba(0,0,0,0.5); border: 1px dashed #333; display: flex; align-items: center; justify-content: center; }
.img-slot img { width: 100%; height: 100%; object-fit: contain; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(15px); }
.modal.active { display: flex; }