/* ATH Fortnite Radar — components styled with almanac theme tokens */

.ath-fnr-schedule, .ath-fnr-facts {
    font-family: var(--almanac-font-sans, inherit);
    margin: var(--almanac-space-lg, 2rem) 0;
}

.ath-fnr-h {
    font-family: var(--almanac-font-display, inherit);
    font-size: 1.35rem;
    margin: var(--almanac-space-lg, 2rem) 0 var(--almanac-space-sm, .75rem);
}

.ath-fnr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--almanac-space-sm, .75rem);
}

.ath-fnr-card {
    background: var(--almanac-bg-paper, #fff);
    border: 1px solid var(--almanac-border, #ddd);
    border-radius: var(--almanac-radius-md, 8px);
    box-shadow: var(--almanac-shadow-soft, none);
    padding: var(--almanac-space-md, 1rem);
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ath-fnr-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.ath-fnr-pill {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .15rem .55rem;
    border-radius: var(--almanac-radius-pill, 99px);
    background: var(--almanac-bg-mist, #f3f3f3);
    color: var(--almanac-fg-secondary, #444);
}

.ath-fnr-live .ath-fnr-pill {
    background: var(--almanac-success-soft, #e6f6ea);
    color: var(--almanac-success, #1a7f37);
}

.ath-fnr-upcoming .ath-fnr-pill {
    background: var(--almanac-info-soft, #e8f0fe);
    color: var(--almanac-info, #1a56db);
}

.ath-fnr-ended { opacity: .72; }

.ath-fnr-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin: 0;
    font-family: var(--almanac-font-sans, inherit);
}

.ath-fnr-when {
    margin: 0;
    font-size: .88rem;
    color: var(--almanac-fg-secondary, #555);
}

.ath-fnr-when .ath-fnr-local {
    display: block;
    font-size: .8rem;
    color: var(--almanac-fg-tertiary, #777);
}

.ath-fnr-countdown {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--almanac-tan-deep, #8a6d3b);
}

.ath-fnr-interest {
    font-size: .78rem;
    color: var(--almanac-fg-tertiary, #777);
    white-space: nowrap;
}

.ath-fnr-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    margin: 0 0 var(--almanac-space-sm, .75rem);
    color: var(--almanac-fg-secondary, #555);
}

.ath-fnr-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--almanac-success, #1a7f37);
    flex: none;
}

.ath-fnr-status-warn .ath-fnr-dot { background: var(--almanac-warning, #b45309); }

.ath-fnr-facts dl {
    margin: 0;
    border: 1px solid var(--almanac-border, #ddd);
    border-radius: var(--almanac-radius-md, 8px);
    background: var(--almanac-bg-paper, #fff);
    overflow: hidden;
}

.ath-fnr-fact {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    gap: .75rem;
    padding: .65rem 1rem;
}

.ath-fnr-fact + .ath-fnr-fact { border-top: 1px solid var(--almanac-border-faint, #eee); }

.ath-fnr-fact dt {
    font-weight: 600;
    font-size: .88rem;
    color: var(--almanac-fg-secondary, #555);
}

.ath-fnr-fact dd {
    margin: 0;
    font-size: .92rem;
}

.ath-fnr-attribution {
    margin-top: var(--almanac-space-md, 1rem);
    font-size: .78rem;
    color: var(--almanac-fg-quaternary, #999);
    line-height: 1.5;
}

/* ---- design parity with the Roblox cards (v0.2.x) ---- */

.ath-fnr-card {
    transition: transform var(--almanac-duration, .18s) var(--almanac-ease, ease),
                box-shadow var(--almanac-duration, .18s) var(--almanac-ease, ease);
    border-top: 3px solid var(--almanac-border, #ddd);
}

.ath-fnr-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--almanac-shadow-lift, 0 8px 24px rgba(0,0,0,.10));
}

.ath-fnr-live { border-top-color: var(--almanac-success, #1a7f37); }
.ath-fnr-upcoming { border-top-color: var(--almanac-info, #1a56db); }

.ath-fnr-live .ath-fnr-pill { background: var(--almanac-success, #1a7f37); color: #fff; }
.ath-fnr-upcoming .ath-fnr-pill { background: var(--almanac-info, #1a56db); color: #fff; }

.ath-fnr-countdown {
    display: inline-block;
    align-self: flex-start;
    font-variant-numeric: tabular-nums;
    font-size: .82rem;
    padding: .28rem .7rem;
    border-radius: var(--almanac-radius-pill, 99px);
    background: var(--almanac-yellow-soft, #fdf3d0);
    min-height: 1.4em;
}

.ath-fnr-live .ath-fnr-countdown {
    background: var(--almanac-success-soft, #e6f6ea);
    color: var(--almanac-success, #1a7f37);
}

/* Official in-game news tiles */
.ath-fnr-sectionnote {
    margin: -.4rem 0 .8rem;
    font-size: .85rem;
    color: var(--almanac-fg-tertiary, #777);
}

.ath-fnr-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--almanac-space-sm, .75rem);
}

.ath-fnr-tile {
    margin: 0;
    border: 1px solid var(--almanac-border, #ddd);
    border-radius: var(--almanac-radius-md, 8px);
    overflow: hidden;
    background: var(--almanac-bg-paper, #fff);
    transition: transform var(--almanac-duration, .18s) var(--almanac-ease, ease),
                box-shadow var(--almanac-duration, .18s) var(--almanac-ease, ease);
}

.ath-fnr-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--almanac-shadow-lift, 0 8px 24px rgba(0,0,0,.10));
}

.ath-fnr-tile img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    display: block;
}

.ath-fnr-tile figcaption {
    padding: .55rem .8rem;
    font-family: var(--almanac-font-sans, inherit);
    font-size: .88rem;
    font-weight: 600;
}

/* Expandable card details */
.ath-fnr-more { align-self: flex-start; margin-top: .2rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--almanac-tan-deep, #8E7444); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ath-fnr-panel { border-top: 1px dashed var(--almanac-border, #EBE3D2); padding-top: .6rem; margin-top: .4rem; }
.ath-fnr-devnote { margin: 0 0 .5rem; padding: .5rem .75rem; background: var(--almanac-bg-cream, #F5EFE0); border-left: 3px solid var(--almanac-tan, #B2935B); border-radius: 0 6px 6px 0; }
.ath-fnr-devnote p { margin: 0 0 .25rem; font-size: .85rem; font-style: italic; }
.ath-fnr-devnote cite { font-size: .75rem; color: var(--almanac-fg-tertiary, #6B5F53); font-style: normal; }
.ath-fnr-panel-links { display: flex; gap: 1rem; margin: 0; font-size: .85rem; }
.ath-fnr-panel-links a { font-weight: 600; text-decoration: none; }

/* Item shop grid */
.ath-fnr-shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--almanac-space-sm, .75rem); }
.ath-fnr-shopitem { margin: 0; background: var(--almanac-bg-paper, #fff); border: 1px solid var(--almanac-border, #EBE3D2); border-radius: var(--almanac-radius-md, 8px); overflow: hidden; border-top: 3px solid var(--almanac-border, #EBE3D2); transition: transform var(--almanac-duration, .18s) var(--almanac-ease, ease), box-shadow var(--almanac-duration, .18s) var(--almanac-ease, ease); }
.ath-fnr-shopitem:hover { transform: translateY(-2px); box-shadow: var(--almanac-shadow-lift, 0 8px 24px rgba(0,0,0,.1)); }
.ath-fnr-shopitem img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--almanac-bg-mist, #f0efeb); }
.ath-fnr-shopitem figcaption { padding: .5rem .65rem .65rem; display: flex; flex-direction: column; gap: .15rem; }
.ath-fnr-shopitem strong { font-size: .88rem; line-height: 1.25; }
.ath-fnr-shopitem span { font-size: .72rem; color: var(--almanac-fg-tertiary, #6B5F53); }
.ath-fnr-vbucks { font-size: .8rem; color: var(--almanac-tan-deep, #8E7444); }
.ath-fnr-r-legendary { border-top-color: #E98A25; }
.ath-fnr-r-epic { border-top-color: #9D4DBB; }
.ath-fnr-r-rare { border-top-color: #3A78C8; }
.ath-fnr-r-uncommon { border-top-color: #1E9D52; }

/* ====================================================================
   STORM DUSK (v0.5.0) — Fortnite tracker identity, ported from the
   approved mock (design/mock-fortnite-storm.html).

   Everything below is scoped under body.ath-gp--fortnite (set by the
   ath-game-pages template for _ath_fnr_role pages), so Roblox pages
   and articles are untouched. The dark bands re-declare the almanac
   DARK token values locally; components inside inherit them — no
   bespoke hero colors, which is the whole trick.
   ==================================================================== */

/* ---- dark token scope: hero band + news band ---- */
.ath-gp--fortnite .ath-gp-hero,
.ath-gp--fortnite .ath-fnr-newsband {
    --almanac-bg-paper: #1A1410;
    --almanac-bg-canvas: #2A2218;
    --almanac-bg-cream: #221C16;
    --almanac-bg-mist: #221C16;
    --almanac-fg-primary: #F5EFE2;
    --almanac-fg-secondary: #D6CDB9;
    --almanac-fg-tertiary: #948775;
    --almanac-fg-quaternary: #948775;
    --almanac-border: #3A312A;
    --almanac-border-faint: #2E2620;
    --almanac-yellow-soft: #3D3000;
    --almanac-tan-soft: #3A2E18;
    --almanac-tan-deep: #D6B883;
    --almanac-success: #3EB872;
    --almanac-success-soft: rgba(62, 184, 114, 0.16);
    --almanac-warning: #F2A93B;
    --almanac-warning-soft: rgba(242, 169, 59, 0.16);
    --almanac-danger: #E96A6A;
    --almanac-info: #5A93D8;
    --almanac-info-soft: rgba(90, 147, 216, 0.16);
    --almanac-shadow-card: 0 2px 0 rgba(0, 0, 0, 0.14), 0 12px 28px -8px rgba(0, 0, 0, 0.35);
    --almanac-shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.3);
    color: var(--almanac-fg-primary);
}

/* full-bleed news band must not add a horizontal scrollbar */
.ath-gp--fortnite .ath-gp-main { overflow-x: hidden; overflow-x: clip; }

/* ---- Storm Dusk hero band ---- */
.ath-gp--fortnite .ath-gp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 88% -12%, rgba(255, 215, 0, 0.13), transparent 62%),
        radial-gradient(760px 460px at -8% 112%, rgba(90, 147, 216, 0.10), transparent 60%),
        #1A1410;
    border-bottom: 3px solid var(--almanac-yellow, #FFD700);
}

/* slow-spinning storm ring, top right (::before paints under the inner) */
.ath-gp--fortnite .ath-gp-hero::before {
    content: "";
    position: absolute;
    right: -140px;
    top: -170px;
    width: 620px;
    height: 620px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 620'%3E%3Ccircle cx='310' cy='310' r='180' fill='none' stroke='%23FFD700' stroke-opacity='.2' stroke-width='1.5' stroke-dasharray='4 14'/%3E%3Ccircle cx='310' cy='310' r='236' fill='none' stroke='%23FFD700' stroke-opacity='.11' stroke-width='1.5' stroke-dasharray='2 10'/%3E%3Ccircle cx='310' cy='310' r='292' fill='none' stroke='%235A93D8' stroke-opacity='.14' stroke-width='1.5' stroke-dasharray='1 8'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    animation: ath-fnr-ring-spin 90s linear infinite;
}

@keyframes ath-fnr-ring-spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
    .ath-gp--fortnite .ath-gp-hero::before { right: -260px; top: -320px; opacity: .6; }
}

.ath-gp--fortnite .ath-gp-hero-inner {
    position: relative;
    align-items: center;
    gap: 2.5rem;
}

.ath-gp--fortnite .ath-gp-eyebrow {
    color: var(--almanac-yellow, #FFD700);
    letter-spacing: .14em;
}

.ath-gp--fortnite .ath-gp-eyebrow::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 14px;
    margin-right: .45rem;
    vertical-align: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14'%3E%3Cpath d='M7.4.5 1 8h3.4L4 13.5 11 5.6H7L7.4.5Z' fill='%23FFD700'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ath-gp--fortnite .ath-gp-title {
    line-height: 1.08;
    letter-spacing: -.018em;
    max-width: 26ch;
    text-wrap: balance;
}

/* hero pills: quiet dark chips; status pills get a dot, not a tinted bg */
.ath-gp--fortnite .ath-gp-hero .ath-gp-pill {
    background: var(--almanac-bg-canvas);
    border: 1px solid var(--almanac-border);
    color: var(--almanac-fg-secondary);
}

.ath-gp--fortnite .ath-gp-hero .ath-gp-pill-live,
.ath-gp--fortnite .ath-gp-hero .ath-gp-pill-warn { color: var(--almanac-fg-secondary); }

.ath-gp--fortnite .ath-gp-hero .ath-gp-pill-live::before,
.ath-gp--fortnite .ath-gp-hero .ath-gp-pill-warn::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: .45rem;
    background: var(--almanac-success, #3EB872);
}

.ath-gp--fortnite .ath-gp-hero .ath-gp-pill-warn::before { background: var(--almanac-warning, #F2A93B); }

.ath-gp--fortnite .ath-gp-hero .ath-gp-pill-live::before {
    animation: ath-fnr-pulse 2s var(--almanac-ease, cubic-bezier(.2, .7, .2, 1)) infinite;
}

@keyframes ath-fnr-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(62, 184, 114, 0.55); }
    55% { box-shadow: 0 0 0 6px rgba(62, 184, 114, 0); }
}

/* ---- season countdown block in the hero (hub / season / next_season) ---- */
.ath-gp--fortnite .ath-gp-hero-media { flex: 0 1 430px; min-width: 300px; }

@media (max-width: 940px) {
    .ath-gp--fortnite .ath-gp-hero-inner { flex-direction: column; align-items: stretch; gap: 1.75rem; }
    .ath-gp--fortnite .ath-gp-hero-media { flex: none; min-width: 0; }
}

.ath-gp--fortnite .ath-fnr-season {
    border: 1px solid var(--almanac-border, #3A312A);
    border-radius: var(--almanac-radius-xl, 16px);
    background: rgba(42, 34, 24, 0.72);
    box-shadow: var(--almanac-shadow-card, 0 2px 0 rgba(0, 0, 0, 0.14), 0 12px 28px -8px rgba(0, 0, 0, 0.35));
    padding: 1.4rem 1.6rem 1.5rem;
}

.ath-gp--fortnite .ath-fnr-season-label {
    margin: 0 0 .7rem;
    color: var(--almanac-fg-tertiary, #948775);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ath-gp--fortnite .ath-fnr-season-label strong { color: var(--almanac-fg-secondary, #D6CDB9); }

.ath-gp--fortnite .ath-fnr-season-digits { display: flex; align-items: baseline; gap: .3rem; }

.ath-gp--fortnite .ath-fnr-season-digits .num {
    font-family: var(--almanac-font-display, inherit);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.2vw, 3rem);
    line-height: 1;
    color: var(--almanac-yellow, #FFD700);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px rgba(255, 215, 0, 0.35);
}

.ath-gp--fortnite .ath-fnr-season-digits .unit {
    color: var(--almanac-fg-tertiary, #948775);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-right: .45rem;
}

.ath-gp--fortnite .ath-fnr-season-digits .unit:last-child { padding-right: 0; }

.ath-gp--fortnite .ath-fnr-season-bar {
    margin-top: 1.05rem;
    height: 6px;
    border-radius: var(--almanac-radius-pill, 99px);
    background: var(--almanac-border, #3A312A);
    overflow: hidden;
}

.ath-gp--fortnite .ath-fnr-season-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--almanac-yellow-deep, #E5BC00), var(--almanac-yellow, #FFD700));
}

.ath-gp--fortnite .ath-fnr-season-foot {
    margin: .55rem 0 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--almanac-fg-tertiary, #948775);
    font-size: .8125rem;
}

.ath-gp--fortnite .ath-fnr-season-foot strong { color: var(--almanac-fg-secondary, #D6CDB9); font-weight: 600; }

/* ---- section headings: rule line + live dot / bolt ---- */
.ath-gp--fortnite .ath-fnr-h {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 2.25rem 0 1rem;
    font-size: clamp(1.4375rem, 2.4vw, 1.6875rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.22;
}

.ath-gp--fortnite .ath-fnr-h::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--almanac-border, #EBE3D2);
    margin-left: .4rem;
}

.ath-gp--fortnite .ath-fnr-livedot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--almanac-success, #1E9D52);
    flex: none;
    animation: ath-fnr-pulse 2s var(--almanac-ease, cubic-bezier(.2, .7, .2, 1)) infinite;
}

.ath-gp--fortnite .ath-fnr-bolt { display: inline-flex; flex: none; }

/* ---- event cards: thin electric top border keyed to state ---- */
.ath-gp--fortnite .ath-gp-content .ath-fnr-grid { grid-template-columns: 1fr; gap: 1rem; }

.ath-gp--fortnite .ath-fnr-card {
    background: var(--almanac-bg-canvas, #fff);
    border: 1px solid var(--almanac-border, #EBE3D2);
    border-top: 3px solid var(--almanac-border, #EBE3D2);
    border-radius: var(--almanac-radius-lg, 12px);
    box-shadow: var(--almanac-shadow-soft, 0 1px 0 rgba(26, 22, 18, 0.04), 0 4px 12px -4px rgba(26, 22, 18, 0.06));
    padding: 1.1rem 1.35rem 1.15rem;
}

.ath-gp--fortnite .ath-fnr-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--almanac-shadow-card, 0 1px 0 rgba(26, 22, 18, 0.06), 0 8px 24px -8px rgba(26, 22, 18, 0.10));
}

/* Static, expanded event card on its OWN page — not a clickable mini-card:
   no hover-lift, default cursor, detail panel shown open inline. */
.ath-fnr-card--static { cursor: default; }
.ath-gp--fortnite .ath-fnr-card--static:hover {
    transform: none;
    box-shadow: var(--almanac-shadow-soft, 0 1px 0 rgba(26, 22, 18, 0.04), 0 4px 12px -4px rgba(26, 22, 18, 0.06));
}
.ath-fnr-card--static .ath-fnr-panel { display: block; }

/* Official Epic promo art on event cards (always credited to Epic). */
.ath-fnr-media { margin: 0 0 .85rem; border-radius: var(--almanac-radius, 10px); overflow: hidden; position: relative; background: var(--almanac-bg-sunk, #F0E9DA); }
.ath-fnr-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ath-fnr-credit { position: absolute; bottom: 0; right: 0; margin: 0; font-size: .62rem; line-height: 1; letter-spacing: .02em; color: #fff; background: rgba(26, 22, 18, .55); padding: .25rem .42rem; border-top-left-radius: 6px; }
.ath-gp--fortnite .ath-fnr-card--static .ath-fnr-media { margin-bottom: 1rem; }

/* Event & series pages: the single card fills the full reading width, with its 16:9
   art shown large and UNCROPPED across the top, and the details below. */
.ath-gp--fortnite .ath-gp-content .ath-fnr-eventcard-wrap .ath-fnr-grid,
.ath-gp--fortnite .ath-gp-content .ath-fnr-seriescard-wrap .ath-fnr-grid { grid-template-columns: 1fr; }
.ath-gp--fortnite .ath-gp-content .ath-fnr-card--static { width: 100%; padding: 0; overflow: hidden; }
.ath-gp--fortnite .ath-gp-content .ath-fnr-card--static > .ath-fnr-media { margin: 0; border-radius: 0; }
.ath-gp--fortnite .ath-gp-content .ath-fnr-card--static > .ath-fnr-media img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
}
.ath-gp--fortnite .ath-gp-content .ath-fnr-card--static > .ath-fnr-card-main { padding: 1.2rem 1.5rem 1.4rem; }
/* Details below the art use the width: times + Epic's blurb sit side by side. */
@media (min-width: 640px) {
    .ath-gp--fortnite .ath-fnr-card--static .ath-fnr-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.4rem; align-items: start; }
    .ath-gp--fortnite .ath-fnr-card--static .ath-fnr-panel-links { grid-column: 1 / -1; }
}

/* Playful section headings in the article body (Storm Dusk yellow accents). */
.ath-gp--fortnite .ath-gp-content h2 { position: relative; padding-bottom: .3rem; }
.ath-gp--fortnite .ath-gp-content h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 2.6rem; height: .32rem; border-radius: 5px;
    background: var(--almanac-yellow, #FFD700);
}
.ath-gp--fortnite .ath-gp-content h3 { position: relative; padding-left: .85rem; }
.ath-gp--fortnite .ath-gp-content h3::before {
    content: ""; position: absolute; left: 0; top: .18em;
    width: .34rem; height: 1.05em; border-radius: 3px;
    background: var(--almanac-yellow, #FFD700);
}

/* Epic promo art in the event/series page hero-media slot. */
.ath-fnr-hero-art { margin: 0; position: relative; border-radius: var(--almanac-radius-lg, 12px); overflow: hidden; width: 100%; max-width: 480px; box-shadow: 0 10px 34px -12px rgba(0,0,0,.55); }
.ath-fnr-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Sidebar "Live & upcoming" rows: a big 16:9 Epic image on top, title + countdown below. */
.ath-gp--fortnite .ath-fnr-wrow { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; }
.ath-gp--fortnite .ath-fnr-wthumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--almanac-bg-sunk, #F0E9DA); }
.ath-gp--fortnite .ath-fnr-wrow-body { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }

.ath-gp--fortnite .ath-fnr-upcoming {
    border-top-color: var(--almanac-info, #3A78C8);
    box-shadow: var(--almanac-shadow-soft, 0 1px 0 rgba(26, 22, 18, 0.04), 0 4px 12px -4px rgba(26, 22, 18, 0.06)), 0 -8px 20px -14px rgba(58, 120, 200, 0.55);
}

.ath-gp--fortnite .ath-fnr-upcoming:hover {
    box-shadow: var(--almanac-shadow-card, 0 1px 0 rgba(26, 22, 18, 0.06), 0 8px 24px -8px rgba(26, 22, 18, 0.10)), 0 -8px 20px -14px rgba(58, 120, 200, 0.55);
}

.ath-gp--fortnite .ath-fnr-live {
    border-top-color: var(--almanac-success, #1E9D52);
    box-shadow: var(--almanac-shadow-soft, 0 1px 0 rgba(26, 22, 18, 0.04), 0 4px 12px -4px rgba(26, 22, 18, 0.06)), 0 -8px 20px -14px rgba(30, 157, 82, 0.65);
}

.ath-gp--fortnite .ath-fnr-live:hover {
    box-shadow: var(--almanac-shadow-card, 0 1px 0 rgba(26, 22, 18, 0.06), 0 8px 24px -8px rgba(26, 22, 18, 0.10)), 0 -8px 20px -14px rgba(30, 157, 82, 0.65);
}

.ath-gp--fortnite .ath-fnr-ended { opacity: 1; border-top-color: var(--almanac-border, #EBE3D2); }
.ath-gp--fortnite .ath-fnr-ended .ath-fnr-title { color: var(--almanac-fg-secondary, #4A3F35); }
.ath-gp--fortnite .ath-fnr-ended .ath-fnr-when { color: var(--almanac-fg-tertiary, #6B5F53); }

.ath-gp--fortnite .ath-fnr-title {
    font-family: var(--almanac-font-display, inherit);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.008em;
}

.ath-gp--fortnite .ath-fnr-when { font-size: .9375rem; font-weight: 500; color: var(--almanac-fg-secondary, #4A3F35); }
.ath-gp--fortnite .ath-fnr-interest { font-size: .8125rem; }

/* status pills: soft tint + colored edge, ink text (never white-on-color) */
.ath-gp--fortnite .ath-fnr-pill {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .16rem .62rem;
    border: 1px solid var(--almanac-border, #EBE3D2);
    background: var(--almanac-bg-cream, #F5EFE0);
    color: var(--almanac-fg-tertiary, #6B5F53);
    letter-spacing: .06em;
}

.ath-gp--fortnite .ath-fnr-live .ath-fnr-pill {
    background: var(--almanac-success-soft, #DEF0E2);
    border-color: var(--almanac-success, #1E9D52);
    color: var(--almanac-fg-primary, #1A1612);
}

.ath-gp--fortnite .ath-fnr-live .ath-fnr-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--almanac-success, #1E9D52);
    animation: ath-fnr-pulse 2s var(--almanac-ease, cubic-bezier(.2, .7, .2, 1)) infinite;
}

.ath-gp--fortnite .ath-fnr-upcoming .ath-fnr-pill {
    background: var(--almanac-info-soft, #D9E5F2);
    border-color: var(--almanac-info, #3A78C8);
    color: var(--almanac-fg-primary, #1A1612);
}

/* ---- countdown chips: yellow mono digits on ink. The literal ink chip
   holds up on light AND dark paper, so these hexes are deliberate. ---- */
.ath-gp--fortnite .ath-fnr-countdown,
.ath-gp--fortnite .ath-fnr-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    align-self: flex-start;
    margin: .35rem 0 0;
    padding: .3rem .8rem .3rem .75rem;
    border-radius: var(--almanac-radius-pill, 99px);
    background: #1A1612;
    border: 1px solid #3A312A;
    color: #D6CDB9;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    min-height: 2em;
}

.ath-gp--fortnite .ath-fnr-chip-num {
    font-family: var(--almanac-font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1;
    color: var(--almanac-yellow, #FFD700);
    letter-spacing: 0;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}

.ath-gp--fortnite .ath-fnr-live .ath-fnr-countdown {
    background: #1A1612;
    color: #D6CDB9;
    box-shadow: 0 0 0 1px rgba(62, 184, 114, 0.35), 0 0 14px -4px rgba(62, 184, 114, 0.5);
}

/* ---- expanded panel: timezone table + "What Epic says" ---- */
.ath-gp--fortnite .ath-fnr-panel {
    border-top: 1px dashed var(--almanac-border, #EBE3D2);
    margin-top: .55rem;
    padding-top: .9rem;
}

.ath-gp--fortnite .ath-fnr-panel--grid:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: .35rem 1.75rem;
}

.ath-gp--fortnite .ath-fnr-panel--grid:not([hidden]) .ath-fnr-panel-links { grid-column: 1 / -1; }

@media (max-width: 780px) {
    .ath-gp--fortnite .ath-fnr-panel--grid:not([hidden]) { grid-template-columns: 1fr; gap: 1rem; }
}

.ath-gp--fortnite .ath-fnr-panel h4 {
    margin: 0 0 .55rem;
    font-family: var(--almanac-font-sans, inherit);
    color: var(--almanac-fg-tertiary, #6B5F53);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ath-gp--fortnite .ath-fnr-times { margin: 0; }

.ath-gp--fortnite .ath-fnr-times > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .32rem 0;
    border-bottom: 1px solid var(--almanac-border, #EBE3D2);
    font-size: .9375rem;
}

.ath-gp--fortnite .ath-fnr-times > div:last-child { border-bottom: 0; }

.ath-gp--fortnite .ath-fnr-times dt { color: var(--almanac-fg-tertiary, #6B5F53); margin: 0; font-weight: 400; }

.ath-gp--fortnite .ath-fnr-times dd {
    margin: 0;
    font-family: var(--almanac-font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
    font-size: .875rem;
    color: var(--almanac-fg-primary, #1A1612);
    font-variant-numeric: tabular-nums;
}

.ath-gp--fortnite .ath-fnr-devnote {
    margin: 0;
    padding: 0 0 0 1rem;
    background: none;
    border-left: 3px solid var(--almanac-yellow, #FFD700);
    border-radius: 0;
}

.ath-gp--fortnite .ath-fnr-devnote p {
    margin: 0 0 .35rem;
    font-family: var(--almanac-font-serif, Georgia, serif);
    font-size: 1rem;
    line-height: 1.55;
    font-style: normal;
    color: var(--almanac-fg-secondary, #4A3F35);
}

.ath-gp--fortnite .ath-fnr-devnote cite {
    font-style: normal;
    font-size: .8125rem;
    color: var(--almanac-fg-tertiary, #6B5F53);
}

.ath-gp--fortnite .ath-fnr-panel-links { margin-top: .9rem; align-items: center; flex-wrap: wrap; }

/* black-on-yellow ONLY — hardcoded ink so a dark theme flip can't
   ever produce white-on-yellow */
.ath-gp--fortnite .ath-fnr-panel-links a:first-child {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .95rem;
    border-radius: var(--almanac-radius-md, 8px);
    background: var(--almanac-yellow, #FFD700);
    color: #1A1612;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    transition: background var(--almanac-duration, .18s) var(--almanac-ease, ease);
}

.ath-gp--fortnite .ath-fnr-panel-links a:first-child:hover {
    background: var(--almanac-yellow-deep, #E5BC00);
    color: #1A1612;
}

/* ---- cinematic filmstrip: in-game news ---- */
.ath-gp--fortnite .ath-fnr-newsband {
    width: 100vw;
    max-width: none;
    margin: 3rem calc(50% - 50vw) 1.5rem;
    padding: 2.75rem 0 3rem;
    background:
        radial-gradient(900px 420px at 82% -30%, rgba(255, 215, 0, 0.07), transparent 60%),
        #1A1410;
}

.ath-gp--fortnite .ath-fnr-newsband-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 var(--almanac-gutter, 1.25rem);
}

.ath-gp--fortnite .ath-fnr-newsband .ath-fnr-h { margin-top: 0; color: var(--almanac-fg-primary, #F5EFE2); }
.ath-gp--fortnite .ath-fnr-newsband .ath-fnr-sectionnote { color: var(--almanac-fg-tertiary, #948775); }

.ath-gp--fortnite .ath-fnr-filmstrip {
    position: relative;
    background: #0F0C08;
    border: 1px solid var(--almanac-border, #3A312A);
    border-radius: var(--almanac-radius-lg, 12px);
    padding: 30px 0;
}

/* sprocket holes */
.ath-gp--fortnite .ath-fnr-filmstrip::before,
.ath-gp--fortnite .ath-fnr-filmstrip::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 10px;
    background-image: repeating-linear-gradient(90deg, rgba(245, 239, 226, 0.16) 0 16px, transparent 16px 34px);
    border-radius: 2px;
    pointer-events: none;
}

.ath-gp--fortnite .ath-fnr-filmstrip::before { top: 10px; }
.ath-gp--fortnite .ath-fnr-filmstrip::after { bottom: 10px; }

.ath-gp--fortnite .ath-fnr-reel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #3A312A transparent;
}

.ath-gp--fortnite .ath-fnr-frame {
    flex: 0 0 auto;
    width: min(340px, 78vw);
    margin: 0;
    scroll-snap-align: start;
}

.ath-gp--fortnite .ath-fnr-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(245, 239, 226, 0.14);
    background: #221C16;
}

.ath-gp--fortnite .ath-fnr-frame figcaption {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-top: .55rem;
    color: var(--almanac-fg-secondary, #D6CDB9);
    font-size: .875rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.4;
    text-align: left;
}

.ath-gp--fortnite .ath-fnr-frame .idx {
    font-family: var(--almanac-font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
    font-size: .75rem;
    color: var(--almanac-yellow, #FFD700);
    letter-spacing: .06em;
    flex: none;
}

.ath-gp--fortnite .ath-fnr-strip-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 72px;
    border-radius: 0 var(--almanac-radius-lg, 12px) var(--almanac-radius-lg, 12px) 0;
    background: linear-gradient(90deg, transparent, rgba(15, 12, 8, 0.9));
    pointer-events: none;
}

.ath-gp--fortnite .ath-fnr-newsband .ath-fnr-attribution { color: var(--almanac-fg-tertiary, #948775); margin-top: 1.1rem; }
.ath-gp--fortnite .ath-fnr-newsband .ath-fnr-attribution a { color: var(--almanac-tan-deep, #D6B883); }

/* ---- shop grid + fact boxes: same identity accents ---- */
.ath-gp--fortnite .ath-gp-content > .ath-fnr-shop { max-width: 1060px; margin-left: auto; margin-right: auto; }

.ath-gp--fortnite .ath-fnr-shopitem {
    background: var(--almanac-bg-canvas, #fff);
    border-radius: var(--almanac-radius-lg, 12px);
    box-shadow: var(--almanac-shadow-soft, 0 1px 0 rgba(26, 22, 18, 0.04), 0 4px 12px -4px rgba(26, 22, 18, 0.06));
}

.ath-gp--fortnite .ath-fnr-shopitem:hover {
    box-shadow: var(--almanac-shadow-card, 0 1px 0 rgba(26, 22, 18, 0.06), 0 8px 24px -8px rgba(26, 22, 18, 0.10));
}

.ath-gp--fortnite .ath-fnr-vbucks {
    display: inline-block;
    align-self: flex-start;
    margin-top: .15rem;
    padding: .12rem .55rem;
    border-radius: var(--almanac-radius-pill, 99px);
    background: #1A1612;
    border: 1px solid #3A312A;
    color: var(--almanac-yellow, #FFD700);
    font-family: var(--almanac-font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
    font-weight: 600;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
}

.ath-gp--fortnite .ath-fnr-facts dl {
    background: var(--almanac-bg-canvas, #fff);
    border: 1px solid var(--almanac-border, #EBE3D2);
    border-top: 3px solid var(--almanac-yellow, #FFD700);
    border-radius: var(--almanac-radius-lg, 12px);
    box-shadow: var(--almanac-shadow-soft, 0 1px 0 rgba(26, 22, 18, 0.04), 0 4px 12px -4px rgba(26, 22, 18, 0.06));
}

.ath-gp--fortnite .ath-fnr-fact dt {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--almanac-fg-tertiary, #6B5F53);
    align-self: center;
}

/* ====================================================================
   SIDEBAR WIDGETS + WHOLE-CARD CLICK + DESKTOP DIALOG (v0.6.0)
   Sidebar rail + .ath-gp-widget shell come from ath-game-pages (gp.css);
   everything here is the Storm Dusk skin on top.
   ==================================================================== */

/* ---- season clock: compact dark storm card. Re-declares the dark token
   scope locally so the reused season-label/digits/bar/foot rules resolve
   to their dark values inside a light sidebar. ---- */
.ath-gp--fortnite .ath-fnr-w-clock {
    --almanac-bg-paper: #1A1410;
    --almanac-bg-canvas: #2A2218;
    --almanac-bg-cream: #221C16;
    --almanac-bg-mist: #221C16;
    --almanac-fg-primary: #F5EFE2;
    --almanac-fg-secondary: #D6CDB9;
    --almanac-fg-tertiary: #948775;
    --almanac-fg-quaternary: #948775;
    --almanac-border: #3A312A;
    --almanac-border-faint: #2E2620;
    --almanac-tan-deep: #D6B883;
    background:
        radial-gradient(360px 220px at 92% -24%, rgba(255, 215, 0, 0.12), transparent 62%),
        #1A1410;
    border-color: #3A312A;
    border-top: 3px solid var(--almanac-yellow, #FFD700);
    color: var(--almanac-fg-primary, #F5EFE2);
}

.ath-gp--fortnite .ath-fnr-w-clock .ath-gp-widget-h { color: var(--almanac-fg-tertiary, #948775); }

.ath-gp--fortnite .ath-fnr-w-clock .ath-fnr-season-label { margin-bottom: .55rem; }

.ath-gp--fortnite .ath-fnr-w-clock .ath-fnr-season-digits .num {
    font-size: 2rem;
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.3);
}

.ath-gp--fortnite .ath-fnr-w-clock .ath-fnr-season-bar { margin-top: .85rem; }

.ath-gp--fortnite .ath-fnr-w-clock .ath-fnr-season-foot { font-size: .78rem; }

/* ---- server status mini widget ---- */
.ath-gp--fortnite .ath-fnr-w-status .ath-fnr-status { margin-bottom: .35rem; font-size: .92rem; color: var(--almanac-fg-primary, #1A1612); }

.ath-gp--fortnite .ath-fnr-wsrc { margin: 0; font-size: .78rem; color: var(--almanac-fg-quaternary, #948775); }

/* ---- compact live & upcoming list ---- */
.ath-gp--fortnite .ath-fnr-wlist { list-style: none; margin: 0; padding: 0; }

.ath-gp--fortnite .ath-fnr-wlist li {
    border-bottom: 1px solid var(--almanac-border-faint, #F0EAD9);
}
.ath-gp--fortnite .ath-fnr-wlist li:last-child { border-bottom: 0; }

/* whole row is one link */
.ath-gp--fortnite .ath-fnr-wrow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .65rem .5rem;
    margin: 0 -.5rem;
    border-radius: var(--almanac-radius-md, 8px);
    text-decoration: none;
    color: inherit;
    transition: background var(--almanac-duration, .18s) var(--almanac-ease, ease);
}
.ath-gp--fortnite .ath-fnr-wlist li:first-child .ath-fnr-wrow { padding-top: .2rem; }
.ath-gp--fortnite .ath-fnr-wlist li:last-child .ath-fnr-wrow { padding-bottom: .2rem; }
.ath-gp--fortnite .ath-fnr-wrow:hover,
.ath-gp--fortnite .ath-fnr-wrow:focus-visible {
    outline: none;
    background: var(--almanac-yellow-soft, #FFF6D1);
}
.ath-gp--fortnite .ath-fnr-wrow:hover .t,
.ath-gp--fortnite .ath-fnr-wrow:focus-visible .t { text-decoration: underline; text-underline-offset: 2px; }

.ath-gp--fortnite .ath-fnr-wlist .t { font-size: .9rem; font-weight: 600; line-height: 1.35; }

.ath-gp--fortnite .ath-fnr-wlist li.is-live .t::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: .4rem;
    vertical-align: 1px;
    background: var(--almanac-success, #1E9D52);
    animation: ath-fnr-pulse 2s var(--almanac-ease, cubic-bezier(.2, .7, .2, 1)) infinite;
}

/* small chip variant for sidebar rows */
.ath-gp--fortnite .ath-fnr-chip--sm { margin: 0; padding: .22rem .65rem .22rem .6rem; font-size: .625rem; }
.ath-gp--fortnite .ath-fnr-chip--sm .ath-fnr-chip-num { font-size: .8125rem; }

/* ---- item shop teaser ---- */
.ath-gp--fortnite .ath-fnr-wshop-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }

.ath-gp--fortnite .ath-fnr-wshop-thumbs img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: var(--almanac-radius-md, 8px);
    border: 1px solid var(--almanac-border, #EBE3D2);
    background: var(--almanac-bg-mist, #F0EFEB);
}

.ath-gp--fortnite .ath-fnr-wshop-count { margin: .65rem 0 .55rem; font-size: .84rem; color: var(--almanac-fg-tertiary, #6B5F53); }

.ath-gp--fortnite .ath-fnr-wlink { font-weight: 700; font-size: .875rem; text-decoration: none; }

/* ---- events-hub link widget: black-on-yellow button (hardcoded ink) ---- */
.ath-gp--fortnite .ath-fnr-whub-note { margin: 0 0 .8rem; font-size: .875rem; line-height: 1.5; color: var(--almanac-fg-secondary, #4A3F35); }

.ath-gp--fortnite .ath-fnr-wbtn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: var(--almanac-radius-md, 8px);
    background: var(--almanac-yellow, #FFD700);
    color: #1A1612;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    transition: background var(--almanac-duration, .18s) var(--almanac-ease, ease);
}

.ath-gp--fortnite .ath-fnr-wbtn:hover { background: var(--almanac-yellow-deep, #E5BC00); color: #1A1612; }

/* ---- whole-card click affordance ---- */
.ath-fnr-card[role="button"] { cursor: pointer; }

.ath-fnr-card[role="button"]:focus-visible {
    outline: 2px solid var(--almanac-fg-primary, #1A1612);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.4);
}

/* ---- desktop details dialog: near-ink surface, yellow accents ---- */
body.ath-fnr-lock { overflow: hidden; }

.ath-fnr-dialog {
    /* dark token scope (same values as the hero band) so cloned pills,
       times and quotes restyle themselves */
    --almanac-bg-paper: #1A1410;
    --almanac-bg-canvas: #2A2218;
    --almanac-bg-cream: #221C16;
    --almanac-bg-mist: #221C16;
    --almanac-fg-primary: #F5EFE2;
    --almanac-fg-secondary: #D6CDB9;
    --almanac-fg-tertiary: #948775;
    --almanac-fg-quaternary: #948775;
    --almanac-border: #3A312A;
    --almanac-border-faint: #2E2620;
    --almanac-yellow-soft: #3D3000;
    --almanac-tan-soft: #3A2E18;
    --almanac-tan-deep: #D6B883;
    --almanac-success: #3EB872;
    --almanac-success-soft: rgba(62, 184, 114, 0.16);
    --almanac-warning: #F2A93B;
    --almanac-warning-soft: rgba(242, 169, 59, 0.16);
    --almanac-danger: #E96A6A;
    --almanac-info: #5A93D8;
    --almanac-info-soft: rgba(90, 147, 216, 0.16);
    width: min(600px, calc(100vw - 2.5rem));
    max-height: min(84vh, 760px);
    margin: auto;
    padding: 0;
    border: 1px solid #3A312A;
    border-top: 4px solid var(--almanac-yellow, #FFD700);
    border-radius: var(--almanac-radius-lg, 14px);
    background:
        radial-gradient(620px 340px at 88% -12%, rgba(255, 215, 0, 0.10), transparent 62%),
        #1A1410;
    color: var(--almanac-fg-primary, #F5EFE2);
    box-shadow: 0 28px 80px -20px rgba(0, 0, 0, 0.55);
    overflow: auto;
    font-family: var(--almanac-font-sans, inherit);
}

.ath-fnr-dialog::backdrop { background: rgba(15, 12, 8, 0.62); }

.ath-fnr-dialog .ath-fnr-dialog-in { padding: 1.4rem 1.7rem 1.7rem; }

/* the inner wrapper carries the card's live/upcoming/ended class purely for
   pill + chip tinting — neutralize the card-surface side effects */
.ath-gp--fortnite .ath-fnr-dialog .ath-fnr-dialog-in {
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.ath-fnr-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ath-fnr-dialog-x {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: none;
    border: 1px solid #3A312A;
    color: #D6CDB9;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--almanac-duration, .18s) var(--almanac-ease, ease),
                color var(--almanac-duration, .18s) var(--almanac-ease, ease);
}

.ath-fnr-dialog-x:hover,
.ath-fnr-dialog-x:focus-visible { border-color: var(--almanac-yellow, #FFD700); color: var(--almanac-yellow, #FFD700); }

.ath-fnr-dialog-title {
    margin: 0 0 .9rem;
    font-family: var(--almanac-font-display, inherit);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--almanac-fg-primary, #F5EFE2);
}

/* no event artwork — the large live countdown chip leads instead */
.ath-fnr-dialog .ath-fnr-countdown { margin: 0 0 1rem; padding: .5rem 1.05rem .5rem 1rem; background: #0F0C08; }
.ath-fnr-dialog .ath-fnr-countdown .ath-fnr-chip-num { font-size: 1.375rem; }

.ath-fnr-dialog .ath-fnr-when { margin: 0 0 1.1rem; }
.ath-fnr-dialog .ath-fnr-tzwrap { margin-bottom: 1.1rem; }

/* section headings cloned out of .ath-fnr-panel lose that scope — restate */
.ath-fnr-dialog h4 {
    margin: 0 0 .55rem;
    font-family: var(--almanac-font-sans, inherit);
    color: var(--almanac-fg-tertiary, #948775);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ath-fnr-dialog-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin: 1.2rem 0 0;
}

/* black-on-yellow ONLY — hardcoded ink, matches the panel button */
.ath-fnr-dialog-official {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.05rem;
    border-radius: var(--almanac-radius-md, 8px);
    background: var(--almanac-yellow, #FFD700);
    color: #1A1612;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    transition: background var(--almanac-duration, .18s) var(--almanac-ease, ease);
}

.ath-fnr-dialog-official:hover { background: var(--almanac-yellow-deep, #E5BC00); color: #1A1612; }

.ath-fnr-dialog-jump {
    color: var(--almanac-yellow, #FFD700);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---- item-shop tiles: clickable affordance + enlarged dialog ---- */
.ath-fnr-shopitem[data-fnr-shopitem] { cursor: pointer; }
.ath-fnr-shopitem[data-fnr-shopitem]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--almanac-bg-paper, #fff), 0 0 0 5px var(--almanac-yellow, #FFD700);
}
/* mobile in-place enlarge (tap when no dialog): let the render breathe */
.ath-fnr-shopitem--zoom img { aspect-ratio: auto; max-height: 78vh; object-fit: contain; background: var(--almanac-bg-mist, #f0efeb); }

.ath-fnr-shopdialog {
    /* same near-ink Storm Dusk surface as the event dialog */
    width: min(560px, calc(100vw - 2.5rem));
    max-height: min(88vh, 780px);
    margin: auto;
    padding: 0;
    border: 1px solid #3A312A;
    border-top: 4px solid var(--almanac-yellow, #FFD700);
    border-radius: var(--almanac-radius-lg, 14px);
    background:
        radial-gradient(620px 340px at 88% -12%, rgba(255, 215, 0, 0.10), transparent 62%),
        #1A1410;
    color: #F5EFE2;
    box-shadow: 0 28px 80px -20px rgba(0, 0, 0, 0.55);
    overflow: auto;
    font-family: var(--almanac-font-sans, inherit);
}
.ath-fnr-shopdialog::backdrop { background: rgba(15, 12, 8, 0.62); }
.ath-fnr-shopdialog-in { position: relative; padding: 1.5rem 1.6rem 1.7rem; }
.ath-fnr-shopdialog-x { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.ath-fnr-shopstage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1.1rem;
    border-radius: var(--almanac-radius-md, 10px);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(255, 215, 0, 0.08), transparent 60%),
        #0F0C08;
    border: 1px solid #2E2620;
}
.ath-fnr-shopstage-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(460px, 52vh);
    object-fit: contain;
}
/* rarity accent on the stage top edge, mirroring the tile's rarity border */
.ath-fnr-shopdialog-in.ath-fnr-r-legendary { border-top: 4px solid #E98A25; margin-top: -4px; }
.ath-fnr-shopdialog-in.ath-fnr-r-epic { border-top: 4px solid #9D4DBB; margin-top: -4px; }
.ath-fnr-shopdialog-in.ath-fnr-r-rare { border-top: 4px solid #3A78C8; margin-top: -4px; }
.ath-fnr-shopdialog-in.ath-fnr-r-uncommon { border-top: 4px solid #1E9D52; margin-top: -4px; }
.ath-fnr-shopdialog-title {
    margin: 0 0 .35rem;
    font-family: var(--almanac-font-display, inherit);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #F5EFE2;
}
.ath-fnr-shopdialog-tr { margin: 0 0 .8rem; color: #948775; font-size: .82rem; }
.ath-fnr-shopdialog-price {
    margin: 0 0 .15rem;
    font-size: 1.05rem;
    color: #D6CDB9;
}
.ath-fnr-shopdialog-price b {
    color: var(--almanac-yellow, #FFD700);
    font-family: var(--almanac-font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
}
.ath-fnr-shopdialog-usd { margin: 0; color: #948775; font-size: .8rem; }

/* ---- motion safety ---- */
@media (prefers-reduced-motion: reduce) {
    .ath-gp--fortnite .ath-gp-hero::before,
    .ath-gp--fortnite .ath-fnr-livedot,
    .ath-gp--fortnite .ath-gp-hero .ath-gp-pill-live::before,
    .ath-gp--fortnite .ath-fnr-live .ath-fnr-pill::before,
    .ath-gp--fortnite .ath-fnr-wlist li.is-live .t::before {
        animation: none !important;
    }
}

/* ============================== Recurring-series card (Storm Dusk) ============================== */

/* The series card is the next-occurrence card + a "when it usually runs" panel. */
.ath-gp--fortnite .ath-fnr-seriescard-wrap { margin: var(--almanac-space-lg, 2rem) 0; }

/* Projected/expected note under the countdown. */
.ath-gp--fortnite .ath-fnr-seriesnote {
    margin: .6rem 0 0;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--almanac-fg-tertiary, #6B5F53);
}
.ath-gp--fortnite .ath-fnr-seriescard .ath-fnr-interest {
    background: #1A1612;
    color: var(--almanac-yellow, #FFD700);
    border-radius: var(--almanac-radius-pill, 99px);
    padding: .12rem .55rem;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* "When it usually runs" — cream band panel echoing the news/section treatment. */
.ath-gp--fortnite .ath-fnr-serieswindows {
    margin: var(--almanac-space-lg, 1.75rem) 0 0;
    padding: 1.35rem 1.5rem 1.5rem;
    background: var(--almanac-bg-mist, #F3EEE2);
    border: 1px solid var(--almanac-border, #EBE3D2);
    border-radius: var(--almanac-radius-md, 12px);
}
.ath-gp--fortnite .ath-fnr-serieswindows > .ath-fnr-h:first-child { margin-top: 0; }

.ath-gp--fortnite .ath-fnr-winlist {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.ath-gp--fortnite .ath-fnr-winrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .95rem;
    background: var(--almanac-bg-paper, #fff);
    border: 1px solid var(--almanac-border, #EBE3D2);
    border-left: 3px solid var(--almanac-yellow, #FFD700);
    border-radius: var(--almanac-radius-sm, 8px);
}
.ath-gp--fortnite .ath-fnr-win-et {
    font-family: var(--almanac-font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--almanac-fg-primary, #1A1612);
    font-size: .95rem;
}
.ath-gp--fortnite .ath-fnr-win-local {
    color: var(--almanac-fg-tertiary, #6B5F53);
    font-size: .8125rem;
}
.ath-gp--fortnite .ath-fnr-win-local:empty { display: none; }

@media (max-width: 560px) {
    .ath-gp--fortnite .ath-fnr-winrow { flex-direction: column; gap: .2rem; }
}
