/* === The Breach · diamond grid + animation === */

.breach-shell {
  margin-top: 14px;
  padding: 26px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.breach-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}
.breach-head .left .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.breach-head .left h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.012em;
  max-width: 880px;
}
.breach-head .left h2 em { color: var(--amber); font-style: italic; }
.breach-head .left .deck {
  font-family: var(--serif);
  font-style: italic;
  color: var(--vellum-dim);
  font-size: 18px;
  max-width: 720px;
  margin: 14px 0 0;
  line-height: 1.4;
}

/* Play deck — controls on the right of the head */
.deck-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.deck-ctrl .btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.deck-ctrl .btn:hover { background: rgba(212,166,74,0.12); }
.deck-ctrl .btn.primary { background: var(--amber); color: var(--ink); }
.deck-ctrl .btn.primary:hover { background: var(--amber-2); }
.deck-ctrl .btn.ghost { border-color: var(--muted-2); color: var(--vellum-dim); }
.deck-ctrl .btn.ghost:hover { border-color: var(--vellum-dim); color: var(--vellum); }
.deck-ctrl .speed {
  display: inline-flex;
  border: 1px solid var(--rule);
}
.deck-ctrl .speed button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-right: 1px solid var(--rule);
}
.deck-ctrl .speed button:last-child { border-right: none; }
.deck-ctrl .speed button.on { color: var(--amber); }

/* Clock row */
.clock {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 36px;
  align-items: center;
  padding: 14px 0 22px;
  border-bottom: 1px dotted var(--rule);
  margin-bottom: 22px;
}
.clock .now {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--vellum);
  font-variant-numeric: tabular-nums;
  min-width: 200px;
}
.clock .now .mo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.12em;
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
}
.clock .scrub {
  position: relative;
  height: 32px;
  cursor: pointer;
}
.clock .scrub .track {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  height: 3px;
  background: var(--rule);
}
.clock .scrub .fill {
  position: absolute;
  top: 14px;
  left: 0;
  height: 3px;
  background: var(--amber);
}
.clock .scrub .marker {
  position: absolute;
  top: 4px;
  width: 1px;
  height: 24px;
  background: var(--muted-2);
}
.clock .scrub .marker .lab {
  position: absolute;
  top: -16px;
  left: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.clock .scrub .head {
  position: absolute;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateX(-50%);
}
.clock .count {
  text-align: right;
}
.clock .count .num {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.clock .count .num .of {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.08em;
}
.clock .count .lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* === The diamond grid === */
.diamonds {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;   /* NL · spine · AL */
  gap: 0;
  align-items: stretch;
  margin-top: 12px;
}
.diamonds .league-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.diamonds .league-label .pl {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.diamonds .left  .league-label { text-align: left; }
.diamonds .right .league-label { text-align: right; }

.diamonds .col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}

.diamonds .spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 38px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
  position: relative;
}
.diamonds .spine .line {
  width: 1px;
  background: var(--rule);
  flex: 1;
  margin-top: 14px;
}

/* === Team cell === */
.cell {
  position: relative;
  padding: 18px 14px 16px;
  border: 1px solid var(--rule);
  background: rgba(232, 224, 207, 0.012);
  transition: background 240ms ease, border-color 240ms ease;
  cursor: default;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cell.lit {
  background: rgba(212, 166, 74, 0.06);
  border-color: rgba(212, 166, 74, 0.5);
}
.cell.lit.justlit {
  animation: pulse 1.6s ease-out;
}
@keyframes pulse {
  0%   { background: rgba(212, 166, 74, 0.55); border-color: var(--amber-2); box-shadow: 0 0 0 0 rgba(212, 166, 74, 0.6); }
  60%  { background: rgba(212, 166, 74, 0.18); border-color: var(--amber); box-shadow: 0 0 0 14px rgba(212, 166, 74, 0); }
  100% { background: rgba(212, 166, 74, 0.06); border-color: rgba(212, 166, 74, 0.5); }
}

.cell .team {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-top: 12px;
  line-height: 1.15;
  text-wrap: balance;
  min-height: 2.3em;
}
.cell.lit .team { color: var(--vellum); }

.cell .date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.cell.lit .date { color: var(--amber); }

.cell .player {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: transparent;
  line-height: 1.2;
  margin-top: 6px;
  text-wrap: balance;
  min-height: 1.4em;
}
.cell.lit .player { color: var(--vellum-dim); }

/* The diamond glyph itself */
.cell .glyph {
  width: 56px;
  height: 56px;
  position: relative;
}
.cell .glyph svg { width: 100%; height: 100%; display: block; }

.cell .glyph .field { fill: none; stroke: var(--muted-2); stroke-width: 1.2; }
.cell .glyph .base  { fill: var(--ink-2); stroke: var(--muted-2); stroke-width: 1; }
.cell.lit .glyph .field { stroke: var(--amber); stroke-width: 1.4; }
.cell.lit .glyph .base  { fill: var(--amber); stroke: var(--amber-2); }

/* Resistant teams (lit but late) get a subtle inner rule on the top */
.cell.resistant.lit::before {
  content: "RESISTED";
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--barrier);
}

/* Sequence index in corner — 01..16 */
.cell .seq {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.cell.lit .seq { color: var(--amber); }

/* Dark cell while others around glow — the visual argument */
.cell:not(.lit) .glyph .field {
  stroke-dasharray: 1 2.5;
}

/* === Hover panel — slide-in tooltip === */
.cell .tip {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border: 1px solid var(--amber);
  padding: 14px 14px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  text-align: left;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cell:hover .tip { opacity: 1; }
.cell .tip .h {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
}
.cell .tip .pl {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--vellum);
  line-height: 1.15;
  margin: 0;
}
.cell .tip .what {
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--vellum-dim);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.cell .tip .passed {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-top: 1px dotted var(--rule);
  padding-top: 6px;
  line-height: 1.5;
}
.cell .tip .passed strong {
  color: var(--barrier-hot);
  font-weight: 400;
}

/* === Footer of the chart — the argument === */
.argument {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: end;
}
.argument .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--vellum);
  line-height: 1.32;
  max-width: 820px;
  letter-spacing: -0.005em;
}
.argument .pull em { color: var(--amber); font-style: italic; }
.argument .pull .num { font-family: var(--mono); font-style: normal; color: var(--barrier-hot); }
.argument .legend {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
  text-transform: uppercase;
}
.argument .legend .row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-bottom: 4px; }
.argument .legend .sw { display: inline-block; width: 14px; height: 14px; }
.argument .legend .sw.dark { border: 1px solid var(--rule); background: rgba(232,224,207,0.012); }
.argument .legend .sw.lit  { border: 1px solid rgba(212,166,74,0.5); background: rgba(212,166,74,0.18); }
.argument .legend .sw.res  { border: 1px solid rgba(161,69,69,0.6); background: rgba(212,166,74,0.10); position: relative; }
.argument .legend .sw.res::before {
  content: "•";
  position: absolute;
  top: -1px;
  left: 1px;
  color: var(--barrier-hot);
  font-size: 10px;
  line-height: 1;
}
