[data-site-layout] {
    font-family: var(--body-font, Barlow, sans-serif);
}
[data-site-layout] :is(h1, h2, h3) {
    font-family: var(--heading-font, Barlow, sans-serif);
}
[data-site-layout] .masthead .wrap { gap: 12px 24px; }
[data-site-layout][data-header-style="stacked"] .masthead .wrap {
    flex-direction: column;
    justify-content: center;
    padding-block: 11px;
}
[data-site-layout][data-header-style="reversed"] .masthead .wrap { flex-direction: row-reverse; }
[data-site-layout] .masthead nav { flex-wrap: wrap; }

[data-site-layout]:has(.edition-hero) { isolation: isolate; }
[data-site-layout]:has(.edition-hero)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--backdrop-edge, #08102244),
        #081022b8 18%, #081022c4 50%, #081022b8 82%, var(--backdrop-edge, #08102244)),
        var(--lobby-background) center / cover no-repeat;
}
[data-backdrop-style="quiet"] { --backdrop-edge: #081022a6; }
[data-backdrop-style="vivid"] { --backdrop-edge: #08102228; }
[data-backdrop-style="glow"] { --backdrop-edge: #30113162; }

[data-site-layout] .edition-hero {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: clamp(1.25rem, 3.5vw, 3rem);
    padding: clamp(1.25rem, 4vw, 3.75rem);
    min-height: 0;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
}
[data-site-layout] .edition-hero::before { content: none; }
[data-site-layout] .hero-copy { min-width: 0; container-type: inline-size; }
[data-site-layout] .edition-hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 13cqi, 5.4rem);
    line-height: .99;
    margin: 0 0 .9rem;
    overflow-wrap: anywhere;
}
[data-site-layout] .edition-hero p { font-size: 1.08rem; }
[data-site-layout] .edition-hero .hero-image { display: block; border-radius: 0; box-shadow: none; }
.edition-hero :is(div, figure) { min-width: 0; }
.edition-hero figure { margin: 0; }
.edition-hero img { display: block; width: 100%; height: auto; object-fit: cover; }
.edition-hero figcaption { padding: .4rem .6rem; font-weight: 700; background: var(--panel); }
.workshop-screen { padding: clamp(.5rem, 1.8vw,1.1rem); background: var(--panel); border: 1px solid var(--edge); border-radius: 26px 26px 10px 10px; }
.workshop-screen > span { display: block; height: 12px; width: 22%; margin: .8rem auto 0; border-radius: 20px; background: var(--warm); }
[data-site-layout="workshop"] .hero-copy { order: -1; }
[data-site-layout="workshop"][data-hero-order="art"] .hero-copy { order: 0; }

.worlds-map { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.worlds-map > a:first-child { grid-column: 1 / -1; }
.worlds-map > a,.trail-stops > a { display: grid; background: var(--panel); text-decoration: none; border: 1px solid var(--edge); }
.worlds-map > a > span,.trail-stops > a > span { padding: .45rem .65rem; font-weight: 700; }
.worlds-map img { aspect-ratio: 16/7; }
[data-site-layout="worlds"][data-hero-order="art"] .worlds-map { order: -1; }
[data-site-layout="worlds"] .game-shelf > h3 { padding-bottom: .4rem; border-bottom: 2px solid var(--signal); }

[data-site-layout="dispatch"] .edition-hero { grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); align-items: stretch; }
[data-site-layout="dispatch"] .hero-copy { grid-column: 1/-1; display: grid; justify-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--edge); }
[data-site-layout="dispatch"][data-hero-order="art"] .hero-copy { justify-items: center; text-align: center; }
[data-site-layout="dispatch"] .hero-copy h1 { font-size: clamp(2.4rem, 9vw,5.8rem); }
.dispatch-lead img { height: 100%; max-height: 380px; }
.dispatch-notes { display: grid; gap: .8rem; }
.dispatch-notes img { aspect-ratio: 4/1.55; }

[data-site-layout="cinema"] .edition-hero {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    align-items: end;
    min-height: clamp(270px,42vw,500px);
    padding: clamp(1.25rem,5vw,4rem);
}
.cinema-screen { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.cinema-screen img { height: 100%; }
.cinema-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#0b1122f5,#0b11229a 60%,transparent);
}
[data-site-layout="cinema"][data-hero-order="art"] .hero-copy { justify-self: end; text-align: right; }
[data-site-layout="cinema"][data-hero-order="art"] .cinema-screen::after { transform: scaleX(-1); }

[data-site-layout="index"] .edition-hero { grid-template-columns: 1fr; border-top: 4px solid var(--signal); }
[data-site-layout="index"] .hero-copy h1 { font-size: clamp(2.35rem, 7vw, 4.8rem); }
[data-site-layout="index"][data-hero-order="art"] .index-strip { order: -1; }
.index-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.index-strip img { aspect-ratio: 2.9/1; }

[data-site-layout="expedition"] .edition-hero { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
.trail-stops { border-inline-start: 2px dashed var(--edge); padding-inline-start: 1.2rem; display: grid; gap: .65rem; }
.trail-stops > a { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; border-radius: 2px 18px 18px 2px; }
.trail-stops img { aspect-ratio: 2.25/1; }
[data-site-layout="expedition"][data-hero-order="art"] .trail-stops { order: -1; }

.edition-catalog { display: grid; gap: clamp(1.1rem,3vw,2rem); }
.game-shelf { min-width: 0; }
.game-shelf > h3 { margin: 0 0 .6rem; font-size: clamp(1.3rem,3vw,1.9rem); }
.shelf-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.shelf-cards .card h4 { margin: 0; font-size: 1.13rem; overflow-wrap: anywhere; }
.shelf-cards .card a { height: 100%; }
.shelf-cards .card img { width: 100%; object-fit: cover; display: block; }
[data-card-shape="square"] .shelf-cards .card { border-radius: 0; }
[data-card-shape="soft"] .shelf-cards .card { border-radius: 18px; }
[data-card-shape="cut"] .shelf-cards .card { border-radius: 2px 20px 2px 20px; }
[data-catalog-density="dense"] .shelf-cards { gap: .5rem; }
[data-catalog-density="dense"] .shelf-cards .card img { aspect-ratio: 2/1; }
[data-catalog-density="dense"] .shelf-cards .card a > div { padding: .55rem .7rem; }
[data-site-layout="workshop"] .shelf-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-site-layout="workshop"] .shelf-cards .card a,
[data-site-layout="index"] .shelf-cards .card a,
[data-site-layout="expedition"] .shelf-cards .card a {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
    align-items: center;
}
[data-site-layout="dispatch"] .game-shelf { border-top: 1px solid var(--edge); padding-top: .8rem; }
[data-site-layout="cinema"] .shelf-cards .card img { aspect-ratio: 2.3/1; }
[data-site-layout="cinema"] .game-shelf:first-child .shelf-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-site-layout="index"] .game-shelf { display: grid; grid-template-columns: 2.5rem minmax(0,1fr); border-top: 1px solid var(--edge); padding-top: .6rem; gap: .6rem; }
[data-site-layout="index"] .shelf-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-site-layout="expedition"] .game-shelf { border-inline-start: 2px dashed var(--edge); padding-inline-start: 1rem; }
[data-site-layout="expedition"] .game-shelf:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; border-inline-end: 2px dashed var(--edge); padding-inline-end: 1rem; }
[data-site-layout="expedition"] .edition-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-site-layout="expedition"] .shelf-cards { grid-template-columns: 1fr; }

@media (max-width: 760px) {
    [data-site-layout] .edition-hero { grid-template-columns: minmax(0,1fr); }
    [data-site-layout] .edition-hero h1 { font-size: clamp(2.15rem,11cqi,3.8rem); }
    [data-site-layout="dispatch"] .dispatch-notes { grid-template-columns: repeat(2,minmax(0,1fr)); }
    [data-site-layout="expedition"] .edition-catalog { grid-template-columns: 1fr; }
    [data-site-layout]:has(.edition-hero)::before {
        background: linear-gradient(#0810229e,#081022cc),var(--lobby-background) 72% center / cover no-repeat;
    }
}
@media (max-width: 490px) {
    [data-site-layout] .masthead .wrap { flex-direction: column; align-items: flex-start; justify-content: center; }
    [data-site-layout] .masthead nav { padding-bottom: .3rem; }
    [data-site-layout] .shelf-cards,
    [data-site-layout="workshop"] .shelf-cards,
    [data-site-layout="index"] .shelf-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    [data-site-layout="expedition"] .shelf-cards { grid-template-columns: 1fr; }
    [data-site-layout="workshop"] .shelf-cards .card a,
    [data-site-layout="index"] .shelf-cards .card a { display: block; }
    [data-site-layout="index"] .game-shelf { grid-template-columns: 1fr; }
    body[data-site-layout] .edition-hero h1 { font-size: clamp(1.9rem,12cqi,3.4rem); }
}

.edition-filters {
    justify-content: flex-start;
    margin: 0 0 .75rem;
    padding: .6rem 0;
    border-block: 1px solid var(--edge);
}

[data-site-layout="worlds"] .edition-hero {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-inline: 0;
}
[data-site-layout="dispatch"] .edition-hero {
    border: 0;
    border-block: 1px solid var(--edge);
    border-radius: 0;
    box-shadow: none;
}
[data-site-layout="cinema"] .edition-hero {
    border: 0;
    border-radius: 3px;
}
[data-site-layout="index"] .edition-hero {
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}
[data-site-layout="expedition"] .edition-hero {
    border: 0;
    border-inline-start: 4px solid var(--signal);
    border-radius: 0 24px 24px 0;
}

/* Warmup v13 responsive adjustments */
@media (max-width: 500px) { [data-site-layout] .edition-hero .hero-copy h1 { font-size: clamp(1.3rem, 6.3vw, 2rem); } }
