/* ==============================================================
   Campaign page (campaign.html)
   Modules: episode hero (.chc), roadmap (.crm), offline Melee vs AI
   (.cvc), missions (.cmb), difficulty customization (.ccb).
   Content comes from assets/data/campaign.<locale>.md (campaign-page.js).
   Extracted from the redesign lab; rules are in cascade order, so later
   rules intentionally refine earlier ones.
   ============================================================== */
.campaign-page { background: #070d0c; }
.campaign-page .vs-page__main { overflow-x: clip; }
.cl-section { padding: clamp(64px, 8vw, 110px) 0; }
.cl-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--title-font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--vs-theme-color2); }
.cl-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.cl-h2 { margin: 0 0 14px; font-family: var(--title-font); font-size: clamp(1.8rem, 1rem + 2.2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--title-color); }
.cl-lead { max-width: 620px; margin: 0 0 24px; color: var(--text-color2); font-size: 1.02rem; line-height: 1.65; }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cl-actions .vs-btn,
.cl-section .vs-btn { margin: 0; padding: 18px 28px; white-space: nowrap; }
.cl-ghost { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; font-family: var(--title-font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--title-color); border: 1px solid rgba(246, 245, 245, 0.35); background: rgba(10, 19, 17, 0.4); transition: border-color .2s, background-color .2s; }
.cl-ghost:hover { color: #fff; border-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.12); }
.cl-link { font-family: var(--title-font); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vs-theme-color2); }
.cl-link i { margin-left: 6px; transition: transform .2s; }
.cl-link:hover i { transform: translateX(4px); }
.cl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-family: var(--title-font); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-color1); background: rgba(5, 10, 9, 0.6); border: 1px solid rgba(246, 245, 245, 0.2); }
.cl-chip--live { color: var(--vs-theme-color2); border-color: rgba(84, 184, 147, 0.5); }
.cl-chip--dev { color: #f0a85a; border-color: rgba(240, 168, 90, 0.5); }
.cl-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: cl-blink 1.4s steps(2) infinite; }
.cl-flag { margin-left: 8px; padding: 2px 6px; font-family: var(--title-font); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: middle; border: 1px solid; }
.cl-flag--exp { color: #f0a85a; border-color: rgba(240, 168, 90, 0.5); }
.cl-flag--new { color: #8affd4; border-color: rgba(138, 255, 212, 0.5); }
.cmb { background: #070d0c; }
.cmb__strip { display: flex; gap: 10px; height: 460px; margin-top: 36px; }
.cmb__card { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0; text-align: left; border: 1px solid rgba(246, 245, 245, 0.12); background: #0b1513; transition: flex-grow .6s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.cmb__card.is-open { flex-grow: 4.5; border-color: rgba(84, 184, 147, 0.6); }
.cmb__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.55); transition: filter .5s; }
.cmb__card:hover img,
.cmb__card.is-open img { filter: none; }
.cmb__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 10, 9, 0.95)); }
.cmb__num { position: absolute; z-index: 1; top: 16px; left: 16px; font-family: var(--title-font); font-size: 1.8rem; font-weight: 200; color: #fff; -webkit-text-stroke: 1px var(--vs-theme-color2); color: transparent; }
.cmb__card.is-open .cmb__num { color: var(--vs-theme-color2); -webkit-text-stroke: 0; }
.cmb__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; }
.cmb__label { display: block; font-family: var(--title-font); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vs-theme-color2); white-space: nowrap; }
.cmb__title { display: block; margin-top: 6px; font-family: var(--title-font); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; color: var(--title-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmb__card.is-open .cmb__title { font-size: 1.7rem; white-space: normal; }
.cmb__desc { display: block; max-width: 520px; margin-top: 10px; max-height: 0; opacity: 0; overflow: hidden; font-size: 0.95rem; line-height: 1.6; color: var(--text-color1); transition: opacity .4s .2s, max-height .4s; }
.cmb__card.is-open .cmb__desc { max-height: 140px; opacity: 1; }
.cmb__card:focus-visible { outline: 2px solid #8affd4; outline-offset: 2px; }
.cl-preset__name { display: block; font-family: var(--title-font); font-size: 0.95rem; font-weight: 800; text-transform: uppercase; color: var(--title-color); }
.cl-preset__blurb { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.45; color: var(--text-color2); }
.cl-group__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; font-family: var(--title-font); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--title-color); border-bottom: 1px solid rgba(246, 245, 245, 0.12); }
.cl-group__title i { color: var(--vs-theme-color2); }
.cl-group__count { margin-left: auto; font-size: 0.7rem; color: var(--text-light-color); }
.cl-opts { display: grid; gap: 6px; }
.cl-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; background: rgba(8, 17, 15, 0.7); border: 1px solid rgba(246, 245, 245, 0.08); transition: border-color .2s, background-color .2s, opacity .2s; }
.cl-opt__box { flex: none; position: relative; width: 16px; height: 16px; margin-top: 2px; border: 1px solid rgba(246, 245, 245, 0.35); transition: background-color .2s, border-color .2s; }
.cl-opt.is-on { border-color: rgba(84, 184, 147, 0.45); background: rgba(84, 184, 147, 0.1); }
.cl-opt.is-on .cl-opt__box { background: var(--vs-theme-color2); border-color: var(--vs-theme-color2); }
.cl-opt.is-on .cl-opt__box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #050a09; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cl-opt__name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--title-color); }
.cl-opt__desc { display: block; margin-top: 3px; font-size: 0.76rem; line-height: 1.45; color: var(--text-color4); }
.cl-opt:hover { border-color: rgba(84, 184, 147, 0.6); opacity: 1 !important; }
.cl-opt:focus-visible,
.ccb__tabs button:focus-visible { outline: 2px solid #8affd4; outline-offset: 2px; }
.ccb { background: url("/assets/img/blogassets/showcase-campaign-legacycustomization.webp") center / cover; position: relative; }
.ccb::before { content: ""; position: absolute; inset: 0; background: rgba(4, 6, 6, 0.86); }
.ccb .container { position: relative; }
.ccb__menu { max-width: 1080px; margin: 0 auto; background: linear-gradient(180deg, rgba(20, 8, 8, 0.92), rgba(8, 6, 6, 0.95)); border: 2px solid #8a2a1e; box-shadow: 0 0 0 1px #2a0d08, inset 0 0 40px rgba(180, 40, 20, 0.15), 0 30px 80px rgba(0, 0, 0, 0.7); }
.ccb__menu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #5a1d14; }
.ccb__menu-head > span { font-family: var(--title-font); font-size: 0.9rem; font-weight: 700; color: #f0e6d8; }
.ccb__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ccb__tabs button { min-width: 110px; padding: 7px 14px; font-family: var(--title-font); font-size: 0.68rem; font-weight: 700; color: #9fd7a0; background: rgba(10, 30, 12, 0.6); border: 1px solid #2f6a33; transition: background-color .2s, color .2s; }
.ccb__tabs button.is-on { color: #0b1a0c; background: #7ed37f; border-color: #a8f0a9; }
.ccb__tabs .cl-preset__name { font-size: inherit; color: inherit; font-weight: inherit; }
.ccb__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ccb .cl-group { padding: 16px 18px; border-right: 1px solid #3a120c; }
.ccb .cl-group:last-child { border-right: 0; }
.ccb .cl-group__title { color: #f5d06a; border-bottom-color: #3a120c; font-size: 0.76rem; }
.ccb .cl-group__title i { color: #f5d06a; }
.ccb .cl-opt { padding: 5px 4px; background: none; border: 0; }
.ccb .cl-opt:hover { background: rgba(245, 208, 106, 0.08); }
.ccb .cl-opt__box { width: 12px; height: 12px; margin-top: 3px; border-color: #b08a3a; }
.ccb .cl-opt.is-on { background: none; }
.ccb .cl-opt.is-on .cl-opt__box { background: #f5c33a; border-color: #ffe08a; box-shadow: 0 0 6px rgba(245, 195, 58, 0.7); }
.ccb .cl-opt.is-on .cl-opt__box::after { display: none; }
.ccb .cl-opt__name { font-size: 0.8rem; font-weight: 500; color: #e8dccb; }
.ccb .cl-opt:not(.is-on) .cl-opt__name { color: #9a8f82; }
.ccb__foot { display: flex; flex-direction: column; gap: 4px; min-height: 74px; padding: 14px 20px; border-top: 1px solid #5a1d14; background: rgba(0, 0, 0, 0.35); }
.ccb__foot-name { font-family: var(--title-font); font-size: 0.78rem; color: #f5d06a; }
.ccb__foot-desc { font-size: 0.86rem; color: #d8ccbb; }
@keyframes cl-blink { 50% { opacity: .25; } }
@keyframes cl-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1199px) {
  .ccb__cols { grid-template-columns: 1fr 1fr; }
  .ccb .cl-group:nth-child(2) { border-right: 0; }
}
@media (max-width: 991px) {
  .cmb__strip { flex-direction: column; height: auto; }
  .cmb__card { flex: none; height: 84px; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
  .cmb__card.is-open { height: 360px; }
  .cmb__num { top: 50%; transform: translateY(-50%); }
  .cmb__card.is-open .cmb__num { top: 16px; transform: none; }
  .cmb__body { padding-left: 76px; }
  .cmb__card.is-open .cmb__body { padding-left: 18px; }
}
@media (max-width: 767px) {
  .ccb__cols { grid-template-columns: 1fr; }
  .ccb .cl-group { border-right: 0; border-bottom: 1px solid #3a120c; }
  .cl-actions > * { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-page *,
  .campaign-page *::before,
  .campaign-page *::after { animation: none !important; transition: none !important; }
}
.cmb__card:not(.is-open) .cmb__label,
.cmb__card:not(.is-open) .cmb__desc { display: none; }
.cmb__card:not(.is-open) .cmb__num { font-size: 1.2rem; }
.cmb__card:not(.is-open) .cmb__body { top: 60px; display: flex; justify-content: center; padding: 0 0 18px; }
.cmb__card:not(.is-open) .cmb__title { margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 100%; font-size: 0.74rem; letter-spacing: 0.08em; }
.ccb::before { background: rgba(4, 6, 6, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 991px) {
  .cmb__card:not(.is-open) .cmb__body { top: 0; justify-content: flex-start; align-items: center; padding: 0 18px 0 76px; }
  .cmb__card:not(.is-open) .cmb__title { writing-mode: horizontal-tb; transform: none; font-size: 0.9rem; }
}
.chc { --ep-accent: #eef3f1; --ep-glow-color: var(--ep-accent); --ep-emblem-filter: none; --ep-glow-filter: none; --hdr: 104px; --news-h: 196px; --stage-h: clamp(170px, calc(100svh - 575px), 360px); position: relative; display: flex; flex-direction: column; height: max(745px, 100svh); padding-top: var(--hdr); overflow: hidden; text-align: center; background: #050a09; isolation: isolate; }
.chc__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.chc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 55% at 50% 36%, transparent, rgba(5, 10, 9, 0.9) 75%), linear-gradient(180deg, rgba(5, 10, 9, 0.6), transparent 25%, transparent 60%, #050a09); }
.chc.is-tinted .chc__bg { filter: grayscale(1) brightness(.5); }
.chc.is-tinted::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 35%, color-mix(in srgb, var(--ep-accent) 30%, transparent), transparent 70%); mix-blend-mode: screen; }
.chc__frame { flex: 1; display: grid; grid-template-rows: auto var(--stage-h) 34px auto auto; align-content: center; justify-items: center; row-gap: 14px; }
.chc__eps { display: grid; grid-template-columns: repeat(2, 220px); gap: 8px; }
.ep-pick { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 14px; text-align: left; background: rgba(5, 10, 9, 0.55); border: 1px solid rgba(246, 245, 245, 0.14); transition: border-color .2s, background-color .2s; }
.ep-pick:hover { border-color: color-mix(in srgb, var(--ep-accent) 60%, transparent); }
.ep-pick.is-on { border-color: var(--ep-accent); background: color-mix(in srgb, var(--ep-accent) 14%, rgba(5, 10, 9, 0.85)); }
.ep-pick:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ep-pick__num { font-family: var(--title-font); font-size: 1.2rem; font-weight: 200; color: var(--ep-accent); }
.ep-pick__title { display: block; font-family: var(--title-font); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; color: var(--title-color); white-space: nowrap; }
.ep-pick__status { display: block; margin-top: 2px; font-size: 0.7rem; color: var(--text-color4); white-space: nowrap; }
.chc__stage { position: relative; width: calc(var(--stage-h) * 1.95); max-width: 92vw; height: var(--stage-h); }
.chc__emblem-wrap { --emblem-px: calc(var(--stage-h) * var(--emblem-size, .74)); position: absolute; top: calc(var(--stage-h) * var(--emblem-y, 0)); left: 0; right: 0; width: var(--emblem-px); height: var(--emblem-px); margin: 0 auto; }
.chc__glow,
.chc__scan { position: absolute; width: calc(100% * var(--glow-scale, 1.6)); height: calc(100% * var(--glow-scale, 1.6)); left: calc(50% - 50% * var(--glow-scale, 1.6) + 100% * var(--glow-x, 0)); top: calc(50% - 50% * var(--glow-scale, 1.6) + 100% * var(--glow-y, 0)); }
.chc__glow { object-fit: contain; filter: var(--ep-glow-filter); mix-blend-mode: screen; animation: chc-flicker 5.5s steps(1) infinite, chc-breathe 4s ease-in-out infinite; }
.chc__scan { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--ep-glow-color) 60%, transparent) 50%, transparent 100%) 0 -60% / 100% 35% no-repeat, repeating-linear-gradient(0deg, color-mix(in srgb, var(--ep-glow-color) 45%, transparent) 0 1px, transparent 1px 4px); -webkit-mask: var(--ep-glow-mask) center / contain no-repeat; mask: var(--ep-glow-mask) center / contain no-repeat; mix-blend-mode: screen; opacity: .55; animation: chc-scan 3.2s linear infinite; }
.chc__emblem { position: relative; width: 100%; height: 100%; object-fit: contain; filter: var(--ep-emblem-filter) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.75)); }
.chc__logo { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.9)); }
.chc__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; width: min(640px, 92vw); margin: 0; }
.chc__meta .cl-chip { justify-self: end; }
.chc .cl-chip--live { color: var(--ep-accent); border-color: color-mix(in srgb, var(--ep-accent) 55%, transparent); }
.chc__version { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--title-color); white-space: nowrap; }
.chc__version-k { font-family: var(--title-font); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-color4); }
.chc__version i { font-size: .75rem; color: var(--ep-accent); transition: transform .2s; }
.chc__version:not(.is-note):hover { color: var(--ep-accent); }
.chc__version:not(.is-note):hover i { transform: translateX(3px); }
.chc__version.is-note { font-weight: 400; color: var(--text-color2); cursor: default; }
.chc__version.is-note i { display: none; }
.chc__desc { max-width: 640px; min-height: 3.2em; margin: 0; line-height: 1.6; color: var(--text-color2); }
.chc__actions { display: grid; grid-template-columns: repeat(2, 250px); gap: 14px; }
.chc__actions .vs-btn,
.chc__actions .cl-ghost { width: 100%; height: 56px; margin: 0; padding: 0 16px; justify-content: center; white-space: nowrap; }
.chc .vs-btn { background-color: var(--ep-accent); color: #0b1110; }
.chc__news { height: var(--news-h); padding: 16px max(24px, calc((100vw - 1536px) / 2 + 15px)) 20px; text-align: left; background: linear-gradient(180deg, rgba(5, 10, 9, 0), rgba(5, 10, 9, 0.9) 30%, #050a09); border-top: 1px solid rgba(246, 245, 245, 0.08); }
.chc__news .hp-news__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.chc__news .hp-news__title { margin: 0; font-family: var(--title-font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--title-color); }
.chc__news .hp-news__all { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title-font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ep-accent); white-space: nowrap; }
.chc__news .hp-news__all i { font-size: 0.6rem; }
.chc__news .hp-news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.chc__news .post-card { flex-direction: row; height: 112px; border-radius: 0; background: rgba(14, 22, 21, 0.85); }
.chc__news .post-card:hover { border-color: color-mix(in srgb, var(--ep-accent) 55%, transparent); background: color-mix(in srgb, var(--ep-accent) 8%, rgba(14, 22, 21, 0.9)); }
.chc__news .post-card:hover .post-card__title { color: var(--ep-accent); }
.chc__news .post-card__thumb { flex: 0 0 42%; aspect-ratio: auto; }
.chc__news .post-card__body { justify-content: center; gap: 8px; padding: 10px 14px; }
.chc__news .post-card__headline { margin-top: 0; }
.chc__news .post-card__title { font-size: 1rem; font-weight: 600; }
.chc.is-swap .chc__logo,
.chc.is-swap .chc__emblem-wrap,
.chc.is-swap .chc__desc { animation: cl-swap .5s ease both; }
@keyframes chc-flicker {
  0%, 18%, 22%, 61%, 63%, 100% { opacity: .9; }
  20% { opacity: .35; }
  62% { opacity: .55; }
  83% { opacity: .75; }
}
@keyframes chc-breathe { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1.03); } }
@keyframes chc-scan { from { background-position: 0 -60%, 0 0; } to { background-position: 0 160%, 0 24px; } }
@media (max-height: 820px) {
  .chc { --news-h: 172px; }
  .chc__frame { row-gap: 10px; }
  .chc__news .post-card { height: 96px; }
}
@media (max-width: 991px) {
  .chc { height: auto; --stage-h: clamp(160px, 42vw, 300px); }
  .chc__frame { padding: 24px 0 40px; }
  .chc__news { height: auto; }
  .chc__news .hp-news__list { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .chc__eps,
  .chc__actions { grid-template-columns: 1fr 1fr; width: calc(100vw - 32px); }
  .ep-pick { padding: 0 10px; gap: 8px; }
  .ep-pick__status { font-size: 0.62rem; }
  .chc__meta { grid-template-columns: 1fr; justify-items: center; }
  .chc__meta .cl-chip,
  .chc__version { justify-self: center; }
  .chc__desc { min-height: 0; }
  .chc__actions .vs-btn,
  .chc__actions .cl-ghost { font-size: 0.72rem; padding: 0 8px; }
}
.ccb__menu { position: relative; }
.ccb__tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; background: #140806; border: 1px solid #b0402c; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); pointer-events: none; text-align: left; }
.ccb__tip[hidden] { display: none; }
.ccb__tip-name { font-family: var(--title-font); font-size: 0.74rem; color: #f5d06a; }
.ccb__tip-desc { font-size: 0.82rem; line-height: 1.45; color: #e2d6c4; }
.ep-pick__title,
.ep-pick__status { line-height: 1.25; }
.chc__frame { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 575px) {
  .chc__frame { grid-template-rows: auto var(--stage-h) auto auto auto; }
  .chc__meta { gap: 6px; }
  .chc__desc { max-width: 100%; font-size: 0.92rem; }
  .chc__actions .vs-btn,
  .chc__actions .cl-ghost { white-space: normal; line-height: 1.2; text-align: center; }
  .chc__news .hp-news__title { font-size: 0.72rem; }
}
.chc__stage { pointer-events: none; }
.chc__glow { max-width: none; max-height: none; }
.chc__glow { display: block; object-fit: initial; filter: none; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ep-glow-color) 85%, white) 0%, var(--ep-glow-color) 45%, color-mix(in srgb, var(--ep-glow-color) 55%, transparent) 100%); -webkit-mask: var(--ep-glow-mask) center / contain no-repeat; mask: var(--ep-glow-mask) center / contain no-repeat; opacity: .85; }
@property --glow-dim { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --glow-flick { syntax: "<number>"; inherits: false; initial-value: 1; }
.chc__glow { opacity: calc(.9 * var(--glow-dim) * var(--glow-flick)); animation: chc-glow-dim 9.7s ease-in-out infinite, chc-glow-flick 13.3s linear infinite, chc-breathe 4s ease-in-out infinite; }
.chc__scan { opacity: calc(.55 * var(--glow-dim) * var(--glow-flick)); animation: chc-scan 3.2s linear infinite, chc-glow-dim 9.7s ease-in-out infinite, chc-glow-flick 13.3s linear infinite; }
/* Emblem: slow irregular dimming, never below 80% */
@property --emblem-dim { syntax: "<number>"; inherits: false; initial-value: 1; }
.chc__emblem { opacity: var(--emblem-dim); animation: chc-emblem-dim 11.9s ease-in-out infinite; }
@keyframes chc-emblem-dim {
  0%, 8%  { --emblem-dim: 1; }
  16%     { --emblem-dim: .86; }
  22%     { --emblem-dim: .97; }
  27%     { --emblem-dim: .82; }
  31%, 47% { --emblem-dim: 1; }
  52%     { --emblem-dim: .9; }
  54%     { --emblem-dim: .8; }
  57%     { --emblem-dim: .94; }
  66%, 78% { --emblem-dim: .88; }
  86%     { --emblem-dim: 1; }
  91%     { --emblem-dim: .84; }
  100%    { --emblem-dim: 1; }
}
@keyframes chc-glow-dim {
  0%   { --glow-dim: 1; }
  18%  { --glow-dim: .82; }
  30%  { --glow-dim: .95; }
  46%  { --glow-dim: .55; }   
  58%  { --glow-dim: .62; }
  70%  { --glow-dim: 1; }
  84%  { --glow-dim: .78; }
  100% { --glow-dim: 1; }
}
@keyframes chc-glow-flick {
  0%, 11%     { --glow-flick: 1; }
  11.4%       { --glow-flick: .25; }  
  12%         { --glow-flick: .9; }
  12.4%       { --glow-flick: .4; }
  13.2%, 34%  { --glow-flick: 1; }
  34.3%       { --glow-flick: .15; }  
  34.6%       { --glow-flick: .85; }
  34.9%       { --glow-flick: .2; }
  35.2%       { --glow-flick: .7; }
  35.5%       { --glow-flick: .3; }
  36.4%, 55%  { --glow-flick: 1; }
  56.5%       { --glow-flick: .35; }  
  61%         { --glow-flick: .3; }
  61.3%       { --glow-flick: .6; }
  61.6%       { --glow-flick: .28; }
  64%, 79%    { --glow-flick: 1; }
  79.3%       { --glow-flick: .55; }  
  80%, 92%    { --glow-flick: 1; }
  92.2%       { --glow-flick: .1; }   
  92.6%       { --glow-flick: .1; }
  93%         { --glow-flick: .8; }
  94%, 100%   { --glow-flick: 1; }
}
.chc { --tabs-gap: 28px; --stage-h: clamp(160px, calc(100svh - 575px - var(--tabs-gap)), 340px); }
.chc__eps { position: relative; z-index: 3; margin-bottom: var(--tabs-gap); }
.chc__stage { position: relative; z-index: 1; }
.chc__stage,
.chc__stage * { pointer-events: none; }
@media (max-height: 820px) {
  .chc { --tabs-gap: 18px; }
}
.chc__glow { animation: chc-glow-dim 9.7s ease-in-out infinite, chc-glow-flick 13.3s linear infinite; }
.chc.has-glow-breathe .chc__glow { animation: chc-glow-dim 9.7s ease-in-out infinite, chc-glow-flick 13.3s linear infinite, chc-breathe 4s ease-in-out infinite; }
.crm { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(47, 144, 122, 0.1), transparent 70%), #070d0c; }
.crm__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 30px; align-items: stretch; }
.crm__card { position: relative; display: flex; flex-direction: column; background: rgba(8, 17, 15, 0.9); border: 1px solid rgba(246, 245, 245, 0.12); }
.crm__card--feature { border-color: rgba(84, 184, 147, 0.5); }
.crm__img { aspect-ratio: 16 / 8; overflow: hidden; }
.crm__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.crm__card--feature:hover .crm__img img { transform: scale(1.04); }
.crm__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 22px 24px 24px; }
.crm__when { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title-font); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-color4); }
.crm__when--next { color: var(--vs-theme-color2); }
.crm__ver { font-family: var(--title-font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-light-color); }
.crm__title { margin: 2px 0 4px; font-family: var(--title-font); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; color: var(--title-color); }
.crm__card--feature .crm__title { font-size: 1.7rem; }
.crm__sum { margin: 0 0 6px; font-size: 0.92rem; line-height: 1.55; color: var(--text-color2); }
.crm__items { margin: 6px 0 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--text-color1); }
.crm__items li { position: relative; padding: 6px 0 6px 18px; border-top: 1px solid rgba(246, 245, 245, 0.06); }
.crm__items li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; background: var(--vs-theme-color2); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.crm__card--episode { border-color: color-mix(in srgb, var(--ep-accent) 55%, transparent); background: radial-gradient(ellipse 90% 70% at 50% 25%, color-mix(in srgb, var(--ep-accent) 22%, transparent), transparent 70%), rgba(8, 12, 12, 0.95); }
.crm__card--episode .crm__when { color: var(--ep-accent); }
.crm__logo { width: 100%; height: auto; margin: 10px 0 6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8)); }
.crm__card--episode .cl-link { margin-top: auto; color: var(--ep-accent); }
.crm__more { margin-top: 18px; }
.crm__more-title { margin: 0 0 8px; font-family: var(--title-font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light-color); }
.crm__more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.crm__more-list li { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border: 1px dashed rgba(246, 245, 245, 0.15); }
.crm__more-list b { font-family: var(--title-font); font-size: 0.8rem; text-transform: uppercase; color: var(--title-color); }
.crm__more-list .crm__when { margin-left: auto; }
.cmb__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cmb__head .cl-h2 { margin-bottom: 0; }
.cmb__eps { display: flex; gap: 8px; }
.cmb__ep { display: flex; align-items: center; gap: 10px; min-width: 190px; height: 50px; padding: 0 14px; text-align: left; background: rgba(8, 17, 15, 0.8); border: 1px solid rgba(246, 245, 245, 0.14); }
.cmb__ep b { display: block; font-family: var(--title-font); font-size: 0.74rem; text-transform: uppercase; color: var(--title-color); }
.cmb__ep small { display: block; font-size: 0.68rem; color: var(--text-color4); }
.cmb__ep-num { font-family: var(--title-font); font-size: 1.1rem; font-weight: 200; color: var(--vs-theme-color2); }
.cmb__ep.is-on { border-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.12); }
.cmb__ep:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 991px) {
  .crm__grid { grid-template-columns: 1fr 1fr; }
  .crm__card--feature { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .crm__grid { grid-template-columns: 1fr; }
  .cmb__eps { width: 100%; }
  .cmb__ep { flex: 1; min-width: 0; }
}
.cmb__ep b,
.cmb__ep small { line-height: 1.3; }
.crm__ep-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.crm__ep-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.crm__ep-art.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 9, 0.2), rgba(5, 10, 9, 0.75)), radial-gradient(ellipse 70% 60% at 50% 50%, color-mix(in srgb, var(--ep-accent) 25%, transparent), transparent 70%); }
.crm__card--episode:hover .crm__ep-img { transform: scale(1.05); }
.crm__ep-art .crm__logo { position: relative; z-index: 1; width: 86%; margin: 0; }
.ccb__cols { grid-template-columns: 1fr; }
.ccb .cl-group { border-right: 0; border-bottom: 1px solid #5a1d14; padding: 14px 22px; }
.ccb .cl-group:last-child { border-bottom: 0; }
.ccb .cl-group__title { margin-bottom: 2px; padding-bottom: 0; border-bottom: 0; font-size: 0.95rem; color: #c8f06a; }
.ccb .cl-group__title i { color: #c8f06a; }
.cl-group__sub { margin: 0 0 8px; font-size: 0.78rem; color: #e8dccb; }
.ccb .cl-opts { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 0; }
.ccb .cl-opt__name { font-size: 0.92rem; color: #a9b6e8; }
.ccb .cl-opt:not(.is-on) .cl-opt__name { color: #a9b6e8; }
.ccb .cl-opt__box { border-color: #7a1a12; background: #1a0605; }
.ccb .cl-opt.is-implied { cursor: default; }
.ccb .cl-opt.is-implied .cl-opt__box { background: #3a3a10; border-color: #4a4a1a; box-shadow: none; }
.ccb__menu-head { justify-content: center; flex-direction: column; }
.ccb__tabs button { min-width: 140px; color: #7ed37f; background: transparent; border-color: #2f6a33; }
.ccb__tabs button.is-on { background: transparent; }
.ccb__tabs .cl-preset--hardcore.is-on { color: #ff3b2e; border-color: #ff3b2e; }
.ccb__tabs .cl-preset--legacy.is-on { color: #ffe04a; border-color: #ffe04a; }
.ccb__tabs .cl-preset--remastered.is-on { color: #3b6dff; border-color: #3b6dff; }
.ccb__tabs .cl-preset--custom.is-on { color: #7ed37f; border-color: #a8f0a9; }
@media (max-width: 767px) {
  .ccb .cl-opts { grid-template-columns: 1fr; }
}
.crm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.crm__meta .crm__ver { font-family: var(--title-font); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-color2); }
.crm__sep { color: var(--text-color3); }
.crm__meta--next .crm__when,
.crm__meta--next .cl-dot { color: var(--vs-theme-color2); }
.crm__card--episode .crm__meta .crm__when { color: var(--ep-accent); }
.crm__meta { flex-wrap: nowrap; white-space: nowrap; }
.cvc { background: radial-gradient(ellipse 60% 60% at 15% 0%, rgba(47, 144, 122, 0.14), transparent 70%), #070d0c; }
.cvc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 32px; }
.cvc__head .cl-lead { margin: 0; }
.cvc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "maps maps mods modes" "maps maps decals soon"; gap: 16px; }
.cvc__tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: rgba(8, 17, 15, 0.9); border: 1px solid rgba(246, 245, 245, 0.1); transition: border-color .2s; }
.cvc__tile:hover { border-color: rgba(84, 184, 147, 0.45); }
.cvc__tile h3 { margin: 0; font-family: var(--title-font); font-size: 1.05rem; font-weight: 800; text-transform: uppercase; color: var(--title-color); }
.cvc__tile p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-color2); }
.cvc__tile--maps { grid-area: maps; padding: 0; overflow: hidden; border-color: rgba(84, 184, 147, 0.4); }
.cvc__tile--mods { grid-area: mods; }
.cvc__tile--modes { grid-area: modes; }
.cvc__tile--decals { grid-area: decals; }
.cvc__tile--soon { grid-area: soon; border-style: dashed; }
.cvc__shot { flex: 1; min-height: 260px; overflow: hidden; background: #0a1311; }
.cvc__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.cvc__maps-copy { display: grid; gap: 6px; padding: 18px 22px 22px; }
.cvc__mods { display: grid; gap: 8px; }
.cvc__mods button { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-align: left; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(246, 245, 245, 0.14); transition: border-color .2s, background-color .2s; }
.cvc__mods b { font-family: var(--title-font); font-size: 0.8rem; color: var(--title-color); }
.cvc__mods span { font-size: 0.74rem; color: var(--text-color4); }
.cvc__mods button.is-on { border-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.14); }
.cvc__mods button.is-on b { color: #8affd4; }
.cvc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cvc__chips li { padding: 5px 10px; font-family: var(--title-font); font-size: 0.66rem; font-weight: 700; color: var(--title-color); border: 1px solid rgba(84, 184, 147, 0.4); background: rgba(84, 184, 147, 0.08); }
.cvc__decals { display: flex; gap: 10px; }
.cvc__decals img { width: 44px; height: 44px; padding: 6px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(246, 245, 245, 0.14); }
.cvc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.cvc__fine { font-size: 0.82rem; color: var(--text-color4); }
@media (max-width: 1199px) {
  .cvc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "maps maps" "mods modes" "decals soon"; }
}
@media (max-width: 991px) {
  .cvc__head { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .cvc__grid { grid-template-columns: 1fr; grid-template-areas: "maps" "mods" "modes" "decals" "soon"; }
}
.cvc__mods { margin: 0; padding: 0; list-style: none; }
.cvc__mods li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(84, 184, 147, 0.3); }

/* customization intro above the menu */
.ccb__intro { position: relative; max-width: 720px; margin: 0 auto 28px; text-align: center; }
.ccb__intro .cl-eyebrow::before { display: none; }
.ccb__intro .cl-lead { margin: 0 auto; }

/* ===================== Gallery ===================== */
.cgl { background: linear-gradient(180deg, #070d0c, #0b1715 55%, #070d0c); }
.cgl__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.cgl__head .cl-h2 { margin-bottom: 0; }
.cgl__count { margin: 0; font-family: var(--title-font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light-color); }
.cgl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 12vw, 190px); gap: 10px; }
.cgl__item { position: relative; display: block; overflow: hidden; background: #050a09; border: 1px solid rgba(246, 245, 245, 0.1); transition: border-color .25s; }
.cgl__item--lead { grid-column: span 2; grid-row: span 2; border-color: rgba(84, 184, 147, 0.4); }
.cgl__item.is-hidden { display: none; }
.cgl__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; }
.cgl__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 9, 0.9)); opacity: 0; transition: opacity .3s; }
.cgl__cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-family: var(--title-font); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.cgl__item--lead .cgl__cap, .cgl__item--lead::after { opacity: 1; transform: none; }
.cgl__item:hover, .cgl__item:focus-visible { border-color: var(--vs-theme-color2); }
.cgl__item:hover img, .cgl__item:focus-visible img { transform: scale(1.05); }
.cgl__item:hover::after, .cgl__item:hover .cgl__cap, .cgl__item:focus-visible::after, .cgl__item:focus-visible .cgl__cap { opacity: 1; transform: none; }
.cgl__more { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; font-family: var(--title-font); font-size: 1.8rem; font-weight: 300; color: #fff; background: rgba(5, 10, 9, 0.6); }
@media (max-width: 767px) {
  .cgl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
}
