/* ============================================================
   edition-11th.css  —  11th Edition theme + shell styling
   Grimdark-Engine · introduced v0.10.391
   ============================================================

   CONTRACT (see the `grimdark-11th-edition-additive-constraint`
   project note): 11th Edition is PURELY ADDITIVE and must never touch
   or risk 10th Edition. This file is loaded for both editions, but
   everything that restyles existing components is gated behind the
   `body.edition-11th` class, which app.js applies ONLY in 11th mode.
   In 10th Edition (the default) every `body.edition-11th` rule is
   inert, so styles.css / warhammer40k.css remain authoritative and the
   10th app is byte-for-byte unchanged. The only UNGATED rules style
   brand-new elements that also appear in 10th mode (`.ed11-banner`,
   `.ed-seg*`), so they can't alter any existing 10th element.

   DESIGN LANGUAGE: modelled on the official 11th Edition printed
   Faction Packs — a light, lightly-textured off-white page, near-black
   bold condensed headings, dark charcoal header bars framing light
   panels, and a teal accent. This is a LIGHT theme (the inverse of
   10th's dark look), so switching editions is unmistakable.
   ============================================================ */


/* ===========================================================
   1. Global 11th-Edition palette (LIGHT). Overrides the :root
   custom properties from styles.css for everything inside <body>.
   Because every colour in the app is a var(--…), redefining these
   reskins the whole UI in one move. GATED.
   =========================================================== */
body.edition-11th {
    --bg:          #e7e5df;   /* 10th #0d0e12 — light "concrete" page      */
    --bg-elev:     #f6f5f1;   /* 10th #15171d — light panel surface         */
    --bg-elev-2:   #fdfcfa;   /* 10th #1d2028 — raised / near-white         */
    --line:        #cdcabf;   /* 10th #2a2e3a — light hairline border       */
    --text:        #16181d;   /* 10th #e8e8ee — near-black ink              */
    --text-dim:    #44464d;   /* 10th #a0a3b0                               */
    --text-mute:   #6c6f77;   /* 10th #6e7180                               */
    --accent:      #15756a;   /* 10th #c8102e — faction-pack teal           */
    --accent-soft: #0e5a51;   /* darker teal for readable text on light     */
    --accent-tint: rgba(21, 117, 106, 0.13);
    --gold:        #9a6f25;   /* 10th #e0b13a — bronze, readable on light   */
    --green:       #2f8a57;   /* 10th #4cb87a                               */
    --blue:        #2f6fb0;   /* 10th #5cb6ff                               */

    /* Dark "chrome" tokens — the charcoal bars/banners of the printed
       packs. Used by the component overrides below. */
    --ed11-ink:    #1e2128;
    --ed11-ink-2:  #2a2e38;
    --ed11-on-ink: #f0eee8;

    color: var(--text);
    background-color: var(--bg);
    /* Soft top vignette only — echoes the pack cover's lightly-printed
       paper without the paint cost of a tiled grid (this app is mobile-
       first; a full-page repeating gradient is expensive to rasterise). */
    background-image:
        radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.65), transparent 62%);
    background-repeat: no-repeat;
}


/* ===========================================================
   2. App chrome — dark charcoal topbar/bottombar framing the light
   content, like the dark WARHAMMER banner over a light page. GATED.
   =========================================================== */
body.edition-11th .topbar {
    background: var(--ed11-ink);
    color: var(--ed11-on-ink);
    border-bottom: 2px solid var(--accent);
}
body.edition-11th .topbar-title,
body.edition-11th .topbar-action,
body.edition-11th .topbar-back,
body.edition-11th .topbar-user { color: var(--ed11-on-ink); }

body.edition-11th .bottombar {
    background: var(--ed11-ink);
    border-top: 1px solid #000;
}
body.edition-11th .navbtn { color: #b9bcc4; }
body.edition-11th .navbtn.active { color: #fff; }
body.edition-11th .navbtn.active .navlabel { color: var(--accent-soft); }


/* ===========================================================
   3. Generic components reachable in 11th mode (home landing,
   settings, about, changelog, dice). Re-skinned for the light look
   with dark header bars. GATED.
   =========================================================== */

/* Section headings become dark charcoal bars with a teal flag. */
body.edition-11th .section-h {
    margin: 18px 0 10px;
    padding: 8px 14px;
    background: var(--ed11-ink);
    color: var(--ed11-on-ink);
    border-left: 4px solid var(--accent);
    border-radius: 3px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* Cards become light panels with a dark, full-bleed header bar. */
body.edition-11th .card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 20px -16px rgba(0, 0, 0, 0.5);
}
body.edition-11th .card-h {
    margin: -16px -16px 14px;
    padding: 11px 16px;
    background: linear-gradient(180deg, var(--ed11-ink-2), var(--ed11-ink));
    color: var(--ed11-on-ink);
    border-radius: 11px 11px 0 0;
    border-bottom: 2px solid var(--accent);
}
body.edition-11th .card-h .card-h-icon { color: var(--accent-soft); }
body.edition-11th .card-h .text-mute { color: #b9bcc4; }

/* The .hero block (used by Settings/About) — drop the 10th red
   gradients for a clean light panel. */
body.edition-11th .hero {
    background: var(--bg-elev-2);
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px -20px rgba(0, 0, 0, 0.5);
}
body.edition-11th .hero-title { color: var(--text); }
body.edition-11th .hero-sub { color: var(--text-dim); }
body.edition-11th .hero-meta { color: var(--text-mute); }

/* Tiles → light panels with a teal top accent on hover. */
body.edition-11th .tile {
    background: var(--bg-elev);
    border: 1px solid var(--line);
}
body.edition-11th .tile:hover { border-color: var(--accent); }
body.edition-11th .tile-title { color: var(--text); }
body.edition-11th .tile-sub { color: var(--text-mute); }

/* Buttons — primary in teal, default as a light bordered button. */
body.edition-11th .btn {
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--line);
}
body.edition-11th .btn:hover { border-color: var(--text-mute); }
body.edition-11th .btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
body.edition-11th .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }


/* ===========================================================
   4. Homepage "11th Edition is Here" banner. UNGATED — it appears on
   the 10th (dark) home, so it stays dark/flashy to fit there. Brand-
   new element; cannot affect anything existing.
   =========================================================== */
.ed11-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid rgba(21, 117, 106, 0.5);
    border-radius: var(--radius-lg, 18px);
    background:
        radial-gradient(120% 150% at 0% 0%, rgba(21, 117, 106, 0.34), transparent 58%),
        linear-gradient(135deg, #14171c, #0b0d10);
    color: #f3f5f4;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 12px 34px -16px rgba(21, 117, 106, 0.7),
                inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ed11-banner:hover {
    border-color: rgba(29, 158, 117, 0.75);
    box-shadow: 0 16px 44px -16px rgba(21, 117, 106, 0.85);
}
.ed11-banner:active { transform: scale(0.99); }

.ed11-banner-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.13) 48%,
        rgba(255, 255, 255, 0) 62%);
    transform: translateX(-120%);
    animation: ed11-sweep 3.6s ease-in-out infinite;
}
@keyframes ed11-sweep {
    0%   { transform: translateX(-120%); }
    55%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

.ed11-banner-badge {
    flex: 0 0 auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    color: #eafaf6;
    background: linear-gradient(160deg, #1d9e75, #0f6e56);
    box-shadow: 0 4px 14px -4px rgba(29, 158, 117, 0.7);
    animation: ed11-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes ed11-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.ed11-banner-text { z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ed11-banner-kicker { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #4fd0ad; }
.ed11-banner-title { font-size: 19px; font-weight: 900; line-height: 1.12; color: #fff; text-shadow: 0 1px 10px rgba(21, 117, 106, 0.5); }
.ed11-banner-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.ed11-banner-chev { z-index: 1; flex: 0 0 auto; font-size: 26px; line-height: 1; color: #4fd0ad; }


/* ===========================================================
   5. Settings "Game Edition" segmented picker. UNGATED (Settings is
   reachable in both editions); uses the active edition's palette vars.
   =========================================================== */
.ed-seg { display: flex; gap: 8px; }
.ed-seg-btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius, 12px);
    background: var(--bg-elev-2);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ed-seg-btn b { font-size: 14px; font-weight: 800; }
.ed-seg-btn span { font-size: 11.5px; color: var(--text-mute); }
.ed-seg-btn:hover { border-color: var(--text-mute); }
.ed-seg-btn.is-active {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.ed-seg-btn.is-active b { color: var(--accent-soft); }


/* ===========================================================
   6. 11th-only components — home landing, coming-soon tiles, and the
   full-page placeholder. GATED (only rendered in 11th mode), styled
   for the light theme.
   =========================================================== */
body.edition-11th .ed11-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 4px 4px var(--radius-lg, 18px) var(--radius-lg, 18px);
    background: var(--bg-elev-2);
    box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.5);
}
body.edition-11th .ed11-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(70% 120% at 100% 0%, rgba(21, 117, 106, 0.10), transparent 60%);
}
body.edition-11th .ed11-hero-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--ed11-on-ink);
    background: var(--ed11-ink);
    border-bottom: 3px solid var(--accent);
}
body.edition-11th .ed11-hero-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text);
}
body.edition-11th .ed11-hero-sub {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    font-size: 14.5px;
    color: var(--text-dim);
    max-width: 48ch;
}
body.edition-11th .ed11-hero-meta {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Coming-soon tiles (non-interactive divs reusing the .tile look). */
body.edition-11th .tile.is-soon {
    position: relative;
    cursor: default;
    opacity: 0.62;
}
body.edition-11th .tile.is-soon:hover { border-color: var(--line); transform: none; }
body.edition-11th .ed11-soon-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
}

/* Full-page "being forged" placeholder. */
body.edition-11th .ed11-soon {
    max-width: 520px;
    margin: 24px auto;
    padding: 32px 22px;
    text-align: center;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 4px 4px var(--radius-lg, 18px) var(--radius-lg, 18px);
    background: var(--bg-elev-2);
}
body.edition-11th .ed11-soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 26px;
    color: var(--ed11-on-ink);
    background: var(--ed11-ink);
    border-bottom: 3px solid var(--accent);
}
body.edition-11th .ed11-soon-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
}
body.edition-11th .ed11-soon-sub {
    margin: 8px auto 0;
    max-width: 42ch;
    font-size: 14px;
    color: var(--text-dim);
}
body.edition-11th .ed11-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

body.edition-11th .ed11-back { display: block; width: 100%; margin-top: 16px; }


/* ===========================================================
   8. 11th Missions page (#/missions). GATED. Light faction-pack look:
   per-disposition groups (colour-flagged), mission cards with per-round
   scoring, secondary cards, and the matchup list.
   =========================================================== */
body.edition-11th .ed11-m-disp {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--disp, var(--accent));
    border-radius: 4px var(--radius, 12px) var(--radius, 12px) 4px;
    background: var(--bg-elev);
    overflow: hidden;
}
body.edition-11th .ed11-m-disp-h {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    background: linear-gradient(180deg, var(--ed11-ink-2), var(--ed11-ink));
    color: var(--ed11-on-ink);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
body.edition-11th .ed11-m-disp-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--disp, var(--accent));
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
body.edition-11th .ed11-m-disp-color {
    margin-left: auto; font-size: 10.5px; font-weight: 700;
    letter-spacing: 1px; color: #b9bcc4;
}
body.edition-11th .ed11-m-card {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
}
body.edition-11th .ed11-m-card:first-of-type { border-top: 0; }
body.edition-11th .ed11-m-card.is-missing { opacity: 0.6; }
body.edition-11th .ed11-m-name {
    display: flex; align-items: center; gap: 8px;
    font-weight: 900; font-size: 16px; color: var(--text);
}
body.edition-11th .ed11-m-flag {
    font-size: 9.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    color: #8a6d1b; background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.5); border-radius: 3px; padding: 1px 5px;
}
body.edition-11th .ed11-m-flavor {
    margin: 4px 0 8px; font-size: 12.5px; font-style: italic; color: var(--text-dim);
}
body.edition-11th .ed11-m-setup {
    margin: 0 0 8px; font-size: 12px; color: var(--text-dim);
    border-left: 2px solid var(--line); padding-left: 8px;
}
body.edition-11th .ed11-m-setup b { color: var(--text); }
body.edition-11th .ed11-m-scoring { display: flex; flex-direction: column; gap: 6px; }
body.edition-11th .ed11-m-row {
    border: 1px solid var(--line); border-radius: var(--radius-sm, 8px);
    background: var(--bg-elev-2); padding: 7px 10px;
}
body.edition-11th .ed11-m-rowmeta {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    color: var(--text-mute); margin-bottom: 3px;
}
body.edition-11th .ed11-m-rowbody { display: flex; align-items: flex-start; gap: 10px; }
body.edition-11th .ed11-m-cond { flex: 1 1 auto; font-size: 13px; color: var(--text); }
body.edition-11th .ed11-m-vp {
    flex: 0 0 auto; align-self: flex-start;
    font-weight: 900; font-size: 13px; color: #fff;
    background: var(--accent); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
body.edition-11th .ed11-m-missing { font-size: 12.5px; color: var(--text-mute); font-style: italic; }

/* Secondary cards */
body.edition-11th .ed11-sec-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px;
}
body.edition-11th .ed11-sec-card {
    position: relative; padding: 12px 14px;
    border: 1px solid var(--line); border-top: 3px solid var(--accent);
    border-radius: 3px 3px var(--radius, 12px) var(--radius, 12px);
    background: var(--bg-elev);
}
body.edition-11th .ed11-sec-type {
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--accent-soft); margin: 2px 0 6px;
}
body.edition-11th .ed11-sec-line { margin: 5px 0 0; font-size: 12.5px; color: var(--text-dim); }
body.edition-11th .ed11-sec-line b { color: var(--text); }
body.edition-11th .ed11-sec-reward {
    display: inline-block; margin-top: 9px;
    font-weight: 900; font-size: 13px; color: #fff;
    background: var(--accent); border-radius: 999px; padding: 2px 10px;
}

/* Matchups */
body.edition-11th .ed11-matchups {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 7px;
}
body.edition-11th .ed11-matchup {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px);
    background: var(--bg-elev); font-size: 12.5px; color: var(--text);
}
body.edition-11th .ed11-matchup-n {
    flex: 0 0 auto; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 11px; color: var(--ed11-on-ink);
    background: var(--ed11-ink); border-radius: 5px;
}
body.edition-11th .ed11-matchup-vs { color: var(--text-mute); font-size: 10.5px; text-transform: uppercase; }
body.edition-11th .ed11-m-foot {
    margin: 16px 0 6px; font-size: 11.5px; color: var(--text-mute); font-style: italic;
}

/* ---- Core Rules page (#/core-rules in 11e) ---- */
body.edition-11th .ed11-cr-index { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
body.edition-11th .ed11-cr-link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px);
    background: var(--bg-elev); color: var(--text); text-decoration: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}
body.edition-11th .ed11-cr-link:hover { border-color: var(--accent); background: var(--bg-elev-2); }
body.edition-11th .ed11-cr-num {
    flex: 0 0 auto; width: 30px; height: 26px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; color: var(--ed11-on-ink);
    background: var(--ed11-ink); border-radius: 5px;
}
body.edition-11th .ed11-cr-link-title { flex: 1 1 auto; font-weight: 700; font-size: 14.5px; }
body.edition-11th .ed11-cr-chev { flex: 0 0 auto; font-size: 20px; color: var(--text-mute); }

body.edition-11th .ed11-cr-head {
    margin: 0 0 14px; padding: 18px 18px 16px;
    border: 1px solid var(--line); border-top: 4px solid var(--accent);
    border-radius: 4px 4px var(--radius-lg, 18px) var(--radius-lg, 18px);
    background: var(--bg-elev-2);
}
body.edition-11th .ed11-cr-kicker {
    font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-soft);
}
body.edition-11th .ed11-cr-title { margin: 4px 0 0; font-size: 26px; font-weight: 900; text-transform: uppercase; color: var(--text); }

body.edition-11th .ed11-cr-body {
    border: 1px solid var(--line); border-radius: var(--radius, 12px);
    background: var(--bg-elev); padding: 4px 16px 14px;
}
body.edition-11th .ed11-cr-body h4,
body.edition-11th .ed11-cr-body .ed11-cr-h {
    margin: 16px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--accent-soft); border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
body.edition-11th .ed11-cr-body p { margin: 7px 0; font-size: 14px; line-height: 1.55; color: var(--text); }

body.edition-11th .ed11-cr-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
body.edition-11th .ed11-cr-nav .btn { flex: 1 1 0; text-align: center; font-size: 12.5px; }


/* ===========================================================
   7. Faction logo PNGs — re-tint to the 11th teal accent.
   styles.css tints these white PNGs to the 10th RED accent via a
   hard-coded filter chain (not a var), so they stay red in 11th mode.
   This override maps white -> --accent-soft (#0e5a51), matching the
   teal the font-icons get from `color: var(--accent-soft)`.
   =========================================================== */
body.edition-11th .faction-row .faction-logo-img,
body.edition-11th .ds-faction-line .faction-logo-img,
body.edition-11th .army-panel-meta .faction-logo-img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(91%) saturate(4167%) hue-rotate(149deg) brightness(51%) contrast(89%);
}

/* ===========================================================
   8. Respect reduced-motion — kill the decorative banner animations.
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
    .ed11-banner-glow,
    .ed11-banner-badge { animation: none; }
    .ed11-banner-glow { display: none; }
}

/* ===========================================================
   9. Mission "Card List" — full HTML mission cards (styled like the
   physical Chapter Approved cards) in a swipe/arrow carousel. 11th-only.
   The card is a fixed design size; the carousel scales it (transform) to
   fit the stage with no scroll, preserving aspect.
   =========================================================== */
body.edition-11th .mc11-carousel { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 6px; }
body.edition-11th .mc11-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
body.edition-11th .mc11-scaler { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-origin: center center; }

/* the card itself — fixed design footprint, scaled by .mc11-scaler */
body.edition-11th .mc11 {
    width: 384px; flex: 0 0 auto;
    background: #e9e6dd; color: #14171c; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
    font-family: "Inter", system-ui, sans-serif;
}
body.edition-11th .mc11-head {
    background: var(--mc-accent, #8a6d1f); color: #fff;
    padding: 16px 18px 18px; display: flex; align-items: flex-start; gap: 10px;
}
body.edition-11th .mc11-head-txt { flex: 1 1 auto; min-width: 0; }
body.edition-11th .mc11-kicker { font-size: 11px; font-weight: 800; letter-spacing: 3.5px; text-transform: uppercase; opacity: 0.85; }
body.edition-11th .mc11-title { font-size: 30px; font-weight: 900; line-height: 1.02; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 3px; }
body.edition-11th .mc11-shield {
    flex: 0 0 auto; width: 44px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.22); color: #fff; font-size: 22px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
body.edition-11th .mc11-shield .card-h-icon, body.edition-11th .mc11-shield i { color: #fff; }
body.edition-11th .mc11-body { padding: 12px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
body.edition-11th .mc11-section { border-radius: 7px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
body.edition-11th .mc11-band {
    background: #16273f; color: #fff; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 800; letter-spacing: 1.6px;
}
body.edition-11th .mc11-band.is-green { background: #2c6e49; }
body.edition-11th .mc11-vp-tag { background: #fff; color: #16273f; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; }
body.edition-11th .mc11-panel { background: #f5f3ed; padding: 11px 12px; }
body.edition-11th .mc11-when { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
body.edition-11th .mc11-when-pill { background: #16140f; color: #f3c33f; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 5px; flex: 0 0 auto; }
body.edition-11th .mc11-when-txt { font-size: 14.5px; font-weight: 700; line-height: 1.15; }
body.edition-11th .mc11-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
body.edition-11th .mc11-row-sep { border-top: 1px dashed #cbc6b7; }
body.edition-11th .mc11-cond { flex: 1 1 auto; font-size: 14px; line-height: 1.32; }
body.edition-11th .mc11-vpbox {
    flex: 0 0 auto; width: 56px; height: 56px; background: #16273f; color: #fff; border-radius: 7px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
body.edition-11th .mc11-vpbox.is-green { background: #2c6e49; }
body.edition-11th .mc11-vpn { font-size: 27px; font-weight: 900; line-height: 1; }
body.edition-11th .mc11-vps { font-size: 9px; font-weight: 700; letter-spacing: 1px; opacity: 0.92; }
body.edition-11th .mc11-cap { margin-top: 8px; font-size: 12px; font-weight: 700; color: #6b6256; font-style: italic; }
body.edition-11th .mc11-drawn { font-size: 12.5px; line-height: 1.3; color: #3a3a3a; background: #e6e2d8; border-radius: 7px; padding: 9px 11px; }
body.edition-11th .mc11-empty, body.edition-11th .mc11-empty-list { padding: 24px; text-align: center; color: #888; font-size: 14px; }
body.edition-11th .mc11-foot {
    background: #dcd8cd; padding: 11px 16px; display: flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #5a564c; text-transform: uppercase;
}
body.edition-11th .mc11-foot-dot { width: 12px; height: 14px; background: var(--mc-accent, #8a6d1f); clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); }
body.edition-11th .mc11-foot-v { color: #2a2a2a; }

/* carousel chrome */
body.edition-11th .mc11-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(14, 90, 81, 0.92); color: #fff; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}
body.edition-11th .mc11-prev { left: 6px; }
body.edition-11th .mc11-next { right: 6px; }
body.edition-11th .mc11-nav:active { transform: translateY(-50%) scale(0.92); }
body.edition-11th .mc11-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 2px 0; }
body.edition-11th .mc11-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 60%; justify-content: center; }
body.edition-11th .mc11-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, 0.24); }
body.edition-11th .mc11-dot.on { background: var(--accent-soft, #0e5a51); }
body.edition-11th .mc11-dot.sel { box-shadow: 0 0 0 2px var(--gold, #9a6f25); }
body.edition-11th .mc11-count { font-size: 13px; font-weight: 800; color: var(--text-dim, #5a5f57); }
body.edition-11th .mc11-select.is-selected { background: #2c6e49; }

/* ---- attack-wizard weapon statline + ability chips on the LIGHT theme ----
   The 10th pills fall back to a dark fill (#1a1c22) while the 11th text vars
   are near-black → dark-on-dark. Re-skin to light pills with dark ink, and
   give the [KEYWORD] chips a clearer blue so they read on the pale page. */
body.edition-11th .wiz-weapon-stat {
    background: var(--bg-elev, #f4f2ec);
    border-color: var(--line, #cfccc3);
}
body.edition-11th .wiz-weapon-stat-k,
body.edition-11th .wiz-weapon-stat-melee { color: var(--text-dim, #5a5f57); }
body.edition-11th .wiz-weapon-stat-v { color: var(--text, #16181d); }
body.edition-11th .chip.weapon-ability {
    background: rgba(47, 111, 176, 0.14);
    color: #1f568f;
    border-color: rgba(47, 111, 176, 0.42);
}

/* picker chrome: disposition <select> + the bounded carousel wrapper that
   keeps the whole card visible without page scroll on phone or desktop. */
body.edition-11th .ed11-disp-pick { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; font-weight: 700; color: var(--text, #16181d); }
body.edition-11th .ed11-disp-pick select {
    flex: 1 1 auto; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line, #cfccc3);
    background: var(--bg-elev, #fff); color: var(--text, #16181d); font-size: 14px; font-weight: 700;
}
body.edition-11th .ed11-cardlist-wrap { height: min(58dvh, 540px); margin-top: 6px; }
/* when a Card List lives inside a modal, let it fill the modal body */
body.edition-11th .ed11-cardlist-modal .ed11-cardlist-wrap { height: 100%; }

/* #/missions Card-view chrome — readable on the LIGHT 11th page (dark ink on
   a light panel; the active segment is the dark-teal accent with white text). */
body.edition-11th .ed11-view-toggle { display: flex; margin: 2px 0 10px; border: 1px solid var(--line, #cfccc3); border-radius: 9px; overflow: hidden; width: max-content; background: var(--bg-elev, #f4f2ec); }
body.edition-11th .ed11-view-toggle button { background: transparent; color: var(--text-dim, #5a5f57); border: none; padding: 7px 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
body.edition-11th .ed11-view-toggle button.on { background: var(--accent-soft, #0e5a51); color: #fff; }
body.edition-11th .ed11-cards-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
body.edition-11th .ed11-seg { display: flex; border: 1px solid var(--line, #cfccc3); border-radius: 9px; overflow: hidden; flex: 0 0 auto; background: var(--bg-elev, #f4f2ec); }
body.edition-11th .ed11-seg button { background: transparent; color: var(--text-dim, #5a5f57); border: none; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
body.edition-11th .ed11-seg button.on { background: var(--accent-soft, #0e5a51); color: #fff; }
body.edition-11th .ed11-cards-controls select { flex: 1 1 auto; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line, #cfccc3); background: var(--bg-elev, #fff); color: var(--text, #16181d); font-size: 14px; font-weight: 700; }
body.edition-11th .ed11-cardlist-page { height: calc(100dvh - 210px); min-height: 320px; }
