.twitch-showcase-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.twitch-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.twitch-primary {
    display: flex;
    flex-direction: column;
    background: rgba(6, 10, 18, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(5, 11, 22, 0.45);
    overflow: hidden;
}

.twitch-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.16), rgba(5, 9, 18, 0.92));
}

.twitch-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.twitch-primary__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.6rem;
}

.twitch-live {
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.85), rgba(255, 179, 71, 0.85));
    border: 1px solid rgba(255, 51, 102, 0.35);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #0b0f1a;
}

.twitch-primary__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.twitch-primary__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.78);
}

.twitch-primary__details strong {
    color: var(--text-light);
    letter-spacing: 0.08em;
}

.twitch-primary__summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.78);
}

.twitch-tag {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.18);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.twitch-primary__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(8, 12, 24, 0.9));
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.twitch-primary__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.25);
}

.twitch-rail {
    display: grid;
    gap: 1rem;
}

.twitch-preview {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(5, 9, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.twitch-preview:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 18px 32px rgba(5, 9, 18, 0.4);
}

.twitch-preview.is-active {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 212, 255, 0.18);
}

.twitch-preview__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(0, 212, 255, 0.18), rgba(5, 9, 18, 0.92));
}

.twitch-preview__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.twitch-preview__live {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 0, 72, 0.85);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.twitch-preview__meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
}

.twitch-preview__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.twitch-preview__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}

.twitch-preview__info strong {
    color: var(--text-light);
}

.twitch-preview {
    border: none;
    background: rgba(5, 9, 18, 0.78);
}

.twitch-preview:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.7);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .twitch-showcase {
        grid-template-columns: 1fr;
    }

    .twitch-rail {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .twitch-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .twitch-showcase-container {
        gap: 1rem;
    }

    .twitch-primary__meta {
        padding: 1.2rem;
    }

    .twitch-primary__title {
        font-size: 1.05rem;
    }

    .twitch-rail {
        gap: 0.75rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #0a0a0a;
    --bg-dark: #141414;
    --bg-darker: #1a1a1a;
    --bg-card: rgba(20, 20, 20, 0.8);
    --accent-cyan: #00d4ff;
    --accent-cyan-glow: rgba(0, 212, 255, 0.4);
    --accent-green: #39ff14;
    --accent-green-glow: rgba(57, 255, 20, 0.4);
    --accent-yellow: #ffeb00;
    --accent-yellow-glow: rgba(255, 235, 0, 0.4);
    --accent-red: #ff3366;
    --accent-red-glow: rgba(255, 51, 102, 0.4);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --text-dim: #6b6b6b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --rarity-common: #c0c5ce;
    --rarity-uncommon: #45ff8f;
    --rarity-rare: #4bc0ff;
    --rarity-epic: #c07bff;
    --rarity-legendary: #ffb347;
    --rarity-common-bg: rgba(192, 197, 206, 0.18);
    --rarity-uncommon-bg: rgba(69, 255, 143, 0.18);
    --rarity-rare-bg: rgba(75, 192, 255, 0.18);
    --rarity-epic-bg: rgba(192, 123, 255, 0.18);
    --rarity-legendary-bg: rgba(255, 179, 71, 0.18);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.07), transparent 60%), #05070d;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255, 51, 102, 0.18), transparent 55%),
                radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.22), transparent 60%);
    filter: blur(80px);
    opacity: 0.85;
    pointer-events: none;
    z-index: -2;
}

.site-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -3;
}

.site-background::before,
.site-background::after {
    content: '';
    position: absolute;
    inset: -20vh;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 60%);
    animation: pulseNebula 14s ease-in-out infinite;
    filter: blur(120px);
    opacity: 0.6;
}

.site-background::after {
    background: radial-gradient(circle, rgba(255, 128, 0, 0.14) 0%, transparent 55%);
    animation-delay: 6s;
}

@keyframes pulseNebula {
    0%, 100% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.55; }
    50% { transform: scale(1.2) translate3d(-2%, -3%, 0); opacity: 0.9; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 2000;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: var(--scroll-progress, 0%);
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
    transition: width 0.15s ease;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1900;
    backdrop-filter: blur(22px);
    background: linear-gradient(135deg, rgba(6, 10, 18, 0.85), rgba(6, 10, 18, 0.65));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 1.2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-yellow);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 13, 22, 0.8);
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.nav-toggle:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.glow-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(139, 92, 246, 0.2));
    color: var(--text-light);
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.25);
}

.hero {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 2.5rem clamp(2rem, 6vw, 4rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 235, 0, 0.12);
    border: 1px solid rgba(255, 235, 0, 0.28);
    color: var(--accent-yellow);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5.4vw, 4.75rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-copy {
    color: rgba(226, 232, 240, 0.76);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-button {
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.85), rgba(57, 255, 20, 0.75));
    color: #020617;
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button.secondary {
    background: rgba(17, 24, 39, 0.7);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 55px rgba(0, 212, 255, 0.4);
}

.hero-visual {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 320px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.2), transparent 55%),
                url('https://images.unsplash.com/photo-1517816743773-6e0fd518b4a6?auto=format&fit=crop&w=1600&q=80') center/cover;
    border: 1px solid rgba(0, 212, 255, 0.18);
    box-shadow: 0 45px 80px rgba(0, 0, 0, 0.45);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.2) 0%, rgba(6, 10, 18, 0.75) 100%);
}

.metrics-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.metric-tile {
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.metric-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

main {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2.5rem 6rem;
}

.content-section {
    position: relative;
    margin-top: 4rem;
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 1.5rem 0 3rem;
    transform: translateX(0);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(15, 15, 15, 0.85);
    color: var(--text-light);
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.sidebar-toggle span + span {
    margin-top: 5px;
}

.sidebar-toggle:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
}

.sidebar-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

body.sidebar-open {
    overflow: hidden;
}

body.sidebar-open .sidebar-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.sidebar-open .sidebar-toggle span:nth-child(2) {
    opacity: 0;
}

body.sidebar-open .sidebar-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
}

/* Header - Wowhead Style */
header {
    background: #1a1a1a;
    border-bottom: 2px solid #2a2a2a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-top {
    background: #0f0f0f;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-main {
    padding: 1rem 0;
    background: #1a1a1a;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--accent-green);
}

/* Top Navigation - Wowhead Style */
.top-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-nav a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.top-nav a:hover,
.top-nav a.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0 1rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
}

.sidebar-link {
    display: block;
    color: #d0d0d0;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
}

.sidebar-link.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
    border-left: 3px solid var(--accent-cyan);
}

.sidebar-link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Bar - Modern Style */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0;
}

#searchInput,
#questSearchInput,
#itemSearchInput,
#mapSearchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(42, 42, 42, 0.6);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#searchInput::placeholder,
#questSearchInput::placeholder,
#itemSearchInput::placeholder,
#mapSearchInput::placeholder {
    color: #888;
    font-weight: 400;
}

#searchInput:hover,
#questSearchInput:hover,
#itemSearchInput:hover,
#mapSearchInput:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
    background: rgba(26, 26, 26, 0.9);
}

#searchInput:focus,
#questSearchInput:focus,
#itemSearchInput:focus,
#mapSearchInput:focus {
    border-color: var(--accent-cyan);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3), 0 0 0 4px rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-container:focus-within .search-icon {
    color: var(--accent-cyan);
    transform: translateY(-50%) scale(1.1);
}

/* Content Sections */
.content-section {
    padding: 0;
    min-height: auto;
}

.breadcrumbs {
    padding: 0.75rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

#quests .section-title {
    color: var(--accent-cyan);
}
#quests .section-title::after {
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

#items .section-title {
    color: var(--accent-green);
}
#items .section-title::after {
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    box-shadow: 0 0 20px var(--accent-green-glow);
}

#maps .section-title {
    color: var(--accent-yellow);
}
#maps .section-title::after {
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    box-shadow: 0 0 20px var(--accent-yellow-glow);
}

/* Maps Page */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.6rem;
    border-radius: 22px;
    background: rgba(9, 13, 24, 0.84);
    border: 1px solid rgba(255, 235, 0, 0.18);
    box-shadow: 0 24px 48px rgba(5, 7, 14, 0.4);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-fast);
}

.map-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(8, 12, 24, 0.5);
    border-color: rgba(255, 235, 0, 0.35);
}

.map-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 235, 0, 0.92);
}

.quest-map {
    position: relative;
    width: 100%;
    aspect-ratio: var(--map-aspect-ratio, 16 / 10);
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(255, 235, 0, 0.25), rgba(6, 10, 18, 0.92));
    border: 1px solid rgba(255, 235, 0, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 235, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
}

.quest-map--static {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.quest-map--interactive:focus-visible {
    outline: 3px solid rgba(255, 235, 0, 0.75);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(255, 235, 0, 0.18);
}

.quest-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 13, 24, 0) 35%, rgba(9, 13, 24, 0.55) 100%);
    mix-blend-mode: multiply;
    opacity: 0.25;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.map-container:hover .quest-map {
    transform: scale(1.015);
    box-shadow: inset 0 0 0 1px rgba(255, 235, 0, 0.32), 0 18px 36px rgba(5, 9, 18, 0.45);
    border-color: rgba(255, 235, 0, 0.32);
}

.map-container:hover .quest-map::after {
    opacity: 0.12;
}

.quest-map-expand {
    position: absolute;
    inset: 0;
    border: none;
    background: linear-gradient(135deg, rgba(6, 10, 18, 0.15), rgba(6, 10, 18, 0.55));
    opacity: 0.2;
    cursor: pointer;
    transition: opacity var(--transition-base);
}

.quest-map-expand::before {
    content: 'Open Map';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 235, 0, 0.45);
    background: rgba(6, 10, 18, 0.65);
    color: rgba(255, 235, 0, 0.95);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
}

.map-container:hover .quest-map-expand,
.quest-map:focus-within .quest-map-expand {
    opacity: 0.85;
}

.quest-map-expand:focus-visible {
    outline: 2px solid rgba(255, 235, 0, 0.8);
    outline-offset: 4px;
}

.map-note {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 720px) {
    .map-container {
        padding: 1.2rem;
    }

    .map-name {
        font-size: 1rem;
    }

    .quest-map {
        border-radius: 16px;
    }
}

/* Quest Cards - Wowhead Style */
.quest-grid,
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.item-card {
    position: relative;
    background: rgba(10, 16, 28, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 22px 44px rgba(5, 9, 20, 0.45);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-fast);
    min-height: 260px;
}

.item-card:hover {
    transform: translateY(-6px);
}

.item-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.item-card__media {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.item-card__media img {
    width: 78%;
    height: auto;
    object-fit: contain;
}

.item-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.88);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.28), rgba(56, 189, 248, 0.24));
}

.item-card__media--placeholder span {
    background: rgba(15, 23, 42, 0.82);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.item-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
}

.item-card__title {
    margin: 0;
    font-size: 1.05rem;
    text-align: center;
}

.item-card__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.item-card__summary {
    display: grid;
    gap: 0.4rem;
}

.item-card__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.85rem;
}

.item-card__open {
    margin: 0.2rem auto 0;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.item-card__open:hover {
    border-color: rgba(0, 212, 255, 0.32);
    color: var(--accent-cyan);
    box-shadow: 0 14px 32px rgba(6, 12, 23, 0.35);
}

.item-card[data-rarity="Common"] {
    background: linear-gradient(145deg, rgba(148, 163, 184, 0.18), rgba(12, 18, 32, 0.92));
    border-color: rgba(148, 163, 184, 0.36);
}

.item-card[data-rarity="Uncommon"] {
    background: linear-gradient(145deg, rgba(69, 255, 143, 0.25), rgba(12, 20, 32, 0.95));
    border-color: rgba(69, 255, 143, 0.35);
}

.item-card[data-rarity="Rare"] {
    background: linear-gradient(145deg, rgba(75, 192, 255, 0.25), rgba(10, 18, 32, 0.95));
    border-color: rgba(75, 192, 255, 0.35);
}

.item-card[data-rarity="Epic"] {
    background: linear-gradient(145deg, rgba(192, 123, 255, 0.28), rgba(12, 18, 32, 0.96));
    border-color: rgba(192, 123, 255, 0.4);
}

.item-card[data-rarity="Legendary"] {
    background: linear-gradient(145deg, rgba(255, 179, 71, 0.3), rgba(15, 18, 28, 0.96));
    border-color: rgba(255, 179, 71, 0.42);
}

.item-card__tags .chip {
    font-size: 0.7rem;
}

.item-details {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.item-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.item-detail-row:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.28), 0 12px 24px rgba(8, 47, 73, 0.2);
}

.hero-subtitle {
    color: rgba(226, 232, 240, 0.8);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 620px;
    margin-bottom: 1.6rem;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 1.1rem;
}

.hero-bullets li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.hero-bullets__icon {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    line-height: 1.2;
    margin-top: 0.35rem;
}

.hero-bullets strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 0.15rem;
}

.hero-bullets p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    text-decoration: none;
    position: relative;
}

.hero-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hero-link:hover::after {
    opacity: 1;
}

.hidden {
    display: none !important;
}

.home-section {
    margin-top: 3.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    background: rgba(12, 19, 35, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 28px;
    box-shadow: 0 32px 60px rgba(8, 12, 23, 0.35);
}

.home-section--grid {
    display: grid;
    gap: 2.5rem;
}

.home-section__heading {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-section__heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 0;
    letter-spacing: -0.01em;
}

.home-section__heading p {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.75;
}

.home-feature-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.home-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 24px 42px rgba(8, 14, 27, 0.4);
}

.home-feature-card__icon {
    font-size: 1.6rem;
}

.home-feature-card h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.home-feature-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.65;
}

.home-feature-card__tag {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.home-timeline {
    display: grid;
    gap: 1.5rem;
}

.home-timeline__item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1.4rem;
    padding: 1.4rem 1.6rem;
    border-radius: 20px;
    background: rgba(9, 14, 26, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05);
}

.home-timeline__time {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-purple);
    display: flex;
    align-items: flex-start;
}

.home-timeline__item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-yellow);
}

.home-timeline__item p {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.7;
}

.home-cta-band {
    margin-top: 3.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.28);
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
    justify-content: space-between;
}

.home-cta-band__content h2 {
    margin: 0 0 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -0.01em;
}

.home-cta-band__content p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
}

.home-cta-band__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-locator {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
    background: linear-gradient(150deg, rgba(6, 12, 22, 0.95), rgba(8, 16, 28, 0.78));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.item-locator__inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.8rem);
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.item-locator__header {
    display: grid;
    gap: 0.75rem;
    max-width: 680px;
}

.item-locator__header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    letter-spacing: -0.015em;
}

.item-locator__header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.item-locator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.24);
    color: rgba(0, 212, 255, 0.9);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.item-locator__search {
    display: grid;
    gap: 0.75rem;
    max-width: 760px;
}

.item-locator__label {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.item-locator__field {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: rgba(10, 18, 32, 0.86);
    box-shadow: 0 24px 48px rgba(2, 6, 14, 0.55);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.item-locator__field:focus-within {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 30px 60px rgba(2, 12, 24, 0.6);
}

.item-locator__icon {
    padding-left: 1.25rem;
    font-size: 1.1rem;
    color: rgba(148, 163, 184, 0.75);
}

.item-locator__field input {
    flex: 1;
    padding: 1.1rem 1.4rem;
    background: transparent;
    border: none;
    color: rgba(226, 232, 240, 0.93);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    outline: none;
}

.item-locator__field input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.item-locator__results {
    display: grid;
    gap: 1rem;
    max-width: 960px;
}

.item-locator-result {
    padding: clamp(1.2rem, 4vw, 1.6rem);
    border-radius: 20px;
    background: rgba(4, 10, 18, 0.82);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 20px 44px rgba(2, 8, 18, 0.55);
    display: grid;
    gap: 0.85rem;
}

.item-locator-result__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.item-locator-result__name {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    letter-spacing: -0.01em;
}

.item-locator-result__rarity {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.9);
}

.item-locator-result__rarity--common { border-color: rgba(148, 163, 184, 0.25); }
.item-locator-result__rarity--uncommon { border-color: rgba(56, 189, 248, 0.3); }
.item-locator-result__rarity--rare { border-color: rgba(68, 198, 255, 0.4); }
.item-locator-result__rarity--epic { border-color: rgba(167, 139, 250, 0.4); }
.item-locator-result__rarity--legendary { border-color: rgba(251, 191, 36, 0.45); }

.item-locator-result__description {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
}

.item-locator-result__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-locator-result__link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(0, 212, 255, 0.9);
    text-decoration: none;
    margin-top: 0.2rem;
}

.item-locator-result__link:hover {
    color: rgba(0, 212, 255, 1);
}

.streams-hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background: linear-gradient(160deg, rgba(6, 10, 18, 0.92) 0%, rgba(9, 15, 28, 0.65) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.streams-hero__inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.8rem);
    display: grid;
    gap: clamp(1.8rem, 4vw, 2.6rem);
}

.streams-hero__header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    letter-spacing: -0.01em;
}

.streams-hero__header p {
    margin: 0.4rem 0 0;
    color: rgba(226, 232, 240, 0.76);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.streams-hero .twitch-showcase-container {
    background: rgba(3, 6, 14, 0.72);
    border-radius: 28px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    padding: clamp(1.5rem, 5vw, 2.4rem);
    box-shadow: 0 30px 60px rgba(2, 8, 20, 0.55);
}

.streams-hero .twitch-showcase {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.streams-hero .twitch-primary__meta {
    padding: clamp(1.4rem, 3vw, 1.8rem);
}

@media (max-width: 900px) {
    .item-locator__inner {
        padding: 0 1.5rem;
    }

    .item-locator-result {
        padding: 1.2rem 1.3rem;
    }

    .streams-hero {
        margin-bottom: 2rem;
        padding-top: 2rem;
    }

    .streams-hero .twitch-showcase-container {
        padding: 1.5rem;
    }
}

@media (max-width: 720px) {
    .item-locator__inner {
        padding: 0 1.2rem;
    }

    .item-locator__field input {
        font-size: 1rem;
    }

    .item-locator-result__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .streams-hero__inner {
        padding: 0 1.25rem;
    }

    .streams-hero .twitch-showcase-container {
        border-radius: 22px;
    }
}

.home-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.panel {
    padding: clamp(1.5rem, 4vw, 2.1rem);
    border-radius: 24px;
    background: rgba(8, 12, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 48px rgba(3, 7, 16, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title span {
    color: var(--accent-cyan);
}

.panel-note {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-list {
    display: grid;
    gap: 1rem;
}

.item-details__extra[hidden] {
    display: none;
}

.item-details-toggle {
    margin-top: 0.45rem;
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-base);
}

.item-details-toggle:hover {
    border-color: rgba(0, 212, 255, 0.32);
    color: var(--accent-cyan);
    box-shadow: 0 12px 20px rgba(8, 14, 27, 0.35);
}

@media (max-width: 1024px) {
    .item-card__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .item-card__media {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 768px) {
    .hero-bullets {
        gap: 0.9rem;
    }

    .home-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-timeline__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }
}

.item-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    min-height: 70vh;
}

.item-sidebar {
    background: rgba(5, 9, 20, 0.82);
    border-radius: 24px;
    border: 1px solid rgba(255, 214, 99, 0.28);
    padding: 1.8rem 1.4rem;
    box-shadow: 0 26px 46px rgba(4, 6, 12, 0.45);
    position: sticky;
    top: 120px;
    align-self: start;
}

.item-sidebar__title {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 214, 99, 0.92);
}

.item-sidebar__nav {
    display: grid;
    gap: 0.35rem;
}

.item-sidebar__link {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.55rem 0.4rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 214, 99, 0.8);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
}

.item-sidebar__link:hover,
.item-sidebar__link.is-active {
    color: rgba(255, 214, 99, 1);
    background: rgba(255, 214, 99, 0.12);
}

.item-content {
    display: grid;
    gap: 1.5rem;
}

.item-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.item-toolbar__search {
    position: relative;
    max-width: 360px;
    width: 100%;
}

.item-toolbar__search .search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.65);
}

.item-toolbar__search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.6rem;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(6, 12, 24, 0.78);
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.95rem;
}

.item-toolbar__search input:focus {
    outline: 2px solid rgba(0, 212, 255, 0.45);
    outline-offset: 2px;
}

.item-toolbar__status {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

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

.item-card {
    position: relative;
    cursor: pointer;
    padding: 0.8rem 0.6rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(150deg, rgba(9, 13, 24, 0.94), rgba(6, 10, 20, 0.9));
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    min-height: 170px;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.38);
}

.item-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: center;
}

.item-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}

.item-card__title {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: rgba(226, 232, 240, 0.94);
    min-height: 2.2em;
}

.item-card__rarity {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.86);
}

.item-card__chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.item-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: rgba(148, 163, 184, 0.85);
}

.item-card__chip--accent {
    border-color: rgba(56, 189, 248, 0.4);
    color: rgba(191, 219, 254, 0.95);
}

.item-card__stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.item-card__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.85);
    width: 100%;
}

.item-card__stat span {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.item-card__stat strong {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.95);
    text-align: right;
    max-width: 65%;
    line-height: 1.3;
}

.item-card__hover {
    position: absolute;
    inset: 0;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(6, 10, 18, 0.97);
    border: 1px solid rgba(56, 189, 248, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 2;
}

.item-card.is-hovered .item-card__hover,
.item-card:focus-within .item-card__hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.item-card__hover-copy {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.9);
}

.item-card__hover-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.74rem;
}

.item-card__hover button {
    margin-top: auto;
    align-self: center;
}

.item-card__hover-extra {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.2rem;
}

.item-card__hover-row {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.85);
}

.item-card__hover-row span {
    color: rgba(148, 163, 184, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.item-card__media {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
}

.item-card__media img {
    width: 78%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 520px) {
    .item-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .item-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .item-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .item-sidebar__nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        width: 100%;
    }
}

.item-card[data-rarity="Common"] {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(10, 16, 28, 0.9));
}

.item-card[data-rarity="Uncommon"] {
    background: linear-gradient(135deg, rgba(69, 255, 143, 0.12), rgba(10, 16, 28, 0.9));
    border-color: rgba(69, 255, 143, 0.22);
}

.item-card[data-rarity="Rare"] {
    background: linear-gradient(135deg, rgba(75, 192, 255, 0.12), rgba(10, 16, 28, 0.9));
    border-color: rgba(75, 192, 255, 0.22);
}

.item-card[data-rarity="Epic"] {
    background: linear-gradient(135deg, rgba(192, 123, 255, 0.14), rgba(10, 16, 28, 0.92));
    border-color: rgba(192, 123, 255, 0.25);
}

.item-card[data-rarity="Legendary"] {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.16), rgba(10, 16, 28, 0.95));
    border-color: rgba(255, 179, 71, 0.28);
}

.item-card__rarity--common {
    border-color: rgba(148, 163, 184, 0.32);
    color: rgba(226, 232, 240, 0.78);
}

.item-card__rarity--uncommon {
    border-color: rgba(69, 255, 143, 0.42);
    color: rgba(190, 255, 221, 0.95);
}

.item-card__rarity--rare {
    border-color: rgba(75, 192, 255, 0.45);
    color: rgba(191, 227, 255, 0.95);
}

.item-card__rarity--epic {
    border-color: rgba(192, 123, 255, 0.48);
    color: rgba(236, 208, 255, 0.96);
}

.item-card__rarity--legendary {
    border-color: rgba(255, 179, 71, 0.52);
    color: rgba(255, 235, 205, 0.98);
}

.filters-panel select {
    appearance: none;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.9rem;
}

.filters-panel select:focus {
    outline: 2px solid rgba(0, 212, 255, 0.45);
    outline-offset: 2px;
}

.search-container {
    max-width: 320px;
}

.item-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 6, 12, 0.78);
    z-index: 2200;
}

.item-modal[hidden] {
    display: none;
}

.item-modal__panel {
    position: relative;
    width: min(760px, 92vw);
    max-height: 92vh;
    background: linear-gradient(145deg, rgba(12, 18, 32, 0.96), rgba(4, 8, 16, 0.96));
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 38px 80px rgba(3, 7, 15, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-modal__panel-inner {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: 180px 1fr;
    padding: 2.2rem;
    overflow-y: auto;
    max-height: calc(92vh - 4.5rem);
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
}

.item-modal__media {
    width: 180px;
    height: 180px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-modal__media img {
    width: 85%;
    height: auto;
}

.item-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 232, 240, 0.85);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.item-modal__close:hover {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.2);
}

.item-modal__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-modal__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.item-modal__type {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.item-modal__description {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.7;
}

.item-modal__summary,
.item-modal__details {
    display: grid;
    gap: 0.6rem;
}

.item-modal__summary-row,
.item-modal__detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.12);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.item-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-modal__tags .chip {
    font-size: 0.75rem;
}

.item-card__summary-row strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.item-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.item-modal__summary-row strong,
.item-modal__detail-row strong {
    color: rgba(226, 232, 240, 0.92);
    font-weight: 600;
    margin-left: auto;
}

.item-modal__locations {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.item-modal__locations h4 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.78);
}

.item-modal__locations .chip-row {
    gap: 0.4rem;
}

.item-modal__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.88);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.32), rgba(56, 189, 248, 0.26));
    border-radius: 22px;
}

@media (max-width: 880px) {
    .item-modal__panel-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .item-modal__media {
        margin: 0 auto;
    }
}

body.item-modal-open {
    overflow: hidden;
}

.item-sorter {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(5, 9, 18, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.item-sorter__button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    min-width: 74px;
    transition: var(--transition-base);
}

.item-sorter__button:hover,
.item-sorter__button.is-active {
    color: rgba(226, 232, 240, 0.95);
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 14px 30px rgba(5, 9, 18, 0.35);
}

.item-sorter__icon {
    font-size: 1.1rem;
}

.item-sorter__label {
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1280px) {
    main {
        padding: 0 clamp(1.5rem, 4vw, 2rem) clamp(4.5rem, 8vw, 6rem);
    }

    .header-inner {
        padding: 1rem clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 1024px) {
    .header-inner {
        gap: 1.5rem;
    }

    .primary-nav {
        gap: 1.1rem;
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

    .header-inner {
        padding: 0.9rem clamp(1.25rem, 5vw, 1.75rem);
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: clamp(1rem, 4vw, 1.75rem);
        left: clamp(1rem, 10vw, 1.75rem);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding: 1.25rem;
        border-radius: 18px;
        background: rgba(6, 10, 18, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 44px rgba(3, 7, 15, 0.55);
        backdrop-filter: blur(14px);
        z-index: 2100;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.4rem 0;
        font-size: 0.85rem;
        letter-spacing: 0.16em;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    main {
        padding: 0 clamp(1rem, 6vw, 1.5rem) clamp(4rem, 10vw, 5rem);
    }

    .header-inner {
        gap: 1rem;
    }

    .brand {
        font-size: 1.35rem;
        gap: 0.5rem;
    }

    .brand span {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .home-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: 100%;
    }

    .quest-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-panel {
        flex-direction: column;
        flex: 1 1 100%;
    }

    .filter-group {
        min-width: 100%;
    }

    .section-search {
        width: 100%;
    }

    .quest-grid,
    .maps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .item-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .item-toolbar__status {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .metrics-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-feature-grid,
    .home-section--grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 420px) {
    .primary-nav {
        left: clamp(0.75rem, 6vw, 1rem);
        right: clamp(0.75rem, 6vw, 1rem);
    }

    .header-inner {
        padding: 0.85rem clamp(0.85rem, 5vw, 1.15rem);
    }

    .hero-actions .cta-button,
    .hero-actions .cta-button.secondary,
    .home-cta-band__actions .cta-button,
    .home-cta-band__actions .cta-button.secondary {
        width: 100%;
        text-align: center;
    }

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

/* ============================
   Quests & Maps Enhancements
   ============================ */
.quest-hero {
    position: relative;
    margin-top: clamp(2.5rem, 6vw, 5rem);
    border-radius: 28px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    padding: clamp(2rem, 5vw, 3.75rem);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.12), rgba(139, 92, 246, 0.08));
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(3, 7, 15, 0.55);
}

.quest-hero::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 20%, rgba(57, 255, 20, 0.18), transparent 60%),
                radial-gradient(circle at 90% 10%, rgba(0, 212, 255, 0.22), transparent 55%);
    filter: blur(80px);
    opacity: 0.9;
    pointer-events: none;
}

.quest-hero__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    z-index: 1;
}

.quest-hero__content {
    flex: 1 1 420px;
    max-width: 640px;
}

.quest-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.18);
    color: rgba(0, 212, 255, 0.85);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
}

.quest-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.quest-hero__copy {
    color: rgba(226, 232, 240, 0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 540px;
}

.quest-hero__actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.quest-hero__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    transition: var(--transition-fast);
}

.quest-hero__secondary:hover {
    border-color: rgba(0, 212, 255, 0.45);
    color: #f8fafc;
    box-shadow: 0 18px 36px rgba(2, 6, 14, 0.45);
}

.quest-hero__stats {
    flex: 1 1 280px;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 1.5rem;
    border-radius: 22px;
    background: rgba(5, 9, 18, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.06);
}

.quest-hero__stat {
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    background: rgba(10, 16, 28, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.quest-hero__stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.02em;
}

.quest-hero__stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.78);
}

.section-intro {
    max-width: 720px;
    margin: 3rem auto 1.5rem;
    text-align: center;
}

.section-intro h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.1rem, 4vw, 3rem);
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.section-intro p {
    color: rgba(226, 232, 240, 0.72);
    font-size: 1rem;
}

.section-status {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.9rem;
}

.section-status strong {
    color: var(--accent-yellow);
    font-weight: 700;
}

.quest-controls {
    margin-top: 2.25rem;
    padding: 1.5rem;
    border-radius: 22px;
    background: rgba(5, 9, 18, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 22px 55px rgba(3, 7, 15, 0.45);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.filters-panel {
    flex: 1 1 360px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1 1 160px;
    min-width: 160px;
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.8);
}

.section-search {
    flex: 1 1 280px;
}

.search-container {
    width: 100%;
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.quest-card {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.95), rgba(6, 10, 20, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 60px rgba(2, 6, 14, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform var(--transition-slow), border-color var(--transition-base), box-shadow var(--transition-slow);
}

.quest-card::before {
    content: '';
    position: absolute;
    inset: -25% -15%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.quest-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.32);
    box-shadow: 0 38px 80px rgba(2, 6, 14, 0.6);
}

.quest-card:hover::before {
    opacity: 1;
}

.quest-card.hidden {
    display: none;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.26);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 212, 255, 0.85);
}

.card-subtle {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.72);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    letter-spacing: -0.01em;
}

.card-copy {
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-block {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-block h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(148, 163, 184, 0.75);
}

.objective-list,
.reward-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.objective-list li,
.reward-list li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.objective-list li::before,
.reward-list li::before {
    content: '';
    position: absolute;
    top: 0.65rem;
    left: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.16);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.8);
}

.chip__coord {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.7);
    letter-spacing: 0.08em;
}

.chip--accent {
    background: rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.35);
    color: rgba(0, 212, 255, 0.95);
}

.card-accordion {
    border-radius: 18px;
    background: rgba(5, 9, 18, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.card-accordion summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-accordion summary::after {
    content: '+';
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.card-accordion[open] summary::after {
    transform: rotate(45deg);
}

.card-accordion[open] summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.walkthrough-list {
    margin: 0;
    padding: 1.2rem 1.6rem 1.6rem 2.2rem;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.7;
}

.quest-map-preview {
    margin-top: 0.5rem;
}

.quest-map-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quest-map-title {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

.quest-map-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-selector-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.65);
}

.map-selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.map-selector-btn {
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.75);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-selector-btn.active,
.map-selector-btn:hover {
    border-color: rgba(0, 212, 255, 0.35);
    color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 16px 32px rgba(2, 6, 14, 0.45);
}

.quest-map {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    aspect-ratio: var(--map-aspect-ratio, 4 / 3);
    background-color: rgba(6, 10, 18, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.05), 0 24px 50px rgba(2, 6, 14, 0.55);
}

.quest-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 20, 0.22), rgba(6, 11, 20, 0.48));
    pointer-events: none;
    opacity: 0.2;
    transition: opacity var(--transition-fast);
}

.quest-map:hover::before {
    opacity: 0.35;
}

.quest-map-leaflet {
    position: absolute;
    inset: 0;
}

.map-coordinate-indicator {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    background: rgba(5, 9, 18, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.85);
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 3;
}

.map-coordinate-indicator.is-hidden {
    opacity: 0;
}

.quest-map--static {
    background-size: cover;
    background-position: center;
}

.quest-map-expand {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(5, 9, 18, 0.78);
    color: rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quest-map-expand::before {
    content: '+';
    font-weight: 700;
}

.quest-map-fullscreen {
    position: absolute;
    bottom: 0.9rem;
    right: 0.9rem;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(5, 9, 18, 0.78);
    color: rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quest-map-fullscreen::before {
    content: '⤢';
    font-size: 1.1rem;
    font-weight: 600;
}

.quest-map:hover .quest-map-expand,
.quest-map-expand:focus,
.quest-map:hover .quest-map-fullscreen,
.quest-map-fullscreen:focus {
    border-color: rgba(0, 212, 255, 0.35);
    color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 18px 34px rgba(2, 6, 14, 0.5);
}

.maps-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin: 3rem 0;
}

.map-container {
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.94), rgba(5, 9, 18, 0.88));
    box-shadow: 0 28px 60px rgba(2, 6, 14, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.map-note {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.78);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.map-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.map-action-btn:hover,
.map-action-btn:focus-visible {
    border-color: rgba(0, 212, 255, 0.4);
    color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 16px 28px rgba(2, 6, 14, 0.45);
    outline: none;
}

.map-action-btn--accent {
    border-color: rgba(0, 212, 255, 0.45);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(139, 92, 246, 0.16));
    color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 16px 32px rgba(0, 212, 255, 0.18);
}

.map-action-btn--accent:hover,
.map-action-btn--accent:focus-visible {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 42px rgba(0, 212, 255, 0.25);
}

.map-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 6, 12, 0.82);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 2400;
    padding: 2rem 1.5rem;
}

.map-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.map-modal-content {
    width: min(1100px, 94vw);
    max-height: 92vh;
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.96), rgba(5, 9, 18, 0.94));
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 45px 90px rgba(2, 6, 14, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-modal-content:fullscreen,
.map-modal-content:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    border: none;
}

.map-modal-content:fullscreen .map-modal-map,
.map-modal-content:-webkit-full-screen .map-modal-map {
    min-height: 0;
}

.map-modal-content:fullscreen .map-legend,
.map-modal-content:-webkit-full-screen .map-legend {
    max-height: 40vh;
    overflow-y: auto;
}

.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.map-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.map-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(5, 9, 18, 0.7);
    color: rgba(226, 232, 240, 0.85);
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-modal-close:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 18px 32px rgba(2, 6, 14, 0.48);
}

.map-modal-map {
    flex: 1;
    min-height: 400px;
    position: relative;
}

.map-modal-map #mapModalLeaflet {
    position: absolute;
    inset: 0;
}

.map-legend {
    padding: 1.5rem 1.75rem 2rem;
    display: grid;
    gap: 0.75rem;
    background: rgba(5, 9, 18, 0.85);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.map-legend-title {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.78);
}

.map-legend-item {
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    background: rgba(10, 16, 28, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .quest-hero__inner {
        flex-direction: column;
    }

    .quest-hero__stats {
        width: 100%;
    }

    .quest-controls {
        align-items: stretch;
    }

    .quest-grid,
    .maps-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 640px) {
    .quest-card {
        padding: 1.6rem;
    }

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

    .quest-controls {
        padding: 1.25rem;
    }

    .map-modal {
        padding: 1.5rem 1rem;
    }
}

.guide-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guide-toolbar__filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.guide-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.guide-filter select {
    min-width: 160px;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.9rem;
}

.guide-toolbar__status {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(150deg, rgba(10, 14, 26, 0.94), rgba(4, 8, 16, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 24px 46px rgba(4, 8, 18, 0.45);
    position: relative;
}

.guide-card__header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guide-card__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.86);
}

.guide-card__pill--accent {
    border-color: rgba(255, 214, 99, 0.45);
    color: rgba(255, 229, 180, 0.95);
}

.guide-card__title {
    margin: 0;
    font-size: 1.2rem;
    color: rgba(226, 232, 240, 0.96);
}

.guide-card__summary {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.9);
}

.guide-card__list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.9rem;
}

.guide-card__list li::marker {
    color: rgba(56, 189, 248, 0.7);
}

.guide-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.guide-card__meta-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.guide-card__link {
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: rgba(191, 227, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.guide-card__link:hover {
    color: var(--accent-cyan);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 16px 36px rgba(3, 12, 22, 0.45);
}

@media (max-width: 640px) {
    .guide-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-toolbar__filters {
        width: 100%;
    }

    .guide-filter select {
        width: 100%;
    }
}

