.world-shell .world-header {
    background: var(--header-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--header-border) 88%, #1f1609 12%);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 -1px 0 rgba(241, 193, 104, 0.12);
}

.world-shell .world-header .brand-logo strong,
.world-shell .world-header .brand-logo b,
.world-shell .world-header .brand-logo em {
    color: var(--hero-cream-100);
}

.world-shell .world-header .brand-logo em {
    color: var(--hero-green-600);
}

.world-shell .nav-links a {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--header-text);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.42rem 0.64rem;
    background: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.world-shell .nav-links a:hover {
    color: var(--hero-cream-100);
    border-color: color-mix(in srgb, var(--header-border) 62%, #19130b 38%);
    background: rgba(15, 18, 24, 0.46);
}

.world-shell .nav-links a.active {
    color: var(--header-active);
    background: linear-gradient(180deg, rgba(13, 16, 22, 0.92), rgba(8, 11, 16, 0.8));
    border-color: color-mix(in srgb, var(--hero-gold-500) 78%, #3a2812 22%);
    box-shadow: inset 0 0 0 1px rgba(255, 223, 162, 0.17), 0 0 0 1px rgba(16, 13, 7, 0.48);
    position: relative;
}

.world-shell .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: -0.22rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--hero-gold-400), transparent);
}

.world-shell .nav-links a.active.nav-spelletjes::after,
.world-shell .nav-links a.active.nav-muziek::after {
    background: linear-gradient(90deg, transparent, var(--hero-purple-500), transparent);
}

.world-shell .nav-links a.active.nav-programma::after,
.world-shell .nav-links a.active.nav-doe-mee::after,
.world-shell .nav-links a.active.nav-nieuws::after,
.world-shell .nav-links a.active.nav-quests::after,
.world-shell .nav-links a.active.nav-vrijwilligers::after,
.world-shell .nav-links a.active.nav-sponsors::after {
    background: linear-gradient(90deg, transparent, var(--hero-orange-500), transparent);
}

.hb-page-hero {
    --hero-height: 360px;
    position: relative;
    isolation: isolate;
    overflow: clip;
    min-height: var(--hero-height);
    border-top: 1px solid rgba(241, 201, 130, 0.24);
    border-bottom: 1px solid rgba(89, 63, 30, 0.84);
    background: linear-gradient(180deg, #05080c 0%, #090f17 48%, #0b1016 100%);
}

.hb-page-hero::before,
.hb-page-hero::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid color-mix(in srgb, var(--hero-gold-600) 62%, #332510 38%);
    pointer-events: none;
    opacity: 0.68;
    z-index: 6;
}

.hb-page-hero::before {
    top: 8px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}

.hb-page-hero::after {
    right: 10px;
    bottom: 8px;
    border-left: 0;
    border-top: 0;
}

.hb-page-hero--compact {
    --hero-height: 320px;
}

.hb-page-hero__scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: clip;
}

.hb-page-hero__scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(246, 233, 195, 0.22), transparent 24%),
        radial-gradient(circle at 70% 28%, rgba(132, 182, 255, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(7, 15, 24, 0.16), rgba(5, 9, 16, 0.72));
}

.hb-page-hero__branches {
    position: absolute;
    top: -2%;
    bottom: -4%;
    width: min(12vw, 180px);
    opacity: 0.22;
    filter: blur(0.2px);
    background: radial-gradient(ellipse at center, rgba(20, 24, 29, 0.76), rgba(8, 10, 13, 0.16));
}

.hb-page-hero__branches--left { left: -2%; }
.hb-page-hero__branches--right { right: -2%; }

.hb-page-hero__inner {
    position: relative;
    z-index: 4;
    max-width: var(--hero-max-width);
    margin-inline: auto;
    padding: 1.05rem 32px 1.15rem;
    min-height: var(--hero-height);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
    align-items: stretch;
}

.hb-page-hero__content {
    align-self: center;
    width: min(100%, 680px);
    display: grid;
    gap: 0.72rem;
}

.hb-page-hero__eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hero-gold-500);
}

.hb-page-hero__title {
    margin: 0;
    font-family: var(--hero-title-font);
    font-size: clamp(2.1rem, 3.2vw, 3.36rem);
    line-height: 0.98;
    color: var(--hero-cream-100);
    text-wrap: balance;
}

.hb-page-hero__title em {
    color: var(--hero-orange-500);
    font-style: normal;
}

.hb-page-hero__description {
    margin: 0;
    width: min(100%, 34rem);
    color: var(--hero-cream-200);
    font-size: 0.99rem;
    line-height: 1.45;
}

.hb-page-hero__cards,
.hb-page-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
}

.hb-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hb-page-hero__actions .button-primary,
.hb-page-hero__actions .button-ghost,
.hb-page-hero__actions .button-quiet,
.hb-page-hero__actions a {
    min-height: 44px;
}

.hb-page-hero__context {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    color: var(--hero-cream-300);
    font-size: 0.82rem;
}

.hb-page-hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 100%;
}

.hb-hero-card,
.hb-action-card,
.hb-stat-card {
    border-radius: 0.84rem;
    border: 1px solid rgba(220, 171, 94, 0.38);
    background: linear-gradient(165deg, rgba(12, 15, 23, 0.9), rgba(8, 10, 16, 0.66));
    color: var(--hero-cream-100);
    text-decoration: none;
}

.hb-hero-card {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.48rem;
    align-items: center;
    padding: 0.62rem 0.68rem;
}

.hb-hero-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    color: var(--hero-gold-400);
    background: rgba(230, 170, 76, 0.12);
}

.hb-hero-card__copy {
    display: grid;
    gap: 0.06rem;
}

.hb-hero-card__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.58rem;
    color: var(--hero-cream-300);
}

.hb-hero-card__primary {
    font-size: 0.84rem;
    line-height: 1.18;
}

.hb-hero-card__secondary {
    color: var(--hero-cream-300);
    font-size: 0.7rem;
}

.hb-hero-card__action {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-style: normal;
    color: var(--hero-gold-500);
}

.hb-hero-card--purple {
    border-color: rgba(174, 111, 216, 0.45);
}

.hb-hero-card--purple .hb-hero-card__icon,
.hb-hero-card--purple .hb-hero-card__action {
    color: var(--hero-purple-500);
    background: rgba(151, 80, 185, 0.14);
}

.hb-hero-card--green {
    border-color: rgba(127, 166, 73, 0.5);
}

.hb-hero-card--green .hb-hero-card__icon,
.hb-hero-card--green .hb-hero-card__action {
    color: #addf74;
    background: rgba(83, 123, 57, 0.2);
}

.hb-action-card {
    min-height: 126px;
    padding: 0.72rem 0.8rem;
    display: grid;
    gap: 0.4rem;
}

.hb-action-card__head {
    display: flex;
    align-items: center;
    gap: 0.46rem;
}

.hb-action-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--hero-gold-400);
    border: 1px solid rgba(216, 170, 93, 0.46);
}

.hb-action-card h2 {
    margin: 0;
    font-family: var(--hero-reading-font);
    font-size: 1rem;
    color: var(--hero-cream-100);
}

.hb-action-card p {
    margin: 0;
    color: var(--hero-cream-300);
    font-size: 0.82rem;
}

.hb-action-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 0.6rem;
    border: 1px solid #b88135;
    color: #f0d49a;
    background: #16120d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding-inline: 0.74rem;
}

.hb-action-card__button:hover {
    background: #241a10;
    border-color: #e3a950;
}

.hb-action-card--purple {
    border-color: rgba(174, 111, 216, 0.5);
}

.hb-action-card--purple .hb-action-card__button {
    border-color: rgba(174, 111, 216, 0.68);
    color: #edd8fb;
    background: rgba(45, 25, 59, 0.92);
}

.hb-stat-card {
    min-height: 74px;
    padding: 0.58rem 0.68rem;
    display: grid;
    align-content: center;
    gap: 0.1rem;
}

.hb-stat-card small {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.54rem;
    color: var(--hero-cream-300);
}

.hb-stat-card strong {
    font-family: var(--hero-title-font);
    font-size: 1.26rem;
    color: var(--hero-cream-100);
    line-height: 1;
}

.hb-stat-card span {
    color: var(--hero-cream-300);
    font-size: 0.72rem;
}

.hb-stat-card--purple {
    border-color: rgba(174, 111, 216, 0.47);
}

.hb-stat-card--green {
    border-color: rgba(127, 166, 73, 0.47);
}

.is-loading {
    position: relative;
    overflow: hidden;
}

.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    translate: -100% 0;
    animation: heroSkeleton 1.2s ease-in-out infinite;
}

.hb-page-hero__visual .scene-layer,
.hb-page-hero__visual .scene-prop,
.hb-page-hero__visual .scene-character,
.hb-page-hero__visual .scene-action {
    position: absolute;
}

.hb-page-hero__visual .scene-moon {
    top: 2%;
    right: 7%;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 245, 218, 0.88), rgba(149, 178, 247, 0.2) 58%, transparent 74%);
}

.hb-page-hero__visual .scene-lane {
    left: 12%;
    right: 4%;
    bottom: 6%;
    height: 34%;
    border-radius: 110px 0 0 20px;
    background: linear-gradient(95deg, rgba(33, 33, 42, 0.7), rgba(69, 52, 45, 0.52), rgba(20, 25, 33, 0.88));
}

.hb-page-hero__visual .scene-villa {
    right: 12%;
    bottom: 20%;
    width: min(48%, 340px);
    height: 44%;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(180deg, rgba(15, 18, 28, 0.95), rgba(38, 26, 26, 0.82));
    box-shadow: inset 0 0 0 1px rgba(255, 182, 96, 0.18), 0 18px 38px rgba(0, 0, 0, 0.36);
}

.hb-page-hero__visual .scene-villa::before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    background: repeating-linear-gradient(90deg, rgba(255, 184, 109, 0.28) 0 8px, rgba(18, 20, 25, 0.4) 8px 16px);
}

.hb-page-hero__visual .scene-signposts {
    right: 2%;
    bottom: 10%;
    display: grid;
    gap: 0.34rem;
    width: 170px;
}

.hb-page-hero__visual .scene-signposts a,
.hb-page-hero__visual .scene-signposts span {
    pointer-events: auto;
    display: block;
    padding: 0.38rem 0.58rem;
    border-radius: 0.56rem;
    border: 1px solid rgba(173, 118, 217, 0.5);
    color: #e9d5f7;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    background: rgba(33, 17, 44, 0.8);
}

.hb-page-hero__visual .scene-signposts a:hover {
    border-color: rgba(212, 155, 244, 0.86);
}

.hb-page-hero__visual .scene-ghost {
    left: 38%;
    bottom: 27%;
    width: 84px;
    height: 116px;
    border-radius: 48% 52% 42% 40%;
    background: radial-gradient(circle at 45% 25%, rgba(255, 255, 255, 0.92), rgba(193, 157, 255, 0.48) 58%, rgba(156, 95, 218, 0.2) 72%, transparent 90%);
    box-shadow: 0 0 26px rgba(184, 125, 236, 0.25);
}

.hb-page-hero__visual .scene-ghost::before,
.hb-page-hero__visual .scene-ghost::after {
    content: "";
    position: absolute;
    top: 34%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e2441;
}

.hb-page-hero__visual .scene-ghost::before { left: 34%; }
.hb-page-hero__visual .scene-ghost::after { right: 34%; }

.hb-page-hero__visual .scene-crystal {
    right: 18%;
    bottom: 12%;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 1px solid rgba(177, 110, 219, 0.58);
    background: radial-gradient(circle at 35% 26%, rgba(210, 174, 255, 0.7), rgba(89, 53, 138, 0.42) 52%, rgba(24, 18, 34, 0.8));
    box-shadow: 0 0 28px rgba(147, 86, 206, 0.38);
}

.hb-page-hero__visual .scene-gramophone {
    right: 12%;
    bottom: 9%;
    width: min(43%, 310px);
    height: 56%;
}

.hb-page-hero__visual .scene-gramophone .horn {
    position: absolute;
    right: 9%;
    top: 2%;
    width: 55%;
    height: 62%;
    border-radius: 52% 44% 50% 36%;
    border: 1px solid rgba(205, 149, 71, 0.6);
    background: radial-gradient(circle at 70% 40%, rgba(235, 188, 116, 0.8), rgba(105, 66, 33, 0.42) 52%, rgba(21, 14, 10, 0.88));
}

.hb-page-hero__visual .scene-gramophone .base {
    position: absolute;
    left: 14%;
    right: 0;
    bottom: 0;
    height: 36%;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(64, 35, 24, 0.86), rgba(27, 18, 16, 0.95));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.hb-page-hero__visual .scene-gramophone .vinyl {
    position: absolute;
    left: 30%;
    bottom: 13%;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: radial-gradient(circle at 52% 48%, #f4ce89 4px, #251f2b 5px, #100e14 54%, #050508 75%);
    box-shadow: 0 0 0 1px rgba(255, 199, 116, 0.15);
}

.hb-page-hero__visual .scene-book {
    left: 16%;
    right: 9%;
    bottom: 8%;
    height: 55%;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(55, 39, 28, 0.9), rgba(108, 77, 50, 0.66) 20%, rgba(49, 32, 22, 0.88) 56%, rgba(95, 63, 38, 0.78));
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.38);
}

.hb-page-hero__visual .scene-book-card {
    position: absolute;
    width: 88px;
    height: 112px;
    border-radius: 10px;
    border: 1px solid rgba(189, 158, 91, 0.46);
    background: linear-gradient(180deg, rgba(17, 22, 31, 0.88), rgba(9, 12, 18, 0.96));
}

.hb-page-hero__visual .scene-book-card.left {
    left: 18%;
    bottom: 16%;
}

.hb-page-hero__visual .scene-book-card.right {
    right: 18%;
    bottom: 22%;
}

.hb-page-hero__visual .scene-eyes {
    right: 3%;
    top: 21%;
    width: 64px;
    height: 30px;
}

.hb-page-hero__visual .scene-eyes::before,
.hb-page-hero__visual .scene-eyes::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #ffd98e 0 35%, transparent 45%);
}

.hb-page-hero__visual .scene-eyes::before {
    left: 15%;
}

.hb-page-hero__visual .scene-eyes::after {
    right: 15%;
}

.hb-page-hero--program .hb-page-hero__scene {
    background:
        radial-gradient(circle at 74% 26%, rgba(126, 157, 235, 0.2), transparent 40%),
        linear-gradient(122deg, rgba(8, 12, 20, 0.82), rgba(11, 18, 29, 0.24) 38%, rgba(9, 12, 18, 0.76)),
        url("/assets/halloween/backgrounds/berg-en-bos-night.png") center/cover no-repeat;
}

.hb-page-hero--join .hb-page-hero__scene,
.hb-page-hero--my-halloween .hb-page-hero__scene,
.hb-page-hero--houses .hb-page-hero__scene {
    background:
        radial-gradient(circle at 76% 23%, rgba(255, 176, 76, 0.18), transparent 30%),
        linear-gradient(126deg, rgba(7, 12, 20, 0.8), rgba(18, 22, 30, 0.26) 42%, rgba(7, 10, 16, 0.78)),
        url("/assets/halloween/backgrounds/festival-world.png") center/cover no-repeat;
}

.hb-page-hero--games .hb-page-hero__scene,
.hb-page-hero--music .hb-page-hero__scene,
.hb-page-hero--news .hb-page-hero__scene,
.hb-page-hero--monsterbook .hb-page-hero__scene,
.hb-page-hero--account .hb-page-hero__scene,
.hb-page-hero--reporter .hb-page-hero__scene,
.hb-page-hero--article .hb-page-hero__scene {
    background:
        radial-gradient(circle at 75% 26%, rgba(165, 100, 230, 0.26), transparent 36%),
        linear-gradient(126deg, rgba(8, 12, 20, 0.86), rgba(11, 18, 29, 0.24) 36%, rgba(9, 12, 18, 0.84)),
        url("/assets/halloween/backgrounds/berg-en-bos-night.png") center/cover no-repeat;
}

.hb-page-hero--tracker {
    --hero-height: 300px;
}

.hb-page-hero--tracker .hb-page-hero__inner {
    grid-template-columns: 1fr;
}

.hb-page-hero--tracker .hb-page-hero__visual {
    display: none;
}

.hb-scene-lantern {
    position: absolute;
    top: 10%;
    width: 26px;
    height: 88px;
    opacity: 0.88;
}

.hb-scene-lantern i {
    position: absolute;
    inset: 26px 0 0;
    border: 1px solid rgba(240, 178, 95, 0.62);
    background: radial-gradient(circle at 50% 42%, rgba(255, 208, 118, 0.78), rgba(232, 130, 47, 0.4) 56%, transparent 74%);
    border-radius: 7px;
    box-shadow: 0 0 22px rgba(255, 179, 74, 0.28);
}

.hb-scene-lantern--left { left: 1.3%; }
.hb-scene-lantern--right { right: 1.3%; }

.hb-scene-fog {
    position: absolute;
    width: 58%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(230, 236, 255, 0.14), transparent 68%);
    opacity: 0.08;
}

.hb-scene-fog--a { left: -5%; top: 12%; }
.hb-scene-fog--b { right: -8%; top: 28%; opacity: 0.1; }
.hb-scene-fog--c { left: 22%; bottom: -9%; opacity: 0.06; }

.hb-page-hero + .section-pad {
    padding-top: clamp(1.1rem, 2.4vw, 1.9rem);
}

.hero-to-content {
    position: absolute;
    inset: auto 0 0;
    height: 50px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(4, 8, 8, 0), #050807 90%);
}

.hb-page-hero--join .hb-page-hero__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-page-hero .scene-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(218, 171, 98, 0.48);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    background: rgba(15, 18, 24, 0.7);
    color: var(--hero-cream-200);
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hb-page-hero .scene-signposts,
.hb-page-hero .scene-quest-board,
.hb-page-hero .scene-reporter-stack {
    pointer-events: auto;
}

@media (max-width: 1200px) {
    .hb-page-hero {
        --hero-height: 340px;
    }

    .hb-page-hero__inner {
        min-height: var(--hero-height);
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding-inline: 24px;
    }

    .hb-page-hero__cards,
    .hb-page-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .world-shell .world-header .desktop-links {
        display: none;
    }

    .hb-page-hero {
        --hero-height: 320px;
    }

    .hb-page-hero__inner {
        padding-inline: 18px;
        padding-block: 0.9rem 1rem;
        grid-template-columns: 1fr;
    }

    .hb-page-hero__content {
        width: 100%;
    }

    .hb-page-hero__description {
        width: 100%;
    }

    .hb-page-hero__visual {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .hb-page-hero {
        min-height: 360px;
        height: auto;
    }

    .hb-page-hero__inner {
        min-height: 360px;
        padding-inline: 14px;
    }

    .hb-page-hero__title {
        font-size: clamp(2.1rem, 10.5vw, 2.75rem);
    }

    .hb-page-hero__eyebrow {
        font-size: 0.69rem;
    }

    .hb-page-hero__description {
        font-size: 0.93rem;
    }

    .hb-page-hero__cards,
    .hb-page-hero__stats {
        grid-template-columns: 1fr;
    }

    .hb-page-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hb-page-hero__visual {
        order: -1;
        min-height: 190px;
    }

    .hb-page-hero__visual .scene-signposts {
        width: 150px;
    }
}

.news-page .announcements,
.news-page .newspaper,
.news-page .newspaper-grid,
.news-page .paper-article {
    min-width: 0;
    max-width: 100%;
}

.news-page .newspaper-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
}

.news-page .newspaper-grid > * {
    min-width: 0;
}

.news-page .reactions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.news-page .reactions button {
    min-width: 0;
    width: 100%;
    white-space: normal;
}

@media (max-width: 640px) {
    .news-page .reactions button {
        grid-column: 1 / -1;
    }
}

.account-page,
.account-page .auth-gate {
    min-width: 0;
}

.account-page .auth-gate > * {
    min-width: 0;
    max-width: 100%;
}

.account-page .auth-gate .auth-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .account-page .auth-gate {
        gap: 1.2rem;
    }

    .account-page .auth-gate .auth-panel {
        padding: 1.2rem;
    }

    .account-page .auth-gate aside h2 {
        font-size: clamp(1.65rem, 8.6vw, 2.25rem);
    }
}

/* Header And Doe Mee Redesign Overrides */
.world-shell .world-header {
    background: linear-gradient(180deg, rgba(5, 7, 9, 0.98), rgba(7, 10, 12, 0.96));
    border-bottom: 1px solid rgba(185, 138, 69, 0.45);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 -1px 0 rgba(166, 106, 167, 0.1);
}

.world-shell .nav-links.desktop-links {
    margin: 0 auto;
    gap: clamp(0.2rem, 0.6vw, 0.55rem);
}

.world-shell .nav-links.desktop-links a {
    position: relative;
    padding: 0.54rem 0.72rem 0.5rem;
    border-radius: 0.28rem;
    border: 1px solid transparent;
    font-family: var(--hero-title-font);
    font-size: clamp(0.84rem, 0.86vw, 0.96rem);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ddcfb2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.world-shell .nav-links.desktop-links a + a::before {
    content: "";
    position: absolute;
    left: -0.42rem;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid rgba(198, 145, 77, 0.58);
    background: linear-gradient(180deg, rgba(238, 194, 121, 0.95), rgba(131, 84, 35, 0.95));
    opacity: 0.76;
    pointer-events: none;
}

.world-shell .nav-links.desktop-links a:hover {
    color: #f2e5cc;
    border-color: rgba(193, 143, 76, 0.52);
    background: linear-gradient(180deg, rgba(16, 20, 29, 0.84), rgba(10, 13, 19, 0.74));
    box-shadow: inset 0 -1px 0 rgba(239, 177, 86, 0.35);
}

.world-shell .nav-links.desktop-links a:focus-visible {
    outline: 2px solid rgba(229, 170, 83, 0.82);
    outline-offset: 2px;
}

.world-shell .nav-links.desktop-links a.active {
    color: #efbe70;
    background: linear-gradient(180deg, rgba(20, 18, 14, 0.92), rgba(11, 12, 17, 0.9));
    border-color: rgba(201, 148, 78, 0.78);
    box-shadow: inset 0 0 0 1px rgba(245, 208, 145, 0.22), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.world-shell .nav-links.desktop-links a.active::after {
    content: "";
    position: absolute;
    left: 0.52rem;
    right: 0.52rem;
    bottom: -0.16rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(240, 154, 56, 0.95), transparent);
}

.world-shell .header-account-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.35rem;
}

.world-shell .header-account-actions .account-control {
    min-width: 154px;
    min-height: 46px;
    border-radius: 0.32rem;
    border: 1px solid rgba(183, 135, 67, 0.48);
    background: linear-gradient(180deg, rgba(14, 18, 25, 0.92), rgba(8, 11, 17, 0.92));
    color: #e7d8bb;
}

.world-shell .header-account-actions .account-control i {
    border-left: 1px solid rgba(179, 128, 63, 0.42);
    color: #d99a42;
}

.world-shell .header-account-actions .account-control strong {
    letter-spacing: 0.07em;
}

.world-shell .header-account-actions .account-control small {
    color: #ac9f87;
}

.world-shell .header-account-actions .account-control--quiet {
    min-width: 132px;
    border-color: rgba(120, 87, 44, 0.42);
    color: #d7c7a8;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.9), rgba(7, 10, 16, 0.9));
}

.world-shell .header-account-actions .account-control--quiet i {
    color: #c08b55;
}

.world-shell .header-account-actions .account-control:hover {
    border-color: rgba(216, 162, 88, 0.74);
    color: #f0e2c6;
    box-shadow: inset 0 -1px 0 rgba(243, 177, 80, 0.35), 0 0 0 1px rgba(32, 23, 14, 0.55);
}

.world-shell .mobile-account-links {
    display: none;
}

@media (min-width: 1024px) and (max-width: 1500px) {
    .world-shell .world-header {
        gap: 0.52rem;
        padding-inline: 0.95rem;
    }

    .world-shell .nav-links.desktop-links a {
        font-size: clamp(0.8rem, 0.82vw, 0.9rem);
        padding-inline: 0.58rem;
    }

    .world-shell .header-account-actions .account-control {
        min-width: 138px;
    }
}

@media (max-width: 1280px) {
    .world-shell .header-account-actions .account-control {
        display: inline-flex;
    }
}

@media (max-width: 1023px) {
    .world-shell .header-account-actions {
        display: none;
    }

    .world-shell .mobile-nav {
        padding-bottom: 0.8rem;
        border-top: 1px solid rgba(185, 138, 69, 0.34);
    }

    .world-shell .mobile-account-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin: 0.75rem 1rem 0;
    }

    .world-shell .mobile-account-links a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 42px;
        padding: 0.5rem 0.7rem;
        border: 1px solid rgba(186, 136, 68, 0.52);
        border-radius: 0.28rem;
        background: linear-gradient(180deg, rgba(20, 16, 13, 0.9), rgba(11, 12, 18, 0.92));
        color: #eadcc0;
        font-family: var(--hero-title-font);
        font-size: 0.78rem;
        letter-spacing: 0.07em;
        text-decoration: none;
        text-transform: uppercase;
    }
}

@media (max-width: 640px) {
    .world-shell .mobile-account-links {
        grid-template-columns: 1fr;
    }
}

.join-page .join-intro {
    max-width: 72ch;
    margin: 0 0 1.1rem;
    color: #d7c8ad;
    font-family: "Source Serif 4", serif;
    font-size: 1.03rem;
    line-height: 1.5;
}

.join-page .join-choices {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.62rem;
}

.join-page .join-choices button {
    min-height: 132px;
    border: 1px solid rgba(185, 138, 69, 0.5);
    border-radius: 0.42rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(166, 106, 167, 0.08), transparent 46%),
        linear-gradient(170deg, rgba(9, 13, 18, 0.95), rgba(7, 10, 14, 0.98));
    color: #dfcfb2;
    box-shadow: inset 0 0 0 1px rgba(38, 31, 22, 0.85), 0 10px 22px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.join-page .join-choices button span {
    color: #c8923c;
}

.join-page .join-choices button strong {
    color: #ead8b5;
    font-family: "Cinzel", serif;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.join-page .join-choices button small {
    color: #9d8e75;
}

.join-page .join-choices button:hover {
    border-color: rgba(217, 154, 66, 0.8);
    color: #f2e6cf;
    transform: translateY(-1px);
}

.join-page .join-choices button.active {
    border-color: rgba(232, 168, 76, 0.95);
    background:
        radial-gradient(circle at 80% 16%, rgba(208, 120, 40, 0.22), transparent 50%),
        linear-gradient(165deg, rgba(20, 17, 13, 0.95), rgba(10, 11, 16, 0.96));
    box-shadow: inset 0 0 0 1px rgba(240, 188, 103, 0.32), 0 0 22px rgba(186, 120, 45, 0.3);
}

.join-page .join-choices button.active strong {
    color: #efbe70;
}

.join-page .join-choices button:focus-visible {
    outline: 2px solid rgba(234, 176, 84, 0.92);
    outline-offset: 2px;
}

.join-page .join-form-wrap {
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.25fr);
    gap: 1rem;
}

.join-page .join-form-wrap > aside,
.join-page .join-form-wrap > form,
.join-page .join-form-wrap > .join-house-route {
    border: 1px solid rgba(176, 128, 62, 0.45);
    border-radius: 0.5rem;
    background:
        radial-gradient(circle at 14% 20%, rgba(237, 194, 127, 0.08), transparent 35%),
        linear-gradient(170deg, rgba(8, 11, 16, 0.97), rgba(11, 12, 18, 0.96));
    box-shadow: inset 0 0 0 1px rgba(35, 29, 21, 0.8), 0 18px 34px rgba(0, 0, 0, 0.3);
}

.join-page .join-form-wrap > aside {
    color: #d9c8a8;
}

.join-page .join-form-wrap > aside .kicker {
    color: #d99a42;
}

.join-page .join-form-wrap > aside h2 {
    color: #f1dfbd;
}

.join-page .join-form-wrap > aside li {
    color: #bcac91;
}

.join-page .join-house-route {
    padding: 1.2rem 1.25rem;
    color: #e2d3b6;
}

.join-page .join-house-route h3 {
    margin: 0 0 0.65rem;
    font-family: "Cinzel", serif;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    color: #efc27d;
}

.join-page .join-house-route p {
    margin: 0;
    color: #ccbd9f;
}

.join-page .join-house-route ul {
    margin: 1rem 0 0;
    padding: 0 0 0 1.15rem;
    display: grid;
    gap: 0.38rem;
}

.join-page .join-house-route li {
    color: #dccbaa;
}

.join-page .join-house-route__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.join-page .join-house-route__actions .button-primary,
.join-page .join-house-route__actions .button-ghost {
    min-width: 210px;
    min-height: 44px;
}

.hb-page-hero--join .scene-eyes {
    right: 8%;
    top: 27%;
    opacity: 0.82;
    filter: drop-shadow(0 0 14px rgba(252, 214, 146, 0.24));
}

@media (max-width: 1240px) {
    .join-page .join-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .join-page .join-form-wrap {
        grid-template-columns: 1fr;
    }

    .join-page .join-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .join-page .join-choices {
        grid-template-columns: 1fr;
    }

    .join-page .join-choices button {
        min-height: 104px;
    }

    .join-page .join-house-route__actions .button-primary,
    .join-page .join-house-route__actions .button-ghost {
        width: 100%;
        min-width: 0;
    }
}

/* Keep every shared hero below the fixed navigation at every breakpoint. */
.hb-page-hero:not(.nachtbode-hero) {
    --site-header-clearance: 76px;
    min-height: calc(var(--hero-height) + var(--site-header-clearance));
    padding-top: var(--site-header-clearance);
}

@media (max-width: 1023px) {
    .hb-page-hero:not(.nachtbode-hero) {
        --site-header-clearance: 72px;
    }
}

@media (max-width: 768px) {
    .hb-page-hero:not(.nachtbode-hero) {
        --site-header-clearance: 68px;
    }
}

@media (max-width: 640px) {
    .hb-page-hero:not(.nachtbode-hero) {
        min-height: calc(360px + var(--site-header-clearance));
    }

}
