/* ============================================================
   DIRECT SELLING EXPO 2026 - UI STYLES
   v2.0 — multiplayer, holo, minimap, treasure hunt, etc.
   ============================================================ */

/* ============= RESET + ROOT ============= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #050714; }
body {
    font-family: 'Rajdhani', system-ui, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}
canvas { display: block; }

:root {
    --bg-deep:   #050714;
    --bg:        #0a0e27;
    --bg-card:   rgba(15, 22, 50, 0.92);
    --primary:   #00ffff;
    --accent:    #ff00aa;
    --gold:      #ffd700;
    --warning:   #ffaa00;
    --danger:    #ff3355;
    --success:   #44ff88;
    --text:      #ffffff;
    --text-dim:  #8892b0;
    --border:    rgba(255, 255, 255, 0.12);
    --border-bright: rgba(0, 255, 255, 0.4);
    --font-d: 'Orbitron', system-ui, sans-serif;
    --font-b: 'Rajdhani', system-ui, sans-serif;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.35);
}

.hidden { display: none !important; }

/* ============= LOADING SCREEN ============= */
#loading-screen {
    position: fixed; inset: 0; z-index: 1000;
    background:
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #050714 0%, #0a0e27 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loading-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.loading-content { text-align: center; z-index: 1; padding: 0 20px; }
.loading-logo { font-family: var(--font-d); font-weight: 900; line-height: 1; margin-bottom: 40px; }
.ll-1 { display: block; font-size: clamp(20px, 3vw, 32px); letter-spacing: 8px; color: var(--text); margin-bottom: 8px; text-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
.ll-2 { display: block; font-size: clamp(36px, 6vw, 60px); letter-spacing: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 255, 255, 0.4));
}

.loading-bar-wrap {
    width: clamp(200px, 40vw, 360px); height: 3px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden;
}
#loading-bar {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 12px var(--primary);
    transition: width 0.3s ease;
}
#loading-text {
    margin-top: 16px; font-family: var(--font-d); font-size: 12px;
    letter-spacing: 4px; color: var(--text-dim); text-transform: uppercase;
}

/* ============= AVATAR SCREEN ============= */
#avatar-screen {
    position: fixed; inset: 0; z-index: 950;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at top, rgba(255, 0, 170, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom, rgba(0, 255, 255, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #050714 0%, #0a0e27 100%);
    animation: fadeIn 0.6s ease;
    overflow-y: auto;
    padding: 20px 0;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.av-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.av-content { width: 100%; max-width: 540px; padding: 30px 40px; text-align: center; z-index: 1; margin: auto; }
.av-title { font-family: var(--font-d); font-weight: 900; line-height: 1; margin-bottom: 8px; }
.av-t1 { display: block; font-size: clamp(20px, 3vw, 28px); letter-spacing: 5px; color: var(--text); }
.av-t2 { display: block; font-size: clamp(34px, 5vw, 52px); letter-spacing: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.4));
    margin-top: 4px;
}
.av-subtitle {
    font-family: var(--font-d); font-size: 12px; letter-spacing: 6px;
    color: var(--text-dim); text-transform: uppercase; margin-bottom: 32px;
}

.av-form {
    background: rgba(10, 14, 39, 0.65);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-glow);
}
.av-label {
    font-family: var(--font-d); font-size: 11px; letter-spacing: 4px;
    color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; text-align: left;
}

#av-name {
    width: 100%; padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-d); font-size: 16px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase;
    outline: none;
    transition: all 0.2s;
}
#av-name:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15); }
#av-name::placeholder { color: rgba(136, 146, 176, 0.5); letter-spacing: 2px; }

.av-colors {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
    margin-bottom: 8px;
}
.av-color {
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}
.av-color:hover { transform: scale(1.1); }
.av-color.active {
    border-color: #fff;
    box-shadow: 0 0 12px currentColor, 0 0 0 2px var(--primary);
    transform: scale(1.15);
}

.av-preview-wrap {
    margin: 24px auto 20px; width: 180px; height: 240px;
    background: radial-gradient(ellipse at bottom, rgba(0, 255, 255, 0.15), transparent 70%);
    border-radius: 8px; position: relative;
}
#av-preview { width: 100%; height: 100%; }
.av-preview-name {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-d); font-weight: 700; font-size: 12px;
    letter-spacing: 2px; color: var(--primary);
    background: rgba(0, 0, 0, 0.6); padding: 4px 12px; border-radius: 12px;
    border: 1px solid var(--border-bright);
    white-space: nowrap;
}

.av-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--bg-deep);
    font-family: var(--font-d); font-size: 15px; font-weight: 900; letter-spacing: 5px;
    border: none; border-radius: 4px; cursor: pointer; text-transform: uppercase;
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.4);
    display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: all 0.2s;
}
.av-btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 255, 255, 0.6); }
.av-btn:active { transform: translateY(0); }
.av-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.av-hint {
    margin-top: 24px;
    font-size: 12px; color: var(--text-dim); letter-spacing: 1px;
}

/* ============= RESUME OVERLAY ============= */
#resume-overlay {
    position: fixed; inset: 0; z-index: 850;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.08) 0%, transparent 60%),
        rgba(5, 7, 20, 0.65);
    backdrop-filter: blur(6px);
    cursor: pointer;
    animation: fadeIn 0.25s ease;
}
.resume-card {
    text-align: center; padding: 40px 60px;
    border: 1px solid var(--border-bright); border-radius: 6px;
    background: rgba(10, 14, 39, 0.85);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#resume-overlay:hover .resume-card {
    transform: scale(1.02); box-shadow: 0 0 60px rgba(0, 255, 255, 0.45);
}
.resume-title {
    font-family: var(--font-d); font-size: 28px; font-weight: 900; letter-spacing: 8px;
    color: var(--primary); text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    margin-bottom: 14px;
}
.resume-hint {
    font-family: var(--font-d); font-size: 14px; letter-spacing: 3px;
    color: var(--text); text-transform: uppercase; margin-bottom: 24px;
    animation: pulseHint 1.6s ease-in-out infinite;
}
@keyframes pulseHint { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.resume-keys { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.resume-key {
    display: inline-block; padding: 3px 10px; margin: 0 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border); border-bottom-width: 2px;
    border-radius: 4px;
    font-family: var(--font-d); font-size: 11px; font-weight: 700;
    color: var(--primary); letter-spacing: 1px;
}

/* ============= HUD ============= */
#hud {
    position: fixed; inset: 0; pointer-events: none; z-index: 100;
    color: #fff; font-family: var(--font-d);
}
#hud .hidden { display: none !important; }

/* Crosshair */
.crosshair {
    position: absolute; top: 50%; left: 50%;
    width: 24px; height: 24px; transform: translate(-50%, -50%);
}
.ch-dot {
    position: absolute; top: 50%; left: 50%;
    width: 4px; height: 4px; transform: translate(-50%, -50%);
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}
.crosshair::before, .crosshair::after {
    content: ''; position: absolute; background: rgba(255, 255, 255, 0.5);
}
.crosshair::before {
    top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%);
}
.crosshair::after {
    left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
}

/* Top-Left */
.hud-tl {
    position: absolute; top: 20px; left: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.loc-pill, .players-pill {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-bright);
    padding: 8px 16px; border-radius: 100px;
    font-size: 13px; letter-spacing: 3px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    color: var(--primary);
    text-transform: uppercase;
    width: fit-content;
}
.loc-dot {
    width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 8px var(--primary); animation: locPulse 1.2s ease-in-out infinite;
}
@keyframes locPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.players-pill { color: var(--success); }

/* Top-Right: Minimap + treasure */
.hud-tr {
    position: absolute; top: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
#minimap-wrap {
    position: relative;
    width: 180px; height: 180px;
    background: rgba(10, 14, 39, 0.75);
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}
#minimap { position: absolute; top: 0; left: 0; }
.mm-label {
    position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
    font-size: 10px; letter-spacing: 4px; color: var(--primary);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}
.treasure-pill {
    background: rgba(10, 14, 39, 0.7);
    border: 1px solid var(--gold);
    padding: 6px 14px; border-radius: 100px;
    font-size: 13px; letter-spacing: 2px; font-weight: 700;
    color: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}
.t-icon { color: var(--gold); margin-right: 4px; }

/* Bottom-left: control hints */
.hud-bl {
    position: absolute; bottom: 20px; left: 20px;
    display: flex; flex-direction: column; gap: 6px;
    pointer-events: auto;
}
.ctrl-hint {
    font-size: 11px; letter-spacing: 2px; color: var(--text-dim);
    text-transform: uppercase;
}
.ck {
    display: inline-block; padding: 1px 8px; min-width: 22px; text-align: center;
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border);
    border-bottom-width: 2px; border-radius: 3px;
    color: var(--primary); font-weight: 700; margin-right: 6px;
}

/* Interaction prompt */
#interaction-prompt {
    position: absolute; bottom: 25%; left: 50%; transform: translateX(-50%);
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid var(--primary);
    padding: 10px 24px; border-radius: 100px;
    font-size: 14px; letter-spacing: 2px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    animation: promptPulse 1.4s ease-in-out infinite;
}
@keyframes promptPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.4); }
    50% { box-shadow: 0 0 32px rgba(0, 255, 255, 0.7); }
}
.ip-key {
    display: inline-block; padding: 2px 10px;
    background: var(--primary); color: var(--bg-deep);
    border-radius: 3px; font-weight: 900; font-size: 13px;
}

/* VIP indicator */
#vip-indicator {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% + 60px));
    background: rgba(40, 0, 60, 0.9);
    border: 1px solid var(--accent);
    padding: 8px 18px; border-radius: 100px;
    font-size: 12px; letter-spacing: 4px;
    color: var(--accent);
    box-shadow: 0 0 16px rgba(255, 0, 170, 0.5);
    animation: vipPulse 2s ease-in-out infinite;
}
@keyframes vipPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; box-shadow: 0 0 24px rgba(255, 0, 170, 0.8); }
}
.vip-icon { color: var(--accent); }

/* ============= MODALS (shared) ============= */
.modal {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.25s ease;
}
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(5, 7, 20, 0.75);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative; max-width: 600px; width: calc(100% - 40px);
    max-height: 85vh; overflow-y: auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    box-shadow: var(--shadow), 0 0 40px rgba(0, 255, 255, 0.2);
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content h2 {
    font-family: var(--font-d); font-weight: 900; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 16px; font-size: 22px;
}
.modal-close {
    position: absolute; top: 12px; right: 16px;
    width: 36px; height: 36px;
    background: transparent; border: 1px solid var(--border);
    border-radius: 50%; color: var(--text);
    font-size: 24px; line-height: 1; cursor: pointer;
    transition: all 0.2s;
}
.modal-close:hover { background: var(--danger); border-color: var(--danger); }

.modal-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.modal-logo {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d); font-size: 22px; font-weight: 900; letter-spacing: 1px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
}
#modal-category {
    font-family: var(--font-d); font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase; margin-top: 4px; color: var(--text-dim);
}
#modal-description { color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }

.modal-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px; margin-bottom: 24px;
}
.stat-box {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px; text-align: center;
}
.stat-val { font-family: var(--font-d); font-size: 20px; font-weight: 900; }
.stat-lbl { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }

.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    padding: 12px 22px;
    font-family: var(--font-d); font-weight: 700; font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase;
    border: none; border-radius: 4px; cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--bg-deep);
    box-shadow: 0 4px 14px rgba(0, 255, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5); }
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-bright);
}
.btn-secondary:hover { background: rgba(0, 255, 255, 0.08); }

/* ============= CARD MODAL ============= */
.card-modal-content { max-width: 460px; }
.card-target {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 6px; margin-bottom: 16px;
}
.card-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px currentColor;
}
.card-target-label {
    font-size: 11px; letter-spacing: 2px; color: var(--text-dim);
    text-transform: uppercase;
}
.card-target-name {
    font-family: var(--font-d); font-size: 18px; font-weight: 700;
    letter-spacing: 2px; margin-top: 2px;
}
#card-message {
    width: 100%; min-height: 80px; padding: 12px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
    border-radius: 4px; color: var(--text);
    font-family: var(--font-b); font-size: 14px; resize: vertical;
    margin-bottom: 16px; outline: none;
}
#card-message:focus { border-color: var(--primary); }

/* ============= GUESTBOOK MODAL ============= */
.gb-modal-content { max-width: 560px; }
.gb-booth-name {
    font-family: var(--font-d); font-size: 14px; letter-spacing: 3px;
    color: var(--primary); margin-bottom: 16px;
    text-transform: uppercase;
}
.gb-list {
    max-height: 300px; overflow-y: auto;
    border: 1px solid var(--border); border-radius: 4px;
    padding: 8px; margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
}
.gb-empty { padding: 30px; text-align: center; color: var(--text-dim); font-style: italic; }
.gb-entry {
    padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.gb-entry:last-child { border-bottom: none; }
.gb-entry-author {
    font-family: var(--font-d); font-size: 12px; font-weight: 700;
    color: var(--primary); letter-spacing: 1px; margin-bottom: 4px;
}
.gb-entry-msg { font-size: 14px; color: var(--text); line-height: 1.4; }
.gb-entry-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }

.gb-form { display: flex; gap: 8px; }
#gb-input {
    flex: 1; min-height: 60px; padding: 10px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
    border-radius: 4px; color: var(--text); font-family: var(--font-b);
    resize: vertical; outline: none; font-size: 14px;
}
#gb-input:focus { border-color: var(--primary); }

/* ============= INBOX ============= */
.inbox-content { max-width: 540px; }
.inbox-list {
    max-height: 400px; overflow-y: auto;
    border: 1px solid var(--border); border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}
.inbox-card {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; gap: 12px; align-items: flex-start;
}
.inbox-card:last-child { border-bottom: none; }
.inbox-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d); font-weight: 900; font-size: 14px;
    color: var(--bg-deep);
}
.inbox-meta { flex: 1; }
.inbox-name {
    font-family: var(--font-d); font-size: 13px; font-weight: 700;
    letter-spacing: 1px; color: var(--primary);
}
.inbox-msg { font-size: 13px; color: var(--text); margin-top: 4px; line-height: 1.4; }
.inbox-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }

/* ============= HOLO VIEWER ============= */
#holo-view {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(0, 60, 80, 0.95) 0%, rgba(5, 7, 20, 0.98) 70%);
    backdrop-filter: blur(16px);
    animation: fadeIn 0.4s ease;
}
.holo-canvas-wrap {
    width: 80vw; height: 80vh;
    max-width: 800px; max-height: 800px;
    position: relative;
}
#holo-canvas { width: 100%; height: 100%; }
.holo-info {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    text-align: center;
}
.holo-title {
    font-family: var(--font-d); font-size: 24px; font-weight: 900; letter-spacing: 6px;
    color: var(--primary); text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    margin-bottom: 8px;
}
.holo-hint { font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }
.holo-close {
    position: absolute; top: 20px; right: 20px;
    width: 48px; height: 48px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--primary);
    border-radius: 50%; color: var(--text); font-size: 28px; line-height: 1;
    cursor: pointer;
}
.holo-close:hover { background: var(--danger); border-color: var(--danger); }

/* ============= NPC DIALOG ============= */
#npc-dialog {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 800;
    display: flex; align-items: center; gap: 16px;
    background: rgba(10, 14, 39, 0.92);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 540px; width: calc(100% - 40px);
    box-shadow: var(--shadow), 0 0 30px rgba(0, 255, 255, 0.25);
    animation: npcSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes npcSlideIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.npc-portrait {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #00ffff);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
}
.npc-text { flex: 1; }
.npc-name {
    font-family: var(--font-d); font-size: 12px; font-weight: 700;
    letter-spacing: 3px; color: var(--primary); margin-bottom: 4px;
    text-transform: uppercase;
}
.npc-msg { font-size: 14px; line-height: 1.4; }
.npc-close {
    background: none; border: none; color: var(--text-dim);
    font-size: 24px; cursor: pointer; line-height: 1;
    width: 28px; height: 28px;
}
.npc-close:hover { color: var(--danger); }

/* ============= TOAST ============= */
#toast-area {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    z-index: 1500;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    pointer-events: none;
}
.toast {
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px; letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
    max-width: 90vw;
    text-align: center;
}
.toast.success { border-color: var(--success); box-shadow: 0 0 20px rgba(68, 255, 136, 0.3); }
.toast.warn { border-color: var(--warning); box-shadow: 0 0 20px rgba(255, 170, 0, 0.3); }
.toast.danger { border-color: var(--danger); box-shadow: 0 0 20px rgba(255, 51, 85, 0.3); }
.toast.gold { border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 215, 0, 0.5); color: var(--gold); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-20px); }
}

/* ============= PROMO REVEAL ============= */
#promo-reveal {
    position: fixed; inset: 0; z-index: 1300;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.18), rgba(5, 7, 20, 0.95) 70%);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease;
}
.promo-stars {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
    animation: starsTwinkle 4s ease-in-out infinite;
    opacity: 0.3;
}
@keyframes starsTwinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }
.promo-card {
    position: relative;
    text-align: center; padding: 40px 60px;
    background: linear-gradient(135deg, rgba(40, 30, 0, 0.95), rgba(20, 10, 30, 0.95));
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
    max-width: 90vw;
}
.promo-trophy { font-size: 64px; margin-bottom: 12px; animation: bounceIn 0.6s; }
@keyframes bounceIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.promo-h1 { font-family: var(--font-d); font-size: 32px; font-weight: 900; letter-spacing: 6px; color: var(--gold); text-shadow: 0 0 16px var(--gold); margin-bottom: 8px; }
.promo-h2 { font-size: 14px; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 24px; }
.promo-code-label { font-family: var(--font-d); font-size: 10px; letter-spacing: 4px; color: var(--text-dim); margin-bottom: 8px; }
.promo-code {
    font-family: var(--font-d); font-size: 36px; font-weight: 900; letter-spacing: 8px;
    background: linear-gradient(90deg, var(--gold), #fff8c0);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    padding: 16px;
    border: 2px dashed var(--gold);
    border-radius: 8px;
    margin-bottom: 24px;
}

/* ============= POINTER LOCKED CURSOR HIDE ============= */
body.pointer-locked, body.pointer-locked * { cursor: none !important; }

/* ============= MOBILE / SHORT VIEWPORT ============= */
@media (max-height: 750px) {
    .av-content { padding: 16px 30px; }
    .av-t1 { font-size: 18px; }
    .av-t2 { font-size: 32px; }
    .av-subtitle { margin-bottom: 20px; }
    .av-form { padding: 20px; }
    .av-preview-wrap { width: 140px; height: 180px; margin: 16px auto; }
    .av-btn { padding: 12px; font-size: 13px; }
}
@media (max-width: 640px) {
    .hud-tr #minimap-wrap { width: 120px; height: 120px; }
    .hud-bl { display: none; }
    .modal-content { padding: 22px 18px; }
}
