:root {
    color-scheme: dark;
    --bg: #101113;
    --panel: rgba(24, 24, 25, 0.94);
    --panel-2: rgba(36, 35, 34, 0.82);
    --line: rgba(232, 195, 113, 0.22);
    --line-strong: rgba(232, 195, 113, 0.44);
    --text: #f1eadb;
    --muted: #b8ad9a;
    --soft: #857766;
    --gold: #e8c371;
    --gold-2: #fff0b7;
    --red: #d76455;
    --green: #8bd18d;
    --steel: #8fb2c7;
    --violet: #b79bff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    --font-ui: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    --font-display: "Cinzel", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #030303;
    scrollbar-color: rgba(232, 195, 113, 0.58) rgba(4, 4, 4, 0.88);
    scrollbar-width: thin;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.38), rgba(8, 8, 8, 0.82) 42%, rgba(7, 8, 9, 0.92) 100%),
        linear-gradient(90deg, rgba(38, 15, 8, 0.28), transparent 36%, transparent 64%, rgba(38, 15, 8, 0.32)),
        url("../images/logo_mare.png") top 18px right 24px / min(26vw, 360px) auto no-repeat,
        url("../images/bg.png") center top / cover no-repeat,
        #101113;
    background-position:
        center top,
        center top,
        right 24px top 18px,
        center var(--bg-shift, 0px);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 500;
    overflow-x: hidden;
}

img,
canvas,
.icon-frame,
.modal-item-icon,
.map-preview,
.map-card-visual,
.guide-slider,
.system-gallery {
    -webkit-user-drag: none;
    user-select: none;
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(232, 195, 113, 0.08), transparent 18%, transparent 82%, rgba(215, 100, 85, 0.08)),
        rgba(4, 4, 4, 0.9);
    border-left: 1px solid rgba(232, 195, 113, 0.14);
}

::-webkit-scrollbar-thumb {
    min-height: 72px;
    border: 3px solid rgba(4, 4, 4, 0.9);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 240, 183, 0.96), rgba(232, 195, 113, 0.76) 42%, rgba(129, 66, 39, 0.86));
    box-shadow:
        inset 0 0 0 1px rgba(255, 240, 183, 0.22),
        0 0 14px rgba(232, 195, 113, 0.24);
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(255, 246, 204, 1), rgba(232, 195, 113, 0.92) 48%, rgba(177, 88, 50, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 240, 183, 0.34),
        0 0 18px rgba(232, 195, 113, 0.38);
}

::-webkit-scrollbar-corner {
    background: #040404;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 112%, rgba(0, 0, 0, 0.34), transparent 52%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.36) 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(232, 195, 113, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 195, 113, 0.02) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 240, 183, 0.16) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(215, 100, 85, 0.1) 0 1px, transparent 1.5px);
    background-size: 48px 48px, 48px 48px, 140px 140px, 210px 210px;
    background-position:
        0 0,
        0 0,
        0 0,
        54px 0;
    opacity: 0.18;
    mix-blend-mode: screen;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(232, 195, 113, 0.08), transparent);
}

.scroll-progress span {
    display: block;
    width: var(--scroll-progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, rgba(232, 195, 113, 0), var(--gold), var(--red));
    box-shadow: 0 0 16px rgba(232, 195, 113, 0.42);
}

.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.78;
    mix-blend-mode: screen;
}

.ambient-spark {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(255, 230, 146, 0.86);
    box-shadow: 0 0 8px rgba(232, 195, 113, 0.52), 0 0 18px rgba(215, 100, 85, 0.18);
    animation: sparkDrift var(--speed) linear infinite, sparkFlicker 1900ms ease-in-out infinite;
    animation-delay: var(--delay);
}

.ambient-spark-gold {
    background: rgba(255, 235, 160, 0.92);
    box-shadow: 0 0 7px rgba(255, 240, 183, 0.58), 0 0 18px rgba(232, 195, 113, 0.26);
}

.ambient-spark-ember {
    background: rgba(255, 129, 81, 0.86);
    box-shadow: 0 0 8px rgba(215, 100, 85, 0.55), 0 0 22px rgba(215, 100, 85, 0.2);
}

.ambient-spark-ash {
    background: rgba(184, 173, 154, 0.42);
    box-shadow: 0 0 8px rgba(184, 173, 154, 0.16);
    opacity: 0.42;
}

.ambient-spark-rune {
    border-radius: 0;
    border: 1px solid rgba(255, 240, 183, 0.42);
    background:
        linear-gradient(45deg, transparent 42%, rgba(255, 240, 183, 0.78) 42% 58%, transparent 58%),
        rgba(232, 195, 113, 0.08);
    box-shadow: 0 0 10px rgba(232, 195, 113, 0.34);
    transform-origin: center;
    animation: runeDrift var(--speed) linear infinite, runeFlicker 2400ms ease-in-out infinite;
    animation-delay: var(--delay);
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

.topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(35, 18, 12, 0.86), rgba(16, 15, 13, 0.76) 46%, rgba(24, 22, 19, 0.82)),
        rgba(16, 15, 13, 0.76);
    box-shadow: var(--shadow);
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 195, 113, 0.72), transparent);
    opacity: 0.72;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, transparent 36%, rgba(255, 240, 183, 0.12) 48%, transparent 60%, transparent 100%);
    transform: translateX(-120%);
    animation: headerSweep 6800ms ease-in-out infinite;
    pointer-events: none;
}

.wiki-footer {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    align-self: center;
    width: calc(100vw - 32px);
    min-height: 154px;
    margin: 28px 0 0;
    padding: 30px 34px;
    border: 1px solid rgba(232, 195, 113, 0.26);
    border-bottom-color: rgba(232, 195, 113, 0.16);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(232, 195, 113, 0.11), transparent 1px),
        radial-gradient(circle at 13% 18%, rgba(232, 195, 113, 0.16), transparent 34%),
        radial-gradient(circle at 82% 0, rgba(215, 100, 85, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(30, 22, 14, 0.96), rgba(8, 8, 7, 0.98) 74%, rgba(3, 3, 3, 1)),
        rgba(3, 3, 3, 0.98);
    box-shadow:
        0 -18px 52px rgba(0, 0, 0, 0.42),
        0 24px 60px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 240, 183, 0.08),
        inset 0 -28px 48px rgba(0, 0, 0, 0.54);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.52) 18px, #000 76px, #000 calc(100% - 76px), rgba(0, 0, 0, 0.52) calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.52) 18px, #000 76px, #000 calc(100% - 76px), rgba(0, 0, 0, 0.52) calc(100% - 18px), transparent 100%);
}

.wiki-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 22%, transparent 74%, rgba(0, 0, 0, 0.52)),
        linear-gradient(180deg, rgba(255, 240, 183, 0.04), transparent 36%, rgba(0, 0, 0, 0.72)),
        radial-gradient(circle at 78% 48%, rgba(139, 209, 141, 0.08), transparent 34%);
    opacity: 0.9;
}

.wiki-footer::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 195, 113, 0.86), rgba(255, 240, 183, 0.42), transparent);
    box-shadow: 0 0 22px rgba(232, 195, 113, 0.28);
}

.wiki-footer > * {
    position: relative;
    z-index: 1;
}

.wiki-footer-mark {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 290px;
}

.wiki-footer-mark img {
    width: 122px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 0 15px rgba(232, 195, 113, 0.32))
        drop-shadow(0 0 28px rgba(215, 100, 85, 0.16));
}

.wiki-footer-mark strong,
.wiki-footer-links a {
    font-family: var(--font-display);
    font-weight: 900;
}

.wiki-footer-mark strong {
    display: block;
    color: var(--text);
    text-transform: uppercase;
    font-size: 17px;
}

.wiki-footer-mark small {
    display: block;
    margin-top: 2px;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.wiki-footer-copy {
    display: grid;
    gap: 7px;
    justify-items: end;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
    text-align: right;
}

.wiki-footer-copy p {
    margin: 0;
}

.wiki-footer-links,
.wiki-footer-support {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px 10px;
    align-items: center;
}

.wiki-footer-links a,
.wiki-footer-support a {
    color: var(--steel);
    text-decoration: none;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.wiki-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
}

.wiki-footer-links a:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 13px;
    background: rgba(232, 195, 113, 0.3);
}

.wiki-footer-links a:hover,
.wiki-footer-support a:hover {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(232, 195, 113, 0.34);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 146px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 14px rgba(232, 195, 113, 0.3));
    transform-origin: left center;
    transition: transform 180ms ease, filter 180ms ease;
}

.brand:hover img {
    filter: drop-shadow(0 0 20px rgba(232, 195, 113, 0.42));
    transform: scale(1.02);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 0 14px rgba(232, 195, 113, 0.22);
}

.brand small {
    color: var(--gold);
    margin-top: 2px;
    font-family: var(--font-display);
    font-weight: 700;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.top-actions a,
.top-actions button,
.nav-pill,
.inline-pager button,
.pager button,
.search-box button,
.chip-button {
    min-height: 38px;
    border: 1px solid var(--line);
    background: rgba(26, 23, 20, 0.88);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.top-actions a,
.top-actions button {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
}

.top-actions a:hover,
.top-actions button:hover,
.nav-pill:hover,
.inline-pager button:hover,
.pager button:hover,
.search-box button:hover,
.chip-button:hover {
    border-color: var(--line-strong);
    background: rgba(54, 45, 33, 0.9);
}

.vnum-toggle {
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 800;
}

.vnum-toggle em {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 20px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    color: var(--muted);
    background: rgba(0, 0, 0, 0.34);
    font-style: normal;
    font-size: 11px;
}

.vnum-toggle.is-active {
    border-color: rgba(136, 212, 176, 0.42);
    background: rgba(18, 45, 30, 0.74);
}

.vnum-toggle.is-active em {
    border-color: rgba(136, 212, 176, 0.46);
    color: var(--green);
    background: rgba(7, 28, 18, 0.82);
}

.feedback-toggle {
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--gold-2);
    background:
        linear-gradient(135deg, rgba(136, 212, 176, 0.14), transparent 50%),
        rgba(18, 24, 18, 0.86);
}

.feedback-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 1px solid rgba(139, 209, 141, 0.62);
    background:
        radial-gradient(circle at 50% 38%, rgba(139, 209, 141, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle at 35% 42%, rgba(255, 240, 183, 0.95) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 65% 42%, rgba(255, 240, 183, 0.95) 0 1.5px, transparent 2.5px);
    box-shadow: 0 0 14px rgba(139, 209, 141, 0.18);
}

.wiki-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
    flex: 1 0 auto;
}

.sidebar,
.content-panel {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(31, 29, 27, 0.88), rgba(17, 17, 18, 0.94)),
        var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.sidebar::before,
.content-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 195, 113, 0.08), transparent 28%),
        radial-gradient(circle at 100% 24%, rgba(215, 100, 85, 0.06), transparent 32%);
    pointer-events: none;
}

.sidebar > *,
.content-panel > * {
    position: relative;
    z-index: 1;
}

.sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    padding: 14px;
}

.sidebar-title {
    color: var(--muted);
    text-transform: uppercase;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 1.5px;
    margin: 2px 2px 12px;
}

.nav-pill {
    width: 100%;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 11px 0 7px;
    text-align: left;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-pill.is-active {
    border-color: rgba(232, 195, 113, 0.72);
    color: var(--gold-2);
    background: linear-gradient(180deg, rgba(101, 76, 37, 0.56), rgba(42, 32, 22, 0.94));
}

.nav-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 2px solid transparent;
    pointer-events: none;
    transition: border-color 160ms ease;
}

.nav-pill:hover::after,
.nav-pill.is-active::after {
    border-color: var(--gold);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-2);
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(232, 195, 113, 0.12));
}

.nav-pill:hover .nav-icon,
.nav-pill.is-active .nav-icon {
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(232, 195, 113, 0.42));
}

.content-panel {
    min-height: 760px;
    padding: 18px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    align-items: end;
    gap: 16px;
    padding: 8px 4px 18px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(232, 195, 113, 0.18);
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    position: relative;
}

.search-box::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(232, 195, 113, 0.54);
    border-radius: 50%;
    transform: translateY(-56%);
    pointer-events: none;
}

.search-box::after {
    content: "";
    position: absolute;
    left: 25px;
    top: calc(50% + 8px);
    width: 8px;
    height: 2px;
    background: rgba(232, 195, 113, 0.54);
    transform: rotate(45deg);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    background: rgba(11, 10, 9, 0.86);
    color: var(--text);
    padding: 0 12px 0 38px;
    outline: none;
    font-weight: 500;
}

.search-box input:focus {
    border-color: rgba(232, 195, 113, 0.68);
    box-shadow: 0 0 0 3px rgba(232, 195, 113, 0.11), 0 0 24px rgba(232, 195, 113, 0.08);
}

.search-box button {
    width: 42px;
    padding: 0;
}

.search-box .search-filter-btn {
    position: relative;
    width: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--gold-2);
    overflow: visible;
}

.search-filter-icon {
    width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    filter: drop-shadow(0 0 7px rgba(232, 195, 113, 0.22));
}

.search-filter-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-filter-icon circle {
    fill: rgba(232, 195, 113, 0.16);
}

.search-filter-btn em {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    min-height: 18px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(139, 209, 141, 0.32);
    border-radius: 999px;
    background: rgba(6, 23, 14, 0.82);
    color: var(--green);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    box-shadow: 0 0 12px rgba(139, 209, 141, 0.2);
}

.search-filter-btn.is-active {
    border-color: rgba(232, 195, 113, 0.62);
    background:
        radial-gradient(circle at 50% 0, rgba(232, 195, 113, 0.16), transparent 60%),
        rgba(35, 28, 18, 0.9);
    box-shadow: 0 0 20px rgba(232, 195, 113, 0.12);
}

.advanced-search-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: -4px 4px 14px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        radial-gradient(circle at 0 0, rgba(232, 195, 113, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(25, 22, 17, 0.9), rgba(8, 9, 8, 0.88));
    box-shadow:
        inset 0 0 22px rgba(232, 195, 113, 0.035),
        0 14px 34px rgba(0, 0, 0, 0.26);
    animation: cardIn 180ms ease both;
}

.advanced-search-panel[hidden] {
    display: none;
}

.advanced-search-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    min-width: 230px;
}

.advanced-search-head > span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.26);
    background: rgba(0, 0, 0, 0.28);
    color: var(--gold-2);
}

.advanced-search-head svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advanced-search-head strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
}

.advanced-search-head small {
    color: var(--muted);
    font-size: 12px;
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.advanced-search-field {
    display: grid;
    gap: 6px;
}

.advanced-search-field span {
    color: var(--soft);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.advanced-search-field select {
    min-height: 36px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(6, 6, 6, 0.76);
    color: var(--text);
    padding: 0 10px;
    outline: none;
}

.advanced-search-field select:focus {
    border-color: rgba(232, 195, 113, 0.62);
    box-shadow: 0 0 0 3px rgba(232, 195, 113, 0.09);
}

.advanced-search-actions {
    display: flex;
    gap: 8px;
}

.advanced-search-actions button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(16, 14, 12, 0.84);
    color: var(--gold-2);
    cursor: pointer;
    padding: 0 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.advanced-search-actions button:hover {
    border-color: rgba(232, 195, 113, 0.58);
    background: linear-gradient(180deg, rgba(101, 76, 37, 0.42), rgba(28, 22, 16, 0.9));
    transform: translateY(-1px);
}

.advanced-search-actions svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.result-info {
    min-height: 24px;
    color: var(--muted);
    margin: 8px 2px 14px;
    font-size: 14px;
}

.wiki-content {
    display: grid;
    gap: 12px;
}

.overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 14px;
    min-height: 360px;
    padding: 18px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        linear-gradient(90deg, rgba(13, 12, 11, 0.42), rgba(13, 12, 11, 0.8) 58%, rgba(13, 12, 11, 0.92)),
        url("../images/bg.png") center 32% / cover no-repeat,
        rgba(7, 7, 7, 0.32);
    position: relative;
    overflow: hidden;
    animation: cardIn 240ms ease both;
}

.overview-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.36)),
        linear-gradient(90deg, rgba(232, 195, 113, 0.1), transparent 30%, transparent 72%, rgba(215, 100, 85, 0.12));
    pointer-events: none;
}

.overview-hero-copy,
.overview-kingdoms {
    position: relative;
    z-index: 1;
}

.overview-hero-copy {
    align-self: end;
    display: grid;
    gap: 12px;
}

.overview-hero h2 {
    max-width: 760px;
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    text-shadow: 0 0 28px rgba(232, 195, 113, 0.18), 0 2px 16px rgba(0, 0, 0, 0.55);
}

.story-rotator {
    min-height: 166px;
    position: relative;
    max-width: 780px;
}

.story-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 360ms ease, transform 360ms ease;
    pointer-events: none;
}

.story-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.story-index {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.32);
    background: rgba(6, 6, 6, 0.58);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
}

.story-slide strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.15;
}

.story-slide p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin: 8px 0 0;
    max-width: 700px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
}

.story-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.story-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    background: rgba(232, 195, 113, 0.22);
    cursor: pointer;
    transition: width 160ms ease, background 160ms ease;
}

.story-dots button.is-active {
    width: 52px;
    background: var(--gold);
}

.story-open-btn {
    width: fit-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid rgba(232, 195, 113, 0.32);
    background:
        linear-gradient(180deg, rgba(74, 52, 24, 0.72), rgba(17, 14, 11, 0.72)),
        rgba(7, 7, 7, 0.32);
    color: var(--gold-2);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.story-open-btn:hover {
    border-color: rgba(255, 240, 183, 0.62);
    box-shadow: 0 0 24px rgba(232, 195, 113, 0.14);
    transform: translateY(-1px);
}

.story-open-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-kingdoms {
    align-self: stretch;
    display: grid;
    gap: 10px;
}

.overview-kingdoms article {
    display: grid;
    align-content: center;
    min-height: 96px;
    padding: 13px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        linear-gradient(180deg, rgba(29, 23, 17, 0.76), rgba(7, 7, 7, 0.46)),
        rgba(7, 7, 7, 0.28);
    backdrop-filter: blur(2px);
}

.overview-kingdoms span {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.overview-kingdoms strong {
    display: block;
    margin-top: 4px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 17px;
}

.overview-kingdoms p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.portal-card {
    min-width: 0;
    min-height: 112px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        linear-gradient(180deg, rgba(31, 27, 22, 0.82), rgba(9, 9, 9, 0.54)),
        rgba(7, 7, 7, 0.26);
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.portal-card::before,
.card::before,
.mini-item::before,
.related-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(255, 240, 183, 0.2) 48%, transparent 58%, transparent 100%);
    opacity: 0;
    transform: translateX(-120%);
    pointer-events: none;
}

.portal-card:hover::before,
.card:hover::before,
.mini-item:hover::before,
.related-card:hover::before {
    animation: lightSweep 720ms ease both;
}

.portal-card:hover {
    border-color: rgba(232, 195, 113, 0.46);
    background:
        linear-gradient(180deg, rgba(60, 45, 24, 0.74), rgba(13, 12, 11, 0.7)),
        rgba(7, 7, 7, 0.3);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.portal-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.22);
    background: rgba(6, 6, 6, 0.52);
    color: var(--gold-2);
    transition: color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.portal-card:hover .portal-icon {
    border-color: rgba(255, 240, 183, 0.48);
    color: var(--gold);
    box-shadow: inset 0 0 18px rgba(232, 195, 113, 0.1), 0 0 18px rgba(232, 195, 113, 0.14);
}

.portal-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-card span:nth-child(2),
.portal-card strong,
.portal-card small {
    min-width: 0;
    display: block;
}

.portal-card strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 17px;
}

.portal-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.portal-card em {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(7, 7, 7, 0.36);
    color: var(--gold);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.guide-welcome-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1192 / 150;
    margin: 0 0 14px;
    border: 1px solid rgba(232, 195, 113, 0.28);
    background: rgba(7, 7, 7, 0.74);
    overflow: hidden;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.32),
        inset 0 0 38px rgba(232, 195, 113, 0.08);
    animation: cardIn 260ms ease both;
}

.guide-welcome-banner::before,
.guide-welcome-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.guide-welcome-banner::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.54)),
        linear-gradient(180deg, rgba(255, 233, 175, 0.08), transparent 30%, rgba(0, 0, 0, 0.36));
}

.guide-welcome-banner::after {
    inset: auto 18px 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 195, 113, 0.56), transparent);
    opacity: 0.72;
}

.guide-welcome-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(232, 195, 113, 0.22);
    background:
        linear-gradient(100deg, rgba(13, 12, 11, 0.78), rgba(28, 22, 16, 0.72), rgba(7, 7, 7, 0.9)),
        url("../images/bg.png") center 42% / cover no-repeat;
    position: relative;
    overflow: hidden;
    animation: cardIn 240ms ease both;
}

.guide-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(232, 195, 113, 0.14), transparent 30%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
    pointer-events: none;
}

.guide-hero > * {
    position: relative;
    z-index: 1;
}

.guide-hero h2 {
    max-width: 760px;
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 0.98;
}

.guide-hero p {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.55;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.guide-rule-card {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(232, 195, 113, 0.22);
    background: linear-gradient(180deg, rgba(37, 29, 20, 0.78), rgba(6, 6, 6, 0.52));
}

.guide-rule-card > span,
.class-guide-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(143, 223, 163, 0.34);
    background: rgba(10, 28, 16, 0.52);
    color: #bff5c8;
}

.guide-rule-card svg,
.class-guide-icon svg,
.guide-mob-token svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guide-rule-card strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 20px;
}

.guide-rule-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.guide-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(18, 15, 12, 0.74);
}

.guide-quick-nav button {
    min-height: 48px;
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(6, 6, 6, 0.42);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.guide-quick-nav button:hover {
    border-color: rgba(232, 195, 113, 0.48);
    background: linear-gradient(180deg, rgba(72, 52, 23, 0.44), rgba(8, 8, 8, 0.58));
    transform: translateY(-1px);
}

.guide-quick-nav strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 18px;
}

.guide-quick-nav span {
    color: var(--muted);
    font-size: 12px;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 14px;
    align-items: start;
}

.guide-main-panel {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.guide-subnav {
    position: sticky;
    top: 14px;
    display: grid;
    gap: 12px;
}

.guide-subnav-card {
    padding: 14px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        linear-gradient(180deg, rgba(40, 31, 22, 0.82), rgba(7, 7, 7, 0.68)),
        rgba(10, 10, 10, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 232, 174, 0.05), 0 16px 38px rgba(0, 0, 0, 0.24);
}

.guide-subnav-card h3 {
    margin: 2px 0 12px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 22px;
}

.guide-subnav-list {
    display: grid;
    gap: 8px;
}

.guide-subnav-list button,
.guide-home-card,
.guide-race-tabs button {
    min-width: 0;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(6, 6, 6, 0.48);
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.guide-subnav-list button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 10px;
    text-align: left;
}

.guide-subnav-list button:hover,
.guide-subnav-list button.is-active,
.guide-home-card:hover,
.guide-race-tabs button:hover,
.guide-race-tabs button.is-active {
    border-color: rgba(232, 195, 113, 0.58);
    background: linear-gradient(180deg, rgba(82, 59, 25, 0.56), rgba(10, 10, 10, 0.64));
    box-shadow: inset 0 0 18px rgba(232, 195, 113, 0.06);
    transform: translateY(-1px);
}

.guide-subnav-list button > span,
.guide-home-card > span,
.guide-race-tabs button svg {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(143, 223, 163, 0.32);
    background: rgba(7, 24, 14, 0.52);
    color: #bff5c8;
}

.guide-subnav-list svg,
.guide-home-card svg,
.guide-race-tabs svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.guide-subnav-list strong,
.guide-home-card strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 17px;
}

.guide-subnav-list small,
.guide-home-card small {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.guide-subnav-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.guide-subnav-note > span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 8px;
    border: 1px solid rgba(232, 195, 113, 0.24);
    color: var(--gold);
}

.guide-subnav-note svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.guide-subnav-note strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.guide-subnav-note p,
.guide-section-copy {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.guide-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.guide-home-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    padding: 13px;
    text-align: left;
}

.class-guide-section,
.guide-chapter {
    padding: 16px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        linear-gradient(180deg, rgba(31, 27, 22, 0.78), rgba(8, 8, 8, 0.62)),
        rgba(7, 7, 7, 0.3);
    animation: cardIn 240ms ease both;
}

.apprentice-guide-section {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        radial-gradient(circle at 18% 0%, rgba(232, 195, 113, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(35, 27, 18, 0.82), rgba(9, 13, 10, 0.72)),
        rgba(7, 7, 7, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 232, 174, 0.05), 0 22px 54px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    animation: cardIn 240ms ease both;
}

.apprentice-guide-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(232, 195, 113, 0.08), transparent 18%, transparent 82%, rgba(143, 223, 163, 0.07)),
        radial-gradient(circle at 88% 18%, rgba(143, 223, 163, 0.1), transparent 28%);
    pointer-events: none;
}

.apprentice-guide-section > * {
    position: relative;
    z-index: 1;
}

.apprentice-intro {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(143, 223, 163, 0.2);
    background: rgba(8, 20, 12, 0.42);
}

.apprentice-intro > span,
.apprentice-stage-head em {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(143, 223, 163, 0.34);
    background: rgba(6, 20, 12, 0.58);
    color: #bff5c8;
}

.apprentice-intro svg,
.apprentice-stage-head em svg,
.apprentice-next svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apprentice-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.apprentice-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.apprentice-stage {
    min-width: 0;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: linear-gradient(180deg, rgba(22, 18, 14, 0.84), rgba(6, 6, 6, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 232, 174, 0.04);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.apprentice-stage:hover {
    border-color: rgba(232, 195, 113, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(143, 223, 163, 0.08);
}

.apprentice-stage-head {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid rgba(232, 195, 113, 0.12);
    background: linear-gradient(90deg, rgba(232, 195, 113, 0.08), transparent);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.apprentice-step {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.28);
    background: rgba(6, 6, 6, 0.54);
    color: #8ee5a4;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
}

.apprentice-stage-title {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.apprentice-stage-title strong {
    min-width: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apprentice-stage-title small {
    color: var(--muted);
    font-size: 12px;
}

.apprentice-stage-head .item-icon {
    width: 42px;
    height: 42px;
}

.apprentice-stage-head em {
    width: 34px;
    height: 34px;
}

.apprentice-stage-head em svg {
    width: 17px;
    height: 17px;
}

.apprentice-stage-body {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.apprentice-stage-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.apprentice-next {
    display: grid;
    grid-template-columns: 28px auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(143, 223, 163, 0.2);
    background: rgba(7, 22, 13, 0.45);
}

.apprentice-next span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: #9ff0b5;
}

.apprentice-next strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
}

.apprentice-next button {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apprentice-reward-list {
    display: grid;
    gap: 6px;
}

.apprentice-reward {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 6px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(3, 3, 3, 0.36);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.apprentice-reward:hover,
.apprentice-reward.is-next {
    border-color: rgba(143, 223, 163, 0.32);
    background: rgba(9, 24, 14, 0.46);
}

.apprentice-reward .item-icon {
    width: 34px;
    height: 34px;
}

.apprentice-reward span {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.apprentice-reward strong {
    min-width: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apprentice-reward small {
    color: var(--muted);
    font-size: 12px;
}

.inventory-guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        radial-gradient(circle at 12% 18%, rgba(143, 223, 163, 0.12), transparent 30%),
        linear-gradient(125deg, rgba(28, 23, 18, 0.86), rgba(8, 8, 8, 0.7)),
        rgba(7, 7, 7, 0.36);
    animation: cardIn 240ms ease both;
}

.inventory-guide-hero h2 {
    max-width: 780px;
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.inventory-guide-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.safebox-guide-hero {
    background:
        radial-gradient(circle at 14% 20%, rgba(232, 195, 113, 0.12), transparent 28%),
        radial-gradient(circle at 86% 72%, rgba(143, 223, 163, 0.1), transparent 32%),
        linear-gradient(125deg, rgba(35, 26, 17, 0.88), rgba(8, 8, 8, 0.72)),
        rgba(7, 7, 7, 0.38);
}

.safebox-guide-hero strong {
    color: #ffe8a3;
    font-family: var(--font-display);
}

.offlineshop-guide-hero {
    background:
        radial-gradient(circle at 16% 18%, rgba(232, 195, 113, 0.16), transparent 30%),
        radial-gradient(circle at 88% 30%, rgba(245, 142, 65, 0.12), transparent 34%),
        radial-gradient(circle at 66% 86%, rgba(143, 223, 163, 0.08), transparent 30%),
        linear-gradient(125deg, rgba(41, 28, 16, 0.9), rgba(7, 7, 7, 0.72)),
        rgba(7, 7, 7, 0.4);
}

.offlineshop-guide-hero strong {
    color: #ffe8a3;
    font-family: var(--font-display);
}

.inventory-guide-limits {
    display: grid;
    gap: 8px;
}

.inventory-guide-limits div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(6, 6, 6, 0.42);
}

.inventory-guide-limits strong {
    color: #8ee5a4;
    font-family: var(--font-display);
    font-size: 18px;
}

.inventory-guide-limits span {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 15px;
}

.inventory-guide-limits small {
    grid-column: 1 / -1;
    color: var(--muted);
    line-height: 1.35;
}

.inventory-flow-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(18, 15, 12, 0.72);
}

.inventory-flow-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(5, 5, 5, 0.42);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
}

.inventory-flow-strip svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.inventory-preview-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        radial-gradient(circle at 78% 18%, rgba(232, 195, 113, 0.1), transparent 26%),
        linear-gradient(135deg, rgba(34, 25, 17, 0.78), rgba(4, 5, 4, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 232, 174, 0.04);
}

.inventory-preview-copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 10px;
}

.inventory-preview-copy h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1;
}

.inventory-preview-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.inventory-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.inventory-preview-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(5, 5, 5, 0.45);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
}

.inventory-preview-tags svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.inventory-preview-frame {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.66)),
        rgba(8, 8, 8, 0.5);
}

.inventory-preview-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 230, 160, 0.1),
        inset 0 -80px 90px rgba(0, 0, 0, 0.48);
}

.inventory-preview-frame img {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: contain;
}

.safebox-preview-frame img {
    max-height: 860px;
}

.offlineshop-preview-panel {
    background:
        radial-gradient(circle at 18% 22%, rgba(232, 195, 113, 0.12), transparent 28%),
        radial-gradient(circle at 88% 74%, rgba(245, 142, 65, 0.1), transparent 32%),
        linear-gradient(135deg, rgba(38, 25, 14, 0.82), rgba(4, 5, 4, 0.66));
}

.offlineshop-preview-frame img {
    max-height: 860px;
}

.safebox-note-panel {
    background:
        radial-gradient(circle at 12% 10%, rgba(232, 195, 113, 0.08), transparent 28%),
        rgba(8, 8, 8, 0.4);
}

.offlineshop-note-panel {
    background:
        radial-gradient(circle at 14% 10%, rgba(245, 142, 65, 0.08), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(143, 223, 163, 0.06), transparent 28%),
        rgba(8, 8, 8, 0.42);
}

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

.inventory-guide-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        linear-gradient(180deg, rgba(30, 24, 18, 0.78), rgba(6, 6, 6, 0.58)),
        rgba(7, 7, 7, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 232, 174, 0.04);
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.inventory-guide-card:hover {
    border-color: rgba(232, 195, 113, 0.42);
    background:
        radial-gradient(circle at 86% 12%, rgba(143, 223, 163, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(44, 34, 23, 0.82), rgba(6, 6, 6, 0.62));
    transform: translateY(-1px);
}

.inventory-guide-card-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.inventory-guide-card h2 {
    margin: 2px 0 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 22px;
}

.inventory-guide-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.48;
}

.inventory-guide-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.inventory-guide-card li {
    position: relative;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.42;
}

.inventory-guide-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(143, 223, 163, 0.7);
    background: rgba(143, 223, 163, 0.18);
    transform: rotate(45deg);
}

.inventory-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.inventory-tips-grid article {
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(6, 6, 6, 0.38);
}

.inventory-tips-grid strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.inventory-tips-grid p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.class-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.class-guide-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(6, 6, 6, 0.42);
}

.class-guide-card strong {
    align-self: end;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.class-guide-card em {
    grid-column: 2;
    color: #9fe9b1;
    font-style: normal;
    font-weight: 800;
}

.class-guide-card p {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.guide-advice-hero {
    background:
        radial-gradient(circle at 18% 8%, rgba(143, 223, 163, 0.12), transparent 34%),
        linear-gradient(110deg, rgba(29, 24, 18, 0.86), rgba(9, 11, 9, 0.72)),
        url("../images/bg.png") center 44% / cover no-repeat;
}

.guide-gear-hero {
    background:
        radial-gradient(circle at 18% 8%, rgba(232, 195, 113, 0.16), transparent 34%),
        linear-gradient(110deg, rgba(31, 24, 15, 0.88), rgba(9, 9, 9, 0.76)),
        url("../images/bg.png") center 50% / cover no-repeat;
}

.guide-upgrade-hero {
    background:
        radial-gradient(circle at 18% 8%, rgba(143, 206, 239, 0.12), transparent 34%),
        linear-gradient(110deg, rgba(25, 23, 18, 0.9), rgba(7, 7, 7, 0.78)),
        url("../images/bg.png") center 58% / cover no-repeat;
}

.guide-advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.guide-advice-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background:
        radial-gradient(circle at 10% 0%, rgba(232, 195, 113, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(17, 15, 12, 0.78), rgba(6, 6, 6, 0.68));
    animation: cardIn 220ms ease both;
}

.guide-advice-card strong,
.guide-stage-card h2 {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.05;
}

.guide-advice-card em {
    display: block;
    margin-top: 3px;
    color: #9fe9b1;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.guide-advice-card p,
.guide-advice-card ul {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.guide-advice-card ul {
    padding-left: 18px;
}

.guide-advice-card li + li {
    margin-top: 4px;
}

.guide-bonus-grid .guide-advice-card {
    border-color: rgba(143, 223, 163, 0.16);
    background:
        radial-gradient(circle at 10% 0%, rgba(143, 223, 163, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(14, 20, 14, 0.76), rgba(6, 6, 6, 0.68));
}

.guide-bonuses-hero {
    background:
        radial-gradient(circle at 82% 14%, rgba(143, 223, 163, 0.13), transparent 30%),
        radial-gradient(circle at 18% 8%, rgba(232, 195, 113, 0.15), transparent 34%),
        linear-gradient(110deg, rgba(31, 25, 17, 0.9), rgba(8, 13, 9, 0.78)),
        url("../images/bg.png") center 52% / cover no-repeat;
}

.guide-bonus-flow {
    margin: 12px 0;
}

.guide-bonus-section {
    overflow: hidden;
}

.guide-bonus-category {
    padding: 12px;
    border: 1px solid rgba(143, 223, 163, 0.13);
    background:
        linear-gradient(90deg, rgba(11, 24, 14, 0.38), rgba(0, 0, 0, 0.16)),
        rgba(0, 0, 0, 0.2);
}

.guide-bonus-category + .guide-bonus-category {
    margin-top: 12px;
}

.guide-bonus-category-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(232, 195, 113, 0.12);
}

.guide-bonus-category-head h3 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.05;
}

.guide-bonus-category-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.guide-bonus-database {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.guide-bonus-card {
    position: relative;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        radial-gradient(circle at 92% 12%, rgba(143, 223, 163, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(18, 17, 13, 0.82), rgba(5, 7, 5, 0.7));
    animation: cardIn 220ms ease both;
}

.guide-bonus-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(143, 223, 163, 0.12), transparent 26%, transparent 74%, rgba(232, 195, 113, 0.08));
    opacity: 0;
    transition: opacity 180ms ease;
}

.guide-bonus-card:hover::before {
    opacity: 1;
}

.guide-bonus-head {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.guide-bonus-head h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.08;
}

.bonus-max {
    align-self: start;
    padding: 5px 8px;
    border: 1px solid rgba(143, 223, 163, 0.22);
    background: rgba(8, 24, 14, 0.56);
    color: #9fe9b1;
    font-family: var(--font-display);
    font-size: 13px;
    white-space: nowrap;
}

.bonus-value-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.bonus-value-strip span {
    min-width: 0;
    padding: 7px 6px;
    border: 1px solid rgba(232, 195, 113, 0.13);
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
}

.bonus-value-strip em {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.bonus-value-strip strong {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 13px;
}

.bonus-slot-strip {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.bonus-slot-strip span {
    padding: 4px 7px;
    border: 1px solid rgba(143, 223, 163, 0.16);
    background: rgba(8, 22, 13, 0.42);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.bonus-meta-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.bonus-meta-row span {
    padding: 4px 7px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(0, 0, 0, 0.22);
}

.bonus-meta-row strong {
    color: var(--gold-2);
}

.guide-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.guide-action-btn {
    justify-self: start;
}

.guide-stage-list {
    display: grid;
    gap: 12px;
}

.guide-stage-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        linear-gradient(90deg, rgba(47, 34, 16, 0.38), transparent 28%),
        rgba(7, 7, 7, 0.48);
    overflow: hidden;
    animation: cardIn 220ms ease both;
}

.guide-stage-level {
    display: grid;
    place-items: center;
    min-height: 100%;
    border-right: 1px solid rgba(232, 195, 113, 0.18);
    background: linear-gradient(180deg, rgba(80, 56, 22, 0.5), rgba(8, 8, 8, 0.56));
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}

.guide-stage-body {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
    padding: 14px;
}

.guide-stage-body h2 {
    margin: 0;
}

.guide-stage-body strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    line-height: 1.35;
}

.guide-stage-body ul {
    grid-column: 1 / -1;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.45;
}

.guide-stage-body .guide-action-btn {
    grid-column: 1 / -1;
}

.guide-upgrade-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-upgrade-flow {
    margin: 12px 0;
}

.systems-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(143, 223, 163, 0.18);
    background:
        radial-gradient(circle at 16% 8%, rgba(143, 223, 163, 0.12), transparent 34%),
        linear-gradient(110deg, rgba(28, 23, 18, 0.86), rgba(6, 10, 8, 0.76)),
        url("../images/bg.png") center 48% / cover no-repeat;
    animation: cardIn 240ms ease both;
}

.systems-hero h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 0.96;
}

.systems-hero p {
    max-width: 820px;
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.55;
}

.systems-hero-stack {
    display: grid;
    align-content: center;
    gap: 8px;
}

.systems-hero-stack span {
    min-height: 42px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(0, 0, 0, 0.42);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
}

.systems-hero-stack svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 1px solid rgba(143, 223, 163, 0.24);
    background: rgba(5, 18, 10, 0.54);
}

.systems-flow {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.system-card {
    position: relative;
    border: 1px solid rgba(232, 195, 113, 0.17);
    background:
        radial-gradient(circle at 12% 18%, rgba(143, 223, 163, 0.08), transparent 30%),
        linear-gradient(135deg, rgba(31, 25, 18, 0.84), rgba(5, 7, 6, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 244, 186, 0.05), 0 18px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    animation: cardIn 260ms ease both;
}

.system-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(232, 195, 113, 0.08), transparent 18%, transparent 82%, rgba(143, 223, 163, 0.06)),
        radial-gradient(circle at 76% 0%, rgba(232, 195, 113, 0.12), transparent 34%);
    opacity: 0.72;
}

.system-card summary,
.system-card-body {
    position: relative;
    z-index: 1;
}

.system-card summary {
    min-height: 96px;
    display: grid;
    grid-template-columns: 44px 148px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.system-card summary::-webkit-details-marker {
    display: none;
}

.system-card summary:hover {
    background: rgba(232, 195, 113, 0.04);
}

.system-card[open] .accordion-chevron {
    transform: rotate(90deg);
}

.system-card-preview {
    width: 148px;
    height: 76px;
    display: block;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(0, 0, 0, 0.54);
    overflow: hidden;
}

.system-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.system-card-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.system-card-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(143, 223, 163, 0.28);
    background: rgba(5, 18, 10, 0.52);
    color: #b8ffc7;
}

.system-card-icon svg {
    width: 25px;
    height: 25px;
}

.system-card-copy strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 23px;
    line-height: 1.05;
}

.system-card-copy small {
    color: var(--muted);
    font-weight: 900;
}

.system-card-copy em {
    color: var(--text);
    font-style: normal;
    line-height: 1.35;
}

.system-card-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
    gap: 16px;
    padding: 0 12px 14px;
}

.system-info {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(143, 223, 163, 0.12);
    background: rgba(3, 12, 7, 0.32);
}

.system-points {
    display: grid;
    gap: 8px;
}

.system-summary {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
}

.system-points {
    grid-template-columns: 1fr;
    gap: 8px;
}

.system-points p {
    margin: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px;
    border: 1px solid rgba(143, 223, 163, 0.14);
    background: rgba(4, 12, 7, 0.42);
    color: var(--muted);
    line-height: 1.4;
}

.system-points svg {
    width: 28px;
    height: 28px;
    padding: 6px;
    border: 1px solid rgba(143, 223, 163, 0.18);
    background: rgba(0, 0, 0, 0.42);
}

.system-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    align-content: start;
}

.system-gallery-card {
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        radial-gradient(circle at center, rgba(232, 195, 113, 0.07), transparent 45%),
        rgba(0, 0, 0, 0.54);
    overflow: hidden;
    box-shadow: inset 0 0 28px rgba(232, 195, 113, 0.035);
}

.system-gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    padding: 12px;
    filter: saturate(1.08) contrast(1.04);
}

.system-image-missing {
    min-height: 210px;
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
}

.system-image-missing svg {
    width: 48px;
    height: 48px;
}

.system-jump-button {
    justify-self: start;
}

.system-jump-button svg {
    width: 16px;
    height: 16px;
}

.system-required-items {
    display: grid;
    gap: 8px;
}

.system-required-items h4 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1;
}

.system-required-items h4 svg {
    width: 24px;
    height: 24px;
    padding: 5px;
    border: 1px solid rgba(143, 223, 163, 0.2);
    background: rgba(5, 18, 10, 0.52);
}

.system-required-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.system-required-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(143, 223, 163, 0.18);
    background:
        radial-gradient(circle at 16% 50%, rgba(143, 223, 163, 0.09), transparent 48%),
        rgba(3, 12, 7, 0.52);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.system-required-item:hover {
    border-color: rgba(143, 223, 163, 0.44);
    background:
        radial-gradient(circle at 16% 50%, rgba(143, 223, 163, 0.16), transparent 50%),
        rgba(7, 18, 10, 0.72);
    transform: translateY(-1px);
}

.system-required-item .item-icon {
    width: 42px;
    height: 42px;
}

.system-required-item .item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.system-required-item span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.system-required-item strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.1;
}

.system-required-item small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.25;
}

.guide-race-grid {
    display: grid;
    gap: 12px;
}

.guide-race-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: linear-gradient(180deg, rgba(28, 23, 18, 0.82), rgba(7, 7, 7, 0.66));
    overflow: hidden;
    animation: cardIn 240ms ease both;
}

.guide-race-art {
    min-height: 240px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0;
    padding: 12px 10px 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(232, 195, 113, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
}

.guide-race-art img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.guide-race-body {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 12px;
    align-content: start;
    padding: 18px;
}

.guide-race-body h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 28px;
}

.guide-race-body strong {
    color: #a8efb5;
}

.guide-race-body p,
.guide-race-body ul,
.guide-race-body .copy-link-btn {
    grid-column: 1 / -1;
}

.guide-race-body p {
    margin: 4px 0 0;
    color: var(--text);
    line-height: 1.5;
}

.guide-race-body ul {
    margin: 2px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.55;
}

.guide-race-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.guide-race-tabs button {
    min-height: 42px;
    display: inline-grid;
    grid-template-columns: 30px auto;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    color: var(--gold-2);
    font-weight: 800;
}

.guide-race-tabs button svg {
    width: 30px;
    height: 30px;
    padding: 6px;
}

.guide-skill-group {
    padding: 16px;
    border: 1px solid rgba(143, 223, 163, 0.18);
    background:
        radial-gradient(circle at 14% 0%, rgba(143, 223, 163, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(19, 27, 18, 0.8), rgba(7, 7, 7, 0.66));
    animation: cardIn 240ms ease both;
}

.guide-skill-group-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.guide-skill-group-head h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 26px;
}

.guide-skill-group-head small {
    color: var(--muted);
}

.guide-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 10px;
}

.guide-skill-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: linear-gradient(180deg, rgba(15, 14, 12, 0.78), rgba(5, 5, 5, 0.72));
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-skill-card:hover {
    transform: translateY(-1px);
    border-color: rgba(143, 223, 163, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(143, 223, 163, 0.04);
}

.guide-skill-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.guide-skill-icon,
.skill-stage {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.guide-skill-icon {
    width: 46px;
    height: 46px;
}

.guide-skill-icon img {
    max-width: 34px;
    max-height: 34px;
}

.guide-skill-head strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.guide-skill-head small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.skill-rank-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.skill-stage {
    position: relative;
    min-height: 42px;
}

.skill-stage img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.skill-stage em {
    position: absolute;
    right: 4px;
    bottom: 2px;
    color: var(--gold);
    font-style: normal;
    font-size: 9px;
    font-weight: 900;
}

.guide-skill-facts {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.guide-skill-facts span {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(232, 195, 113, 0.1);
    background: rgba(0, 0, 0, 0.28);
}

.guide-skill-facts em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.guide-skill-facts strong {
    min-width: 0;
    color: var(--gold-2);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.guide-skill-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.guide-chapter {
    scroll-margin-top: 18px;
}

.guide-chapter-head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.guide-level-badge {
    min-height: 58px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.34);
    background: linear-gradient(180deg, rgba(75, 54, 23, 0.58), rgba(6, 6, 6, 0.58));
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
}

.guide-chapter h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1.05;
}

.guide-chapter-head small {
    color: var(--muted);
    font-weight: 700;
}

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

.guide-visual-slot {
    min-height: 260px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        radial-gradient(circle at center, rgba(232, 195, 113, 0.08), transparent 44%),
        rgba(6, 6, 6, 0.46);
    overflow: hidden;
    position: relative;
}

.guide-level-slider {
    min-height: 310px;
    aspect-ratio: 16 / 9;
    box-shadow:
        inset 0 0 42px rgba(232, 195, 113, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.28);
}

.guide-slide-stage,
.guide-slide-frame {
    position: absolute;
    inset: 0;
}

.guide-slide-frame {
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 520ms ease,
        transform 900ms ease;
    pointer-events: none;
}

.guide-slide-frame.is-active {
    opacity: 1;
    transform: scale(1);
}

.guide-slide-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 34%, rgba(0, 0, 0, 0.34)),
        linear-gradient(180deg, rgba(255, 227, 152, 0.06), transparent 42%, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.guide-visual-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-slide-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 13px;
    z-index: 3;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.guide-slide-caption strong {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(232, 195, 113, 0.38);
    background: rgba(0, 0, 0, 0.55);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 18px;
}

.guide-slide-caption span {
    max-width: 68%;
    padding: 7px 9px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(0, 0, 0, 0.54);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.guide-slide-btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 36px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.24);
    background: rgba(3, 3, 3, 0.48);
    color: var(--gold-2);
    transform: translateY(-50%);
    opacity: 0.68;
    transition:
        opacity 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.guide-slide-btn:hover {
    opacity: 1;
    border-color: rgba(232, 195, 113, 0.54);
    background: rgba(50, 36, 16, 0.74);
}

.guide-slide-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.guide-slide-prev {
    left: 10px;
}

.guide-slide-next {
    right: 10px;
}

.guide-slide-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(0, 0, 0, 0.42);
    transform: translateX(-50%);
}

.guide-slide-dots button {
    width: 18px;
    height: 4px;
    border: 0;
    background: rgba(232, 195, 113, 0.28);
    cursor: pointer;
    transition:
        width 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.guide-slide-dots button.is-active {
    width: 30px;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(232, 195, 113, 0.34);
}

.guide-image-empty {
    display: none;
    justify-items: center;
    gap: 6px;
    padding: 18px;
    color: var(--muted);
    text-align: center;
    position: relative;
    z-index: 5;
}

.guide-visual-slot.is-empty .guide-image-empty,
.guide-visual-slot:not(:has(img)) .guide-image-empty {
    display: grid;
}

.guide-image-empty svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.8;
}

.guide-image-empty strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.guide-image-empty span {
    font-size: 12px;
}

.guide-copy-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.guide-info-panel {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.13);
    background:
        linear-gradient(180deg, rgba(36, 28, 18, 0.42), rgba(7, 7, 7, 0.42)),
        rgba(7, 7, 7, 0.36);
}

.guide-copy-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.42;
    font-size: 14px;
}

.guide-copy-card li + li {
    margin-top: 5px;
}

.guide-token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: start;
}

.guide-mob-token {
    min-height: 34px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(143, 206, 239, 0.28);
    background: rgba(6, 16, 22, 0.5);
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

button.guide-mob-token {
    cursor: pointer;
}

button.guide-mob-token:hover {
    border-color: rgba(143, 206, 239, 0.56);
    color: #d7f1ff;
}

.guide-mob-token em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.guide-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.guide-map-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1.05fr);
    border: 1px solid rgba(143, 223, 163, 0.2);
    background: rgba(7, 7, 7, 0.42);
    overflow: hidden;
}

.guide-map-preview {
    min-height: 210px;
    position: relative;
    background: rgba(2, 7, 5, 0.76);
    overflow: hidden;
}

.guide-map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.guide-map-copy {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 12px;
}

.guide-map-copy > span {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(143, 223, 163, 0.32);
    background: rgba(10, 28, 16, 0.48);
    color: #bff5c8;
}

.guide-map-copy svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.guide-map-copy strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 20px;
}

.guide-map-copy small {
    color: var(--muted);
}

.guide-map-mobs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.guide-map-mobs em {
    padding: 3px 6px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(6, 6, 6, 0.34);
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 12px;
}

.grid > * {
    animation: cardIn 240ms ease both;
}

.wide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 12px;
}

.item-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.item-category-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(18, 16, 14, 0.88);
    color: var(--text);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.item-category-icon,
.type-badge-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-2);
}

.item-category-icon svg,
.type-badge-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-category-chip:hover,
.item-category-chip.is-active {
    border-color: rgba(232, 195, 113, 0.68);
    background: linear-gradient(180deg, rgba(101, 76, 37, 0.46), rgba(35, 27, 20, 0.92));
}

.item-category-chip.is-active,
.tool-chip.is-active,
.tool-toggle.is-active,
.favorite-btn.is-active {
    box-shadow: inset 0 0 18px rgba(232, 195, 113, 0.08), 0 0 16px rgba(232, 195, 113, 0.1);
}

.item-category-chip:hover .item-category-icon,
.item-category-chip.is-active .item-category-icon,
.tool-toggle:hover svg,
.tool-toggle.is-active svg,
.favorite-btn:hover svg,
.favorite-btn.is-active svg {
    filter: drop-shadow(0 0 8px rgba(232, 195, 113, 0.42));
}

.item-category-chip span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-2);
}

.item-category-count {
    min-width: 24px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(7, 7, 7, 0.38);
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
}

.item-category-overview,
.item-category-sections {
    display: grid;
    gap: 10px;
}

.item-category-overview-card,
.item-category-section-head {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        radial-gradient(circle at 7% 20%, rgba(232, 195, 113, 0.08), transparent 34%),
        linear-gradient(90deg, rgba(26, 23, 19, 0.92), rgba(10, 12, 10, 0.9));
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.item-category-overview-card:hover,
.item-category-section-head:hover {
    border-color: rgba(232, 195, 113, 0.52);
    background:
        radial-gradient(circle at 7% 20%, rgba(232, 195, 113, 0.13), transparent 34%),
        linear-gradient(90deg, rgba(41, 34, 23, 0.94), rgba(13, 24, 16, 0.92));
    transform: translateX(2px);
}

.item-category-overview-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 195, 113, 0.24);
    background: rgba(0, 0, 0, 0.28);
    color: var(--gold-2);
}

.item-category-overview-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-category-overview-copy {
    min-width: 0;
}

.item-category-overview-copy strong,
.item-category-section-head strong {
    display: block;
    overflow: hidden;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 17px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.item-category-overview-copy small,
.item-category-section-head small {
    display: block;
    margin-top: 2px;
    color: var(--soft);
    font-size: 12px;
}

.item-category-preview-row {
    display: inline-flex;
    justify-content: flex-end;
    min-width: 132px;
}

.item-category-preview-row span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -7px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(0, 0, 0, 0.36);
}

.item-category-preview-row img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.item-category-section {
    display: grid;
    gap: 8px;
}

.item-category-more {
    min-height: 42px;
    border: 1px solid rgba(232, 195, 113, 0.22);
    background: rgba(17, 14, 11, 0.82);
    color: var(--gold-2);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
}

.smart-search-panel {
    display: grid;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(232, 195, 113, 0.24);
    background:
        radial-gradient(circle at 8% 0, rgba(232, 195, 113, 0.16), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(139, 209, 141, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(29, 24, 18, 0.88), rgba(8, 10, 8, 0.82));
    box-shadow:
        inset 0 0 34px rgba(232, 195, 113, 0.04),
        0 16px 42px rgba(0, 0, 0, 0.28);
    animation: cardIn 180ms ease both;
}

.smart-search-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(232, 195, 113, 0.18);
}

.smart-search-rune {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.32);
    background:
        radial-gradient(circle, rgba(232, 195, 113, 0.16), transparent 62%),
        rgba(0, 0, 0, 0.32);
    color: var(--gold-2);
    box-shadow: 0 0 18px rgba(232, 195, 113, 0.1);
}

.smart-search-rune svg,
.smart-search-section-head svg,
.smart-search-result-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.smart-search-head h2 {
    margin: 2px 0 0;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.05;
}

.smart-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.smart-search-section {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        linear-gradient(180deg, rgba(12, 18, 12, 0.72), rgba(6, 6, 5, 0.74)),
        rgba(0, 0, 0, 0.28);
}

.smart-search-section-head {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
}

.smart-search-section-head strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 15px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.smart-search-section-head em {
    min-width: 24px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(0, 0, 0, 0.34);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-style: normal;
}

.smart-search-result-list {
    display: grid;
    gap: 6px;
}

.smart-search-result {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(8, 8, 7, 0.72);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.smart-search-result:hover {
    border-color: rgba(232, 195, 113, 0.44);
    background:
        radial-gradient(circle at 0 50%, rgba(232, 195, 113, 0.1), transparent 36%),
        rgba(18, 17, 14, 0.9);
    transform: translateX(2px);
}

.smart-search-result-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(0, 0, 0, 0.36);
    color: var(--gold-2);
}

.smart-search-result-icon img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.smart-search-result-copy {
    min-width: 0;
}

.smart-search-result-copy strong {
    display: block;
    overflow: hidden;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 14px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.smart-search-result-copy small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-search-result > em {
    color: var(--gold-2);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.smart-search-more {
    min-height: 34px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(20, 16, 11, 0.78);
    color: var(--gold-2);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.smart-search-more:hover {
    border-color: rgba(232, 195, 113, 0.48);
    background: rgba(46, 35, 19, 0.9);
}

.search-hit {
    padding: 0 2px;
    color: #101010;
    background: linear-gradient(180deg, #fff0b7, #e8c371);
    box-shadow: 0 0 12px rgba(232, 195, 113, 0.22);
}

.tool-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        linear-gradient(180deg, rgba(31, 27, 22, 0.62), rgba(9, 9, 9, 0.38)),
        rgba(7, 7, 7, 0.24);
}

.tool-group {
    min-width: min(100%, 520px);
    display: grid;
    gap: 6px;
}

.tool-label,
.tool-select span,
.tool-mini span {
    color: var(--soft);
    font-size: 11px;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 800;
}

.tool-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tool-chip,
.tool-toggle,
.copy-link-btn,
.favorite-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(16, 14, 12, 0.82);
    color: var(--text);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tool-chip {
    padding: 0 10px;
    font-size: 12px;
}

.tool-chip:hover,
.tool-chip.is-active,
.tool-toggle:hover,
.tool-toggle.is-active,
.copy-link-btn:hover,
.favorite-btn:hover,
.favorite-btn.is-active {
    border-color: rgba(232, 195, 113, 0.58);
    background: linear-gradient(180deg, rgba(101, 76, 37, 0.42), rgba(28, 22, 16, 0.9));
    color: var(--gold-2);
}

.tool-toggle,
.copy-link-btn,
.favorite-btn {
    padding: 0 10px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
}

.tool-toggle svg,
.copy-link-btn svg,
.favorite-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorite-btn {
    min-width: 34px;
    padding: 0 8px;
}

.favorite-btn.is-active svg {
    fill: rgba(232, 195, 113, 0.26);
}

.copy-link-btn.is-copied {
    border-color: rgba(139, 209, 141, 0.48);
    color: #d7ffd9;
}

.tool-select,
.tool-mini {
    display: grid;
    gap: 6px;
}

.tool-select select,
.tool-mini input {
    min-height: 34px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(8, 8, 8, 0.72);
    color: var(--text);
    padding: 0 10px;
    outline: none;
}

.tool-mini input {
    width: 94px;
}

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

.accordion-list > * {
    animation: cardIn 240ms ease both;
}

.grid > *:nth-child(2n),
.portal-grid > *:nth-child(2n),
.mini-item-grid > *:nth-child(2n),
.accordion-list > *:nth-child(2n) {
    animation-delay: 24ms;
}

.grid > *:nth-child(3n),
.portal-grid > *:nth-child(3n),
.mini-item-grid > *:nth-child(3n),
.accordion-list > *:nth-child(3n) {
    animation-delay: 48ms;
}

.grid > *:nth-child(4n),
.portal-grid > *:nth-child(4n),
.mini-item-grid > *:nth-child(4n),
.accordion-list > *:nth-child(4n) {
    animation-delay: 72ms;
}

.item-family-card .accordion-panel-inner {
    background: rgba(6, 6, 6, 0.08);
}

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

.variant-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: linear-gradient(180deg, rgba(27, 24, 20, 0.78), rgba(11, 10, 9, 0.7));
}

.upgrade-summary {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(139, 209, 141, 0.16);
    background:
        linear-gradient(90deg, rgba(18, 34, 21, 0.42), rgba(8, 8, 8, 0.28)),
        rgba(7, 7, 7, 0.2);
}

.upgrade-summary .panel-label {
    display: block;
    margin-bottom: 3px;
}

.upgrade-summary strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 14px;
}

.upgrade-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.upgrade-chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(139, 209, 141, 0.2);
    background: rgba(139, 209, 141, 0.08);
}

.upgrade-chip em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.upgrade-chip strong {
    color: var(--green);
    font-family: var(--font-ui);
    font-size: 12px;
}

.variant-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.variant-head strong,
.variant-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-head strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
}

.variant-head small {
    color: var(--soft);
    margin-top: 2px;
    font-size: 12px;
}

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

.effect-chip {
    min-width: 0;
    min-height: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(232, 195, 113, 0.1);
    background: rgba(7, 7, 7, 0.34);
}

.effect-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}

.effect-chip strong {
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
}

.effect-chip em {
    color: var(--green);
    font-style: normal;
    font-size: 12px;
    white-space: nowrap;
}

.card {
    border: 1px solid rgba(232, 195, 113, 0.17);
    background: linear-gradient(180deg, rgba(34, 30, 25, 0.84), rgba(20, 18, 16, 0.92));
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.card-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(232, 195, 113, 0.12);
}

.icon-frame,
.item-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 6, 0.58);
    border: 1px solid rgba(232, 195, 113, 0.18);
}

.icon-frame img,
.item-icon img {
    max-width: 34px;
    max-height: 34px;
    image-rendering: auto;
}

.card-title {
    min-width: 0;
}

.card-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 700;
}

.meta {
    color: var(--soft);
    font-size: 12px;
    margin-top: 3px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-left: 6px;
    padding: 0 7px;
    border: 1px solid rgba(232, 195, 113, 0.22);
    color: var(--gold);
    background: rgba(232, 195, 113, 0.08);
    font-size: 11px;
    vertical-align: middle;
}

.mini-badge-web {
    color: #d7ffd9;
    border-color: rgba(139, 209, 141, 0.34);
    background: rgba(139, 209, 141, 0.1);
}

.accordion-card {
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: linear-gradient(180deg, rgba(32, 28, 23, 0.82), rgba(18, 16, 14, 0.92));
    min-width: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.accordion-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid transparent;
    background: linear-gradient(90deg, transparent, rgba(232, 195, 113, 0.18), transparent);
    opacity: 0;
    pointer-events: none;
}

.accordion-card:hover {
    border-color: rgba(232, 195, 113, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.accordion-card[open] {
    border-color: rgba(232, 195, 113, 0.28);
    box-shadow: 0 0 0 1px rgba(232, 195, 113, 0.08), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.accordion-card[open]::before {
    animation: openSweep 620ms ease both;
}

.accordion-card:hover::before {
    animation: lightSweep 760ms ease both;
}

.tone-weapon {
    border-color: rgba(143, 178, 199, 0.2);
}

.tone-weapon:hover,
.tone-weapon[open] {
    box-shadow: 0 0 0 1px rgba(143, 178, 199, 0.08), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.tone-armor,
.tone-chest {
    border-color: rgba(232, 195, 113, 0.2);
}

.tone-armor:hover,
.tone-chest:hover,
.tone-armor[open],
.tone-chest[open] {
    box-shadow: 0 0 0 1px rgba(232, 195, 113, 0.08), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.tone-accessory {
    border-color: rgba(183, 155, 255, 0.2);
}

.tone-accessory:hover,
.tone-accessory[open] {
    box-shadow: 0 0 0 1px rgba(183, 155, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.tone-companion,
.tone-craft {
    border-color: rgba(139, 209, 141, 0.2);
}

.tone-companion:hover,
.tone-craft:hover,
.tone-companion[open],
.tone-craft[open] {
    box-shadow:
        0 0 0 1px rgba(139, 209, 141, 0.08),
        0 0 26px rgba(232, 195, 113, 0.08),
        0 16px 34px rgba(0, 0, 0, 0.28);
}

.tone-material {
    border-color: rgba(215, 100, 85, 0.18);
}

.tone-material:hover,
.tone-material[open] {
    box-shadow: 0 0 0 1px rgba(215, 100, 85, 0.08), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.tone-mob {
    border-color: rgba(143, 178, 199, 0.2);
}

.tone-boss {
    border-color: rgba(255, 215, 98, 0.28);
    background:
        radial-gradient(circle at 0 0, rgba(215, 100, 85, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(38, 29, 20, 0.84), rgba(18, 16, 14, 0.92));
}

.tone-boss:hover,
.tone-boss[open] {
    border-color: rgba(255, 215, 98, 0.48);
    box-shadow:
        0 0 0 1px rgba(255, 215, 98, 0.1),
        0 0 28px rgba(215, 100, 85, 0.14),
        0 16px 34px rgba(0, 0, 0, 0.3);
}

.tone-boss:hover .accordion-icon,
.tone-boss[open] .accordion-icon {
    border-color: rgba(255, 215, 98, 0.42);
    color: var(--gold);
    box-shadow: inset 0 0 18px rgba(255, 215, 98, 0.08), 0 0 16px rgba(215, 100, 85, 0.14);
    animation: iconPulse 1800ms ease-in-out infinite;
}

.accordion-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
}

.item-family-card .accordion-summary {
    grid-template-columns: 42px 34px minmax(0, 1fr) 28px;
}

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

.accordion-summary:hover {
    background: rgba(232, 195, 113, 0.045);
}

.accordion-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(6, 6, 6, 0.58);
    color: var(--gold-2);
    font-weight: 700;
}

.accordion-icon img {
    max-width: 32px;
    max-height: 32px;
}

.accordion-icon-symbol {
    color: var(--gold-2);
    background:
        radial-gradient(circle at 50% 45%, rgba(232, 195, 113, 0.12), transparent 58%),
        rgba(6, 6, 6, 0.68);
}

.accordion-icon-symbol svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accordion-icon-boss {
    color: #ffe38e;
    border-color: rgba(255, 215, 98, 0.32);
}

.accordion-icon-mob {
    color: #9ed8ff;
    border-color: rgba(124, 190, 238, 0.28);
}

.accordion-icon-npc {
    color: #b7f0c1;
    border-color: rgba(139, 209, 141, 0.28);
}

.accordion-icon-evolutions {
    color: #b7f0c1;
    border-color: rgba(136, 212, 176, 0.3);
}

.accordion-title {
    min-width: 0;
}

.accordion-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-title strong {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}

.accordion-title small {
    color: var(--soft);
    margin-top: 2px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.accordion-title small > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    flex: 0 0 auto;
    padding: 0 7px 0 5px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(232, 195, 113, 0.08);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.type-badge-mob,
.type-badge-items {
    border-color: rgba(143, 178, 199, 0.28);
    background: rgba(143, 178, 199, 0.08);
}

.type-badge-boss {
    border-color: rgba(255, 215, 98, 0.36);
    background: rgba(255, 215, 98, 0.1);
}

.type-badge-crafts,
.type-badge-evolutions,
.type-badge-npc {
    border-color: rgba(139, 209, 141, 0.28);
    background: rgba(139, 209, 141, 0.08);
}

.type-badge-favorite {
    border-color: rgba(232, 195, 113, 0.36);
    background: rgba(232, 195, 113, 0.1);
}

.evolution-origin-inline {
    max-width: 280px;
    padding: 2px 7px;
    border: 1px solid rgba(136, 212, 176, 0.2);
    background: rgba(13, 45, 27, 0.34);
    color: var(--green);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vnum-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    margin-left: 6px;
    padding: 1px 5px;
    border: 1px solid rgba(232, 195, 113, 0.22);
    color: var(--muted);
    background: rgba(0, 0, 0, 0.28);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.vnum-badge-item {
    border-color: rgba(143, 178, 199, 0.28);
    color: #a9d3f0;
}

.vnum-badge-mob,
.vnum-badge-drop {
    border-color: rgba(255, 111, 86, 0.3);
    color: #ff9a84;
}

.vnum-badge-boss {
    border-color: rgba(255, 215, 98, 0.38);
    color: var(--gold);
}

.vnum-badge-npc,
.vnum-badge-dungeon {
    border-color: rgba(136, 212, 176, 0.34);
    color: var(--green);
}

.vnum-badge-stone {
    border-color: rgba(232, 195, 113, 0.34);
    color: var(--gold-2);
}

.accordion-chevron {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    color: var(--gold-2);
    font-size: 24px;
    line-height: 1;
    transition: transform 180ms ease;
}

.accordion-card[open] .accordion-chevron {
    transform: rotate(90deg);
}

.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}

.accordion-card[open] .accordion-panel {
    grid-template-rows: 1fr;
}

.accordion-panel-inner {
    overflow: hidden;
    padding: 0 10px;
    border-top: 1px solid rgba(232, 195, 113, 0.1);
}

.accordion-card[open] .accordion-panel-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    animation: panelIn 220ms ease both;
}

.accordion-action-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.copy-view-btn {
    min-height: 30px;
}

.card-body {
    padding: 12px;
}

.desc {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

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

.item-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-label {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.panel-label-drops {
    margin-top: 12px;
}

.mob-detail-box {
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        linear-gradient(180deg, rgba(34, 30, 24, 0.7), rgba(13, 12, 11, 0.78)),
        rgba(8, 8, 8, 0.28);
}

.owner-source-box {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid rgba(139, 209, 141, 0.16);
    background:
        linear-gradient(180deg, rgba(24, 34, 24, 0.52), rgba(10, 12, 10, 0.76)),
        rgba(8, 8, 8, 0.28);
}

.owner-source-box.has-map-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(390px, 1.28fr);
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 120px);
    overflow: visible;
}

.source-disclosure {
    margin-top: 12px;
}

.source-disclosure-summary {
    min-height: 40px;
    display: inline-grid;
    grid-template-columns: 32px auto;
    gap: 9px;
    align-items: center;
    padding: 0 12px 0 5px;
    border: 1px solid rgba(139, 209, 141, 0.2);
    background: rgba(9, 15, 10, 0.72);
    color: var(--gold-2);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
}

.source-disclosure-summary::-webkit-details-marker {
    display: none;
}

.source-disclosure[open] .source-disclosure-summary,
.source-disclosure-summary:hover {
    border-color: rgba(139, 209, 141, 0.42);
    background: rgba(20, 32, 22, 0.66);
}

.owner-source-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.owner-source-box.has-map-panel .owner-source-list {
    grid-template-columns: 1fr;
    max-height: 620px;
    overflow: auto;
    padding-right: 3px;
}

.owner-source-box.has-map-panel .owner-source {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 8px;
}

.owner-source-box.has-map-panel .source-icon {
    width: 28px;
    height: 28px;
}

.owner-source-box.has-map-panel .source-icon svg {
    width: 18px;
    height: 18px;
}

.owner-source {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 10px;
    border: 1px solid rgba(139, 209, 141, 0.12);
    background: rgba(7, 7, 7, 0.34);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.owner-source:hover {
    border-color: rgba(139, 209, 141, 0.34);
    background: rgba(20, 32, 22, 0.48);
    transform: translateY(-1px);
}

.owner-source-static {
    cursor: default;
}

.owner-source-static:hover {
    transform: none;
}

.source-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 209, 141, 0.28);
    background: rgba(6, 6, 6, 0.55);
    color: #b7f0c1;
}

.source-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.source-icon-boss {
    color: #ffe38e;
    border-color: rgba(255, 215, 98, 0.32);
}

.source-icon-mob {
    color: #9ed8ff;
    border-color: rgba(124, 190, 238, 0.28);
}

.source-icon-npc {
    color: #b7f0c1;
    border-color: rgba(139, 209, 141, 0.28);
}

.source-icon-crafts {
    color: #b7f0c1;
    border-color: rgba(139, 209, 141, 0.28);
}

.source-icon-evolutions {
    color: #b7f0c1;
    border-color: rgba(136, 212, 176, 0.3);
}

.source-icon-drop {
    color: var(--gold-2);
    border-color: rgba(232, 195, 113, 0.24);
}

.source-icon-shop {
    color: #ffe7a3;
    border-color: rgba(232, 195, 113, 0.34);
    box-shadow: 0 0 18px rgba(232, 195, 113, 0.08);
}

.owner-source-body {
    min-width: 0;
}

.owner-source strong,
.owner-source-body span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-source strong {
    color: var(--gold-2);
    font-weight: 800;
}

.owner-source-body span {
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.source-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed rgba(232, 195, 113, 0.22);
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(31, 24, 16, 0.22), rgba(7, 7, 7, 0.26)),
        rgba(7, 7, 7, 0.25);
}

.source-map-panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        radial-gradient(circle at 30% 10%, rgba(139, 209, 141, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(29, 24, 16, 0.72), rgba(8, 8, 8, 0.72));
    padding: 10px;
    box-shadow: inset 0 0 22px rgba(139, 209, 141, 0.04);
}

.source-map-empty {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    color: var(--muted);
}

.source-map-empty strong {
    color: var(--gold-2);
    font-family: var(--font-display);
}

.source-map-empty p {
    max-width: 260px;
    margin: 0;
    font-size: 12px;
}

.source-map-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.source-map-head strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
}

.source-map-head small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.source-map-rune {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 209, 141, 0.28);
    background: rgba(7, 11, 8, 0.68);
    color: #b7f0c1;
    box-shadow: 0 0 18px rgba(139, 209, 141, 0.08);
}

.source-map-rune svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.source-map-stack {
    display: grid;
    gap: 10px;
}

.source-map-card {
    border: 1px solid rgba(232, 195, 113, 0.17);
    background: rgba(5, 5, 5, 0.42);
    overflow: visible;
}

.source-map-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border-bottom: 1px solid rgba(232, 195, 113, 0.13);
}

.source-map-title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 13px;
}

.source-map-title span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
}

.source-map-canvas {
    position: relative;
    min-height: 170px;
    aspect-ratio: 1 / 0.76;
    background:
        radial-gradient(circle at 50% 50%, rgba(139, 209, 141, 0.08), transparent 50%),
        #070707;
    overflow: visible;
}

.source-map-canvas img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.04) brightness(0.88);
}

.source-map-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(180deg, rgba(232, 195, 113, 0.08), transparent 40%, rgba(139, 209, 141, 0.07));
    mix-blend-mode: screen;
}

.source-map-points {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.source-map-points.is-secret {
    display: none;
}

.source-map-point {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    border: 1px solid rgba(248, 255, 202, 0.92);
    background:
        radial-gradient(circle, #f6ffd0 0 24%, #b7f0c1 44%, #5ed585 100%);
    box-shadow:
        0 0 0 2px rgba(139, 209, 141, 0.14),
        0 0 9px rgba(139, 209, 141, 0.72),
        0 0 18px rgba(232, 195, 113, 0.28);
    animation: mapPointPulse 1500ms ease-in-out infinite;
    animation-delay: var(--delay);
    cursor: help;
    outline: none;
    pointer-events: auto;
    z-index: 1;
    isolation: isolate;
}

.source-map-point-mob {
    border-color: rgba(255, 194, 154, 0.96);
    background:
        radial-gradient(circle, #fff0d0 0 20%, #ff795d 42%, #b31920 100%);
    box-shadow:
        0 0 0 2px rgba(255, 72, 64, 0.16),
        0 0 10px rgba(255, 64, 52, 0.78),
        0 0 22px rgba(175, 21, 24, 0.48);
}

.source-map-point-npc {
    border-color: rgba(194, 255, 204, 0.94);
    background:
        radial-gradient(circle, #f6ffd0 0 24%, #b7f0c1 44%, #5ed585 100%);
}

.source-map-point.source-map-layer-group {
    border-color: rgba(255, 214, 136, 0.95);
    background:
        radial-gradient(circle, #fff1bd 0 22%, #ff9f4d 45%, #b94d23 100%);
}

.source-map-point.source-map-layer-stone {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-color: rgba(255, 240, 161, 0.98);
    background:
        radial-gradient(circle, #fff8c9 0 18%, #ffd74e 43%, #b88614 100%);
    box-shadow:
        0 0 0 2px rgba(255, 214, 78, 0.15),
        0 0 11px rgba(255, 216, 83, 0.78),
        0 0 24px rgba(184, 134, 20, 0.44);
}

.source-map-point-boss,
.source-map-point-dungeon {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 0;
    border-radius: 0;
    image-rendering: pixelated;
    box-shadow:
        0 0 18px rgba(232, 195, 113, 0.72),
        0 0 34px rgba(139, 209, 141, 0.24);
    animation: mapIconFloat 1800ms ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: 8;
}

.source-map-point-dungeon {
    background: url("../gameplay/maps/dungeon_mark.png") center / contain no-repeat;
    filter:
        drop-shadow(0 0 4px rgba(207, 255, 174, 0.95))
        drop-shadow(0 0 12px rgba(94, 213, 133, 0.72));
}

.source-map-point-boss {
    background: url("../gameplay/maps/boss_mark_new.png") center / contain no-repeat;
    filter:
        drop-shadow(0 0 4px rgba(255, 220, 145, 0.95))
        drop-shadow(0 0 14px rgba(255, 57, 39, 0.76));
}

.source-map-point::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 255, 181, 0.22), rgba(139, 209, 141, 0.1) 34%, transparent 62%);
    animation: mapPointSignal 1800ms ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: -1;
}

.source-map-point-mob::before {
    background: radial-gradient(circle, rgba(255, 126, 103, 0.28), rgba(184, 25, 29, 0.16) 36%, transparent 66%);
}

.source-map-point-stone {
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-color: rgba(255, 241, 154, 0.98);
    background:
        radial-gradient(circle, #fff8c7 0 20%, #ffd54b 44%, #9f7311 100%);
    box-shadow:
        0 0 0 2px rgba(255, 213, 75, 0.16),
        0 0 12px rgba(255, 218, 76, 0.78),
        0 0 28px rgba(210, 145, 26, 0.48);
}

.source-map-point-stone::before {
    background: radial-gradient(circle, rgba(255, 235, 122, 0.32), rgba(210, 145, 26, 0.18) 36%, transparent 66%);
}

.source-map-point-boss::before,
.source-map-point-dungeon::before {
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 241, 177, 0.22), rgba(139, 209, 141, 0.11) 34%, transparent 68%);
}

.source-map-point::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(139, 209, 141, 0.24);
    animation: mapPointRing 1800ms ease-out infinite;
    animation-delay: var(--delay);
    z-index: -1;
}

.hide-map-layer-mob .source-map-layer-mob,
.hide-map-layer-group .source-map-layer-group,
.hide-map-layer-stone .source-map-layer-stone,
.hide-map-layer-npc .source-map-layer-npc,
.hide-map-layer-boss .source-map-layer-boss,
.hide-map-layer-dungeon .source-map-layer-dungeon {
    display: none;
}

.map-card.is-map-asleep .source-map-points {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    content-visibility: hidden;
}

.map-card.is-map-active .source-map-points {
    visibility: visible;
    opacity: 1;
    content-visibility: visible;
    transition: opacity 180ms ease;
}

.map-card.is-map-asleep .source-map-point,
.map-card.is-map-asleep .source-map-point::before,
.map-card.is-map-asleep .source-map-point::after {
    animation-play-state: paused;
}

.map-card.is-map-asleep .source-map-point::after,
.map-card.is-map-asleep .source-map-point-tip {
    opacity: 0;
    pointer-events: none;
}

.source-map-point-mob::after {
    border-color: rgba(255, 74, 61, 0.36);
}

.source-map-point-stone::after {
    border-color: rgba(255, 216, 70, 0.4);
}

.source-map-point-boss::after,
.source-map-point-dungeon::after {
    inset: -15px;
    border-color: rgba(255, 230, 153, 0.4);
}

.source-map-point-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 13px);
    width: max-content;
    min-width: 150px;
    max-width: 220px;
    padding: 9px 10px;
    border: 1px solid rgba(232, 195, 113, 0.46);
    background:
        linear-gradient(135deg, rgba(18, 31, 20, 0.97), rgba(16, 12, 9, 0.98)),
        radial-gradient(circle at 12% 0%, rgba(139, 209, 141, 0.18), transparent 46%);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.42),
        inset 0 0 18px rgba(232, 195, 113, 0.06);
    color: var(--paper);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 6px) scale(0.96);
    transition: opacity 130ms ease, transform 130ms ease;
    z-index: 12;
}

.source-map-point-tip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 9px;
    height: 9px;
    border-right: 1px solid rgba(232, 195, 113, 0.46);
    border-bottom: 1px solid rgba(232, 195, 113, 0.46);
    background: rgba(16, 18, 12, 0.98);
    transform: translate(-50%, -4px) rotate(45deg);
}

.source-map-point-tip strong,
.source-map-point-tip span,
.source-map-point-tip em {
    display: block;
}

.source-map-point-tip strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 13px;
    line-height: 1.15;
    text-transform: uppercase;
}

.source-map-point-tip span {
    margin-top: 3px;
    color: var(--green-2);
    font-size: 11px;
    text-transform: uppercase;
}

.source-map-point-tip em {
    margin-top: 5px;
    color: rgba(244, 235, 208, 0.78);
    font-style: normal;
}

.source-map-point:hover,
.source-map-point:focus-visible {
    z-index: 20;
}

.source-map-point:hover .source-map-point-tip,
.source-map-point:focus-visible .source-map-point-tip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.source-map-point[data-mob-vnum] .source-map-point-tip {
    display: none;
}

.source-map-placeholder {
    min-height: inherit;
    height: 100%;
    display: grid;
    place-items: center;
    gap: 8px;
    color: rgba(232, 195, 113, 0.62);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 12px;
}

.source-map-secret {
    align-content: center;
    gap: 7px;
    padding: 24px;
    text-align: center;
}

.source-map-secret strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
}

.source-map-secret span {
    max-width: 220px;
    color: var(--muted);
    line-height: 1.35;
    text-transform: none;
}

.source-map-placeholder svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.source-map-foot {
    padding: 7px 9px;
    border-top: 1px solid rgba(232, 195, 113, 0.11);
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-page-grid {
    display: grid;
    gap: 14px;
}

.map-batch-sentinel {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        radial-gradient(circle at 50% 0, rgba(139, 209, 141, 0.1), transparent 58%),
        linear-gradient(180deg, rgba(25, 22, 17, 0.74), rgba(9, 10, 8, 0.78));
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.map-batch-sentinel span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(139, 209, 141, 0.32);
    color: var(--green);
    background: rgba(4, 12, 8, 0.78);
}

.map-batch-sentinel strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 14px;
}

.map-batch-sentinel em {
    color: var(--gold);
    font-style: normal;
}

.map-load-more {
    min-height: 38px;
    padding: 0 16px;
}

.map-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
    align-items: start;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        radial-gradient(circle at 0 0, rgba(139, 209, 141, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(24, 21, 17, 0.86), rgba(12, 12, 10, 0.94));
    box-shadow: inset 0 0 24px rgba(232, 195, 113, 0.035);
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 520px;
}

.map-card:hover {
    border-color: rgba(232, 195, 113, 0.34);
    box-shadow:
        0 0 0 1px rgba(139, 209, 141, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.28),
        inset 0 0 24px rgba(232, 195, 113, 0.04);
}

.map-card-preview {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(139, 209, 141, 0.08), transparent 52%),
        #060706;
    overflow: hidden;
}

.map-card-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.05) brightness(0.9);
}

.map-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    min-width: 0;
}

.map-card-title {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.map-card-title strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.map-card-title small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.map-layer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background:
        radial-gradient(circle at 0 50%, rgba(139, 209, 141, 0.08), transparent 44%),
        rgba(5, 8, 6, 0.44);
}

.map-layer-toggle {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(7, 7, 6, 0.68);
    color: var(--paper);
    padding: 5px 8px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        opacity 160ms ease,
        transform 160ms ease;
}

.map-layer-toggle:hover,
.map-layer-toggle:focus-visible {
    border-color: rgba(232, 195, 113, 0.42);
    transform: translateY(-1px);
}

.map-layer-toggle:not(.is-active) {
    opacity: 0.42;
    background: rgba(4, 4, 4, 0.52);
}

.map-layer-toggle span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-2);
}

.map-layer-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-layer-toggle strong {
    color: inherit;
    font-family: var(--font-display);
    font-size: 12px;
    text-transform: uppercase;
}

.map-layer-toggle em {
    color: var(--gold-2);
    font-style: normal;
    font-weight: 800;
}

.map-layer-toggle-mob span,
.map-layer-toggle-mob em {
    color: #ff806b;
}

.map-layer-toggle-boss span,
.map-layer-toggle-boss em {
    color: #ffce6c;
}

.map-layer-toggle-stone span,
.map-layer-toggle-stone em {
    color: #ffd95a;
}

.map-layer-toggle-dungeon span,
.map-layer-toggle-dungeon em,
.map-layer-toggle-npc span,
.map-layer-toggle-npc em {
    color: var(--green-2);
}

.map-stat-row,
.map-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.map-card-meta {
    margin: 0;
    color: rgba(244, 235, 208, 0.76);
    font-size: 13px;
}

.map-source-row span {
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(6, 6, 6, 0.42);
    color: var(--muted);
    padding: 5px 8px;
    font-size: 11px;
}

.map-mob-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.map-mob-pill {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 46px;
    border: 1px solid rgba(139, 209, 141, 0.13);
    background: rgba(5, 12, 8, 0.42);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.map-mob-pill:hover {
    border-color: rgba(139, 209, 141, 0.34);
    background: rgba(14, 28, 17, 0.56);
}

.map-mob-pill:disabled {
    cursor: default;
    opacity: 0.66;
}

.map-mob-pill:disabled:hover {
    border-color: rgba(139, 209, 141, 0.13);
    background: rgba(5, 12, 8, 0.42);
}

.map-mob-pill strong,
.map-mob-pill small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-mob-pill strong {
    color: var(--paper);
    font-weight: 800;
}

.map-mob-pill small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

@keyframes mapPointPulse {
    0%, 100% {
        transform: scale(0.82);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes mapIconFloat {
    0%, 100% {
        transform: translateY(0) scale(0.94);
    }
    50% {
        transform: translateY(-2px) scale(1.04);
    }
}

@keyframes mapPointSignal {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.7);
    }

    50% {
        opacity: 0.86;
        transform: scale(1.12);
    }
}

@keyframes mapPointRing {
    0% {
        transform: scale(0.4);
        opacity: 0.58;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.mob-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mob-stat {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: 9px 10px;
    border: 1px solid rgba(232, 195, 113, 0.11);
    background: rgba(7, 7, 7, 0.34);
}

.stat-icon {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--gold);
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(6, 6, 6, 0.44);
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mob-stat span {
    display: block;
    color: var(--soft);
    font-size: 11px;
}

.mob-stat strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    margin-top: 3px;
    font-weight: 800;
}

.resist-section {
    margin-top: 12px;
}

.resist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resist-chip,
.resist-empty {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(143, 178, 199, 0.2);
    background: rgba(143, 178, 199, 0.08);
    color: var(--muted);
    font-size: 12px;
}

.resist-chip strong {
    color: var(--steel);
}

.craft-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(240px, 0.74fr);
    gap: 12px;
    align-items: stretch;
    position: relative;
}

.tone-craft[open] .craft-flow::before {
    content: "";
    position: absolute;
    inset: -8px;
    pointer-events: none;
    background:
        radial-gradient(circle at 38% 18%, rgba(255, 240, 183, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 72%, rgba(215, 100, 85, 0.16) 0 2px, transparent 3px),
        radial-gradient(circle at 58% 34%, rgba(232, 195, 113, 0.12) 0 1px, transparent 2px);
    background-size: 120px 120px, 150px 150px, 90px 90px;
    opacity: 0.7;
    animation: forgeEmbers 2800ms linear infinite;
}

.tone-evolution[open] {
    border-color: rgba(136, 212, 176, 0.28);
    box-shadow: inset 0 0 28px rgba(89, 164, 125, 0.05), 0 0 28px rgba(89, 164, 125, 0.06);
}

.evolution-flow {
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) 76px minmax(190px, 0.75fr) minmax(280px, 1.25fr);
    gap: 12px;
    align-items: stretch;
    position: relative;
}

.tone-evolution[open] .evolution-flow::before {
    content: "";
    position: absolute;
    inset: -8px;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 26%, rgba(136, 212, 176, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 57% 60%, rgba(232, 195, 113, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 18%, rgba(143, 178, 199, 0.11) 0 1px, transparent 2px);
    background-size: 110px 110px, 150px 150px, 90px 90px;
    opacity: 0.72;
    animation: forgeEmbers 3000ms linear infinite;
}

.evolution-origin {
    border-color: rgba(143, 178, 199, 0.18);
}

.evolution-result {
    border-color: rgba(136, 212, 176, 0.32);
    background:
        linear-gradient(180deg, rgba(38, 74, 52, 0.22), rgba(10, 9, 8, 0.66)),
        rgba(7, 7, 7, 0.28);
}

.tone-evolution[open] .evolution-result {
    animation: evolutionGlow 2400ms ease-in-out infinite;
}

.evolution-materials {
    border-color: rgba(232, 195, 113, 0.18);
}

.evolution-arrow .craft-rune {
    color: var(--green);
    border-color: rgba(136, 212, 176, 0.34);
    background:
        linear-gradient(180deg, rgba(25, 57, 40, 0.76), rgba(9, 8, 7, 0.9)),
        rgba(8, 8, 8, 0.55);
    box-shadow: 0 0 18px rgba(136, 212, 176, 0.12);
}

.evolution-arrow .craft-arrow-line {
    background: linear-gradient(180deg, transparent, rgba(136, 212, 176, 0.62), transparent);
}

.evolution-arrow .craft-arrow-line::after {
    background: linear-gradient(180deg, transparent, rgba(207, 255, 229, 0.72), transparent);
}

.evolution-arrow .craft-arrow-head {
    color: var(--green);
    text-shadow: 0 0 12px rgba(136, 212, 176, 0.32);
}

.evolution-chain-card[open] {
    border-color: rgba(136, 212, 176, 0.36);
}

.evolution-chain-path {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(136, 212, 176, 0.18);
    background:
        radial-gradient(circle at 10% 20%, rgba(136, 212, 176, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(19, 45, 31, 0.32), rgba(8, 8, 7, 0.62));
}

.chain-node {
    display: inline-grid;
    grid-template-columns: 34px minmax(0, auto) 12px;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 4px 8px 4px 4px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(7, 7, 7, 0.42);
    color: var(--paper);
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.chain-node:hover {
    transform: translateY(-1px);
    border-color: rgba(136, 212, 176, 0.48);
    background: rgba(18, 37, 27, 0.72);
}

.chain-node-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(0, 0, 0, 0.34);
}

.chain-node-icon img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.chain-node span:last-of-type {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 12px;
}

.chain-node em,
.chain-more {
    color: var(--gold);
    font-style: normal;
    font-family: var(--font-title);
    font-weight: 800;
}

.chain-more {
    padding: 8px 10px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background: rgba(7, 7, 7, 0.34);
}

.evolution-step-list {
    display: grid;
    gap: 8px;
}

.evolution-incoming-box {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(136, 212, 176, 0.18);
    background:
        radial-gradient(circle at 12% 12%, rgba(136, 212, 176, 0.08), transparent 32%),
        rgba(4, 15, 10, 0.28);
}

.evolution-incoming-list .evolution-step {
    border-color: rgba(136, 212, 176, 0.22);
}

.evolution-step {
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(7, 7, 7, 0.3);
}

.evolution-step[open] {
    border-color: rgba(136, 212, 176, 0.28);
}

.evolution-step.is-major-evolution {
    border-color: rgba(232, 195, 113, 0.34);
    background:
        linear-gradient(90deg, rgba(232, 195, 113, 0.08), rgba(32, 112, 72, 0.08)),
        rgba(7, 7, 7, 0.34);
}

.evolution-step.is-major-evolution .evolution-step-number {
    border-color: rgba(232, 195, 113, 0.42);
    color: var(--gold);
    background: rgba(58, 42, 18, 0.62);
}

.evolution-step-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
}

.evolution-step-summary::-webkit-details-marker {
    display: none;
}

.evolution-step-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(136, 212, 176, 0.24);
    color: var(--green);
    background: rgba(12, 31, 21, 0.6);
    font-family: var(--font-title);
    font-weight: 800;
}

.evolution-step-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.evolution-step-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--paper);
    font-family: var(--font-title);
    font-size: 15px;
}

.evolution-step-title small {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
}

.evolution-bridge-badge {
    display: inline-grid;
    place-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(232, 195, 113, 0.34);
    color: var(--gold);
    background: rgba(55, 39, 13, 0.58);
    font-family: var(--font-title);
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.evolution-step[open] .accordion-chevron {
    transform: rotate(90deg);
}

.evolution-step-panel {
    padding: 0 10px 12px;
}

.craft-side {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background:
        linear-gradient(180deg, rgba(30, 25, 19, 0.68), rgba(8, 8, 8, 0.5)),
        rgba(7, 7, 7, 0.24);
}

.craft-result {
    border-color: rgba(232, 195, 113, 0.28);
    background:
        linear-gradient(180deg, rgba(73, 54, 24, 0.22), rgba(10, 9, 8, 0.66)),
        rgba(7, 7, 7, 0.28);
    box-shadow: inset 0 0 22px rgba(232, 195, 113, 0.05);
}

.tone-craft[open] .craft-result {
    animation: forgeGlow 2200ms ease-in-out infinite;
}

.craft-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.craft-node {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background:
        linear-gradient(180deg, rgba(22, 20, 17, 0.92), rgba(9, 8, 7, 0.92)),
        rgba(8, 8, 8, 0.36);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.craft-node:hover {
    border-color: rgba(232, 195, 113, 0.4);
    background:
        linear-gradient(180deg, rgba(44, 36, 24, 0.92), rgba(12, 10, 8, 0.94)),
        rgba(8, 8, 8, 0.42);
    box-shadow: 0 0 0 1px rgba(232, 195, 113, 0.05), 0 10px 22px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px);
}

.craft-node-reward {
    min-height: 88px;
    border-color: rgba(232, 195, 113, 0.28);
    background:
        linear-gradient(135deg, rgba(96, 70, 27, 0.3), rgba(12, 10, 8, 0.94) 58%),
        rgba(8, 8, 8, 0.42);
    box-shadow: inset 0 0 24px rgba(232, 195, 113, 0.06);
}

.tone-craft[open] .craft-node-reward {
    border-color: rgba(255, 240, 183, 0.42);
    box-shadow: inset 0 0 26px rgba(232, 195, 113, 0.1), 0 0 22px rgba(232, 195, 113, 0.09);
}

.tone-evolution[open] .craft-node-reward {
    border-color: rgba(136, 212, 176, 0.48);
    box-shadow: inset 0 0 26px rgba(136, 212, 176, 0.1), 0 0 22px rgba(136, 212, 176, 0.08);
}

.craft-node .item-icon {
    width: 40px;
    height: 40px;
}

.craft-node .item-icon img {
    max-width: 34px;
    max-height: 34px;
}

.craft-node-copy {
    min-width: 0;
}

.craft-node-copy strong,
.craft-node-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.craft-node-copy strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
}

.craft-node-copy small {
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.craft-arrow {
    min-height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 42px 1fr 28px;
    place-items: center;
    color: var(--gold-2);
}

.craft-rune {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.34);
    background:
        linear-gradient(180deg, rgba(57, 42, 20, 0.84), rgba(9, 8, 7, 0.9)),
        rgba(8, 8, 8, 0.55);
    box-shadow: 0 0 18px rgba(232, 195, 113, 0.12);
    animation: craftPulse 1800ms ease-in-out infinite;
}

.craft-rune svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.craft-arrow-line {
    width: 1px;
    height: 100%;
    min-height: 64px;
    display: block;
    background: linear-gradient(180deg, transparent, rgba(232, 195, 113, 0.68), transparent);
    position: relative;
    overflow: hidden;
}

.craft-arrow-line::after {
    content: "";
    position: absolute;
    inset: -38px 0 auto;
    height: 38px;
    background: linear-gradient(180deg, transparent, rgba(255, 240, 183, 0.82), transparent);
    animation: craftFlow 1500ms ease-in-out infinite;
}

.craft-arrow-head {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--gold-2);
    font-size: 30px;
    line-height: 1;
    transform: rotate(90deg);
    text-shadow: 0 0 12px rgba(232, 195, 113, 0.32);
}

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

.craft-meta-row span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(7, 7, 7, 0.34);
    color: var(--muted);
    font-size: 12px;
}

.craft-meta-row strong {
    color: var(--gold-2);
}

.drop-line,
.material-line {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 7px;
    background: rgba(8, 8, 8, 0.25);
    border: 1px solid rgba(232, 195, 113, 0.1);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-line:hover,
.material-line:hover {
    border-color: rgba(232, 195, 113, 0.28);
    background: rgba(30, 24, 16, 0.42);
    transform: translateX(2px);
}

.drop-line button,
.material-line button {
    all: unset;
    cursor: pointer;
    min-width: 0;
}

.drop-line button strong,
.material-line button strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-weight: 700;
}

.drop-line small,
.material-line small {
    display: block;
    color: var(--soft);
    margin-top: 2px;
}

.chance {
    color: var(--gold);
    font-size: 12px;
    white-space: nowrap;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
}

.section-title {
    margin: 18px 0 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--gold-2);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.overview-shelf {
    display: grid;
    gap: 8px;
}

.mini-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.mini-item {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(232, 195, 113, 0.13);
    background: rgba(8, 8, 8, 0.32);
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mini-item:hover {
    border-color: rgba(232, 195, 113, 0.34);
    background: rgba(30, 24, 16, 0.42);
    transform: translateY(-1px);
}

.mini-item .item-icon {
    place-self: center;
    flex: 0 0 42px;
    overflow: hidden;
}

.mini-item .item-icon img {
    display: block;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

.mini-item span,
.mini-item strong,
.mini-item small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-item strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 800;
}

.mini-item small {
    color: var(--soft);
    margin-top: 2px;
    font-size: 12px;
}

.trail-banner {
    min-height: 46px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background:
        linear-gradient(90deg, rgba(73, 54, 24, 0.28), rgba(9, 9, 9, 0.5)),
        rgba(7, 7, 7, 0.32);
    color: var(--muted);
    animation: cardIn 180ms ease both;
}

.trail-banner span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 34px;
    border: 1px dashed rgba(232, 195, 113, 0.3);
    color: var(--muted);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(31, 24, 16, 0.24), rgba(8, 8, 8, 0.34)),
        rgba(7, 7, 7, 0.22);
}

.empty-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid rgba(232, 195, 113, 0.24);
    background: rgba(6, 6, 6, 0.48);
}

.empty-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.empty span:last-child {
    max-width: 460px;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.pager button {
    padding: 0 14px;
}

.pager button:disabled {
    opacity: 0.38;
    cursor: default;
}

.inline-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        radial-gradient(circle at 50% 0, rgba(139, 209, 141, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(27, 23, 18, 0.82), rgba(10, 10, 8, 0.76));
    box-shadow: inset 0 0 22px rgba(232, 195, 113, 0.035);
}

.inline-pager button {
    min-width: 48px;
    padding: 0 12px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
}

.inline-pager button:disabled {
    opacity: 0.34;
    cursor: default;
}

.inline-pager span {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.inline-pager em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.modal[hidden] {
    display: none;
}

.feedback-modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.78)),
        rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100vw - 36px));
    max-height: min(820px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(135deg, rgba(95, 67, 27, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(32, 25, 18, 0.96), rgba(13, 12, 11, 0.98)),
        #16130f;
    box-shadow: var(--shadow);
    animation: modalIn 180ms ease both;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
}

.feedback-card {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    display: grid;
    gap: 0;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 195, 113, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(136, 212, 176, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(35, 27, 18, 0.98), rgba(11, 11, 10, 0.985)),
        #17130f;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 40px rgba(232, 195, 113, 0.08);
    animation: modalIn 180ms ease both;
}

.feedback-card .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    float: none;
    margin: 0;
}

.feedback-brand {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.feedback-brand img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(232, 195, 113, 0.2));
}

.feedback-brand span {
    width: 92px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 195, 113, 0.6), transparent);
}

.feedback-brand::after {
    content: "";
    width: 42px;
    height: 18px;
    border: 1px solid rgba(232, 195, 113, 0.28);
    border-top: 0;
    clip-path: polygon(8% 0, 92% 0, 72% 100%, 50% 62%, 28% 100%);
    background:
        radial-gradient(circle at 50% 20%, rgba(232, 195, 113, 0.5), transparent 44%),
        rgba(0, 0, 0, 0.34);
}

.feedback-form {
    place-items: center;
    display: grid;
    gap: 11px;
    padding: 22px 34px 24px;
}

.feedback-form h2 {
    margin: -2px 42px 0;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.05;
    color: var(--gold-2);
    text-align: center;
}

.feedback-form .eyebrow {
    text-align: center;
}

.feedback-intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
    max-width: 520px;
}

.feedback-rating {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0 4px;
}

.feedback-rating button {
    min-width: 0;
    min-height: 84px;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 6px;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background: rgba(4, 5, 4, 0.62);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.feedback-rating button:nth-child(1)::after { content: "★"; }
.feedback-rating button:nth-child(2)::after { content: "★★"; }
.feedback-rating button:nth-child(3)::after { content: "★★★"; }
.feedback-rating button:nth-child(4)::after { content: "★★★★"; }
.feedback-rating button:nth-child(5)::after { content: "★★★★★"; }

.feedback-rating button::after {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1px;
}

.feedback-rating button:hover,
.feedback-rating button.is-active {
    transform: translateY(-1px);
    border-color: rgba(139, 209, 141, 0.62);
    background: rgba(12, 35, 22, 0.78);
    box-shadow: inset 0 0 22px rgba(139, 209, 141, 0.08), 0 0 22px rgba(139, 209, 141, 0.1);
}

.feedback-face {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(232, 195, 113, 0.22);
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 30%),
        rgba(0, 0, 0, 0.48);
    color: var(--gold-2);
    font-size: 20px;
    line-height: 1;
    box-shadow: inset 0 0 16px rgba(232, 195, 113, 0.08);
}

.feedback-rating strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 18px;
}

.feedback-rating small {
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 10px;
}

.feedback-form label {
    width: 100%;
    display: grid;
    gap: 6px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(0, 0, 0, 0.48);
    color: var(--text);
    font: 600 14px/1.45 var(--font-ui);
    padding: 10px 12px;
    outline: none;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 96px;
    max-height: 180px;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: rgba(139, 209, 141, 0.56);
    box-shadow: 0 0 0 2px rgba(139, 209, 141, 0.08);
}

.feedback-form label small {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
}

.feedback-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.feedback-submit {
    min-height: 42px;
    border: 1px solid rgba(232, 195, 113, 0.34);
    background:
        linear-gradient(135deg, rgba(232, 195, 113, 0.22), rgba(84, 55, 20, 0.32)),
        rgba(17, 14, 10, 0.94);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
}

.feedback-submit:disabled {
    cursor: progress;
    opacity: 0.58;
}

.feedback-status {
    color: var(--muted);
    font-weight: 700;
}

.feedback-status[data-tone="success"] {
    color: var(--green);
}

.feedback-status[data-tone="error"] {
    color: var(--red);
}

.feedback-status[data-tone="info"] {
    color: var(--steel);
}

.modal-card:has(.owner-source-box.has-map-panel) {
    width: min(1480px, calc(100vw - 48px));
}

.modal-close {
    position: sticky;
    top: 10px;
    float: right;
    width: 38px;
    height: 38px;
    margin: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.62);
    color: var(--gold-2);
    cursor: pointer;
    z-index: 2;
}

.modal-content {
    padding: 20px;
}

.modal-item-sheet {
    display: grid;
    gap: 16px;
}

.modal-item-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(232, 195, 113, 0.14);
}

.modal-item-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 195, 113, 0.26);
    background: rgba(6, 6, 6, 0.62);
    box-shadow: inset 0 0 22px rgba(232, 195, 113, 0.08), 0 0 22px rgba(232, 195, 113, 0.08);
}

.modal-item-icon img {
    max-width: 58px;
    max-height: 58px;
}

.modal-creature-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-creature-icon-boss {
    color: var(--gold-2);
    box-shadow: inset 0 0 26px rgba(232, 195, 113, 0.12), 0 0 28px rgba(232, 195, 113, 0.12);
}

.modal-creature-icon-mob {
    color: #9bdcff;
    box-shadow: inset 0 0 24px rgba(129, 205, 255, 0.1), 0 0 22px rgba(129, 205, 255, 0.08);
}

.modal-item-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.05;
    color: var(--gold-2);
}

.modal-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -4px;
}

.modal-badge-row,
.modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.modal-meta-row {
    margin-top: -4px;
}

.modal-meta-row span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(7, 7, 7, 0.3);
    color: var(--soft);
    font-size: 12px;
}

.modal-meta-row strong {
    color: var(--gold-2);
}

.modal-desc {
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.1);
    background: rgba(6, 6, 6, 0.24);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.28fr);
    gap: 12px;
}

.modal-info-grid:has(.owner-source-box.has-map-panel) {
    grid-template-columns: minmax(260px, 0.42fr) minmax(720px, 1.58fr);
}

.modal-card:has(.owner-source-box.has-map-panel) .modal-info-grid {
    grid-template-columns: minmax(250px, 0.35fr) minmax(0, 1.65fr);
}

.modal-card:has(.owner-source-box.has-map-panel) .owner-source-box.has-map-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(270px, 0.62fr) minmax(520px, 1.38fr);
    overflow: visible;
}

.modal-info-box {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(7, 7, 7, 0.28);
}

.modal-creature-sheet .source-map-panel {
    width: 100%;
    max-height: none;
}

.modal-creature-sheet .source-map-stack {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compare-sheet {
    display: grid;
    gap: 16px;
}

.compare-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background:
        radial-gradient(circle at 50% 0, rgba(232, 195, 113, 0.08), transparent 56%),
        rgba(7, 7, 7, 0.28);
}

.compare-picker-grid label {
    display: grid;
    gap: 7px;
}

.compare-picker-grid span {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.compare-picker-grid input {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(232, 195, 113, 0.22);
    background: rgba(0, 0, 0, 0.58);
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.compare-picker-grid input:focus {
    border-color: rgba(232, 195, 113, 0.62);
    box-shadow: 0 0 0 2px rgba(232, 195, 113, 0.08);
}

.compare-results {
    display: grid;
    gap: 12px;
}

.compare-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background: rgba(6, 6, 6, 0.28);
    color: var(--muted);
}

.compare-empty svg {
    width: 42px;
    height: 42px;
    color: var(--gold-2);
    fill: none;
    stroke: currentColor;
}

.compare-empty strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 20px;
}

.compare-empty p {
    max-width: 420px;
    margin: 0;
}

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

.compare-item-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.16);
    background:
        linear-gradient(135deg, rgba(139, 209, 141, 0.08), transparent 40%),
        rgba(8, 8, 7, 0.46);
}

.compare-item-card strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.15;
}

.compare-item-card small {
    color: var(--muted);
}

.compare-section {
    display: grid;
    gap: 8px;
}

.compare-table {
    display: grid;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(7, 7, 7, 0.26);
}

.compare-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(78px, auto);
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(232, 195, 113, 0.08);
}

.compare-row:last-child {
    border-bottom: 0;
}

.compare-row-head {
    min-height: 38px;
    background: rgba(232, 195, 113, 0.06);
    color: var(--gold-2);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.compare-row span {
    color: var(--muted);
}

.compare-row strong {
    min-width: 0;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-row em {
    color: var(--muted);
    font-style: normal;
}

.compare-muted {
    color: rgba(217, 203, 177, 0.45);
}

.compare-delta {
    justify-self: end;
    padding: 3px 7px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    color: var(--muted);
    background: rgba(0, 0, 0, 0.26);
    font-size: 12px;
}

.compare-delta-up {
    border-color: rgba(128, 232, 141, 0.28);
    color: #91e99e;
}

.compare-delta-down {
    border-color: rgba(235, 104, 88, 0.28);
    color: #ef8a78;
}

.compare-delta-even {
    color: var(--gold-2);
}

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

.compare-source-grid > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(7, 7, 7, 0.28);
}

.compare-source-grid span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}

.compare-source-grid strong {
    color: var(--gold-2);
}

.modal.modal-story-mode .modal-card {
    width: min(1160px, calc(100vw - 36px));
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 195, 113, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(80, 36, 18, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(28, 22, 17, 0.98), rgba(12, 10, 8, 0.99)),
        #14100d;
}

.story-book-sheet {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.story-book-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 46px 12px 0;
    border-bottom: 1px solid rgba(232, 195, 113, 0.16);
}

.story-book-head h2 {
    margin: 0;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.08;
}

.story-book-counter {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(232, 195, 113, 0.2);
    background: rgba(7, 7, 7, 0.34);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 900;
}

.story-book {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 14px;
    align-items: center;
    perspective: 1800px;
}

.book-spread {
    position: relative;
    min-height: min(62vh, 610px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    isolation: isolate;
    transform-style: preserve-3d;
    perspective: 1800px;
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.42),
        0 3px 0 rgba(232, 195, 113, 0.08);
}

.book-spread::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    background:
        linear-gradient(90deg, transparent 43%, rgba(0, 0, 0, 0.48) 50%, transparent 57%),
        radial-gradient(circle at 50% 50%, rgba(232, 195, 113, 0.08), transparent 46%);
}

.story-book-turn-next .book-spread::after,
.story-book-turn-prev .book-spread::after {
    animation: spreadTurnShade 880ms cubic-bezier(0.18, 0.72, 0.2, 1) both;
}

.book-stack {
    position: absolute;
    top: 16px;
    bottom: -8px;
    width: calc(50% - 10px);
    border: 1px solid rgba(232, 195, 113, 0.1);
    background: rgba(42, 31, 20, 0.34);
    transform: translateZ(-18px);
    z-index: -1;
}

.book-stack::before,
.book-stack::after {
    content: "";
    position: absolute;
    inset: 8px -8px -8px 8px;
    border: 1px solid rgba(232, 195, 113, 0.08);
    background: rgba(21, 16, 12, 0.44);
}

.book-stack::after {
    inset: 16px -16px -16px 16px;
    opacity: 0.72;
}

.book-stack-left {
    left: 10px;
    transform: translateZ(-18px) rotate(-0.8deg);
}

.book-stack-right {
    right: 10px;
    transform: translateZ(-18px) rotate(0.8deg);
}

.book-page {
    position: relative;
    min-width: 0;
    min-height: min(62vh, 610px);
    overflow: hidden;
    border: 1px solid rgba(232, 195, 113, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 240, 183, 0.055), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.22)),
        linear-gradient(180deg, rgba(42, 33, 24, 0.98), rgba(18, 14, 11, 0.99));
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.book-page::before {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(232, 195, 113, 0.11);
    pointer-events: none;
}

.book-page-left {
    grid-column: 1;
    transform-origin: right center;
    box-shadow: inset -28px 0 34px rgba(0, 0, 0, 0.32);
}

.book-page-right {
    grid-column: 3;
    transform-origin: left center;
    box-shadow: inset 28px 0 34px rgba(0, 0, 0, 0.28);
}

.book-page-inner {
    position: relative;
    height: 100%;
    min-height: min(62vh, 610px);
    display: flex;
    flex-direction: column;
    padding: 26px 28px 24px;
}

.book-page-kicker {
    margin-bottom: 10px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.book-page h3 {
    margin: 0 0 14px;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.12;
}

.book-page-text {
    min-height: 0;
    overflow: hidden;
    padding-right: 8px;
    scrollbar-color: rgba(232, 195, 113, 0.42) rgba(7, 7, 7, 0.24);
}

.book-page-text p {
    margin: 0 0 12px;
    color: #eadfc8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15.5px;
    line-height: 1.52;
}

.book-page-number {
    margin-top: auto;
    padding-top: 12px;
    color: rgba(232, 195, 113, 0.72);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
}

.book-page-left .book-page-number {
    align-self: flex-start;
}

.book-page-right .book-page-number {
    align-self: flex-end;
}

.book-page-empty .book-page-inner {
    display: grid;
    place-items: center;
}

.book-page-ornament {
    width: 66px;
    height: 66px;
    display: inline-grid;
    place-items: center;
    color: rgba(232, 195, 113, 0.38);
}

.book-page-ornament svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.book-spine {
    grid-column: 2;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(232, 195, 113, 0.28), transparent);
    box-shadow:
        -12px 0 24px rgba(0, 0, 0, 0.36),
        12px 0 24px rgba(0, 0, 0, 0.36);
    z-index: 2;
}

.page-flip-sheet {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(50% - 0.5px);
    opacity: 1;
    pointer-events: none;
    z-index: 7;
    transform-style: preserve-3d;
    will-change: transform;
    contain: paint;
}

.story-book-turn-next .page-flip-sheet {
    right: 0;
    transform-origin: left center;
    animation: pageFlipNext 640ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.story-book-turn-prev .page-flip-sheet {
    left: 0;
    transform-origin: right center;
    animation: pageFlipPrev 640ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.page-flip-sheet::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 7px;
    z-index: 5;
    background: linear-gradient(90deg, rgba(255, 240, 183, 0.24), rgba(0, 0, 0, 0.46), rgba(255, 255, 255, 0.05));
    transform: translateZ(3px);
}

.story-book-turn-next .page-flip-sheet::before {
    left: -3px;
}

.story-book-turn-prev .page-flip-sheet::before {
    right: -3px;
}

.page-flip-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(232, 195, 113, 0.3);
    background:
        linear-gradient(180deg, rgba(255, 240, 183, 0.06), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.2)),
        linear-gradient(180deg, rgba(42, 33, 24, 0.99), rgba(18, 14, 11, 0.99));
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    contain: paint;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.page-flip-face::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 26%, rgba(255, 240, 183, 0.08) 72%, rgba(0, 0, 0, 0.34)),
        radial-gradient(circle at 14% 50%, rgba(255, 240, 183, 0.12), transparent 36%);
    mix-blend-mode: screen;
    opacity: 0.4;
}

.page-flip-front {
    transform: translateZ(1px);
}

.page-flip-back {
    transform: rotateY(180deg) translateZ(1px);
}

.page-flip-face .book-page-inner {
    min-height: 100%;
    height: 100%;
}

.page-flip-face .book-page-kicker,
.page-flip-face h3,
.page-flip-face .book-page-text,
.page-flip-face .book-page-number {
    transform: translateZ(2px);
}

.story-book-turn-next .book-page-right {
    animation: pageSettleRight 520ms ease both;
}

.story-book-turn-prev .book-page-left {
    animation: pageSettleLeft 520ms ease both;
}

.story-book-turn-next .book-page-left,
.story-book-turn-prev .book-page-right {
    animation: pageReceiveLight 520ms ease both;
}

.story-page-nav {
    width: 54px;
    height: 112px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(232, 195, 113, 0.18);
    background:
        linear-gradient(180deg, rgba(51, 38, 21, 0.7), rgba(7, 7, 7, 0.58)),
        rgba(7, 7, 7, 0.38);
    color: var(--gold-2);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.story-page-nav:disabled {
    opacity: 0.32;
    cursor: default;
    transform: none;
}

.story-page-nav:hover {
    border-color: rgba(255, 240, 183, 0.55);
    box-shadow: 0 0 22px rgba(232, 195, 113, 0.14);
    transform: translateY(-1px);
}

.story-page-nav:disabled:hover {
    border-color: rgba(232, 195, 113, 0.18);
    box-shadow: none;
    transform: none;
}

.story-page-nav svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.related-box {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.14);
    background:
        linear-gradient(180deg, rgba(31, 24, 16, 0.2), rgba(7, 7, 7, 0.28)),
        rgba(7, 7, 7, 0.2);
}

.related-list,
.related-card-grid {
    display: grid;
    gap: 8px;
}

.related-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(139, 209, 141, 0.14);
    background: rgba(7, 7, 7, 0.28);
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.related-card:hover {
    border-color: rgba(139, 209, 141, 0.34);
    background: rgba(20, 32, 22, 0.44);
    transform: translateY(-1px);
}

.related-card span,
.related-card strong,
.related-card small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-card strong {
    color: var(--gold-2);
    font-weight: 800;
}

.related-card small {
    color: var(--muted);
    margin-top: 2px;
    font-size: 12px;
}

.item-tooltip {
    position: fixed;
    z-index: 140;
    width: min(370px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(232, 195, 113, 0.34);
    background:
        radial-gradient(circle at 12% 0, rgba(232, 195, 113, 0.15), transparent 32%),
        radial-gradient(circle at 100% 16%, rgba(139, 209, 141, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(32, 25, 18, 0.98), rgba(8, 9, 8, 0.985)),
        #111;
    color: var(--text);
    box-shadow:
        inset 0 0 28px rgba(232, 195, 113, 0.035),
        0 18px 42px rgba(0, 0, 0, 0.52),
        0 0 26px rgba(232, 195, 113, 0.08);
    pointer-events: none;
    animation: tooltipIn 120ms ease both;
}

.item-tooltip[hidden] {
    display: none;
}

.tooltip-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-bottom: 8px;
}

.tooltip-head .item-icon,
.tooltip-head .accordion-icon {
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.tooltip-head .item-icon img,
.tooltip-head .accordion-icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.tooltip-head .accordion-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tooltip-head span,
.tooltip-head strong,
.tooltip-head small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tooltip-head strong {
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
}

.tooltip-head small {
    color: var(--soft);
    margin-top: 2px;
    font-size: 12px;
}

.item-tooltip p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.tooltip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 8px;
}

.tooltip-tag {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(7, 7, 7, 0.34);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.tooltip-tag-gold {
    border-color: rgba(232, 195, 113, 0.26);
    color: var(--gold-2);
}

.tooltip-tag-green {
    border-color: rgba(139, 209, 141, 0.24);
    background: rgba(5, 24, 14, 0.34);
    color: var(--green);
}

.tooltip-effects {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.tooltip-effects span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    padding: 4px 6px;
    border: 1px solid rgba(232, 195, 113, 0.1);
    background: rgba(7, 7, 7, 0.3);
    color: var(--muted);
    font-size: 12px;
}

.tooltip-effects strong {
    color: var(--gold-2);
}

.tooltip-source-row,
.tooltip-stat-grid,
.tooltip-resists {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.tooltip-source-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tooltip-source-row span,
.tooltip-stat,
.tooltip-resists span {
    min-width: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    border: 1px solid rgba(232, 195, 113, 0.1);
    background: rgba(7, 7, 7, 0.3);
    color: var(--muted);
    font-size: 12px;
}

.tooltip-source-row strong,
.tooltip-stat strong,
.tooltip-resists strong,
.tooltip-coords strong {
    color: var(--gold-2);
}

.tooltip-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tooltip-stat em {
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tooltip-muted {
    color: var(--muted);
    font-size: 12px;
}

.tooltip-coords {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgba(232, 195, 113, 0.12);
}

.item-tooltip-skill {
    border-color: rgba(143, 223, 163, 0.34);
    background:
        radial-gradient(circle at 14% 0%, rgba(143, 223, 163, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(30, 25, 18, 0.96), rgba(8, 8, 8, 0.98));
}

.is-compact {
    gap: 6px;
}

.is-compact .accordion-summary {
    min-height: 48px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.is-compact .accordion-icon {
    width: 34px;
    height: 34px;
}

.is-compact .accordion-icon img {
    max-width: 28px;
    max-height: 28px;
}

.is-compact .accordion-title strong {
    font-size: 14px;
}

.is-compact .type-badge,
.is-compact .accordion-title small {
    font-size: 10px;
}

.source-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.source-item {
    border: 1px solid rgba(232, 195, 113, 0.12);
    background: rgba(255, 255, 255, 0.025);
    padding: 10px;
}

.source-item strong {
    color: var(--gold-2);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkDrift {
    0% {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(0.6);
    }

    14% {
        opacity: 0.75;
    }

    72% {
        opacity: 0.34;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--dx), calc(var(--dy) * -1), 0) scale(1.25);
    }
}

@keyframes runeDrift {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0) rotate(0deg) scale(0.72);
    }

    18% {
        opacity: 0.38;
    }

    68% {
        opacity: 0.24;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--dx), calc(var(--dy) * -1), 0) rotate(calc(var(--spin) * 140deg)) scale(1.08);
    }
}

@keyframes sparkFlicker {
    0%,
    100% {
        filter: brightness(0.86);
    }

    45% {
        filter: brightness(1.32);
    }
}

@keyframes runeFlicker {
    0%,
    100% {
        filter: brightness(0.78) drop-shadow(0 0 4px rgba(232, 195, 113, 0.2));
    }

    50% {
        filter: brightness(1.34) drop-shadow(0 0 10px rgba(232, 195, 113, 0.44));
    }
}

@keyframes lightSweep {
    0% {
        opacity: 0;
        transform: translateX(-120%);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

@keyframes iconPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(232, 195, 113, 0.22));
    }

    50% {
        filter: drop-shadow(0 0 13px rgba(232, 195, 113, 0.58));
    }
}

@keyframes forgeEmbers {
    from {
        background-position: 0 20px, 30px 60px, 10px 0;
    }

    to {
        background-position: 40px -120px, -30px -90px, 70px -110px;
    }
}

@keyframes forgeGlow {
    0%,
    100% {
        box-shadow: inset 0 0 22px rgba(232, 195, 113, 0.06), 0 0 0 rgba(232, 195, 113, 0);
    }

    50% {
        box-shadow: inset 0 0 32px rgba(232, 195, 113, 0.14), 0 0 22px rgba(232, 195, 113, 0.1);
    }
}

@keyframes evolutionGlow {
    0%,
    100% {
        box-shadow: inset 0 0 22px rgba(136, 212, 176, 0.06), 0 0 0 rgba(136, 212, 176, 0);
    }

    50% {
        box-shadow: inset 0 0 34px rgba(136, 212, 176, 0.14), 0 0 22px rgba(136, 212, 176, 0.1);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pageFlipNext {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 16px) rotateY(0deg);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08);
    }

    28% {
        transform: translate3d(-6px, 0, 30px) rotateY(-52deg);
        box-shadow: -18px 0 28px rgba(0, 0, 0, 0.25);
    }

    56% {
        transform: translate3d(-10px, 0, 42px) rotateY(-112deg);
        box-shadow: -34px 0 44px rgba(0, 0, 0, 0.46);
    }

    82% {
        opacity: 1;
        transform: translate3d(-4px, 0, 20px) rotateY(-166deg);
        box-shadow: -12px 0 24px rgba(0, 0, 0, 0.24);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 0, 4px) rotateY(-180deg);
        box-shadow: none;
    }
}

@keyframes pageFlipPrev {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 16px) rotateY(0deg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
    }

    28% {
        transform: translate3d(6px, 0, 30px) rotateY(52deg);
        box-shadow: 18px 0 28px rgba(0, 0, 0, 0.25);
    }

    56% {
        transform: translate3d(10px, 0, 42px) rotateY(112deg);
        box-shadow: 34px 0 44px rgba(0, 0, 0, 0.46);
    }

    82% {
        opacity: 1;
        transform: translate3d(4px, 0, 20px) rotateY(166deg);
        box-shadow: 12px 0 24px rgba(0, 0, 0, 0.24);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 0, 4px) rotateY(180deg);
        box-shadow: none;
    }
}

@keyframes pageSettleRight {
    0% {
        transform: translate3d(0, 0, -6px) rotateY(1.2deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotateY(0);
    }
}

@keyframes pageSettleLeft {
    0% {
        transform: translate3d(0, 0, -6px) rotateY(-1.2deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotateY(0);
    }
}

@keyframes pageReceiveLight {
    0%,
    100% {
        opacity: 1;
    }

    48% {
        opacity: 0.86;
    }
}

@keyframes spreadTurnShade {
    0%,
    100% {
        opacity: 0;
    }

    46% {
        opacity: 0.72;
    }
}

@keyframes tooltipIn {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes headerSweep {
    0%,
    62% {
        transform: translateX(-120%);
    }

    82%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes openSweep {
    0% {
        opacity: 0;
        transform: translateX(-80%);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(80%);
    }
}

@keyframes craftPulse {
    0%,
    100% {
        box-shadow: 0 0 16px rgba(232, 195, 113, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 28px rgba(232, 195, 113, 0.24);
        transform: scale(1.04);
    }
}

@keyframes craftFlow {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(128px);
    }
}

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

    .sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .sidebar-title {
        display: none;
    }

    .nav-pill {
        width: auto;
        white-space: nowrap;
        margin: 0;
    }

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

    .guide-hero,
    .inventory-guide-hero,
    .inventory-preview-panel,
    .guide-chapter-grid,
    .guide-copy-card,
    .guide-map-card,
    .guide-layout,
    .guide-race-card,
    .guide-stage-card,
    .guide-upgrade-grid,
    .systems-hero,
    .system-card summary,
    .system-card-body {
        grid-template-columns: 1fr;
    }

    .system-card summary {
        align-items: start;
    }

    .system-card-preview {
        width: 100%;
        height: 150px;
    }

    .system-gallery-card img {
        max-height: 280px;
    }

    .system-image-missing {
        min-height: 180px;
    }

    .guide-stage-level {
        min-height: 54px;
        border-right: 0;
        border-bottom: 1px solid rgba(232, 195, 113, 0.18);
    }

    .guide-stage-body {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .guide-subnav {
        position: static;
        order: -1;
    }

    .guide-subnav-list,
    .guide-home-grid,
    .apprentice-stage-grid,
    .inventory-guide-grid,
    .inventory-tips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advanced-search-panel,
    .advanced-search-grid {
        grid-template-columns: 1fr;
    }

    .advanced-search-actions {
        flex-wrap: wrap;
    }

    .overview-hero {
        grid-template-columns: 1fr;
    }

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

    .story-book {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .book-page-inner {
        padding: 22px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .compare-picker-grid,
    .compare-results-grid,
    .compare-source-grid {
        grid-template-columns: 1fr;
    }

    .compare-row {
        grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(64px, auto);
    }

    .related-grid,
    .upgrade-summary {
        grid-template-columns: 1fr;
    }

    .item-list-grid,
    .mob-stat-grid,
    .variant-list,
    .owner-source-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-source-box.has-map-panel {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .source-map-canvas {
        aspect-ratio: 16 / 9;
    }

    .map-card {
        grid-template-columns: 1fr;
    }

    .map-card-preview {
        min-height: 0;
    }

    .craft-flow,
    .evolution-flow {
        grid-template-columns: 1fr;
    }

    .chain-node {
        width: 100%;
        grid-template-columns: 34px minmax(0, 1fr) 12px;
    }

    .chain-node span:last-of-type {
        max-width: none;
    }

    .craft-arrow {
        min-height: 58px;
        grid-template-columns: 42px minmax(64px, 1fr) 28px;
        grid-template-rows: 1fr;
    }

    .craft-arrow-line {
        width: 100%;
        height: 1px;
        min-height: 1px;
        background: linear-gradient(90deg, transparent, rgba(232, 195, 113, 0.68), transparent);
    }

    .evolution-arrow .craft-arrow-line {
        background: linear-gradient(90deg, transparent, rgba(136, 212, 176, 0.62), transparent);
    }

    .craft-arrow-line::after {
        inset: 0 auto 0 -38px;
        width: 38px;
        height: auto;
        background: linear-gradient(90deg, transparent, rgba(255, 240, 183, 0.82), transparent);
        animation-name: craftFlowMobile;
    }

    .evolution-arrow .craft-arrow-line::after {
        background: linear-gradient(90deg, transparent, rgba(207, 255, 229, 0.72), transparent);
    }

    .craft-arrow-head {
        transform: none;
    }

    .wiki-footer {
        grid-template-columns: 1fr;
    }

    .wiki-footer-mark,
    .wiki-footer-copy {
        justify-content: center;
        justify-items: center;
        text-align: center;
    }

    .wiki-footer-links,
    .wiki-footer-support {
        justify-content: center;
    }

    .feedback-card {
        width: min(720px, calc(100vw - 28px));
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 18px, 1440px);
        padding-top: 9px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand img {
        width: 128px;
        height: 48px;
    }

    .top-actions {
        width: 100%;
    }

    .top-actions a,
    .top-actions button {
        flex: 1;
        justify-content: center;
    }

    .feedback-form {
        padding: 22px 16px 18px;
    }

    .feedback-brand img {
        width: 70px;
        height: 70px;
    }

    .feedback-form h2 {
        font-size: 24px;
    }

    .feedback-rating {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-box {
        grid-template-columns: minmax(0, 1fr) 42px 42px;
    }

    .search-box .search-filter-btn {
        min-width: 42px;
    }

    .smart-search-grid {
        grid-template-columns: 1fr;
    }

    .smart-search-head h2 {
        font-size: 20px;
    }

    .smart-search-result {
        grid-template-columns: 34px minmax(0, 1fr) 18px;
    }

    .smart-search-result > em {
        display: none;
    }

    .content-panel {
        padding: 12px;
    }

    h1 {
        font-size: 34px;
    }

    .overview-hero {
        min-height: 0;
        padding: 14px;
    }

    .overview-hero h2 {
        font-size: 34px;
    }

    .guide-hero h2 {
        font-size: 32px;
    }

    .guide-quick-nav,
    .guide-hero-actions {
        display: grid;
    }

    .guide-subnav-list,
    .guide-home-grid,
    .apprentice-stage-grid,
    .inventory-guide-grid,
    .inventory-tips-grid,
    .guide-skill-group-head {
        grid-template-columns: 1fr;
    }

    .guide-subnav-list button,
    .guide-home-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .guide-race-art {
        min-height: 190px;
    }

    .guide-race-art img {
        height: 190px;
    }

    .guide-race-body {
        padding: 14px;
    }

    .guide-race-tabs button {
        flex: 1 1 130px;
    }

    .guide-quick-nav button,
    .guide-hero-actions button {
        width: 100%;
        justify-content: center;
    }

    .guide-chapter,
    .class-guide-section,
    .apprentice-guide-section,
    .inventory-guide-hero,
    .inventory-preview-panel {
        padding: 12px;
    }

    .inventory-flow-strip {
        display: grid;
    }

    .inventory-guide-limits div {
        grid-template-columns: 1fr;
    }

    .inventory-preview-copy {
        padding: 0;
    }

    .inventory-preview-frame img {
        max-height: 520px;
    }

    .apprentice-intro,
    .apprentice-stage-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .apprentice-stage-head .apprentice-step {
        grid-row: 1 / span 2;
    }

    .apprentice-stage-head .item-icon {
        width: 38px;
        height: 38px;
    }

    .apprentice-stage-head em {
        display: none;
    }

    .guide-chapter-head {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .guide-level-badge {
        min-height: 50px;
        font-size: 16px;
    }

    .guide-chapter h2 {
        font-size: 22px;
    }

    .guide-visual-slot,
    .guide-map-preview {
        min-height: 210px;
    }

    .story-rotator {
        min-height: 198px;
    }

    .story-slide {
        grid-template-columns: 1fr;
    }

    .story-index {
        width: 44px;
        height: 44px;
    }

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

    .story-open-btn {
        width: 100%;
        justify-content: center;
    }

    .modal.modal-story-mode {
        padding: 10px;
    }

    .story-book-sheet {
        padding: 14px;
    }

    .story-book-head {
        display: grid;
        padding-right: 42px;
    }

    .story-book {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .book-spread {
        grid-column: 1 / -1;
        grid-row: 1;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        max-height: min(70vh, 620px);
        overflow: auto;
    }

    .book-spine,
    .book-stack,
    .page-flip-sheet {
        display: none;
    }

    .book-page,
    .book-page-inner {
        min-height: 380px;
    }

    .book-page-left,
    .book-page-right {
        grid-column: 1;
        box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.24);
    }

    .book-page-inner {
        padding: 20px;
    }

    .book-page h3 {
        font-size: 20px;
    }

    .book-page-text p {
        font-size: 15px;
    }

    .story-page-nav {
        grid-row: 2;
        width: 100%;
        height: 42px;
    }

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

    .item-list-grid,
    .mob-stat-grid,
    .variant-list,
    .effect-grid,
    .owner-source-list {
        grid-template-columns: 1fr;
    }

    .source-map-title {
        display: grid;
    }

    .source-map-title span {
        min-width: 0;
    }

    .map-card-preview {
        min-height: 0;
    }

    .map-card-body {
        padding: 12px;
    }

    .map-card-title strong {
        font-size: 17px;
    }

    .map-mob-list {
        grid-template-columns: 1fr;
    }

    .accordion-summary {
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        padding: 8px;
    }

    .accordion-icon {
        width: 34px;
        height: 34px;
    }

    .accordion-icon img {
        max-width: 29px;
        max-height: 29px;
    }

    .modal-item-head {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .modal-item-icon {
        width: 58px;
        height: 58px;
    }

    .modal-item-icon img {
        max-width: 46px;
        max-height: 46px;
    }

    .modal-item-head h2 {
        font-size: 22px;
    }

    .compare-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .compare-row-head {
        display: none;
    }

    .compare-row strong {
        white-space: normal;
    }

    .compare-delta {
        justify-self: start;
    }

    .compare-item-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .compare-item-card .copy-link-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .tool-panel {
        display: grid;
        align-items: stretch;
    }

    .tool-group {
        min-width: 0;
    }

    .tool-select,
    .tool-mini,
    .tool-select select,
    .tool-mini input,
    .tool-toggle {
        width: 100%;
    }

    .item-family-card .accordion-summary {
        grid-template-columns: 38px 34px minmax(0, 1fr) 24px;
    }

    .craft-side {
        padding: 10px;
    }

    .craft-material-grid {
        grid-template-columns: 1fr;
    }

    .craft-node {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 54px;
    }

    .craft-node .item-icon {
        width: 36px;
        height: 36px;
    }

    .craft-node .item-icon img {
        max-width: 30px;
        max-height: 30px;
    }
}

@keyframes craftFlowMobile {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(128px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-layer,
    .scroll-progress,
    body::after {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
