@font-face { font-family: AOW; src: url("../fonts/Cinzel-Regular-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: AOW; src: url("../fonts/Cinzel-Regular-latin-ext.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-02FF; }
@font-face { font-family: Montserrat; src: url("../fonts/Montserrat-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

body.ghost-event-page {
    --ghost-ink: #060e16;
    --ghost-mint: #a2eee6;
    --ghost-gold: #f2cd95;
    --ghost-muted: #adbdc9;
    --ghost-edge: #8ebbd13d;
    --ghost-city: url("../image/ui/main_page/szellemvadaszok/background.webp");
    --ghost-topbar-height: 96px;
    --ras-violet: #559f9f;
    --ras-violet-hot: #a2eee6;
    min-height: 100dvh;
    margin: 0;
    padding-top: var(--ghost-topbar-height);
    padding-inline: 0;
    color: #edf6f6;
    background: linear-gradient(180deg, #060d17b0, #060e16 92%), var(--ghost-city) center top / cover fixed, var(--ghost-ink);
    font-family: Outfit, sans-serif;
}
.ghost-event-page [hidden] { display: none !important; }
.ghost-event-page :is(a,button,[tabindex="0"]):focus-visible { outline: 2px solid #d6fff4; outline-offset: 4px; }
.ghost-event-page[data-ghost-view="intro"] { padding: 0; }
.ghost-event-page[data-ghost-view="intro"] :is(.landing-topbar, .global-social-links) { display: none; }
.ghost-event-page .global-social-links { position: static; justify-content: center; margin: 0 0 28px; }
.ghost-event-page button { font-family: inherit; }
.ghost-intro {
    position: relative;
    isolation: isolate;
    min-height: max(660px, 100dvh);
    overflow: hidden;
    background: #0b1422;
}
.ghost-intro-atmosphere {
    position: absolute;
    inset: -4%;
    background: linear-gradient(180deg, #080e1dc7, transparent 34%, #080d1b17 60%, #050b16 100%),
        var(--ghost-city) center / cover no-repeat;
    animation: ghost-city-enter 1.8s cubic-bezier(.2,.7,.15,1) both;
}
.ghost-intro-nav {
    position: absolute;
    z-index: 5;
    inset: clamp(16px, 2.4vw, 42px) clamp(16px, 3vw, 58px) auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.ghost-home, .ghost-intro-time {
    padding: 9px 13px;
    border: 1px solid #c6dfeb49;
    background: #080f1cda;
    color: #e9f5f4;
    text-decoration: none;
    font-size: .9rem;
}
.ghost-intro-time { color: #fae1b5; font-variant-numeric: tabular-nums; }
.ghost-home:hover { border-color: var(--ghost-mint); color: var(--ghost-mint); }
.ghost-intro-heading {
    position: absolute;
    z-index: 4;
    inset: clamp(77px, 9.5dvh, 114px) 12px auto;
    text-align: center;
    pointer-events: none;
    animation: ghost-copy-enter .95s .1s both;
}
.ghost-eyebrow { color: #eed8b1; font: 700 .69rem/1.4 Montserrat, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.ghost-intro-heading h1 {
    margin: .13em 0 .04em;
    color: #f6eee0;
    font: 400 clamp(2.75rem, 6.4vw, 7.3rem)/1.02 AOW, serif;
    letter-spacing: -.038em;
    text-shadow: 0 4px 32px #000, 0 0 55px #654192;
}
.ghost-intro-heading p:last-child { margin: .54em 0 0; color: #e8e1f4; font-size: clamp(.9rem, 1.3vw, 1.2rem); text-shadow: 0 2px 12px #000; }
.ghost-factions { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.ghost-faction {
    --faction: #a2eee6;
    --faction-glow: #198981;
    --faction-shade: #071c25;
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: linear-gradient(180deg, #08142224, transparent 20%, transparent 54%, #06101bee 90%, #090e19);
    color: white;
    cursor: pointer;
}
.ghost-faction--hunter { --faction: #ffda9f; --faction-glow: #99622e; --faction-shade: #241817; }
.ghost-faction::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 52% 54%, var(--faction-glow), transparent 65%);
    opacity: .35;
    transition: opacity .65s ease;
}
.ghost-faction::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #060b14 5%, #07101aed 16%, #07101a4d 38%, transparent 55%),
        linear-gradient(180deg, #05091488, transparent 30%);
    box-shadow: inset 0 0 100px #0407107d;
}
.ghost-faction-ring {
    position: absolute;
    top: 29%;
    left: 50%;
    width: min(73%, 60dvh);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border: 1px solid var(--faction);
    border-radius: 50%;
    box-shadow: 0 0 0 14px #0b112885, 0 0 0 15px var(--faction), inset 0 0 65px var(--faction-glow);
    opacity: .22;
    transition: opacity .7s ease;
}
.ghost-faction-art {
    position: absolute;
    inset: max(163px, 20%) 0 auto;
    width: 100%;
    height: 77%;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 25px 25px #0009) brightness(.95);
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .45s;
    animation: ghost-art-enter 1.45s cubic-bezier(.17,.69,.17,1) both;
}
.ghost-faction--hunter .ghost-faction-art { animation-delay: 110ms; }
.ghost-faction:hover::before, .ghost-faction:focus-visible::before { opacity: .75; }
.ghost-faction:hover .ghost-faction-ring, .ghost-faction:focus-visible .ghost-faction-ring { opacity: .57; }
.ghost-faction:hover .ghost-faction-art, .ghost-faction:focus-visible .ghost-faction-art {
    transform: translateY(-1.5%) scale(1.045);
    filter: drop-shadow(0 10px 38px var(--faction-glow)) brightness(1.13) saturate(1.16);
}
.ghost-faction:focus-visible { outline-offset: -7px; }
.ghost-faction-copy {
    position: absolute;
    z-index: 2;
    inset: auto 10px clamp(72px, 10.5dvh, 115px);
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    animation: ghost-copy-enter .95s .25s both;
}
.ghost-faction-copy > strong {
    color: var(--faction);
    font: 400 clamp(1.8rem, 4.5vw, 5rem)/1 AOW, serif;
    letter-spacing: -.04em;
    text-shadow: 0 3px 21px #040712, 0 0 26px var(--faction-glow);
}
.ghost-faction-gift { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px 9px; color: #c9d3dc; font-size: .88rem; }
.ghost-faction-gift b { color: #fff4e6; font-weight: 600; }
.ghost-button {
    --faction: var(--ghost-mint);
    --faction-shade: #102a33;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px clamp(12px, 1.6vw, 26px);
    border: 1px solid var(--faction);
    background: linear-gradient(135deg, var(--faction-shade), #0a1420 80%);
    color: var(--faction);
    box-shadow: inset 0 0 18px #c6fff415, 0 8px 24px #0006;
    font: 700 .71rem/1.2 Montserrat, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .09em;
    cursor: pointer;
    transition: filter .2s, box-shadow .3s;
}
.ghost-faction .ghost-button, .ghost-dialog .ghost-button { --faction: inherit; --faction-shade: inherit; }
.ghost-faction:hover .ghost-button, .ghost-faction:focus-visible .ghost-button, .ghost-button:hover:not(:disabled) {
    filter: brightness(1.3);
    box-shadow: inset 0 0 21px #ffffff2e, 0 0 30px color-mix(in srgb, var(--faction), transparent 60%);
}
.ghost-button:disabled { opacity: .54; cursor: default; }
.ghost-rift {
    position: absolute;
    inset: 23% auto 18%;
    left: calc(50% - 1px);
    width: 2px;
    pointer-events: none;
    animation: ghost-rift-enter 1.4s .1s both;
}
.ghost-rift::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, #b3fbef 29%, #fff8dd 63%, transparent);
    filter: drop-shadow(0 0 8px #bfb2e5);
}
.ghost-rift i {
    position: absolute;
    top: 67%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #ffeed3a8;
    color: #fff4dc;
    background: #191e2e;
    box-shadow: 0 0 26px #d6d6fa85;
    font-style: normal;
}
.ghost-particles { position: absolute; inset: 19% 0 7%; z-index: 2; overflow: hidden; pointer-events: none; }
.ghost-particles i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    aspect-ratio: 1;
    border-radius: 50%;
    background: currentColor;
    color: var(--glow);
    box-shadow: 0 0 10px 1px currentColor;
    animation: ghost-mote var(--duration) var(--delay) linear infinite;
}
.ghost-intro-note {
    position: absolute;
    z-index: 3;
    inset: auto 14px clamp(16px, 4dvh, 45px);
    margin: 0;
    color: #dde5ee;
    text-align: center;
    font-size: .86rem;
    pointer-events: none;
    animation: ghost-copy-enter 1s .45s both;
}

.ghost-board.ras-page {
    width: 100%;
    padding-inline: clamp(10px, 1.5vw, 36px);
    padding-bottom: 28px;
}
.ghost-board .ras-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(140px, 24vw, 390px);
    min-height: clamp(360px, 29vw, 550px);
    box-sizing: border-box;
    padding: clamp(36px, 4vw, 80px) clamp(24px, 4.5vw, 110px);
    overflow: hidden;
    align-items: center;
    border-color: #9ad9db60;
    background: linear-gradient(90deg, #040c16f9 2%, #091523d0 32%, #07131a27 75%, #081018aa),
        var(--ghost-city) center 56% / cover no-repeat;
}
.ghost-board .ras-header-content { width: auto; }
.ghost-board .ras-header::after { background: linear-gradient(90deg, transparent, #6ab7b9, #f1d19d 72%, transparent); box-shadow: 0 0 14px #88dfd1; }
.ghost-board .ras-header-eyebrow { color: var(--ghost-gold); font-size: .8rem; }
.ghost-board .ras-header-eyebrow span { background: linear-gradient(90deg, transparent, var(--ghost-gold)); }
.ghost-board .ras-header-eyebrow span:last-child { transform: scaleX(-1); }
.ghost-board .ras-header-title {
    color: #fff2df;
    font-size: clamp(1.45rem, 4.45vw, 6.5rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
    text-shadow: 0 4px 23px #02080f;
}
.ghost-board .ras-header-lead { max-width: 58ch; color: #d5e1e9; font-size: clamp(1rem, 1.05vw, 1.25rem); }
.ghost-board .ras-header-countdown { color: var(--ghost-gold); border-color: var(--ghost-edge); font-size: .96rem; }
.ghost-board .ras-header-countdown small { color: var(--ghost-muted); font-size: .71rem; line-height: 1.3; }
.ghost-board time { font-variant-numeric: tabular-nums; }
.ghost-lantern { position: relative; isolation: isolate; min-width: 0; text-align: center; }
.ghost-lantern img {
    width: min(100%, clamp(200px, 17vw, 355px));
    display: block;
    margin: 0 auto -8px;
    mask-image: radial-gradient(ellipse, black 49%, #000c 58%, transparent 73%);
    filter: saturate(1.25) brightness(1.25);
    animation: ghost-lantern-drift 6s ease-in-out infinite;
}
.ghost-lantern-orbit {
    position: absolute;
    inset: 8% 9% 12%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse, #65e9e74d, #4fdcd615 50%, transparent 75%);
    animation: ghost-lantern-drift 6s -2s ease-in-out infinite alternate;
}
.ghost-lantern-count { position: relative; display: grid; justify-items: center; gap: 3px; text-shadow: 0 2px 10px #000; }
.ghost-lantern-count span { color: #dbf5f1; font: 700 .75rem/1.35 Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ghost-lantern-count strong { font: 400 clamp(2rem, 3vw, 3.4rem)/1.15 AOW, serif; color: var(--ghost-gold); }
.ghost-lantern-count b { font-weight: inherit; color: #e7fffb; }
.ghost-lantern-count progress { width: min(78%, 178px); height: 5px; margin-top: 9px; border: 0; border-radius: 10px; overflow: hidden; background: #a8b9d643; color: var(--ghost-mint); }
.ghost-lantern-count progress::-webkit-progress-bar { background: #a8b9d643; }
.ghost-lantern-count progress::-webkit-progress-value { background: linear-gradient(90deg, #59bcb3, #abfff1); }
.ghost-lantern-count progress::-moz-progress-bar { background: linear-gradient(90deg, #59bcb3, #abfff1); }
.ghost-board .ras-content-wrap, .ghost-board .ras-collection { border-color: var(--ghost-edge); background: linear-gradient(147deg, #0c1b27f5, #070e19f7); }
.ghost-board .ras-section-heading { border-color: var(--ghost-edge); }
.ghost-board .ras-kicker { font-size: .73rem; }
.ghost-board :is(.ras-section-heading > p, .ras-collection-copy p) { color: var(--ghost-muted); font-size: 1rem; }
.ghost-board .ras-body { min-height: 0; }
.ghost-board :is(.ghost-daily, .ghost-rewards) { border-color: var(--ghost-edge); background: linear-gradient(148deg, #122736, #0a1421 82%); }
.ghost-board .ghost-daily::after { content: none; }
.ghost-daily .ras-daily-card-head span { color: var(--ghost-muted); font-size: .73rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ghost-daily .ras-daily-card-head p { color: var(--ghost-muted); font-size: .94rem; }
.ghost-daily .ras-daily-list li { color: #d3dfe6; border-color: var(--ghost-edge); gap: 8px; min-height: 44px; font-size: .96rem; }
.ghost-daily .ras-daily-list a { margin-left: auto; color: var(--ghost-mint); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.ghost-daily .ras-daily-list a:hover { text-decoration: underline; }
.ghost-daily .ghost-daily-submit { width: 100%; min-height: 44px; font-size: .85rem; }
.ghost-board .ghost-button:disabled { opacity: 1; color: #b2c5cd; border-color: #8ebbd168; }
.ghost-rewards .ras-milestone-heading { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; }
.ghost-rewards-actions { max-width: 100%; margin-left: auto; display: flex; align-items: center; gap: 8px; }
#ghost-claim-all {
    --faction: #f6dca7;
    --faction-shade: #473926;
    min-height: 44px;
    padding: 7px 10px;
    font: 700 .8rem/1.2 Montserrat, sans-serif;
    letter-spacing: .05em;
}
.ghost-rail-controls { display: flex; gap: 8px; }
.ghost-rail-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--ghost-edge);
    color: #d4f1ee;
    background: #142a38;
    font-size: 1.1rem;
    cursor: pointer;
}
.ghost-rail-controls button:hover:not(:disabled) { background: #264b55; }
.ghost-rail-controls button:disabled { opacity: .4; cursor: default; }
.ghost-track {
    overflow-x: auto;
    padding: 6px 5px 12px;
    scrollbar-width: thin;
    scrollbar-color: #5c999e #0c1521;
    scroll-padding-inline: 5px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
}
.ghost-rail {
    width: max-content;
    min-width: 100%;
    display: flex;
    gap: 12px;
}
.ghost-milestone {
    position: relative;
    flex: 1 0 auto;
    width: clamp(155px, 7.5vw, 185px);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 9px;
    padding: 0 9px 10px;
    scroll-snap-align: start;
    border: 1px solid #749bb344;
    background: radial-gradient(ellipse at 50% 32%, #25475c, #102033 72%);
    text-align: center;
    border-radius: 5px;
}
.ghost-milestone.is-locked { background: radial-gradient(ellipse at 50% 32%, #223342, #101a28 72%); }
.ghost-milestone.is-locked .ghost-reward-items img { filter: saturate(.75) brightness(.83); }
.ghost-milestone.is-ready { border-color: #74e7ce9c; box-shadow: inset 0 0 18px #9bffe115; }
.ghost-milestone.is-claimed { border-color: #78a8a38c; }
.ghost-milestone.is-final { width: clamp(200px, 10vw, 255px); border-color: #e4be7bab; background: radial-gradient(ellipse at 50% 32%, #494032, #161f2b 80%); }
.ghost-milestone-progress { position: relative; height: 4px; margin: 0 -9px; overflow: hidden; background: #a6bfdb38; border-radius: 4px 4px 0 0; }
.ghost-milestone-progress i { display: block; width: var(--fill); height: 100%; background: linear-gradient(90deg, #508999, #b3f4dc); transition: width .5s; }
.ghost-milestone.is-final .ghost-milestone-progress i { background: linear-gradient(90deg, #a67444, #ffe4a9); }
.ghost-milestone h4 { margin: 0; color: #e6e9ed; font: 400 1.12rem/1.2 AOW, serif; }
.ghost-milestone.is-final h4 { color: #ffdea7; }
.ghost-reward-items { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; min-height: 156px; }
.ghost-loot { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; flex: 1 1 45px; }
.ghost-loot img { width: 53px; height: 59px; object-fit: contain; filter: drop-shadow(0 3px 8px #03080c9e); }
.ghost-loot small { color: #dbe8ee; font-size: .9rem; line-height: 1.25; }
.ghost-loot b { color: #f5dba7; font-weight: 600; font-size: .94rem; }
.ghost-milestone .ghost-loot.is-skin img { width: 65px; height: 68px; border-radius: 5px; object-fit: cover; }
.ghost-milestone.is-final .ghost-loot.is-skin { flex-basis: 100%; }
.ghost-milestone.is-final .ghost-loot:not(.is-skin) img { height: 38px; }
.ghost-milestone .ghost-button { min-height: 44px; padding: 6px 4px; font-size: .8rem; }
.ghost-board .ghost-collection {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    background: radial-gradient(ellipse at 100% 18%, #75624525, transparent 53%),
        radial-gradient(ellipse at 15% 0, #3d919527, transparent 57%), linear-gradient(150deg, #101d2a, #070e19);
}
.ghost-collection .ras-collection-copy {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    max-width: none;
    gap: 14px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--ghost-edge);
}
.ghost-collection .ras-collection-copy p { max-width: 440px; margin: 0; text-align: right; }
.ghost-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(8px, 1.25vw, 18px);
}
[data-ghost-skin="arobius"] { --skin-accent: #a9e7df; --skin-shadow: #15323e; }
[data-ghost-skin="nunu"] { --skin-accent: #cec4ff; --skin-shadow: #35294d; }
[data-ghost-skin="hunter"] { --skin-accent: #f6d098; --skin-shadow: #483129; }
[data-ghost-skin="spirit"] { --skin-accent: #b6e9ff; --skin-shadow: #294056; }
.ghost-skin-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    min-height: clamp(340px, 35vw, 520px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(17px, 2vw, 29px);
    border: 1px solid color-mix(in srgb, var(--skin-accent), transparent 50%);
    border-radius: 3px 16px 3px 16px;
    text-align: left;
    color: #f4f3f0;
    background: var(--skin-shadow);
    box-shadow: 0 10px 30px #03080f9c;
    cursor: pointer;
    transition: border-color .25s, box-shadow .4s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.ghost-skin-card:disabled { cursor: wait; }
.ghost-skin-card.is-finale { border-color: #f4ce917c; box-shadow: inset 0 0 24px #eec99435, 0 10px 40px #000b; }
.ghost-skin-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg, #040811 5%, #040811f6 13%, #070b18a8 28%, transparent 62%, #060c1790 100%),
        linear-gradient(105deg, color-mix(in srgb, var(--skin-shadow), transparent 22%), transparent 56%);
}
.ghost-skin-art {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 31%;
    transform: scale(1.015);
    transition: transform .8s cubic-bezier(.21,.77,.23,1), filter .55s ease;
}
.ghost-skin-halo {
    position: absolute;
    z-index: -2;
    inset: 12% -4% auto;
    width: 108%;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .45;
    background: radial-gradient(circle, transparent 56%, var(--skin-accent) 57%, transparent 58% 62%, var(--skin-accent) 62.5%, transparent 63.5%),
        conic-gradient(from 60deg, transparent 6%, var(--skin-shadow) 20%, transparent 35% 51%, var(--skin-accent) 67%, transparent 78%);
    mask-image: linear-gradient(black, #0007 65%, transparent 88%);
    mix-blend-mode: screen;
    transition: transform .9s ease, opacity .6s ease;
}
.ghost-skin-frame {
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--skin-accent), transparent 80%);
    border-radius: 2px 11px 2px 11px;
    background: linear-gradient(90deg, var(--skin-accent), transparent) top left / 56px 1px no-repeat,
        linear-gradient(180deg, var(--skin-accent), transparent) top left / 1px 58px no-repeat,
        linear-gradient(270deg, var(--skin-accent), transparent) bottom right / 56px 1px no-repeat,
        linear-gradient(0deg, var(--skin-accent), transparent) bottom right / 1px 58px no-repeat;
    pointer-events: none;
}
.ghost-skin-card:is(:hover, :focus-visible):not(:disabled) {
    transform: translateY(-4px);
    border-color: var(--skin-accent);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--skin-accent), transparent 79%);
}
.ghost-skin-card:is(:hover, :focus-visible):not(:disabled) .ghost-skin-art { transform: scale(1.09); filter: saturate(1.17) brightness(1.10); }
.ghost-skin-card:is(:hover, :focus-visible):not(:disabled) .ghost-skin-halo { transform: scale(1.12) rotate(-16deg); opacity: .84; }
.ghost-skin-threshold {
    position: absolute;
    top: clamp(17px, 2vw, 29px);
    right: clamp(17px, 2vw, 29px);
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--skin-accent), transparent 42%);
    background: #07111be6;
    color: var(--skin-accent);
    font: 400 clamp(.82rem, 1.1vw, 1rem)/1 AOW, serif;
}
.ghost-skin-copy { display: grid; gap: 7px; }
.ghost-skin-copy > small {
    color: #ffdda9;
    font: 700 .75rem/1.3 Montserrat, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ghost-skin-copy > strong {
    max-width: 100%;
    color: #fff2df;
    text-shadow: 0 3px 12px #010509;
    font: 400 clamp(1.6rem, 2.3vw, 2.55rem)/1.06 AOW, serif;
    text-wrap: balance;
}
.ghost-skin-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 9px;
    border-top: 1px solid color-mix(in srgb, var(--skin-accent), transparent 73%);
    font: 600 .85rem/1.3 Montserrat, sans-serif;
}
.ghost-skin-state { color: #d2f8d8; }
.ghost-skin-more { margin-left: auto; color: var(--skin-accent); }
.ghost-skin-more span { display: inline-block; margin-left: 3px; transition: transform .25s ease; }
.ghost-skin-card:is(:hover, :focus-visible) .ghost-skin-more span { transform: translate(2px, -2px); }

.ghost-status {
    min-height: calc(100dvh - var(--ghost-topbar-height));
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    text-align: center;
}
.ghost-status img { width: min(92vw, 420px); }
.ghost-status h1, .ghost-dialog h2 { margin: 13px 0 7px; color: #fae8c8; font: 400 clamp(1.65rem, 4vw, 2.55rem)/1.1 AOW, serif; }
.ghost-status p, .ghost-dialog p { color: #c4d9e2; line-height: 1.6; margin: 12px 0 26px; }
.ghost-dialog {
    --faction: #a2eee6;
    --faction-shade: #102a33;
    box-sizing: border-box;
    width: min(90vw, 460px);
    max-height: calc(100dvh - 38px);
    padding: clamp(17px, 3vw, 31px);
    border: 1px solid var(--faction);
    background: radial-gradient(ellipse at 50% 0, #234351, #0a131e 78%);
    color: #f1ede5;
    box-shadow: 0 26px 90px #020609cf, inset 0 0 35px #8ac4ce20;
    text-align: center;
}
.ghost-dialog[data-faction="hunter"] { --faction: #ffda9f; --faction-shade: #2e211b; }
.ghost-dialog[open] { animation: ghost-copy-enter .38s both; }
.ghost-reveal[data-finale="true"] {
    --faction: #ffda9f;
    --faction-shade: #2e211b;
    background: radial-gradient(ellipse at 50% 0, #514536, #0a131e 82%);
    box-shadow: 0 0 70px #c99d4f34, 0 26px 90px #020609cf, inset 0 0 35px #d3ac6427;
}
.ghost-reveal[open] .ghost-loot { animation: ghost-copy-enter .52s .12s both; }
.ghost-reveal[open] .ghost-loot:nth-child(2) { animation-delay: .19s; }
.ghost-reveal[open] .ghost-loot:nth-child(3) { animation-delay: .26s; }
.ghost-dialog::backdrop { background: #02070dd0; backdrop-filter: blur(6px); }
.ghost-dialog button.ghost-button { font-family: Montserrat, sans-serif; }
.ghost-dialog .ghost-button--quiet { border-color: #a3b5c15e; color: #d5e1ea; }
.ghost-dialog-actions { display: flex; justify-content: center; gap: 12px; }
#ghost-confirm-art { width: 94px; height: 94px; border-radius: 50%; object-fit: cover; border: 1px solid var(--faction); box-shadow: 0 0 34px #b1e8e745; }
#ghost-reveal-items { display: flex; gap: 11px; margin: 20px 0 26px; }
.ghost-reveal .ghost-loot img { width: min(26vw, 94px); height: 97px; }
.ghost-reveal .ghost-loot small { font-size: .86rem; }
.ghost-reveal[data-bulk="true"] { width: min(94vw, 790px); }
.ghost-reveal[data-bulk="true"] #ghost-reveal-items { flex-wrap: wrap; justify-content: center; gap: 7px; }
.ghost-reveal[data-bulk="true"] .ghost-loot {
    flex: 0 1 105px;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 5px;
    border: 1px solid #b2d0df30;
    background: #0a16268c;
}
.ghost-reveal[data-bulk="true"] .ghost-loot img { width: min(100%, 65px); height: 65px; }
.ghost-reveal[data-bulk="true"] .ghost-loot small { font-size: .74rem; }
#ghost-reveal-notice { margin: 10px 0 0; color: #f6dca7; font-size: .85rem; }
.ghost-skin-preview {
    width: min(94vw, 1140px, calc((100dvh - 84px) * 1.77));
    max-height: calc(100dvh - 26px);
    padding: 0;
    text-align: left;
    border-color: var(--skin-accent);
    background: #070e19;
    box-shadow: 0 0 50px color-mix(in srgb, var(--skin-accent), transparent 78%), 0 25px 70px #000c;
}
.ghost-skin-preview form { position: relative; }
.ghost-skin-preview img { width: 100%; height: auto; display: block; }
.ghost-skin-preview-copy {
    padding: clamp(12px, 1.6vw, 24px) clamp(14px, 2.3vw, 32px);
    border-top: 1px solid color-mix(in srgb, var(--skin-accent), transparent 65%);
    background: linear-gradient(100deg, var(--skin-shadow), #070e19 76%);
}
.ghost-skin-preview-copy h2 { margin: 5px 0 0; font-size: clamp(1.35rem, 3vw, 2.7rem); }
.ghost-skin-preview-copy p { margin: 0; color: var(--skin-accent); font: 400 .88rem/1.2 AOW, serif; }
.ghost-skin-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--skin-accent);
    border-radius: 50%;
    color: #f4f6f8;
    background: #081521e6;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.ghost-skin-close:hover { background: var(--skin-shadow); }
.ghost-toast {
    position: fixed;
    z-index: 999;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(92vw, 580px);
    box-sizing: border-box;
    margin: 0;
    padding: 14px 19px;
    border: 1px solid #9ed7d978;
    background: #0a1623;
    color: #e3f0fa;
    box-shadow: 0 10px 45px #0008;
    text-align: center;
}

@keyframes ghost-city-enter { from { opacity: .12; transform: scale(1.075); } to { opacity: 1; transform: scale(1); } }
@keyframes ghost-art-enter { from { opacity: 0; translate: 0 35px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ghost-copy-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes ghost-rift-enter { from { opacity: 0; scale: 1 .2; } to { opacity: 1; scale: 1; } }
@keyframes ghost-mote { 0% { opacity: 0; translate: 0 48px; } 22% { opacity: .76; } 78% { opacity: .56; } 100% { opacity: 0; translate: 18px -105px; } }
@keyframes ghost-lantern-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 1450px), (max-height: 820px) {
    body.ghost-event-page { --ghost-topbar-height: 68px; }
}
@media (max-width: 900px) {
    body.ghost-event-page { --ghost-topbar-height: 62px; }
    .ghost-skin-copy > strong { font-size: clamp(1.25rem, 3vw, 1.75rem); }
}
@media (max-width: 680px) {
    .ghost-intro { min-height: max(540px, 100dvh); }
    .ghost-intro-heading h1 { font-size: clamp(1.5rem, 8.2vw, 4rem); overflow-wrap: anywhere; }
    .ghost-intro-heading .ghost-eyebrow { font-size: .72rem; letter-spacing: .13em; }
    .ghost-faction-art { inset: 26% auto auto -36%; width: 172%; height: auto; mask-image: linear-gradient(black 62%, transparent); }
    .ghost-faction--hunter .ghost-faction-art { left: -41%; }
    .ghost-faction::after { background: linear-gradient(0deg, #060b14 10%, #07101aed 26%, #07101a4d 52%, transparent 72%); }
    .ghost-faction-copy { inset-inline: 6px; gap: 8px; }
    .ghost-faction-copy > strong { font-size: clamp(.9rem, 4.35vw, 1.85rem); overflow-wrap: anywhere; }
    .ghost-faction .ghost-button { min-height: 58px; max-width: 100%; padding: 7px 6px; font-size: .76rem; letter-spacing: 0; overflow-wrap: anywhere; }
    .ghost-faction-gift { display: grid; gap: 3px; font-size: .87rem; }
    .ghost-rift i { width: 23px; font-size: .74rem; top: 56%; }
    .ghost-board .ras-header {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        gap: 16px;
        padding: 28px clamp(14px, 4vw, 24px) 22px;
        background: linear-gradient(180deg, #07121ef0, #0814219c), var(--ghost-city) center / cover no-repeat;
    }
    .ghost-board .ras-header-title { font-size: clamp(1.45rem, 7.6vw, 3rem); }
    .ghost-board .ras-header-countdown { margin-top: 16px; }
    .ghost-lantern img { width: clamp(150px, 34vw, 210px); margin-bottom: -10px; }
    .ghost-board :is(.ghost-daily, .ghost-rewards) { padding: 18px 12px; }
    .ghost-rewards .ras-milestone-heading { margin-bottom: 12px; }
    .ghost-rewards-actions { margin-left: 0; }
    .ghost-collection .ras-collection-copy { align-items: start; flex-direction: column; gap: 8px; }
    .ghost-collection .ras-collection-copy p { text-align: left; }
    .ghost-showcase { grid-template-columns: 1fr; gap: 13px; }
    .ghost-skin-card { min-height: clamp(285px, 105vw, 400px); }
    .ghost-skin-copy > strong { font-size: clamp(1.4rem, 6vw, 2rem); }
}
@media (max-width: 680px) and (max-height: 620px) {
    .ghost-intro-heading { top: 65px; }
    .ghost-faction-copy { bottom: 63px; }
    .ghost-intro-note { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ghost-event-page *, .ghost-event-page *::before, .ghost-event-page *::after { animation: none !important; transition: none !important; }
    .ghost-particles { display: none; }
}
