/* =====================================================================
   Race to Dutch First: Seizoenen (seasons.js), the Midnight season overview as a fight card
   (mockup A of .impeccable/mocks/seasons/). Each season's CE boss in its
   corner: Season 1 the faded print in the void glow, Season 2 the live one in jade. Below it the
   race's data surface: the tale of the tape mirrored from the middle, the chart,
   our guilds with their place on a rail. Gold stays out: nothing here is a first kill.
   ===================================================================== */

.cmp { display: flex; flex-direction: column; gap: 22px; }
.cmp-block { margin-top: 30px; }
/* The chart belongs to the tape above it (its rows pick the line): close under it, a smaller head. */
.cmp-block--chart { margin-top: 4px; }
.cmp-sub.cmp-sub--small { margin-bottom: 10px; font-size: clamp(16px, 1.6vw, 19px); color: var(--paper-dim); }

/* ---- title + region ------------------------------------------------------------------ */
.cmp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.cmp-title {
  font-size: clamp(34px, 5.4vw, 74px); font-weight: 800; line-height: .92; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--paper); text-wrap: balance;
}
.cmp-title em { font-style: normal; color: var(--jade); }

/* ---- the fight card ------------------------------------------------------------------- */
.cmp-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 540px; background: var(--ink-850);
}
/* Each corner's light: the void behind the old season, jade behind the live one; the foot fades to
   ink so the numbers never sit on the art. */
.cmp-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(55% 75% at 22% 38%, var(--void-glow, rgba(150, 90, 255, .32)), transparent 70%),
    radial-gradient(55% 75% at 78% 38%, color-mix(in srgb, var(--jade) 22%, transparent), transparent 70%);
}
.cmp-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1;
  background: linear-gradient(to top, var(--ink-850) 46%, transparent);
}
.cmp-corner { position: relative; z-index: 0; display: flex; flex-direction: column; justify-content: end; align-items: start; padding: 0 34px 30px; min-width: 0; }
.cmp-corner--now { align-items: end; text-align: right; }
.cmp-corner__art {
  position: absolute; z-index: -1; top: 20px; height: 310px; width: 100%; object-fit: contain; pointer-events: none;
}
.cmp-corner--then .cmp-corner__art { left: 0; object-position: right top; filter: grayscale(.55) brightness(.72); }
.cmp-corner--now .cmp-corner__art { right: 0; object-position: left top; }
.cmp-corner__tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 16px 0 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink-900); color: var(--ink-200); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.cmp-corner--now .cmp-corner__tag { background: var(--jade); color: var(--ink-900); }
.cmp-corner__boss { margin-top: 12px; font-size: clamp(26px, 3vw, 42px); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: var(--paper); }
.cmp-corner__raid { margin-top: 6px; max-width: 34ch; font-size: 14px; line-height: 1.4; color: var(--paper-dim); }
.cmp-corner__n {
  margin-top: 20px; font-family: var(--f-mono); font-size: clamp(52px, 7vw, 96px); font-weight: 700; line-height: .9;
  letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--paper);
}
.cmp-corner--then .cmp-corner__n, .cmp-corner--then .cmp-corner__boss { color: var(--paper-dim); }
.cmp-corner__l { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-200); }
/* VS: the top bar's flush block, slanted both ways, a jade foot like the open view. */
.cmp-vs { align-self: start; display: grid; justify-items: center; gap: 12px; margin-top: 130px; }
.cmp-vs b {
  display: grid; place-items: center; width: 112px; height: 112px; font-size: 46px; font-weight: 800; letter-spacing: -.02em;
  background: var(--ink-900); color: var(--paper); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); box-shadow: inset 0 -5px 0 var(--jade);
}
.cmp-vs span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--jade); white-space: nowrap; }

/* ---- the verdict: a jade block with the change, the sentence on ink-800 --------------- */
.cmp-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; background: var(--ink-800); }
.cmp-verdict__n {
  display: grid; place-items: center; padding: 12px 28px; background: var(--jade); color: var(--ink-900);
  font-family: var(--f-mono); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap;
}
.cmp-verdict__say { padding: 18px 26px; max-width: 92ch; font-size: 16px; line-height: 1.5; color: var(--paper-dim); }
.cmp-verdict__say strong { font-weight: 700; color: var(--paper); }
.cmp-verdict__ce { font-weight: 600; color: var(--paper); }
.cmp-verdict--guilds { margin-bottom: 18px; }

/* ---- section heads ---------------------------------------------------------------------- */
.cmp-sub {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; color: var(--paper);
}
.cmp-sub::before {
  content: ""; flex: 0 0 13px; width: 13px; height: .9em; background: var(--jade);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

/* ---- the change chip: neutral ink both ways, jade only where the field grew -------------- */
.cmp-d {
  display: inline-flex; align-items: center; height: 20px; padding: 0 10px 0 7px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--ink-700); color: var(--paper); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.cmp-d.is-up { background: var(--jade); color: var(--ink-900); }

/* ---- tale of the tape --------------------------------------------------------------------- */
.cmp-tape { display: grid; gap: 4px; }
.cmp-tape__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); align-items: center; min-height: 72px;
  border: 0; padding: 0; font: inherit; color: var(--paper); text-align: inherit; cursor: pointer;
  background: var(--ink-850); box-shadow: inset 0 -3px 0 transparent;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cmp-tape__row:hover { background: var(--ink-800); }
.cmp-tape__row[aria-pressed="true"] { background: var(--ink-800); box-shadow: inset 0 -3px 0 var(--jade); }
.cmp-tape__row:focus-visible { outline-offset: -2px; }
.cmp-tape__side { display: flex; align-items: center; gap: 16px; padding: 0 20px; min-width: 0; }
.cmp-tape__side--then { justify-content: flex-end; }
.cmp-tape__n { font-family: var(--f-mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-tape__side--then .cmp-tape__n { color: var(--paper-dim); }
.cmp-tape__bar { display: block; flex: 0 1 auto; height: 12px; width: calc(var(--w) * 78%); min-width: 4px; }
.cmp-tape__bar--then { background: var(--ink-500); clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%); }
.cmp-tape__bar--now { background: var(--jade); clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.cmp-tape__mid { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; text-align: center; }
.cmp-tape__lv { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cmp-tape__row[aria-pressed="true"] .cmp-tape__lv { color: var(--jade); }
.cmp-tape__hint { font-size: 12px; color: var(--ink-300); }
.cmp-tape__row--ce { box-shadow: inset 0 0 0 1px var(--jade-deep); }
.cmp-tape__row--ce[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--jade-deep), inset 0 -3px 0 var(--jade); }

/* ---- our guilds: place then and now, the share of the field on one rail ----------------- */
.cmp-axis {
  display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 1.6fr); gap: 0 20px;
  padding: 0 16px; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300);
}
.cmp-axis span { grid-column: 4; grid-row: 1; }
.cmp-axis span:last-child { justify-self: end; }
.cmp-guilds { list-style: none; display: grid; gap: 4px; }
.cmp-g {
  display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 1.6fr);
  align-items: center; gap: 10px 20px; padding: 12px 16px; background: var(--ink-850);
}
.cmp-g__who { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: center; gap: 2px 10px; min-width: 0; }
.cmp-g__chip { width: 12px; height: 26px; background: var(--guild); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.cmp-g__name { font-size: 17px; font-weight: 700; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-g__team { grid-column: 2; font-size: 12px; color: var(--ink-300); }
.cmp-g__side { display: grid; gap: 2px; min-width: 0; }
.cmp-g__season { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300); }
.cmp-g__side--now .cmp-g__season { color: var(--jade); }
.cmp-g__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.cmp-g__k { font-size: 16px; font-weight: 700; color: var(--paper); }
.cmp-g__place { font-size: 13px; color: var(--paper-dim); }
.cmp-g__top { font-size: 13px; font-weight: 700; color: var(--paper); }
.cmp-g__side--then .cmp-g__k, .cmp-g__side--then .cmp-g__top { color: var(--ink-200); }
.cmp-g__none { font-size: 13px; color: var(--ink-300); }
/* The rail: the old place a hollow ink mark, today's a solid block in the guild colour, the stretch
   between them tinted. */
.cmp-g__field { display: grid; gap: 6px; min-width: 0; }
.cmp-g__track { position: relative; height: 22px; }
.cmp-g__rail { position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: color-mix(in srgb, var(--ink-300) 45%, transparent); }
.cmp-g__gap {
  position: absolute; top: 10px; height: 3px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%);
  background: color-mix(in srgb, var(--guild) 55%, transparent);
}
.cmp-g__mark { position: absolute; top: 2px; left: calc(var(--x) * 100%); width: 8px; height: 19px; margin-left: -4px; }
.cmp-g__mark--then { box-shadow: inset 0 0 0 2px var(--ink-300); background: var(--ink-850); }
.cmp-g__mark--now { z-index: 1; background: var(--guild); clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.cmp-g__verdict { font-size: 13px; color: var(--paper-dim); }
.cmp-g__verdict.is-up { color: var(--jade); }

/* ---- chart ------------------------------------------------------------------------------- */
.cmp-chart { background: var(--ink-850); border: 1px solid var(--ink-700); padding: 14px 0 4px; cursor: crosshair; touch-action: pan-y; }
.cmp-chart:focus-visible { outline-offset: 2px; }
.cmp-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.cmp-line--then { stroke: var(--ink-300); stroke-width: 2; stroke-dasharray: 5 4; }
.cmp-line--now { stroke: var(--jade); stroke-width: 3; }
.cmp-end { font: 700 13px var(--f-display); letter-spacing: .04em; }
.cmp-end--then { fill: var(--ink-200); }
.cmp-end--now { fill: var(--jade); }
.cmp-today { stroke: var(--jade-deep); stroke-width: 1.5; stroke-dasharray: 4 4; }
.cmp-today__lbl { fill: var(--jade); font: 800 12px var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.cmp-dot { stroke-width: 2.5; fill: var(--ink-900); }
.cmp-dot--then { stroke: var(--ink-200); }
.cmp-dot--now { stroke: var(--jade); }
.cmp-read {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 4px; padding: 10px 14px;
  background: var(--ink-850); border: 1px solid var(--ink-700); font-size: 14px; color: var(--paper-dim);
}
.cmp-read__d { font-weight: 700; color: var(--paper); }
.cmp-read__v { display: inline-flex; align-items: center; gap: 8px; }
.cmp-read__v b { font-family: var(--f-mono); font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; }
.cmp-read__key { display: inline-block; width: 16px; height: 3px; background: var(--jade); }
.cmp-read__v--then .cmp-read__key { background: repeating-linear-gradient(90deg, var(--ink-300) 0 5px, transparent 5px 8px); }
.cmp-read__back {
  margin-left: auto; height: 28px; padding: 0 12px; border: 0; cursor: pointer;
  background: var(--ink-750); color: var(--jade); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.cmp-read__back:hover { background: var(--ink-700); }

/* Nerfs: a faint line per nerf day through the plot, a slanted tick in the season's lane under the
   week labels (Season 1 ink, Season 2 jade), and the list under the readout. */
.cmp-nerf { stroke-width: 1; stroke-dasharray: 2 4; }
.cmp-nerf--then { stroke: color-mix(in srgb, var(--ink-300) 55%, transparent); }
.cmp-nerf--now { stroke: color-mix(in srgb, var(--jade) 55%, transparent); }
.cmp-lane { stroke: var(--ink-700); stroke-width: 1; }
.cmp-lane__lbl { font: 700 11px var(--f-mono); letter-spacing: .04em; }
.cmp-lane__lbl--then { fill: var(--ink-300); }
.cmp-lane__lbl--now { fill: var(--jade); }
.cmp-nerf__tick--then { fill: var(--ink-200); }
.cmp-nerf__tick--now { fill: var(--jade); }
/* A nerf pointed at in the list: its line and tick full strength, the others faded, a label at the top. */
.cmp-nerf, .cmp-nerf__tick { transition: opacity var(--t-fast) var(--ease); }
.cmp-nerf.is-hot { stroke-width: 2; stroke-dasharray: none; }
.cmp-nerf--then.is-hot { stroke: var(--ink-200); }
.cmp-nerf--now.is-hot { stroke: var(--jade); }
.cmp-nerf.is-dim, .cmp-nerf__tick.is-dim { opacity: .25; }
.cmp-callout__box { fill: var(--ink-900); stroke-width: 1; }
.cmp-callout--then .cmp-callout__box { stroke: var(--ink-300); }
.cmp-callout--now .cmp-callout__box { stroke: var(--jade); }
.cmp-callout__head { font: 800 11px var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.cmp-callout--then .cmp-callout__head { fill: var(--ink-200); }
.cmp-callout--now .cmp-callout__head { fill: var(--jade); }
.cmp-callout__body { fill: var(--paper); font: 500 12px var(--f-display); }
.cmp-read__nerfs { font-size: 13px; color: var(--ink-200); }
.cmp-nerfs { margin-top: 14px; }
.cmp-nerfs__title { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-200); }
.cmp-nerfs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cmp-nerfs__col { padding: 12px 14px 14px; background: var(--ink-850); }
.cmp-nerfs__h { margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-200); }
.cmp-nerfs__col--now .cmp-nerfs__h { color: var(--jade); }
.cmp-nerfs__list { list-style: none; display: grid; gap: 2px; }
/* A nerf: the boss's head, its name over the change, the day (a button that picks it) and the source. */
.cmp-nerfs__i {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 0 12px;
  padding: 6px 8px; margin: 0 -8px; transition: background var(--t-fast) var(--ease);
}
.cmp-nerfs__i:hover, .cmp-nerfs__i:focus-within { background: var(--ink-800); }
.cmp-nerfs__head.boss-thumb { width: 36px; height: 36px; margin: 0; }
.cmp-nerfs__main { min-width: 0; }
.cmp-nerfs__boss { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cmp-nerfs__boss b { font-size: 14px; font-weight: 700; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-nerfs__date { flex: 0 0 auto; font: 12px var(--f-mono); color: var(--ink-300); white-space: nowrap; }
.cmp-nerfs__what { font-size: 13px; line-height: 1.4; color: var(--paper-dim); }
.cmp-nerfs__later { font-size: 12px; color: var(--ink-300); }
.cmp-nerfs__i.is-later .cmp-nerfs__what { color: var(--ink-200); }
.cmp-nerfs__side { display: grid; justify-items: end; gap: 4px; }
.cmp-nerfs__day {
  border: 0; padding: 1px 8px 1px 6px; cursor: pointer; font: 700 12px var(--f-mono); white-space: nowrap;
  background: var(--ink-700); color: var(--paper); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.cmp-nerfs__col--now .cmp-nerfs__day { background: var(--jade); color: var(--ink-900); }
.cmp-nerfs__day:hover { filter: brightness(1.15); }
.cmp-nerfs__src { font-size: 12px; white-space: nowrap; }
.cmp-nerfs__none { font-size: 14px; color: var(--ink-300); }

/* Place in the field per day: a guild picked from its chip buttons, Season 2 solid in its colour,
   Season 1 dashed in it, the top of the field at the top. */
.cmp-posbox { margin-top: 22px; }
.cmp-posbar { margin-bottom: 8px; }
.cmp-pos { fill: none; stroke: var(--guild); stroke-linejoin: round; stroke-linecap: round; }
.cmp-pos--now { stroke-width: 3; }
.cmp-pos--then { stroke-width: 2; stroke-dasharray: 5 4; opacity: .55; }
.cmp-pos__end--now { fill: var(--guild); }
.cmp-pos__end--then { fill: var(--ink-200); }
.cmp-pos__dot--now { stroke: var(--guild); }
.cmp-pos__dot--then { stroke: var(--ink-200); }
.cmp-posread__g { display: inline-flex; align-items: center; gap: 8px; }
.cmp-posread__chip { width: 8px; height: 14px; background: var(--guild); clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.cmp-posread__g b { color: var(--paper); }
.cmp-posread__v { font-family: var(--f-mono); font-size: 13px; color: var(--paper-dim); }
/* The two line styles, once under the chart (each guild draws both in its own colour). */
.cmp-poskey { display: flex; align-items: center; gap: 8px 10px; margin-top: 8px; font-size: 12px; color: var(--ink-300); }
.cmp-poskey__k { display: inline-block; width: 18px; height: 3px; background: var(--paper-dim); }
.cmp-poskey__k--then { margin-left: 10px; background: repeating-linear-gradient(90deg, var(--ink-300) 0 5px, transparent 5px 8px); }
@media (pointer: coarse) { .cmp-posbar .bp-chip { height: 44px; } }

.cmp-note { margin-top: 18px; max-width: 96ch; font-size: 13px; line-height: 1.55; color: var(--ink-300); }

@media (max-width: 900px) {
  .cmp-tape__row { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
  .cmp-tape__side { padding: 0 12px; gap: 4px 10px; }
  .cmp-tape__n { font-size: 20px; }
  /* Guild rows: name over the full width, the two seasons side by side, the rail under them. */
  .cmp-axis { display: flex; justify-content: space-between; gap: 12px; padding: 0 12px; font-size: 11px; letter-spacing: .06em; }
  .cmp-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-g__who, .cmp-g__field { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .cmp-nerfs__cols { grid-template-columns: 1fr; }
  .cmp-nerfs__i { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 0 10px; }
  .cmp-nerfs__head.boss-thumb { width: 32px; height: 32px; }
  /* Phone: the bosses at the top of their corners, VS over the seam, the numbers under the art. */
  .cmp-card { grid-template-columns: 1fr 1fr; min-height: 0; }
  .cmp-card::after { height: 64%; }
  .cmp-corner { padding: 150px 14px 18px; }
  .cmp-corner__art { top: 8px; height: 150px; }
  .cmp-corner__raid { display: none; }
  .cmp-corner__tag { height: 26px; padding: 0 12px 0 9px; font-size: 11px; }
  .cmp-corner__boss { font-size: 20px; }
  .cmp-corner__n { margin-top: 12px; font-size: 40px; }
  .cmp-corner__l { font-size: 11px; letter-spacing: .08em; }
  .cmp-vs { position: absolute; left: 50%; top: 52px; margin: 0; transform: translateX(-50%); }
  .cmp-vs b { width: 62px; height: 62px; font-size: 25px; box-shadow: inset 0 -4px 0 var(--jade); }
  .cmp-vs span { display: none; }
  .cmp-verdict { grid-template-columns: minmax(0, 1fr); }
  .cmp-verdict__n { justify-items: start; padding: 10px 16px; }
  .cmp-verdict__say { padding: 14px 16px 16px; font-size: 15px; }
  .cmp-tape__row { grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr); }
  .cmp-tape__side { flex-direction: column; align-items: flex-end; gap: 6px; }
  .cmp-tape__side--now { flex-direction: column-reverse; align-items: flex-start; }
  .cmp-tape__bar { width: calc(var(--w) * 100%); }
  .cmp-tape__lv { font-size: 12px; }
  .cmp-tape__hint { display: none; }
  .cmp-tape__n { font-size: 17px; }
  .cmp-g { padding: 12px; gap: 10px 14px; }
}
