* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Special visual tweaks for specific aura names requested by user */
/* S U F F E R and F A L L E N shake */
.aura-list-item[data-aura-name="S U F F E R"] .aura-name,
#inventory [data-aura-name="S U F F E R"] .aura-name,
.aura-list-item[data-aura-name="F A L L E N"] .aura-name,
#inventory [data-aura-name="F A L L E N"] .aura-name {
  animation: auraShake 0.45s infinite;
}

/* Nothing. must be ALL CAPS, invisible text, and its rarity should visually fluctuate */
.aura-list-item[data-aura-name="Nothing."] .aura-name,
#inventory [data-aura-name="Nothing."] .aura-name,
#aura-inventory .inventory-item[data-aura-name="Nothing."] .aura-name {
  text-transform: uppercase;
  color: transparent !important;       /* make text invisible */
  text-shadow: none !important;
  pointer-events: none;
}

/* Animate the rarity line for Nothing. to constantly change visually (fast, non-rainbow) */
.aura-list-item[data-aura-name="Nothing."] .aura-rarity,
#inventory [data-aura-name="Nothing."] .aura-rarity,
#aura-inventory .inventory-item[data-aura-name="Nothing."] .aura-rarity {
  animation: rarityPulseFast 0.2s linear infinite;
  will-change: transform, color, opacity;
  opacity: 1;
}

/* Fast, subtle non-hue-rotating pulse used specifically for Nothing. */
@keyframes rarityPulseFast {
  0% {
    color: #aaa;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
    opacity: 0.95;
  }
  50% {
    color: #ff8000;
    transform: translateY(-1px) scale(1.01);
    text-shadow: 0 0 6px rgba(255,128,0,0.25);
    opacity: 1;
  }
  100% {
    color: #aaa;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
    opacity: 0.95;
  }
}

/* Shake keyframes */
@keyframes auraShake {
  0% { transform: translateX(0) rotate(0deg); filter: none; }
  10% { transform: translateX(-2px) rotate(-0.8deg); }
  20% { transform: translateX(2px) rotate(0.8deg); }
  30% { transform: translateX(-2px) rotate(-0.6deg); }
  40% { transform: translateX(2px) rotate(0.6deg); }
  50% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

/* Rarity fluctuation keyframes (color, glow, slight scale/translate) */
@keyframes rarityPulse {
  0% {
    color: #aaa;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
    filter: hue-rotate(0deg) saturate(100%);
    opacity: 0.95;
  }
  25% {
    color: #ff8000;
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 0 6px rgba(255,128,0,0.45);
    filter: hue-rotate(15deg) saturate(140%);
    opacity: 1;
  }
  50% {
    color: #00ffff;
    transform: translateY(0) scale(0.99);
    text-shadow: 0 0 8px rgba(0,255,255,0.35);
    filter: hue-rotate(90deg) saturate(160%);
    opacity: 0.9;
  }
  75% {
    color: #9932cc;
    transform: translateY(2px) scale(1.01);
    text-shadow: 0 0 10px rgba(153,50,204,0.4);
    filter: hue-rotate(200deg) saturate(180%);
    opacity: 0.98;
  }
  100% {
    color: #aaa;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
    filter: hue-rotate(0deg) saturate(100%);
    opacity: 0.95;
  }
}

/* Ensure replay-cutscene-button and other inline controls don't inherit weird transforms */
.aura-list-item[data-aura-name="Nothing."] .replay-cutscene-button,
#inventory [data-aura-name="Nothing."] .replay-cutscene-button,
#aura-inventory .inventory-item[data-aura-name="Nothing."] .replay-cutscene-button {
  transform: none !important;
  animation: none !important;
}

/* Time Machine Biome */
.biome-time_machine {
    background: radial-gradient(circle at top, #1b3138 0%, #16110c 40%, #0b0908 100%);
    color: #e0f8ff;
    position: relative;
    overflow: hidden;
}

/* Floating brass gears */
.time-machine-gear {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    border: 4px solid rgba(205, 133, 63, 0.85); /* brass */
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
    z-index: 50;
    mix-blend-mode: screen;
    animation: tmGearSpin 30s linear infinite;
}
.time-machine-gear::before {
    content: "";
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 3px dotted rgba(255, 215, 0, 0.7);
}
.time-machine-gear.small {
    width: 80px;
    height: 80px;
}
.time-machine-gear.medium {
    width: 130px;
    height: 130px;
}
.time-machine-gear.large {
    width: 180px;
    height: 180px;
}

/* Pocket-watch faces framing edges */
.time-machine-clock-edge {
    position: fixed;
    pointer-events: none;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid rgba(222, 184, 135, 0.9);
    background:
      radial-gradient(circle at center, rgba(250,250,250,0.9) 0%, rgba(200,200,200,0.4) 60%, transparent 65%);
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
    z-index: 50;
    overflow: hidden;
}
.time-machine-clock-edge::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 191, 255, 0.9);
}

/* Ground fog */
.time-machine-fog {
    position: fixed;
    left: -10%;
    right: -10%;
    bottom: -5%;
    height: 40%;
    background: radial-gradient(circle at 50% 100%, rgba(180, 220, 230, 0.35) 0%, transparent 55%);
    filter: blur(4px);
    opacity: 0.7;
    z-index: 20;
    pointer-events: none;
    animation: tmFogDrift 30s linear infinite;
}

/* Neon time ripples */
.time-machine-ripple {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    z-index: 40;
    animation: tmRipple 6s ease-out infinite;
    mix-blend-mode: screen;
}

/* Intro overlay */
#time-machine-intro {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Antique clock in intro */
.tm-clock {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 6px solid rgba(205, 133, 63, 0.95);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    background:
      radial-gradient(circle at center, #fdfdf9 0%, #f0e6d8 45%, #c7b69d 100%);
}
.tm-clock-center {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 2px solid rgba(139, 69, 19, 0.8);
}
.tm-clock-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 100%;
    background: #222;
}
.tm-clock-hand.hour {
    width: 6px;
    height: 55px;
    border-radius: 6px;
}
.tm-clock-hand.minute {
    width: 4px;
    height: 80px;
    border-radius: 4px;
    background: #333;
}
.tm-clock-hand.second {
    width: 2px;
    height: 95px;
    border-radius: 2px;
    background: #e60026;
}
.tm-clock-hand::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #222;
}

/* Cracks overlay */
.tm-crack-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 55vh;
    background: rgba(250, 250, 250, 0.9);
    transform-origin: top center;
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.tm-intro-glass {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 65%);
    pointer-events: none;
}

/* Keyframes for Time Machine biome */
@keyframes tmGearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes tmFogDrift {
    0% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(8%); opacity: 0.8; }
    100% { transform: translateX(-8%); opacity: 0.6; }
}

@keyframes tmRipple {
    0% { transform: scale(0.4); opacity: 0.9; }
    70% { transform: scale(1.6); opacity: 0.1; }
    100% { transform: scale(2.2); opacity: 0; }
}

body {
    background-color: #232323;
    color: #f0f0f0;
    min-height: 100vh;
    padding: 20px;
}

/* --- Halloween Theme --- */
body.halloween-theme {
    background-color: #1a0a1a; /* Darker, purple-black */
    color: #e0e0e0;
}

body.halloween-theme #game-container {
    background-color: #281528;
    box-shadow: 0 0 25px rgba(139, 0, 139, 0.4);
}

body.halloween-theme #header {
    background-color: #331a33;
    border-bottom: 2px solid #553355;
}

body.halloween-theme #header h1 {
    color: #ff9900; /* Orange/Pumpkin color */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.halloween-theme #stats div {
    background-color: #442244;
}

body.halloween-theme #left-panel {
    border-right: 2px solid #553355;
}

body.halloween-theme #biome-container, 
body.halloween-theme #roll-result, 
body.halloween-theme #merchant-container, 
body.halloween-theme .crafting-item,
body.halloween-theme .quest-item,
body.halloween-theme .achievement-item,
body.halloween-theme .aura-list-item,
body.halloween-theme #update-log,
body.halloween-theme .settings-section,
body.halloween-theme .admin-section,
body.halloween-theme #admin-login,
body.halloween-theme .halloween-section {
    background-color: #331a33;
}

body.halloween-theme #tabs {
    background-color: #331a33;
    border-bottom: 2px solid #553355;
}

body.halloween-theme .tab-button.active {
    background-color: #7d3c98; /* Purple active tab */
}

body.halloween-theme .tab-button:hover:not(.active) {
    background-color: #442244;
}

body.halloween-theme h3 {
    color: #ff9900;
    border-bottom: 1px solid #553355;
}

body.halloween-theme #roll-button {
    background-color: #7d3c98;
}

body.halloween-theme #roll-button:hover {
    background-color: #6c3483;
}

body.halloween-theme .inventory-item,
body.halloween-theme #gloves-inventory .inventory-item {
    background-color: #442244;
}

body.halloween-theme .shop-item {
    background-color: #442244;
}

body.halloween-theme .req-item {
    background-color: #442244;
}

/* New Suggestions Tab Styles */
.suggestion-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    position: relative;
    border-left: 5px solid #3a9dee;
}

.suggestion-entry .user {
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.suggestion-entry .text {
    font-size: 14px;
    margin-bottom: 10px;
    word-wrap: break-word; /* Ensure long suggestions don't overflow */
}

.suggestion-entry .metadata {
    font-size: 11px;
    color: #bbb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-entry .mod-feedback {
    display: flex;
    gap: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

.suggestion-entry.read {
    border-left-color: #2ecc71;
}

.suggestion-entry.implemented {
    border-left-color: #00ffff;
}

/* End Halloween Theme */

#game-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%; /* Ensure it uses full width on smaller screens */
}

#header {
    background-color: #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #444;
}

#header h1 {
    color: #ffcc00;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#stats {
    display: flex;
    gap: 15px;
}

#stats div {
    background-color: #444;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

#main-content {
    display: flex;
    min-height: 600px;
}

#left-panel {
    width: 35%;
    padding: 20px;
    border-right: 2px solid #444;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#right-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
}

#biome-container {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

#current-biome {
    color: #3a9dee;
}

#roll-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    background-color: #3a9dee;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

#roll-button {
    font-size: 18px;
    padding: 15px;
    background-color: #e74c3c;
}

#roll-button:hover {
    background-color: #c0392b;
}

#auto-roll-button {
    font-size: 16px;
}

#roll-result {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-height: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#aura-name {
    font-size: 28px;
    margin: 10px 0;
    color: #ffcc00;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#aura-rarity {
    font-size: 16px;
    color: #aaa;
    margin-top: 5px;
}

#merchant-container {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.merchant-shop {
    margin-top: 10px;
    padding: 10px;
    background-color: #3a3a3a;
    border-radius: 5px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background-color: #444;
    border-radius: 4px;
}

.shop-item button {
    padding: 5px 10px;
    font-size: 12px;
}

/* Tabs */
#tabs {
    display: flex;
    flex-wrap: wrap; /* Allow tabs to wrap */
    background-color: #333;
    border-bottom: 2px solid #444;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.tab-button {
    background-color: transparent;
    padding: 15px 20px;
    border-radius: 0;
    border-right: 1px solid #444;
    flex-grow: 1; 
    min-width: fit-content;
}

.tab-button.active {
    background-color: #3a9dee;
}

.tab-button:hover:not(.active) {
    background-color: #444;
}

#tab-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 560px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Tab Management UI */
/* remove .tab-button.collapsible-tab.hidden */

/* Responsive adjustments */
@media (max-width: 800px) {
    #header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #main-content {
        flex-direction: column; /* Stack left and right panels vertically */
        min-height: auto;
    }

    #left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #444;
    }

    #right-panel {
        width: 100%;
    }
    
    #tab-content {
        max-height: none; /* Allow vertical scrolling on the whole page if necessary */
    }

    #tabs {
        justify-content: space-evenly;
    }
    
    .tab-button {
        flex-basis: 30%; /* Try to fit 3 per row on small screens */
        font-size: 12px;
        padding: 10px 5px;
        border-right: none;
        border-bottom: 1px solid #444;
        margin: 1px;
    }
}

/* Inventory */
#aura-inventory, #potion-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Inventory */
#aura-inventory {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#potion-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Add style for potion controls container */
.potion-controls {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    align-items: center;
}

.potion-controls input[type="number"] {
    width: auto;
    min-width: 40px;
    max-width: 60px;
    padding: 2px 4px;
    font-size: 12px;
    height: auto;
    text-align: center;
    margin: 0; /* Override global input margin */
}

.potion-controls button {
    flex-grow: 1;
    padding: 4px 8px;
    font-size: 12px;
    margin-top: 0; /* Override generic .inventory-item button margin */
}

#gloves-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.inventory-item {
    background-color: #333;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

#gloves-inventory .inventory-item {
    background-color: #333;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

.inventory-item .count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #e74c3c;
    color: white;
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 12px;
}

.inventory-item .name {
    font-weight: bold;
    margin-bottom: 5px;
    word-break: break-word;
}

.inventory-item .rarity {
    font-size: 12px;
    color: #aaa;
}

.inventory-item button {
    margin-top: 5px;
    padding: 4px 8px;
    font-size: 12px;
    width: 100%;
}

#gloves-inventory .equip-button {
    margin-top: 5px;
    width: 100%;
    padding: 4px 8px;
    font-size: 12px;
}

/* Exotic Aura Styling */

.inventory-item.xenorythmora-aura, .aura-list-item.xenorythmora-aura {
    background: radial-gradient(circle, #00FFCC 0%, #006655 100%);
    box-shadow: 0 0 10px #00FFCC;
    animation: aura-pulse 3s infinite alternate;
}

.inventory-item.limited-aura {
    border: 2px solid #0000FF; /* Blue border for glock 17 */
    box-shadow: 0 0 8px rgba(0, 0, 255, 0.7);
}

.inventory-item.unobtainable-aura, .aura-list-item.unobtainable-aura {
    background-color: #333333;
    border: 2px dashed #999;
}

@keyframes aura-pulse {
    from {
        box-shadow: 0 0 10px #00FFCC;
    }
    to {
        box-shadow: 0 0 20px #00FFCC;
    }
}
/* End Exotic Aura Styling */

/* Crafting */
#gloves-crafting, #potion-crafting {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.crafting-item {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.crafting-item:hover {
    transform: translateY(-3px);
}

.crafting-item .name {
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.crafting-item .description {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 8px;
    line-height: 1.4;
}

.crafting-item .requirements {
    font-size: 12px;
    margin: 10px 0;
}

.crafting-item .req-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 13px;
}

.req-item.missing {
    color: #e74c3c;
    border-left: 3px solid #e74c3c;
}

.req-item.available {
    color: #2ecc71;
    border-left: 3px solid #2ecc71;
}

.current-count {
    font-weight: bold;
}

/* Quests & Achievements */
#quest-list, #achievement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-item, .achievement-item {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-reward, .achievement-reward {
    font-size: 14px;
    color: #ffcc00;
}

.quest-progress, .achievement-progress {
    margin: 5px 0;
    font-size: 14px;
}

.progress-bar {
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3a9dee;
    width: 0%;
    transition: width 0.3s;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: invertFlash 3s forwards;
}

@keyframes invertFlash {
    0% { filter: none; opacity: 0; }
    33% { filter: invert(100%) hue-rotate(180deg); opacity: 0.5; }
    66% { filter: invert(0); background-color: white; opacity: 1; }
    100% { filter: none; background-color: transparent; opacity: 0; }
}

/* New Halloween UI elements */
.halloween-section {
    background-color: #331a33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #553355;
}

#halloween-pack-exchange .requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#halloween-pack-exchange .req-item {
    background-color: #442244;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Universal Biome Styling */
.biome-universal {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0066cc 100%);
    color: #e0f0ff;
}

/* Heist mobile pad */
.heist-pad {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
}
.heist-pad:active {
    background-color: #555;
}

/* Inventory Aura Separation Styling */
.aura-inventory-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #555;
}

.aura-inventory-section h4 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-item.unobtainable-aura {
    border: 2px solid #e74c3c;
    opacity: 0.7;
}

.inventory-item.legacy-aura {
    border: 2px dashed #ff00ff;
    opacity: 0.5;
}

/* New Aura Row Styling */
#aura-inventory .inventory-item,
.aura-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 10px;
    position: relative;
}

#aura-inventory .inventory-item .count {
    position: relative; /* Inline count badge */
    order: 1;
    margin-right: 10px;
    top: auto;
    right: auto;
}

#aura-inventory .inventory-item .aura-name, .aura-list-item .aura-name {
    flex-grow: 1;
    order: 2;
    min-width: 120px;
}

#aura-inventory .inventory-item .aura-rarity, .aura-list-item .aura-rarity {
    order: 3;
    min-width: 120px;
    text-align: right;
}

#aura-inventory .inventory-item .aura-biome, .aura-list-item .aura-biome {
    order: 4;
    min-width: 150px;
    text-align: right;
    color: #ccc;
    font-size: 12px;
}

#aura-inventory .inventory-item .replay-cutscene-button {
    order: 5;
    flex-shrink: 0;
    width: auto;
    margin-left: 10px;
}

/* Aura List */
#all-auras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-list-item {
    background-color: #333;
    /* Already modified above */
}

.aura-list-item.undiscovered {
    background-color: #444;
    color: #777;
}

.aura-list-item .aura-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.aura-list-item .aura-rarity {
    font-size: 12px;
}

.replay-cutscene-button {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6d8c;
}

.replay-cutscene-button:hover {
    background-color: #5d8caf;
}

/* Achievement claim button */
.claim-achievement-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.claim-achievement-button:hover {
    background-color: #ffdd55;
}

.claim-achievement-button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Input styling */
input[type="text"], input[type="number"], select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Update Log */
#update-log {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.update-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.update-entry h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.update-entry ul {
    margin-left: 20px;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3a9dee;
}

.notification.rare {
    border-left: 4px solid #ffcc00;
    background-color: #663c00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Active Potions UI improvements */
.active-potion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

body.halloween-theme .active-potion {
    background-color: #442244;
}

.active-potion .potion-name {
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
    min-width: 80px;
}

.active-potion .potion-effect,
.active-potion .potion-time {
    margin: 0 5px;
    min-width: 100px; 
    text-align: right;
}

.active-potion .toggle-buff {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 70px; /* Ensure button is wide enough */
    transition: none !important;
}

.active-potion .toggle-buff:hover {
    transition: none !important;
}

/* Global Rolls List Styling */
#global-rolls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Ensure space for scrollbar if needed */
}

.global-roll-entry {
    background-color: #3e3e3e;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.global-roll-entry:hover {
    background-color: #4a4a4a;
}

.global-roll-entry .player-info {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
}

.global-roll-entry .aura-details {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}
/* End Global Rolls List Styling */

/* Biome specific styling */
.biome-normal {
    background-color: #2a2a2a;
}

.biome-snowy {
    background-color: #e0e8ff;
    color: #333;
}

.biome-windy {
    background-color: #b8c2cb;
    color: #333;
}

.biome-rainy {
    background-color: #4a6d8c;
}

.biome-starfall {
    background-color: #1a1a37;
}

.biome-corruption {
    background-color: #4b0082;
}

.biome-hell {
    background-color: #8b0000;
}

.biome-sandstorm {
    background-color: #c2b280;
    color: #333;
}

.biome-null {
    background-color: #000;
}

.biome-dreamspace {
    background-color: #8a2be2;
    background-image: linear-gradient(45deg, #8a2be2, #4b0082);
}

.biome-glitch {
    background-color: #111;
    animation: glitch 0.3s infinite;
}

.biome-candy {
    background-color: #ff69b4;
    background-image: linear-gradient(45deg, #ff69b4, #ff8eb8);
}

.biome-bloom {
    background-color: #77dd77;
    background-image: linear-gradient(45deg, #77dd77, #afffaf);
    color: #333;
}

.biome-easter {
    background-color: #ffb6c1;
    background-image: linear-gradient(45deg, #ffb6c1, #fff0f5);
    color: #333;
}

.biome-unknown {
    background-color: #0a0a0a;
    background-image: linear-gradient(45deg, #0a0a0a, #1a0a1a);
}

/* V2.1.0 Haunted Biome */
.biome-haunted {
    background-color: #110011;
    background-image: radial-gradient(circle at center, #330033 0%, #110011 80%);
    color: #f0f0f0;
    filter: brightness(0.9);
}

@keyframes glitch {
    0% {
        opacity: 1;
    }
    7% {
        opacity: 0.75;
    }
    10% {
        opacity: 1;
    }
    27% {
        opacity: 1;
    }
    30% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    52% {
        opacity: 1;
    }
    55% {
        opacity: 0.8;
    }
    60% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 1;
    }
}

.common { color: #aaa; }
.uncommon { color: #1eff00; }
.rare { color: #0070dd; }
.epic { color: #a335ee; }
.legendary { color: #ff8000; }
.mythic { color: #e268a8; }
.godly { color: #ff0000; }
.celestial { color: #00ffff; }
.void { color: #9932cc; }

.easter-visible {
    display: none;
}

body.easter-event .easter-visible {
    display: block;
}

#admin-panel {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#admin-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 5px;
}

#admin-login input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.admin-section {
    background-color: #34495e;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.admin-section h4 {
    color: #3498db;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 5px;
}

#admin-game-stats p {
    margin: 5px 0;
    font-size: 14px;
}

#admin-controls button {
    margin: 5px;
    background-color: #3498db;
}

#admin-controls button:hover {
    background-color: #2980b9;
}

.setting-group {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.settings-info {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-info p {
    margin-bottom: 10px;
}

/* Aura 100M+ visual effect container */
#visual-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.inverted-flash {
    animation: