/* Mirror mind game (builds on site.css and lab.css) */

.tagline { color: var(--text); font-size: 19px; margin-bottom: 10px; }

/* Controls */
.season-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.season-head b { font: 600 17px var(--font-head); }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.pips i.done { background: var(--accent); }
.pips i.now { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.goal { margin: 0 0 18px; }

.moves { display: grid; gap: 8px; }
.move {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: 14px/1.45 var(--font); transition: border-color .15s, background .15s;
}
.move b { font-weight: 600; }
.move span { color: var(--muted); font-size: 12.5px; }
.move:hover { border-color: var(--muted); }
.move[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.controls fieldset:disabled .move { cursor: not-allowed; opacity: .55; }
.regions { margin-bottom: 6px; }
.regions .chip[aria-checked="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
#commit { margin-top: 4px; }
#commit:disabled { opacity: .5; cursor: not-allowed; }
.score-box {
  display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--muted);
}
.score-box b { font: 600 24px var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }

/* Season report */
.report h2 { margin-bottom: 2px; }
.report .sub { margin-bottom: 14px; min-height: 3em; }
.kpis-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-value.flash { animation: kpi-flash .9s ease-out; }
@keyframes kpi-flash { from { color: var(--accent); } }

/* Map */
.map-panel { padding-bottom: 14px; }
.map-wrap { position: relative; margin-top: 10px; }
#map { display: block; width: 100%; height: 440px; border-radius: 10px; cursor: pointer; touch-action: manipulation; }
.dot-key { width: 10px !important; height: 10px !important; border-radius: 50% !important; }
#map-summary { margin: 10px 0 0; }

/* Log */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.log li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); }
.log li:last-child { border-bottom: 0; }
.log .when { color: var(--muted); font-size: 13px; }
.log .what b { font-weight: 600; }
.log .res { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }

/* Reveal */
.reveal { padding-top: 48px; display: grid; gap: 24px; }
.reveal[hidden] { display: none; }
.reveal-quote { text-align: center; padding: 26px 10px 6px; }
.reveal-quote p { font: 500 26px/1.4 var(--font-head); color: var(--muted); margin: 0; }
.reveal-quote p + p { margin-top: 6px; }
.reveal-quote strong { color: var(--text); font-weight: 700; }
.reveal.show .reveal-quote p { animation: rise .9s ease-out both; }
.reveal.show .reveal-quote p + p { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.ring-key { width: 12px !important; height: 12px !important; border-radius: 3px !important; background: transparent; box-shadow: inset 0 0 0 2px var(--text); }
.heat-scale { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.heat-scale i { display: inline-block; width: 140px; height: 8px; border-radius: 4px; }
.heat-cell { stroke: var(--surface); stroke-width: 2; }
.heat-cell.hot { stroke: var(--text); }
.heat-actual { fill: none; stroke: var(--text); stroke-width: 2.5; pointer-events: none; }
.profile { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }
.profile li::marker { color: var(--accent); }
.profile b { font-weight: 600; }
.reveal .table-view { margin-top: 0; }

@media (max-width: 860px) {
  .kpis-4 { grid-template-columns: repeat(2, 1fr); }
  #map { height: 360px; }
  .reveal-quote p { font-size: 21px; }
}
@media (max-width: 680px) {
  .log li { grid-template-columns: 1fr; gap: 2px; }
}

.controls .regions { flex-wrap: wrap; overflow: visible; }
