/* Legends of Taria shared platform layer */
:root {
    --lot-bg: #030406;
    --lot-bg-soft: #080a0f;
    --lot-surface: rgba(8, 10, 15, 0.72);
    --lot-surface-strong: rgba(14, 17, 24, 0.88);
    --lot-surface-raised: rgba(23, 27, 38, 0.92);
    --lot-hover: rgba(255, 255, 255, 0.08);
    --lot-active: rgba(251, 191, 36, 0.14);
    --lot-border: rgba(255, 255, 255, 0.12);
    --lot-border-strong: rgba(255, 255, 255, 0.18);
    --lot-text: #f5f5f5;
    --lot-text-muted: #c9ccd4;
    --lot-text-faint: #8c92a3;
    --lot-gold: #fbbf24;
    --lot-gold-hover: #f59e0b;
    --lot-green: #4ade80;
    --lot-red: #fb7185;
    --lot-blue: #60a5fa;
    --lot-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
    --lot-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.34);
    --lot-radius-sm: 6px;
    --lot-radius: 8px;
    --lot-radius-lg: 12px;
    --lot-container: 1200px;
    --lot-nav-height: 60px;
    --lot-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lot-texture-base: rgba(8, 11, 16, 0.72);
    --lot-map-texture-image: url('background.webp');
    --lot-map-texture-overlay: linear-gradient(135deg, rgba(8, 11, 16, 0.95), rgba(4, 6, 9, 0.86));
    --lot-map-texture-size: cover;
    --lot-map-texture-position: center;
    --lot-map-texture-blur: 20px;

    /* Compatibility aliases used by the wiki and market app-specific CSS. */
    --bg: var(--lot-bg);
    --bg2: var(--lot-surface);
    --bg3: var(--lot-surface-raised);
    --bg4: rgba(255, 255, 255, 0.14);
    --text: var(--lot-text);
    --text2: var(--lot-text-muted);
    --text3: var(--lot-text-faint);
    --gold: var(--lot-gold);
    --gold2: var(--lot-gold-hover);
    --green: var(--lot-green);
    --red: var(--lot-red);
    --blue: var(--lot-blue);
    --accent: var(--lot-gold);
    --border: var(--lot-border);
    --radius: var(--lot-radius);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #000;
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: transparent;
    color: var(--lot-text);
    font-family: var(--lot-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lot-data-page {
    isolation: isolate;
    overflow-x: hidden;
    background: #020304;
}

img,
svg,
canvas {
    max-width: 100%;
}

a {
    color: var(--lot-gold);
    text-decoration: none;
}

a:hover {
    color: var(--lot-gold-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--lot-gold);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
    color: #fff;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3rem);
    margin: 0 0 1.5rem;
    text-align: center;
}

h2 {
    font-size: 1.45rem;
    margin: 2rem 0 1rem;
}

p,
li {
    color: var(--lot-text-muted);
}

strong {
    color: #fff;
}

.lot-background,
.background-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.lot-background__image,
.background-image {
    position: absolute;
    inset: -40px;
    background-image: url('background.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(8px) brightness(0.42);
    will-change: transform;
}

.lot-background__vignette,
.background-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.28) 30%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.96) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.42));
    pointer-events: none;
}

.lot-data-page .lot-background,
.lot-data-page .background-container {
    display: block;
    z-index: 0;
    background: #020304;
}

.lot-data-page .lot-background__vignette,
.lot-data-page .background-vignette {
    background:
        linear-gradient(180deg, rgba(2, 3, 4, 0.5), rgba(2, 3, 4, 0.6) 44%, rgba(2, 3, 4, 0.88) 100%),
        linear-gradient(90deg, rgba(2, 3, 4, 0.46), rgba(2, 3, 4, 0.22) 24%, rgba(2, 3, 4, 0.24) 76%, rgba(2, 3, 4, 0.5));
}

.lot-data-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.22;
    pointer-events: none;
}

.lot-data-page > :not(.lot-background):not(.background-container) {
    position: relative;
    z-index: 1;
}

@media (hover: none), (pointer: coarse) {
    .lot-background__image,
    .background-image {
        transform: none !important;
        will-change: auto;
    }
}

.lot-container,
.lot-nav__inner,
.container,
.nav-container,
.header-content {
    width: 100%;
    max-width: var(--lot-container);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.lot-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lot-main {
    flex: 1;
    width: 100%;
}

.limited-width-text {
    max-width: 700px;
}

.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.padded-container {
    padding: 2rem;
}

.lot-nav,
.top-nav,
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--lot-nav-height);
    background: rgba(0, 0, 0, 0.78);
    border-bottom: 1px solid var(--lot-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lot-nav__inner,
.nav-container,
.header-content {
    min-height: var(--lot-nav-height);
    display: grid;
    grid-template-columns: auto minmax(0, auto) auto;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.45rem, 1.4vw, 1.25rem);
}

.lot-nav__brand,
.nav-logo,
.site-title a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
}

.lot-nav__brand span,
.nav-logo span,
.site-title a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lot-nav__brand:hover,
.nav-logo:hover,
.site-title a:hover {
    color: #fff;
}

.lot-nav__brand-icon,
.nav-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex: 0 0 auto;
}

.lot-nav__links,
.nav-center-links,
.main-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.2rem, 0.8vw, 0.5rem);
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.lot-nav__actions,
.nav-right-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    justify-self: end;
    min-width: 0;
}

.lot-nav__brand,
.nav-logo {
    flex: none;
}

.lot-nav__links,
.nav-center-links {
    flex: 1 1 auto;
}

.lot-nav__actions,
.nav-right-links {
    flex: 0 0 auto;
}

.lot-nav__link,
.nav-link,
.main-nav-desktop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border-radius: var(--lot-radius-sm);
    color: var(--lot-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    min-width: 2.25rem;
    max-width: max-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    transition:
        color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lot-nav__link:hover,
.nav-link:hover,
.main-nav-desktop a:hover {
    color: #fff;
    background: var(--lot-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.lot-nav__link.active,
.nav-link.active,
.main-nav-desktop a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.lot-nav__link:active,
.nav-link:active,
.main-nav-desktop a:active {
    transform: translateY(0) scale(0.98);
}

@keyframes lot-play-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(251, 191, 36, 0.22),
            0 0 17px rgba(251, 191, 36, 0.42),
            0 8px 18px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(255, 224, 138, 0.38),
            0 0 28px rgba(251, 191, 36, 0.64),
            0 9px 22px rgba(0, 0, 0, 0.56);
    }
}

@keyframes lot-play-shine {
    0%,
    42% {
        transform: translateX(-72%) rotate(4deg);
    }

    72%,
    100% {
        transform: translateX(44%) rotate(4deg);
    }
}

.lot-nav__cta,
.nav-play-now {
    position: relative;
    isolation: isolate;
    overflow: visible;
    border: 1px solid rgba(255, 225, 138, 0.88) !important;
    background: linear-gradient(180deg, #ffe08a 0%, #fbbf24 44%, #d99500 100%) !important;
    color: #3a2500 !important;
    border-radius: 999px !important;
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.22),
        0 0 17px rgba(251, 191, 36, 0.42),
        0 8px 18px rgba(0, 0, 0, 0.5);
    font-weight: 800 !important;
    text-shadow: 0 1px 0 rgba(255, 238, 170, 0.45);
    white-space: nowrap;
    transform: translateY(0) scale(1);
    transform-origin: center;
    backface-visibility: hidden;
    animation: lot-play-pulse 3.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
    transition:
        transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, filter;
}

.lot-nav__cta::before,
.nav-play-now::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.48), transparent 13%),
        linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.24) 48%, transparent 62%);
    opacity: 0.42;
    filter: brightness(1);
    transition:
        opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.lot-nav__cta:hover,
.nav-play-now:hover {
    background: linear-gradient(180deg, #ffe9a6 0%, #ffca35 48%, #e2a008 100%) !important;
    color: #3a2500 !important;
    filter: brightness(1.035);
    transform: translateY(-1px) scale(1.035);
}

.lot-nav__cta:hover::before,
.nav-play-now:hover::before {
    opacity: 0.72;
    filter: brightness(1.08);
}

.lot-nav__cta:active,
.nav-play-now:active {
    transform: translateY(0) scale(0.985);
    transition-duration: 180ms;
}

.lot-nav__icon,
.nav-mini-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.lot-card,
.download-card,
.stat-card,
.item-card,
.grid-card,
.index-section,
.infobox,
.chart-container,
.notes-content {
    background: var(--lot-surface);
    border: 1px solid var(--lot-border);
    border-radius: var(--lot-radius);
    box-shadow: var(--lot-shadow-soft);
}

.lot-texture-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--lot-texture-base);
}

.lot-map-texture::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -8px;
    background:
        var(--lot-map-texture-overlay),
        var(--lot-map-texture-image);
    background-size: auto, var(--lot-map-texture-size);
    background-position: center, var(--lot-map-texture-position);
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: normal, multiply;
    filter: blur(var(--lot-map-texture-blur));
    transform: scale(1.012);
    pointer-events: none;
    opacity: 0.7;
}

.lot-map-texture > * {
    position: relative;
    z-index: 1;
}

.lot-card-hover,
.download-card,
.stat-card,
.item-card,
.grid-card,
.index-section {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lot-card-hover:hover,
.download-card:hover,
.stat-card:hover,
.item-card:hover,
.grid-card:hover,
.index-section:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: var(--lot-surface-strong);
    box-shadow: var(--lot-shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.lot-texture-surface:hover {
    background: var(--lot-texture-base);
}

.lot-button,
.play-now-main,
.card-button,
.hs-btn,
.timeframe-btns button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: var(--lot-radius);
    background: var(--lot-gold);
    color: #3a2500;
    font-family: var(--lot-font);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lot-button:hover,
.play-now-main:hover,
.card-button:hover,
.hs-btn:hover:not(:disabled),
.timeframe-btns button:hover {
    background: var(--lot-gold-hover);
    color: #3a2500;
    text-decoration: none;
    transform: translateY(-1px);
}

.play-now-main:hover {
    transform: translateY(-1px) scale(1.035);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.play-now-main {
    transform-origin: center;
    backface-visibility: hidden;
    transition:
        transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, filter;
}

.lot-button:disabled,
.hs-btn:disabled,
.timeframe-btns button:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
}

.lot-button--ghost,
.hs-btn,
.timeframe-btns button {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--lot-border);
    color: var(--lot-text-muted);
}

.lot-button--ghost:hover,
.hs-btn:hover:not(:disabled),
.timeframe-btns button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fff;
}

.lot-button--ghost.active,
.timeframe-btns button.active {
    background: var(--lot-gold);
    border-color: var(--lot-gold);
    color: #000;
}

.lot-input,
.hs-input,
.lot-search input,
.search-box input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--lot-border);
    border-radius: var(--lot-radius);
    background: rgba(0, 0, 0, 0.32);
    color: var(--lot-text);
    font-family: var(--lot-font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lot-input,
.hs-input {
    min-height: 38px;
    padding: 0.55rem 0.7rem;
}

.lot-search,
.search-box {
    position: relative;
}

.lot-search input,
.search-box input {
    min-height: 38px;
    padding: 0.55rem 0.8rem 0.55rem 2.25rem;
}

.lot-input:focus,
.hs-input:focus,
.lot-search input:focus,
.search-box input:focus {
    border-color: var(--lot-gold);
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.lot-input::placeholder,
.hs-input::placeholder,
.lot-search input::placeholder,
.search-box input::placeholder {
    color: var(--lot-text-faint);
}

.lot-search svg,
.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: var(--lot-text-faint);
    pointer-events: none;
}

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

.lot-table th,
.lot-table td,
table th,
table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

.lot-table th,
table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--lot-text-faint);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lot-table td,
table td {
    color: var(--lot-text-muted);
}

.lot-table tr:hover td,
table tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

.lot-badge,
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.2rem 0.55rem;
    border-radius: var(--lot-radius-sm);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.lot-badge--open,
.badge-open {
    background: rgba(74, 222, 128, 0.14);
    color: var(--lot-green);
}

.lot-badge--closed,
.badge-closed {
    background: rgba(251, 113, 133, 0.14);
    color: var(--lot-red);
}

.lot-footer,
footer,
.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--lot-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--lot-text-muted);
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
}

.lot-footer > .lot-container,
footer > .lot-container,
.site-footer > .lot-container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.lot-footer p,
footer p,
.site-footer p {
    margin: 0;
    color: inherit;
}

.lot-footer a,
footer a,
.site-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lot-pixel,
.item-icon,
.icon-large,
.list-icon,
.sidebar-icon,
.inline-icon,
.title-icon {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

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

::-webkit-scrollbar-track {
    background: #050608;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid #050608;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.45);
}

::selection {
    background: rgba(251, 191, 36, 0.35);
    color: #fff;
}

@media (max-width: 860px) {
    .lot-nav__brand-icon,
    .nav-icon-small {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 840px) {
    .lot-nav__brand span,
    .nav-logo span,
    .site-title a span {
        display: none;
    }
}

@media (max-width: 660px) {
    .lot-nav__link, .nav-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 540px) {
    .lot-nav__icon,
    .nav-mini-icon {
        width: 16px;
        height: 16px;
    }

    .lot-nav__cta,
    .nav-play-now {
        width: auto;
        min-width: 76px;
        padding-left: 0.58rem !important;
        padding-right: 0.58rem !important;
        font-size: 0.72rem !important;
    }
}
