/* ============================================================
   WC26 Hub — skill game pack styles (Who Am I? · Penalty · 8-0)
   Every rule scoped under .page-games. Keyframe names are
   sk-prefixed to avoid collisions with other packs.
   ============================================================ */

/* ---------- shared end-screen bits ---------- */

.page-games .sk-end { text-align: center; }
.page-games .sk-end-grade {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; font-size: 1.05rem;
  background: var(--surface-2); border: 1px solid var(--line-2);
  margin: 6px 0 2px;
}
.page-games .sk-end-grade b { font-size: 1.5rem; }
.page-games .sk-end-grade.grade-S { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 18px rgba(255, 201, 77, .25); }
.page-games .sk-end-grade.grade-A { border-color: var(--green); color: var(--green); }
.page-games .sk-end-grade.grade-B { border-color: var(--blue); color: var(--blue); }
.page-games .sk-end-grade.grade-C { border-color: var(--line-2); }
.page-games .sk-end-grade.grade-D,
.page-games .sk-end-grade.grade-E,
.page-games .sk-end-grade.grade-F { border-color: var(--red); color: var(--red); }
.page-games .sk-end-line { color: var(--text-dim); margin: 8px 0 4px; }
.page-games .sk-end-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 4px;
}
.page-games .sk-end-stats > div {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 16px; min-width: 110px;
  display: flex; flex-direction: column; gap: 2px;
}
.page-games .sk-end-stats b { font-size: 1.15rem; }
.page-games .sk-end-stats span { font-size: .74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   🕵️ GAME 1 — Who Am I?
   ============================================================ */

.page-games .sk-pg { animation: sk-fade .35s ease; }

.page-games .sk-pg-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.page-games .sk-pg-mystery { display: flex; align-items: center; gap: 12px; }
.page-games .sk-pg-qmark {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--surface-3); border: 2px dashed var(--line-2);
  animation: sk-bob 2.4s ease-in-out infinite;
}
.page-games .sk-pg-mtitle { font-weight: 700; font-size: 1.05rem; }
.page-games .sk-pg-worth {
  padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  background: rgba(255, 201, 77, .08); border: 1px solid rgba(255, 201, 77, .35);
  color: var(--text-dim); white-space: nowrap;
}
.page-games .sk-pg-worth.tick { animation: sk-pop .3s ease; }

.page-games .sk-pg-clues {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.page-games .sk-clue {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .85rem; color: var(--text-faint);
  transition: border-color .25s, background .25s;
}
.page-games .sk-clue.revealed,
.page-games .sk-clue[data-c="0"] {
  color: var(--text); border-color: var(--line-2); background: var(--surface-3);
}
.page-games .sk-clue.revealed { animation: sk-slide .35s ease; }
.page-games .sk-clue-ico { flex-shrink: 0; }
.page-games .sk-clue-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint); width: 86px; flex-shrink: 0;
}
.page-games .sk-clue-val { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.page-games .sk-clue-val .team-label { gap: 5px; }

.page-games .sk-pg-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.page-games .sk-pg-feed { font-size: .92rem; min-height: 1.3em; }
.page-games .sk-pg-feed.ok { color: var(--green); animation: sk-pop .35s ease; }
.page-games .sk-pg-feed.bad { color: var(--red); animation: sk-shake .4s ease; }
.page-games .sk-pg-feed .team-label { display: inline-flex; vertical-align: middle; gap: 5px; }

.page-games .sk-pg-options {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.page-games .sk-pg-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.page-games .sk-pg-opt .avatar { flex-shrink: 0; }
.page-games .sk-pg-opt span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-games .sk-pg-opt.wrong { animation: sk-shake .4s ease; opacity: .55; }
.page-games .sk-pg-opt.correct { animation: sk-pop .4s ease; }

/* ============================================================
   🥅 GAME 2 — Penalty Shootout
   ============================================================ */

.page-games .sk-pk { animation: sk-fade .35s ease; }

.page-games .sk-pk-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.page-games .sk-pk-level { font-size: .95rem; padding-top: 2px; }
.page-games .sk-pk-stars { font-size: .7rem; letter-spacing: 1px; }

.page-games .sk-pk-board {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 12px; min-width: 240px;
}
.page-games .sk-pk-brow { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.page-games .sk-pk-bname {
  width: 36px; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  color: var(--text-faint);
}
.page-games .sk-pk-brow.you .sk-pk-bname { color: var(--gold); }
.page-games .sk-dots { display: flex; gap: 5px; flex: 1; }
.page-games .sk-dot { font-size: .85rem; line-height: 1; width: 14px; text-align: center; }
.page-games .sk-dot.ok { color: var(--green); animation: sk-pop .35s ease; }
.page-games .sk-dot.fail { color: var(--red); animation: sk-pop .35s ease; }
.page-games .sk-dot.pend { color: var(--line-2); }
.page-games .sk-pk-bscore { font-weight: 800; width: 18px; text-align: right; }
.page-games .sk-pk-sd {
  text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .18em;
  color: var(--gold); margin-top: 4px; animation: sk-blink 1.1s ease infinite;
}

/* --- the stage: pitch, goal, zones, ball, keeper --- */

.page-games .sk-pk-stage {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); aspect-ratio: 16 / 10; max-height: 420px;
  user-select: none;
}
.page-games .sk-pk-sky {
  position: absolute; inset: 0 0 38% 0;
  background: linear-gradient(180deg, #0b1230 0%, #15204a 70%, #1c2a5e 100%);
}
.page-games .sk-pk-pitch {
  position: absolute; inset: 62% 0 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 60px, transparent 60px 120px),
    linear-gradient(180deg, #14532d 0%, #0e3d21 100%);
}
.page-games .sk-pk-spot {
  position: absolute; left: 50%; top: 88%; width: 10px; height: 4px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.page-games .sk-pk-goal {
  position: absolute; left: 13%; right: 13%; top: 7%; height: 51%;
  border: 4px solid #e8ecf6; border-bottom: none; border-radius: 3px 3px 0 0;
  box-shadow: 0 0 24px rgba(0, 0, 0, .35);
}
.page-games .sk-pk-net {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(232, 236, 246, .14) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(232, 236, 246, .14) 0 1px, transparent 1px 12px);
}
.page-games .sk-pk-zones {
  position: absolute; left: 13%; right: 13%; top: 7%; height: 51%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr;
  gap: 4px; padding: 6px; z-index: 3;
}
.page-games .sk-pk-zone {
  border: 1px dashed transparent; border-radius: 6px; background: transparent;
  color: transparent; font-size: 1.1rem; cursor: default;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.page-games .sk-pk-zones.armed .sk-pk-zone {
  cursor: pointer; border-color: rgba(255, 201, 77, .35); color: rgba(255, 201, 77, .5);
  animation: sk-zones-in .25s ease;
}
.page-games .sk-pk-zones.armed .sk-pk-zone:hover {
  background: rgba(255, 201, 77, .14); border-color: var(--gold); color: var(--gold);
}
.page-games .sk-pk-keeper {
  position: absolute; left: 50%; top: 38%; z-index: 2; font-size: 2rem;
  transform: translate(-50%, -50%);
  transition: left .45s cubic-bezier(.3, .9, .4, 1), top .45s cubic-bezier(.3, .9, .4, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
}
.page-games .sk-pk-keeper span { display: inline-block; transition: transform .45s ease; }
.page-games .sk-pk-keeper.dive-l span { transform: rotate(-50deg) scale(1.25); }
.page-games .sk-pk-keeper.dive-r span { transform: rotate(50deg) scale(1.25); }
.page-games .sk-pk-keeper.dive-c span { transform: translateY(-4px) scale(1.3); }
.page-games .sk-pk-ball {
  position: absolute; left: 50%; top: 84%; z-index: 4; font-size: 1.6rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .5));
}
.page-games .sk-pk-ball.fly {
  transition: left .55s cubic-bezier(.25, .8, .35, 1), top .55s cubic-bezier(.25, .8, .35, 1);
}
.page-games .sk-pk-ball.fly span { display: inline-block; animation: sk-ball-spin .55s linear; font-size: .72em; }

.page-games .sk-pk-flash {
  position: absolute; inset: 0; z-index: 6; display: flex; align-items: center;
  justify-content: center; font-size: clamp(1.4rem, 4.5vw, 2.3rem); font-weight: 900;
  letter-spacing: .03em; pointer-events: none; opacity: 0; text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .65); padding: 0 12px;
}
.page-games .sk-pk-flash.show { animation: sk-flash .95s ease forwards; }
.page-games .sk-pk-flash.goal { color: var(--green); }
.page-games .sk-pk-flash.save { color: var(--gold); }
.page-games .sk-pk-flash.miss { color: var(--red); }
.page-games .sk-pk-flash.goal-against { color: var(--red); }
.page-games .sk-pk-flash.save-against { color: #9fb4e8; }

.page-games .sk-pk-banner {
  position: absolute; inset: 0; z-index: 7; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 0 16px;
  font-size: clamp(1.1rem, 3.6vw, 1.7rem); font-weight: 800;
  background: rgba(10, 14, 26, .78); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.page-games .sk-pk-banner.show { opacity: 1; }

/* --- meter + dive timer --- */

.page-games .sk-pk-meterwrap { margin-top: 12px; min-height: 22px; }
.page-games .sk-pk-meter {
  position: relative; height: 18px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line-2); display: none;
  background: linear-gradient(90deg,
    #b3273a 0%, #c97a26 22%, #1f9d63 42%, #19c37d 50%,
    #1f9d63 58%, #c97a26 78%, #b3273a 100%);
}
.page-games .sk-pk-meter.on { display: block; }
.page-games .sk-pk-sweet {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: rgba(255, 255, 255, .85); transform: translateX(-50%);
}
.page-games .sk-pk-marker {
  position: absolute; top: -2px; bottom: -2px; width: 5px; left: 50%;
  background: #fff; border-radius: 3px; transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, .9);
}
.page-games .sk-pk-timebar {
  height: 18px; border-radius: 999px; overflow: hidden; display: none;
  border: 1px solid var(--line-2); background: var(--surface-2);
}
.page-games .sk-pk-timebar.on { display: block; }
.page-games .sk-pk-timebar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.page-games .sk-pk-msg { margin-top: 10px; min-height: 1.4em; font-size: .95rem; color: var(--text-dim); }
.page-games .sk-pk-msg b { color: var(--text); }

/* ============================================================
   🎰 GAME 3 — 8-0 Challenge (draft a full XI onto a CSS pitch)
   ============================================================ */

.page-games .sk-80 { animation: sk-fade .35s ease; }

/* --- formation pills + persistent status strip --- */

.page-games .ez-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.page-games .ez-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  padding: 8px 12px; margin-bottom: 12px; font-size: .85rem; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.page-games .ez-status b { color: var(--text); }
.page-games .ez-status .gold { color: var(--gold); }
.page-games .ez-st { white-space: nowrap; }
.page-games .ez-st-lines { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.page-games .ez-st-line { font-size: .76rem; color: var(--text-faint); }
.page-games .ez-st-line b { color: var(--text-dim); }
.page-games .ez-st-line.done { opacity: .5; }

/* --- layout: pitch beside the draft panel --- */

.page-games .ez-layout {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 16px; align-items: start;
}
.page-games .ez-panel { min-width: 0; }

/* --- the pitch: pure CSS grass, mowing stripes and white lines --- */

.page-games .ez-pitch {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); user-select: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 9.1%, rgba(0, 0, 0, .03) 9.1% 18.2%),
    linear-gradient(180deg, #157a3d 0%, #0b5128 100%);
}
.page-games .ez-pitch::before { /* outer boundary */
  content: ''; position: absolute; inset: 3.5%; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 2px;
}
.page-games .ez-pitch i { position: absolute; pointer-events: none; }
.page-games .ez-half { left: 3.5%; right: 3.5%; top: calc(50% - 1px); height: 2px; background: rgba(255, 255, 255, .45); }
.page-games .ez-circle {
  left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 50%;
}
.page-games .ez-box { left: 24%; right: 24%; height: 13.5%; border: 2px solid rgba(255, 255, 255, .45); }
.page-games .ez-box.t { top: 3.5%; border-top: none; }
.page-games .ez-box.b { bottom: 3.5%; border-bottom: none; }
.page-games .ez-arc { left: 40.5%; right: 40.5%; height: 4.5%; border: 2px solid rgba(255, 255, 255, .45); }
.page-games .ez-arc.t { top: 17%; border-top: none; border-radius: 0 0 999px 999px; }
.page-games .ez-arc.b { bottom: 17%; border-bottom: none; border-radius: 999px 999px 0 0; }

/* --- player chips (filled + empty slots) --- */

.page-games .ez-chip {
  position: absolute; width: 64px; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; transition: left .45s ease, top .45s ease;
}
.page-games .ez-chip-ava { position: relative; display: inline-block; line-height: 0; }
.page-games .ez-chip .avatar {
  width: 42px; height: 42px; font-size: .8rem;
  border: 2px solid rgba(255, 255, 255, .3); box-shadow: 0 3px 9px rgba(0, 0, 0, .45);
}
.page-games .ez-chip-ava .flag-wrap { position: absolute; left: -7px; bottom: -3px; z-index: 2; line-height: 0; }
.page-games .ez-chip-ava .flag-img { width: 16px; height: auto; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.page-games .ez-chip-rt { /* rating badge — gold pill, always visible */
  position: absolute; top: -6px; right: -9px; z-index: 2; line-height: 1;
  background: linear-gradient(135deg, #ffd97a, #e8a820); color: #221703;
  font-size: .6rem; font-weight: 800; padding: 2px 5px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.page-games .ez-chip-name {
  max-width: 100%; font-size: .62rem; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.page-games .ez-chip.filled.pop .ez-chip-ava { animation: sk-pop .45s ease; }
.page-games .ez-chip-hole {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .18);
  font-size: .62rem; font-weight: 800; letter-spacing: .06em; color: rgba(255, 255, 255, .6);
}
.page-games .ez-chip.empty.open .ez-chip-hole {
  border-color: var(--gold); color: var(--gold); animation: ez-pulse 1.2s ease infinite;
}

/* --- recap pitch on the result screen --- */

.page-games .ez-finalxi { margin-top: 14px; }
.page-games .ez-finalxi-title { margin-bottom: 8px; letter-spacing: .08em; }
.page-games .ez-pitch.recap { max-width: 340px; }
.page-games .ez-pitch.recap .ez-chip { width: 56px; }
.page-games .ez-pitch.recap .ez-chip .avatar { width: 36px; height: 36px; font-size: .7rem; }
.page-games .ez-pitch.recap .ez-chip-name { font-size: .58rem; }

/* --- slot machine reel --- */

.page-games .sk-80-spin { text-align: center; padding: 18px 0 8px; }
.page-games .sk-80-spin-title { margin-bottom: 14px; color: var(--text-dim); }
.page-games .sk-80-spin-title b { color: var(--text); }
.page-games .sk-80-reel {
  height: 72px; width: min(320px, 100%); margin: 0 auto; overflow: hidden;
  border-radius: var(--radius-sm); border: 2px solid var(--gold);
  background: var(--surface-2); position: relative;
  box-shadow: 0 0 0 4px rgba(255, 201, 77, .08), inset 0 8px 14px rgba(0, 0, 0, .45), inset 0 -8px 14px rgba(0, 0, 0, .45);
}
.page-games .sk-80-reel-strip {
  transition: transform 1.25s cubic-bezier(.13, .8, .22, 1); /* JS overrides duration per round */
  will-change: transform;
}
.page-games .sk-80-cell {
  height: 72px; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700;
}
.page-games .sk-80-cell .flag-img { border-radius: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }

/* --- nation banner + roster --- */

.page-games .sk-80-nation {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-2);
  margin-bottom: 10px; animation: sk-slide .35s ease;
}
.page-games .sk-80-nation-flag .flag-img { border-radius: 4px; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.page-games .sk-80-nation-info { display: flex; flex-direction: column; line-height: 1.25; }
.page-games .sk-80-nation-info b { font-size: 1.05rem; }
.page-games .sk-80-skip { margin-left: auto; }

.page-games .sk-80-roster {
  max-height: 430px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding-right: 4px; scrollbar-width: thin;
}
.page-games .sk-80-roster-head { /* GK / DF / MF / FW group subheaders */
  display: flex; align-items: center; gap: 8px; margin: 8px 2px 0;
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint);
}
.page-games .sk-80-roster-head:first-child { margin-top: 0; }
.page-games .sk-80-roster-head .sk-80-rh-slots {
  margin-left: auto; font-size: .64rem; font-weight: 600; letter-spacing: .03em;
  color: var(--text-faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
}
.page-games .sk-80-roster-head.off { opacity: .4; }
.page-games .sk-80-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; transition: border-color .15s, background .15s, transform .15s;
}
.page-games .sk-80-row:hover:not(.off) {
  border-color: var(--gold); background: var(--surface-3); transform: translateX(3px);
}
.page-games .sk-80-row.off { opacity: .4; cursor: not-allowed; }
.page-games .sk-80-row .avatar { flex-shrink: 0; }
.page-games .sk-80-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.page-games .sk-80-row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-games .sk-80-row-pos {
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 3px 7px;
  border-radius: 5px; flex-shrink: 0;
}
.page-games .sk-80-row-pos.pos-GK { background: rgba(255, 201, 77, .14); color: var(--gold); }
.page-games .sk-80-row-pos.pos-DF { background: rgba(63, 142, 252, .14); color: var(--blue); }
.page-games .sk-80-row-pos.pos-MF { background: rgba(25, 195, 125, .14); color: var(--green); }
.page-games .sk-80-row-pos.pos-FW { background: rgba(230, 57, 70, .16); color: #ff8a93; }
.page-games .sk-80-row-rt { /* the rating — always visible, right-aligned gold */
  width: 36px; text-align: right; font-size: 1.02rem; color: var(--gold); flex-shrink: 0;
}

/* --- lines, gates, the run --- */

.page-games .sk-80-ready { text-align: center; padding-top: 8px; }
.page-games .sk-80-lines { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.page-games .sk-80-line { display: flex; align-items: center; gap: 10px; }
.page-games .sk-80-line-name {
  width: 128px; flex-shrink: 0; text-align: left; font-size: .85rem; color: var(--text-dim);
}
.page-games .sk-80-line-bar {
  flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); overflow: hidden;
}
.page-games .sk-80-line-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #2bdb92);
  animation: sk-grow .7s ease;
}
.page-games .sk-80-line.gated .sk-80-line-bar span { background: linear-gradient(90deg, #b3273a, var(--red)); }
.page-games .sk-80-line > b { width: 30px; text-align: right; }
.page-games .sk-80-gate {
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; color: var(--red);
  border: 1px solid var(--red); border-radius: 4px; padding: 2px 5px;
  animation: sk-blink 1.2s ease infinite;
}
.page-games .ez-comp { margin: 4px 0 6px; }
.page-games .sk-80-eff { margin: 10px 0 14px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.page-games .sk-80-eff b { font-size: 1.6rem; }
.page-games .sk-80-gate-note { font-size: .8rem; color: var(--red); }
.page-games .sk-80-go { animation: sk-pop .4s ease; }

.page-games .sk-80-run .sk-80-eff { flex-direction: row; justify-content: center; gap: 8px; margin: 6px 0 12px; }
.page-games .sk-80-run .sk-80-eff b { font-size: 1.1rem; }

/* --- run summary strip (M1 ✅ 2-0 …) --- */

.page-games .ez-runbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.page-games .ez-runchip {
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-faint);
  white-space: nowrap;
}
.page-games .ez-runchip sup { font-size: .58rem; color: var(--text-faint); }
.page-games .ez-runchip.w { border-color: rgba(25, 195, 125, .45); color: var(--green); }
.page-games .ez-runchip.l { border-color: rgba(230, 57, 70, .55); color: #ff8a93; }
.page-games .ez-runchip.on { border-color: var(--gold); color: var(--gold); animation: sk-blink 1.2s ease infinite; }

/* --- the live match box: header, clock, controls, event feed --- */

.page-games .ez-matchbox {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 10px 12px; animation: sk-slide .35s ease;
}
.page-games .ez-mhead {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.page-games .ez-mstage {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint); white-space: nowrap;
}
.page-games .ez-mopp { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.page-games .ez-mopp .team-label { gap: 6px; min-width: 0; }
.page-games .ez-mrank {
  font-size: .64rem; font-weight: 600; color: var(--text-faint);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}
.page-games .ez-mscore { font-weight: 900; font-size: 1.3rem; margin-left: auto; }
.page-games .ez-mclock { font-weight: 700; color: var(--gold); min-width: 44px; text-align: right; }
.page-games .ez-mctrl { display: flex; gap: 6px; }
.page-games .ez-mctrl .btn.active { border-color: var(--gold); color: var(--gold); }

.page-games .ez-feed {
  max-height: 250px; min-height: 110px; overflow-y: auto; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: 4px; padding: 8px 2px;
}
.page-games .ez-evt {
  font-size: .85rem; color: var(--text-dim); padding: 4px 9px;
  border-radius: 6px; border-left: 2px solid transparent; animation: sk-slide .3s ease;
}
.page-games .ez-evt b { color: var(--text); }
.page-games .ez-evt.goal.you { background: rgba(255, 201, 77, .1); border-left-color: var(--gold); color: var(--text); }
.page-games .ez-evt.goal.opp { background: rgba(230, 57, 70, .08); border-left-color: var(--red); }
.page-games .ez-evt.save { color: #9fb4e8; }
.page-games .ez-evt.pen.you { border-left-color: var(--gold); }
.page-games .ez-evt.pen.opp { border-left-color: var(--line-2); }
.page-games .ez-evt.big-w { color: var(--green); font-size: .95rem; animation: sk-pop .4s ease; }
.page-games .ez-evt.big-w b { color: var(--green); }
.page-games .ez-evt.big-l { color: #ff8a93; font-size: .95rem; animation: sk-shake .45s ease; }
.page-games .ez-evt.big-l b { color: #ff8a93; }

.page-games .ez-mfoot { display: flex; justify-content: center; padding-top: 4px; }
.page-games .ez-mfoot .btn { animation: sk-pop .35s ease; }

/* --- goal flourish on the scorer's pitch chip (~1.2s, motion-safe) --- */

.page-games .ez-chip.scored .avatar {
  border-color: var(--gold);
  animation: ez-scored 1.2s ease;
}
.page-games .ez-chip-goal {
  position: absolute; left: 50%; top: -16px; transform: translate(-50%, 0);
  font-size: 1.05rem; z-index: 3; pointer-events: none;
  animation: ez-goalpop 1.2s ease forwards;
}

/* --- per-match list reused on the recap screen --- */

.page-games .sk-80-matches { display: flex; flex-direction: column; gap: 6px; }
.page-games .ez-recap-matches { margin-top: 12px; text-align: left; }
.page-games .sk-80-match {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--line); animation: sk-slide .4s ease;
}
.page-games .sk-80-match.win { border-color: rgba(25, 195, 125, .45); }
.page-games .sk-80-match.out { border-color: rgba(230, 57, 70, .55); background: rgba(230, 57, 70, .07); }
.page-games .sk-80-match-stage {
  width: 150px; flex-shrink: 0; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-faint);
}
.page-games .sk-80-match-opp { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.page-games .sk-80-match-opp .team-label { gap: 6px; min-width: 0; }
.page-games .sk-80-match-str {
  font-size: .68rem; color: var(--text-faint); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}
.page-games .sk-80-match-res { font-weight: 700; white-space: nowrap; }
.page-games .sk-80-match.win .sk-80-match-res { color: var(--green); animation: sk-pop .35s ease; }
.page-games .sk-80-match.out .sk-80-match-res { color: var(--red); animation: sk-shake .45s ease; }

.page-games .sk-80-hint { margin: 12px 0 0; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .page-games .ez-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-games .sk-pg-clues { grid-template-columns: 1fr; }
  .page-games .sk-pg-options { grid-template-columns: 1fr; }
  .page-games .sk-clue-label { width: 78px; }
  .page-games .sk-pk-board { min-width: 0; width: 100%; }
  .page-games .sk-pk-stage { aspect-ratio: 4 / 3; }
  .page-games .sk-pk-keeper { font-size: 1.6rem; }
  .page-games .sk-pk-ball { font-size: 1.3rem; }
  .page-games .ez-pitch { max-width: none; }
  .page-games .ez-chip { width: 52px; }
  .page-games .ez-chip .avatar { width: 36px; height: 36px; font-size: .72rem; }
  .page-games .ez-chip-name { font-size: .56rem; }
  .page-games .ez-chip-rt { font-size: .56rem; padding: 2px 4px; top: -5px; right: -7px; }
  .page-games .ez-chip-hole { width: 36px; height: 36px; font-size: .56rem; }
  .page-games .sk-80-roster { max-height: 290px; }
  .page-games .sk-80-match-stage { width: 96px; }
  .page-games .sk-80-skip { margin-left: 0; width: 100%; }
  .page-games .ez-mscore { font-size: 1.1rem; }
  .page-games .ez-feed { max-height: 200px; }
}

/* ---------- keyframes (sk-/ez- prefixed; defined once, used only here) ---------- */

@keyframes ez-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 77, .45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 201, 77, 0); }
}
@keyframes ez-scored {
  0% { box-shadow: 0 0 0 0 rgba(255, 201, 77, .85); }
  60% { box-shadow: 0 0 0 14px rgba(255, 201, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 201, 77, 0); }
}
@keyframes ez-goalpop {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.5); }
  25% { opacity: 1; transform: translate(-50%, -2px) scale(1.15); }
  75% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  .page-games .ez-chip.scored .avatar { animation: none; }
  .page-games .ez-chip-goal { display: none; }
  .page-games .ez-evt, .page-games .ez-matchbox { animation: none; }
}

@keyframes sk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sk-slide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes sk-pop {
  0% { transform: scale(.85); } 55% { transform: scale(1.08); } 100% { transform: scale(1); }
}
@keyframes sk-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(3px); }
}
@keyframes sk-bob {
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); }
}
@keyframes sk-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes sk-grow { from { width: 0; } }
@keyframes sk-flash {
  0% { opacity: 0; transform: scale(.6); }
  18% { opacity: 1; transform: scale(1.08); }
  30% { transform: scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes sk-zones-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-ball-spin { from { transform: rotate(0); } to { transform: rotate(540deg); } }
