/* v40.3.1.9.20 — theme/season integration plus recruitment detail controls. */

body.hp-seasonal-theme {
    --hp-global-bg-base: var(--prime-seasonal-surface-deep);
}

body.hp-seasonal-theme .hp-index__background {
    background-image: var(--hp-global-bg-image, url('/assets/images/dusk/background_image.png'));
    filter: saturate(.96) contrast(1.04);
}

body.hp-launch-body.hp-seasonal-theme {
    --hpl-bg: var(--prime-seasonal-surface-deep);
    --hpl-panel: color-mix(in srgb, var(--prime-seasonal-surface) 88%, transparent);
    --hpl-panel-soft: color-mix(in srgb, var(--prime-seasonal-surface-raised) 84%, transparent);
    --hpl-green: var(--prime-accent);
    --hpl-green-bright: var(--prime-accent-hover);
    --hpl-green-deep: var(--prime-accent-strong);
    --hpl-green-border: color-mix(in srgb, var(--prime-accent) 32%, transparent);
}

/* The standalone launch stylesheet still contains legacy green literals.
   Bridge its design tokens to the active site accent so seasonal and custom
   themes color the complete page consistently. */
body.hp-launch-body {
    --hpl-green: var(--prime-accent, #8edb32);
    --hpl-green-bright: var(--prime-accent-hover, #b1ff49);
    --hpl-green-deep: var(--prime-accent-strong, #49aa18);
    --hpl-green-border: color-mix(in srgb, var(--prime-accent, #8edb32) 32%, transparent);
}

body.hp-launch-body .hp-launch-hero h1 em,
body.hp-launch-body .hp-launch-brand small,
body.hp-launch-body .hp-launch-section-head > div > span,
body.hp-launch-body .hp-launch-roadmap-kicker,
body.hp-launch-body .hp-launch-final-cta > div:first-child > span {
    color: var(--prime-accent-hover, #b1ff49);
}

body.hp-launch-body .hp-launch-topbar__phase {
    border-color: color-mix(in srgb, var(--prime-accent, #8edb32) 28%, transparent);
    background: color-mix(in srgb, var(--prime-accent, #8edb32) 9%, transparent);
}

body.hp-launch-body .hp-launch-topbar__phase i,
body.hp-launch-body .hp-launch-progress-track > span,
body.hp-launch-body .hp-launch-roadmap-progress::after,
body.hp-launch-body .hp-launch-roadmap-progress > span.is-complete,
body.hp-launch-body .hp-launch-roadmap-progress > span.is-current {
    background: var(--prime-accent, #8edb32);
}

body.hp-launch-body .hp-launch-roadmap-progress > span.is-complete,
body.hp-launch-body .hp-launch-roadmap-progress > span.is-current {
    border-color: var(--prime-accent-hover, #b1ff49);
}

body.hp-launch-body .hp-launch-roadmap-progress > span.is-current {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--prime-accent, #8edb32) 18%, transparent);
}

body.hp-launch-body .hp-launch-roadmap-card.is-current .hp-launch-roadmap-card__status,
body.hp-launch-body .hp-launch-status__line > b,
body.hp-launch-body .hp-launch-roadmap-heading p strong {
    color: var(--prime-accent-hover, #b1ff49);
}

body.hp-launch-body .hp-launch-roadmap-card.is-current {
    border-left-color: var(--prime-accent, #8edb32);
    background: color-mix(in srgb, var(--prime-accent, #8edb32) 8%, transparent);
}

body.hp-launch-body .hp-launch-roadmap-card.is-current .hp-launch-roadmap-card__marker {
    border-color: var(--prime-accent-hover, #b1ff49);
    background: var(--prime-accent, #8edb32);
}

body.hp-launch-body .hp-launch-roadmap-progress::after {
    background: linear-gradient(90deg, var(--prime-accent, #8edb32) 0 var(--hpl-roadmap-complete), transparent var(--hpl-roadmap-complete) 100%);
}

body.hp-launch-body .hp-launch-progress-track > span {
    background: linear-gradient(90deg, var(--prime-accent, #8edb32), var(--prime-accent-hover, #b1ff49));
}

.hp-launch-status__milestones {
    display: block;
    margin-top: 8px;
    color: #9aa69c;
    font-size: 11px;
    line-height: 1.4;
}

body.hp-launch-body.hp-seasonal-theme .hp-launch-bg {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--prime-seasonal-surface-deep) 56%, transparent), color-mix(in srgb, var(--prime-seasonal-surface-deep) 96%, transparent) 86%),
        radial-gradient(circle at 17% 12%, rgba(var(--prime-accent-rgb), .2), transparent 35%),
        var(--hp-global-bg-image) center / cover no-repeat;
    filter: saturate(.9);
}

body.hp-launch-body.hp-seasonal-theme .hp-launch-bg__glow--one {
    background: rgba(var(--prime-accent-rgb), .46);
}

body.hp-launch-body.hp-seasonal-theme .hp-launch-bg__glow--two {
    background: rgba(var(--prime-seasonal-secondary-rgb), .42);
}

body.hp-launch-body.hp-seasonal-theme .hp-launch-button--primary,
body.hp-launch-body.hp-seasonal-theme .hp-launch-register-submit {
    background: linear-gradient(135deg, var(--prime-accent-hover), var(--prime-accent));
    color: var(--prime-accent-text);
    border-color: color-mix(in srgb, var(--prime-accent) 75%, white 25%);
}

body.hp-launch-body.hp-seasonal-theme .hp-launch-hero h1 em {
    color: var(--prime-accent-hover);
}

/* Remove the remaining fixed green surfaces from the launch page. Use a
   warm-neutral base tinted by the actual theme accent instead of legacy
   green literals, while retaining Habbo's gold recruitment treatment. */
body.hp-launch-body .hp-launch-topbar,
body.hp-launch-body .hp-launch-roadmap,
body.hp-launch-body .hp-launch-footer {
    border-color: color-mix(in srgb, var(--prime-accent, #8edb32) 26%, rgba(255, 255, 255, .08));
    background: color-mix(in srgb, var(--prime-accent, #8edb32) 5%, #100e0b);
}

body.hp-launch-body .hp-launch-roadmap {
    border-top: 3px solid color-mix(in srgb, var(--prime-accent, #8edb32) 78%, transparent);
}

body.hp-launch-body .hp-launch-media--gallery-only .hp-launch-gallery-grid a {
    border-color: color-mix(in srgb, var(--prime-accent, #8edb32) 24%, rgba(255, 255, 255, .1));
    background: color-mix(in srgb, var(--prime-accent, #8edb32) 4%, #100e0b);
}

body.hp-launch-body .hp-launch-button--discord {
    border-color: color-mix(in srgb, var(--prime-accent, #8edb32) 52%, transparent);
    background: color-mix(in srgb, var(--prime-accent, #8edb32) 5%, #0b100c);
}

body.hp-launch-body .hp-launch-button--discord:hover {
    border-color: var(--prime-accent-hover, #b1ff49);
    background: color-mix(in srgb, var(--prime-accent, #8edb32) 11%, #0b100c);
}

body.hp-maintenance-body.hp-seasonal-theme {
    --hpm-accent: var(--prime-accent);
    --hpm-accent-rgb: var(--prime-accent-rgb);
}

body.hp-maintenance-body.hp-seasonal-theme .hp-maintenance-bg {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--prime-seasonal-surface-deep) 50%, transparent), color-mix(in srgb, var(--prime-seasonal-surface-deep) 96%, transparent)),
        radial-gradient(circle at 18% 18%, rgba(var(--prime-accent-rgb), .2), transparent 36%),
        var(--hp-global-bg-image) center / cover fixed no-repeat;
}

body.hp-maintenance-body.hp-seasonal-theme .hp-maintenance-live-dot,
body.hp-maintenance-body.hp-seasonal-theme .hp-maintenance-progress__track > span,
body.hp-maintenance-body.hp-seasonal-theme .hp-maintenance-task.is-active .hp-maintenance-task__status i {
    background-color: var(--prime-accent);
}

body.hp-maintenance-body.hp-seasonal-theme .hp-maintenance-button--primary {
    background: linear-gradient(135deg, var(--prime-accent-hover), var(--prime-accent));
    color: var(--prime-accent-text);
    border-color: color-mix(in srgb, var(--prime-accent) 72%, white 28%);
}

body.hp-register-context.hp-seasonal-theme .hp-onboard-button--primary,
body.hp-register-context.hp-seasonal-theme .hp-onboard-button--submit {
    background: linear-gradient(135deg, var(--prime-accent-hover), var(--prime-accent));
    color: var(--prime-accent-text);
    border-color: color-mix(in srgb, var(--prime-accent) 72%, white 28%);
}

body.hp-register-context.hp-seasonal-theme .hp-onboard-progress__line i,
body.hp-register-context.hp-seasonal-theme .hp-onboard-progress__item.is-active > span,
body.hp-register-context.hp-seasonal-theme .hp-onboard-progress__item.is-complete > span {
    background-color: var(--prime-accent);
}

/* Career portal: inherit the same active theme/season as the launch page.
   Keep per-position department colors intact; only neutral page surfaces and
   shared emphasis follow the selected accent. */
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-topbar,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero__panel,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-position-card,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-values article,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-empty,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-form-card,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-success {
    border-color: color-mix(in srgb, var(--prime-accent) 25%, rgba(255, 255, 255, .09));
    background: color-mix(in srgb, var(--prime-accent) 5%, #100e0b);
}

/* Recruitment detail/application view: the first seasonal pass covered the
   shared portal surfaces, but these detail-only cards and controls retained
   the launch stylesheet's default green. Keep them on the active season too. */
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-side-card {
    border-color: color-mix(in srgb, var(--prime-accent) 24%, rgba(255, 255, 255, .09));
    background: color-mix(in srgb, var(--prime-accent) 6%, #100e0b);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-side-card > span,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-form-section__number {
    border-color: color-mix(in srgb, var(--prime-accent) 32%, transparent);
    background: color-mix(in srgb, var(--prime-accent) 11%, #100e0b);
    color: var(--prime-accent-hover);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-side-card ol li > b {
    border-color: color-mix(in srgb, var(--prime-accent) 28%, transparent);
    background: color-mix(in srgb, var(--prime-accent) 10%, #100e0b);
    color: var(--prime-accent-hover);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-submit {
    border-color: color-mix(in srgb, var(--prime-accent) 75%, #17110a);
    background: var(--prime-accent);
    color: var(--prime-accent-contrast, #17110a);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-submit:hover {
    background: var(--prime-accent-hover);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-submit:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--prime-accent) 48%, transparent);
    outline-offset: 3px;
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero__panel ol li {
    border-color: color-mix(in srgb, var(--prime-accent) 20%, rgba(255, 255, 255, .08));
    background: color-mix(in srgb, var(--prime-accent) 4%, #100e0b);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-topbar,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-footer {
    border-color: color-mix(in srgb, var(--prime-accent) 30%, rgba(255, 255, 255, .08));
    background: color-mix(in srgb, var(--prime-accent) 5%, #100e0b);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero__copy h1 em,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero__copy .hp-launch-eyebrow,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-panel__eyebrow,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-section-head > div > span,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-values article > span {
    color: var(--prime-accent-hover);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-phase,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-phase i,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero__copy .hp-launch-eyebrow i,
body.hp-recruit-body.hp-seasonal-theme .hp-recruit-hero__panel ol li > b {
    border-color: color-mix(in srgb, var(--prime-accent) 36%, transparent);
    background-color: color-mix(in srgb, var(--prime-accent) 12%, #100e0b);
    color: var(--prime-accent-hover);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-position-card__link {
    color: var(--prime-accent-hover);
}

body.hp-recruit-body.hp-seasonal-theme .hp-recruit-success__icon {
    border-color: color-mix(in srgb, var(--prime-accent) 42%, transparent);
    background: color-mix(in srgb, var(--prime-accent) 12%, #100e0b);
    color: var(--prime-accent-hover);
}

@media (max-width: 700px) {
    body.hp-seasonal-theme .hp-index__background {
        background-position: center top;
    }

    body.hp-launch-body.hp-seasonal-theme .hp-launch-bg,
    body.hp-maintenance-body.hp-seasonal-theme .hp-maintenance-bg {
        background-attachment: scroll;
    }
}
