/* =====================================================================
   Kingdom of Lyonesse - Premium Dark Fantasy RPG Stylesheet
   Modernized Gaming UI, Glassmorphism, Micro-Animations & Responsive HUD
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #090b10;
    --bg-surface: rgba(18, 24, 35, 0.94);
    --bg-surface-elevated: rgba(26, 34, 48, 0.95);
    --bg-card: rgba(14, 19, 28, 0.92);
    
    --border-gold: rgba(212, 175, 55, 0.35);
    --border-gold-bright: #f1c40f;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-dark: rgba(0, 0, 0, 0.6);

    --gold-primary: #f5b041;
    --gold-glow: rgba(245, 176, 65, 0.45);
    --ruby-primary: #ff4757;
    --emerald-primary: #2ecc71;
    --cyan-primary: #00d2d3;
    --purple-primary: #9b59b6;

    --text-main: #f1f2f6;
    --text-muted: #a4b0be;
    --text-bright: #ffffff;

    --font-heading: 'Cinzel', serif, 'Trajan', Georgia;
    --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-button: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    --shadow-gold: 0 0 20px rgba(241, 196, 15, 0.3);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--bg-dark);
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    max-width: 520px;
    min-height: 100vh;
    color: var(--text-main);
    margin: 0 auto;
    background: radial-gradient(circle at 50% 0%, #151d2a 0%, #0c1017 50%, #07090d 100%);
    background-attachment: fixed;
    padding: 10px 8px 60px 8px;
    font-family: var(--font-ui);
    line-height: 1.5;
    z-index: 1;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}

/* Ambient glow background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* =====================================================================
   Typography & Global Headings
   ===================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0 0 8px 0;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* =====================================================================
   Title Banner & Filigree Headers
   ===================================================================== */

.title {
    position: relative;
    min-height: 38px;
    margin: 10px 0 12px 0;
    line-height: 36px;
    vertical-align: middle;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 14px var(--gold-glow);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.22) 50%, rgba(212, 175, 55, 0) 100%),
                rgba(18, 24, 35, 0.85);
    border: 1px solid var(--border-gold);
    border-left: 0;
    border-right: 0;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.title::before, .title::after {
    content: '◆';
    color: var(--gold-primary);
    font-size: 0.7em;
    margin: 0 8px;
    vertical-align: middle;
    text-shadow: 0 0 8px var(--gold-primary);
}

.title span.color {
    color: #fff;
}

/* =====================================================================
   Cards & Layout Containers (tophead, tophead2, list, list2)
   ===================================================================== */

.tophead, .tophead2, .list, .list2 {
    display: block;
    position: relative;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 0.93rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tophead:hover, .tophead2:hover, .list:hover, .list2:hover {
    border-color: rgba(241, 196, 15, 0.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 12px rgba(241, 196, 15, 0.15);
}

.tophead2 {
    background: var(--bg-surface-elevated);
    border-color: rgba(212, 175, 55, 0.25);
}

.list2 {
    background: rgba(20, 27, 39, 0.9);
}

.tophead em {
    font-style: normal;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Horizontal Dividers */
.hrs {
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.4) 50%, transparent 100%);
    border: 0;
}

/* =====================================================================
   Buttons & Interactive Controls
   ===================================================================== */

.button, .buttons, input[type="submit"], button, .btn {
    display: inline-block;
    position: relative;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 10px 24px;
    margin: 5px 2px;
    border: 1px solid rgba(241, 196, 15, 0.6);
    border-radius: 6px;
    background: linear-gradient(180deg, #27ae60 0%, #1e824c 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 10px rgba(46, 204, 113, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.button:hover, .buttons:hover, input[type="submit"]:hover, button:hover, .btn:hover {
    background: linear-gradient(180deg, #2ecc71 0%, #229954 100%);
    border-color: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 18px rgba(46, 204, 113, 0.55);
}

.button:active, .buttons:active, input[type="submit"]:active, button:active, .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Button Variants */
.button-amber, .button_gold {
    background: linear-gradient(180deg, #f39c12 0%, #d35400 100%) !important;
    border-color: #f1c40f !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.4), 0 0 12px rgba(243, 156, 18, 0.35) !important;
}

.button-amber:hover, .button_gold:hover {
    background: linear-gradient(180deg, #f1c40f 0%, #e67e22 100%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.5), 0 0 20px rgba(241, 196, 15, 0.6) !important;
}

.button-red, .button_danger {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%) !important;
    border-color: #ff7675 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.4), 0 0 12px rgba(231, 76, 60, 0.35) !important;
}

.button-red:hover, .button_danger:hover {
    background: linear-gradient(180deg, #ff4757 0%, #d63031 100%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.5), 0 0 20px rgba(255, 71, 87, 0.6) !important;
}

/* =====================================================================
   Input Fields & Forms
   ===================================================================== */

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 90%;
    max-width: 380px;
    padding: 9px 12px;
    margin: 6px auto;
    background: rgba(10, 14, 20, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    color: var(--text-bright);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
    transition: all 0.25s ease;
    display: inline-block;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--border-gold-bright);
    background: rgba(15, 20, 30, 0.95);
    box-shadow: 0 0 14px rgba(241, 196, 15, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

textarea.mail {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    height: 90px;
    padding: 8px;
    border-radius: 6px;
}

/* =====================================================================
   Hero HUD & Health / EXP Progress Bars
   ===================================================================== */

.progress-bar,
.progress {
    height: 12px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 4px 0;
}

.progress {
    max-width: 100%;
    transition: width 0.4s ease-out;
}

.progress._green {
    background: linear-gradient(90deg, #2ecc71, #00d2d3, #2ecc71);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.65);
}

.progress._red {
    background: linear-gradient(90deg, #e74c3c, #ff4757, #e74c3c);
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.65);
}

/* Shimmer beam effect on progress bars */
.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: barShine 2.5s infinite;
}

@keyframes barShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* =====================================================================
   Sidebars (Desktop Layout) & Hero Panels
   ===================================================================== */

.wp200 {
    width: 210px;
}

.comp_menu_right {
    position: fixed;
    right: 50%;
    top: 50px;
    margin-right: -490px;
    z-index: 50;
}

.comp_menu_left {
    position: fixed;
    left: 50%;
    top: 50px;
    margin-left: -490px;
    z-index: 50;
}

@media screen and (max-width: 960px) {
    .comp_menu_left, .comp_menu_right {
        display: none !important;
    }
}

.round_image {
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 18px var(--gold-glow), 0 4px 12px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.round_image:hover {
    transform: scale(1.04);
    box-shadow: 0 0 24px var(--gold-primary), 0 6px 16px rgba(0, 0, 0, 0.9);
}

/* Left Sidebar Stat Box & Badges */
.sidebar_stat_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    margin: 6px 0;
    background: rgba(14, 20, 28, 0.95);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
}

.stat_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6eaf0;
}

.stat_badge img {
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* Sidebar Menu Navigation List */
.sidebar_menu_container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.sidebar_nav_item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 3px 8px 3px 4px;
    border: 1px solid var(--border-gold);
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(26, 36, 50, 0.95) 0%, rgba(14, 20, 30, 0.95) 100%);
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar_nav_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.12), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.sidebar_nav_item:hover::before {
    left: 140%;
}

.sidebar_nav_item:hover {
    border-color: var(--border-gold-bright);
    background: linear-gradient(135deg, rgba(38, 52, 72, 0.98) 0%, rgba(20, 28, 42, 0.98) 100%);
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(241, 196, 15, 0.35);
    color: #f1c40f;
}

.sidebar_nav_item:active {
    transform: scale(0.98) translateX(2px);
}

.sidebar_nav_icon_wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 6px;
    background: rgba(10, 14, 22, 0.9);
    border: 1px solid rgba(241, 196, 15, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
    transition: all 0.25s ease;
}

.sidebar_nav_item:hover .sidebar_nav_icon_wrap {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.sidebar_nav_icon_wrap img {
    max-width: 22px;
    max-height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.sidebar_nav_text {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick 3-Row Action Grid */
.sidebar_quick_row {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.sidebar_quick_btn {
    flex: 1;
    height: 38px;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(25, 34, 48, 0.95) 0%, rgba(14, 20, 30, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

.sidebar_quick_btn:hover {
    border-color: var(--border-gold-bright);
    background: linear-gradient(180deg, rgba(35, 48, 68, 0.95) 0%, rgba(18, 25, 38, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(241, 196, 15, 0.3);
}

.sidebar_quick_btn:active {
    transform: translateY(1px);
}

.sidebar_quick_lvl {
    cursor: default;
    background: linear-gradient(180deg, rgba(30, 22, 10, 0.95) 0%, rgba(18, 14, 8, 0.95) 100%);
    border-color: rgba(241, 196, 15, 0.5);
    font-size: 0.85rem;
}

.sidebar_unread_dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    box-shadow: 0 0 8px #ff4757;
    animation: pulseGlow 1.5s infinite;
}

/* Ruby Special Button */
.sidebar_ruby_special {
    background: linear-gradient(135deg, rgba(45, 18, 24, 0.95) 0%, rgba(20, 10, 14, 0.95) 100%);
    border-color: rgba(231, 76, 60, 0.6);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
    margin-top: 4px;
}

.sidebar_ruby_special .sidebar_nav_icon_wrap {
    border-color: rgba(231, 76, 60, 0.6);
    background: rgba(30, 10, 14, 0.9);
}

.sidebar_ruby_special:hover {
    border-color: #f1c40f;
    background: linear-gradient(135deg, rgba(65, 22, 30, 0.98) 0%, rgba(28, 12, 18, 0.98) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(241, 196, 15, 0.4);
}

/* =====================================================================
   Main Menu Grid Buttons (Town / Hub)
   ===================================================================== */

.main_menu_section {
    width: 100%;
    text-align: center;
    display: table;
    margin-top: 14px;
    border-spacing: 8px;
}

.main_menu_button {
    display: table-cell;
    width: 84px;
    height: 68px;
    min-width: 65px;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(26, 34, 48, 0.95) 0%, rgba(14, 18, 26, 0.98) 100%);
    vertical-align: middle;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main_menu_button:hover {
    border-color: var(--border-gold-bright);
    background: linear-gradient(180deg, rgba(35, 46, 64, 0.95) 0%, rgba(18, 24, 35, 0.98) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(241, 196, 15, 0.3);
}

.main_menu_button:active {
    transform: translateY(1px);
}

.main_menu_button_image {
    display: block;
    position: relative;
    top: -16px;
    margin: 0 auto;
    line-height: 38px;
    text-align: center;
    height: 38px;
    width: 38px;
    background: url(/images/main_menu_button_icon_bg.png) no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
}

.main_menu_button_content {
    display: block;
    position: relative;
    margin-top: -12px;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

/* =====================================================================
   Tower / Dungeon Exploration Cards
   ===================================================================== */

.tower-preview-btn, .tower-preview-btn2 {
    position: relative;
    height: 4.8rem;
    display: block;
    margin: 10px 0;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tower-preview-btn { background-image: url(/images/tower-menu-bg.png); }
.tower-preview-btn2 { background-image: url(/images/tawer.png); }

.tower-preview-btn:hover, .tower-preview-btn2:hover {
    border-color: var(--border-gold-bright);
    transform: translateY(-2px);
    box-shadow: inset 0 0 20px rgba(241, 196, 15, 0.3), 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(241, 196, 15, 0.25);
}

/* =====================================================================
   Item Quality & Rarity Styles
   ===================================================================== */

.imgItem1 {
    display: inline-block;
    border: 1px solid #2ecc71;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.imgItem2 {
    display: inline-block;
    border: 1px solid #9b59b6;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.6);
}

.imgItem3 {
    display: inline-block;
    border: 1px solid #e67e22;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(230, 126, 34, 0.7);
}

.imgItem4 {
    display: inline-block;
    border: 1px solid #00d2d3;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(0, 210, 211, 0.8);
}

.imgItem5 {
    display: inline-block;
    border: 1px solid #ff4757;
    border-radius: 6px;
    box-shadow: 0 0 16px rgba(255, 71, 87, 0.9);
}

.imgSkill, .SkillActive, .SkillReload {
    display: inline-block;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.SkillActive {
    border: 2px solid #2ecc71;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.7);
}

.SkillReload {
    border: 2px solid #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.6);
    filter: grayscale(0.7);
}

.items-icons {
    background: rgba(10, 14, 22, 0.95);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    width: 48px;
    height: 48px;
    margin: 3px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
    transition: all 0.2s ease;
}

.items-icons:hover {
    border-color: var(--border-gold-bright);
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.7);
    transform: scale(1.06);
}

/* =====================================================================
   VIP & Premium Banner Animation
   ===================================================================== */

.premium {
    min-height: 34px;
    margin-bottom: 10px;
    line-height: 32px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 20px;
    background: linear-gradient(90deg, #d35400, #f39c12, #f1c40f, #d35400);
    background-size: 300% 100%;
    animation: goldShimmer 4s infinite linear;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* =====================================================================
   Notifications & Alerts
   ===================================================================== */

.notify, .b-notice {
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(46, 204, 113, 0.4);
    background: linear-gradient(180deg, rgba(39, 174, 96, 0.25) 0%, rgba(20, 30, 24, 0.9) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.notify.err, .b-notice.err {
    border-color: rgba(231, 76, 60, 0.5);
    background: linear-gradient(180deg, rgba(192, 57, 43, 0.3) 0%, rgba(30, 18, 20, 0.9) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(231, 76, 60, 0.25);
    color: #ff6b6b;
}

/* =====================================================================
   Colors & Stat Helpers
   ===================================================================== */

span.red { color: #ff4757; text-shadow: 0 0 6px rgba(255, 71, 87, 0.4); }
span.yellow { color: #f1c40f; text-shadow: 0 0 6px rgba(241, 196, 15, 0.4); }
span.tomato { color: #ff6348; }
span.orange { color: #ffa502; text-shadow: 0 0 6px rgba(255, 165, 2, 0.4); }
span.lime { color: #2ed573; text-shadow: 0 0 6px rgba(46, 213, 115, 0.4); }
span.cyan { color: #00d2d3; text-shadow: 0 0 6px rgba(0, 210, 211, 0.4); }
span.color { color: #ffffff; }

.cntr { text-align: center; }
.right { text-align: right; }
.left { text-align: left; }
.alc { text-align: center; }
.w100 { width: 100%; }

/* =====================================================================
   Floating Audio HUD Bar (Music & SFX Toggle)
   ===================================================================== */

.rpg-audio-bar {
    position: fixed;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 10000;
}

.rpg-sound-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(14, 18, 26, 0.88);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    color: var(--text-muted);
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    transition: all 0.25s ease;
}

.rpg-sound-btn:hover {
    border-color: var(--border-gold-bright);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 12px rgba(241, 196, 15, 0.3);
}

.rpg-sound-btn.active {
    border-color: #2ecc71;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.35);
}

.rpg-sound-btn .icon {
    font-size: 0.95rem;
}

/* =====================================================================
   Landing & Authentication View
   ===================================================================== */

.bgpanel {
    display: block;
    position: relative;
    background: url(/images/landing_back.jpg) no-repeat top center;
    background-size: cover;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-top: 25vh;
    border-radius: 8px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9);
}

.logo img {
    max-width: 320px;
    width: 85%;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.9));
}


/* =====================================================================
   Animated RPG Toast Notifications
   ===================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999;
    pointer-events: none;
    max-width: 340px;
}

.rpg-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(14, 20, 30, 0.95);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 14px rgba(241, 196, 15, 0.25);
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.35s ease;
}

.rpg-toast.toast-success {
    border-color: #2ecc71;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 14px rgba(46, 204, 113, 0.35);
}

.rpg-toast.toast-error {
    border-color: #e74c3c;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 14px rgba(231, 76, 60, 0.35);
}

.rpg-toast.toast-exit {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.toast-content {
    flex: 1;
    line-height: 1.35;
}

.toast-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.toast-close:hover {
    color: #ffffff;
}

@keyframes toastSlideIn {
    0% { opacity: 0; transform: translateX(100%) scale(0.9); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* =====================================================================
   Combat Animations & Dynamic Battle HUD
   ===================================================================== */

.combat-attack-button {
    background: linear-gradient(135deg, rgba(180, 20, 20, 0.95), rgba(80, 10, 10, 0.95));
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    margin: 4px;
}

.combat-attack-button:hover {
    border-color: #f1c40f;
    box-shadow: 0 6px 22px rgba(231, 76, 60, 0.6), 0 0 16px rgba(241, 196, 15, 0.4);
    transform: scale(1.04);
}

.combat-attack-button:active {
    transform: scale(0.96);
}

.combat-strike-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
}

.combat-shake {
    animation: shakeHit 0.35s ease;
}

@keyframes shakeHit {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px) rotate(-3deg); }
    40% { transform: translateX(6px) rotate(3deg); }
    60% { transform: translateX(-4px) rotate(-1deg); }
    80% { transform: translateX(4px) rotate(1deg); }
    100% { transform: translateX(0); }
}

.combat-floating-dmg {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0,0,0,0.8);
    animation: floatUpFade 1.2s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUpFade {
    0% { opacity: 0; transform: translateY(0) scale(0.7); }
    25% { opacity: 1; transform: translateY(-15px) scale(1.2); }
    70% { opacity: 1; transform: translateY(-35px) scale(1); }
    100% { opacity: 0; transform: translateY(-55px) scale(0.9); }
}
