:root { 
    --lux: #3c23a8;
    --alex: #000000;
    --funfriend: #baffff;
    --bob: #ffb700;
    --gerald: #909090;
    --fish: #78b9b2;
    --bg: #0a0a0c;
    --panel: #16161a;
    --text: #e1e1e6;
    --hp: #ff4757;
    --mana: #3742fa;
    --sanity: #a55eea;
    --exp: #2bff00;
    --gold: #eccc68;
    --unlocked: #2ed573;

    /* Damage Colors */
    --playerATK: #a2ff96;
    --enemyATK: #ff9696;
    --burnDMG: #ff8000;
    --poisonDMG: #6600b4;
    --freezeDMG: #baffff;

    /* Items */
    --commonItem: #a4b0be;
    --uncommonItem: #22d615;
    --rareItem: #00d2d3;
    --epicItem: #b700ff;
    --legendaryItem: #ffa200;
    --mythicItem: #f132ff;
    --insaneItem: #7500a7;

    /* Crossovers */
    --sans: #e1e1e6;
    --papyrus: #e1e1e6;
    --chara: #ff0000;
    --ralsei: #58c3a7;
    --toriel: #9ccfff;
    --flowey: #eeff00;
    --kris: #00d8c6;
    --susie: #b300ce;
    --berdly: #0026ff;
    --noelle: #a9ffbf;
    --circle: #652d00;
    --bloomie: #2bff00;
    --thavel: #fff0a5;
    --abbie: #ad0000;
    --arcaneacid: #f0bbd5;
}

/* The 'Physical Wall' */
.global-freeze-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647;
    pointer-events: all !important;
    cursor: not-allowed;
}

/* The 'Keyboard Killer' */
.is-frozen {
    overflow: hidden !important; /* Stop scrolling */
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.apply-shake {
    animation: shake 0.15s;
    animation-iteration-count: 1;
}

body { 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    display: flex; 
    justify-content: center; 
    padding: 20px; 
}

#log { 
    height: 200px; 
    background: #2b2b2b; 
    overflow-y: auto; 
    padding: 15px; 
    font-family: 'Fira Code', monospace; 
    border-radius: 8px; 
    border: 1px solid #2f3542; 
    margin-bottom: 25px; 
    font-size: 14px; 
}

.controls { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}

button { 
    padding: 15px; 
    cursor: pointer; 
    border: none; 
    border-radius: 8px; 
    background: #2f3542; 
    color: white; 
    font-weight: 700; 
    transition: 0.3s; 
}

button:hover:not(:disabled) { 
    background: #57606f; 
    transform: translateY(-2px); 
}

button:disabled { 
    opacity: 0.3; 
    cursor: not-allowed; 
}

.hidden { 
    display: none !important; 
}

.san-warn { 
    color: var(--sanity); 
    font-weight: bold; 
}

.mana-warn { 
    color: var(--mana); 
    font-weight: bold; 
}
.hp-warn { 
    color: var(--hp); 
    font-weight: bold;
}
.version {
    position: fixed;
    bottom: 15px;
    left: 15px;
    color: #666;
    z-index: 9999999;
}
.save-controls { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    display: flex; 
    gap: 8px; 
}

.export-btn { 
    padding: 6px 12px; 
    font-size: 12px; 
    background: #444; 
    border: 1px solid #666; 
}

.import-btn { 
    padding: 6px 12px; 
    font-size: 12px; 
    background: #444; 
    border: 1px solid #666; 
}

#tooltip b { 
    color: var(--gold); 
}

#tooltip span { 
    display: block; 
    margin-top: 4px; 
    border-top: 1px solid #444; 
    padding-top: 4px; 
    font-size: 11px; 
    color: #aaa; 
}

#import-input { 
    display: none; 
}

#debugging-panel { 
    position: fixed; 
    top: 15px;
    left: 15px; 
    background: var(--panel); 
    border: 2px solid var(--mana); 
    padding: 20px; 
    border-radius: 15px; 
    z-index: 9999; 
    box-shadow: 0 0 100px rgba(0,0,0,0.9); 
    width: 350px; 
}
#codes-panel { 
    position: fixed; 
    bottom: 15px;
    right: 15px; 
    background: var(--panel); 
    border: 2px solid var(--mana); 
    padding: 20px; 
    border-radius: 15px; 
    z-index: 9999; 
    box-shadow: 0 0 100px rgba(0,0,0,0.9); 
    width: 350px; 
}

#codes-button { 
    background: #444; 
    color: #000; 
    border: none; 
    padding: 7px 11px; 
    font-size: 0.80rem; 
    cursor: pointer; 
    font-family: 'Fira Code', monospace; 
    font-weight: bold; 
    position: absolute; 
    top: 14px; 
    right: 220px;
}

/* Add a hover effect so it feels interactive */
#codes-button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

#lootboxes-button { 
    background: #444; 
    color: #000; 
    border: none; 
    padding: 7px 11px; 
    font-size: 0.80rem; 
    cursor: pointer; 
    font-family: 'Fira Code', monospace; 
    font-weight: bold; 
    position: absolute; 
    top: 14px; 
    right: 335px;
}

/* Add a hover effect so it feels interactive */
#lootboxes-button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

#storage-button { 
    background: #444; 
    color: #000; 
    border: none; 
    padding: 7px 11px; 
    font-size: 0.80rem; 
    cursor: pointer; 
    font-family: 'Fira Code', monospace; 
    font-weight: bold; 
    position: absolute; 
    top: 14px; 
    right: 443px;
}

/* Add a hover effect so it feels interactive */
#storage-button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

#extras-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#extras-menu {
    position: fixed;
    bottom: 65px; /* sits just above the button */
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--mana);
    border-radius: 10px;
    padding: 10px;
}

#extras-menu button {
    width: 140px;
}


.admin-icon {
    position: absolute;
    top: 15px;      /* Matches panel padding */
    left: 15px;     /* Matches panel padding */
    width: 36px;    /* Adjust size as needed */
    height: 36px;   /* Keep it square or proportional */
    border-radius: 4px;
    border: 1px solid var(--mana); /* Optional: gives it a "monitored" look */
    object-fit: cover;
}

/* Update the header in the panel to move it over so it doesn't touch the GIF */
#debugging-panel h3 {
    margin-left: 50px; /* Adjust based on your GIF width + gap */
}


.ghost-trigger { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 20px;
    height: 20px; 
    background: transparent; 
    z-index: 10000; 
    cursor: default; 
}

#game-wrapper { display: flex; justify-content: center; align-items: flex-start; gap: 30px; width: 100%; margin-top: 20px; }

#game-container { width: 850px; background: var(--panel); padding: 30px; border-radius: 20px; border: 2px solid var(--border); box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(55, 66, 250, 0.1); position: relative; flex-shrink: 0; }