:root {
    --bg: #050714;
    --bg-soft: #11182f;
    --panel: rgba(12, 14, 31, 0.88);
    --panel-strong: rgba(9, 11, 24, 0.97);
    --line: rgba(43, 245, 255, 0.2);
    --line-bright: rgba(255, 43, 163, 0.5);
    --text: #f2f7ff;
    --muted: #9ca7c7;
    --accent: #2bf5ff;
    --accent-strong: #ff2ba3;
    --accent-warm: #ffe66d;
    --danger: #ff5d88;
    --success: #67ffc3;
    --shadow: 0 24px 72px rgba(0, 0, 0, 0.56);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Rajdhani", sans-serif;
    background:
        radial-gradient(circle at 14% 16%, rgba(43, 245, 255, 0.18), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(255, 43, 163, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(126, 84, 255, 0.18), transparent 36%),
        linear-gradient(180deg, #040611 0%, #070a18 52%, #050612 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 4px, 80px 80px;
    opacity: 0.18;
    mix-blend-mode: screen;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.page-shell::before {
    top: 12%;
    left: -8%;
    width: 28vw;
    height: 28vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 245, 255, 0.14), transparent 72%);
}

.page-shell::after {
    right: -6%;
    bottom: 10%;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 43, 163, 0.14), transparent 74%);
}

.backdrop-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(43, 245, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 245, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 43, 163, 0.05), transparent 55%);
    background-size: 44px 44px, 44px 44px, 100% 100%;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 94%);
    opacity: 0.95;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 3vw, 44px);
    background: rgba(7, 10, 24, 0.82);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(43, 245, 255, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.topbar::after {
    content: "";
    position: absolute;
    left: clamp(20px, 3vw, 44px);
    right: clamp(20px, 3vw, 44px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 245, 255, 0.7), rgba(255, 43, 163, 0.7), transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(43, 245, 255, 0.22), rgba(255, 43, 163, 0.2)),
        rgba(11, 13, 27, 0.96);
    border: 1px solid rgba(43, 245, 255, 0.48);
    box-shadow:
        inset 0 0 24px rgba(43, 245, 255, 0.14),
        0 0 24px rgba(255, 43, 163, 0.1);
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-shadow: 0 0 16px rgba(43, 245, 255, 0.45);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong,
.page-header h1,
.hero-copy h1,
.feature-card h2,
.panel-header h2,
.metric-value {
    font-family: "Orbitron", sans-serif;
}

.brand-copy strong {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.22em;
    background:
        radial-gradient(circle at 20% 30%, rgba(157, 234, 255, 0.95) 0%, rgba(157, 234, 255, 0.18) 24%, transparent 46%),
        radial-gradient(circle at 78% 28%, rgba(255, 120, 214, 0.9) 0%, rgba(255, 120, 214, 0.18) 24%, transparent 44%),
        radial-gradient(circle at 52% 78%, rgba(255, 222, 132, 0.85) 0%, rgba(255, 222, 132, 0.14) 22%, transparent 42%),
        linear-gradient(125deg, #8cecff 12%, #f7f3ff 34%, #ff83d6 54%, #ffe18a 73%, #97efff 100%);
    background-size: 180% 180%, 200% 200%, 180% 180%, 220% 220%;
    background-position: 12% 24%, 82% 26%, 50% 72%, 18% 48%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 10px rgba(140, 236, 255, 0.14),
        0 0 18px rgba(255, 131, 214, 0.08);
    filter: drop-shadow(0 0 10px rgba(140, 236, 255, 0.08));
    animation: turbo-logo-float 9.5s ease-in-out infinite;
}

.brand-copy small {
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav,
.topbar-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav {
    flex: 1;
    justify-content: center;
}

.nav a {
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    animation: nav-link-text-wave 18s linear infinite;
}

.nav a:nth-child(1) {
    animation-delay: 0s;
}

.nav a:nth-child(2) {
    animation-delay: 3.6s;
}

.nav a:nth-child(3) {
    animation-delay: 7.2s;
}

.nav a:nth-child(4) {
    animation-delay: 10.8s;
}

.nav a:nth-child(5) {
    animation-delay: 14.4s;
}

.nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
    border-color: rgba(43, 245, 255, 0.24);
    background: linear-gradient(135deg, rgba(43, 245, 255, 0.08), rgba(255, 43, 163, 0.08));
    box-shadow: inset 0 0 16px rgba(43, 245, 255, 0.08);
}

@keyframes nav-link-text-wave {
    0%, 3%, 16%, 100% {
        color: var(--muted);
        text-shadow: none;
    }
    7%, 12% {
        color: #9fe7ff;
        text-shadow:
            0 0 8px rgba(159, 231, 255, 0.16),
            0 0 14px rgba(76, 201, 255, 0.08);
    }
}

@keyframes turbo-logo-float {
    0% {
        background-position: 14% 22%, 80% 26%, 52% 74%, 18% 44%;
        text-shadow:
            0 0 10px rgba(140, 236, 255, 0.12),
            0 0 18px rgba(255, 131, 214, 0.06);
        filter: drop-shadow(0 0 8px rgba(140, 236, 255, 0.06));
    }
    25% {
        background-position: 28% 34%, 66% 18%, 42% 64%, 42% 56%;
        text-shadow:
            0 0 12px rgba(255, 226, 138, 0.12),
            0 0 22px rgba(140, 236, 255, 0.08);
        filter: drop-shadow(0 0 10px rgba(255, 131, 214, 0.08));
    }
    50% {
        background-position: 58% 26%, 44% 42%, 60% 78%, 68% 38%;
        text-shadow:
            0 0 14px rgba(255, 131, 214, 0.12),
            0 0 24px rgba(140, 236, 255, 0.08);
        filter: drop-shadow(0 0 12px rgba(255, 226, 138, 0.08));
    }
    75% {
        background-position: 40% 18%, 72% 52%, 34% 58%, 34% 68%;
        text-shadow:
            0 0 12px rgba(140, 236, 255, 0.14),
            0 0 20px rgba(255, 131, 214, 0.08);
        filter: drop-shadow(0 0 11px rgba(140, 236, 255, 0.08));
    }
    100% {
        background-position: 14% 22%, 80% 26%, 52% 74%, 18% 44%;
        text-shadow:
            0 0 10px rgba(140, 236, 255, 0.12),
            0 0 18px rgba(255, 131, 214, 0.06);
        filter: drop-shadow(0 0 8px rgba(140, 236, 255, 0.06));
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav a,
    .brand-copy strong {
        animation: none;
    }
}

.content {
    padding: 28px clamp(18px, 3vw, 44px) 56px;
}

.topbar-side {
    justify-content: flex-end;
    flex-shrink: 0;
}

.hero-panel,
.feature-card,
.auth-panel,
.info-panel,
.table-panel,
.explorer-panel,
.metric-card {
    position: relative;
    border: 1px solid rgba(43, 245, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(14, 17, 37, 0.94), rgba(8, 10, 23, 0.96)),
        linear-gradient(135deg, rgba(43, 245, 255, 0.05), rgba(255, 43, 163, 0.05));
    box-shadow: var(--shadow);
}

.hero-panel::after,
.feature-card::after,
.auth-panel::after,
.info-panel::after,
.table-panel::after,
.explorer-panel::after,
.metric-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.hero-panel,
.auth-layout,
.explorer-layout,
.admin-grid,
.stats-grid,
.section-grid {
    display: grid;
    gap: 20px;
}

.hero-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    padding: clamp(24px, 4vw, 42px);
    border-radius: 30px;
    overflow: hidden;
}

.hero-panel--home {
    min-height: 500px;
    align-items: stretch;
}

.hero-panel--home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(43, 245, 255, 0.2), transparent 34%),
        radial-gradient(circle at 84% 22%, rgba(255, 43, 163, 0.18), transparent 24%),
        linear-gradient(120deg, rgba(255, 230, 109, 0.05), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 58%);
    pointer-events: none;
}

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

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-copy h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 0.96;
    text-transform: uppercase;
    text-shadow:
        0 0 22px rgba(43, 245, 255, 0.18),
        0 0 34px rgba(255, 43, 163, 0.12);
}

.hero-text,
.page-header p,
.feature-card p,
.compact-copy {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.5;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
}

.hero-actions,
.panel-header,
.tab-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.tab-button,
.social-button {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.primary-button {
    color: #06101d;
    background: linear-gradient(135deg, var(--accent), #8df8ff 42%, var(--accent-warm));
    box-shadow:
        0 14px 32px rgba(43, 245, 255, 0.22),
        0 0 24px rgba(255, 230, 109, 0.12);
}

.secondary-button,
.ghost-button,
.tab-button,
.social-button {
    color: var(--text);
    background: linear-gradient(135deg, rgba(43, 245, 255, 0.08), rgba(255, 43, 163, 0.08));
    border: 1px solid rgba(43, 245, 255, 0.18);
    box-shadow: inset 0 0 18px rgba(43, 245, 255, 0.04);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.social-button:hover,
.tab-button:hover,
.list-card:hover,
.monster-card:hover {
    transform: translateY(-2px);
}

.social-button {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.social-button svg {
    width: 22px;
    height: 22px;
}

.social-button--discord {
    color: #e8ebff;
}

.hero-status,
.stats-grid,
.admin-grid,
.section-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card,
.feature-card,
.auth-panel,
.info-panel,
.table-panel,
.explorer-panel {
    border-radius: 24px;
    padding: 22px;
}

.metric-card {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-panel h2 {
    margin: 0 0 14px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.08;
}

.metric-value {
    font-size: clamp(2rem, 4vw, 3.1rem);
    color: var(--accent);
}

.metric-label {
    color: var(--muted);
    font-weight: 600;
}

.section-grid,
.admin-grid {
    margin-top: 22px;
}

.compact-section {
    margin-bottom: 22px;
}

.database-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    text-transform: uppercase;
    text-shadow:
        0 0 16px rgba(43, 245, 255, 0.12),
        0 0 24px rgba(255, 43, 163, 0.08);
}

.hero-side-card,
.download-card {
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 43, 163, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 21, 45, 0.94), rgba(8, 10, 24, 0.97)),
        radial-gradient(circle at top right, rgba(255, 43, 163, 0.16), transparent 38%),
        radial-gradient(circle at bottom left, rgba(43, 245, 255, 0.14), transparent 36%);
    box-shadow: var(--shadow);
}

.hero-side-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-side-card--tactical {
    gap: 18px;
    justify-content: space-between;
}

.hero-side-card h2,
.download-card h2 {
    margin: 0 0 12px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
    line-height: 1.08;
}

.hero-side-card p,
.download-card p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.hero-side-list {
    display: grid;
    gap: 12px;
}

.hero-side-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(43, 245, 255, 0.14);
    background: linear-gradient(135deg, rgba(43, 245, 255, 0.06), rgba(255, 43, 163, 0.05));
}

.hero-side-item span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(43, 245, 255, 0.16), rgba(255, 43, 163, 0.14));
    color: var(--accent-warm);
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
}

.hero-side-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.hero-side-item p {
    margin: 0;
    font-size: 0.96rem;
}

.home-showcase,
.home-command-grid,
.home-route-grid,
.home-links-grid,
.image-card-grid,
.monster-groups-stack {
    display: grid;
    gap: 20px;
}

.home-showcase,
.home-command-grid,
.home-links-grid {
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-route {
    margin-top: 30px;
}

.section-lead {
    margin-bottom: 18px;
}

.section-lead h2 {
    margin: 0 0 8px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-transform: uppercase;
}

.section-lead p {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.55;
}

.home-route-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.promo-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(43, 245, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(13, 17, 37, 0.96), rgba(8, 10, 24, 0.96)),
        radial-gradient(circle at top left, rgba(255, 43, 163, 0.14), transparent 35%);
    box-shadow: var(--shadow);
}

.promo-card h2 {
    margin: 0 0 10px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.promo-card p {
    color: var(--muted);
    line-height: 1.55;
}

.promo-card--accent {
    background:
        linear-gradient(180deg, rgba(14, 20, 42, 0.98), rgba(9, 11, 24, 0.98)),
        radial-gradient(circle at top left, rgba(43, 245, 255, 0.18), transparent 40%);
}

.route-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 43, 163, 0.16);
    background:
        linear-gradient(180deg, rgba(13, 17, 37, 0.96), rgba(8, 10, 24, 0.96)),
        radial-gradient(circle at bottom right, rgba(43, 245, 255, 0.14), transparent 36%);
    box-shadow: var(--shadow);
}

.route-card h3 {
    margin: 12px 0 10px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.2rem, 2.1vw, 1.5rem);
}

.route-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.route-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 43, 163, 0.34);
    background: linear-gradient(135deg, rgba(255, 43, 163, 0.14), rgba(43, 245, 255, 0.1));
    color: var(--accent-warm);
    font-family: "Orbitron", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
}

.image-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.image-card-grid--locations {
    gap: 14px;
    justify-content: start;
    grid-template-columns: repeat(auto-fit, 420px);
}

.image-card {
    display: block;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(43, 245, 255, 0.16);
    background: linear-gradient(180deg, rgba(14, 17, 37, 0.96), rgba(8, 10, 24, 0.96));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.image-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-bright);
}

.image-frame {
    position: relative;
    min-height: 220px;
    background:
        radial-gradient(circle at 16% 16%, rgba(43, 245, 255, 0.12), transparent 28%),
        radial-gradient(circle at 88% 22%, rgba(255, 43, 163, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(20, 25, 52, 0.98), rgba(8, 10, 24, 0.98));
    overflow: hidden;
    border-radius: inherit;
}

.image-frame img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.image-frame--location-card {
    width: 420px;
    max-width: 100%;
    height: 210px;
}

.image-frame--location-hero {
    width: 420px;
    max-width: 100%;
    height: 210px;
}

.image-frame--monster-hero {
    min-height: auto;
    aspect-ratio: 4 / 3;
}

.image-media-static {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    padding: 0;
    border-radius: inherit;
}

.image-media-dynamic {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    padding: 0;
    border-radius: inherit;
}

.image-frame--mini {
    min-height: auto;
    width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    flex-shrink: 0;
}

.monster-mini-thumb {
    display: block;
    overflow: hidden;
}

.monster-mini-thumb img,
.monster-mini-thumb .image-media-static,
.monster-mini-thumb .image-media-dynamic {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    border-radius: inherit;
}

.location-hero-frame {
    width: 100%;
    margin-bottom: 18px;
    border-radius: 24px;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    padding: 16px;
    text-align: center;
    color: rgba(231, 247, 255, 0.82);
    font-family: "Orbitron", sans-serif;
    font-size: 0.95rem;
    background:
        radial-gradient(circle at top, rgba(82, 212, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(10, 20, 30, 0.92), rgba(6, 12, 18, 0.96));
}

.image-placeholder.is-visible {
    display: grid;
}

.image-placeholder--mini {
    font-size: 0.7rem;
    line-height: 1.2;
}

.image-placeholder--icon {
    padding: 0;
}

.image-card-body {
    padding: 18px 20px 20px;
}

.image-card--location .image-card-body {
    padding: 12px 14px 14px;
}

.image-card--location {
    width: 420px;
    max-width: 100%;
}

.image-card--location .image-card-body h2 {
    margin-bottom: 4px;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.image-card--location .image-card-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-card-body h2 {
    margin: 0 0 10px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.image-card-body p {
    color: var(--muted);
    line-height: 1.5;
}

.monster-groups-stack {
    margin-top: 22px;
}

.monster-group {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 23, 35, 0.94), rgba(8, 18, 27, 0.94));
    box-shadow: var(--shadow);
}

.monster-group-header {
    margin-bottom: 16px;
}

.monster-group-header h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.monster-lane {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.monster-lane--detail {
    margin-top: 16px;
}

.zone-stack {
    display: grid;
    gap: 16px;
    width: 100%;
}

.zone-group {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.zone-group-header h3 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    text-transform: uppercase;
}

.monster-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.monster-mini-card--link {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.monster-mini-card--link:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
    background: rgba(82, 212, 255, 0.06);
}

.monster-mini-copy {
    display: grid;
    gap: 2px;
    align-content: center;
}

.monster-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.monster-mini-copy strong {
    font-size: 1rem;
}

.boss-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 92, 125, 0.12);
    border: 1px solid rgba(255, 92, 125, 0.28);
    color: #ffd0da;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.boss-badge.is-hidden {
    display: none;
}

.location-detail-grid {
    display: grid;
    grid-template-columns: minmax(230px, 0.54fr) minmax(0, 1.46fr);
    gap: 20px;
    align-items: start;
}

.location-spotlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 420px;
    max-width: 100%;
}

.location-spotlight .location-meta {
    width: 100%;
}

.location-meta p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.monster-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
    gap: 20px;
    align-items: start;
}

.monster-spotlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.monster-hero-frame {
    width: 100%;
    margin-bottom: 18px;
    border-radius: 24px;
}

.monster-spotlight-meta p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.monster-spotlight-meta h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.monster-stats-grid {
    margin-top: 16px;
}

.auth-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.tab-strip {
    margin-bottom: 18px;
}

.tab-button {
    padding: 12px 16px;
    border-radius: 14px;
}

.tab-button.is-active {
    border-color: var(--accent);
    box-shadow: inset 0 0 24px rgba(82, 212, 255, 0.12);
}

.auth-form {
    display: none;
    gap: 14px;
}

.auth-form.is-active {
    display: grid;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form input {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.status-box,
.placeholder-card {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    padding: 16px 18px;
}

.status-box {
    margin-top: 18px;
}

.status-box.is-error {
    border-color: rgba(255, 92, 125, 0.35);
    color: #ffc4d1;
}

.status-box.is-success {
    border-color: rgba(87, 255, 182, 0.28);
    color: #bcffdf;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 12px;
}

.inline-button {
    margin-top: 14px;
}

.feature-card--action {
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card--action:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
    color: var(--accent);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.explorer-layout {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr) minmax(280px, 0.9fr);
    align-items: start;
}

.list-stack,
.monster-grid {
    display: grid;
    gap: 14px;
}

.list-card,
.monster-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.list-card.is-active,
.monster-card.is-active {
    border-color: var(--accent);
    background: rgba(82, 212, 255, 0.08);
}

.list-card h3,
.monster-card h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.list-meta,
.monster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.monster-detail {
    display: grid;
    gap: 14px;
}

.detail-block {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

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

.detail-grid span {
    display: block;
    color: var(--muted);
}

.detail-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
}

.drop-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: min(760px, 100%);
}

.drop-item {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.drop-item-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.drop-item-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.drop-item-copy strong {
    min-width: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.drop-item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(43, 245, 255, 0.1);
    border: 1px solid rgba(43, 245, 255, 0.2);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.drop-item-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(43, 245, 255, 0.14);
    background: linear-gradient(135deg, rgba(43, 245, 255, 0.1), rgba(255, 43, 163, 0.08));
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.drop-item-icon--empty {
    display: inline-block;
}

.drop-item-icon--atlas {
    background-color: rgba(9, 14, 28, 0.9);
}

.monster-drop-panel {
    width: min(820px, 100%);
}

.drop-item-icon--blessed {
    border-color: rgba(255, 207, 64, 0.56);
    background-color: rgba(255, 207, 64, 0.3);
    background-blend-mode: screen;
    box-shadow:
        0 0 0 1px rgba(255, 207, 64, 0.28),
        0 0 14px rgba(255, 207, 64, 0.3);
    filter: brightness(1.06) saturate(1.08);
}

.drop-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.drop-search {
    display: grid;
    gap: 8px;
    min-width: min(100%, 320px);
}

.drop-search span {
    color: var(--muted);
    font-size: 0.95rem;
}

.drop-search input {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.item-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pagination-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.pagination-button[disabled] {
    opacity: 0.42;
    cursor: default;
    transform: none;
}

.pagination-button[disabled]:hover {
    transform: none;
}

.pagination-ellipsis {
    color: var(--muted);
    padding: 0 2px;
}

.drop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.drop-items-grid--stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.drop-select-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.drop-select-card--link {
    text-decoration: none;
}

.drop-select-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
    background: rgba(82, 212, 255, 0.06);
}

.drop-select-card.is-active {
    border-color: var(--accent);
    background: rgba(82, 212, 255, 0.08);
    box-shadow: inset 0 0 24px rgba(82, 212, 255, 0.12);
}

.drop-select-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.drop-select-copy strong {
    font-size: 1rem;
    line-height: 1.3;
}

.drop-select-copy span {
    color: var(--muted);
    font-size: 0.95rem;
}

.drop-select-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.drop-selection-head {
    display: grid;
    gap: 8px;
}

.drop-selection-head h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.drop-selection-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.drop-monster-results {
    margin-top: 18px;
}

.item-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
    gap: 20px;
    align-items: start;
}

.item-side-stack {
    display: grid;
    gap: 20px;
}

.item-spotlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.item-icon-shell {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 112px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(43, 245, 255, 0.14);
    background:
        radial-gradient(circle at 20% 20%, rgba(43, 245, 255, 0.15), transparent 30%),
        radial-gradient(circle at 80% 18%, rgba(255, 43, 163, 0.14), transparent 26%),
        linear-gradient(135deg, rgba(15, 22, 40, 0.98), rgba(8, 12, 24, 0.98));
}

.item-icon-image {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: fill;
    image-rendering: auto;
}

.item-icon-image--blessed {
    background: rgba(255, 207, 64, 0.3);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(255, 207, 64, 0.28),
        0 0 14px rgba(255, 207, 64, 0.3);
    filter: brightness(1.06) saturate(1.08);
}

.item-icon-sprite {
    width: 48px;
    height: 48px;
}

.item-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.item-meta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    border: 1px solid rgba(43, 245, 255, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(16, 21, 43, 0.92), rgba(8, 11, 24, 0.94)),
        linear-gradient(135deg, rgba(43, 245, 255, 0.05), rgba(255, 43, 163, 0.05));
    padding: 10px 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.item-meta-label {
    display: block;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.item-meta-value {
    display: block;
    color: var(--text);
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-db-summary {
    margin-top: 14px;
}

.item-db-summary-card {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 43, 163, 0.18);
    background:
        linear-gradient(180deg, rgba(24, 12, 32, 0.9), rgba(11, 8, 21, 0.95)),
        linear-gradient(135deg, rgba(255, 43, 163, 0.08), rgba(43, 245, 255, 0.04));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 20px rgba(255, 43, 163, 0.08);
}

.item-db-summary-label {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.item-db-summary-value {
    color: var(--text);
    font-family: "Orbitron", sans-serif;
    font-size: 1.3rem;
    line-height: 1.2;
}

.item-copy-stack {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.item-copy-stack p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.item-copy-stack--secondary p {
    color: var(--muted);
}

.refine-path-list {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.refine-path-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.refine-scrolls {
    margin-top: -2px;
}

.refine-scroll-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.refine-scroll-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(43, 245, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.refine-scroll-icon-link:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
    background: rgba(82, 212, 255, 0.06);
}

.item-attribute-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.item-attribute-line {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    line-height: 1.45;
}

.item-attribute-line--danger {
    border-color: rgba(255, 78, 120, 0.26);
    background: rgba(255, 78, 120, 0.08);
}

.item-attribute-line--gold {
    border-color: rgba(255, 207, 64, 0.24);
    background: rgba(255, 207, 64, 0.08);
}

.item-attribute-line--soft {
    border-color: rgba(251, 206, 177, 0.24);
    background: rgba(251, 206, 177, 0.08);
}

.user-chip {
    display: grid;
    gap: 2px;
    text-align: right;
}

.user-chip small {
    color: var(--muted);
}

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

.rating-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

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

.rating-nav-button {
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rating-nav-button:hover {
    transform: translateY(-2px);
}

.rating-nav-button.is-active {
    border-color: var(--accent);
    background: rgba(82, 212, 255, 0.08);
    box-shadow: inset 0 0 24px rgba(82, 212, 255, 0.12);
}

.rating-content {
    display: grid;
}

.rating-panel {
    display: none;
}

.rating-panel.is-active {
    display: block;
}

.rating-leaderboard {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.rating-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(43, 245, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.rating-entry-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 43, 163, 0.24);
    background: linear-gradient(135deg, rgba(255, 43, 163, 0.16), rgba(43, 245, 255, 0.08));
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
}

.rating-entry-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rating-entry-main strong {
    font-size: 1.02rem;
}

.rating-entry-main span {
    color: var(--muted);
}

.rating-entry-value {
    display: grid;
    gap: 4px;
    text-align: right;
}

.rating-entry-value span {
    color: var(--muted);
    font-size: 0.94rem;
}

.rating-entry-value strong {
    font-family: "Orbitron", sans-serif;
    font-size: 1.08rem;
}

@media (max-width: 1100px) {
    .hero-panel,
    .auth-layout,
    .explorer-layout,
    .download-hero,
    .rating-layout,
    .location-detail-grid,
    .monster-detail-layout,
    .item-detail-layout {
        grid-template-columns: 1fr;
    }

    .database-grid--triple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nav,
    .topbar-side,
    .hero-actions,
    .panel-header {
        flex-wrap: wrap;
    }

    .content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-side-item {
        grid-template-columns: 1fr;
    }

    .image-card-grid {
        grid-template-columns: 1fr;
    }

    .database-grid--triple {
        grid-template-columns: 1fr;
    }

    .drop-search {
        min-width: 100%;
    }

    .rating-entry {
        grid-template-columns: 1fr;
    }

    .rating-entry-value {
        text-align: left;
    }
}
