.lwl-journey-screen {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 42px);
    box-sizing: border-box;
}

.lwl-journey-screen > .lwl-journey-screen-inner {
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
    min-height: 0;
}

.lwl-journey-screen .lwl-adventurehub {
    width: 100%;
}

.lwl-screen--adventurehub > .lwl-journey-screen-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.lwl-adventurehub {
    --hub-bg-gradient: radial-gradient(120% 120% at 20% 0%, rgba(255, 120, 80, 0.1), rgba(9, 11, 16, 0.7));
    --hub-card: rgba(16, 18, 24, 0.88);
    --hub-ink: #f4eee3;
    --hub-muted: #b1a99e;
    --hub-line: rgba(255, 255, 255, 0.08);
    --hub-glow: rgba(255, 140, 92, 0.35);
    background-color: #0b0e14;
    background-image: var(--hub-bg-gradient), var(--hub-bg-image, none);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    border: 1px solid var(--hub-line);
    border-radius: 28px;
    color: var(--hub-ink);
    font-family: "Cinzel", "Garamond", "Times New Roman", serif;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lwl-adventurehub::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(40% 50% at 70% 30%, rgba(255, 160, 120, 0.08), transparent 60%);
    pointer-events: none;
}

.lwl-adventurehub__status {
    color: var(--hub-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lwl-adventurehub__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lwl-adventurehub__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lwl-adventurehub__badge {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--hub-line);
    background: rgba(10, 12, 18, 0.6);
    color: var(--hub-muted);
}

.lwl-adventurehub__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    min-height: 0;
}

.lwl-adventurehub__tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--hub-card);
    border: 1px solid var(--hub-line);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --glow: var(--hub-glow);
    transform: translateY(10px);
    opacity: 0;
    animation: hub-rise 0.8s ease forwards;
    transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.lwl-adventurehub__tile:nth-child(1) { animation-delay: 0.05s; }
.lwl-adventurehub__tile:nth-child(2) { animation-delay: 0.12s; }
.lwl-adventurehub__tile:nth-child(3) { animation-delay: 0.18s; }
.lwl-adventurehub__tile:nth-child(4) { animation-delay: 0.24s; }
.lwl-adventurehub__tile:nth-child(5) { animation-delay: 0.3s; }

.lwl-adventurehub__tile::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 55% 45%, var(--glow), transparent 60%);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 1;
}

.lwl-adventurehub__tile.is-unlocked:hover,
.lwl-adventurehub__tile.is-unlocked:focus-visible {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 18px var(--glow),
        0 0 42px color-mix(in srgb, var(--glow) 55%, transparent);
    transform: translateY(-2px) scale(1.015);
}

.lwl-adventurehub__tile.is-unlocked:hover::before,
.lwl-adventurehub__tile.is-unlocked:focus-visible::before {
    opacity: 0.55;
}

.lwl-adventurehub__tile.is-unlocked:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--glow) 70%, white);
    outline-offset: 2px;
}

.lwl-adventurehub__tile[data-glow="gold"] { --glow: rgba(246, 193, 104, 0.55); }
.lwl-adventurehub__tile[data-glow="blue"] { --glow: rgba(120, 175, 255, 0.55); }
.lwl-adventurehub__tile[data-glow="purple"] { --glow: rgba(190, 120, 255, 0.55); }
.lwl-adventurehub__tile[data-glow="teal"] { --glow: rgba(90, 220, 200, 0.5); }
.lwl-adventurehub__tile[data-glow="amber"] { --glow: rgba(255, 155, 90, 0.5); }

.lwl-adventurehub__tile-media {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: saturate(1.1) contrast(1.05);
}

.lwl-adventurehub__tile-media.is-placeholder {
    background-image: radial-gradient(circle at 30% 20%, rgba(255, 170, 120, 0.25), rgba(12, 14, 20, 0.95));
}

.lwl-adventurehub__tile-content {
    position: relative;
    z-index: 3;
    padding: 18px;
    background: linear-gradient(0deg, rgba(8, 10, 15, 0.92), rgba(8, 10, 15, 0.4), transparent);
    display: grid;
    gap: 8px;
}

.lwl-adventurehub__tile-label {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 4;
    color: var(--hub-ink);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.lwl-adventurehub__tile-sub {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hub-muted);
    position: relative;
    z-index: 4;
}

.lwl-adventurehub__tile.is-locked {
    filter: grayscale(0.3);
    opacity: 0.75;
}

.lwl-adventurehub__tile-reason {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    background: rgba(8, 10, 15, 0.75);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hub-muted);
}

.lwl-adventurehub__lock {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 4;
}

.lwl-adventurehub__lock::before {
    content: '';
    position: absolute;
    left: 6px;
    top: -12px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.lwl-adventurehub__tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.78;
    pointer-events: none;
}

.lwl-adventurehub__tile-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 96px;
    height: 48px;
    z-index: 3;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.lwl-adventurehub__route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lwl-adventurehub__route-chip {
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--hub-line);
    color: var(--hub-muted);
    background: rgba(8, 10, 15, 0.6);
    text-align: center;
}

.lwl-adventurehub__route-chip.is-complete {
    border-color: rgba(255, 160, 120, 0.5);
    color: var(--hub-ink);
    box-shadow: 0 0 12px rgba(255, 140, 92, 0.25);
}

.lwl-adventurehub__cta {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 160, 120, 0.6);
    color: var(--hub-ink);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    background: rgba(12, 14, 20, 0.8);
    box-shadow: 0 0 18px rgba(255, 140, 92, 0.25);
}

.lwl-adventurehub__cta:hover {
    box-shadow: 0 0 28px rgba(255, 140, 92, 0.4);
}

@keyframes hub-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .lwl-adventurehub {
        padding: 24px;
    }

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

    .lwl-adventurehub__header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-height: 820px) {
    .lwl-adventurehub {
        padding: clamp(16px, 2.6vh, 26px);
    }

    .lwl-adventurehub__header {
        margin-bottom: clamp(12px, 1.8vh, 18px);
    }

    .lwl-adventurehub__grid {
        gap: clamp(10px, 1.6vh, 16px);
    }

    .lwl-adventurehub__tile {
        min-height: clamp(138px, 20vh, 186px);
    }

    .lwl-adventurehub__tile-content {
        padding: clamp(12px, 1.6vh, 16px);
    }

    .lwl-adventurehub__tile-label {
        font-size: clamp(0.95rem, 1.65vw, 1.1rem);
    }

    .lwl-adventurehub__tile-sub {
        font-size: clamp(0.72rem, 1.1vw, 0.82rem);
    }
}

@media (max-height: 820px) and (min-width: 960px) {
    .lwl-adventurehub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-height: 740px) {
    .lwl-adventurehub__tile {
        min-height: clamp(122px, 18vh, 160px);
    }

    .lwl-adventurehub__tile-badge {
        width: 84px;
        height: 42px;
    }
}

body.lwl-stage-active .lwl-screen--adventurehub > .lwl-journey-screen-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

body.lwl-stage-active .lwl-screen--adventurehub .lwl-adventurehub {
    flex: 1 1 auto;
    min-height: 100%;
    height: auto;
    padding: clamp(14px, 2.2vh, 28px);
}

body.lwl-stage-active .lwl-screen--adventurehub .lwl-adventurehub__grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    align-content: start;
    padding-right: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .lwl-adventurehub__tile {
        transition: none;
    }

    .lwl-adventurehub__tile.is-unlocked:hover,
    .lwl-adventurehub__tile.is-unlocked:focus-visible {
        transform: none;
    }
}
