:root {
  --paper: #f1ebdd;
  --paper-2: #e7dfcc;
  --ink: #16150f;
  --ink-2: #4a463b;
  --ink-3: #8a8370;
  --pitch: #1d4a2c;
  --pitch-2: #235634;
  --chalk: #f4f1e6;
  --red: #c8371d;
  --gold: #d9a521;
  --rule: #16150f;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* grano de papel */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.05 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- cabecera ---------- */
.mast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 3px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-crest { width: 30px; height: 34px; color: var(--pitch); }
.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
}
.mast-nav { display: flex; gap: 4px; justify-content: center; }
.mast-nav a {
  font-family: var(--label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 12px;
  border: 1.5px solid transparent;
}
.mast-nav a:hover { border-color: var(--ink); }
.mast-nav a.on { background: var(--ink); color: var(--paper); }
.mast-date { font-family: var(--label); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px 64px; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 14px 32px;
  border-top: 1.5px solid var(--rule);
  font-family: var(--label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- utilidades ---------- */
.kicker {
  font-family: var(--label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-weight: 700; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  padding: 12px 20px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 4px 4px 0 var(--red);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--red); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--red); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); margin: 22px 0 8px;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }

/* ---------- portada ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  padding: 48px 0 28px;
  border-bottom: 1.5px solid var(--rule);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 148px);
  line-height: .84;
  text-transform: uppercase;
  margin: 10px 0 0;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--pitch); }
.hero p { margin: 0; font-size: 19px; max-width: 34ch; color: var(--ink-2); }

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
  border: 2px solid var(--rule);
}
.game {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 26px 28px 28px;
  text-decoration: none;
  min-height: 460px;
  transition: background .2s ease;
}
.game + .game { border-left: 2px solid var(--rule); }
.game:hover { background: var(--paper-2); }
.game-num {
  font-family: var(--display); font-weight: 900; font-size: 22px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1.5px solid var(--rule); padding-bottom: 8px;
}
.game-num span:last-child { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.game h2 {
  font-family: var(--display); font-weight: 900; font-size: clamp(36px, 3.6vw, 48px); line-height: .95;
  text-transform: uppercase; margin: 18px 0 10px;
}
.game p { margin: 0; max-width: 38ch; color: var(--ink-2); }
.game-art { margin: 22px 0; display: flex; align-items: center; justify-content: center; min-height: 170px; }
.game-foot { display: flex; justify-content: space-between; align-items: center; }
.game-foot .stat { font-family: var(--label); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.game-foot .stat b { color: var(--ink); font-weight: 700; }
.game .go {
  width: 52px; height: 52px; border: 2px solid var(--ink); display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.game .go svg { width: 22px; height: 22px; }
.game:hover .go { background: var(--ink); color: var(--paper); }

/* portada: tres fotos sueltas sobre la mesa */
.art-photos { position: relative; width: 100%; max-width: 440px; height: 190px; }
.art-photos .polaroid {
  position: absolute; width: 58%; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--paper-2); border: 6px solid var(--chalk); outline: 1.5px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(22,21,15,.18); filter: saturate(.9);
}
.art-photos .p0 { left: 0; top: 18px; transform: rotate(-5deg); }
.art-photos .p1 { left: 21%; top: 0; transform: rotate(2deg); z-index: 1; }
.art-photos .p2 { right: 0; top: 34px; transform: rotate(6deg); z-index: 2; }
.art-photos .tag {
  position: absolute; right: 4%; bottom: -6px; z-index: 3;
  font-family: var(--display); font-weight: 900; font-size: 26px; padding: 2px 8px;
  background: var(--paper); border: 2px solid var(--ink); transform: rotate(-4deg);
}
.art-sheet { width: 100%; max-width: 320px; }
.art-pitch { width: 100%; max-width: 420px; background: var(--pitch); padding: 14px; border: 2px solid var(--ink); }

.notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 36px; padding-top: 20px; border-top: 1.5px solid var(--rule);
}
.notes h3 { font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.notes p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- juego: formaciones ---------- */
.g-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  border-bottom: 3px solid var(--rule); padding-bottom: 12px;
}
.g-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 76px); line-height: .88; text-transform: uppercase; margin: 6px 0 0; }
.score-strip { display: flex; border: 2px solid var(--ink); }
.score-strip div { padding: 6px 16px; text-align: center; }
.score-strip div + div { border-left: 2px solid var(--ink); }
.score-strip small { display: block; font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.score-strip b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }

.photo-board {
  /* minmax(0, …): un texto largo (autor, equipo) no puede ensanchar las columnas */
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0;
  margin-top: 26px; border: 2px solid var(--ink); background: var(--chalk);
}
.photo-stage { min-width: 0; margin: 0; padding: 18px 18px 12px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.photo-frame {
  background: var(--ink); display: grid; place-items: center;
  aspect-ratio: 3 / 2; overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-stage figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.photo-stage figcaption span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.photo-stage figcaption span:last-child { white-space: nowrap; font-size: 14px; letter-spacing: .1em; }
.photo-stage figcaption b { color: var(--ink); }
.photo-panel { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.photo-panel h2 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 38px); line-height: .92; text-transform: uppercase; margin: 4px 0 0; overflow-wrap: anywhere; }
/* selector de modo (año / año + país) */
.mode-switch { display: flex; align-items: center; gap: 0; margin-top: 14px; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.mode-switch span { color: var(--ink-2); margin-right: 12px; }
.mode-switch button {
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 8px 14px; min-height: 40px;
}
.mode-switch button + button { border-left: 0; }
.mode-switch button.on { background: var(--ink); color: var(--paper); }
/* elección de país: listado + mapa */
.country-pick { display: flex; flex-direction: column; gap: 8px; }
#country-select {
  font-family: var(--serif); font-size: 17px; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; min-height: 48px; width: 100%;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
#country-select:disabled { cursor: default; opacity: 1; }
#country-select.is-right { background-color: var(--pitch); color: var(--chalk); border-color: var(--pitch); }
#country-select.is-wrong { background-color: var(--red); color: var(--chalk); border-color: var(--red); text-decoration: line-through; }
.country-hint { margin: 0; font-family: var(--label); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.map-box { border-top: 1px dashed var(--ink-3); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.map-box > .kicker { margin: 0; }
.map-zoom { display: flex; flex-wrap: wrap; gap: 4px; }
.map-zoom button {
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: transparent; border: 1.5px solid var(--ink); padding: 5px 9px; cursor: pointer; min-height: 32px;
}
.map-zoom button.on { background: var(--ink); color: var(--paper); }
.map-frame { background: #dfe6e3; border: 2px solid var(--ink); }
.map { width: 100%; height: auto; aspect-ratio: 2 / 1; }
.map path {
  fill: var(--paper); stroke: var(--ink-3); stroke-width: .6; vector-effect: non-scaling-stroke;
  cursor: pointer; transition: fill .12s ease;
}
.map path:not(.sel):not(.right):not(.wrong):hover { fill: var(--gold); }
.map path.sel { fill: var(--ink); }
.map path.right { fill: var(--pitch); }
.map path.wrong { fill: var(--red); }
.map-which { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.map-which button {
  font: inherit; letter-spacing: inherit; text-transform: none; font-family: var(--serif); font-weight: 400; font-size: 15px;
  background: var(--paper); border: 2px solid var(--ink); padding: 6px 10px; cursor: pointer; min-height: 40px;
}
.map-which button:hover { background: var(--ink); color: var(--paper); }
.endcard td .sub { font-family: var(--label); font-size: 13px; letter-spacing: .04em; color: var(--ink-2); }
.photo-panel .country { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.year-read {
  margin-top: 10px;
  font-family: var(--display); font-weight: 900; font-size: 104px; line-height: .8;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.year-read small { font-size: 34px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.slider { --thumb: 16px; position: relative; padding-top: 4px; }
.slider input { width: 100%; appearance: none; -webkit-appearance: none; height: 34px; background: transparent; margin: 0; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 34px; background: transparent; border-bottom: 2px solid var(--ink); }
.slider input::-moz-range-track { height: 34px; border-bottom: 2px solid var(--ink); background: transparent; }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; width: var(--thumb); height: 34px; background: var(--red); border: 2px solid var(--ink); margin-top: 0;
}
.slider input::-moz-range-thumb { width: calc(var(--thumb) - 2px); height: 32px; background: var(--red); border: 2px solid var(--ink); border-radius: 0; }
/* marcas y etiquetas siguen el mismo recorrido que el centro del cursor (medio cursor a cada lado) */
.slider .ticks { position: absolute; left: 0; right: 0; top: 4px; height: 34px; pointer-events: none; }
.slider .ticks i { position: absolute; bottom: 0; width: 1.5px; height: 9px; background: var(--ink); left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p)); }
.slider .ticks i.major { height: 18px; width: 2px; }
.slider input { position: relative; z-index: 1; }
.slider .ends { position: relative; height: 18px; margin-top: 4px; font-family: var(--label); font-size: 13px; letter-spacing: .08em; color: var(--ink-2); }
.slider .ends span { position: absolute; transform: translateX(-50%); left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p)); }
.nudge { display: flex; gap: 8px; }
.nudge button {
  font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  border: 2px solid var(--ink); background: transparent; padding: 6px 12px; cursor: pointer; min-width: 52px;
}
.nudge button:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; }

.verdict { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.verdict .pts { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .85; grid-row: span 2; }
.verdict .pts.zero { color: var(--ink-3); }
.verdict .pts.top { color: var(--pitch); }
.verdict .line1 { font-family: var(--label); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.verdict .line2 { font-size: 15px; color: var(--ink-2); }
.verdict a { color: var(--ink-2); }

.rounds { display: flex; gap: 6px; margin-top: 18px; }
.rounds span { flex: 1; height: 8px; border: 1.5px solid var(--ink); }
.rounds span.done { background: var(--ink); }
.rounds span.hit { background: var(--pitch); border-color: var(--pitch); }
.rounds span.now { background: var(--red); border-color: var(--red); }

.stamp {
  display: inline-block; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  border: 3px solid currentColor; padding: 2px 12px; transform: rotate(-6deg); color: var(--red);
  font-size: 28px; letter-spacing: .02em;
}

.endcard { margin-top: 26px; border: 2px solid var(--ink); background: var(--chalk); display: grid; grid-template-columns: 1fr 1.2fr; }
.endcard > div { padding: 30px; }
.endcard > div + div { border-left: 2px solid var(--ink); }
.endcard .big { font-family: var(--display); font-weight: 900; font-size: 140px; line-height: .8; font-variant-numeric: tabular-nums; }
.endcard table { width: 100%; border-collapse: collapse; font-size: 15px; }
.endcard td { padding: 6px 4px; border-bottom: 1px solid var(--paper-2); }
.endcard td:last-child { text-align: right; font-family: var(--label); font-weight: 700; font-size: 16px; }
.endcard td.yr { font-family: var(--label); color: var(--ink-2); white-space: nowrap; }

/* ---------- juego: la jugada ---------- */
.match-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin-top: 22px; background: var(--ink); color: var(--paper); padding: 10px 18px;
}
.match-bar .side { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.match-bar .side.r { text-align: right; }
.match-bar .board { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.match-bar .clock { font-family: var(--label); font-weight: 700; font-size: 16px; background: var(--paper); color: var(--ink); padding: 2px 8px; letter-spacing: .06em; }

.pitch-wrap { position: relative; margin-top: 0; border: 2px solid var(--ink); border-top: 0; overflow: hidden; background: var(--pitch); }
.pitch-wrap > svg { width: 100%; height: auto; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.token {
  position: absolute; width: max(4.2%, 22px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.token .disc {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: clamp(10px, 1.5vw, 17px); line-height: 1;
  box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.token.rival .disc { background: var(--ink); color: var(--paper); border: 2px solid var(--paper); }
.token.rival.beaten .disc { opacity: .3; }
.token.me { z-index: 3; }
.token.me .disc { background: var(--red); color: var(--paper); border: 2.5px solid var(--paper); }
.token.keeper .disc { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
.ball {
  position: absolute; width: max(1.9%, 10px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 4; color: var(--ink);
}
.ball svg { width: 100%; height: 100%; }
.trail { position: absolute; inset: 0; }

.step-ruler { display: flex; border: 2px solid var(--ink); border-top: 0; }
.step-ruler span {
  flex: 1; text-align: center; padding: 4px 0;
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ink-3);
}
.step-ruler span + span { border-left: 1.5px solid var(--ink); }
.step-ruler span.on { background: var(--ink); color: var(--paper); }
.step-ruler span.goal { color: var(--red); }

.qcard { margin-top: 22px; display: grid; grid-template-columns: 1fr 300px; border: 2px solid var(--ink); background: var(--chalk); }
.qmain { padding: 24px 28px 26px; }
.qcat { display: flex; align-items: center; gap: 8px; }
.qcat svg { width: 22px; height: 22px; }
.qtext { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 12px 0 20px; max-width: 34ch; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--paper); border: 2px solid var(--ink); padding: 12px 14px; cursor: pointer;
  font-size: 17px; transition: background .12s ease;
}
.opt:hover:not(:disabled) { background: var(--paper-2); }
.opt .k { font-family: var(--display); font-weight: 900; font-size: 20px; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); }
.opt:disabled { cursor: default; }
.opt.right { background: var(--pitch); color: var(--chalk); border-color: var(--pitch); }
.opt.right .k { border-color: var(--chalk); }
.opt.wrong { background: var(--red); color: var(--chalk); border-color: var(--red); }
.opt.wrong .k { border-color: var(--chalk); }
.opt.dim { opacity: .45; }

.qside { border-left: 2px solid var(--ink); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.timer { height: 12px; border: 2px solid var(--ink); position: relative; }
.timer i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; }
.timer.low i { background: var(--red); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.facts div { padding: 8px 10px; }
.facts div:nth-child(2n) { border-left: 2px solid var(--ink); }
.facts div:nth-child(n+3) { border-top: 2px solid var(--ink); }
.facts small { display: block; font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.facts b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.feed { font-size: 15px; color: var(--ink-2); min-height: 3em; }
.feed b { color: var(--ink); }

/* mano a mano: el arco de frente, dividido en 4 × 4 sectores */
.goal-pick {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 3 / 1; max-width: 560px;
  border: 7px solid var(--ink); border-bottom: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(22,21,15,.18) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(22,21,15,.18) 13px 14px),
    var(--paper);
  box-shadow: 0 7px 0 -4px var(--pitch);
}
.goal-pick .cell {
  border: 0; border-right: 1px dashed rgba(22,21,15,.35); border-bottom: 1px dashed rgba(22,21,15,.35);
  background: transparent; cursor: crosshair; position: relative; z-index: 1;
}
.goal-pick .cell:nth-child(4n) { border-right: 0; }
.goal-pick .cell:hover:not(:disabled) { background: rgba(200,55,29,.22); box-shadow: inset 0 0 0 2px var(--red); }
.goal-pick .cell:disabled { cursor: default; }
.goal-pick .cell.free { background: rgba(29,74,44,.78); }
.goal-pick .cell.covered { background: rgba(200,55,29,.72); }
.goal-pick .cell.picked { box-shadow: inset 0 0 0 4px var(--ink); }
.goal-pick .cell.picked::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink);
}
/* silueta del arquero, sólo de referencia */
.goal-pick .gk {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 22%; height: 88%; pointer-events: none; z-index: 0; fill: var(--ink); opacity: .2;
}
/* cartel que anuncia la dificultad después de elegir */
.pick-banner {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-3deg) scale(.7); opacity: 0;
  padding: 8px 20px 10px; border: 3px solid var(--ink); text-align: center; white-space: nowrap;
  font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4vw, 44px); line-height: .95;
  text-transform: uppercase; color: var(--chalk); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .25s cubic-bezier(.2,1.4,.4,1), opacity .2s ease;
}
.pick-banner small { display: block; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .14em; margin-bottom: 4px; }
.pick-banner.show { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
.pick-banner.easy { background: var(--pitch); }
.pick-banner.hard { background: var(--red); }
.legend { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); vertical-align: -1px; margin: 0 6px 0 0; }
.legend.easy { background: var(--pitch); }
.legend.hard { background: var(--red); margin-left: 14px; }
.pick-note { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.pick-note b { color: var(--ink); }

.goal-flash {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 10; pointer-events: none;
}
.goal-flash span {
  font-family: var(--display); font-weight: 900; font-size: clamp(90px, 18vw, 230px); line-height: .8;
  color: var(--chalk); text-transform: uppercase; letter-spacing: -.02em;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 8px 8px 0 var(--red);
}

.intro { margin-top: 26px; display: grid; grid-template-columns: 1.1fr 1fr; border: 2px solid var(--ink); background: var(--chalk); }
.intro > div { padding: 28px 30px; }
.intro > div + div { border-left: 2px solid var(--ink); }
.intro ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.intro li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--paper-2); }
.intro li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; }
.intro .lead { font-size: 19px; margin: 6px 0 18px; }

/* ---------- juego: detector de mentiras ---------- */
.qa-board { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 26px; border: 2px solid var(--ink); background: var(--chalk); }
.match-card { padding: 22px 26px 26px; border-right: 2px solid var(--ink); }
.mc-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.mc-label { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.6vw, 32px); line-height: 1; text-transform: uppercase; }
.mc-meta { font-family: var(--label); font-size: 14px; letter-spacing: .06em; color: var(--ink-2); margin-top: 6px; }
/* el dato falso, una vez revelado */
.match-card .is-wrong { background: var(--red); color: var(--chalk); text-decoration: line-through; text-decoration-thickness: 2px; padding: 0 4px; }
.mc-scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 22px 0 10px; }
.mc-scoreline .team { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; }
.mc-scoreline .team:first-child { text-align: right; justify-self: end; }
.mc-scoreline .team:last-child { text-align: left; justify-self: start; }
.mc-scoreline .score {
  font-family: var(--display); font-weight: 900; font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--paper); padding: 6px 16px; border-color: var(--ink);
}
.mc-scoreline .score i { font-style: normal; margin: 0 6px; opacity: .6; }
.mc-scoreline .score.is-wrong { background: var(--red); padding: 6px 16px; }
.mc-extra { display: flex; justify-content: center; align-items: center; gap: 10px; font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mc-extra .pens { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--ink); border: 2px solid var(--ink); padding: 2px 8px; }
.mc-extra .pens.is-wrong { color: var(--chalk); border-color: var(--red); }
.mc-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; border-top: 1px dashed var(--ink-3); padding-top: 14px; }
.mc-goals ul { list-style: none; margin: 0; padding: 0; }
.mc-goals ul:first-child { text-align: right; }
.mc-goals li + li { margin-top: 4px; }
.mc-goals .goal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; padding: 3px 0; }
.mc-goals ul:first-child .goal { flex-direction: row-reverse; }
.mc-goals .goal svg { width: 14px; height: 14px; flex: none; }
.mc-goals .min { font-family: var(--label); font-weight: 700; font-size: 17px; }
.mc-goals .tag { white-space: nowrap; font-family: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mc-goals .none { font-family: var(--label); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 8px; }
.qa-side { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.qa-help { margin: 0; font-size: 16px; color: var(--ink-2); }
.qa-help b { color: var(--ink); }
.qa-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa-cat {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--paper); border: 2px solid var(--ink); padding: 12px 12px; cursor: pointer;
  font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .12s ease, color .12s ease;
}
.qa-cat .k { font-family: var(--display); font-weight: 900; font-size: 18px; width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 2px solid currentColor; }
.qa-cat:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.qa-cat:disabled { cursor: default; opacity: .45; }
.qa-cat.is-truth { opacity: 1; background: var(--red); border-color: var(--red); color: var(--chalk); }
.qa-cat.is-miss { opacity: 1; background: var(--paper-2); text-decoration: line-through; }
.qa-verdict { border-top: 2px solid var(--ink); padding-top: 14px; }
.qa-verdict p { margin: 8px 0 0; font-size: 16px; }
.qa-stamp { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; border: 3px solid currentColor; padding: 0 10px; transform: rotate(-3deg); }
.qa-verdict.ok .qa-stamp { color: var(--pitch); }
.qa-verdict.ko .qa-stamp { color: var(--red); }
.qa-src { font-size: 14px !important; }
.qa-src a { color: var(--ink-2); }

@media (max-width: 860px) {
  .mast { grid-template-columns: 1fr; gap: 10px; padding: 12px 16px; }
  .mast-date { display: none; }
  .mast-nav { justify-content: flex-start; flex-wrap: wrap; gap: 4px; margin: 0 -12px; }
  .mast-nav a { font-size: 14px; padding: 5px 10px; }
  main { padding: 0 16px 48px; }
  .foot { padding: 12px 16px; }
  /* minmax(0, …): en pantallas angostas el contenido no puede ensanchar la columna */
  .hero, .games, .notes, .photo-board, .qa-board, .endcard, .qcard, .intro { grid-template-columns: minmax(0, 1fr); }
  .endcard td a, .qa-src a, .line2 a { display: inline-block; padding: 8px 0; }
  .match-card { border-right: 0; border-bottom: 2px solid var(--ink); padding: 18px 14px 20px; }
  .mc-goals { gap: 8px; }
  .mc-goals .goal { font-size: 15px; }
  .match-card, .mc-head, .mc-label { min-width: 0; overflow-wrap: anywhere; }
  .mc-scoreline { gap: 6px; }
  .mc-scoreline .team { overflow-wrap: anywhere; }
  .slider { --thumb: 28px; }
  .slider input, .slider input::-webkit-slider-runnable-track, .slider .ticks { height: 44px; }
  .slider input::-webkit-slider-thumb { height: 44px; }
  .slider input::-moz-range-thumb { height: 42px; }
  .nudge button { min-height: 44px; flex: 1; }
  .back { padding: 10px 0; margin: 10px 0 0; }
  .endcard td { padding: 10px 4px; }
  .goal-pick { aspect-ratio: 2 / 1; border-width: 5px; }
  .qa-cat { min-height: 52px; }
  .opt { min-height: 50px; }
  .mc-scoreline .score { font-size: 42px; padding: 4px 10px; }
  .game + .game { border-left: 0; border-top: 2px solid var(--rule); }
  .photo-stage { border-right: 0; border-bottom: 2px solid var(--ink); }
  .endcard > div + div, .intro > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .qside { border-left: 0; border-top: 2px solid var(--ink); }
  .opts { grid-template-columns: 1fr; }
  .year-read { font-size: 88px; }
  .game { min-height: 0; }
  .game h2 { font-size: 44px; }
  .step-ruler span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* En pantallas táctiles el :hover queda "pegado" después de tocar. */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: 4px 4px 0 var(--red); }
  .btn.ghost:hover { background: transparent; color: var(--ink); box-shadow: none; }
  .opt:hover:not(:disabled) { background: var(--paper); }
  .map path:not(.sel):not(.right):not(.wrong):hover { fill: var(--paper); }
  .qa-cat:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
  .nudge button:hover { background: transparent; color: var(--ink); }
  .goal-pick .cell:hover:not(:disabled) { background: transparent; box-shadow: none; }
  .game:hover { background: transparent; }
  .game:hover .go { background: transparent; color: var(--ink); }
  .mast-nav a:hover { border-color: transparent; }
}
