:root {
    --ui-global-scale: 0.9;
    --cursor-default: url("Cursor.cur"), auto;
    --cursor-pointer: url("Cursor.cur"), pointer;
    --bg: #0f1726;
    --bg-alt: #17243a;
    --panel: rgba(18, 30, 46, 0.9);
    --panel-strong: rgba(14, 22, 34, 0.96);
    --line: rgba(175, 214, 255, 0.14);
    --text: #f4f8ff;
    --muted: #bfd0e8;
    --gold: #e2bc71;
    --sky: #7fd7ff;
    --emerald: #76e3a7;
    --crimson: #ff7a7a;
    --amber: #ffb454;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    cursor: var(--cursor-default);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(127, 215, 255, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(226, 188, 113, 0.14), transparent 28%),
        linear-gradient(180deg, #09111e 0%, #101b2e 50%, #0e1624 100%);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
    zoom: var(--ui-global-scale);
}

@media (hover: none) and (pointer: coarse) {
    html,
    body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

@supports not (zoom: 1) {
    body {
        transform: scale(var(--ui-global-scale));
        transform-origin: top left;
        width: calc(100% / var(--ui-global-scale));
        min-height: calc(100vh / var(--ui-global-scale));
    }
}

.happy-hour-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    background: rgba(6, 10, 18, 0.42);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.buff-event-announce {
    position: fixed;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4050;
    min-width: min(92vw, 840px);
    text-align: center;
    background: rgba(6, 12, 22, 0.9);
    border: 1px solid rgba(226, 188, 113, 0.7);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    padding: 16px 20px;
}
.buff-event-announce strong {
    font-size: clamp(18px, 2.8vw, 36px);
    color: #ffe2a6;
    letter-spacing: 0.5px;
}

.happy-hour-frame {
    position: relative;
    width: min(92vw, 620px);
    aspect-ratio: 441 / 517;
}

.happy-hour-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.42));
}

.happy-hour-columns {
    position: absolute;
    inset: 35% 25% 33% 25%;

    display: grid;

    grid-template-columns: repeat(3, auto); /* 🔥 statt 1fr */
    justify-content: center;                /* 🔥 zentrieren */
    column-gap: 120px;                        /* 🔥 Abstand */
}

.happy-hour-column {
    position: relative;
}


.happy-hour-slot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    width: 78px;
    height: 78px;
}

/* TOP */
.happy-hour-slot:nth-child(1) {
    top: 0%;
}

/* MIDDLE */
.happy-hour-slot:nth-child(2) {
    top: 38%;
}

/* BOTTOM */
.happy-hour-slot:nth-child(3) {
    top: 76%;
}


.happy-hour-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

.town-switch-overlay {
    position: fixed;
    inset: 0;
    z-index: 3900;
    display: grid;
    place-items: center;
    background: rgba(6, 10, 18, 0.28);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.town-switch-overlay.visible {
    opacity: 1;
}

.town-switch-overlay-image {
    width: min(82vw, 780px);
    max-height: 72vh;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.app-body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

button {
    font: inherit;
    cursor: var(--cursor-pointer);
    border: 1px solid rgba(226, 188, 113, 0.38);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(36, 25, 10, 0.95), rgba(18, 13, 8, 0.96));
    color: #f6deaa;
    transition: border-color 0.15s ease, filter 0.15s ease;
}

button:hover {
    border-color: rgba(226, 188, 113, 0.62);
    filter: brightness(1.06);
}

button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select {
    color-scheme: dark;
}

select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea {
    border: 1px solid rgba(226, 188, 113, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(5, 9, 15, 0.92), rgba(10, 15, 23, 0.94));
    color: var(--text);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

select {
    min-height: 40px;
    padding: 8px 38px 8px 12px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(226, 188, 113, 0.9) 50%),
        linear-gradient(135deg, rgba(226, 188, 113, 0.9) 50%, transparent 50%),
        linear-gradient(180deg, rgba(5, 9, 15, 0.92), rgba(10, 15, 23, 0.94));
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
}

select option {
    background-color: #0b1523;
    color: #e7eefc;
}

select option:checked {
    background-color: #2b5f98;
    color: #ffffff;
}

select option:hover,
select option:focus {
    background-color: #2b5f98;
    color: #ffffff;
}

select option:disabled {
    background-color: #0b1523;
    color: rgba(188, 202, 226, 0.55);
}

select:disabled {
    opacity: 0.85;
    color: rgba(208, 221, 246, 0.92);
    cursor: not-allowed;
}

select:focus,
input:focus,
textarea:focus {
    border-color: rgba(226, 188, 113, 0.55);
    box-shadow:
        inset 0 0 0 1px rgba(226, 188, 113, 0.12),
        0 0 0 3px rgba(226, 188, 113, 0.08);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 188, 113, 0.78) rgba(8, 12, 18, 0.58);
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.58);
}

*::-webkit-scrollbar-thumb {
    border: 1px solid rgba(255, 236, 190, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(226, 188, 113, 0.82), rgba(116, 77, 32, 0.92));
}

.shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.landing-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.landing-shell::before,
.landing-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(8px);
}

.landing-shell::before {
    width: 520px;
    height: 520px;
    left: -120px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(226, 70, 37, .24), transparent 62%);
}

.landing-shell::after {
    width: 620px;
    height: 620px;
    right: -180px;
    top: -180px;
    background: radial-gradient(circle, rgba(229, 190, 96, .2), transparent 60%);
}

.landing-card,
.cardish,
.panel {
    background: linear-gradient(180deg, rgba(20, 32, 49, 0.92), rgba(13, 21, 33, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.landing-card {
    width: min(1180px, 100%);
    padding: 34px;
    position: relative;
    z-index: 1;
    border-color: rgba(226, 190, 102, .32);
    background:
        linear-gradient(120deg, rgba(10, 14, 22, .86), rgba(25, 15, 8, .82)),
        radial-gradient(circle at 16% 22%, rgba(186, 47, 28, .22), transparent 38%);
    box-shadow: 0 30px 120px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(255, 224, 154, .08);
}

.landing-grid,
.split-grid,
.game-grid {
    display: grid;
    gap: 18px;
}

.landing-grid,
.split-grid {
    grid-template-columns: 1fr 1fr;
}

.landing-grid {
    align-items: center;
    min-height: 560px;
    gap: 28px;
}

.landing-story {
    display: grid;
    gap: 14px;
}

.landing-forms {
    display: grid;
    gap: 16px;
}

.landing-kicker {
    margin: 4px 0 0;
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #f0c879;
    font-weight: 700;
}

.cardish,
.panel {
    padding: 20px;
}

.landing-title {
    margin: 2px 0 8px;
    font-family: "Cinzel", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #f6e7c2;
    line-height: 1.06;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .75), 0 0 38px rgba(214, 151, 62, .22);
}

.landing-subcopy {
    margin: 0;
    max-width: 62ch;
    color: #d6e2f5;
    line-height: 1.62;
    font-size: 1.03rem;
}

.landing-cta-row {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .01em;
}

.landing-discord-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.landing-feature-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.landing-feature-card {
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 235, 196, .15);
    background:
        linear-gradient(165deg, rgba(26, 35, 54, .78), rgba(20, 14, 10, .82));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.landing-feature-card h3 {
    margin: 0 0 6px;
    font-family: "Cinzel", serif;
    color: #f2dcac;
    font-size: 1rem;
    letter-spacing: .01em;
}

.landing-feature-card p {
    margin: 0;
    color: #c5d3e8;
    font-size: .9rem;
    line-height: 1.45;
}

.game-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 92px;
}

.sidebar {
    position: sticky;
    top: 14px;
    align-self: start;
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    overflow-y: auto;
    overflow-x: hidden;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    padding: 22px 18px;
    margin: 14px 0;
    border: 1px solid rgba(98, 149, 214, 0.26);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(6, 16, 38, 0.94), rgba(4, 12, 27, 0.94));
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    transition: width 180ms ease, min-width 180ms ease, max-width 180ms ease, padding 180ms ease;
}

.menu-toggle {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(226, 188, 113, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 221, 142, 0.28), rgba(34, 22, 8, 0.86));
    color: #f6d88f;
    cursor: var(--cursor-pointer);
    font-size: 0.8rem;
    line-height: 1;
    box-shadow: 0 0 16px rgba(226, 188, 113, 0.15);
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 220, 140, 0.85);
}

.sidebar-collapse-handle {
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(226, 188, 113, 0.52);
    background: linear-gradient(180deg, rgba(35, 23, 10, 0.92), rgba(17, 11, 8, 0.92));
    color: #f6d88f;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer);
    z-index: 30;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.sidebar-collapse-handle:hover {
    border-color: rgba(255, 220, 140, 0.9);
}

body.sidebar-collapsed .game-shell {
    grid-template-columns: 30px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 0;
    overflow: visible;
}

body.sidebar-collapsed .sidebar > :not(.sidebar-collapse-handle) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.sidebar-collapsed .sidebar-collapse-handle {
    display: inline-flex;
}

.sidebar-brand strong {
    display: block;
    font-size: 1.25rem;
}

.sidebar-rank-line {
    display: block;
    margin-top: 4px;
    color: rgba(223, 239, 255, 0.74);
    font-size: 0.74rem;
}

.game-logo {
    display: block;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(231, 194, 116, 0.18));
}

.sidebar-logo {
    max-width: 142px;
    max-height: 58px;
}

.landing-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.landing-logo {
    max-width: min(360px, 72vw);
    max-height: 132px;
}

.sidebar-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.audio-toggle {
    border: 1px solid rgba(255, 89, 89, 0.55);
    border-radius: 999px;
    background: rgba(120, 8, 8, 0.68);
    color: #ffd8d8;
    padding: 3px 8px;
    font: inherit;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: var(--cursor-pointer);
    box-shadow: 0 0 16px rgba(255, 55, 55, 0.16);
}

.audio-toggle.active {
    border-color: rgba(116, 255, 155, 0.55);
    background: rgba(9, 85, 40, 0.7);
    color: #c9ffd8;
    box-shadow: 0 0 16px rgba(90, 255, 150, 0.16);
}

.audio-toggle.muted {
    animation: audio-muted-pulse 1.9s ease-in-out infinite;
}

.settings-toggle {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(226, 188, 113, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 221, 142, 0.28), rgba(34, 22, 8, 0.86));
    color: #f6d88f;
    cursor: var(--cursor-pointer);
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 0 16px rgba(226, 188, 113, 0.15);
}

.settings-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 220, 140, 0.85);
}

.mode-toggle {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(226, 188, 113, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 221, 142, 0.28), rgba(34, 22, 8, 0.86));
    color: #f6d88f;
    cursor: var(--cursor-pointer);
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 0 16px rgba(226, 188, 113, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mode-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 220, 140, 0.85);
}

@keyframes audio-muted-pulse {
    0%, 100% { filter: brightness(0.9); }
    50% { filter: brightness(1.25); }
}

.sidebar-nav {
    display: grid;
    gap: 10px;
    align-content: start;
    grid-auto-rows: min-content;
}

.sidebar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(98, 149, 214, 0.2);
    background: rgba(8, 20, 44, 0.72);
    min-height: 0;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-link::before {
    content: "✦";
    color: #d2a95a;
    font-size: 12px;
    opacity: 0.95;
}

.sidebar-link-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffd9ef;
    border: 1px solid rgba(255, 118, 200, 0.62);
    background: rgba(255, 118, 200, 0.2);
}

.sidebar-link.active {
    background: linear-gradient(180deg, rgba(44, 72, 118, 0.38), rgba(18, 38, 79, 0.48));
    border-color: rgba(104, 174, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(104, 174, 255, 0.25) inset;
}

.sidebar-link.chat-attention {
    border-color: rgba(255, 118, 200, 0.72);
    color: #ffd7ef;
    animation: chatPulse 0.9s ease-in-out infinite;
}

.sidebar-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.sidebar-dropdown {
    display: grid;
    gap: 8px;
}

.sidebar-dropdown summary {
    list-style: none;
    cursor: var(--cursor-pointer);
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown.active > .sidebar-link {
    background: rgba(226, 188, 113, 0.12);
    border-color: rgba(226, 188, 113, 0.26);
}

.sidebar-subnav {
    display: grid;
    gap: 8px;
    padding-left: 12px;
}

.sidebar-sublink {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 25, 0.75);
    color: rgba(238, 242, 255, 0.84);
    text-decoration: none;
    font-size: 0.92rem;
}

.sidebar-sublink.active {
    border-color: rgba(226, 188, 113, 0.28);
    background: rgba(226, 188, 113, 0.1);
    color: #fff6da;
}

.sidebar-btn {
    width: 100%;
}

.sidebar-foot {
    display: grid;
    gap: 12px;
}

.main-panel {
    padding: 18px 18px 8px;
    min-width: 0;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
    overflow: auto;
}

.content-panel {
    border: 1px solid rgba(95, 143, 205, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(4, 16, 40, 0.88), rgba(2, 12, 31, 0.9));
}

.global-feedback-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 92;
    height: 78px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    padding: 10px 14px;
    border-top: 1px solid rgba(95, 143, 205, 0.36);
    background: linear-gradient(180deg, rgba(5, 16, 36, 0.96), rgba(3, 10, 24, 0.98));
    backdrop-filter: blur(10px);
}

.global-feedback-item {
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid rgba(111, 160, 223, 0.25);
    border-radius: 8px;
    background: rgba(8, 24, 54, 0.72);
}

.global-feedback-item strong {
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    line-height: 1.1;
}

.global-feedback-item span {
    color: #bfd4f4;
    font-size: 0.82rem;
    line-height: 1.15;
}

.global-feedback-item.is-green strong { color: #6cf09f; }
.global-feedback-item.is-red strong { color: #ff8f8f; }
.global-feedback-item.is-amber strong { color: #ffd277; }
.global-feedback-item.is-blue strong { color: #7fc8ff; }
.global-feedback-item.gfb-rotate-in {
    animation: gfbRotateIn 0.38s ease;
}
@keyframes gfbRotateIn {
    0% {
        transform: translateY(6px);
        opacity: 0.25;
        filter: brightness(0.92);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: brightness(1);
    }
}
.feedback-attention {
    animation: feedbackPulse 1.25s ease-in-out infinite;
    box-shadow: 0 0 0 1px rgba(255, 214, 116, 0.55), 0 0 18px rgba(255, 194, 88, 0.35);
}
.global-feedback-item.is-green.feedback-attention {
    box-shadow: 0 0 0 1px rgba(126, 246, 173, 0.58), 0 0 18px rgba(108, 240, 159, 0.38);
}
.global-feedback-item.is-red.feedback-attention {
    box-shadow: 0 0 0 1px rgba(255, 140, 140, 0.62), 0 0 18px rgba(255, 112, 112, 0.4);
}
.global-feedback-item.is-blue.feedback-attention {
    box-shadow: 0 0 0 1px rgba(140, 206, 255, 0.58), 0 0 18px rgba(120, 188, 255, 0.38);
}

.feedback-layer {
    position: fixed;
    inset: 0;
    z-index: 4300;
    pointer-events: none;
}

.feedback-side-stack {
    position: fixed;
    right: 14px;
    top: 98px;
    width: min(90vw, 360px);
    display: grid;
    gap: 8px;
}

.feedback-side-card {
    border-radius: 10px;
    border: 1px solid rgba(126, 178, 235, 0.36);
    background: rgba(8, 17, 33, 0.94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
    padding: 10px 12px;
    transform: translateX(14px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.feedback-side-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.feedback-side-card strong {
    display: block;
    color: #9dd3ff;
    font-size: 0.92rem;
}
.feedback-side-card p {
    margin: 4px 0 0;
    color: #dbeafc;
    font-size: 0.82rem;
    line-height: 1.35;
}
.feedback-side-card.is-red strong { color: #ff9a9a; }
.feedback-side-card.is-amber strong { color: #ffd98f; }
.feedback-side-card.is-gold strong { color: #ffe7a6; }

.feedback-big-moment {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 42%, rgba(230, 193, 115, 0.2), rgba(3, 9, 17, 0.74) 60%);
    opacity: 0;
    transition: opacity 0.24s ease;
}
.feedback-big-moment.is-visible {
    opacity: 1;
}

.feedback-big-card {
    min-width: min(92vw, 580px);
    border-radius: 18px;
    border: 1px solid rgba(255, 223, 153, 0.55);
    background: linear-gradient(180deg, rgba(45, 28, 5, 0.94), rgba(24, 15, 4, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52), 0 0 36px rgba(255, 201, 104, 0.26);
    padding: 26px 28px;
    text-align: center;
    transform: translateY(16px) scale(0.98);
    animation: feedbackPop 0.34s ease forwards;
}
.feedback-big-title {
    display: block;
    font-family: "Cinzel", serif;
    color: #ffe5b3;
    letter-spacing: 0.05em;
    font-size: clamp(26px, 4vw, 44px);
}
.feedback-big-body {
    margin: 8px 0 0;
    color: #fbead1;
    font-size: clamp(13px, 1.8vw, 18px);
}

@keyframes feedbackPop {
    0% { transform: translateY(16px) scale(0.96); }
    100% { transform: translateY(0) scale(1); }
}
@keyframes feedbackPulse {
    0%,100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@media (max-width: 1200px) {
    .global-feedback-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        min-height: 96px;
    }

    .game-shell {
        padding-bottom: 110px;
    }

    .main-panel {
        height: calc(100vh - 118px);
        height: calc(100dvh - 118px);
    }
}

.dashboard-topbar {
    margin-bottom: 18px;
    padding: 14px 18px;
}

.dashboard-topbar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.dashboard-event-card {
    cursor: help;
}

.dashboard-event-list {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    max-height: 112px;
    overflow-y: auto;
    padding-right: 4px;
}

.dashboard-event-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.dashboard-event-line--empty {
    color: rgba(222, 235, 255, 0.72);
}

.dashboard-event-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.dashboard-event-copy strong {
    line-height: 1.2;
    font-size: 0.92rem;
    word-break: break-word;
}

.dashboard-event-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px;
}

.dashboard-event-timer {
    display: inline-block;
    margin-top: 0;
    color: #efd59a;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.dashboard-notice-card strong {
    display: block;
    line-height: 1.35;
}

.dashboard-notice-time {
    display: inline-block;
    margin-top: 7px;
    color: #efd59a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.dashboard-shoutbox-card {
    overflow: hidden;
}

.dashboard-community-card {
    display: grid;
    gap: 10px;
}

.dashboard-community-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-community-actions {
    display: grid;
    gap: 8px;
}

.dashboard-community-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.dashboard-community-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.dashboard-shoutbox-list {
    display: grid;
    gap: 5px;
    margin-top: 6px;
    max-height: 116px;
    overflow: hidden;
}

.dashboard-shoutbox-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    color: #f7ead0;
    font-size: 0.78rem;
    white-space: normal;
}

.dashboard-shoutbox-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.dashboard-shoutbox-type {
    flex: 0 0 auto;
    color: #efc96f;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-shoutbox-type.notice {
    color: #8fd5ff;
}

.dashboard-shoutbox-empty {
    color: rgba(222, 235, 255, 0.62);
    font-size: 0.78rem;
}

.jewel-price-list {
    display: grid;
    gap: 8px;
}

.jewel-price-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(226, 188, 113, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.jewel-price-row span {
    color: #d9e7ff;
    font-weight: 800;
}

.jewel-price-row strong {
    color: #8fe7ff;
}

.jewel-price-note {
    margin: 14px 0 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(143, 231, 255, 0.28);
    color: var(--muted);
    line-height: 1.45;
}

.itemshop-community-actions {
    display: grid;
    gap: 10px;
}

.itemshop-community-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.itemshop-community-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.itemshop-vote-shop-placeholder {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed rgba(226, 188, 113, 0.36);
    border-radius: 14px;
    background: rgba(18, 14, 10, 0.45);
}

.itemshop-vote-shop-placeholder h4 {
    margin: 4px 0 8px;
}

.content-panel,
.panel-main,
.panel-side {
    min-width: 0;
}

.chat-role-badge {
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    animation: chatRolePulse 1.35s ease-in-out infinite;
}

.chat-role-support {
    color: #7df7ff;
    text-shadow: 0 0 8px rgba(125, 247, 255, .72), 0 0 16px rgba(48, 153, 255, .45);
}

.chat-role-gamemaster {
    color: #ffd978;
    text-shadow: 0 0 8px rgba(255, 217, 120, .8), 0 0 18px rgba(255, 160, 42, .55);
}

.chat-role-administrator {
    color: #ff6f6f;
    text-shadow: 0 0 8px rgba(255, 111, 111, .82), 0 0 20px rgba(255, 36, 36, .58);
}

@keyframes chatRolePulse {
    0%, 100% {
        filter: brightness(1);
        opacity: .86;
    }
    50% {
        filter: brightness(1.45);
        opacity: 1;
    }
}

.admin-tabs {
    margin-bottom: 18px;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-list-scroll {
    max-height: 360px;
    overflow: auto;
    padding-right: 6px;
}

.admin-list-compact {
    gap: 8px;
}

.admin-list-compact .admin-card {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
}

.admin-list-compact .admin-card p {
    margin: 3px 0;
    font-size: 0.84rem;
}

.admin-list-compact .skill-meta {
    gap: 6px;
}

.admin-list-compact .pill {
    font-size: 0.72rem;
    padding: 3px 8px;
}

.admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.admin-card-stack {
    align-items: stretch;
    flex-direction: column;
}

.dr-state-badge {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.dr-state-badge.dr-green {
    color: #9dffbf;
    border-color: rgba(86, 207, 122, 0.5);
    background: rgba(38, 112, 61, 0.28);
}

.dr-state-badge.dr-yellow {
    color: #ffe08a;
    border-color: rgba(221, 171, 57, 0.5);
    background: rgba(119, 86, 22, 0.28);
}

.dr-state-badge.dr-orange {
    color: #ffc48a;
    border-color: rgba(212, 122, 58, 0.55);
    background: rgba(111, 58, 19, 0.3);
}

.dr-state-badge.dr-red {
    color: #ff9f9f;
    border-color: rgba(201, 76, 76, 0.58);
    background: rgba(114, 30, 30, 0.34);
}

.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-inline-form input[type="text"],
.admin-inline-form input[type="number"] {
    min-width: 110px;
}

.admin-actions-grid {
    display: grid;
    gap: 10px;
}

.admin-item-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.admin-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    width: 100%;
}

.admin-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-item-row-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-debug-details {
    margin-top: 8px;
}

.admin-debug-details > summary {
    list-style: none;
    cursor: var(--cursor-pointer);
    display: inline-flex;
}

.admin-debug-details > summary::-webkit-details-marker {
    display: none;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.economy-control-form {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(216, 176, 96, 0.28);
    background: linear-gradient(180deg, rgba(13, 27, 50, 0.78), rgba(7, 16, 34, 0.86));
}

.economy-slider-row {
    display: grid;
    gap: 6px;
}

.economy-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #d7c089;
}

.economy-slider-head strong {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.economy-slider-head span {
    min-width: 56px;
    text-align: right;
    color: #ffd980;
    font-weight: 700;
}

.economy-slider {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    appearance: none;
    background: linear-gradient(90deg, rgba(49, 138, 255, 0.82), rgba(255, 198, 94, 0.92));
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.economy-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 235, 182, 0.72);
    background: radial-gradient(circle at 35% 35%, #fff4cf, #e3a23d 70%);
    box-shadow: 0 0 0 3px rgba(243, 186, 80, 0.18), 0 4px 12px rgba(0, 0, 0, 0.38);
    cursor: var(--cursor-pointer);
}

.economy-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 235, 182, 0.72);
    background: radial-gradient(circle at 35% 35%, #fff4cf, #e3a23d 70%);
    box-shadow: 0 0 0 3px rgba(243, 186, 80, 0.18), 0 4px 12px rgba(0, 0, 0, 0.38);
    cursor: var(--cursor-pointer);
}

.admin-add-item-shell {
    position: relative;
}

.admin-add-item-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    background: rgba(2, 6, 14, 0.76);
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-add-item-modal-inline {
    position: static;
    inset: auto;
    z-index: auto;
    background: transparent;
    display: block;
    padding: 0;
}

.admin-add-item-window {
    width: min(1120px, 96vw);
    max-height: 92vh;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(216, 176, 96, 0.32);
    background: rgba(8, 14, 24, 0.96);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.admin-add-item-modal-inline .admin-add-item-window {
    width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 14px;
}

.admin-add-item-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.admin-add-item-catalog-grid {
    display: grid;
    grid-template-columns: repeat(10, 46px);
    grid-auto-rows: 46px;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(216, 176, 96, 0.26);
    background: rgba(11, 20, 38, 0.6);
    max-height: 520px;
    overflow: auto;
    align-content: start;
}

.admin-add-item-card {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(216, 176, 96, 0.3);
    background: rgba(16, 25, 40, 0.9);
    padding: 0;
    display: grid;
    place-items: center;
    cursor: var(--cursor-pointer);
}

.admin-add-item-card:hover {
    border-color: rgba(255, 218, 131, 0.65);
}

.admin-add-item-form {
    display: grid;
    gap: 12px;
}

.admin-add-item-target-grid {
    display: grid;
    grid-template-columns: repeat(5, 46px);
    grid-template-rows: repeat(2, 46px);
    gap: 8px;
    width: max-content;
}

.admin-add-item-target-slot {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px dashed rgba(216, 176, 96, 0.45);
    background: rgba(11, 20, 38, 0.5);
    padding: 0;
    display: grid;
    place-items: center;
    cursor: var(--cursor-pointer);
}

.admin-add-item-target-slot.active {
    box-shadow: 0 0 0 2px rgba(126, 188, 255, 0.5);
    border-color: rgba(126, 188, 255, 0.85);
}

.admin-add-item-target-slot.drop-hover {
    border-color: rgba(126, 188, 255, 0.85);
    background: rgba(24, 35, 62, 0.7);
}
.admin-skillcalc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.admin-skillcalc-grid label,
.admin-skillcalc-stats label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-skillcalc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.admin-skillcalc input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(125, 170, 235, 0.35);
    background:
        linear-gradient(90deg, rgba(120, 205, 255, 0.9), rgba(226, 188, 113, 0.9)) 0 0 / var(--sc-range-fill, 45%) 100% no-repeat,
        linear-gradient(90deg, rgba(20, 34, 56, 0.95), rgba(8, 15, 28, 0.95));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
    outline: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.admin-skillcalc input[type="range"]:hover {
    border-color: rgba(140, 196, 255, 0.7);
}
.admin-skillcalc input[type="range"]:focus {
    box-shadow: 0 0 0 3px rgba(120, 205, 255, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.45);
    border-color: rgba(140, 196, 255, 0.9);
}
.admin-skillcalc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: radial-gradient(circle at 32% 28%, #f4fbff 0 28%, #74cbff 45%, #1e5b9a 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    cursor: var(--cursor-pointer);
}
.admin-skillcalc input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: radial-gradient(circle at 32% 28%, #f4fbff 0 28%, #74cbff 45%, #1e5b9a 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    cursor: var(--cursor-pointer);
}
.admin-skillcalc input[type="range"]::-moz-range-track {
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(125, 170, 235, 0.35);
    background: linear-gradient(90deg, rgba(20, 34, 56, 0.95), rgba(8, 15, 28, 0.95));
}
.admin-skillcalc [data-sc-rank-label] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(140, 196, 255, 0.55);
    background: rgba(27, 49, 78, 0.55);
    color: #d9eeff;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}
.admin-skillcalc-gear-block {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    background: rgba(11, 15, 28, 0.45);
}
.admin-skillcalc-gear-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.admin-skillcalc-gear-labels {
    display: grid;
    gap: 8px;
    margin: 2px 0 6px;
}
.admin-skillcalc-gear-labels span {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(190, 214, 246, 0.78);
    padding-left: 2px;
}
.admin-skillcalc-gear-labels-weapon {
    grid-template-columns: 2fr repeat(2, minmax(90px, 1fr)) minmax(90px, 1fr);
}
.admin-skillcalc-gear-labels-armor {
    grid-template-columns: 2fr repeat(4, minmax(90px, 1fr));
}
.admin-skillcalc-gear-row:last-child {
    margin-bottom: 0;
}
.admin-skillcalc-result {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.admin-skillcalc-toolbar,
.admin-skillcalc-presetbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.admin-skillcalc-toolbar label,
.admin-skillcalc-presetbar label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-skillcalc-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.admin-skillcalc-build {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    background: rgba(11, 16, 28, 0.35);
}
.admin-skillcalc-build[data-hidden-build="1"] {
    display: none;
}
.admin-skillcalc-diff {
    margin-top: 14px;
}
.admin-skillcalc-editor {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    background: rgba(7, 11, 20, 0.35);
}
.admin-skillcalc-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.admin-skillcalc-editor-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-skillcalc-editor-skillhead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(125, 170, 235, 0.28);
    border-radius: 10px;
    background: rgba(20, 34, 56, 0.35);
}
.admin-skillcalc-editor-skillhead img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(125, 170, 235, 0.45);
    object-fit: cover;
    background: rgba(8, 15, 28, 0.75);
}
.admin-skillcalc-save-form {
    margin-top: 10px;
}
.admin-skillcalc-save-form .primary-btn {
    width: 100%;
}
.admin-skillcalc-editor input.skillcalc-invalid {
    border-color: rgba(255, 110, 110, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 110, 110, 0.2);
    background: rgba(120, 24, 24, 0.18);
}
.admin-skillcalc-editor .skillcalc-invalid-text {
    color: #ff8a8a;
    font-weight: 600;
}

.support-ticket-thread {
    max-height: 480px;
    overflow: auto;
}

.support-ticket-message {
    display: grid;
    gap: 6px;
}

.support-ticket-message strong {
    font-size: 0.98rem;
}

.support-ticket-message span {
    color: var(--muted);
    font-size: 0.82rem;
}

.support-ticket-message p {
    margin: 0;
    line-height: 1.55;
}

.support-ticket-message.staff {
    border-left: 3px solid rgba(127, 215, 255, 0.55);
}

.support-ticket-message.player {
    border-left: 3px solid rgba(226, 188, 113, 0.45);
}

.game-grid {
    grid-template-columns: 1.25fr 0.55fr;
}

.panel-main,
.panel-side {
    padding: 22px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 8px 0 0;
    font-family: "Cinzel", serif;
}

.idle-stage,
.info-stack,
.chat-list {
    display: grid;
    gap: 14px;
}

.party-overlay-list {
    display: grid;
    gap: 12px;
}

.party-overlay-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(16, 25, 38, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-overlay-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.party-overlay-namewrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.party-member-presence {
    font-size: 0.8rem;
    font-weight: 700;
}

.party-member-presence.online {
    color: #47ff6d !important;
}

.party-member-presence.offline {
    color: #ff6666 !important;
}

.party-overlay-meta,
.party-buffs-line {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 6px 0 10px;
}

.party-buffs-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.party-member-buffs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 32px;
}

.party-buff-icon,
.party-buff-fallback {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    display: inline-grid;
    place-items: center;
    color: #fff0cf;
    font-size: 0.86rem;
    font-weight: 700;
}

.party-buff-icon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    image-rendering: pixelated;
}

.party-buff-icon--debuff,
.party-buff-fallback--debuff {
    border-color: rgba(255, 107, 107, 0.38);
    background: rgba(100, 19, 25, 0.72);
    color: #ffb3b3;
}

.party-buffs-empty {
    color: var(--muted);
    font-size: 0.82rem;
}

.party-buff-count {
    position: absolute;
    right: -5px;
    bottom: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    border: 1px solid rgba(28, 15, 6, 0.92);
    background: linear-gradient(180deg, rgba(245, 188, 86, 0.98), rgba(181, 117, 34, 0.98));
    color: #1a0f05;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
}

.party-member-feed {
    display: grid;
    gap: 4px;
    min-height: 18px;
    margin: 4px 0 6px;
}

.party-member-feed > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 10px;
    background: rgba(226, 188, 113, 0.08);
    border: 1px solid rgba(226, 188, 113, 0.18);
    color: #ffe6a8;
    font-size: 0.68rem;
    gap: 8px;
    white-space: normal;
}

.party-member-feed > span > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.party-skill-feed-text {
    color: #ff6f6f;
    font-weight: 700;
}

.party-feed-time {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.58rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dashboard-status-line {
    margin-top: 10px;
}

.dashboard-travel-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 12px;
    padding: 12px;
    border-radius: 18px;
    background:
        linear-gradient(140deg, rgba(10, 18, 32, 0.78), rgba(6, 12, 24, 0.74)),
        radial-gradient(100% 120% at 100% 0%, rgba(255, 210, 120, 0.06), rgba(255, 210, 120, 0));
    border: 1px solid rgba(226, 188, 113, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(2, 8, 20, 0.35);
}

.dashboard-top-idle-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 6px 0 8px;
}

.dashboard-top-idle-actions .start-idle-form {
    justify-content: flex-end;
    align-items: center;
}

.dashboard-top-idle-actions .empty-state {
    min-height: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(8, 18, 28, 0.72);
    border: 1px solid rgba(226, 188, 113, 0.12);
    color: #d7e7ff;
}

.dashboard-top-idle-actions .primary-btn,
.dashboard-top-idle-actions .ghost-btn {
    min-height: 38px;
    padding: 8px 18px;
    white-space: nowrap;
}

.dashboard-travel-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: end;
    border: 1px solid rgba(226, 188, 113, 0.18);
    border-radius: 14px;
    padding: 10px;
    background: linear-gradient(160deg, rgba(255, 219, 143, 0.05), rgba(12, 24, 40, 0.28));
}

.dashboard-travel-form label {
    display: grid;
    gap: 6px;
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-travel-form .world-select {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(226, 188, 113, 0.36);
    background:
        linear-gradient(180deg, rgba(7, 15, 28, 0.94), rgba(8, 18, 32, 0.96)),
        linear-gradient(90deg, rgba(255, 214, 126, 0.08), rgba(110, 170, 255, 0.06));
}

.travel-hint {
    display: block;
    margin-top: 1px;
    color: rgba(206, 226, 255, 0.76);
    font-size: 0.66rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

#dungeon-floor-wrap[hidden] {
    display: none !important;
}

.dungeon-dual-select {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: end;
}

.dungeon-dual-select #dungeon-floor-wrap {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.dungeon-dual-select #dungeon-floor-wrap.is-visible {
    opacity: 1;
    transform: translateX(0);
}

#dungeon-group-select {
    font-weight: 700;
}

.compact-action-btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
}

.idle-animation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
    position: relative;
}

.fighter-card {
    padding: 14px;
    border-radius: 20px;
    background: rgba(17, 27, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.dashboard-monster-card-wrap {
    min-width: 0;
}

.dashboard-current-quests-card {
    margin-bottom: 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(6, 11, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-top-quest-strip {
    display: flex;
    justify-content: stretch;
    margin: 0 0 10px;
}

.dashboard-top-quest-strip .dashboard-current-quests-card {
    width: 100%;
}

.dashboard-right-combat-stack {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: start;
}

.dashboard-current-quests-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dashboard-current-quests-list {
    display: grid;
    gap: 4px;
    max-height: 126px;
    overflow-y: auto;
    padding-right: 4px;
}

.dashboard-current-quest-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-current-quest-name,
.dashboard-current-quest-progress,
.dashboard-current-quests-empty {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.dashboard-current-quest-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dcecff;
}

.dashboard-current-quest-progress {
    flex: 0 0 auto;
    color: var(--gold);
    white-space: nowrap;
}

.dashboard-current-quest-tag {
    flex: 0 0 auto;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #dcecff;
}

.dashboard-current-quest-tag.guild {
    color: #d8ffee;
    border-color: rgba(118, 227, 167, 0.25);
    background: rgba(118, 227, 167, 0.08);
}

.dashboard-current-quest-tag.quest {
    color: #fff1c4;
    border-color: rgba(226, 188, 113, 0.3);
    background: rgba(226, 188, 113, 0.09);
}

.dashboard-current-quests-empty {
    color: var(--muted);
    text-transform: uppercase;
    padding: 6px 2px;
}

.dashboard-monster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.dashboard-monster-card {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 178px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(6, 11, 18, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.dashboard-monster-card.is-searching {
    border-style: dashed;
    color: var(--muted);
}

.dashboard-monster-card strong {
    min-height: 32px;
    display: grid;
    place-items: center;
    font-size: 0.86rem;
    line-height: 1.15;
}

.dashboard-skill-effect-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 35;
}

.dashboard-skill-projectile {
    position: absolute;
    width: 86px;
    height: 86px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 16px rgba(255, 90, 40, 0.95));
    z-index: 36;
}

.dashboard-skill-projectile.fly {
    transition: left 320ms linear, top 320ms linear;
}

.dashboard-skill-impact {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.3);
    background: radial-gradient(circle, rgba(255, 182, 150, 0.95) 0%, rgba(255, 66, 48, 0.65) 40%, rgba(255, 40, 40, 0) 75%);
    animation: dashboardSkillImpact 340ms ease-out forwards;
    z-index: 36;
}

@keyframes dashboardSkillImpact {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(6.2); opacity: 0; }
}
.dashboard-monster-card small {
    display: block;
    text-align: center;
    font-size: 0.76rem;
    margin-top: 2px;
}
.monster-level-grey { color: #b7b7b7; }
.monster-level-blue { color: #69b7ff; }
.monster-level-green { color: #7fd87f; }
.monster-level-yellow { color: #f0de89; }
.monster-level-orange { color: #ff9a5f; }
.monster-level-red { color: #ff5f7a; }
.monster-level-purple { color: #c789ff; }

.fighter-bars {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-skillbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.dashboard-skill-slot {
    position: relative;
    min-height: 82px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.dashboard-skill-slot.empty {
    opacity: 0.48;
}

.dashboard-skill-slot.cooldown-active {
    box-shadow: inset 0 0 0 999px rgba(6, 11, 18, 0.42);
}

.dashboard-skill-slot img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
}

.dashboard-skill-slot-index,
.dashboard-skill-rank {
    position: absolute;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(8, 14, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-skill-slot-index {
    top: 6px;
    left: 6px;
    color: var(--muted);
}

.dashboard-skill-rank {
    top: 6px;
    right: 6px;
    color: var(--gold);
}

.dashboard-skill-charge-layer {
    position: absolute;
    left: 50%;
    top: 26px;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    display: none;
    border-radius: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    --charge-clear-angle: 0deg;
    background: conic-gradient(
        from -90deg,
        rgba(0, 0, 0, 0) 0 var(--charge-clear-angle),
        rgba(0, 0, 0, 0.72) var(--charge-clear-angle) 360deg
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-skill-charge-layer.active {
    display: block;
}

.dashboard-skill-charge-layer.active::after {
    content: attr(data-charge-current);
    position: absolute;
    right: 2px;
    bottom: 1px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #4dff88;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}


.dashboard-skill-charge-layer i {
    display: none;
}

.dashboard-skill-charge-layer.active[data-charge-current="1"] { --charge-clear-angle: 72deg; }
.dashboard-skill-charge-layer.active[data-charge-current="2"] { --charge-clear-angle: 144deg; }
.dashboard-skill-charge-layer.active[data-charge-current="3"] { --charge-clear-angle: 216deg; }
.dashboard-skill-charge-layer.active[data-charge-current="4"] { --charge-clear-angle: 288deg; }
.dashboard-skill-charge-layer.active[data-charge-current="5"] { --charge-clear-angle: 360deg; }

.dashboard-skill-name {
    margin-top: 8px;
    font-size: 0.72rem;
    line-height: 1.25;
}

.dashboard-skill-cooldown {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff4d7;
    background: radial-gradient(circle, rgba(6, 11, 18, 0.18), rgba(6, 11, 18, 0.82));
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.dashboard-skill-cooldown.visible {
    display: grid;
}

.skills-page-loadout {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    max-width: 760px;
}

.skill-slot-clear-form {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 4;
}

.skill-slot-clear {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 14, 23, 0.9);
    color: #ffd9d9;
    font-size: 0.72rem;
    cursor: var(--cursor-pointer);
}

.fighter-silhouette {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 20px;
    animation: idlePulse 3.2s ease-in-out infinite;
}

.fighter-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    animation: idlePulse 3.2s ease-in-out infinite;
}

.fighter-silhouette.player {
    background: linear-gradient(180deg, rgba(226, 188, 113, 0.92), rgba(80, 52, 18, 0.6));
}

.fighter-silhouette.monster {
    background: linear-gradient(180deg, rgba(220, 83, 83, 0.92), rgba(69, 18, 18, 0.6));
}

.vs-badge {
    font-family: "Cinzel", serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-top: 260px;
}

.compact-bars {
    margin: 0;
}

.log-box {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
}

.start-idle-form,
.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.start-idle-form select,
.start-idle-form input,
.inline-form input {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 11, 18, 0.7);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.icon-32 {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 8px;
}

.monster-preview {
    width: 76px;
    height: 76px;
    object-fit: contain;
    image-rendering: pixelated;
    margin: 0 auto 4px;
}

.rich-skill {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.skyfx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.skyfx span {
    position: absolute;
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.22;
    animation: floatOrb 16s ease-in-out infinite;
}

.skyfx span:nth-child(1) {
    top: 8%;
    left: 4%;
    background: rgba(127, 215, 255, 0.22);
}

.skyfx span:nth-child(2) {
    top: 20%;
    right: 6%;
    background: rgba(226, 188, 113, 0.18);
    animation-delay: -4s;
}

.skyfx span:nth-child(3) {
    top: 54%;
    left: 12%;
    width: 120px;
    height: 120px;
    background: rgba(118, 227, 167, 0.18);
    animation-delay: -7s;
}

.skyfx span:nth-child(4) {
    bottom: 8%;
    right: 10%;
    background: rgba(255, 122, 122, 0.14);
    animation-delay: -10s;
}

.skyfx span:nth-child(5) {
    top: 64%;
    right: 36%;
    width: 90px;
    height: 90px;
    background: rgba(127, 215, 255, 0.12);
    animation-delay: -2s;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    padding: 40px 0 28px;
}

.hero-copy h1,
.section-head h2,
.database-section h2,
.database-section h3 {
    font-family: "Cinzel", serif;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    margin: 8px 0 18px;
    line-height: 1.02;
}

.lead {
    max-width: 62ch;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.chip-btn {
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn {
    background: linear-gradient(135deg, #d6b06a, #f0d28e);
    color: #1d1304;
    font-weight: 700;
}

.ghost-btn,
.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.primary-btn:hover,
.ghost-btn:hover,
.chip-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 188, 113, 0.42);
}

.chip-btn.active {
    background: linear-gradient(160deg, #edc76f, #c49342);
    color: #1e1308;
    border-color: rgba(255, 223, 140, 0.45);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(226, 188, 113, 0.28);
    background: linear-gradient(180deg, rgba(23, 33, 49, 0.96), rgba(10, 16, 26, 0.98));
    color: #eaf1ff;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: var(--cursor-pointer);
    transition: transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(226, 188, 113, 0.52);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.btn:focus-visible {
    outline: none;
    border-color: rgba(127, 215, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(127, 215, 255, 0.18);
}

.btn-primary {
    background: linear-gradient(160deg, #e3be71, #caa35a);
    border-color: rgba(246, 213, 139, 0.55);
    color: #1a1206;
}

.btn-primary:hover {
    border-color: rgba(255, 225, 156, 0.78);
    filter: brightness(1.04);
}

.btn-ghost {
    background: linear-gradient(180deg, rgba(17, 29, 46, 0.94), rgba(9, 16, 26, 0.96));
    border-color: rgba(132, 156, 190, 0.38);
    color: #dde8fa;
}

.btn-ghost:hover {
    border-color: rgba(127, 215, 255, 0.62);
    color: #f2f8ff;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    filter: grayscale(0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(22, 34, 55, 0.92), rgba(11, 18, 29, 0.94));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), transparent 35%);
    pointer-events: none;
}

.hero-panel {
    align-self: center;
}

.portrait-placeholder {
    position: relative;
    min-height: 320px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 215, 138, 0.22), transparent 28%),
        linear-gradient(160deg, #21324b, #0d1522 70%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.portrait-glow {
    position: absolute;
    width: 160px;
    height: 220px;
    border-radius: 46% 46% 36% 36%;
    background: linear-gradient(180deg, rgba(255, 232, 182, 0.75), rgba(226, 188, 113, 0.1));
    box-shadow: 0 0 80px rgba(226, 188, 113, 0.35);
    animation: idlePulse 3.6s ease-in-out infinite;
}

.portrait-label {
    position: relative;
    z-index: 1;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(9, 15, 25, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-meta,
.status-topline,
.quick-panels,
.currency-bars,
.database-grid {
    display: grid;
    gap: 14px;
}

.hero-meta {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
}

.meta-label,
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--muted);
}

.eyebrow {
    color: var(--gold);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    padding-bottom: 42px;
}

.status-card,
.idle-card,
.world-card,
.stats-card,
.jobs-card,
.skills-card,
.inventory-card,
.settings-card,
.exp-card {
    min-width: 0;
}

.status-card,
.idle-card {
    grid-column: span 6;
}


.idle-extra-item,
.idle-extra-drop {
    padding: 10px 14px;
    border-radius: 12px;
    margin-top: 6px;
    font-size: 14px;
}

.idle-extra-item {
    background: linear-gradient(90deg, rgba(80,120,255,0.15), transparent);
    border: 1px solid rgba(120,160,255,0.2);
    color: #cfe0ff;
}

.idle-extra-skill {
    background: linear-gradient(90deg, rgba(255,200,80,0.15), transparent);
    border: 1px solid rgba(255,200,120,0.2);
    color: #ffe6a8;
}

.idle-extra-drop {
    background: linear-gradient(90deg, rgba(255,200,80,0.15), transparent);
    border: 1px solid rgba(255,200,120,0.2);
    color: #ffe6a8;
}

.combat-item {
    background: linear-gradient(90deg, rgba(80,120,255,0.15), transparent);
    border: 1px solid rgba(120,160,255,0.25);
    color: #cfe0ff;
    margin-top: 6px;
}

.combat-skill {
    background: linear-gradient(90deg, rgba(80,120,255,0.15), transparent);
    border: 1px solid rgba(120,160,255,0.25);
    color: #cfe0ff;
    margin-top: 6px;
}
.combat-drop {
    background: linear-gradient(90deg, rgba(255,200,80,0.15), transparent);
    border: 1px solid rgba(255,200,120,0.25);
    color: #ffe6a8;
    margin-top: 6px;
}

.combat-fade-out {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.combat-fade-in {
    opacity: 1;
    transform: translateY(0);
}


.combat-feedback:empty {
    opacity: 0;
}

.world-card,
.stats-card,
.jobs-card,
.skills-card,
.settings-card,
.exp-card {
    grid-column: span 4;
}

.inventory-card {
    grid-column: span 8;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.section-head h2,
.database-section h2 {
    margin: 8px 0 0;
    font-size: 1.55rem;
}

.badge {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(127, 215, 255, 0.1);
    border: 1px solid rgba(127, 215, 255, 0.18);
    color: #c7efff;
    font-size: 0.88rem;
}

.bars {
    display: grid;
    gap: 14px;
    margin: 18px 0 20px;
}

.bar-wrap {
    display: grid;
    gap: 8px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.92rem;
}

.bar,
.travel-line {
    position: relative;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.bar span,
.travel-line span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    border-radius: inherit;
}

.bar.hp span {
    background: linear-gradient(90deg, #e56a6a, #ff9d87);
}

.bar.mp span {
    background: linear-gradient(90deg, #64b8ff, #9ce8ff);
}

.bar.exp span,
.travel-line span {
    background: linear-gradient(90deg, #d8ac57, #f0da8e);
}

.quick-panels {
    grid-template-columns: repeat(2, 1fr);
}

.mini-card,
.enemy-card,
.travel-card,
.slot-card,
.setting-item,
.world-item,
.skill-card,
.job-step,
.currency-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(16, 25, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.mini-card p,
.enemy-card p,
.stats-footnote,
.death-rule,
.feature-list,
.skill-card p {
    color: var(--muted);
    line-height: 1.6;
}

.muted {
    color: var(--muted);
}

.combat-stage,
.skill-loadout,
.inventory-layout {
    display: grid;
    gap: 16px;
}

.combat-stage {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
}

.enemy-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.enemy-avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(175, 55, 55, 0.75), rgba(85, 19, 19, 0.9));
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06);
}

.travel-card {
    display: grid;
    gap: 10px;
}

.skill-loadout {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
}

.loadout-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.slot-card {
    min-width: 124px;
}

.combat-feed {
    display: grid;
    gap: 10px;
}

.feed-line {
    padding: 12px 14px;
    border-left: 3px solid rgba(226, 188, 113, 0.78);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: #d4dfef;
    animation: slideUp 360ms ease;
}

.world-list,
.skills-grid,
.settings-list,
.timeline {
    display: grid;
    gap: 12px;
}

.skill-book-panel,
.teacher-skill-panel {
    display: grid;
    gap: 18px;
    overflow: visible;
}

.skill-book-panel {
    max-width: 1280px;
    margin: 0;
    padding: 16px 18px 22px;
    position: relative;
    border-radius: 26px;
    border: 1px solid rgba(231, 188, 109, 0.45);
    background:
        radial-gradient(1000px 320px at 5% -20%, rgba(246, 181, 78, 0.22), transparent 56%),
        radial-gradient(1000px 320px at 100% 120%, rgba(32, 96, 177, 0.26), transparent 60%),
        linear-gradient(135deg, rgba(8, 18, 40, 0.96), rgba(6, 12, 28, 0.98));
    box-shadow: inset 0 0 0 1px rgba(115, 177, 255, 0.22), 0 24px 54px rgba(0, 0, 0, 0.45);
}

.skill-build-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.skill-build-toolbar-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(31, 20, 10, 0.92), rgba(15, 10, 6, 0.94));
    border: 1px solid rgba(231, 188, 109, 0.34);
    border-radius: 12px;
    padding: 8px 10px;
}

.skill-build-toolbar-form label {
    color: #f4cf86;
    font-size: 0.75rem;
}

.skill-build-toolbar-form select,
.skill-build-toolbar-form input[type="text"] {
    background: rgba(8, 12, 23, 0.85);
    border: 1px solid rgba(231, 188, 109, 0.28);
    color: #e8f1ff;
    border-radius: 8px;
    padding: 6px 8px;
}

.skill-book-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
}

.teacher-skill-panel {
    padding: 18px;
    padding-bottom: 210px;
    border-radius: 22px;
    background: rgba(9, 15, 24, 0.72);
    border: 1px solid rgba(226, 188, 113, 0.22);
}

.skill-book-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.equipped-build-label {
    margin-left: 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #f0cb84;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(226, 188, 113, 0.36);
    background: rgba(24, 16, 9, 0.66);
    vertical-align: middle;
}

.skill-points-corner {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(34, 23, 10, 0.94), rgba(17, 12, 8, 0.96));
    border: 1px solid rgba(226, 188, 113, 0.46);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-points-corner span {
    color: #f0cb84;
    font-size: 0.72rem;
}

.skill-points-corner strong {
    color: #fff2cf;
    font-size: 0.9rem;
}

.skill-job-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(226, 188, 113, 0.16);
}

.skill-job-tab {
    min-width: 92px;
    padding: 9px 13px;
    border-radius: 10px 10px 4px 4px;
    text-align: center;
    color: #f7dfaa;
    background: linear-gradient(180deg, rgba(65, 42, 16, 0.9), rgba(18, 13, 8, 0.94));
    border: 1px solid rgba(226, 188, 113, 0.28);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
}

.skill-job-tab.active {
    color: #fff8df;
    border-color: rgba(255, 214, 132, 0.78);
    background: linear-gradient(180deg, rgba(171, 93, 30, 0.98), rgba(92, 47, 13, 0.98));
    box-shadow: 0 0 18px rgba(226, 188, 113, 0.15);
}

.skill-job-tab.disabled {
    opacity: 0.35;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

.skill-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 14px;
    overflow: visible;
}

.skill-category-grid-wrap {
    display: grid;
    gap: 18px;
}

.skill-category-block {
    border: 1px solid rgba(231, 188, 109, 0.28);
    border-radius: 16px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(9, 18, 38, 0.74), rgba(5, 11, 25, 0.82));
}

.skill-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-category-head h4 {
    margin: 0;
    color: #ffe7bd;
    letter-spacing: 0.04em;
}

.skill-category-head span {
    color: #8fb1df;
    font-size: 0.78rem;
}

.skill-icon-grid.skill-icon-grid-fixed {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    justify-content: stretch;
    gap: 10px;
}

.teacher-skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.skill-icon-card {
    position: relative;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 5px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(18, 13, 8, 0.92), rgba(9, 7, 5, 0.94));
    border: 1px solid rgba(226, 188, 113, 0.3);
    color: var(--text);
    text-align: center;
    z-index: 1;
}

.skill-icon-card.skill-icon-card-empty {
    opacity: 0.35;
    border-style: dashed;
}

.skill-icon-card:hover {
    z-index: 90;
}

.skill-icon-card[draggable="true"] {
    cursor: grab;
}

.skill-icon-card:active {
    cursor: grabbing;
}

.skill-icon-frame {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(226, 188, 113, 0.14);
}

.skill-icon-frame img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
}

.skill-detail-panel {
    border: 1px solid rgba(231, 188, 109, 0.34);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(19, 13, 8, 0.92), rgba(8, 7, 8, 0.95));
    padding: 12px;
    height: fit-content;
    position: sticky;
    top: 86px;
}

.skill-detail-panel h4 {
    margin: 0 0 10px;
    color: #ffd99f;
}

.skill-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(231, 188, 109, 0.36);
    display: grid;
    place-items: center;
    background: rgba(7, 11, 20, 0.8);
    margin-bottom: 10px;
}

.skill-detail-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.skill-detail-panel > strong {
    display: block;
    color: #fff4dc;
    margin-bottom: 6px;
}

.skill-detail-panel > p {
    margin: 0 0 10px;
    color: #c9daef;
    font-size: 0.8rem;
    line-height: 1.35;
}

.skill-detail-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.skill-detail-stats div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    color: #d7e6fb;
    border-bottom: 1px dashed rgba(231, 188, 109, 0.2);
    padding-bottom: 3px;
}

.skill-detail-stats span {
    color: #9ab7dc;
}

.skill-book-panel .dashboard-skillbar.skills-page-loadout {
    background: linear-gradient(180deg, rgba(11, 23, 51, 0.88), rgba(6, 14, 32, 0.95));
    border: 1px solid rgba(231, 188, 109, 0.34);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
    overflow: visible;
}

.skill-book-panel .dashboard-skill-slot {
    width: 120px;
    min-height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(231, 188, 109, 0.3);
    background: linear-gradient(180deg, rgba(34, 21, 11, 0.88), rgba(12, 8, 6, 0.94));
    overflow: visible;
    z-index: 2;
}

.dashboard-skill-slot.has-hover {
    position: relative;
}

.dashboard-skill-slot.has-hover .skill-hover-card {
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
}

.dashboard-skill-slot.has-hover:hover .skill-hover-card {
    display: grid;
    z-index: 120;
}

.skill-icon-card strong {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-icon-card > span {
    color: var(--muted);
    font-size: 0.72rem;
}

.skill-cast-mini-form {
    position: absolute;
    right: 2px;
    bottom: 2px;
}

.skill-cast-mini-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 216, 136, 0.65);
    background: linear-gradient(180deg, #f2d486, #d6a84e);
    color: #1b1207;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
}

.tiny-gold-btn {
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f2d486, #d6a84e);
    color: #1b1207;
    font-weight: 800;
    cursor: var(--cursor-pointer);
}

.tiny-gold-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.skill-build-slots-panel {
    border-top: 1px solid rgba(231, 188, 109, 0.2);
    padding-top: 12px;
    display: grid;
    gap: 12px;
}

.skill-build-slots-head h3 {
    margin: 0;
}

.skill-build-slots-head p {
    margin: 4px 0 0;
}

.skill-build-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.skill-build-slot-card {
    border: 1px solid rgba(231, 188, 109, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(20, 14, 7, 0.86), rgba(9, 7, 5, 0.9));
    padding: 10px;
    display: grid;
    gap: 8px;
}

.skill-build-slot-index {
    color: #f4cf86;
    font-weight: 700;
    font-size: 0.84rem;
}

.skill-build-slot-name-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.skill-build-slot-name-form input[type="text"] {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid rgba(230, 187, 107, 0.28);
    background: rgba(7, 11, 20, 0.8);
    color: #e8f1ff;
    padding: 6px 8px;
}

.skill-hover-card {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    z-index: 80;
    width: 360px;
    display: none;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(11, 8, 4, 0.98);
    border: 1px solid rgba(226, 188, 113, 0.62);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    color: #fff2d4;
    text-align: center;
    pointer-events: none;
}

.teacher-skill-panel .skill-icon-grid.skill-icon-grid-fixed,
.teacher-skill-panel .teacher-skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    justify-content: stretch;
    gap: 10px;
}

.teacher-skill-panel .skill-icon-card {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 5px;
    border-radius: 6px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0;
    margin: 0 auto;
}

.teacher-skill-main-layout {
    align-items: start;
}

.teacher-skill-entry {
    display: grid;
    gap: 4px;
    justify-items: center;
    align-content: start;
}

.teacher-skill-card.selected {
    border-color: rgba(110, 224, 149, 0.9);
    box-shadow: 0 0 0 1px rgba(110, 224, 149, 0.45), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.teacher-skill-action-form {
    width: 56px;
}

.teacher-skill-action-btn {
    width: 100%;
    min-height: 20px;
    padding: 1px 0;
    font-size: 0.67rem;
    line-height: 1;
    border-radius: 0;
    border: 0;
    background: url("ui/B2-mini-default.bmp") center center / 100% 100% no-repeat;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
    transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.teacher-skill-action-btn:hover:not(:disabled) {
    background-image: url("ui/B2-mini-over.bmp");
    filter: brightness(1.02);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.teacher-skill-action-btn:active:not(:disabled) {
    background-image: url("ui/B2-mini-on.bmp");
    filter: brightness(0.98);
    transform: translateY(0);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.42);
}

.teacher-skill-detail-panel #teacher-skill-detail-next {
    color: #84ff98;
    font-weight: 700;
}

.teacher-skill-panel .skill-icon-frame {
    width: 42px;
    height: 42px;
}

.teacher-skill-select-btn {
    cursor: pointer;
    padding: 0;
    appearance: none;
    border: 0;
    background: transparent;
}

.teacher-skill-panel .skill-icon-card strong {
    display: block;
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-skill-panel .skill-icon-card > span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

@media (max-width: 980px) {
    .skill-book-main-layout {
        grid-template-columns: 1fr;
    }

    .skill-detail-panel {
        position: static;
    }

    .skill-icon-grid.skill-icon-grid-fixed {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }

    .teacher-skill-panel .skill-icon-grid.skill-icon-grid-fixed,
    .teacher-skill-panel .teacher-skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }

    .skill-build-slots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .skill-icon-grid.skill-icon-grid-fixed {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }

    .teacher-skill-panel .skill-icon-grid.skill-icon-grid-fixed,
    .teacher-skill-panel .teacher-skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }

    .skill-build-toolbar-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .skill-points-corner {
        position: static;
        width: fit-content;
        margin-bottom: 8px;
    }
}

.skill-icon-card:hover .skill-hover-card {
    display: grid;
}

.skill-hover-card strong {
    color: #4eff5f;
    font-size: 0.94rem;
}

.skill-hover-card > span {
    color: #f5d985;
    font-size: 0.74rem;
    line-height: 1.35;
}

.skill-hover-lines {
    display: grid;
    gap: 3px;
    color: #f6f1e7;
    font-size: 0.72rem;
}

.skill-hover-lines p {
    margin: 0;
}

.skill-hover-lines .next-rank-line {
    color: #84ff98;
    font-weight: 700;
}

#skill-detail-next {
    color: #84ff98;
    font-weight: 700;
}

.dashboard-skill-slot.drag-over {
    border-color: rgba(242, 212, 134, 0.85);
    box-shadow: 0 0 18px rgba(226, 188, 113, 0.18);
}

.npc-grid {
    grid-template-columns: repeat(2, 1fr);
}

.npc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.npc-filter-btn.active {
    background: linear-gradient(180deg, rgba(174, 97, 40, 0.98), rgba(113, 57, 18, 0.98));
    border-color: rgba(240, 201, 118, 0.52);
    color: #fff2d4;
}

.npc-compact-list {
    display: grid;
    gap: 10px;
}

.npc-compact-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(226, 188, 113, 0.16);
    background: rgba(16, 22, 32, 0.78);
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.npc-compact-row:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 188, 113, 0.3);
    background: rgba(24, 31, 44, 0.9);
}

.npc-compact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.npc-compact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    image-rendering: pixelated;
    flex: 0 0 32px;
    border: 1px solid rgba(226, 188, 113, 0.18);
    background: rgba(8, 12, 20, 0.92);
}

.npc-compact-icon-fallback {
    display: inline-grid;
    place-items: center;
    color: #ffe6b0;
    font-size: 0.74rem;
    font-weight: 700;
}

.npc-compact-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.npc-compact-copy strong {
    color: #fff4da;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.npc-compact-copy span {
    color: rgba(233, 220, 189, 0.72);
    font-size: 0.82rem;
}

.npc-quest-ready {
    position: relative;
    animation: npcQuestReadyPulse 2.2s cubic-bezier(0.42, 0, 0.28, 1) infinite;
}

.npc-quest-ready::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 223, 140, 0.95), rgba(255, 173, 64, 0.95));
    box-shadow: 0 0 12px rgba(255, 191, 92, 0.7);
    animation: npcQuestReadyBlink 1.9s ease-in-out infinite;
}

.npc-quest-turnin-ready::before {
    background: linear-gradient(180deg, rgba(123, 255, 173, 0.95), rgba(44, 204, 106, 0.95));
    box-shadow: 0 0 12px rgba(77, 223, 132, 0.72);
}

.npc-quest-ready-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffe9bb;
    background: rgba(255, 173, 64, 0.18);
    border: 1px solid rgba(255, 173, 64, 0.6);
    box-shadow: 0 0 10px rgba(255, 173, 64, 0.28);
    animation: npcQuestReadyBlink 1.9s ease-in-out infinite;
}

.npc-quest-turnin-badge {
    color: #d8ffe8;
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.72);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.34);
}

@keyframes npcQuestReadyPulse {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(255, 173, 64, 0.22);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(255, 173, 64, 0.56);
    }
}

@keyframes npcQuestReadyBlink {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.world-item {
    display: grid;
    gap: 10px;
}

.npc-card {
    width: 100%;
    text-align: left;
    cursor: var(--cursor-pointer);
    transition: transform 180ms ease, border-color 180ms ease;
}

.npc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(226, 188, 113, 0.28);
}

.world-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.world-monsters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(127, 215, 255, 0.08);
    border: 1px solid rgba(127, 215, 255, 0.14);
    color: #d3f0ff;
    font-size: 0.84rem;
}

.stats-table {
    display: grid;
    gap: 10px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.stat-row strong,
.job-step strong,
.world-item strong,
.skill-card strong {
    display: block;
}

.stat-meta {
    text-align: right;
    color: var(--muted);
    font-size: 0.92rem;
}

.stats-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.stats-commit-bar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.stat-preview {
    text-align: right;
    color: var(--emerald);
    font-weight: 700;
}

.timeline {
    position: relative;
}

.job-step {
    position: relative;
    padding-left: 18px;
}

.job-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(226, 188, 113, 0.12);
}

.skills-grid {
    grid-template-columns: 1fr;
}

.skill-card {
    display: grid;
    gap: 8px;
}

.skill-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inventory-layout {
    grid-template-columns: 300px 1fr;
}

.inventory-hub {
    display: grid;
    grid-template-columns: 356px auto;
    gap: 14px;
    align-items: start;
    justify-content: start;
}

body[data-page="inventory"] .inventory-hub {
    grid-template-columns: 556px 609px;
    gap: 14px;
    align-items: start;
    justify-content: start;
}

.mobile-inventory-tabs {
    display: none;
}

.characters-tab-shell {
    margin-bottom: 12px;
}

.characters-tab-nav {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(226, 188, 113, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 14, 24, 0.88), rgba(9, 18, 30, 0.74));
    box-shadow: inset 0 0 0 1px rgba(255, 229, 171, 0.05);
}

.characters-tab-nav .chip-btn {
    min-height: 40px;
    font-weight: 700;
}

.characters-tab-nav .chip-btn.active {
    border-color: rgba(226, 188, 113, 0.5);
    background: linear-gradient(180deg, rgba(153, 102, 31, 0.42), rgba(96, 62, 18, 0.3));
    color: #ffe7b7;
}

.character-name-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.class-mini-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(226, 188, 113, 0.5);
    object-fit: cover;
    image-rendering: pixelated;
}

.inventory-quick-stats {
    width: 445px;
    max-width: 100%;
    margin: 12px auto 0;
    padding: 12px;
    border: 1px solid rgba(214, 176, 96, 0.26);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(25, 18, 11, 0.97), rgba(13, 10, 7, 0.96)),
        radial-gradient(circle at top, rgba(255, 218, 150, 0.08), transparent 52%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 237, 198, 0.04),
        0 24px 46px rgba(0, 0, 0, 0.28);
}

.stats-inventory-panel {
    width: 556px;
    min-height: 420px;
    padding: 10px 10px 10px;
    background:
        linear-gradient(180deg, rgba(25, 18, 11, 0.97), rgba(13, 10, 7, 0.96)),
        radial-gradient(circle at top, rgba(255, 218, 150, 0.08), transparent 52%);
    border: 1px solid rgba(214, 176, 96, 0.26);
    border-radius: 22px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 237, 198, 0.04),
        0 24px 46px rgba(0, 0, 0, 0.28);
}

.stats-inventory-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stats-inventory-title {
    font-family: "Cinzel", serif;
    font-size: 1.05rem;
    color: #f8ebca;
}

.stats-points-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(228, 188, 111, 0.09);
    border: 1px solid rgba(228, 188, 111, 0.18);
    color: #dbc79d;
    font-size: 0.74rem;
}

.stats-points-chip strong {
    color: #fff1d1;
    margin-left: 4px;
}

.stats-points-chip.is-invalid {
    border-color: rgba(228, 104, 104, 0.36);
    background: rgba(120, 32, 32, 0.16);
    color: #ffcece;
}

.stats-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
}

.stats-identity-box {
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(214, 176, 96, 0.12);
    display: grid;
    gap: 1px;
    min-height: 36px;
    align-content: center;
}

.stats-identity-box-wide {
    grid-column: 1 / -1;
}

.stats-identity-box span {
    color: rgba(226, 214, 187, 0.6);
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stats-identity-box strong {
    color: #fff2d6;
    font-size: 0.75rem;
    line-height: 1.05;
}

.stats-fantasy-table {
    display: grid;
    gap: 4px;
}

.stats-fantasy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
}

.stats-fantasy-row-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-attr-cell,
.stats-derived-cell {
    min-height: 38px;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(214, 176, 96, 0.11);

    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 11px;
}

.stats-short-label {
    color: #d4b06e;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.stats-attr-value,
.stats-derived-cell strong {
    color: #fff4da;
    font-size: 0.72rem;
    line-height: 1.02;

}

.stats-attr-bonus {
    color: #78e8a6;
    font-size: 0.68rem;
    min-height: 0.72em;
    line-height: 1;
}

.stats-bonus-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
    min-height: 0.8rem;
    font-size: 0.52rem;
    color: rgba(230, 220, 198, 0.72);
    line-height: 1;
}

.stats-bonus-source strong {
    color: #f6ead2;
    font-weight: 700;
}

.stats-attr-preview,
.stats-derived-preview {
    color: #78e8a6;
    font-size: 0.58rem;
    min-height: 0.72em;
    line-height: 1;
}

.stats-attr-preview.stats-attr-preview-pending {
    color: #6bb7ff;
    font-weight: 700;
}

.stats-attr-actions {
    display: flex;
    gap: 3px;
    margin-top: 2px;
}

.stat-step-btn {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(219, 177, 93, 0.24);
    background: linear-gradient(180deg, rgba(49, 35, 20, 0.96), rgba(22, 16, 10, 0.96));
    color: #f4dfb6;
    font-weight: 700;
    font-size: 0.68rem;
    line-height: 1;
    cursor: var(--cursor-pointer);
}

.stat-step-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.stats-attr-cost {
    color: rgba(226, 214, 187, 0.54);
    font-size: 0.52rem;
    line-height: 1;
}

.stats-commit-bar-compact {
    margin-top: 6px;
}

.stats-commit-bar-compact .ghost-btn,
.stats-commit-bar-compact .primary-btn {
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.loot-filter-box {
    margin-top: 10px;
    border: 1px solid rgba(214, 176, 96, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.loot-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    cursor: var(--cursor-pointer);
    list-style: none;
    color: #f7ebc8;
    font-size: 0.78rem;
}

.loot-filter-summary::-webkit-details-marker {
    display: none;
}

.loot-filter-summary strong {
    color: #d4b06e;
    font-size: 0.72rem;
}

.loot-filter-form {
    padding: 0 10px 10px;
}

.loot-filter-copy {
    margin-bottom: 8px;
    color: rgba(226, 214, 187, 0.68);
    font-size: 0.66rem;
    line-height: 1.35;
}

.loot-filter-dropdown {
    max-height: 180px;
    overflow: auto;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(214, 176, 96, 0.12);
    background: rgba(10, 8, 6, 0.42);
    display: grid;
    gap: 4px;
}

.loot-filter-option {
    display: grid;
    grid-template-columns: 14px 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 5px 6px;
    border-radius: 8px;
    color: #f8ebca;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.02);
}

.loot-filter-option:hover {
    background: rgba(214, 176, 96, 0.08);
}

.loot-filter-option input {
    margin: 0;
}

.loot-filter-option img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.loot-filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}







.inventory-shell {
    display: grid;
    grid-template-columns: 82px 280px 82px;
    justify-content: center;
    gap: 18px;
    align-items: start;
    margin-top: 10px;
}

.inventory-equip-frame {
    width: 82px;
    min-height: 420px;
    padding: 14px 12px 18px;
    background:
        linear-gradient(180deg, rgba(33, 23, 13, 0.96), rgba(14, 10, 7, 0.94)),
        radial-gradient(circle at top, rgba(255, 209, 120, 0.08), transparent 48%);
    border: 1px solid rgba(219, 177, 93, 0.22);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 187, 0.04),
        0 22px 40px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 16px;
    align-content: start;
    justify-items: center;
}

.inventory-main-frame {
    width: 280px;
    min-height: 420px;
    padding: 16px 16px 14px;
    background:
        linear-gradient(180deg, rgba(24, 18, 12, 0.98), rgba(12, 9, 6, 0.96)),
        radial-gradient(circle at top, rgba(255, 218, 150, 0.08), transparent 50%);
    border: 1px solid rgba(219, 177, 93, 0.24);
    border-radius: 22px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 235, 196, 0.04),
        0 26px 48px rgba(0, 0, 0, 0.3);
}

.inventory-main-inner {
    padding: 0;
}

.bag-tabs,
.bag-grid {
    display: grid;
}

.inventory-gear-slot,
.bag-slot {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(211, 171, 95, 0.24);
    background:
        linear-gradient(180deg, rgba(31, 23, 15, 0.96), rgba(10, 8, 6, 0.96));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 174, 0.04),
        0 4px 10px rgba(0, 0, 0, 0.24);
}

.inventory-gear-slot {
    justify-self: center;
}

.inventory-equip-frame-left {
    justify-self: end;
}

.inventory-equip-frame-right {
    justify-self: start;
}

.inventory-slot-label {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    color: rgba(233, 220, 189, 0.7);
    font-size: 0.54rem;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.bag-tabs {
    grid-template-columns: repeat(6, 1fr);
    margin: 0 auto 14px;
    max-width: 232px;
    gap: 6px;
}

.bag-tab {
    padding: 4px 0;
    text-align: center;
    font-weight: 700;
    border-radius: 8px;
    min-height: 28px;
    font-size: 0.9rem;
    border: 1px solid rgba(214, 174, 93, 0.22);
    background: linear-gradient(180deg, rgba(49, 35, 20, 0.96), rgba(23, 16, 10, 0.96));
    color: #d9c49a;
    box-shadow: inset 0 0 0 1px rgba(255, 232, 187, 0.03);
}

.bag-tab.active {
    background: linear-gradient(180deg, rgba(174, 97, 40, 0.98), rgba(113, 57, 18, 0.98));
    border-color: rgba(240, 201, 118, 0.52);
    color: #fff2d4;
    box-shadow: 0 8px 16px rgba(90, 37, 7, 0.28);
}

.bag-grid {
    grid-template-columns: repeat(5, 32px);
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
}

.hidden-bag-grid {
    display: none;
}

.bag-slot {
    transition: transform 140ms ease, border-color 140ms ease;
}

.bag-slot:hover,
.inventory-gear-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(127, 215, 255, 0.26);
}

.bag-slot.empty {
    opacity: 0.95;
}


.bag-slot,
.inventory-gear-slot {
    position: relative;
}

.bag-slot.unusable,
.inventory-gear-slot.unusable {
    position: relative;
}

.bag-slot.unusable img,
.inventory-gear-slot.unusable img {
    filter: brightness(0.82) saturate(0.9);
}

.bag-slot.unusable::after,
.inventory-gear-slot.unusable::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: rgba(255, 0, 0, 0.16);
    box-shadow: inset 0 0 0 2px rgba(255, 40, 20, 0.72), inset 0 0 12px rgba(255, 0, 0, 0.22);
    border-radius: 2px;
    pointer-events: none;
    z-index: 5;
}

.party-overlay-namewrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* wichtig */
}

.party-member-name-line {
    font-weight: 600;
    color: #fff;
}

.party-member-guild {
    font-size: 0.75rem;
    color: #7fd7ff;
    margin-top: 2px;
    padding-left: 2px;
    opacity: 0.9;
    letter-spacing: 0.03em;
}

.player-name-line {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff6da;
    text-shadow: 0 0 6px rgba(226, 188, 113, 0.35);
    display: block;
}

.player-guild-line {
    font-size: 0.8rem;
    color: #7fd7ff;
    margin-top: 3px;
    letter-spacing: 0.04em;
    display: block;
}

.dashboard-offline-idle-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(226, 188, 113, 0.28);
    background: rgba(18, 28, 40, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dashboard-offline-idle-chip.active {
    border-color: rgba(115, 224, 172, 0.44);
    background: linear-gradient(180deg, rgba(18, 52, 41, 0.9), rgba(11, 30, 25, 0.94));
}

.dashboard-offline-idle-label {
    color: rgba(223, 233, 244, 0.78);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#dashboard-offline-idle-remaining {
    color: #f8ebca;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.inventory-slot-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    image-rendering: pixelated;
}

.inventory-stack-count {
    position: absolute;
    right: 3px;
    bottom: 2px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.inventory-qigong-slot-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    left: 1px;
    bottom: 1px;
    z-index: 3;
    pointer-events: none;
    image-rendering: pixelated;
}

/* Inventory UI Skin (Inventory.png 1:1) */
.inventory-shell {
    position: relative;
    width: 609px;
    height: 569px;
    margin: 12px auto 0;
    display: block;
    background: url("ui/Inventory.png") top left / 609px 569px no-repeat;
}

body[data-page="inventory"] .inventory-shell {
    margin: 12px 0 0;
}

.inventory-close-skin {
    position: absolute;
    top: 9px;
    right: 246px;
    width: 18px;
    height: 17px;
    min-width: 18px;
    min-height: 17px;
    max-width: 18px;
    max-height: 17px;
    background: url("ui/closebutton.png") center center / auto auto no-repeat;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    z-index: 4;
}

.inventory-equip-frame,
.inventory-main-frame {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
}

.inventory-equip-frame {
    position: absolute;
    top: 71px;
    width: 38px;
    display: grid;
    gap: 9px;
    align-content: start;
    justify-items: center;
}

.inventory-equip-frame-left {
    left: 30px;
}

.inventory-equip-frame-right {
    right: 249px;
}

.inventory-hanin-frame {
    position: absolute;
    right: 26px;
    top: 417px;
    width: 194px;
    height: 119px;
    display: grid;
    grid-template-columns: repeat(5, 34px);
    grid-template-rows: 34px 34px;
    column-gap: 8px;
    row-gap: 25px;
    align-content: start;
    justify-content: start;
}

.inventory-yinyang-frame {
    position: absolute;
    right: 113px;
    top: 70px;
    width: 116px;
    height: 116px;
    display: grid;
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(3, 34px);
    column-gap: 5px;
    row-gap: 5px;
    align-content: start;
    justify-content: start;
}

.inventory-yinyang-slot {
    margin: 0;
}

.inventory-yinyang-placeholder-icon {
    filter: grayscale(1) brightness(0.82) contrast(1.05);
    opacity: 0.72;
}

.trigram-drop-slot .inventory-yinyang-placeholder-icon {
    filter: grayscale(1) brightness(0.82) contrast(1.05) !important;
    opacity: 0.72 !important;
}

.inventory-yinyang-hole {
    width: 34px;
    height: 34px;
}

.inventory-yinyang-mirror-anchor {
    position: absolute;
    right: 36px;
    top: 70px;
    width: 194px;
    height: 152px;
    pointer-events: none;
}

.inventory-yinyang-mirror-slot {
    position: absolute;
    left: 160px;
    top: 0;
    pointer-events: auto;
}

.inventory-yinyang-slot-locked {
    opacity: 0.65;
}

.inventory-yinyang-absorption {
    position: absolute;
    right: 26px;
    top: 252px;
    width: 150px;
    height: 16px;
    color: #d7c39a;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.85);
}

.inventory-hanin-bonus {
    position: absolute;
    right: -25px;
    top: 395px;
    width: 194px;
    min-height: 24px;
    pointer-events: none;
}

.inventory-hanin-bonus-line {
    color: #d7c39a;
    font-size: 10px;
    line-height: 1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
}

.inventory-hanin-slot {
    margin: 0;
}

.inventory-hanin-slot-main {
    grid-column: 1;
    grid-row: 1;
}

.inventory-hanin-slot-row {
    grid-row: 2;
}

.inventory-hanin-slot-locked {
    opacity: 0.9;
}

.inventory-hanin-lock-icon {
    filter: grayscale(0.2) brightness(0.95);
}

.inventory-main-frame {
    position: absolute;
    left: 72px;
    top: 72px;
    width: 228px;
    height: 360px;
}

.inventory-main-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


.inventory-slot-label {
    display: none;
}

.inventory-gear-slot,
.bag-slot {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
}

.inventory-gear-slot .inventory-slot-icon {
    width: 31px;
    height: 31px;
}

.inventory-gear-slot:hover,
.bag-slot:hover {
    transform: none;
    border-color: transparent;
}

.bag-grid {
    position: absolute;
    left: 27px;
    top: 29px;
    margin: 0;
    width: auto;
    justify-content: start;
    grid-template-columns: repeat(5, 34px);
    gap: 6px;
}

.bag-tabs {
    position: absolute;
    left: 14px;
    top: 249px;
    margin: 0;
    max-width: none;
    width: 236px;
    grid-template-columns: repeat(6, 36px);
    gap: 1px;
}

.bag-tab {
    width: 36px;
    height: 15px;
    min-height: 15px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url("ui/InventoryBagButton.png") center center / auto auto no-repeat;
    color: #df7d2d;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    box-shadow: none;
}

.bag-tab.active {
    background: url("ui/InventoryBagButton.png") center center / auto auto no-repeat;
    border: 0;
    box-shadow: none;
    color: #ffd498;
}

.bag-tab.drop-hover {
    filter: brightness(1.18);
    color: #ffe6b8;
}

.inventory-footer-strip {
    position: static;
    width: 0;
    height: 0;
    margin: 0;
}

.inventory-money-line {
    position: absolute;
    min-height: 18px;
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0 4px;
    display: grid;
    align-content: center;
    z-index: 2;
}

.inventory-money-line span {
    font-size: 0.62rem;
    line-height: 1;
    color: #c9ad79;
}

.inventory-money-line strong {
    font-size: 0.78rem;
    line-height: 1.05;
    color: #f5e6c5;
}

.inventory-money-line-geons {
    left: 15px;
    top: 357px;
    width: 108px;
    height: 24px;
}

.inventory-money-line-jewels {
    left: 130px;
    top: 357px;
    width: 108px;
    height: 24px;
}

.inventory-money-line-capacity {
    left: 132px;
    top: -16px;
    width: 86px;
    height: 20px;
    text-align: right;
}

.inventory-sort-form .ghost-btn,
.inventory-destroy-btn,
.inventory-destroy-dropzone {
    min-height: 20px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #d7bf8d;
}

.inventory-sort-form-main {
    position: absolute;
    left: 6px;
    top: 265px;
    width: 100px;
    margin: 0;
    z-index: 2;
}

.inventory-sort-form-main .ghost-btn {
    width: 94px;
    min-height: 28px;
    height: 28px;
    text-align: center;
    font-size: 0.78rem;
    color: #f3e6cb;
    border: 0;
    border-radius: 0;
    background: url("ui/B04-default.bmp") center center / auto auto no-repeat;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.inventory-sort-form-main .ghost-btn:hover {
    background-image: url("ui/B04-over.bmp");
}

.inventory-sort-form-main .ghost-btn:active {
    background-image: url("ui/B04-on.bmp");
}

.inventory-destroy-form-main {
    position: absolute;
    left: 173px;
    top: 271px;
    width: 94px;
    margin: 0;
    z-index: 2;
}

.inventory-destroy-form-main .inventory-destroy-dropzone {
    width: 94px;
    min-height: 28px;
    height: 28px;
    justify-content: center;
    padding: 0;
    font-size: 0.78rem;
    overflow: hidden;
    color: #f3e6cb;
    border: 0;
    border-radius: 0;
    background: url("ui/TrashButton.png") center center / auto auto no-repeat;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.inventory-destroy-form-main .inventory-destroy-dropzone:hover {
    background-image: url("ui/TrashButton.png");
}

.inventory-destroy-form-main .inventory-destroy-dropzone:active {
    background-image: url("ui/TrashButton.png");
}

.inventory-destroy-form-main .inventory-destroy-icon {
    display: none;
}

.inventory-destroy-form-main .inventory-destroy-dropzone span {
    color: #f3e6cb;
}

/* Inventory currency text-only override (must win against later generic rules) */
.inventory-shell .inventory-money-line {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 2px !important;
}

.inventory-shell .inventory-money-line span {
    font-size: 0.62rem !important;
    line-height: 1 !important;
    color: #3eda58 !important;
    white-space: nowrap !important;
}

.inventory-shell .inventory-money-line strong {
    display: inline !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
    color: #ff6601 !important;
    white-space: nowrap !important;
}

.fuse-modal-card {
    width: 445px;
    max-width: 95vw;
    position: relative;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
}

.fuse-modal-header { display: none; }

.fuse-modal-layout { display: block; }

.fuse-panel { border: none; border-radius: 0; background: transparent; padding: 0; }

.fuse-panel-main {
    display: grid;
    gap: 8px;
    width: 445px;
    height: 617px;
    padding: 0;
    background: url("ui/fuse.png") top left/445px 617px no-repeat;
    position: relative;
}

.fuse-modal-close-skin {
    position: absolute;
    top: 58px;
    right: 46px;
    width: 18px !important;
    height: 17px !important;
    min-width: 18px !important;
    min-height: 17px !important;
    max-width: 18px !important;
    max-height: 17px !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    background: url("ui/closebutton.png") center center / auto auto no-repeat;
    z-index: 5;
}

.fuse-modal-card .fuse-modal-close-skin {
    background: url("ui/closebutton.png") center center / auto auto no-repeat !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.fuse-wheel {
    min-height: 0;
    border: none;
    border-radius: 0;
    width: 190px;
    height: 220px;
    margin: 282px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.fuse-wheel-inner {
    position: relative;
    width: 190px;
    height: 220px;
}

.fuse-dropzone {
    position: absolute;
    left: 55%;
    top: 43px;
    transform: translateX(-50%);
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fuse-dropzone .shop-slot-button {
    width: 58px;
    height: 58px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#fuse-dropzone-label {
    display: none;
}

.fuse-source-slot {
    position: absolute;
    left: 53%;
    top: 122px;
    transform: translateX(-50%);
    margin-left: 5px;
    width: 60px;
    height: 60px;
}

.fuse-source-slot .inventory-slot-icon,
.fuse-dropzone .inventory-slot-icon {
    width: 32px;
    height: 32px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.fuse-progress {
    position: absolute;
    width: 50%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 116px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(223, 185, 104, 0.35);
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.fuse-inline-result {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 84px;
    min-height: 18px;
    color: #e8d09f;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

.fuse-progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease;
    background: linear-gradient(90deg, #c7832f, #f2cf79);
}

.fuse-items-grid {
    position: absolute;
    left: 75px;
    top: 105px;
    width: 334px;
    height: 160px;
    padding: 0;
    max-height: 160px;
    border: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 40px);
    grid-auto-rows: 40px;
    gap: 0;
    justify-content: start;
    align-content: start;
    scrollbar-width: thin;
}

.fuse-item-card {
    position: relative;
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    padding: 0;
    overflow: hidden;
}

.fuse-item-card:active {
    cursor: grabbing;
}

.fuse-item-card .inventory-slot-icon {
    width: 32px;
    height: 32px;
    left: 41%;
    top: 37%;
    transform: translate(-50%, -50%);
}

.fuse-item-name {
    display: none;
}

.fuse-modal-card--dragon,
.fuse-modal-card--qigong {
    background: transparent;
}

.fuse-panel-main .quantity-modal-actions {
    position: absolute;
    left: 78px;
    right: 78px;
    bottom: 37px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.fuse-panel-main .quantity-modal-actions .ghost-btn,
.fuse-panel-main .quantity-modal-actions .primary-btn {
    border: 0;
    border-radius: 0;
    min-height: 25px;
    height: 25px;
    width: 75px;
    padding: 0 8px;
    color: #f3e6cb;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    background: url("ui/B07-default.bmp") center/75px 25px no-repeat;
    box-shadow: none;
}

.fuse-panel-main .quantity-modal-actions .ghost-btn:hover,
.fuse-panel-main .quantity-modal-actions .primary-btn:hover {
    background-image: url("ui/B07-over.bmp");
}

.fuse-panel-main .quantity-modal-actions .ghost-btn:active,
.fuse-panel-main .quantity-modal-actions .primary-btn:active {
    background-image: url("ui/B07-on.bmp");
}

.fuse-panel-main .quantity-modal-actions .primary-btn:disabled {
    opacity: 0.6;
}

@media (max-width: 700px) {
    .fuse-modal-card { width: min(445px, 96vw); }
}

.inventory-footer-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px auto 0;
    max-width: 248px;
}

.inventory-sort-form {
    margin: 0;
    grid-column: 1 / -1;
}

.inventory-sort-form .ghost-btn {
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 14px;
    white-space: nowrap;
    line-height: 1;
    width: 100%;
}

.inventory-destroy-form {
    margin: 0;
    grid-column: 1 / -1;
}

.inventory-destroy-btn {
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 14px;
    white-space: nowrap;
    line-height: 1;
    width: 100%;
}

.inventory-destroy-dropzone {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: var(--cursor-pointer);
}

.inventory-destroy-dropzone.drop-hover {
    border-color: rgba(255, 130, 120, 0.7) !important;
    box-shadow: 0 0 0 1px rgba(255, 130, 120, 0.35) inset;
}

.inventory-destroy-icon {
    font-size: 0.95rem;
}

.slot-item.active {
    outline: 1px solid rgba(255, 105, 97, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 105, 97, 0.35) inset;
}

.inventory-money-line {
    padding: 8px 6px;
    border: 1px solid rgba(215, 176, 99, 0.22);
    background: linear-gradient(180deg, rgba(36, 24, 14, 0.94), rgba(16, 11, 8, 0.94));
    border-radius: 10px;
    display: grid;
    gap: 3px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 235, 196, 0.03);
}

.inventory-money-line span {
    font-size: 0.72rem;
}

.inventory-money-line strong {
    font-size: 0.78rem;
}

.inventory-money-line span {
    color: rgba(226, 214, 187, 0.64);
    font-size: 0.72rem;
}

.inventory-money-line strong {
    color: #f8ebca;
    font-size: 0.88rem;
}

.inventory-main-frame::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, transparent, rgba(223, 185, 104, 0.45), transparent);
}

.slot-item {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: grab;
}

.dragging-item .slot-item {
    cursor: grabbing;
}

.inventory-drop-target.drop-hover {
    border-color: rgba(226, 188, 113, 0.45);
    box-shadow: inset 0 0 0 1px rgba(226, 188, 113, 0.32);
}

.inventory-tooltip {
    position: fixed;
    z-index: 21050;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(19, 15, 8, 0.96);
    border: 1px solid rgba(226, 188, 113, 0.5);
    color: var(--text);
    pointer-events: none;
    line-height: 1.42;
    box-shadow: var(--shadow);
    text-align: center;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tooltip-item-name {
    color: #79ff7a;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.tooltip-item-desc {
    color: #ffe19d;
    margin-bottom: 10px;
    text-align: center;
    white-space: pre-line;
}

.tooltip-section {
    margin-top: 10px;
}

.tooltip-section-divider {
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid rgba(226, 188, 113, 0.38);
}

.tooltip-section-title {
    color: #ffb454;
    margin-bottom: 6px;
    font-weight: 700;
    text-align: center;
}

.tooltip-line {
    color: #f6f7fb;
    text-align: center;
}

.tooltip-inline {
    color: inherit;
}

.tooltip-inline.soft {
    color: #f0dfb0;
}

.tooltip-inline.gold {
    color: #ffd66a;
}

.tooltip-inline.green {
    color: #47ff6d;
}

.tooltip-inline.yellow {
    color: #f0de89;
}

.tooltip-inline.blue {
    color: #46a8ff;
}

.tooltip-inline.purple {
    color: #b26dff;
}

.tooltip-inline.red {
    color: #ff3434;
}

.tooltip-inline.orange {
    color: #c86b22;
}

.tooltip-inline.pink {
    color: #b07cff;
}

.tooltip-inline.gray {
    color: #bdbdbd;
}

.tooltip-line.soft {
    color: #f0dfb0;
}

.tooltip-line.gold {
    color: #ffd66a;
}

.tooltip-line.drop-rate {
    color: #ffe79c;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(255, 214, 106, 0.22);
}

.tooltip-line.green {
    color: #47ff6d;
}

.tooltip-line.yellow {
    color: #f0de89;
}

.tooltip-line.blue {
    color: #46a8ff;
}

.tooltip-line.purple {
    color: #b26dff;
}

.tooltip-line.red {
    color: #ff3434;
}

.tooltip-line.orange {
    color: #c86b22;
}

.tooltip-line.pink {
    color: #b07cff;
}

.tooltip-line.gray {
    color: #bdbdbd;
}

.tooltip-sell {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 188, 113, 0.24);
    color: #15c441;
    font-size: 0.9rem;
    text-align: center;
}


.tooltip-buy {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 188, 113, 0.24);
    color: #ff0000;
    font-size: 0.9rem;
    text-align: center;
}

.tooltip-guild-flag-wrap {
    margin-top: 8px;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.tooltip-guild-flag {
    width: 84px;
    height: 84px;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(248, 214, 136, 0.52);
    background: radial-gradient(circle at 30% 20%, rgba(255, 236, 192, 0.1), transparent 45%), rgba(7, 11, 17, 0.95);
    overflow: hidden;
    box-shadow: 0 0 14px rgba(255, 196, 82, 0.24), inset 0 1px 0 rgba(255, 233, 180, 0.1);
}

.tooltip-guild-flag-layer {
    position: absolute;
    inset: 5px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.tooltip-guild-flag-label {
    font-size: 0.72rem;
    color: #efd6a2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}




.quick-sell-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border: 1px solid #aaa;
    background: rgba(0,0,0,0.6);
    cursor: var(--cursor-pointer);
    z-index: 5;
}

.quick-sell-toggle.active {
    background: #47ff6d;
    border-color: #47ff6d;
}

.upgrade-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: rgba(5, 10, 16, 0.68);
    backdrop-filter: blur(8px);
}

.upgrade-progress-card {
    width: min(360px, calc(100% - 32px));
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 32, 49, 0.96), rgba(13, 21, 33, 0.98));
    border: 1px solid rgba(226, 188, 113, 0.28);
    box-shadow: var(--shadow);
    text-align: center;
}

.upgrade-progress-bar {
    margin-top: 14px;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.upgrade-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #e2bc71, #7fd7ff);
}

.upgrade-progress-label {
    margin-top: 8px;
    color: var(--muted);
}

.upgrade-automation-window {
    position: fixed;
    inset: 0;
    z-index: 470;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(5, 10, 16, 0.78);
    backdrop-filter: blur(10px);
}

.upgrade-automation-card {
    width: min(820px, calc(100% - 16px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(226, 188, 113, 0.3);
    background: linear-gradient(180deg, rgba(20, 32, 49, 0.98), rgba(9, 15, 26, 0.98));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.upgrade-automation-head,
.upgrade-automation-grid,
.upgrade-automation-controls {
    display: flex;
    gap: 12px;
}

.upgrade-automation-head {
    justify-content: space-between;
    align-items: center;
}

.upgrade-automation-grid {
    margin-top: 12px;
}

.upgrade-automation-panel {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    background: rgba(9, 14, 22, 0.7);
}

.upgrade-automation-slot {
    position: relative;
    width: 58px;
    height: 58px;
}

.upgrade-automation-name,
.upgrade-automation-subline {
    margin-top: 6px;
    color: #d8e6f7;
    font-size: 0.86rem;
}

.upgrade-automation-stop {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.upgrade-automation-stop label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d6e1ee;
    font-size: 0.86rem;
}

.upgrade-automation-slider-wrap {
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.upgrade-automation-slider-wrap input[type="range"] {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, rgba(226, 188, 113, 0.95), rgba(134, 195, 255, 0.95));
    border-radius: 999px;
    outline: none;
    border: 1px solid rgba(226, 188, 113, 0.24);
    box-shadow: inset 0 0 0 1px rgba(8, 13, 21, 0.35);
}

.upgrade-automation-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8df, #e2bc71 62%, #ad7f37);
    border: 1px solid rgba(42, 30, 10, 0.8);
    box-shadow: 0 0 0 2px rgba(10, 18, 29, 0.72), 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: var(--cursor-pointer);
}

.upgrade-automation-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8df, #e2bc71 62%, #ad7f37);
    border: 1px solid rgba(42, 30, 10, 0.8);
    box-shadow: 0 0 0 2px rgba(10, 18, 29, 0.72), 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: var(--cursor-pointer);
}

.upgrade-automation-slider-wrap strong {
    min-width: 52px;
    text-align: right;
    color: #ffe1a0;
}

.upgrade-automation-stop input,
.upgrade-automation-panel select {
    background: rgba(11, 19, 30, 0.95);
    color: #eef6ff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 5px 7px;
}

.upgrade-automation-controls {
    margin-top: 14px;
}

.upgrade-automation-stop input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e2bc71;
    filter: drop-shadow(0 0 4px rgba(226, 188, 113, 0.4));
}

.upgrade-automation-progress {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.upgrade-automation-progress-row {
    display: flex;
    justify-content: space-between;
    color: #d6e4f5;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 3px;
}

.upgrade-automation-attempt-progress {
    grid-column: 1 / -1;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.upgrade-automation-attempt-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #6fd3ff, #ffd27a);
}

.upgrade-automation-live {
    margin-top: 14px;
    min-height: 150px;
    max-height: 220px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: radial-gradient(circle at top, rgba(95, 151, 255, 0.18), rgba(11, 16, 24, 0.92) 62%);
    position: relative;
    padding: 10px;
}

.upgrade-automation-live.is-success {
    box-shadow: inset 0 0 18px rgba(103, 255, 184, 0.38);
}

.upgrade-automation-live.is-fail {
    box-shadow: inset 0 0 18px rgba(255, 106, 106, 0.4);
}

.upgrade-automation-live.is-shake {
    animation: upgradeAutoShake 0.35s linear 1;
}

.upgrade-automation-live-feed {
    display: grid;
    gap: 6px;
}

.upgrade-automation-line {
    font-size: 0.83rem;
    color: #d9e7fa;
}

.upgrade-automation-line.is-success {
    color: #8fffca;
}

.upgrade-automation-line.is-fail {
    color: #ff9898;
}

.upgrade-automation-line.is-stop {
    color: #ffe39f;
}

.upgrade-automation-floating {
    position: absolute;
    right: 10px;
    top: 12px;
    font-weight: 700;
    animation: upgradeAutoFloat 0.62s ease-out 1;
}

.upgrade-automation-floating.is-success {
    color: #8fffca;
    text-shadow: 0 0 8px rgba(143, 255, 202, 0.45);
}

.upgrade-automation-floating.is-fail {
    color: #ff9f9f;
    text-shadow: 0 0 8px rgba(255, 159, 159, 0.45);
}

.upgrade-automation-cost-note {
    color: #ffe2a9;
}

.upgrade-automation-weapons {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 148px;
    overflow: auto;
    padding-right: 4px;
}

.upgrade-automation-weapon {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 18, 28, 0.9);
    border-radius: 8px;
    color: #e8f1ff;
    text-align: left;
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 8px;
    align-items: center;
    padding: 6px;
    cursor: var(--cursor-pointer);
}

.upgrade-automation-weapon.is-active {
    border-color: rgba(226, 188, 113, 0.9);
    box-shadow: 0 0 0 1px rgba(226, 188, 113, 0.4), inset 0 0 14px rgba(226, 188, 113, 0.2);
    background: linear-gradient(180deg, rgba(43, 33, 18, 0.58), rgba(16, 22, 32, 0.95));
}

.upgrade-automation-weapon img,
.upgrade-automation-weapon-empty {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.upgrade-automation-weapon span {
    font-size: 0.8rem;
    line-height: 1.2;
}

.upgrade-automation-weapon small {
    grid-column: 2;
    font-size: 0.68rem;
    color: #8ec5ff;
}

@keyframes upgradeAutoFloat {
    from { opacity: 0; transform: translateY(8px) scale(0.8); }
    to { opacity: 1; transform: translateY(-12px) scale(1); }
}

@keyframes upgradeAutoShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.game-modal {
    position: fixed;
    inset: 0;
    z-index: 440;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 10, 16, 0.72);
    backdrop-filter: blur(10px);
}

.game-modal-card {
    width: min(460px, calc(100% - 32px));
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 30, 46, 0.98), rgba(12, 20, 31, 0.98));
    border: 1px solid rgba(226, 188, 113, 0.28);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.game-modal-head {
    margin-bottom: 12px;
    color: #f8fafc;
    font-size: 1.05rem;
}

.game-modal-body {
    color: #dbe7f5;
    line-height: 1.6;
    margin-bottom: 18px;
}

.game-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 430;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 12, 0.82);
    backdrop-filter: blur(10px);
}

.settings-modal-card {
    width: min(920px, calc(100vw - 30px));
    max-height: calc(100vh - 34px);
    overflow: auto;
    border: 1px solid rgba(126, 156, 213, 0.28);
    border-radius: 18px;
    padding: 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(103, 159, 243, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(9, 18, 35, 0.97), rgba(4, 10, 22, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(86, 132, 194, 0.12);
}

.settings-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-account-card,
.settings-created-card,
.settings-email-card {
    min-height: 88px;
}

.settings-email-card .settings-email-value {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
    font-size: 0.95rem;
}

.settings-sound-card {
    grid-column: 1 / -1;
}

.settings-tabs-card {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.settings-note {
    margin: 12px 0 0;
    color: #9db3d8;
    font-size: 0.9rem;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.settings-modal .settings-list {
    gap: 8px;
}

.settings-modal .settings-list label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(7, 16, 33, 0.72);
    border: 1px solid rgba(101, 138, 197, 0.26);
}

.settings-modal .settings-list label span {
    color: #d6e6ff;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.settings-audio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 7px;
    margin-right: 6px;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: #ffe9b8;
    border: 1px solid rgba(226, 188, 113, 0.35);
    background: linear-gradient(180deg, rgba(73, 49, 20, 0.92), rgba(18, 14, 8, 0.95));
}

.settings-modal .settings-list input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    border: 1px solid rgba(111, 146, 202, 0.46);
    background: linear-gradient(180deg, rgba(35, 48, 73, 0.9), rgba(21, 32, 54, 0.95));
    position: relative;
    cursor: var(--cursor-pointer);
    transition: all 0.15s ease;
}
.settings-modal .settings-list input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #fffdf5, #d7e8ff 70%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}
.settings-modal .settings-list input[type="checkbox"]:checked {
    border-color: rgba(235, 198, 116, 0.75);
    background: linear-gradient(180deg, rgba(236, 198, 116, 0.94), rgba(193, 146, 62, 0.96));
}
.settings-modal .settings-list input[type="checkbox"]:checked::after {
    transform: translateX(20px);
    background: radial-gradient(circle at 32% 30%, #fffbf0, #fff1c7 72%);
}

.settings-modal .settings-list input[type="range"] {
    width: 170px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, rgba(226, 188, 113, 0.95), rgba(134, 195, 255, 0.95));
    border-radius: 999px;
    outline: none;
    border: 1px solid rgba(226, 188, 113, 0.24);
    box-shadow: inset 0 0 0 1px rgba(8, 13, 21, 0.35);
}

.settings-modal .settings-list input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8df, #e2bc71 62%, #ad7f37);
    border: 1px solid rgba(42, 30, 10, 0.8);
    box-shadow: 0 0 0 2px rgba(10, 18, 29, 0.72), 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: var(--cursor-pointer);
}

.settings-modal .settings-list input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8df, #e2bc71 62%, #ad7f37);
    border: 1px solid rgba(42, 30, 10, 0.8);
    box-shadow: 0 0 0 2px rgba(10, 18, 29, 0.72), 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: var(--cursor-pointer);
}

.settings-modal .mini-card {
    border: 1px solid rgba(95, 132, 189, 0.25);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(6, 16, 32, 0.9), rgba(4, 10, 22, 0.93));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.settings-modal .meta-label {
    color: #dcbc79;
    letter-spacing: 0.08em;
}

.settings-modal .ghost-btn,
.settings-modal .primary-btn {
    border-radius: 12px;
    min-height: 42px;
    padding: 0 18px;
}

.settings-modal .settings-actions .ghost-btn,
.settings-modal .settings-actions .primary-btn {
    min-width: 132px;
}

.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 700;
    pointer-events: none;
}

.tutorial-callout {
    position: fixed;
    z-index: 720;
    pointer-events: auto;
    padding: 24px;
    border: 1px solid rgba(226, 188, 113, 0.52);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(246, 216, 143, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(18, 28, 42, 0.98), rgba(9, 15, 24, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), 0 0 30px rgba(226, 188, 113, 0.12);
}

.tutorial-callout h3 {
    margin: 4px 0 10px;
    font-size: 1.25rem;
    color: #fff7d6;
}

.tutorial-callout p {
    font-size: 1.02rem;
    color: #dbe7f5;
    line-height: 1.62;
}

.tutorial-arrow {
    position: absolute;
    left: -13px;
    top: 48px;
    width: 24px;
    height: 24px;
    transform: rotate(45deg);
    background: rgba(18, 28, 42, 0.98);
    border-left: 1px solid rgba(226, 188, 113, 0.52);
    border-bottom: 1px solid rgba(226, 188, 113, 0.52);
}

.tutorial-callout.arrow-right .tutorial-arrow {
    left: auto;
    right: -13px;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(226, 188, 113, 0.52);
    border-top: 1px solid rgba(226, 188, 113, 0.52);
}

.tutorial-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.tutorial-highlight {
    position: relative;
    z-index: 710 !important;
    outline: 2px solid rgba(246, 216, 143, 0.9);
    outline-offset: 4px;
    box-shadow: 0 0 0 9999px rgba(2, 6, 11, 0.36), 0 0 26px rgba(246, 216, 143, 0.42) !important;
}

.offline-idle-summary {
    display: grid;
    gap: 1rem;
}

.offline-idle-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.offline-idle-stats span {
    border: 1px solid rgba(232, 198, 111, 0.28);
    border-radius: 12px;
    background: rgba(15, 11, 4, 0.72);
    padding: 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.offline-idle-stats b {
    display: block;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: normal;
}

.offline-idle-note {
    border: 1px solid rgba(126, 221, 170, 0.3);
    border-radius: 12px;
    background: rgba(31, 68, 47, 0.35);
    color: #c9f5d8;
    padding: 0.75rem;
}

.offline-idle-grid {
    display: grid;
    grid-template-columns: repeat(8, 36px);
    gap: 6px;
    min-height: 42px;
}

.offline-idle-item {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(232, 198, 111, 0.35);
    border-radius: 8px;
    background: rgba(8, 7, 3, 0.78);
    display: grid;
    place-items: center;
}

.offline-idle-item img {
    max-width: 32px;
    max-height: 32px;
    image-rendering: auto;
}

.offline-idle-item span {
    position: absolute;
    right: 2px;
    bottom: 1px;
    color: #fff6cf;
    font-size: 0.68rem;
    text-shadow: 0 1px 2px #000;
}

.travel-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(127, 215, 255, 0.08);
    border: 1px solid rgba(127, 215, 255, 0.18);
    color: #d6f4ff;
}

.world-travel-chip {
    background: rgba(226, 188, 113, 0.08);
    border-color: rgba(226, 188, 113, 0.18);
    color: #ffe4b1;
}

.dashboard-location-line {
    margin: 8px 0 0;
    color: var(--muted);
}

.combat-feedback {
    margin-bottom: 0;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(118, 227, 167, 0.08);
    border: 1px solid rgba(118, 227, 167, 0.18);
    color: #d8ffee;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 0.84rem;
    animation: slideUp 200ms ease;
        transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-feedback-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
    align-items: stretch;
}

.combat-feedback-label {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.58rem;
    flex: 0 0 auto;
}

.combat-feedback-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

.combat-feedback-text {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    flex: 1 1 auto;
}

.combat-feedback-time {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.58rem;
    align-self: flex-end;
    margin-top: auto;
    white-space: nowrap;
}

.npc-town-note {
    flex-basis: 100%;
    text-align: left;
}

.combat-feedback-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 22px;
}

.combat-feedback strong,
.combat-feedback p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-buffbar-wrap {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(219, 177, 93, 0.18);
    background: rgba(11, 14, 20, 0.42);
}

.dashboard-buffbar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.dashboard-buffbar-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.dashboard-buffbar-title span {
    color: #efd59a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-buffbar-title small {
    color: rgba(222, 235, 255, 0.72);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

.dashboard-buffbar-castall-form {
    margin: 0;
}

.dashboard-buffbar-castall {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(219, 177, 93, 0.28);
    background: rgba(52, 36, 16, 0.72);
    color: #f5d78f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: var(--cursor-pointer);
}

.dashboard-buffbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 42px));
    gap: 8px;
}

.dashboard-buff-slot-form {
    margin: 0;
}

.dashboard-buff-slot {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(219, 177, 93, 0.22);
    background: linear-gradient(180deg, rgba(22, 28, 42, 0.96), rgba(12, 16, 24, 0.98));
    color: #f7ead0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer);
    position: relative;
}

.dashboard-buff-slot img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
}

.dashboard-buff-slot.call-active {
    border-color: rgba(85, 218, 123, 0.95);
    box-shadow: 0 0 0 1px rgba(85, 218, 123, 0.55), 0 0 14px rgba(85, 218, 123, 0.35);
    background: linear-gradient(180deg, rgba(30, 88, 48, 0.72), rgba(13, 40, 24, 0.92));
}

.dashboard-buff-slot.call-inactive:not(.call-active) {
    border-color: rgba(220, 74, 74, 0.9);
    box-shadow: 0 0 0 1px rgba(220, 74, 74, 0.35);
    background: linear-gradient(180deg, rgba(68, 20, 20, 0.8), rgba(30, 10, 10, 0.94));
}

.dashboard-buff-rank {
    color: #efc96f;
    font-size: 0.56rem;
    font-weight: 800;
    position: absolute;
    right: 3px;
    bottom: 2px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.dashboard-buffbar-empty {
    color: rgba(222, 235, 255, 0.62);
    font-size: 0.8rem;
    padding: 6px 0;
}

.currency-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.inventory-currency {
    margin-bottom: 14px;
}

.world-select {
    width: 100%;
    border: 1px solid rgba(226, 188, 113, 0.3);
    background:
        linear-gradient(180deg, rgba(25, 36, 53, 0.94), rgba(10, 16, 26, 0.96));
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.world-select:hover {
    border-color: rgba(241, 208, 141, 0.52);
}

.world-select:focus {
    outline: none;
    border-color: rgba(255, 220, 153, 0.85);
    box-shadow: 0 0 0 2px rgba(255, 220, 153, 0.2), 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.npc-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.npc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, 0.76);
    backdrop-filter: blur(12px);
    animation: fadeIn 180ms ease;
}

.npc-modal-card {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(13, 21, 33, 0.96), rgba(8, 13, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    animation: slideUp 220ms ease;
}

.npc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(226, 188, 113, 0.42);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(58, 38, 17, 0.95), rgba(16, 11, 7, 0.95));
    color: #ffe6ad;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

/* NPC modal in PoH visual language */
body[data-page="npcs"] .npc-modal-card {
    border-radius: 22px;
    border: 1px solid rgba(216, 182, 120, 0.32);
    background:
        radial-gradient(circle at 16% 10%, rgba(44, 68, 112, 0.24), transparent 48%),
        radial-gradient(circle at 84% 82%, rgba(18, 39, 74, 0.28), transparent 50%),
        linear-gradient(165deg, rgba(8, 17, 34, 0.97), rgba(4, 10, 21, 0.98));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 225, 166, 0.1);
}

body[data-page="npcs"] .npc-modal-card > .panel-head {
    margin: -2px 0 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(202, 168, 112, 0.28);
    background: linear-gradient(180deg, rgba(14, 29, 56, 0.9), rgba(10, 21, 41, 0.6));
}

body[data-page="npcs"] .npc-modal-card .panel-head h2 {
    color: #f3f6ff;
}

body[data-page="npcs"] .npc-modal-card .panel-head .eyebrow {
    color: #e7c980;
    letter-spacing: 0.12em;
}

body[data-page="npcs"] .npc-modal-card .npc-description {
    color: rgba(215, 225, 243, 0.92);
}

body[data-page="npcs"] .npc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(228, 191, 127, 0.45);
    background: linear-gradient(180deg, rgba(58, 40, 16, 0.96), rgba(24, 16, 8, 0.96));
    color: #ffd98f;
}

body[data-page="npcs"] .npc-modal-card .mini-card,
body[data-page="npcs"] .npc-modal-card .npc-shop-frame,
body[data-page="npcs"] .npc-modal-card .dungeon-reward-card {
    border: 1px solid rgba(171, 150, 111, 0.24);
    background: linear-gradient(160deg, rgba(9, 20, 39, 0.78), rgba(7, 14, 28, 0.7));
}

body[data-page="npcs"] .npc-modal-card .world-list {
    display: grid;
    gap: 10px;
}

body[data-page="npcs"] .npc-modal-card .world-item {
    border: 1px solid rgba(168, 146, 110, 0.22);
    border-radius: 11px;
    background: linear-gradient(170deg, rgba(15, 29, 51, 0.52), rgba(8, 17, 33, 0.46));
    box-shadow: inset 0 1px 0 rgba(255, 225, 166, 0.06);
}

body[data-page="npcs"] .npc-modal-card .world-item strong {
    color: #f1f5ff;
}

body[data-page="npcs"] .npc-modal-card .world-item span,
body[data-page="npcs"] .npc-modal-card .world-item small {
    color: rgba(214, 224, 244, 0.9);
}

body[data-page="npcs"] .npc-modal-card .npc-scroll-list::-webkit-scrollbar-thumb,
body[data-page="npcs"] .npc-modal-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0cc7a, #ba8740);
}

.dungeon-npc-card {
    max-width: 1540px;
    padding: 24px;
}

.dungeon-npc-hero {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(226, 188, 113, 0.26);
    background:
        radial-gradient(circle at 0% 0%, rgba(226, 188, 113, 0.16), transparent 52%),
        linear-gradient(135deg, rgba(10, 20, 34, 0.96), rgba(8, 13, 22, 0.98));
}

.dungeon-npc-hero h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.dungeon-npc-hero p {
    margin: 0;
    color: #b8cae3;
    line-height: 1.45;
}

.dungeon-npc-hero img {
    width: 100%;
    max-height: 130px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.buff-event-shell {
    display: grid;
    gap: 14px;
}

.buff-event-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 140, 0.35);
    background:
        radial-gradient(circle at 20% 0%, rgba(246, 200, 118, 0.2), transparent 46%),
        linear-gradient(160deg, rgba(34, 24, 13, 0.95), rgba(14, 11, 8, 0.96));
}

.buff-event-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(10, 8, 5, 0.82) 0%, rgba(10, 8, 5, 0.38) 52%, rgba(10, 8, 5, 0.78) 100%),
        url("assets/HappyHour/happyE_bg.png") center/cover no-repeat;
    opacity: 0.9;
    pointer-events: none;
}

.buff-event-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -36px;
    bottom: -72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 225, 167, 0.42), rgba(255, 193, 92, 0.06) 70%);
    filter: blur(2px);
    pointer-events: none;
}

.buff-event-hero > * {
    position: relative;
    z-index: 1;
}

.buff-event-hero h3 {
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    letter-spacing: 0.4px;
}

.buff-event-hero p {
    max-width: 58ch;
}

.buff-event-hero img {
    width: clamp(86px, 10vw, 126px);
    height: clamp(86px, 10vw, 126px);
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 219, 151, 0.55);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.42),
        0 0 0 4px rgba(255, 219, 151, 0.09);
}

.buff-event-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr) minmax(260px, 1fr);
}

.buff-event-upgrade-form .primary-btn {
    width: 100%;
    min-height: 36px;
    font-size: 0.86rem;
}

.buff-event-progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 223, 159, 0.25);
    overflow: hidden;
    margin: 8px 0 14px;
}

.buff-event-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #e8bc66, #ffe9bf);
    box-shadow: 0 0 12px rgba(255, 217, 146, 0.45);
}

.buff-event-donate-form {
    display: grid;
    gap: 12px;
}

.buff-event-stepper {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 8px;
    align-items: center;
}

.buff-event-stepper .ghost-btn {
    height: 44px;
    font-size: 1.2rem;
    border-radius: 12px;
}

.buff-event-amount-wrap {
    text-align: center;
    border: 1px solid rgba(255, 218, 140, 0.32);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    padding: 6px 10px;
}

.buff-event-amount {
    display: block;
    font-size: 1.45rem;
    color: #ffe2a8;
    font-weight: 700;
}

.buff-event-donate-form input[type="range"] {
    --buff-range: 0%;
    width: 100%;
    appearance: none;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 229, 173, 0.34);
    background:
        linear-gradient(90deg, #f0c775 0%, #e4b65f var(--buff-range), rgba(255,255,255,0.14) var(--buff-range), rgba(255,255,255,0.06) 100%);
    outline: none;
}

.buff-event-donate-form input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff5da, #d8a952 68%);
    border: 2px solid rgba(64, 41, 14, 0.7);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}

.buff-event-donate-form input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff5da, #d8a952 68%);
    border: 2px solid rgba(64, 41, 14, 0.7);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}

.buff-event-donate-preview {
    margin: 0;
    color: rgba(242, 223, 186, 0.94);
}

.buff-event-ranking h4 {
    margin-bottom: 6px;
}

.buff-event-rank-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.buff-event-rank-col {
    min-width: 0;
}

.buff-event-donor-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
    display: grid;
    gap: 4px;
}

.buff-event-donor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 7px;
    background: rgba(13, 24, 43, 0.72);
}

.buff-event-donor-row strong {
    font-size: 0.8rem;
    line-height: 1.15;
    color: #f4e5bf;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buff-event-donor-row span {
    font-size: 0.76rem;
    color: #d2e0f4;
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .buff-event-rank-columns {
        grid-template-columns: 1fr;
    }
}

.dungeon-npc-tabs {
    margin-top: 12px;
}

.dungeon-start-form {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.dungeon-start-shell {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.dungeon-info-card,
.dungeon-setup-card,
.dungeon-reward-card,
.dungeon-group-card {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(170deg, rgba(9, 17, 28, 0.92), rgba(8, 12, 20, 0.96));
}

.dungeon-info-card h4,
.dungeon-reward-card h4 {
    margin: 0 0 8px;
    font-size: 0.96rem;
    color: #ffe1a8;
    letter-spacing: 0.02em;
}

.dungeon-group-card h4 {
    margin: 0 0 8px;
    font-size: 0.96rem;
    color: #ffe1a8;
    letter-spacing: 0.02em;
}

.dungeon-info-card p {
    margin: 0 0 8px;
    color: #cbddf6;
    line-height: 1.45;
    font-size: 0.84rem;
}

.dungeon-info-list {
    margin: 0 0 10px 16px;
    padding: 0;
    display: grid;
    gap: 5px;
    color: #bfd2ee;
    font-size: 0.8rem;
}

.dungeon-story-copy {
    max-height: 170px;
    overflow: auto;
    padding-right: 4px;
}

.dungeon-start-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: end;
}

.dungeon-shared-revive-btn {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(226, 188, 113, 0.38);
    background: radial-gradient(circle at 0% 0%, rgba(226, 188, 113, 0.16), transparent 58%), rgba(9, 15, 24, 0.9);
}

.dungeon-shared-revive-btn .inline-check {
    margin: 0;
}

.dungeon-shared-revive-btn .inline-check span {
    font-weight: 700;
    color: #ffe4ad;
}

.dungeon-shared-revive-btn small {
    display: block;
    margin-top: 6px;
    color: #b6c9e6;
    font-size: 0.75rem;
    line-height: 1.35;
}

.dungeon-setup-card .primary-btn {
    margin-top: 10px;
    width: 100%;
}

.dungeon-reward-current {
    margin: 0 0 7px;
    color: #c8daf4;
    font-size: 0.8rem;
}

.dungeon-reward-grid {
    display: grid;
    gap: 8px;
    max-height: 270px;
    overflow: auto;
    padding-right: 4px;
}

.dungeon-reward-block h5 {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: #ffe7b8;
}

.dungeon-reward-block table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.dungeon-reward-block th,
.dungeon-reward-block td {
    padding: 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.dungeon-reward-block th {
    color: #ffe3a7;
    background: rgba(226, 188, 113, 0.09);
}

.dungeon-reward-block tr.is-selected {
    background: rgba(226, 188, 113, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 224, 153, 0.48);
}

.dungeon-difficulty-note {
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 4px;
}

.dungeon-difficulty-note strong {
    color: #ffe5b1;
    font-size: 0.78rem;
}

.dungeon-difficulty-note span {
    color: #b7cae6;
    font-size: 0.75rem;
    line-height: 1.3;
}

.dungeon-group-head,
.dungeon-group-row {
    display: grid;
    grid-template-columns: 36px minmax(90px, 1fr) 60px minmax(90px, 1fr) 46px 72px;
    align-items: center;
    gap: 6px;
}

.dungeon-group-head {
    padding: 6px 4px;
    font-size: 0.68rem;
    color: #a9bddc;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dungeon-group-list {
    display: grid;
    gap: 5px;
    max-height: 320px;
    overflow: auto;
}

.dungeon-group-row {
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    font-size: 0.76rem;
    color: #d3e2f7;
    background: rgba(6, 11, 19, 0.72);
}

.dungeon-group-row .class-mini-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.dungeon-cooldown-red {
    color: #ff8888;
    font-weight: 700;
}

.dungeon-cooldown-green {
    color: #79f2af;
    font-weight: 700;
}

@media (max-width: 860px) {
    .dungeon-npc-hero {
        grid-template-columns: 1fr;
    }
    .dungeon-start-grid {
        grid-template-columns: 1fr;
    }
}

.npc-description {
    margin-top: 0;
}

.lottery-shell {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.lottery-hero {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(114, 195, 255, 0.28);
    background:
        radial-gradient(circle at 12% -12%, rgba(120, 231, 255, 0.26), transparent 48%),
        radial-gradient(circle at 95% 105%, rgba(255, 184, 97, 0.2), transparent 42%),
        linear-gradient(140deg, rgba(9, 29, 50, 0.96), rgba(17, 12, 32, 0.94));
    box-shadow: 0 16px 36px rgba(6, 14, 33, 0.45);
}

.lottery-hero h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #e8fbff;
}

.lottery-hero p {
    margin: 0;
    color: rgba(224, 237, 255, 0.82);
}

.lottery-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lottery-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 11px 12px;
    background: linear-gradient(180deg, rgba(23, 30, 50, 0.9), rgba(13, 19, 31, 0.9));
    display: grid;
    gap: 4px;
}

.lottery-stat-card span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(197, 210, 230, 0.74);
}

.lottery-stat-card strong {
    color: #f4f7ff;
}

.lottery-stat-card-pot strong {
    color: #9ef6ff;
}

.lottery-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lottery-timeline-item {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 22, 0.75);
    display: grid;
    gap: 3px;
}

.lottery-timeline-item span {
    color: rgba(173, 198, 236, 0.72);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lottery-timeline-item strong {
    color: #fff2d5;
}

.lottery-timeline-item small {
    color: rgba(210, 223, 243, 0.6);
}

.lottery-buy-form {
    border-radius: 18px;
    border: 1px solid rgba(255, 214, 127, 0.26);
    padding: 14px;
    background:
        radial-gradient(circle at 86% -10%, rgba(255, 210, 115, 0.2), transparent 48%),
        linear-gradient(140deg, rgba(36, 23, 11, 0.9), rgba(16, 11, 7, 0.92));
    display: grid;
    gap: 10px;
}

.lottery-buy-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 190px;
    gap: 10px;
    align-items: center;
}

.lottery-total-box {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(8, 12, 21, 0.62);
    display: grid;
}

.lottery-total-box span {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(205, 218, 235, 0.7);
}

.lottery-total-box strong {
    color: #fff0ca;
}

.lottery-buy-btn {
    min-height: 42px !important;
}

.lottery-winners h3 {
    margin: 0;
}

.lottery-winners-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.lottery-winner-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(15, 22, 36, 0.94), rgba(8, 12, 22, 0.92));
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.lottery-winner-card strong {
    color: #f2f6ff;
}

.lottery-winner-card span {
    color: #b2f4ff;
}

.lottery-winner-card small {
    color: rgba(199, 214, 236, 0.72);
}

.lottery-winner-card.is-main {
    border-color: rgba(255, 206, 104, 0.52);
    background:
        radial-gradient(circle at 92% -10%, rgba(255, 197, 94, 0.32), transparent 45%),
        linear-gradient(160deg, rgba(47, 31, 13, 0.96), rgba(16, 12, 8, 0.95));
    box-shadow: 0 10px 24px rgba(255, 191, 73, 0.18);
}

@media (max-width: 980px) {
    .lottery-stats-grid,
    .lottery-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lottery-buy-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lottery-stats-grid,
    .lottery-timeline {
        grid-template-columns: 1fr;
    }
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

/* Keep shop slot grids independent from inventory skin overrides. */
.shop-layout .bag-grid,
.npc-player-shop-browser .bag-grid {
    position: static;
    left: auto;
    top: auto;
    margin: 0 auto;
    width: fit-content;
    justify-content: center;
    grid-template-columns: repeat(5, 34px);
    gap: 8px;
}

.shop-layout .bag-slot,
.npc-player-shop-browser .bag-slot {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(211, 171, 95, 0.24);
    background:
        linear-gradient(180deg, rgba(31, 23, 15, 0.96), rgba(10, 8, 6, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 174, 0.04),
        0 4px 10px rgba(0, 0, 0, 0.24);
}

.shop-layout .bag-slot:hover,
.npc-player-shop-browser .bag-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(127, 215, 255, 0.26);
}

.shop-layout .inventory-slot-icon,
.npc-player-shop-browser .inventory-slot-icon {
    width: 31px;
    height: 31px;
}

/*
 * NPC/storage crafting UIs also use bag-grid/bag-slot markup.
 * Keep them decoupled from inventory skin absolute positioning.
 */
.storage-panel .bag-grid,
.npc-shop-frame .bag-grid,
.mixmaster-inventory-frame .bag-grid,
.auction-create-inventory .bag-grid,
.fl-send-inventory .bag-grid {
    position: static;
    left: auto;
    top: auto;
    margin: 0 auto;
}

.storage-panel .bag-slot,
.npc-shop-frame .bag-slot,
.mixmaster-inventory-frame .bag-slot,
.auction-create-inventory .bag-slot,
.fl-send-inventory .bag-slot {
    border-radius: 9px;
    border: 1px solid rgba(211, 171, 95, 0.24);
    background:
        linear-gradient(180deg, rgba(31, 23, 15, 0.96), rgba(10, 8, 6, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 174, 0.04),
        0 4px 10px rgba(0, 0, 0, 0.24);
}

/* Reset inventory-skin footer positioning inside storage/shop/crafting panels. */
.storage-panel .inventory-footer-strip,
.npc-shop-frame .inventory-footer-strip,
.mixmaster-inventory-frame .inventory-footer-strip {
    position: static;
    width: auto;
    height: auto;
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.storage-panel .inventory-money-line,
.npc-shop-frame .inventory-money-line,
.mixmaster-inventory-frame .inventory-money-line {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(226, 188, 113, 0.2);
    background: linear-gradient(180deg, rgba(36, 24, 14, 0.94), rgba(14, 10, 7, 0.94));
}

.storage-panel .inventory-money-line span,
.npc-shop-frame .inventory-money-line span,
.mixmaster-inventory-frame .inventory-money-line span {
    font-size: 0.7rem;
    color: rgba(226, 214, 187, 0.72);
}

.storage-panel .inventory-money-line strong,
.npc-shop-frame .inventory-money-line strong,
.mixmaster-inventory-frame .inventory-money-line strong {
    font-size: 0.86rem;
    color: #f5e6c5;
}

/* Storage and trade inventory grids must not inherit inventory-skin absolute bag positioning. */
.storage-inventory-panel .bag-grid,
.trade-inventory-panel .bag-grid {
    position: static;
    left: auto;
    top: auto;
    margin: 0 auto;
    width: fit-content;
    justify-content: center;
    grid-template-columns: repeat(5, 34px);
    gap: 8px;
}

.storage-inventory-panel .bag-slot,
.trade-inventory-panel .bag-slot {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(211, 171, 95, 0.24);
    background:
        linear-gradient(180deg, rgba(31, 23, 15, 0.96), rgba(10, 8, 6, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 174, 0.04),
        0 4px 10px rgba(0, 0, 0, 0.24);
}

.storage-inventory-panel .bag-slot:hover,
.trade-inventory-panel .bag-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(127, 215, 255, 0.26);
}

.player-shop-layout {
    grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.2fr);
}

.npc-shop-hub {
    display: grid;
    grid-template-columns: 300px 520px 300px;
    gap: 18px;
    align-items: start;
    margin-top: 20px;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) {
    width: min(1180px, 100%);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(206, 163, 79, 0.34);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(18, 13, 8, 0.68), rgba(5, 8, 15, 0.72)),
        radial-gradient(circle at 18% 0%, rgba(215, 161, 63, 0.16), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(93, 152, 214, 0.11), transparent 30%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 235, 185, 0.05),
        0 28px 70px rgba(0, 0, 0, 0.36);
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) > [data-shop-panel] {
    grid-column: 1 / -1;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) > [data-shop-panel="buy"] {
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(430px, 1.34fr) minmax(260px, 0.88fr);
    gap: 14px;
    align-items: stretch;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) > [data-shop-panel="buy"][hidden],
.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) > [data-shop-panel="buyback"][hidden] {
    display: none;
}

.item-shop-layout {
    grid-template-columns: 300px 360px 280px 280px;
}

.itemshop-cart-grid {
    margin: 0 0 12px;
}

.itemshop-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 8px 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 188, 113, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(36, 24, 14, 0.94), rgba(14, 10, 7, 0.94));
}

.itemshop-cart-total span {
    color: rgba(226, 214, 187, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.itemshop-cart-total strong {
    color: #8fe7ff;
    font-size: 0.9rem;
}

.npc-shop-frame {
    min-height: 0;
    padding: 14px 14px 12px;
    background:
        linear-gradient(180deg, rgba(32, 22, 12, 0.98), rgba(11, 9, 7, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(255, 216, 143, 0.13), transparent 48%);
    border: 1px solid rgba(224, 179, 91, 0.34);
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 236, 190, 0.06),
        inset 0 0 24px rgba(0, 0, 0, 0.32),
        0 22px 42px rgba(0, 0, 0, 0.34);
}

.npc-shop-mode-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: -2px 0 4px;
    padding: 6px;
    border: 1px solid rgba(224, 179, 91, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 17, 29, 0.9), rgba(5, 7, 12, 0.92));
    width: fit-content;
    justify-self: center;
}

.npc-shop-mode-switch .ghost-btn {
    min-height: 34px;
    padding: 8px 18px;
    border-radius: 999px;
    color: #d7e4f3;
    background: transparent;
}

.npc-shop-mode-switch .ghost-btn.active {
    border-color: rgba(235, 190, 91, 0.78);
    background: linear-gradient(180deg, rgba(196, 139, 48, 0.92), rgba(94, 59, 16, 0.96));
    color: #fff4cf;
    box-shadow: 0 0 18px rgba(235, 190, 91, 0.16);
}

.npc-shop-buyback-frame {
    min-height: 430px;
}

.npc-shop-buyback-count {
    color: #d8c28e;
    font-size: 0.82rem;
    font-weight: 800;
}

.npc-shop-buyback-grid {
    grid-template-columns: repeat(10, 32px);
    align-content: start;
}

.npc-shop-buyback-form {
    display: contents;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-stock-frame,
.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-inventory-frame,
.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-cart-frame {
    min-height: 420px;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-cart-frame {
    display: grid;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-cart-grid {
    height: 100%;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-inventory-strip {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-geons-line {
    text-align: center;
}

.npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-buyback-frame {
    width: min(760px, 100%);
    justify-self: center;
}

@media (max-width: 1180px) {
    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) > [data-shop-panel="buy"] {
        grid-template-columns: minmax(260px, 1fr) minmax(390px, 1.25fr);
    }

    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-inventory-frame {
        grid-column: 1 / -1;
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) {
        padding: 10px;
        border-radius: 14px;
    }

    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) > [data-shop-panel="buy"] {
        grid-template-columns: 1fr;
    }

    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-stock-frame,
    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-cart-frame,
    .npc-shop-hub.shop-layout:not(.item-shop-layout):not(.player-shop-layout) .npc-shop-inventory-frame {
        min-height: 0;
    }

    .npc-shop-mode-switch {
        width: 100%;
    }

    .npc-shop-mode-switch .ghost-btn {
        flex: 1;
    }
}

.npc-shop-head {
    margin: -4px -4px 12px;
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(224, 179, 91, 0.18);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(17, 29, 51, 0.94), rgba(8, 13, 25, 0.96)),
        linear-gradient(90deg, rgba(224, 179, 91, 0.12), transparent 45%, rgba(118, 184, 255, 0.08));
}

.npc-shop-head h3 {
    margin: 0;
    color: #ffe1a0;
    font-family: "Cinzel", serif;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.npc-shop-grid-wrap {
    max-height: 310px;
    overflow: auto;
    padding-right: 6px;
}

.npc-shop-slot-grid {
    justify-content: center;
}

.npc-shop-item-slot {
    position: relative;
    overflow: visible;
}

.npc-shop-item-slot.empty {
    opacity: 0.82;
}

.npc-shop-item-slot.unusable {
    box-shadow: inset 0 0 0 2px rgba(255, 40, 20, 0.72), inset 0 0 12px rgba(255, 0, 0, 0.22);
}

.npc-shop-item-slot.unusable .inventory-slot-icon {
    opacity: 0.82;
    filter: brightness(0.82) saturate(0.9);
}

.shop-slot-button {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: var(--cursor-pointer);
}

.shop-layout .bag-slot,
.npc-shop-frame .bag-slot {
    border-radius: 7px;
    border-color: rgba(214, 158, 63, 0.38);
    background:
        radial-gradient(circle at 50% 42%, rgba(91, 61, 25, 0.45), transparent 60%),
        linear-gradient(180deg, rgba(28, 20, 14, 0.98), rgba(8, 7, 6, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 177, 0.06),
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 2px 0 rgba(233, 188, 93, 0.12),
        0 7px 14px rgba(0, 0, 0, 0.32);
}

.shop-layout .bag-slot:hover,
.npc-shop-frame .bag-slot:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 213, 120, 0.7);
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 177, 0.14),
        0 0 18px rgba(225, 171, 67, 0.22),
        0 8px 14px rgba(0, 0, 0, 0.34);
}

.npc-shop-slot-price,
.npc-shop-slot-stack {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.npc-shop-slot-price {
    top: 2px;
    font-size: 0.5rem;
    color: #f1d07a;
    z-index: 2;
}

.npc-shop-req-line {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 3px;
    font-size: 0.58rem;
    line-height: 1.15;
    text-align: center;
    color: rgba(198, 231, 255, 0.88);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.npc-shop-slot-stack {
    bottom: 2px;
    right: 3px;
    left: auto;
    transform: none;
    font-size: 0.62rem;
    color: #ffffff;
    z-index: 2;
}

.npc-shop-cart-frame {
    min-height: 0;
    min-width: 0;
    align-self: stretch;
}

.npc-shop-cart-lines {
    min-height: 160px;
}

.npc-shop-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.npc-shop-cart-panel {
    padding: 10px;
    border: 1px solid rgba(224, 179, 91, 0.14);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(4, 9, 17, 0.58), rgba(3, 6, 11, 0.7));
}

.npc-shop-cart-slot-grid {
    justify-content: flex-start;
    align-content: start;
    min-height: 168px;
    width: 100%;
    grid-template-columns: repeat(5, 32px);
}

.npc-shop-cart-panel .shop-cart-dropzone,
.npc-shop-cart-panel .shop-sell-dropzone {
    min-height: 62px;
    margin-bottom: 8px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(10, 17, 31, 0.78), rgba(5, 9, 17, 0.78)),
        radial-gradient(circle at 50% 0%, rgba(89, 158, 215, 0.1), transparent 70%);
}

.npc-shop-cart-slot {
    cursor: var(--cursor-pointer);
}

.npc-shop-cart-slot:hover {
    border-color: rgba(255, 222, 139, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 222, 139, 0.2), 0 0 12px rgba(227, 190, 113, 0.16);
}

.npc-shop-cart-form .primary-btn,
.npc-shop-cart-form .ghost-btn {
    width: 100%;
    min-height: 40px;
}

.npc-shop-cart-actions {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    margin-top: 8px;
}

.npc-cart-submit-btn,
.npc-cart-clear-btn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
}

.npc-shop-sell-all-inventory {
    min-height: 28px !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
}

.npc-shop-inventory-strip {
    margin-top: 10px;
    max-width: 120px;
}

.npc-shop-geons-line {
    grid-column: 1 / -1;
}

.storage-inventory-panel .npc-shop-inventory-strip,
.trade-inventory-panel .npc-shop-inventory-strip {
    max-width: 248px;
}

.storage-inventory-panel .npc-shop-geons-line,
.trade-inventory-panel .npc-shop-geons-line {
    grid-column: auto;
}

.npc-player-shop-manage {
    display: grid;
    gap: 14px;
}

.npc-player-shop-browser {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.player-shop-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.quest-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 12px;
}

.quest-listing-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.player-shop-listing-grid > h3,
.player-shop-listing-grid > .empty-state {
    grid-column: 1 / -1;
}

.quest-listing-grid > h3,
.quest-listing-grid > .empty-state {
    grid-column: 1 / -1;
}

.quest-listing-full > h3,
.quest-listing-full > .empty-state {
    grid-column: 1 / -1;
}

.player-shop-listing-grid .world-item {
    align-items: stretch;
}

.player-shop-listing-grid .shop-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.player-shop-listing-grid .shop-inline-form label:nth-of-type(3),
.player-shop-listing-grid .shop-inline-form button {
    grid-column: 1 / -1;
}

.npc-player-shop-tabs {
    justify-content: flex-start;
    gap: 8px;
}

.npc-player-shop-page {
    display: grid;
    gap: 10px;
}

.storage-hub {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.storage-top-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.15fr);
    gap: 18px;
    align-items: start;
}

.storage-panel {
    min-width: 0;
    max-height: 430px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 188, 113, 0.82) rgba(8, 7, 5, 0.45);
    padding: 14px;
    border: 1px solid rgba(219, 177, 93, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(24, 18, 12, 0.98), rgba(12, 9, 6, 0.96)),
        radial-gradient(circle at top, rgba(255, 218, 150, 0.08), transparent 50%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 235, 196, 0.04),
        0 22px 42px rgba(0, 0, 0, 0.28);
}

.storage-panel::-webkit-scrollbar,
.npc-modal-card::-webkit-scrollbar,
.npc-scroll-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.storage-panel::-webkit-scrollbar-track,
.npc-modal-card::-webkit-scrollbar-track,
.npc-scroll-list::-webkit-scrollbar-track {
    background: rgba(8, 7, 5, 0.45);
    border-radius: 999px;
}

.storage-panel::-webkit-scrollbar-thumb,
.npc-modal-card::-webkit-scrollbar-thumb,
.npc-scroll-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(226, 188, 113, 0.82), rgba(119, 82, 35, 0.9));
    border-radius: 999px;
    border: 1px solid rgba(255, 236, 190, 0.16);
}

.storage-inline-feedback {
    margin: 0;
}

.npc-shop-feedback {
    grid-column: 1 / -1;
    margin: 0;
    animation: notice-soft-pop 180ms ease-out both;
}

@keyframes notice-soft-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.storage-panel.drop-hover {
    border-color: rgba(239, 205, 128, 0.78);
    box-shadow:
        inset 0 0 0 1px rgba(239, 205, 128, 0.26),
        0 0 24px rgba(239, 205, 128, 0.14);
}

.storage-geon-row {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.storage-geon-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.storage-geon-controls input[type="number"] {
    width: 130px;
}

.storage-geon-form {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.storage-geon-form input,
.storage-rename-form input {
    min-height: 34px;
    border: 1px solid rgba(219, 177, 93, 0.2);
    border-radius: 10px;
    background: rgba(4, 7, 10, 0.88);
    color: #fff2d6;
    padding: 8px 10px;
}

.storage-geon-form .ghost-btn,
.storage-rename-form .ghost-btn,
.storage-permission-form .ghost-btn {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border-color: rgba(219, 177, 93, 0.26);
    background: linear-gradient(180deg, rgba(33, 27, 18, 0.96), rgba(14, 11, 7, 0.96));
    color: #f5ddb0;
    font-size: 0.82rem;
}

.storage-wallet,
.storage-hint {
    color: #c8d5e5;
    font-size: 0.82rem;
}

.storage-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 10px;
}

.storage-bulk-toolbar .ghost-btn {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 0.78rem;
}

.storage-bulk-note {
    color: rgba(200, 213, 229, 0.78);
    font-size: 0.74rem;
}

.storage-grid {
    grid-template-columns: repeat(10, 32px);
    justify-content: flex-start;
    align-content: start;
    max-height: 238px;
    overflow: auto;
    padding: 4px;
}

.storage-inventory-grid {
    grid-template-columns: repeat(5, 32px);
    max-height: none;
}

.storage-inventory-panel {
    max-width: 560px;
    max-height: 360px;
    margin-top: 0;
}

.storage-inventory-panel .inventory-footer-strip {
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    justify-content: center;
    align-items: stretch;
    margin-top: 10px;
}

.storage-tabs,
.storage-inventory-tabs,
.trade-inventory-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    gap: 6px;
}

.storage-tabs .inventory-page-tab,
.storage-inventory-tabs .inventory-page-tab,
.trade-inventory-tabs .inventory-page-tab {
    min-width: 42px;
    min-height: 32px;
    border: 1px solid rgba(219, 177, 93, 0.28);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(45, 32, 18, 0.94), rgba(17, 12, 7, 0.96));
    color: #f7e0b0;
    font-weight: 800;
    cursor: var(--cursor-pointer);
}

.storage-tabs .inventory-page-tab.active,
.storage-inventory-tabs .inventory-page-tab.active,
.trade-inventory-tabs .inventory-page-tab.active {
    background: linear-gradient(180deg, rgba(179, 105, 38, 0.98), rgba(94, 53, 20, 0.98));
    color: #fff5da;
    box-shadow: inset 0 0 0 1px rgba(255, 235, 177, 0.22);
}

.storage-tabs .inventory-page-tab:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.storage-locked-slot {
    opacity: 0.38;
    border-style: dashed;
}

.storage-locked-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 224, 164, 0.66);
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.storage-bulk-check {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 4;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: rgba(2, 5, 9, 0.82);
    border: 1px solid rgba(239, 205, 128, 0.42);
    cursor: var(--cursor-pointer);
}

.storage-bulk-check input {
    width: 11px;
    height: 11px;
    margin: 0;
    accent-color: #d9a64a;
    cursor: var(--cursor-pointer);
}

.storage-admin-row {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(219, 177, 93, 0.16);
}

.storage-rename-grid,
.storage-permissions {
    display: grid;
    gap: 8px;
}

.storage-rename-form,
.storage-permission-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(219, 177, 93, 0.14);
    border-radius: 12px;
    background: rgba(255, 226, 159, 0.03);
}

.storage-permission-form label {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: #d8e4f3;
    font-size: 0.78rem;
}

.storage-action-form {
    display: none;
}

.town-player-row {
    cursor: default;
}

.town-player-action {
    margin: 0;
}

.trade-window {
    margin: 18px 0;
    padding: 18px;
}

.trade-layout-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.2fr);
    gap: 18px;
    align-items: start;
}

.trade-window .storage-panel {
    max-height: none;
}

.trade-slot-grid {
    grid-template-columns: repeat(5, 32px);
    justify-content: flex-start;
    align-content: start;
    min-height: 184px;
    padding: 4px;
}

.trade-inventory-panel .trade-slot-grid {
    grid-template-columns: repeat(10, 32px);
}

.trade-own-head {
    margin-top: 18px;
}

.trade-actions,
.trade-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.trade-actions {
    margin-top: 14px;
}

.trade-pending-box {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(219, 177, 93, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(26, 19, 12, 0.94), rgba(11, 8, 6, 0.94));
    color: #dce9f8;
}

.trade-currency-line,
.trade-currency-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 10px;
    color: #dce9f8;
    font-size: 0.82rem;
}

.trade-currency-line span {
    padding: 7px 10px;
    border: 1px solid rgba(219, 177, 93, 0.18);
    border-radius: 999px;
    background: rgba(255, 226, 159, 0.04);
}

.trade-currency-form label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #d7c49d;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trade-currency-form input {
    width: 110px;
    min-height: 32px;
    border: 1px solid rgba(219, 177, 93, 0.22);
    border-radius: 10px;
    background: rgba(4, 7, 10, 0.88);
    color: #fff2d6;
    padding: 6px 9px;
}

.trade-own-dropzone.drop-hover {
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(239, 205, 128, 0.34), 0 0 18px rgba(239, 205, 128, 0.12);
}

@media (max-width: 1180px) {
    .trade-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .storage-top-grid {
        grid-template-columns: 1fr;
    }
}

.quantity-modal {
    position: fixed;
    inset: 0;
    z-index: 420;
    display: grid;
    place-items: center;
    background: rgba(5, 8, 12, 0.72);
}

.quantity-modal-card {
    width: 320px;
    padding: 12px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(24, 18, 12, 0.98), rgba(12, 9, 6, 0.96)),
        radial-gradient(circle at top, rgba(255, 218, 150, 0.08), transparent 50%);
    border: 1px solid rgba(219, 177, 93, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255, 235, 196, 0.04),
        0 24px 50px rgba(0, 0, 0, 0.36);
}

.quantity-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.quantity-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(219, 177, 93, 0.22);
    background: linear-gradient(180deg, rgba(49, 35, 20, 0.96), rgba(22, 16, 10, 0.96));
    color: #f4dfb6;
    cursor: var(--cursor-pointer);
}

.quantity-modal-display {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-modal-display input {
    width: 100%;
    border: 1px solid rgba(219, 177, 93, 0.2);
    background: rgba(11, 9, 7, 0.88);
    color: #fff2d6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    text-align: center;
}

.quantity-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-modal-actions .btn {
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(219, 177, 93, 0.24);
    background: linear-gradient(180deg, rgba(49, 35, 20, 0.96), rgba(22, 16, 10, 0.96));
    color: #f4dfb6;
    font-weight: 700;
}

.quantity-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quantity-keypad button {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(219, 177, 93, 0.24);
    background: linear-gradient(180deg, rgba(49, 35, 20, 0.96), rgba(22, 16, 10, 0.96));
    color: #f4dfb6;
    font-weight: 700;
    cursor: var(--cursor-pointer);
}

.npc-trade-shell {
    align-items: start;
}

.npc-trade-panel {
    min-height: 620px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(20, 15, 8, 0.96), rgba(11, 8, 4, 0.98)),
        radial-gradient(circle at top, rgba(226, 188, 113, 0.08), transparent 36%);
    border: 1px solid rgba(226, 188, 113, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 234, 190, 0.04), 0 22px 42px rgba(0, 0, 0, 0.3);
}

.npc-trade-head {
    margin-bottom: 16px;
}

.npc-trade-head h3,
.npc-trade-subpanel h4 {
    margin: 0;
    color: #fff1cc;
}

.npc-trade-subpanel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 188, 113, 0.18);
}

.npc-scroll-list {
    max-height: 520px;
    overflow: auto;
    padding-right: 8px;
}

.shop-grid {
    display: grid;
    gap: 10px;
}

.shop-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.npc-trade-item {
    background: rgba(58, 28, 10, 0.42);
    border: 1px solid rgba(226, 188, 113, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 180, 0.03);
}

.npc-trade-item strong {
    color: #fff4da;
}

.npc-trade-item span,
.npc-trade-item label span {
    color: rgba(244, 229, 198, 0.82);
}

.shop-item input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 11, 18, 0.7);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
}

.npc-trade-item input {
    background: rgba(18, 12, 7, 0.88);
    border-color: rgba(226, 188, 113, 0.18);
}

.shop-inline-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 120px auto;
    gap: 10px;
    align-items: end;
}

.shop-inline-form select,
.shop-inline-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 11, 18, 0.7);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
}

.shop-page-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.shop-page-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.shop-page-item-main > div {
    display: grid;
    gap: 4px;
}

.npc-blacksmith-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.npc-blacksmith-line {
    align-items: start;
}

.npc-blacksmith-main span {
    color: var(--muted);
}

.npc-blacksmith-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.blacksmith-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
}

.npc-blacksmith-upgrade-frame {
    display: grid;
    gap: 14px;
}

.npc-blacksmith-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.npc-blacksmith-mode-tab {
    border: 1px solid rgba(221, 154, 91, 0.35);
    background: rgba(19, 12, 8, 0.75);
    color: rgba(245, 228, 210, 0.85);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: var(--cursor-pointer);
    font-weight: 700;
}

.npc-blacksmith-mode-tab.active {
    background: linear-gradient(180deg, rgba(198, 116, 57, 0.95), rgba(134, 69, 29, 0.95));
    color: #ffe4c8;
    border-color: rgba(255, 193, 134, 0.55);
}

.npc-blacksmith-mode-panel {
    display: none;
    gap: 14px;
}

.npc-blacksmith-mode-panel.active {
    display: grid;
}

.npc-blacksmith-hint-card {
    gap: 6px;
}

.npc-blacksmith-hint-card strong {
    display: block;
    font-size: 0.92rem;
}

.npc-blacksmith-notice {
    margin: 0;
    position: relative;
    z-index: 2;
}

.npc-blacksmith-upgrade-slot {
    position: relative;
    min-height: 110px;
    border-radius: 16px;
    border: 1px dashed rgba(226, 188, 113, 0.34);
    background: rgba(18, 12, 7, 0.74);
    display: grid;
    place-items: center;
}

.npc-blacksmith-upgrade-slot img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.npc-blacksmith-slot-copy {
    color: rgba(236, 224, 194, 0.72);
    font-size: 0.85rem;
    text-align: center;
}

.blacksmith-upgrade-slot-button {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
}

.npc-blacksmith-upgrade-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.npc-blacksmith-action-row {
    justify-content: flex-end;
}

.npc-blacksmith-section-head {
    margin-top: 4px;
}

.npc-blacksmith-destroy-dropzone {
    min-height: 88px;
}

.npc-blacksmith-destroy-lines {
    min-height: 120px;
}

.npc-blacksmith-destroy-total-card {
    padding: 10px 12px;
}

.npc-blacksmith-destroy-total-card strong {
    font-size: 1rem;
}

.npc-blacksmith-destroy-form .npc-shop-cart-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.npc-blacksmith-destroy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 32px));
    gap: 10px;
    justify-content: start;
}

.npc-blacksmith-destroy-slot {
    cursor: var(--cursor-pointer);
}

.npc-blacksmith-destroy-slot .shop-slot-button {
    cursor: var(--cursor-pointer);
}

.ornament-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.1fr;
    gap: 18px;
    width: 100%;
}

.ornament-layout {
    width: 100%;
}

.ornament-layout .mixmaster-shell {
    border: 1px solid rgba(226, 188, 113, 0.28);
    border-radius: 16px;
    padding: 14px;
    background:
        linear-gradient(90deg, rgba(7, 24, 58, 0.96) 0%, rgba(4, 12, 38, 0.98) 52%, rgba(3, 18, 64, 0.96) 100%),
        radial-gradient(circle at 22% -18%, rgba(60, 130, 235, 0.25), transparent 48%);
    box-shadow: inset 0 0 0 1px rgba(255, 227, 161, 0.08);
}

.ornament-layout .mixmaster-tabs-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ornament-layout .mixmaster-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    line-height: 1;
    text-decoration: none;
}

.ornament-layout .mixmaster-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr) 340px;
    gap: 14px;
    align-items: start;
}

.ornament-layout .npc-blacksmith-upgrade-frame {
    width: 100%;
    min-height: 74vh;
}

.ornament-layout-grid--full {
    grid-template-columns: 1.4fr 1fr 1.1fr;
    grid-template-areas:
        "selected buff usable"
        "materials materials usable";
    align-items: start;
}

.ornament-upgrade-list {
    max-height: 680px;
    display: grid;
    gap: 10px;
}

.ornament-upgrade-row {
    display: grid;
    gap: 4px;
}

.ornament-upgrade-stage {
    display: grid;
    gap: 10px;
    align-content: start;
}

.ornament-upgrade-slot-button {
    min-height: 58px;
    width: 100%;
}

.ornament-trinket-dropzone {
    min-height: 74px;
}

.ornament-amount-line {
    font-weight: 700;
    font-size: 12px;
}

.ornament-amount-enough {
    color: #49d17a;
}

.ornament-amount-missing {
    color: #ff6666;
}

.ornament-mode-tabs .npc-blacksmith-mode-tab {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.ornament-mode-tabs {
    gap: 8px;
}

.ornament-buy-wrap {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.ornament-buy-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
}

.ornament-buy-copy {
    display: grid;
    gap: 4px;
    max-width: 360px;
}

.ornament-buy-copy span {
    color: #bfc6de;
    font-size: 12px;
}

.ornament-detail-card {
    display: grid;
    gap: 4px;
}

.ornament-upgrade-row.active {
    border-color: rgba(73, 209, 122, 0.55);
    box-shadow: 0 0 0 1px rgba(73, 209, 122, 0.25) inset;
}

.ornament-selected-card {
    grid-area: selected;
    min-height: 170px;
}

.ornament-buff-card {
    grid-area: buff;
    min-height: 170px;
}

.ornament-materials-card {
    grid-area: materials;
}

.ornament-usable-card {
    grid-area: usable;
    min-height: 420px;
}

.ornament-selected-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.ornament-selected-meta {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.ornament-material-center {
    display: flex;
    justify-content: center;
    margin: 8px 0 10px;
}

.ornament-material-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.ornament-material-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: center;
    justify-items: center;
    text-align: center;
    border: 1px solid rgba(201, 150, 84, 0.25);
    border-radius: 10px;
    padding: 8px 6px;
}

.ornament-usable-grid {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    max-height: 510px;
    overflow: auto;
}

.ornament-usable-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(201, 150, 84, 0.35);
    border-radius: 10px;
    background: rgba(6, 13, 32, 0.55);
}

.ornament-usable-item.active {
    border-color: rgba(73, 209, 122, 0.55);
    box-shadow: 0 0 0 1px rgba(73, 209, 122, 0.28) inset;
}

.ornament-buy-wrap .npc-blacksmith-upgrade-slot {
    max-width: 360px;
}

.ornament-inventory-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 42px));
    gap: 8px;
    align-items: start;
    max-height: 220px;
    overflow: auto;
    padding-right: 6px;
}

.npc-shop-inventory-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mixmaster-shell {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    border: 1px solid rgba(195, 145, 72, 0.5);
    border-radius: 14px;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(36, 16, 8, 0.95), rgba(14, 8, 5, 0.96)),
        radial-gradient(circle at top right, rgba(243, 155, 90, 0.18), transparent 48%);
    box-shadow: inset 0 0 0 1px rgba(255, 213, 145, 0.12);
}

.mixmaster-tabs-head {
    display: flex;
    gap: 10px;
}

.mixmaster-tab {
    border: 1px solid rgba(221, 154, 91, 0.35);
    background: rgba(19, 12, 8, 0.75);
    color: rgba(245, 228, 210, 0.85);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: var(--cursor-pointer);
}

.mixmaster-tab.active {
    background: linear-gradient(180deg, rgba(198, 116, 57, 0.95), rgba(134, 69, 29, 0.95));
    color: #ffe4c8;
    border-color: rgba(255, 193, 134, 0.55);
}

.mixmaster-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 330px) 340px;
    gap: 12px;
    align-items: start;
}

.mixmaster-left {
    display: grid;
    gap: 12px;
}

.mixmaster-panel {
    display: none;
    border-radius: 14px;
    border: 1px solid rgba(221, 154, 91, 0.28);
    background: rgba(10, 8, 6, 0.62);
    padding: 12px;
    gap: 10px;
}

.mixmaster-panel.active {
    display: grid;
}

.hanin-essence-shell .mixmaster-layout {
    grid-template-columns: minmax(300px, 360px) minmax(380px, 1fr) minmax(420px, 520px);
    gap: 14px;
    align-items: stretch;
}

.hanin-essence-shell.npc-shop-hub {
    display: block;
    grid-template-columns: 1fr;
    width: 100%;
}

.hanin-essence-shell .mixmaster-shell {
    width: 100%;
}

.hanin-essence-shell .mixmaster-left .mixmaster-panel {
    min-width: 0;
}

.hanin-slot-note {
    margin: 0 0 10px;
    color: #d7c39a;
    font-size: 12px;
}

.hanin-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 74px);
    gap: 8px 10px;
    margin-bottom: 12px;
    justify-content: start;
}

.hanin-slot-cell {
    display: grid;
    gap: 4px;
    justify-items: start;
}

.hanin-drop-slot {
    width: 74px;
    min-width: 74px;
    height: 74px;
    min-height: 74px;
    position: relative;
    background-image: url("ui/inventory/slot back-essence.png") !important;
    background-size: 34px 34px;
    background-position: center 19px;
    background-repeat: no-repeat;
    padding: 0;
    display: block;
}

.hanin-drop-slot.is-active-slot {
    border-color: #f0cb7f;
    box-shadow: 0 0 0 2px rgba(240, 203, 127, 0.2), inset 0 0 16px rgba(240, 203, 127, 0.12);
}

.hanin-drop-slot .mixmaster-slot-name {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 4px;
    font-size: 9px;
    line-height: 1;
    z-index: 3;
}

.hanin-slot-item-icon {
    position: absolute;
    width: 34px;
    height: 34px;
    left: 50%;
    top: 19px;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 1;
    filter: none;
}

.hanin-slot-tooltip {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    background: transparent;
    pointer-events: auto;
}

.hanin-slot-filled-label {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 3px;
    font-size: 9px;
    color: #e6d9bc;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
}

.hanin-inventory-slot {
    cursor: pointer;
}

.hanin-essence-shell .mixmaster-inventory-frame .npc-shop-grid-wrap {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.hanin-essence-shell .mixmaster-inventory-frame .npc-shop-slot-grid {
    grid-template-columns: repeat(5, 34px);
    grid-auto-rows: 34px;
    gap: 8px;
    justify-content: start;
    align-content: start;
}

.hanin-essence-shell .npc-shop-inventory-strip {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    margin-left: -14px;
}

.hanin-essence-shell .npc-shop-inventory-strip .inventory-money-line {
    min-width: 120px;
    width: auto;
}

.hanin-item-muted {
    opacity: 0.35;
    filter: grayscale(0.9);
}

.hanin-item-muted .hanin-inventory-slot {
    cursor: not-allowed;
}

.hanin-auto-upgrade-box {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(231, 191, 123, 0.3);
    display: grid;
    gap: 8px;
}

.hanin-auto-selected {
    box-shadow: 0 0 0 2px rgba(93, 219, 157, 0.88), inset 0 0 14px rgba(93, 219, 157, 0.2);
    border-color: rgba(93, 219, 157, 0.95) !important;
}

.hanin-auto-toggle-needed {
    border-color: #f0cb7f !important;
    box-shadow: 0 0 0 2px rgba(240, 203, 127, 0.25), inset 0 0 12px rgba(240, 203, 127, 0.15);
}

.trigram-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 74px);
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.trigram-drop-slot {
    width: 74px;
    min-width: 74px;
    height: 74px;
    min-height: 74px;
}

.trigram-slot-filled-label {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 3px;
    font-size: 9px;
    color: #e6d9bc;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
}

.mixmaster-panel-static {
    align-content: start;
}

.mixmaster-panel h4 {
    margin: 0;
    color: #ffbe84;
}

.mixmaster-panel p {
    margin: 0;
    color: rgba(245, 228, 210, 0.78);
    font-size: 0.9rem;
}

.mixmaster-drop-slot {
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(230, 184, 121, 0.4);
    background: transparent;
    color: rgba(244, 216, 189, 0.92);
    text-align: center;
    cursor: var(--cursor-pointer);
    padding: 6px;
    font-size: 0.68rem;
    line-height: 1.2;
    display: grid;
    place-items: center;
    gap: 4px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 32px 32px;
}

.mixmaster-drop-slot[data-mixmaster-accept="weapon"] {
    background-image: url("ui/inventory/slot back-weapon.bmp");
}

.mixmaster-drop-slot[data-mixmaster-accept="armor"] {
    background-image: url("ui/inventory/slot back-chest.bmp");
}

.mixmaster-drop-slot[data-mixmaster-accept="stone"] {
    background-image: none;
}

.mixmaster-drop-slot[data-mixmaster-accept="stone"]::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 32px;
    height: 32px;
    background: url("Items/General/Item207.bmp") center/32px 32px no-repeat;
    filter: grayscale(1) saturate(0) brightness(0.95) contrast(1.05);
    pointer-events: none;
    z-index: 0;
}

.mixmaster-drop-slot[data-mixmaster-accept="stone"].is-filled::before {
    display: none;
}

.mixmaster-drop-slot.is-filled {
    border-style: solid;
    border-color: rgba(125, 220, 164, 0.5);
    background-color: rgba(24, 36, 28, 0.72);
}

.mixmaster-drop-slot.is-invalid {
    border-style: solid;
    border-color: rgba(230, 95, 95, 0.7);
    background-color: rgba(54, 20, 20, 0.74);
}

.mixmaster-drop-slot.drop-hover {
    border-color: rgba(249, 205, 145, 0.8);
    background-color: rgba(52, 31, 17, 0.92);
}

.mixmaster-wheel {
    position: relative;
    width: 270px;
    height: 270px;
    margin: 2px auto 8px;
    border-radius: 50%;
    border: 1px solid rgba(223, 157, 92, 0.35);
    background:
        linear-gradient(180deg, rgba(10, 8, 6, 0.18), rgba(10, 8, 6, 0.18)),
        url("ui/MIX.bmp") center/contain no-repeat;
}

.mixmaster-wheel-center,
.mixmaster-wheel-node {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    letter-spacing: 0.03em;
}

.mixmaster-wheel-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: none;
}

.mixmaster-wheel-node-top {
    left: 50%;
    top: 33px;
    transform: translateX(-50%);
}

.mixmaster-wheel-node-left {
    left: 33px;
    top: 50%;
    transform: translateY(-50%);
}

.mixmaster-wheel-node-right {
    right: 33px;
    top: 50%;
    transform: translateY(-50%);
}

.mixmaster-wheel-node-bottom {
    left: 50%;
    bottom: 33px;
    transform: translateX(-50%);
}

.mixmaster-inventory-frame {
    position: sticky;
    top: 14px;
}

.mixmaster-inventory-frame .bag-slot.mixmaster-material-candidate {
    border-color: rgba(95, 218, 141, 0.82);
    background:
        linear-gradient(180deg, rgba(18, 54, 32, 0.96), rgba(8, 22, 14, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(188, 255, 207, 0.16),
        0 0 0 1px rgba(95, 218, 141, 0.34),
        0 0 14px rgba(95, 218, 141, 0.22);
}

.mixmaster-inventory-frame .bag-slot.mixmaster-material-candidate::after {
    content: "OK";
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 4;
    min-width: 16px;
    height: 13px;
    border-radius: 3px;
    background: rgba(21, 86, 45, 0.94);
    color: #d9ffe5;
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(188, 255, 207, 0.28);
}

.mixmaster-inventory-frame .bag-slot.mixmaster-material-sub::after {
    content: "SUB";
}

.mixmaster-inventory-frame .bag-slot.mixmaster-material-armor::after {
    content: "ARM";
}

.mixmaster-slot-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.mixmaster-slot-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    max-width: 62px;
    text-align: center;
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
    pointer-events: none;
}

.mixmaster-drop-slot.is-filled .mixmaster-slot-name {
    display: none;
}

.mixmaster-drop-slot[data-mixmaster-accept="stone"]:not(.is-filled) .mixmaster-slot-name {
    top: 76%;
    transform: translate(-50%, -50%);
    max-width: 64px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.mixmaster-wheel .mixmaster-drop-slot {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.mixmaster-wheel .mixmaster-drop-slot.is-filled,
.mixmaster-wheel .mixmaster-drop-slot.is-invalid,
.mixmaster-wheel .mixmaster-drop-slot.drop-hover {
    background-color: transparent;
}

.mixmaster-inline-feedback {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.86rem;
    border: 1px solid rgba(223, 157, 92, 0.3);
    background: rgba(21, 14, 10, 0.72);
    color: rgba(245, 228, 210, 0.9);
}

.mixmaster-inline-feedback.is-error {
    border-color: rgba(229, 99, 99, 0.55);
    background: rgba(66, 20, 20, 0.72);
    color: #ffd8d8;
}

.mixmaster-inline-feedback.is-success {
    border-color: rgba(110, 208, 140, 0.55);
    background: rgba(24, 54, 31, 0.72);
    color: #d6ffe2;
}

.equipped-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(91, 164, 255, 0.18), rgba(28, 84, 152, 0.26));
    box-shadow: inset 0 0 0 1px rgba(140, 201, 255, 0.3);
    pointer-events: none;
    z-index: 1;
}

.inventory-equipped-badge {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(36, 86, 150, 0.9);
    color: #e7f3ff;
    font-size: 0.44rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
    z-index: 3;
}

.inventory-revision-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(118, 78, 22, 0.92);
    color: #ffe3a6;
    font-size: 0.44rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    pointer-events: none;
    z-index: 3;
}

@media (max-width: 1200px) {
    .blacksmith-layout {
        grid-template-columns: 1fr;
    }
    .mixmaster-layout {
        grid-template-columns: 1fr;
    }
    .mixmaster-inventory-frame {
        position: static;
    }
}

.droplist-layout {
    display: grid;
    gap: 18px;
}

.lootfilter-shell {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(19, 15, 10, 0.93), rgba(10, 8, 6, 0.94)),
        radial-gradient(circle at top, rgba(255, 214, 133, 0.08), transparent 42%);
    border: 1px solid rgba(219, 177, 93, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 187, 0.04),
        0 28px 60px rgba(5, 4, 3, 0.34);
}

.lootfilter-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.lootfilter-head-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lootfilter-head h3 {
    margin: 0 0 6px;
}

.lootfilter-head p {
    margin: 0;
    color: rgba(235, 239, 255, 0.72);
}

.lootfilter-toolbar,
.lootfilter-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.lootfilter-toolbar {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(219, 177, 93, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lootfilter-toolbar label {
    display: grid;
    gap: 6px;
    min-width: 170px;
}

.lootfilter-toolbar span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lootfilter-toolbar select {
    appearance: none;
    min-height: 42px;
    padding: 0 40px 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 188, 113, 0.28);
    background:
        linear-gradient(180deg, rgba(32, 21, 12, 0.95), rgba(18, 12, 7, 0.95)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23e2bc71' d='M3.2 4.9 7 8.7l3.8-3.8 1.2 1.2L7 11.1 2 6.1z'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: #f6efe2;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lootfilter-toolbar select:hover {
    border-color: rgba(226, 188, 113, 0.45);
}

.lootfilter-toolbar select:focus {
    outline: none;
    border-color: rgba(226, 188, 113, 0.72);
    box-shadow: 0 0 0 3px rgba(226, 188, 113, 0.14);
}

.lootfilter-toolbar select option {
    background: #1a120a;
    color: #f6efe2;
}

.lootfilter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 98px));
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(219, 177, 93, 0.08);
}

.lootfilter-slot {
    position: relative;
    width: 98px;
    min-height: 122px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 28px 7px 8px;
    border-radius: 10px;
    border: 1px solid rgba(214, 176, 96, 0.16);
    background:
        linear-gradient(180deg, rgba(31, 22, 14, 0.96), rgba(14, 10, 7, 0.96)),
        radial-gradient(circle at top, rgba(255, 215, 128, 0.06), transparent 54%);
    cursor: var(--cursor-pointer);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    appearance: none;
    outline: none;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 187, 0.02),
        0 5px 16px rgba(0, 0, 0, 0.14);
}

.lootfilter-slot:hover {
    transform: translateY(-1px);
    border-color: rgba(226, 188, 113, 0.34);
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 187, 0.03),
        0 8px 18px rgba(0, 0, 0, 0.18);
}

.lootfilter-slot.lootfilter-mode-destroy {
    border-color: rgba(224, 93, 93, 0.72);
    box-shadow: inset 0 0 0 1px rgba(224, 93, 93, 0.35);
}

.lootfilter-slot.lootfilter-mode-sell {
    border-color: rgba(175, 112, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(175, 112, 255, 0.3);
}

.lootfilter-slot.lootfilter-mode-revision {
    border-color: rgba(99, 210, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(99, 210, 255, 0.3);
}

.lootfilter-grade {
    font-size: 0.52rem;
    color: #d8ad62;
    letter-spacing: 0.08em;
    line-height: 1;
}

.lootfilter-icon-wrap {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(34, 27, 21, 0.92), rgba(18, 14, 11, 0.92));
    border: 1px solid rgba(226, 188, 113, 0.12);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 232, 187, 0.02);
    margin-top: -1px;
}

.lootfilter-icon-wrap .inventory-slot-icon,
.lootfilter-icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    object-position: center center;
    display: block;
    image-rendering: pixelated;
}

.lootfilter-item-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    object-position: center center;
    display: block;
    image-rendering: pixelated;
}

.lootfilter-name {
    font-size: 0.6rem;
    line-height: 1.2;
    text-align: center;
    color: #f4efe5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    max-width: 100%;
    word-break: break-word;
}

.lootfilter-state {
    margin-top: auto;
    font-size: 0.56rem;
    color: rgba(235, 239, 255, 0.66);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.lootfilter-slot.lootfilter-mode-default .lootfilter-state { color: rgba(235, 239, 255, 0.66); }
.lootfilter-slot.lootfilter-mode-destroy .lootfilter-state { color: #ff9b9b; }
.lootfilter-slot.lootfilter-mode-sell .lootfilter-state { color: #ccacff; }
.lootfilter-slot.lootfilter-mode-revision .lootfilter-state { color: #95e8ff; }

.lootfilter-community-list {
    display: grid;
    gap: 10px;
    max-height: min(58vh, 560px);
    overflow: auto;
    padding-right: 4px;
}

.lootfilter-community-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(219, 177, 93, 0.12);
}

.lootfilter-community-controls {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.lootfilter-community-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lootfilter-community-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
}

.lootfilter-community-search,
.lootfilter-community-sort {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(226, 188, 113, 0.28);
    background: rgba(14, 10, 8, 0.95);
    color: #f6efe2;
    padding: 0 12px;
}

.lootfilter-community-meta {
    display: grid;
    gap: 4px;
}

.lootfilter-community-title {
    font-weight: 700;
    color: #f4efe5;
}

.lootfilter-community-subline {
    color: rgba(235, 239, 255, 0.68);
    font-size: 0.82rem;
}

.lootfilter-community-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.lootfilter-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.lootfilter-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 10, 0.68);
    backdrop-filter: blur(2px);
}

.lootfilter-modal-card {
    position: relative;
    width: min(860px, calc(100vw - 28px));
    max-height: calc(100vh - 42px);
    border-radius: 18px;
    border: 1px solid rgba(219, 177, 93, 0.26);
    background:
        linear-gradient(180deg, rgba(19, 15, 10, 0.96), rgba(10, 8, 6, 0.97)),
        radial-gradient(circle at top, rgba(255, 214, 133, 0.08), transparent 42%);
    box-shadow: 0 34px 64px rgba(0, 0, 0, 0.48);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.lootfilter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(219, 177, 93, 0.16);
}

.lootfilter-modal-body {
    padding: 14px 16px;
    overflow: auto;
}

.lootfilter-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(219, 177, 93, 0.16);
}

.lootfilter-upload-grid {
    display: grid;
    gap: 8px;
}

.lootfilter-upload-grid label {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lootfilter-upload-grid input {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(226, 188, 113, 0.35);
    background: rgba(12, 10, 8, 0.92);
    color: #f6efe2;
    padding: 0 12px;
}

@media (max-width: 720px) {
    .lootfilter-community-row {
        grid-template-columns: 1fr;
    }
    .lootfilter-community-entry {
        grid-template-columns: 1fr;
    }
    .lootfilter-community-actions {
        justify-content: flex-start;
    }
}

.droplist-card {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 360px) 1fr;
    align-items: start;
}

.droplist-monster {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.droplist-portrait img,
.droplist-portrait .fighter-silhouette {
    width: 104px;
    height: 104px;
    border-radius: 18px;
    object-fit: cover;
}

.droplist-monster-copy h3 {
    margin: 0 0 8px;
}

.droplist-monster-copy p {
    margin: 4px 0;
}

.droplist-stats {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    color: rgba(235, 239, 255, 0.8);
    font-size: 0.92rem;
}

.droplist-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.droplist-drop {
    position: relative;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(226, 188, 113, 0.34);
    border-radius: 12px;
    background: rgba(8, 12, 20, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.droplist-drop img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.droplist-drop-rate,
.droplist-drop-amount {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.droplist-drop-rate {
    top: 4px;
    color: #f1d07a;
}

.droplist-drop-amount {
    bottom: 4px;
    color: #d8e6ff;
}

.ranking-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.active-chip {
    border-color: rgba(226, 188, 113, 0.34);
    background: rgba(226, 188, 113, 0.12);
    color: #fff2c8;
}

.quest-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.quest-sub-tab-row {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(226, 188, 113, 0.16);
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 72px minmax(220px, 1.6fr) repeat(3, minmax(120px, 1fr));
    align-items: center;
}

.ranking-place {
    display: inline-flex;
    min-width: 52px;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(226, 188, 113, 0.14);
    border: 1px solid rgba(226, 188, 113, 0.24);
    color: #fff2c8;
    font-weight: 700;
}

.mobile-item-sheet {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    background: rgba(2, 5, 10, 0.72);
    backdrop-filter: blur(8px);
}

.mobile-item-sheet-card {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 0;
    border: 0;
    background: linear-gradient(180deg, rgba(18, 28, 42, 0.98), rgba(8, 13, 21, 0.98));
    box-shadow: none;
}

.mobile-item-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-item-sheet-head strong {
    font-size: 1.08rem;
}

.mobile-item-sheet-subtitle {
    color: #a9bfdc;
    font-size: 0.9rem;
}

.mobile-item-sheet-body {
    overflow: auto;
    overflow-x: hidden;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(226, 188, 113, 0.12);
    background: rgba(7, 11, 18, 0.9);
}

.mobile-item-sheet-body * {
    max-width: 100%;
}

.mobile-item-sheet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-item-sheet-actions .btn {
    min-height: 46px;
}

.mobile-item-sheet-secondary {
    grid-column: 1 / -1;
}

.compact-ranking-row {
    grid-template-columns: 72px minmax(220px, 1.6fr) repeat(2, minmax(120px, 1fr));
}

.pill-success {
    background: rgba(89, 193, 140, 0.14);
    border-color: rgba(89, 193, 140, 0.32);
    color: #d7ffe9;
}

.pill-muted {
    background: rgba(144, 160, 190, 0.12);
    border-color: rgba(144, 160, 190, 0.24);
    color: rgba(230, 236, 255, 0.82);
}

.pvp-match-card {
    align-items: start;
}

.pvp-log {
    display: grid;
    gap: 10px;
}

.pvp-log summary {
    cursor: var(--cursor-pointer);
    color: #f1d07a;
    font-weight: 600;
}

.pvp-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pvp-system-card {
    position: relative;
    display: block;
    min-height: 170px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(132, 156, 190, 0.18);
    background:
        linear-gradient(145deg, rgba(11, 18, 27, 0.92), rgba(19, 26, 37, 0.74)),
        radial-gradient(circle at 20% 10%, rgba(226, 188, 113, 0.12), transparent 48%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pvp-system-card.active {
    border-color: rgba(226, 188, 113, 0.32);
    background:
        linear-gradient(145deg, rgba(25, 16, 8, 0.92), rgba(18, 26, 37, 0.78)),
        radial-gradient(circle at 20% 10%, rgba(226, 188, 113, 0.20), transparent 48%);
}

.pvp-system-card:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 188, 113, 0.46);
}

.pvp-system-card h3 {
    margin: 34px 0 8px;
}

.pvp-system-card p {
    color: var(--muted);
    line-height: 1.55;
}

.pvp-system-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(226, 188, 113, 0.34);
    background: rgba(226, 188, 113, 0.12);
    color: #ffe9ad;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pvp-system-tag.muted {
    border-color: rgba(132, 156, 190, 0.22);
    background: rgba(132, 156, 190, 0.08);
    color: rgba(224, 234, 255, 0.72);
}

.pvp-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.pvp-layout-wide {
    grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.1fr);
}

.pvp-system-section {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(226, 188, 113, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(8, 13, 15, 0.74), rgba(18, 31, 45, 0.58)),
        rgba(5, 8, 12, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pvp-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}

.pvp-section-head .pvp-system-tag {
    position: static;
    flex: 0 0 auto;
}

.pvp-section-head h3,
.pvp-section-head p {
    margin: 0;
}

.pvp-section-head p {
    color: var(--muted);
}

.compact-panel-head {
    margin-bottom: 14px;
}

.pvp-tournament-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 14px 0 16px;
}

.pvp-tournament-meta > div {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(132, 156, 190, 0.14);
    background: rgba(5, 10, 16, 0.38);
}

.pvp-entry-list,
.pvp-bracket-list {
    display: grid;
    gap: 10px;
}

.pvp-entry-row,
.pvp-bracket-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(132, 156, 190, 0.16);
    background: rgba(8, 13, 21, 0.48);
}

.pvp-bracket-row {
    grid-template-columns: 92px minmax(220px, 1fr) minmax(180px, 0.7fr);
}

.pvp-bracket-row.completed {
    border-color: rgba(89, 193, 140, 0.22);
}

.pvp-round {
    color: #f1d07a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pvp-energy {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.pvp-energy-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(226, 188, 113, 0.18);
    background: rgba(5, 9, 15, 0.72);
}

.pvp-energy-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0c46a, #ff7f50);
}

.pvp-energy small {
    color: var(--muted);
}

.battlefield-killfeed {
    max-height: 360px;
    overflow-y: auto;
}

.battlefield-feed-line {
    animation: battlefieldFeedIn 0.35s ease;
    border-left: 3px solid rgba(206, 161, 87, 0.6);
    padding-left: 10px;
}

@keyframes battlefieldFeedIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

.duel-spectator-card {
    margin-top: 18px;
}

.duel-stage {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px minmax(220px, 1fr);
    gap: 18px;
    align-items: center;
}

.duel-fighter {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(132, 156, 190, 0.18);
    background: rgba(7, 13, 21, 0.62);
    text-align: center;
}

.duel-fighter img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    justify-self: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.duel-fighter h4,
.duel-fighter p {
    margin: 0;
}

.raid-boss-health-bar {
    margin-top: 2px;
}

.raid-boss-feedback {
    min-height: 40px;
    color: #8dc5ff;
    font-size: 0.9rem;
    line-height: 1.35;
}

.raid-player-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    text-align: left;
}

.raid-player-panel {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(132, 156, 190, 0.22);
    background: rgba(9, 15, 25, 0.72);
}

.raid-player-iconbox {
    min-height: 84px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(132, 156, 190, 0.2);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
}

.raid-player-iconbox img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.raid-player-meta {
    display: grid;
    gap: 2px;
}

.raid-player-meta strong {
    font-size: 0.86rem;
    color: #e6f0ff;
}

.raid-player-meta span {
    font-size: 0.74rem;
    color: #a8c7eb;
}

.raid-player-bars {
    display: grid;
    gap: 4px;
}

.raid-player-bar-label {
    font-size: 0.72rem;
    color: #b9d2ef;
}

.raid-player-subline {
    font-size: 0.7rem;
    color: #9fc1e7;
    line-height: 1.25;
    word-break: break-word;
}

.raid-mini-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
}

.raid-mini-icon-row .party-buff-icon,
.raid-mini-icon-row .party-buff-fallback {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.raid-mini-icon-row .party-buff-icon img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
}

.raid-mini-icon-wrap {
    position: relative;
    width: 22px;
    height: 22px;
}

.raid-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(132, 156, 190, 0.3);
    background: rgba(255, 255, 255, 0.05);
    object-fit: contain;
}

.raid-mini-icon-fallback {
    display: grid;
    place-items: center;
    font-size: 0.58rem;
    color: #d2e7ff;
}

.raid-mini-cd {
    position: absolute;
    right: -4px;
    bottom: -5px;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(132, 156, 190, 0.4);
    background: rgba(5, 12, 21, 0.92);
    color: #d8ecff;
    font-size: 0.58rem;
    line-height: 12px;
    text-align: center;
    padding: 0 2px;
}

.raid-mini-empty {
    font-size: 0.65rem;
    color: #7ea7d6;
}

.raid-player-feedback {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(132, 156, 190, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: #9ac8ff;
    font-size: 0.78rem;
    line-height: 1.3;
    padding: 6px 8px;
}

.raid-player-grid .raid-skill-icon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 6px;
}

.raid-player-grid .raid-skill-icon img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 6px;
}

.raid-player-grid .raid-skill-fallback {
    font-size: 0.62rem;
    font-weight: 700;
}

.raid-player-grid .raid-skill-icon .party-buff-count {
    right: -4px;
    bottom: -4px;
    min-width: 14px;
    height: 14px;
    line-height: 12px;
    font-size: 0.58rem;
}

.raid-player-grid .raid-skill-icon {
    overflow: visible;
}

.raid-player-grid .raid-skill-icon .dashboard-skill-cooldown {
    right: -4px;
    top: -5px;
    min-width: 14px;
    height: 14px;
    padding: 0 2px;
    font-size: 0.56rem;
    line-height: 12px;
}

.raid-boss-mana-bar {
    margin-top: 2px;
}

.raid-effects {
    display: grid;
    gap: 4px;
    font-size: 0.8rem;
    color: #d8e6ff;
}

.raid-effects-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    flex-wrap: wrap;
}

.raid-effects .party-buff-icon,
.raid-effects .party-buff-fallback {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.raid-effects .party-buff-icon img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: contain;
}

.raid-effects-empty {
    color: rgba(216, 230, 255, 0.72);
}

.duel-versus {
    display: grid;
    gap: 10px;
    justify-items: center;
    color: #f1d07a;
    text-align: center;
}

.duel-versus strong {
    font-family: var(--font-display);
    font-size: 2rem;
}

.duel-live-log {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    max-height: 180px;
    overflow: auto;
}

@media (max-width: 1300px) {
    .raid-player-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .raid-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.duel-live-log div,
.duel-winner-banner {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(226, 188, 113, 0.16);
    background: rgba(9, 14, 20, 0.62);
}

.duel-winner-banner {
    color: #ffe9ad;
    font-weight: 800;
    text-align: center;
}

.gvg-setup-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(520px, 1.4fr) minmax(320px, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.gvg-setup-layout-locked {
    pointer-events: none;
    filter: grayscale(0.28) brightness(0.72);
}

.gvg-setup-locked-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.56);
    border: 1px solid rgba(255, 90, 90, 0.35);
    pointer-events: none;
    z-index: 20;
}

.gvg-setup-locked-overlay span {
    max-width: min(92%, 760px);
    text-align: center;
    color: #ff6767;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.gvg-groups-column {
    display: grid;
    gap: 12px;
}

.gvg-group-card {
    border: 1px solid rgba(132, 156, 190, 0.2);
    border-radius: 16px;
    background: rgba(7, 13, 21, 0.56);
    padding: 12px;
}

.gvg-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gvg-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(78px, 1fr));
    gap: 8px;
}

.gvg-slot-drop {
    position: relative;
    min-height: 78px;
    border: 1px dashed rgba(132, 156, 190, 0.26);
    border-radius: 12px;
    background: rgba(4, 9, 14, 0.64);
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 6px;
    text-align: center;
}

.gvg-slot-drop.filled {
    border-style: solid;
    border-color: rgba(226, 188, 113, 0.48);
    background: rgba(20, 19, 12, 0.56);
}

.gvg-slot-drop.drop-hover {
    border-color: rgba(127, 215, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(127, 215, 255, 0.22);
}

.gvg-slot-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gvg-slot-label {
    font-size: 0.76rem;
    line-height: 1.2;
    color: rgba(230, 236, 255, 0.9);
}

.gvg-slot-clear {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(226, 188, 113, 0.45);
    background: rgba(25, 15, 10, 0.86);
    color: #ffddad;
    font-size: 0.7rem;
    cursor: var(--cursor-pointer);
    z-index: 3;
    pointer-events: auto;
}

.gvg-member-pool {
    border: 1px solid rgba(132, 156, 190, 0.2);
    border-radius: 16px;
    background: rgba(7, 13, 21, 0.56);
    padding: 12px;
}

.gvg-member-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.gvg-member-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 4px;
    padding: 7px 6px;
    min-height: 72px;
    border-radius: 10px;
    border: 1px solid rgba(132, 156, 190, 0.22);
    background: rgba(9, 14, 22, 0.72);
    cursor: grab;
    user-select: none;
}

.gvg-member-card[draggable="false"] {
    opacity: 0.6;
    cursor: default;
}

.gvg-member-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gvg-member-card span {
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .npc-shop-hub,
    .shop-layout,
    .droplist-card,
    .ranking-row,
    .pvp-layout,
    .pvp-layout-wide,
    .pvp-entry-row,
    .pvp-bracket-row,
    .gvg-setup-layout {
        grid-template-columns: 1fr;
    }

    .npc-shop-cart-grid {
        grid-template-columns: 1fr;
    }

    .gvg-slot-grid {
        grid-template-columns: repeat(3, minmax(72px, 1fr));
    }

    .gvg-member-grid {
        grid-template-columns: repeat(5, minmax(52px, 1fr));
        max-height: 300px;
    }
}

.shop-cart-dropzone {
    min-height: 88px;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(226, 188, 113, 0.35);
    background: rgba(226, 188, 113, 0.05);
    color: var(--muted);
    margin-bottom: 14px;
}

.shop-sell-dropzone {
    min-height: 72px;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(127, 215, 255, 0.32);
    background: rgba(127, 215, 255, 0.05);
    color: var(--muted);
    margin-bottom: 14px;
}

.npc-trade-panel .shop-cart-dropzone,
.npc-trade-panel .shop-sell-dropzone {
    background: rgba(255, 219, 145, 0.05);
    border-color: rgba(226, 188, 113, 0.28);
    color: rgba(244, 229, 198, 0.74);
}

.trade-modal {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(3, 7, 12, 0.72);
    backdrop-filter: blur(10px);
}

.trade-modal-backdrop {
    position: absolute;
    inset: 0;
}

.trade-modal .trade-window {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    margin: 0;
    border-color: rgba(226, 188, 113, 0.34);
    background:
        radial-gradient(circle at 18% 0%, rgba(226, 188, 113, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(13, 22, 34, 0.98), rgba(7, 12, 20, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.trade-window-close {
    text-decoration: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(226, 188, 113, 0.42);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(58, 38, 17, 0.95), rgba(16, 11, 7, 0.95));
    color: #ffe6ad;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.shop-cart-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

body.modal-open {
    overflow: hidden;
}

.currency-bars,
.database-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
}

.settings-list {
    margin-bottom: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.setting-state {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    background: rgba(118, 227, 167, 0.12);
    border: 1px solid rgba(118, 227, 167, 0.24);
    color: #bbf4d4;
}

.setting-state.off {
    background: rgba(255, 122, 122, 0.12);
    border-color: rgba(255, 122, 122, 0.24);
    color: #ffc9c9;
}

.exp-table-wrap {
    max-height: 520px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-table {
    width: 100%;
    border-collapse: collapse;
}

.exp-table th,
.exp-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-table thead {
    position: sticky;
    top: 0;
    background: rgba(12, 18, 28, 0.95);
    backdrop-filter: blur(12px);
}

.database-section {
    margin-bottom: 48px;
}

.feature-list {
    padding-left: 18px;
}

.notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.notice-success {
    border-color: rgba(118, 227, 167, 0.28);
    color: #d6ffe6;
}

.notice-error {
    border-color: rgba(255, 122, 122, 0.32);
    color: #ffdada;
}

.notice-info {
    border-color: rgba(127, 215, 255, 0.24);
    color: #d9f4ff;
}

.auth-grid .auth-card {
    grid-column: span 6;
}

.auth-form,
.character-form {
    display: grid;
    gap: 14px;
}

.landing-forms .auth-form {
    border-radius: 18px;
    border-color: rgba(226, 190, 102, .35);
    background:
        linear-gradient(180deg, rgba(30, 20, 12, .92), rgba(8, 10, 14, .94)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px);
    box-shadow: inset 0 0 22px rgba(226, 190, 102, .06), 0 18px 55px rgba(0, 0, 0, .35);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.landing-forms .auth-form:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 190, 102, .5);
    box-shadow: inset 0 0 28px rgba(226, 190, 102, .09), 0 22px 62px rgba(0, 0, 0, .4);
}

.landing-forms .auth-form h2 {
    font-family: "Cinzel", serif;
    color: #f3d98d;
    letter-spacing: .04em;
}

.auth-form label,
.character-form label {
    display: grid;
    gap: 8px;
}

.auth-form input,
.character-form input,
.character-form select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 11, 18, 0.7);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
}

.landing-forms .auth-form input {
    border-color: rgba(226, 190, 102, .22);
    background: rgba(0, 0, 0, .42);
}

.landing-forms .auth-form small {
    color: #c4d6ee;
    margin-top: -6px;
}

.auth-form small,
.character-form small {
    color: var(--muted);
}

.character-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.character-create-panel,
.character-list-panel {
    display: grid;
    gap: 18px;
}

.characters-page-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.62fr);
    align-items: start;
}

.character-list-panel {
    align-content: start;
}

.character-create-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.character-create-form {
    gap: 18px;
}

.character-create-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.character-class-stage,
.character-stat-card {
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(28, 21, 14, 0.96), rgba(12, 10, 8, 0.96)),
        radial-gradient(circle at top, rgba(226, 188, 113, 0.12), transparent 55%);
    border: 1px solid rgba(201, 165, 92, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 232, 188, 0.06),
        0 18px 34px rgba(0, 0, 0, 0.22);
}

.character-class-stage-copy,
.character-stat-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}

.character-class-stage h4,
.character-stat-card h4 {
    margin: 4px 0 0;
    color: #fff2d3;
    font-size: 1.06rem;
}

.character-class-preview {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(17, 14, 11, 0.96), rgba(10, 8, 7, 0.96)),
        radial-gradient(circle at top left, rgba(225, 188, 111, 0.14), transparent 60%);
    border: 1px solid rgba(201, 165, 92, 0.24);
}

.character-class-preview-media {
    min-height: 230px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(9, 12, 17, 0.98), rgba(8, 9, 13, 0.98)),
        radial-gradient(circle at top, rgba(100, 144, 221, 0.12), transparent 60%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.character-class-preview-media img {
    width: 100%;
    height: 230px;
    object-fit: contain;
}

.character-class-preview-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.character-class-preview-copy h3 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 1.4rem;
    color: #fff1cd;
}

.character-class-preview-copy p {
    margin: 0;
    color: rgba(237, 231, 214, 0.78);
    line-height: 1.6;
}

.character-class-preview-paths {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.character-class-preview-paths span {
    color: #d8e3f3;
    font-size: 0.84rem;
}

.character-class-preview-focus {
    margin-top: 6px;
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(229, 190, 111, 0.08);
    border: 1px solid rgba(229, 190, 111, 0.18);
    color: #f0d39b;
    font-size: 0.8rem;
}

.character-class-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.character-class-card {
    display: block;
    cursor: var(--cursor-pointer);
}

.character-class-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.character-class-card-inner {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
    background: rgba(14, 14, 12, 0.78);
    border: 1px solid rgba(182, 144, 74, 0.18);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.character-class-card:hover .character-class-card-inner {
    transform: translateY(-2px);
    border-color: rgba(224, 187, 111, 0.34);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.character-class-card input:checked + .character-class-card-inner {
    border-color: rgba(240, 201, 118, 0.62);
    background:
        linear-gradient(180deg, rgba(56, 37, 17, 0.98), rgba(20, 14, 10, 0.98)),
        radial-gradient(circle at top, rgba(240, 201, 118, 0.14), transparent 58%);
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 196, 0.1),
        0 18px 30px rgba(0, 0, 0, 0.24);
}

.character-class-portrait {
    width: 100%;
    min-height: 116px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 17, 24, 0.96), rgba(8, 11, 16, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.character-class-portrait img {
    width: 100%;
    height: 116px;
    object-fit: contain;
}

.character-class-fallback {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(226, 188, 113, 0.12);
    border: 1px solid rgba(226, 188, 113, 0.26);
    color: #ffe5b1;
    font-weight: 700;
}

.character-class-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.character-class-copy strong {
    color: #fff4db;
    font-size: 0.98rem;
}

.character-class-copy span {
    color: rgba(234, 223, 198, 0.72);
    font-size: 0.72rem;
    line-height: 1.35;
    text-transform: capitalize;
    word-break: break-word;
}

.character-class-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    margin-top: auto;
}

.character-class-stats span {
    padding: 5px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d9e4f5;
    font-size: 0.72rem;
    line-height: 1.15;
}

.character-create-side {
    display: grid;
    gap: 16px;
}

.character-create-attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.character-stepper-card {
    display: grid;
    gap: 8px;
}

.character-point-stepper {
    display: grid;
    grid-template-columns: 44px 64px 44px;
    gap: 8px;
    align-items: center;
}

.character-point-stepper input {
    width: 64px;
    min-width: 64px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 11, 18, 0.9);
    color: #fff6e2;
    -webkit-text-fill-color: #fff6e2;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
    line-height: 46px;
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.character-point-btn {
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(228, 188, 111, 0.18);
    background: rgba(53, 34, 16, 0.76);
    color: #f5dfaf;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: var(--cursor-pointer);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.character-point-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 201, 118, 0.38);
    background: rgba(79, 49, 22, 0.88);
}

.character-point-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.character-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.character-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.character-row-portrait {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(16, 22, 32, 0.96), rgba(8, 12, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 0 0 62px;
}

.character-row-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-row-copy {
    min-width: 0;
}

.character-row span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.character-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.character-create-panel .primary-btn {
    width: 100%;
}

.guild-page {
    padding-top: 8px;
    display: flex;
    justify-content: flex-start;
}

.guild-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    width: min(1720px, calc(100vw - 32px));
    height: min(860px, calc(100vh - 136px));
    min-height: 700px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(216, 182, 120, 0.34);
    background:
        radial-gradient(circle at 14% 8%, rgba(38, 70, 120, 0.22), transparent 44%),
        radial-gradient(circle at 88% 84%, rgba(16, 38, 72, 0.24), transparent 48%),
        linear-gradient(165deg, rgba(7, 17, 34, 0.96), rgba(4, 10, 22, 0.98));
    box-shadow: 0 34px 72px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 228, 168, 0.09);
    overflow: hidden;
}

.guild-topbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    gap: 18px;
}

.guild-top-tabs {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(14, 26, 50, 0.94), rgba(8, 16, 32, 0.94)),
        linear-gradient(180deg, rgba(22, 18, 11, 0.9), rgba(11, 9, 6, 0.9));
    border: 1px solid rgba(208, 173, 110, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 232, 188, 0.1), 0 10px 24px rgba(0, 0, 0, 0.25);
}

.guild-top-tab {
    min-width: 120px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #d9c08c;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 165, 92, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.guild-top-action {
    cursor: var(--cursor-pointer);
    font-family: inherit;
}

.guild-top-tab.active {
    color: #13100a;
    background: linear-gradient(180deg, #f6dc98, #cf9838 62%, #ad7428);
    border-color: rgba(255, 231, 173, 0.74);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 245, 211, 0.52);
}

.guild-top-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(230, 199, 135, 0.48);
    color: #f7e0a7;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 232, 188, 0.1);
}

.guild-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    overflow: hidden;
}

.guild-board-rank,
.guild-board-my,
.guild-board-raid {
    align-items: start;
}

.guild-board-single {
    grid-template-columns: minmax(0, 1fr);
}

.guild-single-panel {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.guild-left-panel,
.guild-right-panel {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 18px;
    background:
        radial-gradient(circle at 8% 10%, rgba(38, 69, 118, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(11, 22, 40, 0.95), rgba(7, 14, 28, 0.97));
    border: 1px solid rgba(204, 170, 106, 0.22);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 226, 163, 0.06);
}

.guild-panel-title {
    margin-bottom: 12px;
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    color: #f2dfb5;
}

.guild-rank-head,
.guild-member-head,
.guild-member-row {
    display: grid;
    gap: 10px;
    align-items: center;
}

.guild-member-head,
.guild-member-row {
    grid-template-columns: 120px minmax(120px, 1.2fr) 72px 90px 140px 150px 150px 120px minmax(170px, 1fr);
}

.guild-rank-head,
.guild-member-head {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(215, 181, 118, 0.26);
    background: linear-gradient(180deg, rgba(18, 34, 60, 0.82), rgba(10, 20, 36, 0.78));
    color: #dfc890;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    box-shadow: inset 0 1px 0 rgba(255, 230, 173, 0.08);
}

.guild-rank-list,
.guild-member-list,
.guild-applications-list,
.guild-pending-list,
.guild-buff-grid {
    display: grid;
    gap: 12px;
    min-height: 0;
}

.guild-rank-list,
.guild-member-list {
    flex: 1;
    max-height: none;
    overflow: auto;
    padding-right: 4px;
}

.guild-member-row,
.guild-application-card,
.guild-pending-card,
.guild-buff-card,
.guild-core-panel,
.guild-summary-card {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(24, 33, 47, 0.95), rgba(16, 24, 36, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-member-list {
    gap: 10px;
}

.guild-member-row {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(172, 148, 111, 0.24);
    background: linear-gradient(160deg, rgba(11, 23, 42, 0.9), rgba(9, 17, 31, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 231, 179, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guild-member-row:hover {
    transform: translateY(-1px);
    border-color: rgba(223, 190, 130, 0.44);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 235, 188, 0.1);
}

.guild-member-role {
    justify-self: start;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(220, 187, 122, 0.28);
    background: rgba(232, 194, 115, 0.08);
    color: #f1d59d;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
}

.guild-member-name strong {
    color: #fff2d0;
}

.guild-member-level,
.guild-member-class,
.guild-member-job,
.guild-member-joined,
.guild-member-points,
.guild-member-online {
    color: #d9e4f6;
    font-size: 0.84rem;
}

.guild-member-points {
    color: #f6dfae;
    font-weight: 700;
}

.guild-member-online.guild-online {
    color: #7dffc3;
}

.guild-member-online.guild-offline {
    color: #9db0cc;
}

.guild-rank-place {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #141008;
    font-weight: 800;
    background: linear-gradient(180deg, #f1d48a, #c69338);
    box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.35);
}

.guild-rank-list {
    grid-template-columns: 1fr;
}

.guild-rank-card {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(20, 34, 58, 0.82), rgba(14, 23, 39, 0.9));
    border: 1px solid rgba(169, 146, 111, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.05);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease, background 220ms ease;
}

.guild-rank-card:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 191, 130, 0.42);
    background:
        linear-gradient(180deg, rgba(24, 40, 66, 0.9), rgba(16, 27, 45, 0.92));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 232, 181, 0.1);
}

.guild-rank-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.guild-rank-card-main {
    min-width: 0;
    display: grid;
    gap: 3px;
    justify-items: start;
    text-align: left;
}

.guild-rank-card-main strong {
    display: block;
    color: #fff1cc;
    font-size: 0.98rem;
    line-height: 1.15;
}

.guild-rank-card-main span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.15;
}

.guild-rank-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
}

.guild-rank-stat {
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(167, 145, 109, 0.22);
    background: linear-gradient(160deg, rgba(16, 30, 50, 0.62), rgba(8, 17, 32, 0.52));
    padding: 5px 8px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.guild-rank-card:hover .guild-rank-stat {
    border-color: rgba(205, 178, 126, 0.36);
    background: linear-gradient(160deg, rgba(20, 36, 59, 0.72), rgba(10, 20, 38, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 233, 183, 0.06);
}

.guild-rank-stat span {
    display: block;
    color: #c9b27d;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guild-rank-stat strong {
    display: block;
    margin-top: 2px;
    font-size: 0.95rem;
    color: #fff0cd;
    line-height: 1.15;
}

.guild-rank-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 96px;
}

.guild-rank-card-ident {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.guild-rank-card-guild .guild-rank-card-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.guild-rank-card-raid .guild-rank-card-top {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

.guild-rank-card-raid .guild-rank-card-main {
    gap: 2px;
}

.guild-rank-card-raid .guild-rank-card-main strong {
    font-size: 0.98rem;
}

.guild-rank-card-raid .guild-rank-card-main span {
    color: #d7e3f7;
    font-size: 0.82rem;
}

.guild-board-raid .guild-rank-list {
    align-content: start;
    gap: 8px;
}

.guild-board-raid .guild-rank-card {
    padding: 10px 12px;
    border-radius: 12px;
    min-height: 0;
}

.guild-board-raid .guild-rank-place {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.92rem;
}

.guild-board-raid .guild-rank-card-ident {
    align-self: center;
}

.guild-board-raid .guild-left-panel {
    padding-bottom: 12px;
}

.guild-board-raid .guild-rank-card:hover {
    transform: translateY(-1px);
}

.guild-rank-main strong,
.guild-application-meta strong,
.guild-pending-card strong {
    display: block;
    color: #fff1cc;
}

.guild-rank-main span,
.guild-rank-points span,
.guild-application-meta span,
.guild-pending-card span,
.guild-buff-head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
}

.guild-rank-meta,
.guild-rank-points strong {
    color: #f4e5c0;
    font-size: 0.9rem;
}

.guild-rank-actions,
.guild-member-actions,
.guild-buff-actions,
.guild-notice-actions,
.guild-my-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.guild-application-box {
    width: 100%;
}

.guild-application-box summary {
    list-style: none;
}

.guild-application-box summary::-webkit-details-marker {
    display: none;
}

.guild-application-form {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.guild-application-form textarea,
.guild-notice-form textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border: 1px solid rgba(201, 165, 92, 0.16);
    background: rgba(6, 11, 18, 0.72);
    color: var(--text);
    border-radius: 12px;
    padding: 12px;
}

.guild-summary-card {
    display: grid;
    gap: 16px;
    grid-template-columns: 140px minmax(0, 1fr);
}

.guild-summary-card-compact {
    margin-bottom: 16px;
}

.guild-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guild-summary-grid-single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guild-rank-side-panel {
    display: grid;
    gap: 16px;
}

.guild-flag-panel {
    display: flex;
    align-items: start;
    justify-content: center;
}

.guild-flag-frame {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    border: 1px solid rgba(201, 165, 92, 0.24);
    background: linear-gradient(180deg, rgba(46, 34, 18, 0.95), rgba(20, 15, 10, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 231, 183, 0.08);
}

.guild-flag-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-flag-frame span {
    color: #f4dda8;
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
}

.guild-my-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.guild-subtab {
    text-decoration: none;
    color: #e8d2a1;
    border: 1px solid rgba(201, 165, 92, 0.18);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 9px 14px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.guild-subtab.active {
    color: #151006;
    background: linear-gradient(180deg, #f6dc98, #cf9838 62%, #ad7428);
    border-color: rgba(255, 231, 173, 0.74);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 246, 212, 0.52);
}

.guild-subtab:hover {
    transform: translateY(-1px);
    border-color: rgba(230, 199, 135, 0.48);
    color: #f7e0a7;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 232, 188, 0.1);
}

.guild-core-panel {
    display: grid;
    gap: 16px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.guild-notice-form {
    display: grid;
    gap: 10px;
}

.guild-application-card p {
    margin: 10px 0 0;
    color: #d8dbe3;
    line-height: 1.5;
}

.guild-online {
    color: #63ff98;
    font-weight: 700;
}

.guild-offline {
    color: #c9cfd9;
}

.guild-buff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guild-buff-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(190, 161, 112, 0.26);
    background:
        radial-gradient(circle at 8% 8%, rgba(40, 71, 118, 0.18), transparent 42%),
        linear-gradient(160deg, rgba(12, 25, 45, 0.92), rgba(8, 16, 30, 0.94));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 231, 180, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guild-buff-card:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 193, 131, 0.48);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 237, 197, 0.12);
}

.guild-buff-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.guild-buff-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    border: 1px solid rgba(201, 165, 92, 0.2);
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guild-buff-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-buff-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.guild-buff-meta div,
.guild-buff-effects,
.guild-buff-costs {
    border-radius: 12px;
    border: 1px solid rgba(174, 151, 116, 0.2);
    background: linear-gradient(160deg, rgba(12, 24, 44, 0.68), rgba(8, 16, 30, 0.66));
    padding: 10px 12px;
}

.guild-buff-meta span,
.guild-buff-costs span {
    display: block;
    color: #c7b382;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guildflag-editor {
    margin: 4px 0 12px;
    display: flex;
    justify-content: center;
}

.guildflag-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.guildflag-layout-right {
    display: grid;
    gap: 12px;
}

.guildflag-preview-wrap {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.guildflag-preview-canvas {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    border: 1px solid rgba(201, 165, 92, 0.28);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 235, 190, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(16, 24, 36, 0.96), rgba(10, 16, 26, 0.96));
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 233, 180, 0.1);
}

.guildflag-layer {
    position: absolute;
    inset: 16px;
    display: none;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.guildflag-asset-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 6px;
}

.guildflag-asset-tile {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 165, 92, 0.28);
    border-radius: 8px;
    background: rgba(10, 15, 22, 0.92);
    padding: 2px;
    cursor: var(--cursor-pointer);
}

.guildflag-asset-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guildflag-asset-tile.active {
    border-color: rgba(255, 219, 138, 0.98);
    box-shadow: 0 0 0 1px rgba(255, 219, 138, 0.7) inset, 0 0 12px rgba(255, 194, 72, 0.55);
    background: linear-gradient(180deg, rgba(58, 40, 12, 0.95), rgba(22, 16, 8, 0.95));
}

.guildflag-color-row {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.guildflag-asset-toolbar {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.guildflag-filter-row,
.guildflag-page-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.guildflag-filter-btn,
.guildflag-page-btn {
    border: 1px solid rgba(201, 165, 92, 0.28);
    border-radius: 8px;
    background: rgba(13, 19, 28, 0.92);
    color: #dfc58d;
    font-size: 0.74rem;
    padding: 3px 8px;
    cursor: var(--cursor-pointer);
}

.guildflag-filter-btn.active {
    border-color: rgba(255, 219, 138, 0.98);
    box-shadow: 0 0 10px rgba(255, 194, 72, 0.45);
    color: #fff2cf;
}

.guildflag-color-custom {
    margin-left: 6px;
    width: 30px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: transparent;
    padding: 0;
    cursor: var(--cursor-pointer);
}

.guildflag-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: var(--cursor-pointer);
}

.guildflag-color-swatch.active {
    transform: scale(1.08);
    border-color: #f8dd9b;
    box-shadow: 0 0 0 2px rgba(248, 221, 155, 0.35);
}

.guildflag-layer-pattern {
    opacity: 0.72;
}

.guildflag-layer-border {
    opacity: 0.95;
}

.guildflag-preview-caption {
    font-size: 0.82rem;
    color: #d5bf8d;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guildflag-shop-shell {
    border-radius: 14px;
    border: 1px solid rgba(201, 165, 92, 0.2);
    background: linear-gradient(180deg, rgba(13, 22, 36, 0.88), rgba(10, 17, 28, 0.88));
    padding: 12px;
}

.guildflag-shop-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.guildflag-shop-card {
    border-radius: 12px;
    border: 1px solid rgba(201, 165, 92, 0.24);
    background: linear-gradient(180deg, rgba(18, 28, 44, 0.92), rgba(10, 17, 28, 0.92));
    padding: 10px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.guildflag-shop-icon {
    width: 56px;
    height: 56px;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(248, 214, 136, 0.45);
    background: rgba(8, 12, 18, 0.95);
    overflow: hidden;
}

.guildflag-shop-icon-layer {
    position: absolute;
    inset: 4px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.guildflag-shop-meta {
    display: grid;
    gap: 4px;
}

.guildflag-shop-meta strong {
    color: #fff1cc;
    font-size: 0.95rem;
}

.guildflag-shop-price {
    color: #e6c77d;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.guildflag-shop-card form {
    grid-column: 1 / -1;
}

.guild-name-with-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guild-flag-mini {
    width: 34px;
    height: 34px;
    position: relative;
    border-radius: 6px;
    border: 1px solid rgba(201, 165, 92, 0.32);
    background: rgba(8, 12, 18, 0.92);
    overflow: hidden;
    flex: 0 0 auto;
}

.guild-flag-mini-fallback {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f4dba2;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.guild-flag-mini-layer {
    position: absolute;
    inset: 2px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.guild-hero-flag {
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid rgba(201, 165, 92, 0.28);
    background: linear-gradient(180deg, rgba(20, 30, 44, 0.95), rgba(11, 18, 29, 0.95));
    padding: 14px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.guild-hero-flag-preview {
    width: 170px;
    height: 170px;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(201, 165, 92, 0.35);
    background: radial-gradient(circle at 30% 20%, rgba(255, 235, 190, 0.08), transparent 42%), rgba(8, 12, 18, 0.95);
    overflow: hidden;
}

.guild-hero-flag-layer {
    position: absolute;
    inset: 10px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.guild-hero-flag-title {
    display: block;
    color: #fff1cc;
    font-family: "Cinzel", "Trajan Pro", serif;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.storage-guildflag-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: inline-block;
    border-radius: 6px;
    border: 1px solid rgba(201, 165, 92, 0.32);
    background: rgba(8, 12, 18, 0.95);
    overflow: hidden;
}

.storage-guildflag-layer {
    position: absolute;
    inset: 2px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

@media (max-width: 980px) {
    .guildflag-layout {
        grid-template-columns: 1fr;
    }

    .guild-buff-grid {
        grid-template-columns: 1fr;
    }
}

.guild-buff-meta strong {
    display: block;
    margin-top: 6px;
    color: #fff0cd;
}

.guild-buff-effects {
    display: grid;
    gap: 6px;
    color: #dfe7f2;
}

.guild-buff-effect-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.03);
}

.guild-buff-effect-line span {
    color: #cfdcf3;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.guild-buff-effect-line strong {
    color: #ffd98f;
    font-size: 0.86rem;
}

.guild-storage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.guild-storage-layout .storage-panel {
    max-height: none;
}

.guild-storage-layout .storage-inventory-panel {
    max-width: none;
    max-height: none;
}

.guild-storage-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.guild-storage-log-panel {
    border: 1px solid rgba(194, 159, 91, 0.18);
    border-radius: 8px;
    background: rgba(5, 10, 18, 0.62);
    overflow: hidden;
}

.guild-storage-log-head,
.guild-storage-log-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.guild-storage-log-head {
    padding: 8px 10px;
    background: rgba(255, 226, 159, 0.06);
    color: #f1d08a;
    font-size: 0.82rem;
    font-weight: 800;
}

.guild-storage-log-head small {
    justify-self: end;
    color: rgba(204, 219, 239, 0.66);
    font-weight: 600;
}

.guild-storage-log-list {
    max-height: 220px;
    overflow: auto;
}

.guild-storage-log-row {
    padding: 7px 10px;
    border-top: 1px solid rgba(194, 159, 91, 0.1);
    color: #d7e5f5;
    font-size: 0.78rem;
}

.guild-storage-log-date {
    color: rgba(204, 219, 239, 0.66);
    font-variant-numeric: tabular-nums;
}

.guild-storage-log-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-storage-log-main strong {
    color: #ffd98f;
}

.guild-storage-log-empty {
    padding: 12px;
    color: rgba(204, 219, 239, 0.66);
    font-size: 0.78rem;
}

.guild-create-modal-panel {
    width: min(560px, calc(100vw - 32px));
}

.guild-create-modal-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.guild-empty-panel {
    min-height: 260px;
}

.guild-board-my .guild-summary-card {
    margin-bottom: 4px;
}

.guild-board-my .guild-subsection {
    margin-top: 0;
}

.guild-roster-head,
.guild-table-head,
.guild-table-row,
.guild-roster-row {
    display: grid;
    gap: 12px;
    align-items: center;
}

.guild-roster-head,
.guild-roster-row {
    grid-template-columns: minmax(160px, 2fr) 70px 110px 130px 100px minmax(140px, 1.5fr);
}

.guild-table-head,
.guild-table-row {
    grid-template-columns: 72px minmax(160px, 1.4fr) 120px 100px 120px minmax(160px, 1.1fr);
}

.guild-roster-head,
.guild-table-head {
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(194, 159, 91, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #d7c28d;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guild-roster-list,
.guild-table-list {
    display: grid;
    gap: 10px;
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
}

.guild-roster-list.compact {
    max-height: 220px;
}

.guild-roster-row,
.guild-table-row {
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(24, 33, 47, 0.95), rgba(16, 24, 36, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-roster-row.compact {
    grid-template-columns: 1fr;
}

.guild-roster-main strong,
.guild-table-row strong,
.guild-detail-name {
    color: #fff4da;
}

.guild-roster-main span,
.guild-inline-note,
.guild-detail-subline,
.guild-roster-muted {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.85rem;
}

.guild-roster-meta {
    color: #f2e4c6;
    font-size: 0.88rem;
}

.guild-roster-action,
.guild-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.guild-apply-form,
.guild-role-form,
.guild-donate-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.guild-apply-form input,
.guild-role-form select,
.guild-donate-form input {
    min-width: 0;
    border: 1px solid rgba(201, 165, 92, 0.16);
    background: rgba(6, 11, 18, 0.72);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
}

.guild-small-btn {
    border: 1px solid rgba(201, 165, 92, 0.22);
    background: linear-gradient(180deg, rgba(63, 45, 22, 0.96), rgba(28, 21, 14, 0.96));
    color: #f4e5c0;
    border-radius: 12px;
    padding: 9px 14px;
    cursor: var(--cursor-pointer);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.guild-small-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 209, 141, 0.58);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 233, 180, 0.16);
    filter: saturate(1.05);
}

.guild-small-btn.alt {
    background: linear-gradient(180deg, rgba(40, 28, 19, 0.96), rgba(20, 14, 10, 0.96));
    color: #d6c0a5;
}

.guild-rank-apply {
    width: min(260px, 100%);
    display: grid;
    gap: 10px;
}

.guild-rank-apply textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid rgba(201, 165, 92, 0.16);
    background: rgba(6, 11, 18, 0.72);
    color: var(--text);
    border-radius: 12px;
    padding: 12px;
}

.guild-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.guild-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.guild-stat-card {
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-stat-card span {
    display: block;
    color: #c9b27d;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.guild-stat-card strong {
    color: #fff0cf;
    font-size: 1rem;
}

.guild-subsection {
    margin-top: 18px;
}

.guild-create-form {
    margin-top: 16px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.allocation-box {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(226, 188, 113, 0.08);
    border: 1px solid rgba(226, 188, 113, 0.18);
}

.allocation-box p {
    margin: 6px 0 0;
    color: var(--muted);
}

.attribute-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.06);
    }
}

@keyframes idlePulse {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.88;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1080px) {
    .hero,
    .inventory-layout,
    .database-grid,
    .shop-layout,
    .npc-grid {
        grid-template-columns: 1fr;
    }

    .game-shell,
    .game-grid,
    .landing-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .status-card,
    .idle-card,
    .world-card,
    .stats-card,
    .jobs-card,
    .skills-card,
    .inventory-card,
    .settings-card,
    .exp-card {
        grid-column: span 12;
    }

    .inventory-hub {
        grid-template-columns: 1fr;
    }

    .character-create-layout,
    .characters-page-layout,
    .character-class-preview {
        grid-template-columns: 1fr;
    }

    .character-class-preview-media {
        min-height: 180px;
    }

    .character-class-preview-media img {
        height: 180px;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop-only compact tuning for Inventory Auto Use.
   Keeps mobile rules untouched and prevents oversized rows/controls on desktop. */
@media (min-width: 1081px) {
    body:not(.mobile-client-mode) .inventory-auto-settings {
        width: min(880px, 100%);
        margin: 12px 0 0;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    body:not(.mobile-client-mode) .auto-settings-title {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 4px;
        margin: 0 0 2px;
    }

    body:not(.mobile-client-mode) .auto-settings-title h3 {
        margin: 0;
        font-size: 2rem;
        line-height: 1.05;
    }

    body:not(.mobile-client-mode) .auto-settings-rows {
        gap: 8px;
    }

    body:not(.mobile-client-mode) .auto-row {
        grid-template-columns: 128px minmax(220px, 1fr) 66px 78px;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    body:not(.mobile-client-mode) .auto-row .label,
    body:not(.mobile-client-mode) .auto-row .sub {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    body:not(.mobile-client-mode) .auto-row select,
    body:not(.mobile-client-mode) .auto-row input[type="number"] {
        min-height: 34px;
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    body:not(.mobile-client-mode) .auto-row-buff-item,
    body:not(.mobile-client-mode) .auto-row-toggle {
        grid-template-columns: 128px 1fr;
    }

    body:not(.mobile-client-mode) .auto-row-rebirth {
        grid-template-columns: 128px minmax(220px, 1fr) auto;
    }

    body:not(.mobile-client-mode) .inline-check {
        gap: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1280px);
    }

    .hero {
        padding-top: 24px;
    }

    .hero-meta,
    .quick-panels,
    .skill-loadout,
    .currency-bars {
        grid-template-columns: 1fr;
    }

    .status-topline {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .stat-meta {
        text-align: left;
    }

    .inventory-shell {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .stats-identity-grid,
    .stats-fantasy-row,
    .stats-fantasy-row-bottom {
        grid-template-columns: 1fr;
    }

    .inventory-equip-frame {
        min-height: auto;
        grid-template-columns: repeat(6, 48px);
        justify-content: center;
        width: 100%;
        max-width: 420px;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .bag-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .bag-grid {
        grid-template-columns: repeat(5, 48px);
    }

    .auth-grid .auth-card {
        grid-column: span 12;
    }

    .settings-modal {
        place-items: start center;
        padding: 10px;
    }

    .settings-modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 14px;
        border-radius: 14px;
    }

    .settings-modal-head {
        margin-bottom: 10px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .settings-sound-card,
    .settings-tabs-card {
        grid-column: auto;
    }

    .settings-modal .settings-list label {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .settings-modal .settings-list input[type="range"] {
        width: 100%;
        height: 10px;
    }

    .settings-modal .settings-list input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-actions .ghost-btn,
    .settings-actions .primary-btn {
        width: 100%;
        min-height: 44px;
    }

    .character-row,
    .attribute-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .character-class-grid,
    .character-create-attributes {
        grid-template-columns: 1fr;
    }

    .character-create-top,
    .character-class-stage-copy,
    .character-stat-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .guild-board,
    .guild-rank-head,
    .guild-member-head,
    .guild-member-row,
    .guild-roster-head,
    .guild-roster-row,
    .guild-table-head,
    .guild-table-row {
        grid-template-columns: 1fr;
    }

    .guild-topbar,
    .guild-detail-header {
        align-items: stretch;
    }

    .guild-stat-grid {
        grid-template-columns: 1fr;
    }

    .guild-summary-card,
    .guild-summary-grid,
    .guild-summary-grid-single,
    .guild-buff-meta {
        grid-template-columns: 1fr;
    }

    .guild-rank-card-top,
    .guild-rank-card-stats,
    .guild-storage-layout {
        grid-template-columns: 1fr;
    }

    .guild-rank-card-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .guild-rank-apply {
        width: 100%;
    }

    .guild-page {
        display: block;
    }

    .guild-shell {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 12px;
    }

    .main-panel {
        padding: 16px;
    }

.sidebar {
        grid-template-rows: auto auto auto;
    }
}

.sidebar-link-button {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: var(--cursor-pointer);
}

.floating-chat-window {
    position: fixed;
    right: 18px;
    bottom: 210px;
    width: min(480px, calc(100vw - 24px));
    min-width: 360px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    z-index: 5600;
    border: 2px solid rgba(79, 82, 57, .95);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(13, 25, 11, .84), rgba(6, 8, 5, .92));
    box-shadow: 0 12px 44px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(210, 210, 160, .12);
    overflow: hidden;
    font-family: "Trebuchet MS", Verdana, sans-serif;
}
.floating-chat-window.minimized {
    min-height: 0;
    height: auto !important;
}
.floating-chat-window.minimized .floating-chat-lines,
.floating-chat-window.minimized .floating-chat-notice-box,
.floating-chat-window.minimized .floating-chat-form,
.floating-chat-window.minimized .floating-chat-resize {
    display: none;
}
.floating-chat-mobile-toggle {
    display: none;
    position: fixed;
    right: 12px;
    bottom: 206px;
    z-index: 5601;
    border: 1px solid rgba(121, 114, 69, .9);
    border-radius: 4px;
    background: linear-gradient(#2b2b20, #10100b);
    color: #eee7c9;
    padding: 6px 10px;
    font-size: 12px;
}
.floating-chat-mobile-toggle.has-alert {
    box-shadow: 0 0 14px rgba(255, 118, 200, .55);
}

.floating-chat-resize {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(121, 114, 69, .75);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(215, 174, 95, 0.85), rgba(88, 56, 22, 0.85));
    cursor: nwse-resize;
    z-index: 3;
}

.floating-chat-resize::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-top: 1px solid rgba(39, 20, 7, 0.9);
    border-left: 1px solid rgba(39, 20, 7, 0.9);
}

.floating-chat-head,
.floating-chat-form {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    border-bottom: 1px solid rgba(132, 122, 76, .55);
}

.floating-chat-head {
    justify-content: space-between;
    min-height: 19px;
    color: #d6d6b0;
    font-size: 11px;
    text-shadow: 1px 1px #000;
}
.floating-chat-head strong {
    flex: 0 0 auto;
}
.floating-chat-alerts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 6px;
}
.chat-alert-pill {
    font-size: 10px;
    font-weight: 700;
}
.chat-alert-whisper { color: #ff76c8; }
.chat-alert-guild { color: #55e6dd; }
.chat-alert-party { color: #ffad4f; }
.chat-alert-world { color: #d6d6b0; }

.floating-chat-head button {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid rgba(119, 145, 80, .8);
    background: rgba(7, 48, 8, .9);
    color: #9cff7b;
    font-size: 11px;
    line-height: 1;
}

.floating-chat-lines {
    height: 220px;
    min-height: 140px;
    flex: 1 1 auto;
    overflow: auto;
    padding: 4px 6px;
    display: block;
    scrollbar-color: #6c6d43 rgba(0, 0, 0, .35);
}

.floating-chat-notice-box {
    margin: 4px 6px 0;
    border: 1px solid rgba(121, 114, 69, .85);
    border-radius: 2px;
    background: rgba(0, 0, 0, .35);
    padding: 4px 6px;
}

.floating-chat-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #d6d6b0;
    font-size: 10px;
    text-shadow: 1px 1px #000;
    margin-bottom: 2px;
}

.floating-chat-notice-head strong {
    color: #9ed8ff;
    font-size: 10px;
}

.floating-chat-notice-text {
    color: #bfe7ff;
    font-size: 11px;
    line-height: 1.25;
    text-shadow: 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-chat-line {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    text-shadow: 1px 1px #000;
}

.floating-chat-line span {
    display: inline;
    min-width: 0;
    color: inherit;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.floating-chat-line strong {
    color: inherit;
}

.floating-chat-line p {
    display: inline;
    margin: 0;
    color: inherit;
}

.chat-emote-inline {
    width: 22px;
    height: 22px;
    image-rendering: auto;
    vertical-align: -6px;
    margin: 0 2px;
}

.chat-item-link {
    display: inline;
    margin: 0 1px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #69b7ff;
    font: inherit;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(73, 154, 255, .55), 1px 1px #000;
    cursor: var(--cursor-pointer);
}

.chat-item-link:hover {
    color: #a9d9ff;
    text-decoration: underline;
}

.floating-chat-input-row.chat-drop-ready input[name="message"] {
    border-color: rgba(105, 183, 255, .95);
    box-shadow: 0 0 14px rgba(105, 183, 255, .25);
}

.inventory-tooltip.chat-item-tooltip-open {
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 1500;
}

.chat-channel-party { color: #ffad4f; }
.chat-channel-guild { color: #55e6dd; }
.chat-channel-alliance { color: #4e6dff; }
.chat-channel-whisper { color: #ff76c8; }
.chat-channel-battleground { color: #5b3418; }
.chat-channel-notice { color: #8fd5ff; }

.chat-message-body.font-chat-serif { font-family: Georgia, "Times New Roman", serif; }
.chat-message-body.font-chat-mono { font-family: Consolas, "Courier New", monospace; }
.chat-message-body.font-chat-fantasy { font-family: "Trebuchet MS", Verdana, sans-serif; letter-spacing: .2px; }
.chat-name.namefx-shadow { text-shadow: 0 0 8px rgba(255, 255, 255, .55), 1px 1px #000; }
.chat-name.namefx-flame { text-shadow: 0 0 10px rgba(255, 80, 20, .95), 0 0 18px rgba(255, 150, 20, .7), 1px 1px #000; }
.chat-name.namefx-ice { text-shadow: 0 0 10px rgba(120, 225, 255, .9), 0 0 18px rgba(120, 170, 255, .65), 1px 1px #000; }
.chat-name.namefx-lightning { text-shadow: 0 0 8px rgba(250, 255, 120, .95), 0 0 16px rgba(130, 190, 255, .65), 1px 1px #000; }
.chat-channel-shout { color: #ffe26e; }
.chat-channel-shout span,
.chat-channel-shout p {
    color: #fff1ad;
    text-shadow: 0 0 8px rgba(255, 174, 42, 0.55), 0 0 16px rgba(255, 95, 31, 0.28);
    font-weight: 700;
}

.floating-chat-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    border-top: 1px solid rgba(132, 122, 76, .55);
    border-bottom: 0;
    background: rgba(0, 0, 0, .28);
}

.floating-chat-input-row {
    display: flex;
    gap: 3px;
}

.floating-chat-input-row input {
    min-width: 0;
    height: 24px;
    border: 1px solid rgba(121, 114, 69, .9);
    border-radius: 2px;
    background: rgba(4, 5, 3, .92);
    color: #e7e7d0;
    padding: 2px 5px;
    font-size: 12px;
}

.floating-chat-input-row input[name="message"] {
    flex: 1;
}

.floating-chat-input-row button {
    height: 24px;
    border: 1px solid rgba(121, 114, 69, .9);
    border-radius: 2px;
    background: linear-gradient(#202016, #080806);
    color: #dedec2;
    font-size: 12px;
    padding: 1px 8px;
}

.floating-chat-input-row .chat-emote-toggle {
    width: 28px;
    padding: 1px 0;
    color: #ffe8a8;
}

.floating-chat-emotes {
    display: grid;
    grid-template-columns: repeat(12, 24px);
    gap: 3px;
    max-height: 84px;
    overflow: auto;
    padding: 4px;
    border: 1px solid rgba(121, 114, 69, .7);
    background: rgba(0, 0, 0, .34);
}

.chat-emote-button {
    width: 24px;
    height: 24px;
    padding: 1px;
    border: 1px solid rgba(121, 114, 69, .85);
    border-radius: 2px;
    background: rgba(5, 6, 4, .78);
    cursor: var(--cursor-pointer);
}

.chat-emote-button:hover {
    border-color: #e6cb78;
    box-shadow: 0 0 8px rgba(230, 203, 120, .34);
}

.chat-emote-button img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.floating-chat-tabs {
    display: flex;
    gap: 2px;
}

.floating-chat-tab {
    flex: 1;
    height: 22px;
    border: 1px solid #4c4b41;
    border-radius: 1px;
    background: linear-gradient(#484844, #171714);
    color: #e1e1d0;
    font-size: 11px;
    padding: 1px 2px;
    text-shadow: 1px 1px #000;
}

.floating-chat-tab.active {
    border-color: #c9c0a0;
    background: linear-gradient(#735743, #2b211b);
    color: #fff;
}

@media (max-width: 991px) {
    .floating-chat-window {
        min-width: 0;
        min-height: 0;
        height: auto !important;
        width: min(480px, calc(100vw - 24px)) !important;
    }

    .floating-chat-resize {
        display: none;
    }
    .floating-chat-mobile-toggle {
        display: inline-block;
    }
}

@keyframes chatPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 118, 200, 0);
        background: rgba(255, 118, 200, 0.08);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 118, 200, 0.38);
        background: rgba(255, 118, 200, 0.18);
    }
}

.droplist-filter-bar button {
    border: 1px solid rgba(227, 190, 113, .45);
    border-radius: 10px;
    background: #e8c675;
    color: #1b1308;
    font-weight: 700;
    padding: 9px 14px;
}

.droplist-filter-bar {
    display: flex;
    align-items: end;
    gap: 14px;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid rgba(227, 190, 113, .18);
    border-radius: 16px;
    background: rgba(6, 10, 16, .55);
}

.droplist-filter-bar label {
    display: grid;
    gap: 6px;
}

.droplist-filter-bar span {
    color: #cfae63;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.droplist-filter-bar select {
    min-width: 260px;
    border: 1px solid rgba(227, 190, 113, .3);
    border-radius: 10px;
    background: rgba(8, 9, 10, .85);
    color: #f8e7bd;
    padding: 10px 12px;
}

.inventory-auto-settings {
    width: 1000px;
    margin: 16px 0 0;

    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;

    padding: 18px;
    border: 1px solid rgba(227, 190, 113, .28);
    border-radius: 20px;

    background: linear-gradient(160deg, rgba(16, 12, 4, .86), rgba(5, 7, 9, .82));
}

/* LEFT */
.auto-settings-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* RIGHT CONTAINER */
.auto-settings-rows {
    display: grid;
    gap: 14px;
}

/* 🔥 DIE WICHTIGSTE ZEILE */
.auto-row {
    display: grid;
    grid-template-columns: 120px 260px 70px 80px;
    gap: 12px;
    align-items: center;
}

/* LABEL TEXT */
.auto-row .label {
    color: #d9bc72;
    font-size: 12px;
    text-transform: uppercase;
}

/* "Use at" */
.auto-row .sub {
    font-size: 12px;
    color: #bfa76a;
    text-align: right;
}

/* INPUTS */
.auto-row select,
.auto-row input {
        width: 100%;
    min-width: 240px;
    max-width: 260px;
    box-sizing: border-box;

    border: 1px solid rgba(227, 190, 113, .28);
    border-radius: 10px;
    background: rgba(0, 0, 0, .38);
    color: #f8e8c4;
    padding: 7px 8px;
}

/* CHECKBOX */
.inline-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BUTTON */
.auto-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.auto-row-buff-item {
    grid-template-columns: 120px 1fr;
}

.auto-buff-dropzone {
    min-height: 42px;
    cursor: var(--cursor-pointer);
}

.auto-buff-slot-shell {
    display: grid;
    gap: 8px;
}

.auto-buff-slot-shell select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(227, 190, 113, .28);
    border-radius: 10px;
    background: rgba(0, 0, 0, .38);
    color: #f8e8c4;
    padding: 7px 8px;
}

.auto-buff-help {
    font-size: 12px;
    color: #d3c39f;
}

.auto-buff-skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auto-buff-skill-toggle {
    width: 42px;
    height: 42px;
    border: 2px solid #7f2b2b;
    background: rgba(120, 30, 30, 0.22);
    color: #ffd8d8;
    border-radius: 10px;
    padding: 0;
    cursor: var(--cursor-pointer);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auto-buff-skill-toggle.is-on {
    border-color: #2f8a45;
    background: rgba(30, 120, 55, 0.28);
    color: #d8ffe3;
}

.auto-buff-skill-toggle.is-off {
    box-shadow: inset 0 0 0 2px rgba(180, 45, 45, 0.5);
}

.auto-buff-skill-toggle.is-on {
    box-shadow: inset 0 0 0 2px rgba(70, 200, 110, 0.5);
}

.auto-buff-skill-toggle img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* Auto Use refresh: card style aligned with account settings modal */
.inventory-auto-settings {
    max-width: 100%;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(61, 116, 190, 0.52);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 26, 62, 0.92), rgba(5, 19, 49, 0.92));
    box-shadow: inset 0 1px 0 rgba(110, 160, 225, 0.15), 0 20px 40px rgba(0, 0, 0, 0.32);
}

.auto-settings-title {
    gap: 10px;
}

.auto-settings-title .eyebrow {
    color: #ddb96b;
    letter-spacing: .18em;
}

.auto-settings-title h3 {
    margin: 0;
    color: #e9f2ff;
    font-size: 32px;
}

.auto-settings-rows {
    gap: 12px;
}

.auto-row {
    grid-template-columns: 150px minmax(260px, 1fr) 90px 110px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(57, 110, 181, 0.46);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 22, 56, 0.92), rgba(3, 17, 45, 0.92));
}

.auto-row .label {
    color: #e0bb73;
    letter-spacing: .1em;
    font-weight: 700;
}

.auto-row .sub {
    color: #8fb5ea;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auto-row select,
.auto-row input[type="number"] {
    min-width: 0;
    min-height: 40px;
    border: 1px solid rgba(64, 120, 194, 0.58);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(6, 25, 60, 0.95), rgba(3, 17, 44, 0.95));
    color: #e8f1ff;
    padding: 8px 10px;
}

.auto-row-buff-item {
    grid-template-columns: 150px 1fr;
}

.auto-row-rebirth {
    grid-template-columns: 150px minmax(260px, 1fr) 1fr;
}

.auto-row-toggle {
    grid-template-columns: 150px 1fr;
}

.inline-check {
    gap: 10px;
    color: #d7e6ff;
    font-weight: 600;
}

.inline-check input[type="checkbox"] {
    width: 42px;
    min-width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(126, 160, 207, 0.6);
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(180deg, rgba(24, 44, 80, 0.9), rgba(10, 29, 61, 0.92));
    position: relative;
    transition: .2s ease;
}

.inline-check input[type="checkbox"]::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: #dce7f7;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 5px rgba(0, 0, 0, .35);
    transition: transform .2s ease, background .2s ease;
}

.inline-check input[type="checkbox"]:checked {
    background: linear-gradient(180deg, #d3ab59, #b98a34);
    border-color: rgba(237, 200, 120, 0.9);
}

.inline-check input[type="checkbox"]:checked::after {
    transform: translateX(18px);
    background: #fff7df;
}

.auto-buff-slot-shell select {
    border: 1px solid rgba(64, 120, 194, 0.58);
    background: linear-gradient(180deg, rgba(6, 25, 60, 0.95), rgba(3, 17, 44, 0.95));
    color: #e8f1ff;
    padding: 8px 10px;
}

.auto-buff-help {
    color: #9fc1ee;
    padding: 2px 2px 0;
}

.primary-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;

    background: linear-gradient(160deg, #e3be71, #caa35a);
    color: #1a1206;
    font-weight: 600;
    cursor: var(--cursor-pointer);
}

.quest-objective-complete {
    color: #76ef9b;
}

.quest-objective-open {
    color: #ffd36f;
}

.quest-status-line {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.quest-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(219, 177, 93, 0.24);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quest-status-badge-active {
    color: #8ed2ff;
    background: rgba(41, 78, 116, 0.28);
}

.quest-status-badge-available {
    color: #f2d181;
    background: rgba(94, 66, 24, 0.28);
}

.quest-status-badge-completed {
    color: #7bf0a3;
    background: rgba(25, 86, 53, 0.26);
}

.quest-status-badge-locked {
    color: #ffb2a6;
    background: rgba(104, 39, 39, 0.26);
}

.quest-status-badge-turnin {
    color: #ffe4a4;
    background: rgba(119, 81, 16, 0.32);
}

/* Auctionhouse + F/L */
.auction-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.auction-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(216, 176, 96, 0.32);
    color: #f2dca5;
    text-decoration: none;
    background: rgba(19, 29, 52, 0.72);
}

.auction-tab.active {
    color: #221608;
    background: linear-gradient(160deg, #edc76f, #c49342);
    border-color: rgba(255, 223, 140, 0.42);
}
.content-panel:has(.auction-tabs) {
    border: 1px solid rgba(216, 176, 96, 0.2);
    border-radius: 18px;
    background:
        radial-gradient(1200px 380px at -8% -20%, rgba(216, 176, 96, 0.12), transparent 42%),
        linear-gradient(165deg, rgba(11, 26, 50, 0.78), rgba(8, 16, 33, 0.9));
}

.auction-filter-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) auto;
    margin-bottom: 12px;
}

.auction-filter-grid label,
.auction-create-card label,
.fl-send-form label {
    display: grid;
    gap: 6px;
}

.auction-table-wrap {
    border: 1px solid rgba(216, 176, 96, 0.2);
    border-radius: 12px;
    overflow: auto;
    max-height: min(62vh, 680px);
    background: rgba(9, 18, 36, 0.7);
}

.auction-browse-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    position: relative;
}

.auction-preload-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 10, 18, 0.78);
    backdrop-filter: blur(2px);
}

.auction-preload-card {
    width: min(460px, 92%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(19, 26, 44, 0.92);
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.auction-preload-card h3 {
    margin: 0 0 8px;
}

.auction-preload-card p {
    margin: 0 0 10px;
    color: #d9dfef;
}

.auction-preload-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.auction-preload-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #6cc1ff, #7de6b2);
    transition: width .12s linear;
}

.auction-side-menu {
    display: grid;
    gap: 12px;
}

.auction-side-block {
    display: grid;
    gap: 8px;
}

.auction-side-group {
    display: grid;
    gap: 8px;
}

.auction-cat-btn {
    text-align: left;
}

.auction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    table-layout: fixed;
}

.auction-table th,
.auction-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(216, 176, 96, 0.12);
    vertical-align: middle;
}

.auction-table th:nth-child(1),
.auction-table td:nth-child(1) {
    width: 280px;
}

.auction-table th:nth-child(2),
.auction-table td:nth-child(2) {
    width: 90px;
}

.auction-table th:nth-child(3),
.auction-table td:nth-child(3) {
    width: 110px;
}

.auction-table th:nth-child(4),
.auction-table td:nth-child(4) {
    width: 95px;
}

.auction-table th:nth-child(5),
.auction-table td:nth-child(5),
.auction-table th:nth-child(6),
.auction-table td:nth-child(6) {
    width: 160px;
    white-space: nowrap;
}

.auction-table th:nth-child(7),
.auction-table td:nth-child(7) {
    width: 380px;
}

.auction-item-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auction-action-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 360px;
}

.auction-inline-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.auction-inline-form input[type="number"] {
    width: 100%;
    min-width: 0;
}

.auction-bid-slot {
    display: grid;
    gap: 6px;
    min-height: 56px;
    align-content: center;
}

.auction-bid-meta {
    font-size: 0.75rem;
    color: rgba(245, 217, 151, 0.92);
}

.auction-buyout-slot {
    display: flex;
    justify-content: flex-end;
}

.auction-bid-empty {
    font-size: 0.85rem;
    color: rgba(205, 212, 223, 0.6);
}

.auction-my-layout {
    display: grid;
    gap: 14px;
}

.auction-my-layout,
.auction-browse-layout {
    --auction-line: rgba(216, 176, 96, 0.36);
    --auction-line-soft: rgba(216, 176, 96, 0.22);
    --auction-bg-1: rgba(8, 16, 33, 0.9);
    --auction-bg-2: rgba(12, 27, 52, 0.76);
    --auction-gold-1: #f0cd80;
    --auction-gold-2: #c49245;
}

.auction-create-shell {
    display: grid;
    grid-template-columns: minmax(290px, 1fr) minmax(240px, 0.8fr) minmax(260px, 0.9fr);
    gap: 14px;
}
.auction-price-hints-list {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}
.auction-price-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(216, 176, 96, 0.28);
    border-radius: 10px;
    background: linear-gradient(150deg, rgba(34, 20, 8, 0.82), rgba(13, 10, 16, 0.85));
}
.auction-price-hint-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.auction-price-hint-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(132, 122, 76, .5);
    background: rgba(10, 14, 24, .8);
    object-fit: contain;
    padding: 2px;
    flex: 0 0 auto;
}
.auction-price-hint-icon--empty {
    display: inline-block;
}
.auction-price-hint-texts {
    display: grid;
    min-width: 0;
}
.auction-price-hint-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auction-price-hint-meta {
    color: #9fb2d8;
}
.auction-price-hint-prices {
    display: grid;
    justify-items: end;
    text-align: right;
}
.auction-price-hint-row small {
    color: #c9c4a9;
}

.auction-create-card,
.fl-send-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--auction-line-soft);
    background:
        radial-gradient(1200px 360px at -5% -25%, rgba(216, 176, 96, 0.14), transparent 42%),
        linear-gradient(165deg, var(--auction-bg-2), var(--auction-bg-1));
    box-shadow: inset 0 1px 0 rgba(255, 231, 183, 0.06), 0 14px 36px rgba(0, 0, 0, 0.24);
}
.auction-create-shell > .panel.cardish {
    border-radius: 14px;
    border: 1px solid var(--auction-line-soft);
    background:
        radial-gradient(900px 280px at 115% -15%, rgba(216, 176, 96, 0.1), transparent 40%),
        linear-gradient(170deg, rgba(11, 25, 48, 0.86), rgba(8, 17, 35, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 229, 173, 0.05), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.auction-dropzone {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed var(--auction-line);
    border-radius: 12px;
    background: rgba(12, 22, 42, 0.55);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.auction-dropzone.drop-hover {
    border-color: rgba(240, 205, 128, 0.85);
    background: rgba(43, 29, 15, 0.56);
    box-shadow: inset 0 0 0 1px rgba(240, 205, 128, 0.35), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.auction-selected-item {
    min-height: 62px;
}

.auction-selected-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auction-selected-slot {
    flex: 0 0 auto;
}

.auction-toggle-box {
    display: grid;
    gap: 6px;
}

.auction-toggle-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auction-toggle-row .chip-btn {
    border-radius: 8px;
    padding: 10px 14px;
    border-color: var(--auction-line-soft);
    background: rgba(17, 26, 46, 0.78);
    color: #f3deaf;
}

.auction-toggle-row .chip-btn.active {
    background: linear-gradient(160deg, var(--auction-gold-1), var(--auction-gold-2));
    color: #1e1308;
    border-color: rgba(255, 223, 140, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 223, 140, 0.3), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.auction-create-card .primary-btn {
    border-radius: 11px;
    background: linear-gradient(160deg, var(--auction-gold-1), #d0a553);
    color: #1d1304;
    border-color: rgba(255, 222, 140, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.auction-slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auction-slider-label strong {
    display: inline-flex;
    min-width: 56px;
    justify-content: center;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: #f4deb0;
    border: 1px solid rgba(216, 176, 96, 0.42);
    background: linear-gradient(180deg, rgba(45, 29, 13, 0.84), rgba(22, 15, 9, 0.9));
    border-radius: 8px;
    padding: 3px 9px;
}

.auction-create-card input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    --range-pct: 0%;
    width: 100%;
    height: 22px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    outline: none;
    cursor: var(--cursor-pointer);
}

.auction-create-card input[type="range"]::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(247, 208, 133, 0.45);
    background:
        linear-gradient(90deg, #f2cb76 0%, #d6a64c var(--range-pct), rgba(255, 255, 255, 0.18) var(--range-pct), rgba(255, 255, 255, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.auction-create-card input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #f5ddb0;
    background: radial-gradient(circle at 30% 30%, #fff3d4 0%, #f3cb79 40%, #b4812d 100%);
    box-shadow: 0 0 0 3px rgba(179, 123, 38, 0.22), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.auction-create-card input[type="range"]::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(247, 208, 133, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.auction-create-card input[type="range"]::-moz-range-progress {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2cb76 0%, #d6a64c 100%);
}

.auction-create-card input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #f5ddb0;
    background: radial-gradient(circle at 30% 30%, #fff3d4 0%, #f3cb79 40%, #b4812d 100%);
    box-shadow: 0 0 0 3px rgba(179, 123, 38, 0.22), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.auction-create-card input[type="range"]:focus-visible::-webkit-slider-thumb,
.auction-create-card input[type="range"]:active::-webkit-slider-thumb,
.auction-create-card input[type="range"]:focus-visible::-moz-range-thumb,
.auction-create-card input[type="range"]:active::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(179, 123, 38, 0.22), 0 0 0 6px rgba(247, 208, 133, 0.34), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.auction-create-card h3,
.auction-price-hints h3,
.auction-create-inventory h3 {
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.auction-my-list,
.auction-log-list,
.fl-send-inventory-list,
.fl-inbox-list {
    display: grid;
    gap: 10px;
}

.auction-my-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auction-my-grid,
.auction-log-grid {
    border: 1px solid rgba(216, 176, 96, 0.2);
    border-radius: 12px;
    background: rgba(9, 18, 36, 0.64);
    overflow: hidden;
}

.auction-my-grid-head,
.auction-my-grid-row,
.auction-log-grid-head,
.auction-log-grid-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) 90px 180px 160px minmax(160px, 1fr);
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
}

.auction-my-grid-head,
.auction-log-grid-head {
    color: #f2dca5;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(14, 24, 43, 0.84);
    border-bottom: 1px solid rgba(216, 176, 96, 0.2);
}

.auction-my-grid-row,
.auction-log-grid-row {
    border-bottom: 1px solid rgba(216, 176, 96, 0.14);
    background: linear-gradient(180deg, rgba(19, 14, 10, 0.4), rgba(10, 19, 36, 0.5));
}

.auction-my-grid-row:last-child,
.auction-log-grid-row:last-child {
    border-bottom: 0;
}

.auction-my-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.auction-my-item-cell strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-my-action-col {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.auction-my-action-col .tiny {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
}

.fl-send-layout {
    display: grid;
    grid-template-columns: minmax(340px, 1.1fr) minmax(280px, 0.9fr);
    gap: 12px;
}

.fl-send-inventory {
    display: grid;
    gap: 10px;
}

.auction-inventory-grid,
.fl-send-inventory .bag-grid {
    position: static;
    left: auto;
    top: auto;
    justify-content: start;
    width: 100%;
    margin: 0;
    align-content: start;
}

.auction-create-inventory .bag-slot,
.fl-send-inventory .bag-slot {
    width: 38px;
    height: 38px;
    min-height: 38px;
}

.fl-send-inventory-row {
    width: 100%;
    border: 1px solid rgba(216, 176, 96, 0.2);
    background: rgba(11, 20, 38, 0.66);
    border-radius: 10px;
    padding: 8px;
    color: inherit;
    text-align: left;
    cursor: var(--cursor-pointer);
}

.auction-inventory-grid .auction-inventory-item,
.fl-send-inventory .bag-grid .fl-send-inventory-row {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 9px;
    padding: 0;
    background: transparent;
}

.fl-send-inventory-row:hover {
    border-color: rgba(255, 218, 131, 0.38);
    background: rgba(24, 35, 62, 0.72);
}

.fl-send-inventory-row.active {
    box-shadow: inset 0 0 0 2px rgba(126, 188, 255, 0.7);
    background: rgba(24, 35, 62, 0.72);
}

.auction-inventory-item.active {
    box-shadow: inset 0 0 0 2px rgba(126, 188, 255, 0.7);
    background: rgba(24, 35, 62, 0.72);
}

.auction-pager {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auction-pager .disabled {
    opacity: .45;
    pointer-events: none;
}

.auction-page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auction-page-number {
    min-width: 32px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(216, 176, 96, 0.3);
    background: rgba(12, 23, 45, 0.72);
    color: #e8eefc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 8px;
}

.auction-page-number.active {
    border-color: rgba(126, 188, 255, 0.85);
    background: rgba(42, 66, 112, 0.82);
    color: #ffffff;
    font-weight: 700;
}

.auction-page-gap {
    color: rgba(223, 230, 243, 0.72);
    padding: 0 2px;
}

/* Auctionhouse WoW-like skin (visual only, scoped to auction page) */
body[data-page="auctionhouse"] .content-panel {
    border: 1px solid rgba(96, 116, 142, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(18, 26, 38, 0.95), rgba(11, 16, 24, 0.97));
    box-shadow: inset 0 1px 0 rgba(200, 224, 255, 0.04), 0 16px 34px rgba(0, 0, 0, 0.3);
}

body[data-page="auctionhouse"] .panel-head h2 {
    letter-spacing: 0.02em;
}

body[data-page="auctionhouse"] .auction-tabs {
    gap: 8px;
}

body[data-page="auctionhouse"] .auction-tab {
    min-height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(108, 132, 164, 0.34);
    background: linear-gradient(180deg, rgba(36, 50, 68, 0.86), rgba(23, 33, 47, 0.9));
    color: #d5e3f6;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body[data-page="auctionhouse"] .auction-tab.active {
    border-color: rgba(147, 179, 219, 0.6);
    background: linear-gradient(180deg, rgba(67, 86, 112, 0.92), rgba(34, 49, 70, 0.95));
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(224, 239, 255, 0.14);
}

body[data-page="auctionhouse"] .auction-table-wrap,
body[data-page="auctionhouse"] .auction-my-grid,
body[data-page="auctionhouse"] .auction-log-grid,
body[data-page="auctionhouse"] .auction-create-card,
body[data-page="auctionhouse"] .auction-create-shell > .panel.cardish {
    border: 1px solid rgba(88, 109, 136, 0.34);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 32, 47, 0.9), rgba(13, 20, 31, 0.92));
    box-shadow: inset 0 1px 0 rgba(204, 226, 255, 0.04);
}

body[data-page="auctionhouse"] .auction-table {
    min-width: 900px;
}

body[data-page="auctionhouse"] .auction-table thead,
body[data-page="auctionhouse"] .auction-my-grid-head,
body[data-page="auctionhouse"] .auction-log-grid-head {
    background: linear-gradient(180deg, rgba(50, 66, 88, 0.9), rgba(33, 46, 63, 0.95));
    color: #dbe8f9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.76rem;
}

body[data-page="auctionhouse"] .auction-table th,
body[data-page="auctionhouse"] .auction-table td,
body[data-page="auctionhouse"] .auction-my-grid-row,
body[data-page="auctionhouse"] .auction-log-grid-row {
    border-bottom: 1px solid rgba(80, 102, 129, 0.28);
}

body[data-page="auctionhouse"] .auction-my-grid-row,
body[data-page="auctionhouse"] .auction-log-grid-row {
    background: rgba(255, 255, 255, 0.01);
}

body[data-page="auctionhouse"] .auction-filter-grid input[type="text"],
body[data-page="auctionhouse"] .auction-create-card input[type="number"],
body[data-page="auctionhouse"] .auction-inline-form input[type="number"] {
    border: 1px solid rgba(88, 111, 140, 0.42);
    background: rgba(8, 14, 22, 0.86);
    color: #e8f0fb;
    border-radius: 8px;
}

body[data-page="auctionhouse"] .auction-dropzone {
    border: 1px dashed rgba(125, 151, 184, 0.46);
    border-radius: 10px;
    background: rgba(32, 47, 66, 0.26);
}

body[data-page="auctionhouse"] .auction-dropzone.drop-hover {
    border-color: rgba(171, 200, 236, 0.84);
    background: rgba(50, 72, 99, 0.42);
    box-shadow: inset 0 0 0 1px rgba(170, 199, 234, 0.34);
}

body[data-page="auctionhouse"] .auction-toggle-row .chip-btn,
body[data-page="auctionhouse"] .auction-cat-btn {
    border: 1px solid rgba(93, 116, 145, 0.42);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(36, 49, 67, 0.86), rgba(24, 35, 50, 0.9));
    color: #d5e3f6;
    min-height: 30px;
}

body[data-page="auctionhouse"] .auction-toggle-row .chip-btn.active,
body[data-page="auctionhouse"] .auction-cat-btn.active {
    border-color: rgba(154, 186, 226, 0.75);
    background: linear-gradient(180deg, rgba(70, 90, 116, 0.96), rgba(42, 58, 79, 0.96));
    color: #ffffff;
}

body[data-page="auctionhouse"] .auction-create-card .primary-btn,
body[data-page="auctionhouse"] .auction-action-row .primary-btn,
body[data-page="auctionhouse"] .auction-pager .ghost-btn,
body[data-page="auctionhouse"] .auction-my-action-col .ghost-btn {
    border-radius: 8px;
}

body[data-page="auctionhouse"] .auction-create-card .primary-btn {
    background: linear-gradient(180deg, #7f9fc6, #4f698b);
    color: #07101c;
    border-color: rgba(171, 201, 236, 0.7);
}

body[data-page="auctionhouse"] .auction-slider-label strong {
    color: #dce9fb;
    border: 1px solid rgba(93, 116, 145, 0.46);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(30, 44, 62, 0.92), rgba(19, 29, 43, 0.94));
}

body[data-page="auctionhouse"] .auction-create-card input[type="range"] {
    --range-pct: 0%;
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    background: transparent;
}

body[data-page="auctionhouse"] .auction-create-card input[type="range"]::-webkit-slider-runnable-track {
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 156, 0.52);
    background:
        linear-gradient(90deg, #a3bddf 0%, #6f8fb8 var(--range-pct), rgba(255, 255, 255, 0.16) var(--range-pct), rgba(255, 255, 255, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.26);
}

body[data-page="auctionhouse"] .auction-create-card input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -5px;
    border-radius: 50%;
    border: 1px solid rgba(206, 226, 250, 0.95);
    background: radial-gradient(circle at 30% 30%, #e9f3ff 0%, #9db8db 42%, #607fa8 100%);
    box-shadow: 0 0 0 2px rgba(24, 35, 50, 0.85), 0 4px 10px rgba(0, 0, 0, 0.35);
}

body[data-page="auctionhouse"] .auction-create-card input[type="range"]::-moz-range-track {
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 156, 0.52);
    background: rgba(255, 255, 255, 0.12);
}

body[data-page="auctionhouse"] .auction-create-card input[type="range"]::-moz-range-progress {
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a3bddf 0%, #6f8fb8 100%);
}

body[data-page="auctionhouse"] .auction-create-card input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(206, 226, 250, 0.95);
    background: radial-gradient(circle at 30% 30%, #e9f3ff 0%, #9db8db 42%, #607fa8 100%);
    box-shadow: 0 0 0 2px rgba(24, 35, 50, 0.85), 0 4px 10px rgba(0, 0, 0, 0.35);
}

body[data-page="auctionhouse"] .auction-price-hint-row {
    border: 1px solid rgba(90, 111, 138, 0.34);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 8px;
}

/* Party Finder window refresh */
body[data-page="party"] .content-panel {
    max-width: none;
    margin: 0;
}

.party-window {
    width: min(1240px, 96vw);
    height: 760px;
    margin: 0;
    border: 1px solid rgba(212, 177, 112, 0.3);
    border-radius: 14px;
    background:
        radial-gradient(circle at 18% 12%, rgba(51, 74, 118, 0.24), transparent 50%),
        radial-gradient(circle at 83% 78%, rgba(26, 48, 86, 0.28), transparent 52%),
        linear-gradient(165deg, rgba(7, 15, 31, 0.96), rgba(4, 10, 21, 0.98));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(245, 221, 169, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.party-window-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(185, 157, 109, 0.28);
    background: linear-gradient(180deg, rgba(12, 25, 49, 0.86), rgba(10, 20, 39, 0.62));
}

.party-window-head h2 {
    margin: 3px 0 0;
}

.party-window-tabs {
    display: flex;
    gap: 8px;
}

.party-window-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(174, 149, 105, 0.28);
    color: #e7edf9;
    text-decoration: none;
    background: rgba(10, 22, 43, 0.56);
}

.party-window-tab.active {
    color: #2a1c07;
    font-weight: 700;
    border-color: rgba(242, 214, 156, 0.62);
    background: linear-gradient(160deg, #f0cc7a, #c69243);
}

.party-window-body {
    flex: 1;
    padding: 18px;
    overflow: auto;
}

.party-panel {
    min-height: 100%;
    border: 1px solid rgba(170, 149, 109, 0.22);
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(150deg, rgba(9, 19, 38, 0.76), rgba(7, 13, 27, 0.7));
}

.party-summary,
.party-rule-card {
    margin-bottom: 14px;
}

.party-inline-actions,
.party-leave-form {
    margin: 14px 0;
}

.party-subsection-title {
    margin: 16px 0 10px;
    font-weight: 700;
    color: #efcd88;
    letter-spacing: 0.03em;
}

.party-board-list {
    display: grid;
    gap: 10px;
}

.party-board-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(164, 147, 111, 0.2);
    background: linear-gradient(170deg, rgba(18, 31, 56, 0.48), rgba(10, 18, 35, 0.46));
}

.party-board-card strong,
.party-board-card span {
    display: block;
}

.party-board-card span {
    opacity: 0.95;
    color: rgba(221, 230, 245, 0.9);
}

.party-apply-form {
    min-width: 260px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.party-apply-form input[type="text"] {
    min-width: 0;
    width: 100%;
}

@media (max-width: 1024px) {
    .party-window {
        height: auto;
        min-height: 650px;
    }
    .party-window-head {
        align-items: start;
        flex-direction: column;
    }
    .party-window-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    .party-board-card {
        flex-direction: column;
    }
    .party-apply-form {
        width: 100%;
        min-width: 0;
    }
}

.fl-send-inventory-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fl-inbox-layout {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
}

.fl-mail-row {
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(216, 176, 96, 0.2);
    text-decoration: none;
    color: inherit;
    background: rgba(11, 20, 38, 0.66);
}

.fl-mail-row.active {
    border-color: rgba(255, 218, 131, 0.4);
    background: rgba(35, 47, 78, 0.72);
}

.fl-mail-detail {
    display: grid;
    gap: 12px;
}

.fl-mail-window {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    width: min(100%, 780px);
}

.fl-mail-window textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
}

.fl-mail-window-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fl-mail-attach-grid {
    display: grid;
    grid-template-columns: repeat(5, 40px) !important;
    grid-auto-rows: 40px;
    gap: 6px;
    justify-content: flex-start;
    width: fit-content;
}

.fl-mail-item-slot {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 2px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-mail-item-slot .shop-slot-button {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
    padding: 0;
    background: transparent;
}

.fl-mail-empty-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.fl-currency-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.muted-note {
    color: rgba(216, 228, 243, 0.82);
    font-size: 0.8rem;
}

.fl-attach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.fl-send-form .fl-attach-grid {
    grid-template-columns: repeat(5, 98px);
    gap: 8px;
    width: max-content;
    max-width: 100%;
}

.fl-attach-slot {
    min-height: 132px;
    border: 1px solid rgba(216, 176, 96, 0.2);
    border-radius: 10px;
    padding: 8px;
    background: rgba(11, 20, 38, 0.66);
    display: grid;
    gap: 6px;
    align-content: start;
}

.fl-send-form .fl-attach-slot {
    min-height: 98px;
}

.fl-send-slot-head {
    font-size: 0.74rem;
}

.fl-send-slot-visual {
    position: relative;
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(216, 176, 96, 0.42);
    border-radius: 8px;
    background: rgba(11, 20, 38, 0.5);
    text-align: center;
    padding: 0 6px;
}

.fl-send-slot-visual .shop-slot-button {
    position: absolute;
    inset: 0;
}

.fl-send-slot-visual .inventory-stack-count {
    right: 2px;
    bottom: 2px;
}

.fl-send-slot-visual [data-fl-slot-label] {
    font-size: 0.82rem;
    color: rgba(224, 236, 255, 0.78);
}

.fl-send-amount-field {
    display: grid;
    gap: 4px;
}

.fl-send-amount-field span {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(224, 236, 255, 0.76);
}

.fl-send-amount-input {
    width: 72px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(216, 176, 96, 0.24);
    border-radius: 8px;
    background: rgba(4, 7, 10, 0.88);
    color: #fff2d6;
}

@media (max-width: 740px) {
    .fl-send-form .fl-attach-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
    }
}

.fl-attach-slot.empty {
    opacity: 0.7;
}

.fl-attach-slot.filled {
    border-color: rgba(255, 218, 131, 0.42);
    background: rgba(24, 35, 62, 0.72);
}

.fl-attach-slot.active {
    box-shadow: 0 0 0 2px rgba(126, 188, 255, 0.45);
}

.fl-attach-slot.drop-hover {
    border-color: rgba(126, 188, 255, 0.72);
}

/* Force compact 2x5 mail attachment grid (desktop 100% zoom baseline) */
.fl-mail-window .fl-mail-attach-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 40px) !important;
    grid-template-rows: repeat(2, 40px) !important;
    grid-auto-rows: 40px !important;
    gap: 6px !important;
    width: max-content !important;
    justify-content: flex-start !important;
}

.fl-mail-window .fl-mail-attach-grid .fl-mail-item-slot {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    align-content: initial !important;
}

.fl-mail-window .fl-mail-attach-grid .fl-mail-item-slot .icon-32 {
    width: 32px !important;
    height: 32px !important;
}

.fl-mail-window .fl-mail-attach-grid .fl-mail-item-slot .shop-slot-button {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3;
}

.fl-attach-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
}

.fl-slot-assign-btn {
    min-height: 36px;
    border: 1px dashed rgba(216, 176, 96, 0.42);
    border-radius: 8px;
    background: rgba(11, 20, 38, 0.5);
    color: inherit;
    text-align: left;
    padding: 0 8px;
    cursor: var(--cursor-pointer);
}

.fl-slot-assign-btn:hover {
    border-color: rgba(255, 218, 131, 0.62);
}

.ghost-btn.tiny {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 0.72rem;
}

@media (max-width: 1400px) {
    .auction-browse-layout,
    .auction-create-shell,
    .fl-send-layout,
    .fl-inbox-layout {
        grid-template-columns: 1fr;
    }
}

.fish-cooking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.fish-cooking-card {
    border: 1px solid rgba(255, 215, 135, 0.35);
    background:
        radial-gradient(circle at top right, rgba(255, 213, 138, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(36, 25, 18, 0.92), rgba(20, 13, 9, 0.94));
    border-radius: 12px;
    padding: 14px;
    display: grid;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.fish-cooking-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 223, 153, 0.58);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 222, 145, 0.16) inset;
}

.fish-cooking-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 214, 139, 0.18);
}

.fish-cooking-card-head strong {
    color: #ffe2ad;
    letter-spacing: 0.02em;
    font-size: 1.14rem;
    line-height: 1.2;
}

.fish-cooking-head-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 32px;
}

.fish-cooking-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: start;
}

.fish-cooking-label {
    font-size: 0.78rem;
    color: #d2bb96;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 4px;
}

.fish-cooking-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.fish-cooking-items small {
    color: #f2d7ad;
    opacity: 0.92;
    font-size: 0.92rem;
    line-height: 1.35;
}

.fish-cooking-slot {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 220, 147, 0.35);
    background: rgba(8, 11, 17, 0.72);
}

.fish-cooking-card img {
    -webkit-user-drag: none;
    user-select: none;
}

.fish-cooking-meta {
    display: grid;
    gap: 5px;
    font-size: 0.9rem;
    color: #f8d692;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.fish-cooking-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.fish-cooking-meta-row span {
    color: rgba(247, 215, 148, 0.84);
}

.fish-cooking-meta-row strong {
    color: #ffe5b8;
    font-weight: 700;
    text-align: right;
}

.fish-cooking-action {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 214, 139, 0.22);
    display: grid;
    gap: 12px;
}

.fish-cooking-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.fish-cooking-slider-wrap {
    display: grid;
    gap: 7px;
}

.fish-cooking-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #f4d9aa;
    font-size: 0.95rem;
}

.fish-cooking-slider-head strong {
    font-size: 1rem;
    color: #ffe8be;
}

.fish-cooking-slider-wrap input[type="range"] {
    width: 100%;
}

.fish-cooking-range {
    --fish-cook-progress: 0%;
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(247, 208, 133, 0.45);
    background:
        linear-gradient(90deg, #f2cb76 0%, #d6a64c var(--fish-cook-progress), rgba(255, 255, 255, 0.18) var(--fish-cook-progress), rgba(255, 255, 255, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: var(--cursor-pointer);
}

.fish-cooking-range::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: transparent;
}

.fish-cooking-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #f5ddb0;
    background: radial-gradient(circle at 30% 30%, #fff3d4 0%, #f3cb79 40%, #b4812d 100%);
    box-shadow: 0 0 0 3px rgba(179, 123, 38, 0.22), 0 6px 12px rgba(0, 0, 0, 0.35);
    margin-top: -6px;
}

.fish-cooking-range::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(247, 208, 133, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.fish-cooking-range::-moz-range-progress {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2cb76 0%, #d6a64c 100%);
}

.fish-cooking-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #f5ddb0;
    background: radial-gradient(circle at 30% 30%, #fff3d4 0%, #f3cb79 40%, #b4812d 100%);
    box-shadow: 0 0 0 3px rgba(179, 123, 38, 0.22), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.fish-cooking-range:focus {
    outline: none;
}

.fish-cooking-range:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(247, 208, 133, 0.35), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.fish-cooking-range:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fish-cooking-btn {
    width: 132px;
    min-height: 34px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

@media (max-width: 920px) {
    .fish-cooking-form {
        grid-template-columns: 1fr;
    }

    .fish-cooking-btn {
        width: 100%;
    }
}
.poh-hud {
    position: fixed;
    right: 14px;
    top: 90px;
    z-index: 1200;
    min-width: 220px;
    background: rgba(10, 10, 14, 0.88);
    border: 1px solid rgba(255, 115, 64, 0.6);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ffd9c9;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.dungeon-locked .nav-link:not([href*="dashboard"]) {
    pointer-events: none;
    opacity: 0.5;
}

.poh-page .poh-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(360px, 420px) 1fr;
}

.poh-page .poh-hud-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.poh-page .poh-monster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 300px));
    gap: 8px;
    justify-content: center;
}

.poh-left-col, .poh-right-col {
    min-height: 640px;
}

.poh-page .poh-duel-stage {
    grid-template-columns: minmax(420px, 1fr) 90px minmax(420px, 1fr);
    align-items: stretch;
}

.poh-page .poh-duel-stage .duel-fighter {
    text-align: left;
}

.poh-page .poh-monster-card {
    min-height: 96px;
    max-width: 300px;
    padding: 8px !important;
}

.poh-page .poh-monster-card.is-boss {
    position: relative;
    border: 1px solid rgba(230, 178, 66, 0.75);
    background: linear-gradient(165deg, rgba(56, 36, 8, 0.65), rgba(13, 20, 34, 0.92));
    box-shadow: 0 0 24px rgba(230, 178, 66, 0.25), inset 0 0 0 1px rgba(255, 220, 140, 0.15);
}

.poh-page .poh-monster-card .poh-boss-badge {
    display: none;
}

.poh-page .poh-monster-card.is-boss .poh-boss-badge {
    display: inline-flex;
    position: absolute;
    top: -9px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 223, 153, 0.75);
    background: linear-gradient(180deg, rgba(255, 215, 120, 0.94), rgba(208, 144, 34, 0.95));
    color: #2f1a04;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poh-page .raid-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.poh-page .raid-player-panel {
    padding: 8px;
    gap: 6px;
    border-radius: 10px;
    min-height: 96px;
    max-width: 300px;
}

.poh-page .raid-player-iconbox {
    min-height: 46px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    padding: 6px;
}

.poh-page .raid-player-iconbox img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.poh-page .raid-player-meta strong {
    font-size: 0.78rem;
    line-height: 1.2;
}

.poh-page .raid-player-meta span {
    font-size: 0.68rem;
    line-height: 1.15;
}

.poh-page .raid-player-subline {
    font-size: 0.66rem;
    line-height: 1.2;
}

.poh-page .raid-player-feedback {
    min-height: 24px;
    font-size: 0.66rem;
    line-height: 1.2;
    padding: 5px 6px;
    border-radius: 6px;
}

.poh-page .bar-wrap .bar-label {
    font-size: 0.68rem;
}

.poh-page .bar-wrap .bar {
    height: 7px;
}

.poh-page .poh-monster-card .monster-preview {
    width: 42px;
    height: 42px;
    border-radius: 6px;
}

.poh-page .poh-monster-card.is-boss .monster-preview {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(230, 178, 66, 0.45);
}

.poh-page .poh-monster-card strong {
    font-size: 0.8rem;
    line-height: 1.2;
}

.poh-page .poh-monster-card small {
    font-size: 0.7rem;
    line-height: 1.15;
}

.poh-page .poh-monster-card .bar-wrap .bar-label {
    font-size: 0.68rem;
}

.poh-page .raid-player-subline .party-buff-icon,
.poh-page .raid-player-subline .party-buff-fallback {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 5px;
}

.poh-page .raid-player-subline .party-buff-icon img {
    width: 16px;
    height: 16px;
    border-radius: 5px;
}

@media (max-width: 1300px) {
    .poh-page .poh-duel-stage {
        grid-template-columns: 1fr;
    }
    .poh-page .duel-versus {
        display: none;
    }
    .poh-page .poh-monster-grid {
        grid-template-columns: 1fr;
    }
}

.poh-player-card, .poh-party-card, .poh-combat-feed {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}

.poh-player-card h3, .poh-party-card h3, .poh-combat-feed h3, .poh-right-col h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.poh-party-list {
    display: grid;
    gap: 6px;
}

.poh-party-row {
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background: rgba(10,10,14,0.35);
}

.poh-party-row strong {
    display: inline-block;
    margin-right: 8px;
}

.poh-party-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 8px;
}

.poh-party-row-head span {
    color: var(--muted);
    font-size: 11px;
}

.poh-party-row-feed {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}

.poh-combat-feed > div {
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
}

.poh-live-feed-list {
    display: grid;
    gap: 6px;
    max-height: 150px;
    overflow: auto;
}

.poh-live-feed-row {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
}

.poh-live-feed-row strong {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8fb8ff;
}

.poh-overlay-layer {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.62);
    display: grid;
    place-items: center;
}

.poh-overlay-layer img {
    max-width: min(86vw, 900px);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.poh-overlay-text {
    margin-top: 10px;
    color: #fff3e8;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lord-throne-ritual {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(170, 34, 34, 0.42);
    border-radius: 10px;
    background: radial-gradient(circle at 50% 20%, rgba(110, 20, 20, 0.35), rgba(10, 12, 20, 0.92));
}

.lord-throne-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lord-throne-head h3 {
    margin: 0;
}

.lord-throne-arena {
    position: relative;
    width: min(560px, 100%);
    aspect-ratio: 1 / 1;
    margin: 10px auto 8px;
    border-radius: 50%;
    border: 1px solid rgba(240, 95, 95, 0.28);
    background: radial-gradient(circle at center, rgba(155, 20, 20, 0.22), rgba(14, 16, 24, 0.92) 65%);
    overflow: hidden;
}

.lord-throne-slot {
    position: absolute;
    width: 98px;
    height: 98px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(215, 215, 215, 0.24);
    background: rgba(20, 22, 28, 0.86);
    color: #dde7ff;
}

.lord-throne-slot[data-lt-slot="1"] { top: 3%; left: 50%; transform: translate(-50%, 0); }
.lord-throne-slot[data-lt-slot="2"] { top: 16%; right: 9%; }
.lord-throne-slot[data-lt-slot="3"] { top: 50%; right: 2%; transform: translate(0, -50%); }
.lord-throne-slot[data-lt-slot="4"] { bottom: 16%; right: 9%; }
.lord-throne-slot[data-lt-slot="5"] { bottom: 3%; left: 50%; transform: translate(-50%, 0); }
.lord-throne-slot[data-lt-slot="6"] { bottom: 16%; left: 9%; }
.lord-throne-slot[data-lt-slot="7"] { top: 50%; left: 2%; transform: translate(0, -50%); }
.lord-throne-slot[data-lt-slot="8"] { top: 16%; left: 9%; }

.lord-throne-slot[data-lt-slot-dashboard="1"] { top: 3%; left: 50%; transform: translate(-50%, 0); }
.lord-throne-slot[data-lt-slot-dashboard="2"] { top: 16%; right: 9%; }
.lord-throne-slot[data-lt-slot-dashboard="3"] { top: 50%; right: 2%; transform: translate(0, -50%); }
.lord-throne-slot[data-lt-slot-dashboard="4"] { bottom: 16%; right: 9%; }
.lord-throne-slot[data-lt-slot-dashboard="5"] { bottom: 3%; left: 50%; transform: translate(-50%, 0); }
.lord-throne-slot[data-lt-slot-dashboard="6"] { bottom: 16%; left: 9%; }
.lord-throne-slot[data-lt-slot-dashboard="7"] { top: 50%; left: 2%; transform: translate(0, -50%); }
.lord-throne-slot[data-lt-slot-dashboard="8"] { top: 16%; left: 9%; }

.lord-throne-slot .lord-throne-slot-icon {
    width: 44px;
    height: 44px;
    border-radius: 7px;
}

.lord-throne-slot .lord-throne-slot-label {
    font-size: 10px;
    opacity: 0.85;
}

.lord-throne-slot .lord-throne-slot-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 14px rgba(170, 170, 170, 0.18);
    pointer-events: none;
}

.lord-throne-slot.filled {
    border-color: rgba(255, 162, 64, 0.82);
    box-shadow: 0 0 22px rgba(255, 125, 32, 0.4);
}

.lord-throne-slot.filled .lord-throne-slot-glow {
    box-shadow: inset 0 0 24px rgba(255, 129, 31, 0.45), 0 0 16px rgba(255, 129, 31, 0.28);
}

.lord-throne-slot.drop-hover {
    outline: 2px dashed rgba(255, 215, 145, 0.84);
    outline-offset: 2px;
}

.lord-throne-center-beam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 260px;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.95), rgba(255, 100, 100, 0.2));
    filter: blur(0.4px);
    animation: lordBeamPulse 0.8s infinite alternate;
}

.lord-throne-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.lord-throne-piece {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(132, 152, 186, 0.28);
    background: rgba(8, 14, 24, 0.8);
    color: #e6eeff;
}

.lord-throne-piece img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.lord-throne-piece strong {
    color: #ffcf8b;
}

.lord-throne-boss {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(240px, 45%);
    transform: translate(-50%, -50%);
    border-radius: 12px;
    border: 1px solid rgba(255, 189, 133, 0.45);
    box-shadow: 0 0 40px rgba(255, 77, 77, 0.4);
}

.lord-throne-whiteout {
    position: fixed;
    inset: 0;
    z-index: 3300;
    display: grid;
    place-items: center;
    color: #620f0f;
    background: rgba(255, 255, 255, 0.96);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lord-throne-fullscreen-whiteout {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(1px);
}

.lord-throne-fullscreen-text {
    color: #c80000;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: clamp(20px, 3vw, 42px);
    text-shadow: 0 0 16px rgba(180, 0, 0, 0.45);
    text-align: center;
    padding: 0 16px;
}

.lord-throne-splash {
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    z-index: 6;
    color: #ff2a2a;
    font-weight: 900;
    font-size: clamp(14px, 1.4vw, 24px);
    letter-spacing: 0.4px;
    text-align: center;
    text-shadow: 0 0 14px rgba(140, 0, 0, 0.7);
    background: rgba(20, 0, 0, 0.38);
    border: 1px solid rgba(255, 58, 58, 0.5);
    border-radius: 8px;
    padding: 8px 12px;
    max-width: min(92%, 820px);
}

body.lord-throne-shake-1 { animation: lordShake1 0.4s linear 4; }
body.lord-throne-shake-2 { animation: lordShake2 0.36s linear 5; }
body.lord-throne-shake-3 { animation: lordShake3 0.3s linear 7; }
body.lord-throne-shake-4 { animation: lordShake4 0.22s linear infinite; }

@keyframes lordBeamPulse {
    from { opacity: 0.55; box-shadow: 0 0 12px rgba(255, 255, 255, 0.5); }
    to { opacity: 1; box-shadow: 0 0 34px rgba(255, 140, 90, 0.75); }
}

@keyframes lordShake1 { 0% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px);} 50% { transform: translate(-1px, 1px);} 75% { transform: translate(1px, 1px);} 100% { transform: translate(0,0);} }
@keyframes lordShake2 { 0% { transform: translate(0, 0); } 25% { transform: translate(2px, -2px);} 50% { transform: translate(-2px, 2px);} 75% { transform: translate(2px, 2px);} 100% { transform: translate(0,0);} }
@keyframes lordShake3 { 0% { transform: translate(0, 0); } 25% { transform: translate(3px, -3px);} 50% { transform: translate(-3px, 3px);} 75% { transform: translate(3px, 2px);} 100% { transform: translate(0,0);} }
@keyframes lordShake4 { 0% { transform: translate(0, 0); } 20% { transform: translate(5px, -4px);} 40% { transform: translate(-5px, 4px);} 60% { transform: translate(4px, 5px);} 80% { transform: translate(-4px, -5px);} 100% { transform: translate(0,0);} }

.chip-btn-danger {
    border-color: rgba(220, 90, 90, 0.5);
    color: #ffd6d6;
}

.chip-btn-danger:hover {
    background: rgba(220, 90, 90, 0.2);
}

.character-delete-help {
    margin-bottom: 12px;
}

.character-recovery-block {
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}

.character-row-recovery {
    opacity: 0.9;
}

.character-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
}

.character-delete-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 14, 0.72);
    backdrop-filter: blur(3px);
}

.character-delete-modal-card {
    position: relative;
    width: min(520px, calc(100vw - 24px));
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(26, 30, 44, 0.96), rgba(16, 20, 32, 0.96));
    box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}

.character-delete-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.character-delete-modal-head h3 {
    margin: 0;
}

.character-delete-modal-card form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.character-delete-modal-card label span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}

.character-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.levelup-fl-splash {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: grid;
    place-items: center;
}

.levelup-fl-splash-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 208, 92, 0.18) 0%, rgba(8, 12, 22, 0.75) 55%, rgba(4, 7, 14, 0.92) 100%);
}

.levelup-fl-splash-card {
    position: relative;
    z-index: 1;
    width: min(560px, 92vw);
    border: 1px solid rgba(255, 224, 155, 0.6);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(41, 26, 7, 0.96) 0%, rgba(18, 13, 7, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 187, 61, 0.28);
    padding: 20px 22px;
    text-align: center;
}

.levelup-fl-splash-card strong {
    display: block;
    font-size: 24px;
    letter-spacing: 0.04em;
    color: #ffe6a3;
    margin-bottom: 8px;
}

.levelup-fl-splash-card p {
    margin: 0;
    color: #fff4d8;
    font-size: 17px;
}

.levelup-fl-splash-arrow {
    display: inline-block;
    margin-top: 12px;
    color: #ffd36c;
    font-weight: 700;
    letter-spacing: 0.06em;
    animation: levelupFlArrowPulse 0.8s ease-in-out infinite alternate;
}

.levelup-fl-target {
    position: relative;
    outline: 2px solid rgba(255, 205, 92, 0.95);
    box-shadow: 0 0 20px rgba(255, 184, 51, 0.75);
    border-radius: 10px;
}

.levelup-fl-target::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffcf67;
}

@keyframes levelupFlArrowPulse {
    from { transform: translateX(0); opacity: 0.75; }
    to { transform: translateX(8px); opacity: 1; }
}

/* Keep desktop inventory skin even on narrow desktop windows.
   Mobile inventory conversion should only happen in app mobile mode. */
@media (max-width: 1080px) {
    body:not(.mobile-app)[data-page="inventory"] .mobile-inventory-tabs {
        display: none !important;
    }

    body:not(.mobile-app)[data-page="inventory"] .inventory-hub,
    body:not(.mobile-app)[data-page="inventory"] [data-mobile-inventory-hub] {
        display: grid !important;
        grid-template-columns: 556px 609px !important;
        gap: 14px !important;
        align-items: start !important;
        justify-content: start !important;
    }

    body:not(.mobile-app)[data-page="inventory"] .inventory-shell {
        position: relative !important;
        width: 609px !important;
        max-width: 609px !important;
        height: 569px !important;
        margin: 12px 0 0 !important;
        padding: 0 !important;
        display: block !important;
        background: url("ui/Inventory.png") top left / 609px 569px no-repeat !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body:not(.mobile-app)[data-page="inventory"] .inventory-main-frame,
    body:not(.mobile-app)[data-page="inventory"] .inventory-equip-frame,
    body:not(.mobile-app)[data-page="inventory"] .bag-tabs,
    body:not(.mobile-app)[data-page="inventory"] .bag-grid,
    body:not(.mobile-app)[data-page="inventory"] .inventory-footer-strip,
    body:not(.mobile-app)[data-page="inventory"] .inventory-money-line,
    body:not(.mobile-app)[data-page="inventory"] .inventory-sort-form-main,
    body:not(.mobile-app)[data-page="inventory"] .inventory-destroy-form-main {
        position: absolute !important;
    }
}
