/* ============================================================
   GLOBAL + TYPOGRAPHY
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    background-color: #0A0A0C;
    color: #fff;
    color-scheme: dark;
    font-family: "Cinzel", serif;
    letter-spacing: 0.4px;
}

body, table, td, th, p, div, span, input, button, select, textarea {
    font-family: "Cinzel", serif;
    letter-spacing: 0.4px;
}

/* UI labels */
.ui-text, .bar-title, .gothic-statbox, .gothic-infobar, h1, h2, h3 {
    font-family: "Cinzel", serif;
    letter-spacing: 0.6px;
}

/* Body text */
body, p, td, th, .content-text {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.3;
}

/* Links */
a:link, a:visited {

}

/* Images */
.img2 img {
    opacity: 0.4;
    filter: brightness(0.85) saturate(0.8);
    transition: 0.1s ease-in-out;
}
.img2 img:hover {
    opacity: 1;
    filter: brightness(0.85) saturate(1);
}

/* ============================================================
   GENERAL LAYOUT + BACKGROUNDS
   ============================================================ */
.bgtop,
.bgtopleftrage,
.bgtopragerage,
.bgtoplightlight {
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bgtop            { background-image: url('images/bgtop88.png'); }
.bgtopleftrage    { background-image: url('images/leftragerightlight.png'); }
.bgtopragerage    { background-image: url('images/ragerage.png'); }
.bgtoplightlight  { background-image: url('images/lightlight2.png'); }



.equippedleft {
   background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

    border: 1px solid rgba(200,170,110,0.37);
    border-radius: 25px 0 0 25px;
    text-align: center;
    font-style: italic;
    font-size: 14px;
}

/* ============================================================
   MAIN CONTENT CONTAINER
   ============================================================ */

.barheading {
    border-radius: 50px;
    color: #000;
    box-shadow: inset 0 0 3px #0A0A0C;
}

.darkbg { background: rgba(0,0,0,0.2); }

.endpage {
    width: 100%;
    height: 50px;
    background-color: #1A1A1A;
    color: #222831;
}

/* ============================================================
   GOTHIC STATBOXES
   ============================================================ */
.dark-bar {
    width: 150px;
    display: inline-block;
    background: rgba(10,10,12,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: inset 0 0 5px #0A0A0C;
}

.gothic-statbox {
    position: relative;
    border-radius: 6px;
    padding: 8px 10px;
}

.gothic-statbox i {
    color: #d9c48a;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #E1E1E1;
}

.gothic-statbox b {
    color: #E1E1E1;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #0A0A0C;
}

/* ============================================================
   PANELS (TOP / CONTENT / ORB THEMES)
   ============================================================ */
.barpanel,
.barpanel222,
.barpanelfront,
.barpanelfront222,
.barpanel9,
.otherbox2,
.otherboxlogin,
.barpanel5,
.barpanel37,
.barpanel4,
.barpanel3,
.barpanel10 {
    width: 100%;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 0 0 1px #0A0A0C;
    color: #fff;
}

.bannerlog, .banner, .bannero { margin-top: 12px; }
.bannerl { margin-top: 5px; }
.bannerr { margin-top: 7px; }

/* Base panel */
.barpanel {
    border-radius: 10px;
    background-image: url('bgtop88.png');
}

/* Themed panels */
.otherbarpanel,
.ragebarpanel,
.lightbarpanel {
    border-radius: 10px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.otherbarpanel { background-image: url('images/leftragerightlight.png'); }
.ragebarpanel  { background-image: url('images/ragerage.png'); }
.lightbarpanel { background-image: url('images/lightlight.png'); }

/* Top-only variants */
.barpanel2,
.barpanel2leftrage,
.barpanel2ragerage,
.barpanel2lightlight {
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px 10px 0 0;
 box-shadow: inset 5px 5px 5px #0A0A0C,
 inset -5px -5px 5px #0A0A0C;
    
}
.barpanel2            { background-image: url('images/bgtop88.png'); }
.barpanel2leftrage    { background-image: url('images/leftragerightlight.png'); }
.barpanel2ragerage    { background-image: url('images/ragerage.png'); }
.barpanel2lightlight  { background-image: url('images/lightlight2.png'); }

/* Variants */
.barpanel3 {
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    color: #000;
}
.barpanel7 {
    border-radius: 10px;
    width: 100%;
margin: 0 auto;
    /* bright interior based on #E1E1E1 */
   background:

    /* light diagonal scratches */
    repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.25) 0px,
        rgba(255,255,255,0.25) 2px,
        rgba(180,180,180,0.25) 2px,
        rgba(180,180,180,0.25) 4px
    ),

    /* soft pale glow from above */
    radial-gradient(
        circle at 50% 0%,
        rgba(255,255,255,0.55),
        rgba(225,225,225,0.65) 60%,
        rgba(200,200,200,0.75) 100%
    ),

    /* base light stone */
    linear-gradient(
        180deg,
        rgba(225,225,225,0.40),
        rgba(207,207,207,0.40)
    );

    /* dark carved edge to blend into your darker sanctuary background */
    box-shadow:
        inset 0 0 18px rgba(10,10,12,0.75),
        inset 0 0 6px rgba(10,10,12,0.55);

    /* faint highlight border for definition */


    color: #000;
}










.barpanel9 {
    border-radius: 10px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 0 50px #0A0A0C;
    color: #000;
}

.otherbox2,
.otherboxlogin {
    width: 100%;
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 0 5px #0A0A0C;
    color: #000;
}

.otherboxlogin { background: rgba(255,255,255,0.7); }

.barpanel5 {
    width: 100%;
    background: rgba(219,255,255,0.1);
    box-shadow: inset 0 0 5px #fff;
    color: #000;
}

.barpanel37 {
   background:
    repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 2px,
        rgba(10,10,12,0.03) 2px,
        rgba(10,10,12,0.03) 4px
    ),
    linear-gradient(
        135deg,
        rgba(255,255,255,0.06),
        rgba(10,10,12,0.05)
    ),
    radial-gradient(
        circle at 50% 30%,
        rgba(26,26,26,0.55) 0%,
        rgba(10,10,10,0.55) 75%
    );

    border-radius: 10px 10px 0 0;
    color: #e8d7a8;
    border: 1px solid rgba(200,170,110,0.2);
    border-bottom: none;
}

.barpanel4 {
    width: 100%;
    background: rgba(0,0,0,0.2);
    color: #000;
}

.barpanel10 {
    border-radius: 10px;
    width: 100%;
    background: rgba(0,0,0,0.1);
    color: #000;
}

/* ============================================================
   ORB BOXES
   ============================================================ */
.orblevelbg {
    box-shadow: inset 0 0 3px #0A0A0C;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0px, rgba(255,255,255,0.18) 2px, rgba(225,225,225,0.18) 2px, rgba(225,225,225,0.18) 4px),
        linear-gradient(135deg, rgba(225,225,225,0.25), rgba(225,225,225,0.05)),
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.85) 0%, rgba(225,225,225,0.55) 70%);
    color: #000;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-shadow: 0 0 1px #000;
}

.orbbox,
.orbboxblue {
    box-shadow:
        inset 25px 10px 10px rgba(10,10,12,1),
        inset -25px -10px 10px rgba(10,10,12,1);
    background-repeat: no-repeat;
    background-position: center;
}

.orbbox {
    background-image:
        linear-gradient(rgba(60,45,30,0.35), rgba(60,45,30,0.35)),
        url('images/redcloud.png');
}

.orbboxblue {
    background-image:
        linear-gradient(rgba(60,45,30,0.35), rgba(60,45,30,0.35)),
        url('images/bluecloud.png');
}


.otherbox {
 box-shadow: inset 5px 2px 20px #0A0A0C,
 inset -5px -2px 20px #0A0A0C;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.10) 0px,
            rgba(255,255,255,0.10) 2px,
            rgba(225,225,225,0.10) 2px,
            rgba(225,225,225,0.10) 4px
        ),
        linear-gradient(
            135deg,
            rgba(225,225,225,0.15),
            rgba(225,225,225,0)
        ),
        radial-gradient(
            circle at 50% 30%,
            rgb(255,255,255) 0%,
            rgb(225,225,225) 70%
        );
    /* Centering magic */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Optional but recommended for divs */
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;

}
.otherboxdark {
 box-shadow: inset 5px 2px 20px #0A0A0C,
 inset -5px -2px 20px #0A0A0C;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.10) 0px,
            rgba(255,255,255,0.10) 2px,
            rgba(225,225,225,0.10) 2px,
            rgba(225,225,225,0.10) 4px
        ),
        linear-gradient(
            135deg,
            rgba(225,225,225,0.15),
            rgba(225,225,225,0)
        ),
        radial-gradient(
            circle at 50% 30%,
            rgb(255,255,255) 0%,
            rgb(225,225,225) 70%
        );
    /* Centering magic */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Optional but recommended for divs */
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;

}



.banner22 { border: 5px solid #fff; }


/* ============================================================
   STAT BAR CONTAINER
   ============================================================ */
#bars-container {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    gap: 27px;
}

.bar-block {
    text-align: center;
    font-family: "Cinzel", serif;
    color: #000;
}

.bar-title,
.bar-value {
    color: #000;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #0A0A0C;
}
.bar-title { font-size: 13px; letter-spacing: 1px; margin-bottom: 4px; }
.bar-value { font-size: 12px; margin-top: 3px; }

/* Width hierarchy */
.gothic-light   { width: 17%; }
.gothic-rage    { width: 17%; }
.gothic-energy  { width: 18%; }
.gothic-hunger  { width: 15%; }
.gothic-thirst  { width: 15%; }
.gothic-health  { width: 18%; }

/* ============================================================
   UNIVERSAL BAR FRAME (CARVED STONE)
   ============================================================ */
.gothic-bar {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    box-shadow: 0 1px 1px rgba(0,0,0,1);
    background: #1a1a1a;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   BAR HEIGHTS (SLIM)
   ============================================================ */
.gothic-hunger .gothic-bar,
.gothic-energy .gothic-bar,
.gothic-thirst .gothic-bar,
.gothic-health .gothic-bar
{
    height: 8px;
    padding: 1px;
}

.gothic-light .gothic-bar,
.gothic-rage .gothic-bar {
    height: 9px;
    padding: 1px;
}

/* ============================================================
   BAR FILL
   ============================================================ */
.gothic-bar-fill {
    height: 100%;
    width: 0;
    transition: width .3s ease-out;
    box-shadow: inset 0 0 4px #000;
}

/* ============================================================
   BAR COLORS
   ============================================================ */

/* ENERGY — enchanted green */
.gothic-energy .gothic-bar-fill {
    background: linear-gradient(90deg, #5fa85f, #2f6a2f);
    animation: energyPulse 2.2s ease-in-out infinite;
}

.gothic-health .gothic-bar-fill {
    background: linear-gradient(90deg, #5fa85f, #2f6a2f);
    animation: energyPulse 2.2s ease-in-out infinite;
}

/* HUNGER — muted brown */
.gothic-hunger .gothic-bar-fill {
    background: linear-gradient(90deg, rgba(168,140,90,0.55), rgba(107,86,54,0.55));
}

/* THIRST — muted blue */
.gothic-thirst .gothic-bar-fill {
    background: linear-gradient(90deg, rgba(111,156,207,0.55), rgba(63,95,135,0.55));
}

/* LIGHT — sacred cyan/white */
.gothic-light .gothic-bar-fill {
    background: linear-gradient(90deg, #87D9EB, #FFFFFF);
}

/* RAGE — deep blood red */
.gothic-rage .gothic-bar-fill {
    background: #701F2A;
}

/* ============================================================
   ENERGY PULSE ANIMATION
   ============================================================ */
@keyframes energyPulse {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.35); }
    100% { filter: brightness(1); }
}

/* ============================================================
   WRAPPER SPACING
   ============================================================ */
.gothic-hunger,
.gothic-thirst,
.gothic-energy,
.gothic-light,
.gothic-rage,
.gothic-health
{
    display: block;
    text-align: center;
    margin: 3px 0;
}

/* ============================================================
   ORB HOVER SWAP
   ============================================================ */
.orb-pulse {
    position: relative;
    display: inline-block;
}
@keyframes orbShimmer {
    0%   { filter: brightness(1) drop-shadow(0 0 4px rgba(255,255,255,0.15)); }
    40%  { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255,255,255,0.25)); }
    60%  { filter: brightness(1.18) drop-shadow(0 0 10px rgba(255,255,255,0.35)); }
    100% { filter: brightness(1) drop-shadow(0 0 4px rgba(255,255,255,0.15)); }
}
.orb-pulse .orb-frame {
    display: block;
    max-width: 100%;
    height: auto;
    animation: orbShimmer 3.8s ease-in-out infinite;
    transform-origin: center center;
}


/* Apply to any orb */


.orb-pulse .orb-frame-alt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .1s ease-in-out;
}

.orb-pulse:hover .orb-frame-alt {
    opacity: 1;
}

/* ============================================================
   OBSIDIAN RELIC HEADER — TEXTURED + COMPACT
   ============================================================ */
.relic-header {
    width: 100%;
    box-sizing: border-box;
    margin: 6px auto;
    padding: 6px 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

    border: 1px solid rgba(200,170,110,0.37);
    border-radius: 10px;

    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.95),
        inset 0 0 12px rgba(255,215,160,0.07),
        0 0 12px rgba(0,0,0,0.8);

    text-shadow: 0 0 3px #000;
    font-family: "Cinzel", serif;
}

/* Center block */
.relic-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* ============================================================
   LEFT SIDE — LEVEL + EXP
   ============================================================ */
.relic-glyph {
    color: #e8d7a8;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 0 3px #FFF;
}

.relic-glyph-small {
    color: #c9b37f;
    font-size: 10px;
    margin-top: -2px;
}
.small {
    font-size: 8px;
}

/* ============================================================
   CENTER — USERNAME + TITLES
   ============================================================ */
.relic-name {
    color: #f5f2e8;
    font-size: 19px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 3px #FFF;
}

.relic-name2 {
    color: #f5f2e8;
    font-size: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 3px #FFF;
}

.relic-subtitle {
    color: #c9b37f;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 0 2px #FFF;
}

/* ============================================================
   RIGHT SIDE — MAIL / EVENTS
   ============================================================ */
.relic-rune {
    color: #e8d7a8;
    font-size: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #FFF;
}

.relic-left,
.relic-right,
.relic-mid-left,
.relic-mid-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Middle blocks expand */
.relic-mid-left,
.relic-mid-right {
    flex: 1;
    min-width: 90px;
    padding: 0 6px;
}

.relic-mid-left { margin-left: -80px; }
.relic-mid-right { margin-right: -45px; }
.relic-right { margin-right: 15px; }

.relic-mini {
    color: #e8d7a8;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px #FFF;
    margin: 1px 0;
}

/* ============================================================
   HOVER EFFECTS
   ============================================================ */
.titlehover {
    transition: transform 0.35s ease, filter 0.35s ease;
    transform-origin: center;
}
.titlehover:hover {
    transform: scale(1.08);
    filter: brightness(2);
}

/* ============================================================
   EXP BAR
   ============================================================ */
.exp-bar-container {
    width: 140px;
    height: 10px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
}

.exp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #CD9015, #CD9015);
    box-shadow: inset 0 0 4px #000;
    transition: width 0.3s ease;
    position: relative;
    margin-left: 0;
    float: left;
}

.exp-bar-text-left {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #e6e6e6;
    text-shadow: 0 0 3px #000;
    pointer-events: none;
    text-align: left;
}

/* ============================================================
   GAME WRAP — HOLDS SIDEBARS + MAIN 933px CONTAINER
   ============================================================ */
.game-wrap {
    position: relative;
    width: 1133px; /* 100px left + 933px main + 100px right */
    margin: 0 auto;
    display: block;
    z-index: 1001;
}

/* ============================================================
   SIDEBARS
   ============================================================ */
.sidebar-left,
.sidebar-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
}
.sidebar-left { left: 0; }
.sidebar-right { right: 0; }

/* ============================================================
   SIDEBAR CONTENT (GOTHIC PLACEHOLDERS)
   ============================================================ */
.sidebar-inner {
    padding: 15px 8px;
    text-align: center;
    color: #d9c48a;
    font-size: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 4px #000;
}

.sidebar-divider {
    width: 70%;
    height: 1px;
    margin: 10px auto;
    background: rgba(200,170,110,0.35);
    box-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.sidebar-icon {
    width: 38px;
    height: 38px;
    margin: 10px auto;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    box-shadow:
        inset 0 0 8px rgba(0,0,0,0.9),
        0 0 4px rgba(200,170,110,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ============================================================
   CHAT POPUP (BOTTOM BAR OVERLAY)
   ============================================================ */
#chat-popup {
    position: fixed;
    bottom: 36px;
    right: 20px;
    width: 280px;
    height: 330px;
    background: rgba(15,15,15,0.92);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.6);
    display: none;
    z-index: 2001;
    backdrop-filter: blur(2px);
}

#chat-popup-messages {
    height: 270px;
    overflow-y: auto;
    padding: 8px;
    font-size: 12px;
    color: #e8e0c8;
    font-family: "Georgia", serif;
}
#chat-popup-messages div { margin-bottom: 6px; }
#chat-popup-messages b { color: #f0dca8; }
#chat-popup-messages span {
    color: #8a7f6a;
    font-size: 10px;
}

#chat-popup-input {
    width: 94%;
    margin: 6px;
    padding: 4px;
    background: rgba(30,30,30,0.9);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 4px;
    color: #e8e0c8;
    font-size: 12px;
}
#chat-popup-input:focus {
    outline: none;
    border-color: rgba(255,220,150,0.6);
    box-shadow: 0 0 6px rgba(200,170,110,0.4);
}

/* ============================================================
   BOTTOM BAR (GLOBAL FOOTER)
   ============================================================ */
#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(to top, rgba(10,10,10,0.95), rgba(25,25,25,0.85));
    border-top: 1px solid rgba(200,170,110,0.25);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    color: #d9c48a;
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
    z-index: 3000;
}

.bottom-left,
.bottom-right {
    flex: 0 0 auto;
    width: 50px;
    display: flex;
    white-space: nowrap;
    font-size: 12px;
}
.bottom-left { padding-left: 12px; }
.bottom-right { padding-right: 12px; cursor: pointer; font-size: 13px; }

.bottom-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
}
.bottom-center a {
    color: #d9c48a;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

/* ============================================================
   SETTINGS MENU
   ============================================================ */
#settings-menu {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 160px;
    background: rgba(15,15,15,0.92);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    z-index: 3001;
    backdrop-filter: blur(2px);
}

#settings-menu a {
    padding: 10px;
    color: #d9c48a;
    text-decoration: none;
    font-family: "Cinzel", serif;
    font-size: 13px;
    border-bottom: 1px solid rgba(200,170,110,0.15);
}
#settings-menu a:last-child { border-bottom: none; }
#settings-menu a:hover {
    background: rgba(40,40,40,0.6);
    color: #f0dca8;
}

/* Shared toggle button style */
#settings-toggle,
#chat-toggle,
#staff-toggle {
    font-size: 18px;
    color: #d9c48a;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#settings-toggle,
#staff-toggle { margin-left: 12px; position: relative; top: 2px; }

#settings-toggle:hover,
#chat-toggle:hover,
#staff-toggle:hover {
    opacity: 1;
    color: #f0dca8;
    transform: translateY(-1px);
}

/* Mod button */
.mod-btn {
    cursor: pointer;
    color: #d9c48a;
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.7;
    transition: opacity 0.15s ease, color 0.15s ease;
}
.mod-btn:hover {
    opacity: 1;
    color: #f0dca8;
}

/* Chat fade-out animation */
.chat-line { transition: opacity 0.25s ease; }
.chat-line.removing { opacity: 0; }

/* Spacers */
.spacer-3px,
.spacer-end {
    width: 100%;
    display: block;
    background: transparent;
}
.spacer-3px { height: 8px; }
.spacer-end { height: 30px; }

/* ============================================================
   PROFILE FRAME (two sizes used in different contexts)
   ============================================================ */
.profile-frame {
    border-radius: 6px;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(255,255,255,0.25),
        rgba(180,180,200,0.15),
        rgba(60,60,80,0.25)
    );
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.35),
        inset 0 0 25px rgba(120,120,160,0.25),
        0 0 8px rgba(0,0,0,0.6);
}

.profile-frame.small { width: 80px; height: 80px; }
.profile-frame.wide  { width: 150px; height: 80px; }

/* ============================================================
   INVENTORY (STANDARD + ULTRA-SLIM)
   ============================================================ */
/* ============================================
   BASE INVENTORY ROW — SMALLER + TIGHTER
============================================ */

.inv-row {
    width: 92%;
    margin: 2px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
    font-size: 10px;          /* smaller */
    color: #dcdcdc;
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 2px 5px;         /* tighter */
}

/* Standard mode overrides */
.inv-row.standard {
    margin: 3px auto;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;          /* slightly larger than base */
}

/* ============================================
   LEFT SIDE CONTENT
============================================ */

.inv-left {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;                 /* tighter */
    align-items: center;
}
.inv-left.standard { gap: 5px; }

/* Item name */
.inv-name {
    font-weight: 500;
    color: #e6e6e6;
    cursor: help;
    font-size: 9px;           /* smaller */
}
.inv-name.standard {
    font-weight: 600;
    font-size: 10px;
}

/* ============================================
   RARITY DOTS
============================================ */

.inv-dot {
    width: 5px;               /* smaller */
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}
.inv-dot.standard {
    width: 7px;
    height: 7px;
}

.rarity-0 { background:#777; }
.rarity-1 { background:#4a7bd1; }
.rarity-2 { background:#8a4ad1; }
.rarity-3 { background:#d1b04a; }
.rarity-empty { background:#444; }

/* ============================================
   STAT CHIPS
============================================ */

.inv-chip {
    font-size: 9px;           /* smaller */
    color: #aaa;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 1px 3px;
}
.inv-chip.standard {
    font-size: 10px;
    background: #181818;
    border: 1px solid #333;
    padding: 1px 4px;
}

/* ============================================
   QUANTITY BADGE
============================================ */

.inv-qty {
    background: #222;
    border: 1px solid #444;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 9px;           /* smaller */
    color: #ccc;
}
.inv-qty.standard {
    background: #333;
    border: 1px solid #555;
    padding: 1px 4px;
    font-size: 10px;
}

/* ============================================
   ACTION BUTTONS
============================================ */

.inv-actions { white-space: nowrap; }

.inv-btn {
    padding: 1px 4px;         /* tighter */
    margin-left: 3px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 9px;           /* smaller */
}
.inv-btn.standard {
    padding: 2px 5px;
    margin-left: 4px;
    background: #222;
    border: 1px solid #444;
    font-size: 10px;
}

.inv-btn:hover { background: #333; }
.inv-btn.standard:hover { background: #444; }

/* ============================================
   CATEGORY HEADERS
============================================ */

.inv-header {
    color:#c9b37f;
    margin-left:40px;
    margin-top:15px;
    font-size: 12px;          /* smaller */
    font-weight: 500;
}




/* === CHAT POPUP OVERRIDES === */
#chat-popup {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 99999;
}
#chat-popup-messages {
    position: relative;
    z-index: 99999;
}

/* === BUFF RARITY SHADOWS === */
.buff-shadow-1 { box-shadow: inset 0 0 4px rgba(77,163,255,0.7); }
.buff-shadow-2 { box-shadow: inset 0 0 4px rgba(197,107,255,0.7); }
.buff-shadow-3 { box-shadow: inset 0 0 4px rgba(212,175,55,0.7); }

.buff-plus {
    color: #90EE90;
    font-weight: bold;
    font-size: 20px;
    line-height: 38px;
    text-shadow: 0 0 6px #000;
}

/* === RARITY ICON SQUARES === */
.light-square, .rage-square {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 2px;
}
.light-square { background: #4da3ff; }
.rage-square { background: #ff4d4d; }

.rarity-label {
    margin-left: 6px;
    font-size: 0.9em;
    font-weight: bold;
}

.rarity-rare { color: #4da3ff; }
.rarity-epic { color: #c56bff; }
.rarity-ancient { color: #d4af37; }

.level-tag {
    color: silver;
    margin-right: 6px;
    font-weight: bold;
    font-size: 7px;
}

/* === LIGHT / RAGE ORBS === */
.light-orb, .rage-orb {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}
.light-orb { background-image: url('images/lightorb.png'); }
.rage-orb  { background-image: url('images/rageorb38.png'); }

/* === CENTER SANCTUARY BARS === */
.sanctuary-wrapper,
.page-wrapperindex {
    width: 933px;
    margin: 0 auto;
}

/* === TOOLTIP === */
.tooltip { position: relative; cursor: help; }

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    max-width: 240px;
    white-space: pre-line;
    background: rgba(15,15,15,0.95);
    color: #e8d7a8;
    padding: 6px 10px;
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
    z-index: 999999;
    box-shadow: 0 0 8px rgba(0,0,0,0.8), inset 0 0 6px rgba(0,0,0,0.6);
    pointer-events: none;
}

.tooltip:hover::before {
    content: "";
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent rgba(15,15,15,0.95) transparent transparent;
}

/* === HEADER WRAPPER === */
.header-wrapper {
    width: 100%;
    padding: 0;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

    box-shadow:
        inset 0 12px 18px rgba(10,10,12,1),
        inset 0 -12px 18px rgba(10,10,12,1),
        inset 0 0 40px rgba(10,10,12,1);

    border: none;
}


/* === INNER HEADER TABLE === */
.header-wrapper table[width="1133px"] {
    margin: 0 auto;
}

/* === DARK BAR TEXT === */
.dark-bar i { opacity: 0.85; }

/* === PROFILE FRAME OVERRIDE === */
.profile-frame {
    width: 150px;
    height: 80px;
    border-radius: 6px;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(255,255,255,0.25),
        rgba(180,180,200,0.15),
        rgba(60,60,80,0.25)
    );
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.35),
        inset 0 0 25px rgba(120,120,160,0.25),
        0 0 10px rgba(0,0,0,0.7);
}

/* === HEADER SPACING === */
.header-wrapper td { padding: 0 6px; }

.header-center {
    padding: 4px 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}


/* ============================================================
   PAGE TITLE BAR — SECONDARY, SLIMMER, LESS ORNATE
   ============================================================ */
.page-title-bar {
    width: 100%;
    padding: 6px 20px;
    margin: 1px auto 3px auto;

    box-sizing: border-box; /* ← THIS FIXES THE OVERHANG */



    border-radius: 6px;

    box-shadow:
        inset 0 0 10px rgba(0,0,0,0.6),
        0 0 6px rgba(0,0,0,0.4);

    display: flex;
    justify-content: space-between;
    align-items: center;
}




/* Left side: Title + Subtitle inline */
.page-title-left {
    display: flex;
    align-items: baseline;
    gap: 8px; /* spacing between title and subtitle */
}

.page-title-main {
    font-family: "Cinzel", serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #E1E1E1;
    text-shadow: 0 0 2px #e8d7a8;
}

.page-title-sub {
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #E1E1E1;
    opacity: 0.85;
    text-shadow: 0 0 1px #e8d7a8;
}

.page-sanctuary-btn {
      color: #e8d7a8;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px #E1E1E1;
    margin: 1px 0;

    display: flex;
    align-items: center;
    justify-content: center;
}
.page-title-main2 {
    font-family: "Cinzel", serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #e8d7a8;
    text-shadow: 0 0 2px #E1E1E1;
}

.page-title-sub2 {
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #e8d7a8;
    opacity: 0.85;
    text-shadow: 0 0 1px #E1E1E1;
}

.potion-table {
    border-collapse: separate;
    border-spacing: 6px;   /* visible gap */
    table-layout: fixed;
    margin: auto;
}

.potion-table td {
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.potionbox {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    box-shadow: inset 0 0 5px #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.potion-inner {
    width: 90%;
    height: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 14px 14px 10px 10px;
    background: rgba(225,225,225,0.20);
    box-shadow:
        inset 0 0 6px rgba(255,255,255,0.08),
        inset 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.equip-flex {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    
}

.equip-col {
    width: 75%;
    
}

.potion-col {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top:14px;
}

.potion-table {
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.potion-table td {
    padding: 3px;
    text-align: center;
}

.potionbox {
    width: 50px;
    height: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ============================================
   EQUIPPED ITEMS — SMALLER + TIGHTER
============================================ */

.equip-flex {
    width: 97%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
}

.equip-col {
    width: 70%;
    padding: 1px 0;
}

.inventory-col {
    width: 30%;
    padding: 1px 0;
}
.equip-col2 {
    width: 50%;
    padding: 1px 0;
}
.potion-col2 {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top:14px;
    margin-right:25px;
}

.equip-flex table {
    border-collapse: collapse;
    margin: 0 0 2px 0;
    padding: 0;
}

.equip-flex table tr {
    height: 18px; /* slightly smaller */
}

/* LEFT LABEL (Weapon, Armor, etc.) */
.equippedleft {
    background-color: #575757;
    box-shadow: inset 0 0 5px #E1E1E1;
    border-radius: 20px 0 0 20px;
    text-align: center;
    font-style: italic;
    font-size: 10px;      /* smaller */
    padding: 2px 4px;     /* tighter */
    line-height: 1.0;
}

/* RIGHT SIDE (item name, rarity, unequip button) */
.equipped {


    padding: 2px 4px;     /* tighter */
    line-height: 1.0;
    font-size: 10px;      /* smaller */
    color: #ddd;
}

/* Buttons inside equipped section */
.equipped .inv-btn {
    font-size: 9px;       /* smaller */
    padding: 1px 4px;
    margin-left: 4px;
}



.otherbox .equipped .inv-name {
    color: #dcdcdc !important;
}

/* ============================================================
   EQUIPPED SECTION — READABILITY + GLOW FIXES
   ============================================================ */

.equipped {
    color: #e0e0e0;
    font-size: 11px;
    font-weight: 600;
    position: relative;
}

/* Dark readable item names */
.equipped .inv-name,
.potion-name {
    color: #dcdcdc !important;
    font-weight: 600;
    font-size:12px;
}

/* Rarity glow fix */
.equipped.rarity-rare,
.potion-inner.rarity-rare {
    box-shadow: inset 0 0 6px rgba(77,163,255,0.55);
}
.equipped.rarity-epic,
.potion-inner.rarity-epic {
    box-shadow: inset 0 0 6px rgba(197,107,255,0.55);
}
.equipped.rarity-ancient,
.potion-inner.rarity-ancient {
    box-shadow: inset 0 0 6px rgba(212,175,55,0.55);
}

/* Hover tooltip fix */
.equipped:hover .tooltip::after,
.equipped:hover .tooltip::before {
    opacity: 0.7;
}

/* Push UNEQUIP to far right */
.unequip-right {
    float: right;
    margin-left: auto;
}


/* Light-leaning item: faint icy blue outer shadow */
.equipped {
    box-shadow: inset 0 0 2px #000;
}
/* ============================================================
   RESTORE LIGHT BACKGROUND FOR EQUIPPED ROWS
   ============================================================ */


.otherbox .equipped.rarity-rare,
.otherbox .equipped.rarity-epic,
.otherbox .equipped.rarity-ancient
{
   background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);
}

.otherbox .equipped.rarity-common
{
background:
    repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.06) 0px,
        rgba(255,255,255,0.06) 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
    ),
    linear-gradient(
        135deg,
        rgba(255,255,255,0.12),
        rgba(0,0,0,0.05)
    ),
    radial-gradient(
        circle at 50% 30%,
        #2a2a2a 0%,
        #1c1c1c 75%
    );

}

/* ============================================================
   EQUIPPED ITEM NAME + LEVEL TAG COLOUR FIX
   ============================================================ */

/* Item name: deep near-black */
.equipped .inv-name,
.potion-inner .potion-name {
    color: #0A0A0C !important;
    font-weight: 600;
}

/* Level tag: darker grey */
.equipped .level-tag,
.potion-inner .level-tag {
    color: lightblue !important;
    font-weight: bold;
    font-size: 6px;
}
/* ============================================================
   FORCE ITEM NAME + LEVEL TAG COLOURS IN BOTH INVENTORY + INDEX
   ============================================================ */

/* Item name: deep near-black */
.otherbox .equipped .inv-name {
    color: #0A0A0C !important;
    font-weight: 550;
}


/* Rare */
.equipped.rarity-rare {
    box-shadow:
        inset 0 0 12px rgba(90,150,255,0.55),
        inset 0 0 6px rgba(0,0,0,0.65),
        0 0 0 rgba(0,0,0,0); /* preserve outer shadow layer */
}

/* Epic */
.equipped.rarity-epic {
    box-shadow:
        inset 0 0 14px rgba(180,80,255,0.60),
        inset 0 0 7px rgba(0,0,0,0.70),
        0 0 0 rgba(0,0,0,0);
}

/* Ancient */
.equipped.rarity-ancient {
    box-shadow:
        inset 0 0 16px rgba(212,175,55,0.70),
        inset 0 0 8px rgba(0,0,0,0.75),
        0 0 0 rgba(0,0,0,0);
}


/* Smaller, darker level tag */
.otherbox .equipped .level-tag {
    color: silver !important;
    font-size: 6px;
}

/* Rarity name with dark outer shadow */
.otherbox .equipped .rarity-label {
    text-shadow: 0 0 1px rgba(0,0,0,0.8);
    font-size:6px;
}



.otherbox .equipped .inv-name {

    font-weight: 550 !important;
    font-size:9px;
    letter-spacing: 0.3px;
}


/* Light-leaning item name (sky blue) */
.otherbox .inv-name.glow-light {
    color: #E1E1E1 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

/* Rage-leaning item name (dark red) */
.otherbox .inv-name.glow-rage {
    color: #E1E1E1 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
    
}

/* Equal → normal colour */
.otherbox .inv-name:not(.glow-light):not(.glow-rage) {
    color: #0A0A0C !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

.inventorystairs {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    border-radius: 10px;
margin-top: 3px;
}


.dec-small {
    font-size: 0.70em;
    opacity: 0.7;
    vertical-align: super;
    margin-left: 1px;
}
.req-ok {
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid rgba(0, 255, 0, 0.35);
}

.req-bad {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.35);
}



/* ============================
   RECIPE BOOK LAYOUT
============================ */

/* ============================================================
   RECIPE BOOK LAYOUT
   ============================================================ */

.recipe-book {
    width: 95%;
    margin: 20px auto;
    background: url('images/booktexture2.jpg');
    background-size: cover;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recipe-page {
    background: rgba(255,245,220,0.85);
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(120,90,50,0.4);
    font-family: "Cormorant Garamond", serif;
}

.recipe-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #4b2e12;
    margin-bottom: 10px;
    text-shadow: 0 0 2px #fff;
}

.recipe-sub {
    text-align: center;
    font-size: 14px;
    color: #6a4a2a;
    margin-bottom: 15px;
}

.recipe-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #3a2a18;
    margin-top: 10px;
    border-bottom: 1px solid rgba(80,60,40,0.4);
}

.recipe-ingredients,
.recipe-stats {
    margin-left: 10px;
    margin-top: 6px;
    font-size: 14px;
    color: #3a2a18;
}

.recipe-ingredients div,
.recipe-stats div {
    margin: 3px 0;
}

/* Craft button */
.craft-btn-book {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 14px;
    background: #7a2e2e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #4a1a1a;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
    transition: 0.2s;
}

.craft-btn-book:hover {
    background: #9b3a3a;
    transform: scale(1.05);
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */

.recipe-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.recipe-tab {
    background: rgba(255,245,220,0.7);
    border: 1px solid rgba(120,90,50,0.4);
    border-radius: 6px;
    text-decoration: none;
    color: #4b2e12;
    font-weight: bold;
    transition: 0.2s;
}

.recipe-tab:hover {
    background: rgba(255,245,220,0.9);
    transform: scale(1.05);
}

.recipe-tab.active {
    background: #d9c48a;
    border-color: #8a6a3a;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* ============================================================
   RESOURCE HIGHLIGHTS (GREEN / RED)
   ============================================================ */

.req-ok {
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid rgba(0, 255, 0, 0.35);
    border-radius: 4px;
}

.req-bad {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 4px;
}
/* Prevent page shifting when content is shorter */
.recipe-book {
    min-height: 600px; /* or whatever height fits your layout */
    overflow-y: auto;
}
/* EQUIPPED GRID */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px auto;
    width: 90%;
}

.equip-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid #444;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.equip-box.empty {
    opacity: 0.4;
}

.equip-label {
    font-size: 11px;
    color: #c9b37f;
    margin-bottom: 4px;
}

.equip-name {
    font-size: 12px;
    color: #e6e6e6;
    margin-bottom: 6px;
}

.equip-name.none {
    color: #666;
}

/* INVENTORY GRID */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 95%;
    margin: 20px auto;
}

.inv-type-header {
    grid-column: span 4;
    font-size: 14px;
    color: #c9b37f;
    margin: 10px 0 4px;
}

.inv-cell {
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 8px;
    border-radius: 6px;
}

.inv-cell-name {
    font-size: 11px;
    margin-bottom: 4px;
}

.inv-cell-rarity {
    font-size: 10px;
    margin-bottom: 6px;
}

.inv-cell-actions {
    text-align: right;
}
.inv-type-selector {
    width: 95%;
    margin: 15px auto 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.inv-type-btn {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(200,170,110,0.35);
    color: #d9c48a;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: "Cinzel", serif;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.inv-type-btn:hover {
    background: rgba(40,40,40,0.6);
    color: #f0dca8;
}

.inv-type-btn.active {
    background: rgba(200,170,110,0.25);
    border-color: rgba(200,170,110,0.6);
    color: #f0dca8;
}
.potion-grid {
    width: 90%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.potion-slot {
    background: rgba(0,0,0,0.35);
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.potion-slot .potion-name {
    font-size: 12px;
    color: #e6e6e6;
    margin-bottom: 6px;
}
/* INLINE POTION BAR */
.potion-inline {
    width: 90%;
    margin: 15px auto 5px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.potion-small {
    background: rgba(0,0,0,0.35);
    border: 1px solid #333;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    width: 90px;
}

.potion-small-name {
    font-size: 10px;
    color: #e6e6e6;
    margin-bottom: 4px;
}

.potion-unequip {
    font-size: 9px;
    padding: 1px 4px;
    margin-top: 4px;
}
/* Ensure potion bar always sits BELOW the equipped grid */
.potion-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;

    /* THIS is the important part */
    clear: both;
    float: none;
}

/* Smaller potion tiles */
.potion-small {
    background: rgba(0,0,0,0.35);
    border: 1px solid #333;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    width: 90px;
}

.potion-small-name {
    font-size: 10px;
    color: #e6e6e6;
    margin-bottom: 4px;
}

.potion-unequip {
    font-size: 9px;
    padding: 1px 4px;
    margin-top: 4px;
}
/* DARK MYSTERIOUS EQUIPPED SECTION */
.equip-grid {
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(80,60,40,0.35);
    box-shadow: inset 0 0 25px rgba(0,0,0,0.7), 0 0 12px rgba(0,0,0,0.6);
    margin-bottom: 15px;
}

/* Each armour slot */
.equip-box {
    background: rgba(10,10,10,0.55);
    border: 1px solid rgba(120,100,80,0.25);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    transition: 0.25s ease;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
}

/* Hover effect: subtle glow, not bright */
.equip-box:hover {
    background: rgba(20,20,20,0.65);
    border-color: rgba(180,150,110,0.45);
    box-shadow: inset 0 0 18px rgba(0,0,0,0.75), 0 0 6px rgba(180,150,110,0.25);
}

/* Slot label (Head, Chest, etc.) */
.equip-label {
    font-size: 11px;
    color: #bfa77a;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

/* Item name */
.equip-name {
    font-size: 13px;
    color: #e6e6e6;
    margin-top: 4px;
    margin-bottom: 6px;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

/* Empty slots look like ancient stone */
.equip-box.empty {
    background: rgba(20,20,20,0.35);
    border: 1px solid rgba(60,60,60,0.4);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

.equip-name.none {
    color: #555;
}

/* Rarity labels inside equipped section */
.equip-box .rarity-label {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.9;
}

/* Unequip button styling */
.equip-box .inv-btn {
    margin-top: 6px;
    padding: 3px 6px;
    font-size: 10px;
    background: rgba(80,60,40,0.35);
    border: 1px solid rgba(120,90,60,0.45);
}

.equip-box .inv-btn:hover {
    background: rgba(120,90,60,0.45);
}
/* DARK MYSTERIOUS POTION BAR */
.potion-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 10px;

    /* ensures it always sits below armour */
    clear: both;
    float: none;
}

/* Each potion slot */
.potion-small {
    background: linear-gradient(180deg, rgba(10,10,10,0.55), rgba(0,0,0,0.85));
    border: 1px solid rgba(120,100,80,0.25);
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
    width: 85px;
    transition: 0.25s ease;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.65), 0 0 6px rgba(0,0,0,0.5);
}

/* Hover effect: subtle ember glow */
.potion-small:hover {
    background: rgba(20,20,20,0.65);
    border-color: rgba(180,150,110,0.45);
    box-shadow: inset 0 0 18px rgba(0,0,0,0.75), 0 0 6px rgba(180,150,110,0.25);
}

/* Potion name text */
.potion-small-name {
    font-size: 10px;
    color: #e6e6e6;
    margin-bottom: 4px;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

/* Rarity label inside potion slot */
.potion-small .rarity-label {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    opacity: 0.9;
}

/* Unequip button */
.potion-unequip {
    font-size: 9px;
    padding: 2px 5px;
    margin-top: 5px;
    background: rgba(80,60,40,0.35);
    border: 1px solid rgba(120,90,60,0.45);
    border-radius: 4px;
}

.potion-unequip:hover {
    background: rgba(120,90,60,0.45);
}
/* ============================================================
   ANCIENT / AGED / MYTHICAL EQUIPPED SECTION
============================================================ */

/* Entire equipped grid container */
.equip-grid {
    background: radial-gradient(circle at center,
        rgba(40,30,20,0.35) 0%,
        rgba(15,10,5,0.75) 70%,
        rgba(0,0,0,0.9) 100%
    );
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(120,90,60,0.35);
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.85),
        0 0 25px rgba(0,0,0,0.6);
    position: relative;
}

/* Subtle ancient rune glow around the whole section */
.equip-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: url('images/runes_faint.png');
    opacity: 0.08;
    mix-blend-mode: screen;
}

/* Each equipment slot */
.equip-box {
    background: rgba(20,15,10,0.55);
    border: 1px solid rgba(150,120,80,0.25);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: 0.25s ease;
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.75),
        0 0 6px rgba(0,0,0,0.4);
    position: relative;
}

/* Cracked ancient texture overlay */
.equip-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/cracks_faint.png');
    opacity: 0.12;
    pointer-events: none;
}

/* Hover effect: faint magical pulse */
.equip-box:hover {
    background: rgba(35,25,15,0.65);
    border-color: rgba(200,160,110,0.45);
    box-shadow:
        inset 0 0 25px rgba(0,0,0,0.85),
        0 0 10px rgba(200,160,110,0.25);
}

/* Slot label (Head, Chest, etc.) */
.equip-label {
    font-size: 11px;
    color: #c9b37f;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
}

/* Item name */
.equip-name {
    font-size: 13px;
    color: #f0e6d0;
    margin-top: 4px;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(0,0,0,1);
}

/* Empty slots look like ancient stone tablets */
.equip-box.empty {
    background: rgba(25,20,15,0.45);
    border: 1px solid rgba(80,70,60,0.4);
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.7),
        inset 0 0 6px rgba(0,0,0,0.5);
}

.equip-name.none {
    color: #6b645a;
    text-shadow: none;
}

/* Rarity labels inside equipped section */
.equip-box .rarity-label {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.9;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

/* Unequip button */
.equip-box .inv-btn {
    margin-top: 6px;
    padding: 3px 6px;
    font-size: 10px;
    background: rgba(90,70,50,0.35);
    border: 1px solid rgba(140,110,80,0.45);
    border-radius: 4px;
}

.equip-box .inv-btn:hover {
    background: rgba(140,110,80,0.45);
}
/* Sanctuary layout inside .otherbox */
.sanctuary-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

/* LEFT SIDE — EQUIPPED BODY PANEL */
.sanctuary-equipped {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eq-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.eq-slot {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(150,120,80,0.35);
    padding: 10px;
    width: 120px;
    text-align: center;
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 13px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
}

/* RIGHT SIDE — THREE STACKED BOXES */
.sanctuary-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sanctuary-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(150,120,80,0.35);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

.sanctuary-box-title {
    font-size: 18px;
    color: #d9c48a;
    margin-bottom: 10px;
}

.sanctuary-link {
    color: #e6e6e6;
    font-size: 14px;
    text-decoration: none;
}

.sanctuary-link:hover {
    color: #f0dca8;
}



/* EQUIPPED BODY LAYOUT */
.equip-wrapper {
    display: flex;
    width: 100%;
    margin: 20px auto;
    gap: 20px;
}

/* LEFT BODY (70%) */
.equip-body {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* RIGHT SIDE (30%) */
.equip-side {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* EQUIPMENT SLOTS */
.equip-slot {

    border-radius: 6px;
    text-align: center;

}

.equip-row {
    display: flex;
    gap: 12px;
}

/* ITEM TEXT */
.slot-item {
    font-size: 12px;
    color: #e6e6e6;
}

.slot-item.empty {
    color: #666;
}

/* SIDE BOXES */
.side-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    box-shadow: inset 0 0 12px #000;
}

.side-title {
    font-family: "Cinzel", serif;
    font-size: 15px;
    color: #d9c48a;
    margin-bottom: 8px;
}

.side-link {
    display: block;
    margin: 4px 0;
    color: #e6e6e6;
    text-decoration: none;
}

.side-link:hover {
    color: #fff;
}

/* FIREPLACE */
.fireplace-box {
    padding: 0;
}

.fireplace-img {
    width: 100%;
    border-radius: 6px;
    display: block;
}


/* EQUIPPED BODY LAYOUT */
.equip-wrapper {
    display: flex;
    width: 95%;
    margin: 15px auto;
    gap: 18px;
}

.equip-body {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equip-side {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stone slots */
.equip-slot {

    border-radius: 6px;
    text-align: center;

}
/* BODY LAYOUT */
.equip-body {
    position: relative;
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Silhouette */
.silhouette-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 220px;
    transform: translateX(-50%);
    opacity: 0.18;
    pointer-events: none;
}

.silhouette-img {
    width: 100%;
    filter: grayscale(100%) brightness(0.7);
}

/* Slot sizes */
.equip-slot {
    width: 150px;
    z-index: 2;
}

/* Shoulders */


/* Arms row */
.arms-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

/* Legs + Feet */




/* Neck + Finger */
.eq-neck, .eq-finger {
    width: 120px;
}

/* Equipped potions (right hip area) */
.equipped-potions {
    position: absolute;
    right: -60px;
    top: 45%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.equipped-potions .equip-slot {
    width: 90px;
}

.equip-row {
    display: flex;
    gap: 10px;
}

.slot-item {
    font-size: 11px;
    color: #f0f0f0;
    text-shadow: 0 0 2px #000;
}

.slot-item.empty {
    color: #777;
}

/* Side boxes */
.side-box {
    border-radius: 8px;
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.9),
        0 0 8px rgba(0,0,0,0.8);
    padding: 10px;
}

.side-box-stone {
    background:
        radial-gradient(circle at 50% 20%, rgba(80,80,90,0.35), rgba(10,10,12,0.95)),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.4));
    border: 1px solid rgba(200,170,110,0.4);
}

.side-box-ebony {
    background:
        linear-gradient(135deg, #050506, #111118);
    border: 1px solid rgba(200,170,110,0.55);
}

.side-box-fireplace {
    background:
        radial-gradient(circle at 50% 10%, rgba(255,180,80,0.15), rgba(10,10,12,0.95));
    border: 1px solid rgba(200,170,110,0.4);
}

.side-title {
    font-family: "Cinzel", serif;
    font-size: 14px;
    color: #d9c48a;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-shadow: 0 0 3px #000;
}

.side-link {
    display: inline-block;
    margin-top: 4px;
    color: #e8e0c8;
    text-decoration: none;
    font-size: 12px;
}

.side-link:hover {
    color: #fff;
}

/* Ebony book shelf */
.book-shelf {
    margin-top: 4px;
    padding: 8px 6px 10px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(20,20,24,0.95), rgba(5,5,7,1));
    box-shadow:
        inset 0 0 10px rgba(0,0,0,0.9),
        0 0 6px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Books */
.book {
    width: 26px;
    height: 70px;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow:
        0 0 4px rgba(0,0,0,0.9),
        inset 0 0 4px rgba(0,0,0,0.8);
    transform-origin: bottom center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.book-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 9px;
    color: #f5f2e8;
    text-shadow: 0 0 2px #000;
}

/* Individual book colors (pure CSS leather-ish) */
.book-recipes {
    background: linear-gradient(180deg, #5b3a1f, #3a2414);
    border: 1px solid #c89a55;
    transform: rotate(-4deg);
}

.book-spell {
    background: linear-gradient(180deg, #1f2b5b, #141a3a);
    border: 1px solid #a0b7ff;
}

.book-explorer {
    background: linear-gradient(180deg, #2f5b2a, #1b3519);
    border: 1px solid #9ad08a;
    transform: rotate(4deg);
}

.book-bestiary {
    background: linear-gradient(180deg, #5b1f2a, #3a141c);
    border: 1px solid #e08a8a;
}

.book-lore {
    background: linear-gradient(180deg, #151515, #050505);
    border: 1px solid #d4af37;
    transform: rotate(-2deg);
}

/* Hover */
.book:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 8px rgba(255,230,160,0.7),
        inset 0 0 4px rgba(0,0,0,0.9);
    filter: brightness(1.15);
}

/* Fireplace */
.fireplace-frame {
    border-radius: 8px;
    padding: 4px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,200,120,0.35), rgba(10,10,12,1));
    box-shadow:
        inset 0 0 16px rgba(0,0,0,0.95),
        0 0 10px rgba(0,0,0,0.9);
}

.fireplace-img {
    width: 100%;
    border-radius: 6px;
    display: block;
}
.fireplace-img:hover {
    filter: brightness(1.35) saturate(1.2);
    transition: filter 0.25s ease-in-out;
}
.fireplace-frame:hover {
    box-shadow:
        inset 0 0 22px rgba(255,180,80,0.45),
        0 0 12px rgba(255,150,60,0.35);
    transition: box-shadow 0.25s ease-in-out;
}
.fireplace-img {
    transition: filter 0.35s ease-in-out;
}

.fireplace-img:hover {
    filter: hue-rotate(180deg) brightness(1.4) saturate(1.3);
}
.equip-body {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Centered single slots */
.equip-body .equip-slot {
    width: 160px;
}

/* Arms row: weapon – hands – shield */
.arms-row {
    display: flex;
    justify-content: center;
}

/* Shoulders row */
.eq-shoulder {
    width: 140px;
}

/* Legs + Feet */
.eq-legs, .eq-feet {
    width: 150px;
}

/* Finger + Neck */
.eq-finger, .eq-neck {
    width: 120px;
}
/* ============================
   EQUIPMENT LAYOUT
   ============================ */

.equip-wrapper {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
}

/* LEFT SIDE – BODY */
.equip-body {
    position: relative;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Silhouette */
.silhouette-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 220px;
    transform: translateX(-50%);
    opacity: 0.12;
    pointer-events: none;
}

.silhouette-img {
    width: 100%;
    filter: grayscale(100%) brightness(0.7);
}

/* Equip slots */
.equip-slot {
    width: 210px; /* Wider so item names fit */
    min-height: 40px;
    text-align: center;
    z-index: 2;
}

/* Arms row */
.arms-row {
    display: flex;
    justify-content: center;
}

/* ============================
   POTION SLOTS (right hip)
   ============================ */

.equipped-potions {
    position: absolute;
    right: -50px;
    top: 58%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equipped-potions .equip-slot {
    width: 120px;
}

/* ============================
   SLOT ITEM STYLING
   ============================ */

.slot-item {

    border-radius: 6px;
    font-size: 14px;
    color: #e6e6e6;
    background: #2a2a2a;
    border: 1px solid #000;
    text-shadow: 1px 1px 2px #000;
}

/* Empty slot */
.slot-item.empty {
    opacity: 0.4;
    font-style: italic;
}

/* ============================
   RARITY COLOURS RESTORED
   ============================ */

.rarity-common {
    background: #3a3a3a;
    color: #dcdcdc;
}

.rarity-rare {
    background: #1e3a5f;
    color: #bcdcff;
    box-shadow: 0 0 6px rgba(80,140,255,0.5);
}

.rarity-epic {
    background: #4b2a63;
    color: #e8c8ff;
    box-shadow: 0 0 6px rgba(180,80,255,0.5);
}

.rarity-ancient {
    background: #5a3a00;
    color: #ffe7a3;
    box-shadow: 0 0 6px rgba(255,200,80,0.5);
}

/* ============================
   GLOW EFFECTS (light / rage)
   ============================ */

.glow-light {
    box-shadow: 0 0 10px rgba(120,180,255,0.7);
}

.glow-rage {
    box-shadow: 0 0 10px rgba(255,80,80,0.7);
}

/* ============================
   LEVEL TAG
   ============================ */

.level-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    background: rgba(0,0,0,0.55);
    border-radius: 4px;
    color: #fff;
}

/* ============================
   RIGHT SIDE PANELS
   ============================ */

.equip-side {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-box {
    padding: 15px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 2px solid #000;
}

.side-box-stone {
    background: #2d2d2d;
    margin-top:20px;
}

.side-box-ebony {
    background: #1a0f0f;
}

.side-box-fireplace {
    background: #111;
}

/* ============================
   FIREPLACE BLUE FLAME HOVER
   ============================ */

.fireplace-img {
    width: 100%;
    transition: filter 0.35s ease-in-out;
}

.fireplace-img:hover {
    filter: hue-rotate(180deg) brightness(1.4) saturate(1.3);
}

/* ============================
   BOOKCASE
   ============================ */



/* ============================
   TOOLTIP (if you use one)
   ============================ */

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateY(-5px);
    z-index: 999;
}


/* ============================================================
   NEW EQUIPMENT LAYOUT (SAFE MERGE MODULE)
   ============================================================ */

/* Wrapper */
.equip-wrapper {
    display: flex;
    width: 100%;
    gap: 25px;
    margin-top: 20px;
}

/* LEFT SIDE – BODY */
.equip-body {
    position: relative;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Silhouette */
.silhouette-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 230px;
    transform: translateX(-50%);
    opacity: 0.12;
    pointer-events: none;
}

.silhouette-img {
    width: 100%;
    filter: grayscale(100%) brightness(0.7);
}

/* Equip slots */
.equip-slot {
    text-align: center;
    z-index: 2;
}

/* Arms row */
.arms-row {
    display: flex;
    justify-content: center;
}

/* ============================================================
   POTION SLOTS (right hip)
   ============================================================ */

.equipped-potions {
    position: absolute;
    right: -55px;
    top: 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equipped-potions .slot-item {
    width: 130px;
}

/* ============================================================
   SLOT ITEM STYLING (matches your gothic theme)
   ============================================================ */

.slot-item {
    border-radius: 6px;
    font-size: 13px;
    color: #e6e6e6;
    background: rgba(20,20,20,0.85);
    border: 1px solid rgba(0,0,0,0.7);
    text-shadow: 1px 1px 2px #000;
    box-shadow: inset 0 0 4px #000;
}

/* Empty slot */
.slot-item.empty {
    opacity: 0.35;
    font-style: italic;
}

/* ============================================================
   RARITY COLOURS (restored)
   ============================================================ */

.rarity-common {
    background: #3a3a3a;
    color: #dcdcdc;
}

.rarity-rare {
    background: #1e3a5f;
    color: #bcdcff;
    box-shadow: 0 0 6px rgba(80,140,255,0.5);
}

.rarity-epic {
    background: #4b2a63;
    color: #e8c8ff;
    box-shadow: 0 0 6px rgba(180,80,255,0.5);
}

.rarity-ancient {
    background: #5a3a00;
    color: #ffe7a3;
    box-shadow: 0 0 6px rgba(255,200,80,0.5);
}

/* ============================================================
   GLOW EFFECTS (light / rage)
   ============================================================ */

.glow-light {
    box-shadow: 0 0 10px rgba(120,180,255,0.7);
}

.glow-rage {
    box-shadow: 0 0 10px rgba(255,80,80,0.7);
}

/* ============================================================
   LEVEL TAG (restored)
   ============================================================ */

.level-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    background: rgba(0,0,0,0.55);
    border-radius: 4px;
    color: #fff;
}

/* ============================================================
   RIGHT SIDE PANELS
   ============================================================ */

.equip-side {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   FIREPLACE BLUE FLAME HOVER
   ============================================================ */

.fireplace-img {
    width: 100%;
    transition: filter 0.35s ease-in-out;
}

.fireplace-img:hover {
    filter: hue-rotate(180deg) brightness(1.4) saturate(1.3);
}

/* ============================================================
   TOOLTIP (compatible with your theme)
   ============================================================ */

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    background: rgba(10,10,10,0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateY(-5px);
    z-index: 999;
    border: 1px solid rgba(200,170,110,0.3);
    box-shadow: 0 0 6px #000;
}


/* ============================================================
   TEXTURED RARITY BACKGROUNDS (GOTHIC STYLE)
   ============================================================ */

/* Base texture used across your UI */
.rarity-texture {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.06),
            rgba(0,0,0,0)
        ),
        radial-gradient(
            circle at 50% 30%,
            rgba(26,26,26,0.55) 0%,
            rgba(10,10,10,0.55) 75%
        );
    border: 1px solid rgba(200,170,110,0.25);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

/* COMMON — dull stone */
.rarity-common {
    composes: rarity-texture;
    background-color: rgba(60,60,60,0.55);
    color: #dcdcdc;
}

/* RARE — cold blue stone */
.rarity-rare {
    composes: rarity-texture;
    background-color: rgba(40,70,120,0.55);
    color: #bcdcff;
    box-shadow: 0 0 8px rgba(80,140,255,0.4), inset 0 0 6px rgba(0,0,0,0.8);
}

/* EPIC — arcane purple leather */
.rarity-epic {
    composes: rarity-texture;
    background-color: rgba(90,40,120,0.55);
    color: #e8c8ff;
    box-shadow: 0 0 8px rgba(180,80,255,0.4), inset 0 0 6px rgba(0,0,0,0.8);
}

/* ANCIENT — golden relic stone */
.rarity-ancient {
    composes: rarity-texture;
    background-color: rgba(120,80,20,0.55);
    color: #ffe7a3;
    box-shadow: 0 0 10px rgba(255,200,80,0.45), inset 0 0 6px rgba(0,0,0,0.8);
}

.slot-row {
    width: 100%;
    display: flex;
    margin: 4px 0;
}

.slot-row.center {
    justify-content: center;
}

.slot-row.three {
    justify-content: center;
    gap: 40px;
}

.equip-slot {
    width: 210px;
    min-height: 42px;
    text-align: center;
    z-index: 2;
}

/* Silhouette */
.silhouette-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 150px;
    transform: translateX(-50%);
    opacity: 0.12;
    pointer-events: none;
}

.silhouette-img {
    width: 100%;
    filter: grayscale(100%) brightness(0.7);
}

/* Potions at right hip */
.equipped-potions {
    position: absolute;
    right: -70px;
    top: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* ============================================================
   EPIC EQUIPPED ALTAR — S2-B (PULSING GOLD SILHOUETTE)
   ============================================================ */

/* Left / right asymmetric columns */
.equip-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.equip-column-left {
    margin-top: 20px; /* neck slightly lower than head */
    margin-left: 20px;
}

.equip-column-right {
    margin-top: 20px; /* shoulder slightly offset */

}

/* Center block with silhouette + core slots */


/* Silhouette + pulsing gold aura */
.silhouette-aura {
    position: relative;
    width: 180px;
    height: 260px;
    margin-bottom: 6px;
}

.silhouette-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,215,140,0.9), rgba(120,80,20,0.0) 70%);
    box-shadow:
        0 0 18px rgba(255,215,140,0.9),
        0 0 32px rgba(255,200,100,0.7);
    animation: relicPulse 3.2s ease-in-out infinite;
}

.silhouette-img {
    position: absolute;
    inset: 10px 25px 0 25px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.95;
}

/* Pulsing gold aura animation */
@keyframes relicPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
        box-shadow:
            0 0 14px rgba(255,215,140,0.7),
            0 0 26px rgba(255,200,100,0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow:
            0 0 24px rgba(255,230,170,1),
            0 0 40px rgba(255,210,120,0.9);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.98);
        box-shadow:
            0 0 14px rgba(255,215,140,0.7),
            0 0 26px rgba(255,200,100,0.5);
    }
}

/* Equip slots around the altar */
.equip-slot {
    width: 120px;
    border-radius: 6px;
    text-align: center;
}

/* Slot content from slot_render.php */
.slot-item {
    display: inline-block;
    width: 100%;
    border-radius: 4px;
    font-size: 13px;
    color: #e6e6e6;
    text-shadow: 1px 1px 2px #000;
}

.slot-item.empty {
    opacity: 0.35;
    font-style: italic;
}

/* Potions under torso */
.equip-potions {
    margin-top: 200px;
    display: flex;
    gap: 8px;
}

.equip-potions .slot-item {
    width: 120px;
}

/* Right side (books + fireplace) */
.equip-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Fireplace hover */
.fireplace-img {
    width: 100%;
    transition: filter 0.35s ease-in-out;
}
.fireplace-img:hover {
    filter: hue-rotate(180deg) brightness(1.4) saturate(1.3);
}

/* ============================================================
   TEXTURED RARITY BACKGROUNDS + GLOW
   ============================================================ */

.rarity-texture {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.06),
            rgba(0,0,0,0)
        ),
        radial-gradient(
            circle at 50% 30%,
            rgba(26,26,26,0.55) 0%,
            rgba(10,10,10,0.55) 75%
        );
    border: 1px solid rgba(200,170,110,0.25);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

/* Common */
.rarity-common {
    background-color: rgba(60,60,60,0.7);
    color: #dcdcdc;
}

/* Rare */
.rarity-rare {
    background-color: rgba(40,70,120,0.7);
    color: #bcdcff;
    box-shadow: 0 0 8px rgba(80,140,255,0.5), inset 0 0 6px rgba(0,0,0,0.8);
}

/* Epic */
.rarity-epic {
    background-color: rgba(90,40,120,0.7);
    color: #e8c8ff;
    box-shadow: 0 0 8px rgba(180,80,255,0.5), inset 0 0 6px rgba(0,0,0,0.8);
}

/* Ancient */
.rarity-ancient {
    background-color: rgba(120,80,20,0.8);
    color: #ffe7a3;
    box-shadow: 0 0 10px rgba(255,200,80,0.7), inset 0 0 6px rgba(0,0,0,0.9);
}

/* Light / Rage glow from slot_render.php */
.glow-light {
    box-shadow: 0 0 10px rgba(120,180,255,0.8);
}
.glow-rage {
    box-shadow: 0 0 10px rgba(255,80,80,0.8);
}

/* Level tag */
.level-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    color: #fff;
}

/* Tooltip */
.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    background: rgba(10,10,10,0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateY(-5px);
    z-index: 999;
    border: 1px solid rgba(200,170,110,0.3);
    box-shadow: 0 0 6px #000;
}

/* ============================================================
   EPIC EQUIPPED ALTAR — S2-B-G2 — W1 (SLIM SILHOUETTE)
   ============================================================ */

.equip-altar {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 22px;
    align-items: flex-start;
}

/* Left / right columns (condensed) */
.equip-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px; /* condensed */
}

.equip-column-left { margin-top: 35px; }
.equip-column-right { margin-top: 35px; }

/* Center altar */
.equip-center {
    position: relative;
    width: 120px; /* W1 slim silhouette */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Slim silhouette image */
.silhouette-img {
    position: absolute;
    inset: 12px 30px 0 30px; /* slim shape */
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.95;
}

/* Gold pulse animation */
@keyframes relicPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.97);
        box-shadow:
            0 0 12px rgba(255,215,140,0.7),
            0 0 22px rgba(255,200,100,0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow:
            0 0 22px rgba(255,230,170,1),
            0 0 36px rgba(255,210,120,0.9);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.97);
        box-shadow:
            0 0 12px rgba(255,215,140,0.7),
            0 0 22px rgba(255,200,100,0.5);
    }
}

/* Equip slots (condensed) */
.equip-slot {
    width: 200px;
    min-height:40px;
    border-radius: 6px;
    text-align: center;


}

/* Slot content */
.slot-item {
    display: inline-block;
    width: 100%;
    border-radius: 4px;
    font-size: 12px;
    text-shadow: 1px 1px 2px #000;
     /* bright interior based on #E1E1E1 */
    background: rgba(10,10,12,0.70);
min-height:40px;
    /* dark carved edge to blend into your darker sanctuary background */
    box-shadow:
        inset 0 0 18px rgba(10,10,12,0.75),
        inset 0 0 6px rgba(10,10,12,0.55);

}

.slot-item.empty {
    opacity: 1;
    font-style: italic;
     color: #e6e6e6;
}

/* Potions under silhouette */
.equip-potions {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.equip-potions .slot-item {
    width: 120px;
}
.equip-potions2 {
    margin-top: 150px;
    display: flex;
    gap: 6px;
}

.equip-potions2 .slot-item {
    width: 120px;
}
/* Right side (books + fireplace) */
.equip-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Fireplace hover */
.fireplace-img {
    width: 100%;
    transition: filter 0.35s ease-in-out;
}
.fireplace-img:hover {
    filter: hue-rotate(180deg) brightness(1.4) saturate(1.3);
}

/* ============================================================
   RARITY TEXTURES + GLOW (unchanged)
   ============================================================ */

.rarity-texture {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, rgba(26,26,26,0.55), rgba(10,10,10,0.55));
    border: 1px solid rgba(200,170,110,0.25);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

.rarity-common { background-color: rgba(60,60,60,0.7); }
.rarity-rare { background-color: rgba(40,70,120,0.7); }
.rarity-epic { background-color: rgba(90,40,120,0.7); }
.rarity-ancient { background-color: rgba(120,80,20,0.8); }

.glow-light { box-shadow: 0 0 10px rgba(120,180,255,0.8); }
.glow-rage { box-shadow: 0 0 10px rgba(255,80,80,0.8); }

.level-tag {
    display: inline-block;
    font-size: 7px;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    color: #fff;
}


/* Horizontal crafting row */
.crafting-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;
}

/* Individual crafting boxes */
.craft-box {
    flex: 1;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(150,120,80,0.35);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

/* Titles */
.craft-title {
    font-size: 18px;
    color: #d9c48a;
    margin-bottom: 10px;
    font-family: "Cinzel", serif;
    text-shadow: 0 0 4px #000;
}

/* Links */
.craft-link {
    color: #e6e6e6;
    font-size: 14px;
    text-decoration: none;
}

.craft-link:hover {
    color: #f0dca8;
}

/* Full‑width mystical garden bar */
.garden-banner {
    width: 100%;
    padding: 22px 0;
    margin: 30px 0;
    text-align: center;

    background:
        radial-gradient(circle at 50% 30%, rgba(120,255,160,0.45), rgba(20,60,20,0.85)),
        url('images/texture_leaves_faint.png');
    background-size: cover;
    background-blend-mode: lighten;

    border: 1px solid rgba(120,200,120,0.55);
    border-radius: 10px;

    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.7),
        0 0 14px rgba(80,255,120,0.45),
        0 0 28px rgba(60,200,100,0.35);

    position: relative;
    overflow: hidden;
}

/* Soft drifting magical glow */
.garden-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(180,255,200,0.25), transparent 70%);
    animation: gardenGlow 6s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes gardenGlow {
    0%   { opacity: 0.4; transform: scale(1); }
    50%  { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(1); }
}

/* Link text */
.garden-link {
    font-family: "Cinzel", serif;
    font-size: 20px;
    color: #eaffea;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 6px rgba(120,255,160,0.8);
}

.garden-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(150,255,180,1);
}

.equip-altar-bg {
    margin-top:20px;
    margin-bottom:20px;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 22px;

    border-radius:10px;

    /* FULL layered background stack */
    background:
        /* silhouette on top */
        url('images/silhouettefemale.png') center / auto calc(100% - 10px) no-repeat,

        /* light diagonal scratches */
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.25) 0px,
            rgba(255,255,255,0.25) 2px,
            rgba(180,180,180,0.25) 2px,
            rgba(180,180,180,0.25) 4px
        ),

        /* soft pale glow from above */
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,0.55),
            rgba(225,225,225,0.65) 60%,
            rgba(200,200,200,0.75) 100%
        ),

        /* base light stone */
        linear-gradient(
            180deg,
            #E1E1E1,
            #CFCFCF
        );

    /* carved edges */
    box-shadow:
        inset 5px 2px 20px rgba(0,0,0,0.25),
        inset -5px -2px 20px rgba(0,0,0,0.25);

    /* outer glow */
    filter:
        drop-shadow(0 0 3px rgba(225,225,225,0.75))
        drop-shadow(0 0 7px rgba(225,225,225,0.55))
        drop-shadow(0 0 12px rgba(225,225,225,0.35));
}




