.options-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.player-chip { flex-wrap: wrap; }
.player-chip em, .team-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff6cc;
  color: #735c0f;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}
.team-scores { display: grid; gap: 10px; margin: 14px 0; }
.team-score-card { display: grid; gap: 3px; padding: 12px; border-radius: 16px; background: #edf9ff; border: 1px solid var(--line); }
.team-score-card strong { color: var(--brand-dark); }
.team-score-card span { font-weight: 1000; }
.team-score-card small { color: var(--muted); font-weight: 700; }
.podium-card small { color: var(--muted); font-weight: 700; text-align: center; }
.wrap-up strong { display: block; margin-bottom: 8px; color: #0b654d; }
.wrap-up p { margin: 8px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.55); }
.file-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; padding: 14px 18px; cursor: pointer; font-weight: 900; }
.file-button input { display: none; }
.import-export-card { margin: 20px 0; }
code { background: #f6fbff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; }

.arcade-shell { display: grid; gap: 12px; }
.arcade-ready {
  display: grid;
  gap: 14px;
  place-items: center;
  text-align: center;
  min-height: 320px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(145deg, #edf9ff, #ffffff);
  border: 2px solid var(--line);
}
.arcade-ready h3 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.04em;
}
.arcade-ready p { max-width: 720px; color: var(--muted); font-weight: 800; }
.arcade-ready ul {
  display: grid;
  gap: 8px;
  width: min(100%, 620px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.arcade-ready li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6fbff;
  border: 1px solid var(--line);
  font-weight: 800;
}
.arcade-ready button { min-width: 220px; }
.arcade-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #edf9ff;
  border: 1px solid var(--line);
}
.arcade-hud strong { font-size: 1.25rem; color: var(--brand-dark); }
.arcade-hud span { justify-self: center; background: var(--ink); color: white; padding: 6px 12px; border-radius: 999px; font-weight: 1000; }
.arcade-hud em { justify-self: end; color: var(--good); font-style: normal; font-weight: 1000; }
.arcade-board {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #f6fbff, #ffffff);
  border: 2px solid var(--line);
}
.arcade-wait {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 260px;
  padding: 24px;
  border-radius: 24px;
  background: #f6fbff;
  border: 2px solid var(--line);
}
.arcade-wait h3 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 8px; }
.scroll-sprint-board { background: linear-gradient(180deg, #eaf6ff, #ffffff 70%); }
.sprint-word {
  position: absolute;
  top: -52px;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(10, 74, 126, 0.12);
  animation: sprint-fall 2.6s linear forwards;
  margin: 0;
}
.sprint-word.target { border-color: rgba(26, 147, 111, 0.35); }
.sprint-word.decoy { border-color: rgba(232, 93, 117, 0.25); }
.sprint-word.hit-good { animation: arcade-pop 0.22s ease forwards; border-color: var(--good); background: #e9fff7; }
.sprint-word.hit-bad { animation: arcade-shake 0.22s ease forwards; border-color: var(--bad); background: #fff1f4; }
@keyframes sprint-fall { from { transform: translateY(0); } to { transform: translateY(460px); } }
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  align-content: center;
}
.memory-tile {
  min-height: 74px;
  margin: 0;
  border: 2px solid var(--line);
  background: var(--brand);
  color: white;
  border-radius: 18px;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
}
.memory-tile.open, .memory-tile.matched { background: white; color: var(--ink); }
.memory-tile.matched { border-color: var(--good); background: #e9fff7; }
.memory-tile.tile-pop { animation: arcade-pop 0.35s ease; }
.memory-tile.tile-shake { animation: arcade-shake 0.35s ease; border-color: var(--bad); }
.catch-board { background: linear-gradient(180deg, #eef8ff, #fff8dc); }
.catch-lanes {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 5;
}
.catch-lanes button { margin: 0; padding: 10px 8px; background: #e4f2ff; color: var(--brand-dark); }
.catch-fall { position: absolute; inset: 0; }
.catch-item {
  position: absolute;
  top: -52px;
  width: 28%;
  padding: 10px;
  border-radius: 16px;
  background: white;
  border: 2px solid var(--line);
  text-align: center;
  font-weight: 900;
  animation: catch-fall 1.9s linear forwards;
}
.catch-item.target { border-color: rgba(26, 147, 111, 0.4); }
.catch-item.decoy { border-color: rgba(232, 93, 117, 0.3); }
.catch-item.lane-0 { left: 3%; }
.catch-item.lane-1 { left: 36%; }
.catch-item.lane-2 { left: 69%; }
.basket {
  position: absolute;
  bottom: 56px;
  width: 28%;
  text-align: center;
  font-size: 2.6rem;
  transition: left 0.15s ease, transform 0.15s ease;
  z-index: 4;
}
.basket.catch-good { animation: arcade-pop 0.28s ease; filter: drop-shadow(0 0 8px rgba(26, 147, 111, 0.45)); }
.basket.catch-bad { animation: arcade-shake 0.28s ease; filter: drop-shadow(0 0 8px rgba(232, 93, 117, 0.4)); }
.basket.lane-0 { left: 3%; }
.basket.lane-1 { left: 36%; }
.basket.lane-2 { left: 69%; }
.arcade-feedback {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(20, 33, 61, 0.18);
  animation: arcade-float 0.65s ease forwards;
}
.arcade-feedback.good { background: var(--good); }
.arcade-feedback.bad { background: var(--bad); }
@keyframes catch-fall { from { transform: translateY(0); } to { transform: translateY(360px); } }
@keyframes arcade-pop { 0% { transform: scale(1); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes arcade-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes arcade-float { from { opacity: 1; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 0; transform: translate(-50%, -120%) scale(1.08); } }

@media (max-width: 900px) { .options-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .options-grid-four { grid-template-columns: 1fr; }
  .arcade-hud { grid-template-columns: 1fr; text-align: center; }
  .arcade-hud em, .arcade-hud span { justify-self: center; }
  .arcade-board { min-height: 330px; }
  .memory-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-tile { min-height: 58px; }
}
