:root {
  color-scheme: dark;
  --bg: #050816;
  --panel: rgb(12 18 38 / 82%);
  --panel-strong: rgb(14 23 54 / 94%);
  --line: rgb(148 163 184 / 24%);
  --text: #f8fafc;
  --muted: #9fb0ce;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --pink: #fb7185;
  --lime: #a3e635;
  --gold: #facc15;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgb(34 211 238 / 30%), transparent 28%),
    radial-gradient(circle at 82% 8%, rgb(139 92 246 / 34%), transparent 26%),
    radial-gradient(circle at 70% 86%, rgb(251 113 133 / 22%), transparent 30%),
    linear-gradient(135deg, #040714 0%, #091022 46%, #111033 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: .92;
  letter-spacing: 0;
  font-weight: 950;
}
h2 { margin-bottom: 12px; font-size: clamp(1.35rem, 2.4vw, 2.05rem); }
p { color: var(--muted); line-height: 1.55; }

button, .button-link {
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #031225;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 24px rgb(34 211 238 / 30%);
}
button:hover, .button-link:hover { filter: brightness(1.08); }
input, select {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgb(2 6 23 / 74%);
  color: var(--text);
  font-size: 1rem;
}
label { display: grid; gap: 8px; color: #dbeafe; font-weight: 800; }
small { color: var(--muted); }
.remember-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}
.remember-row input { width: 20px; height: 20px; padding: 0; }

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(15 23 42 / 82%), rgb(15 23 42 / 62%));
  box-shadow: 0 24px 80px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 10%);
  backdrop-filter: blur(18px);
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hidden { display: none !important; }
.form-message { min-height: 22px; color: var(--pink); font-weight: 850; }

.login-view {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
  padding: 54px 0;
}
.hero-copy h1 {
  text-shadow: 0 0 38px rgb(34 211 238 / 45%), 0 12px 42px rgb(0 0 0 / 55%);
}
.hero-copy p { max-width: 640px; font-size: 1.16rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-stats span, .hero-stats strong {
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(15 23 42 / 70%);
  color: var(--text);
}
.hero-stats strong {
  background: linear-gradient(135deg, var(--gold), #fb7185);
  color: #130b1f;
}
.auth-panel {
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(15 23 42 / 78%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 44%), 0 0 0 1px rgb(34 211 238 / 14%);
}
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.auth-switch button { background: rgb(30 41 59 / 92%); color: var(--text); box-shadow: none; }
.auth-switch button.active { background: linear-gradient(135deg, var(--cyan), var(--lime)); color: #04111d; }
.auth-form { display: none; gap: 13px; }
.auth-form.active { display: grid; }

.admin-pill {
  position: fixed;
  z-index: 30;
  top: 14px;
  right: 14px;
  padding: 9px 12px;
  background: rgb(15 23 42 / 88%);
  color: var(--text);
  box-shadow: none;
}
.admin-dock {
  display: none;
  position: fixed;
  z-index: 40;
  top: 62px;
  right: 14px;
  width: min(320px, calc(100% - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}
.admin-dock.open { display: grid; gap: 10px; }
.admin-arena {
  display: none;
  position: fixed;
  inset: 16px;
  z-index: 50;
  overflow: auto;
  padding: 22px;
  background: linear-gradient(135deg, #061022, #12143a);
}
.admin-arena.open { display: block; }
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.admin-actions-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.admin-layout { display: grid; gap: 16px; }
.admin-layout .glass-panel { padding: 16px; }
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(2 6 23 / 48%);
}
.admin-row.member { grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.4fr) auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-actions input { min-width: 150px; width: 180px; }
.remove-button { background: linear-gradient(135deg, var(--danger), #fb7185); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.stat-box {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(15 23 42 / 74%);
  font-weight: 950;
}
.stat-box span { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }

.hub-view {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: none;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 58px 0 34px;
}
.mobile-dock { display: none; }
body.logged-in .login-view { display: none; }
body.logged-in .hub-view { display: grid; }
.roster-panel, .chat-shell { position: sticky; top: 58px; align-self: start; max-height: calc(100vh - 76px); overflow: auto; padding: 16px; }
.hub-center { display: grid; gap: 16px; align-content: start; }
.hub-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px; }
.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 8px;
  background: rgb(2 6 23 / 45%);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--avatar-color, var(--cyan));
  box-shadow: 0 0 20px color-mix(in srgb, var(--avatar-color, var(--cyan)) 60%, transparent);
  color: #04111d;
  font-size: 1.25rem;
  font-weight: 950;
}
.player-row, .leader-row, .challenge-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(15 23 42 / 70%);
}
.player-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.player-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.shield {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgb(34 211 238 / 16%);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 950;
}
.hub-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hub-tabs button { background: rgb(15 23 42 / 78%); color: var(--text); box-shadow: none; }
.hub-tabs button.active { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #fff; }
.hub-panel { display: none; }
.hub-panel.active { display: block; }
.profile-panel, #hub-battle .glass-panel, #hub-ranking .glass-panel { padding: 16px; }
.profile-form { display: grid; gap: 10px; }
.profile-picks {
  display: grid;
  grid-template-columns: 88px 130px auto;
  gap: 10px;
}
.module-grid, .split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.mode-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(155deg, rgb(34 211 238 / 22%), rgb(139 92 246 / 18)), rgb(15 23 42 / 74%);
}
.mode-card.locked { opacity: .55; filter: grayscale(.25); }
.status-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: var(--muted);
  font-weight: 850;
}
.status-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.leader-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.challenge-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.chat-shell { display: grid; grid-template-rows: auto minmax(320px, calc(100vh - 250px)) auto; gap: 10px; }
.chat-shell select {
  margin-top: 8px;
  background:
    linear-gradient(135deg, rgb(34 211 238 / 18%), rgb(139 92 246 / 16%)),
    rgb(2 6 23 / 82%);
  font-weight: 850;
}
.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 180px;
  padding: 10px;
  border-radius: 8px;
  background: rgb(2 6 23 / 36%);
}
.chat-message {
  width: fit-content;
  max-width: 84%;
  padding: 9px 11px;
  border-radius: 8px 8px 8px 2px;
  background: rgb(30 41 59 / 92%);
  color: var(--text);
  font-weight: 760;
}
.chat-message.mine {
  align-self: flex-end;
  border-radius: 8px 8px 2px 8px;
  background: linear-gradient(135deg, rgb(34 211 238 / 35%), rgb(163 230 53 / 24%));
}
.chat-message small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .74rem; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.chat-form input { min-height: 54px; font-size: 1.05rem; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 0;
}
.focus-panel, .battle-hero { padding: 24px; }
.training-shell {
  overflow: hidden;
  background:
    linear-gradient(140deg, rgb(34 211 238 / 18%), transparent 36%),
    linear-gradient(320deg, rgb(251 113 133 / 16%), transparent 42%),
    rgb(15 23 42 / 76%);
}
.training-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.training-stats span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(2 6 23 / 46%);
  color: var(--muted);
  font-weight: 850;
}
.training-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 1.55rem;
}
.verb-arena {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0;
}
.verb-target {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 20px;
  border: 1px solid rgb(34 211 238 / 34%);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgb(34 211 238 / 22%), transparent 38%),
    linear-gradient(180deg, rgb(15 23 42 / 88%), rgb(2 6 23 / 72%));
  text-align: center;
  box-shadow: inset 0 0 60px rgb(34 211 238 / 10%);
}
.verb-target strong {
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 1;
  text-shadow: 0 0 28px rgb(34 211 238 / 48%);
}
.verb-target small { font-size: 1.05rem; font-weight: 950; color: var(--gold); }
.verb-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.verb-slot {
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: rgb(2 6 23 / 48%);
  color: #dbeafe;
  font-size: .9rem;
  font-weight: 900;
}
.verb-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.verb-shot {
  min-height: 120px;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 2rem);
  background:
    linear-gradient(145deg, rgb(34 211 238 / 24%), rgb(139 92 246 / 22%)),
    rgb(15 23 42 / 86%);
  box-shadow: 0 0 26px rgb(34 211 238 / 18%);
}
.verb-shot.hit {
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: #04111d;
}
.verb-shot.miss {
  background: linear-gradient(135deg, var(--danger), var(--pink));
  color: #fff;
}
.slot-machine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.slot-reel {
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(250 204 21 / 10%), transparent),
    rgb(15 23 42 / 82%);
}
.slot-reel select {
  margin-top: 8px;
  min-height: 68px;
  text-align: center;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 950;
}
.slot-check { grid-column: 1 / -1; min-height: 72px; }
.slot-check.hit {
  background: linear-gradient(135deg, var(--gold), var(--lime));
  color: #04111d;
}
.slot-check.miss {
  background: linear-gradient(135deg, var(--danger), var(--pink));
  color: #fff;
}
.training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.flashcard-lab {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(250 204 21 / 10%), transparent 42%),
    rgb(2 6 23 / 34%);
}
.flashcard-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.box-shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.shelf-box {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(34 211 238 / 12%), rgb(15 23 42 / 76%));
}
.shelf-box strong {
  color: var(--gold);
  font-size: 1.35rem;
}
.shelf-box span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}
.shelf-box.done { background: linear-gradient(135deg, rgb(163 230 53 / 24%), rgb(34 211 238 / 18%)); }
.flashcard-stage {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(240px, 1.15fr);
  gap: 14px;
  align-items: stretch;
}
.flash-card, .flash-result {
  min-height: 270px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: rgb(15 23 42 / 78%);
}
.flash-card {
  display: grid;
  gap: 10px;
  align-content: center;
  text-align: center;
  transition: transform .42s ease, opacity .42s ease;
}
.flash-card strong {
  color: var(--gold);
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  line-height: 1;
}
.flash-card small {
  color: #dbeafe;
  font-size: 1.05rem;
  font-weight: 950;
}
.flash-card input {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 900;
}
.flash-card.fly-right {
  animation: cardToBox .62s ease;
}
.flash-card.fly-back {
  animation: cardBack .62s ease;
}
.flash-result {
  display: grid;
  align-content: center;
  gap: 12px;
}
.flash-result p { font-size: 1.02rem; }
@keyframes cardToBox {
  45% { transform: translateX(34px) translateY(-20px) rotate(4deg); opacity: .72; }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; }
}
@keyframes cardBack {
  45% { transform: translateX(-30px) translateY(16px) rotate(-4deg); opacity: .72; }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; }
}
.battle-ring {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.fighter-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgb(34 211 238 / 22%), rgb(251 113 133 / 18)), rgb(15 23 42 / 74%);
}

@media (max-width: 1050px) {
  .hub-view { grid-template-columns: 1fr; }
  .roster-panel, .chat-shell { position: static; max-height: none; }
}
@media (max-width: 820px) {
  body { min-height: 100svh; }
  .admin-pill { top: 8px; right: 8px; padding: 8px 10px; }
  .admin-dock {
    top: 50px;
    right: 8px;
    width: calc(100% - 16px);
  }
  .admin-arena {
    inset: 0;
    padding: 12px 10px 28px;
    border-radius: 0;
  }
  .admin-arena h1 { font-size: 2.25rem; }
  .admin-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .admin-layout { gap: 10px; }
  .admin-layout .glass-panel { padding: 12px; }
  .admin-row,
  .admin-row.member {
    grid-template-columns: 1fr;
  }
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .admin-actions input {
    width: 100%;
    max-width: none !important;
  }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-box { overflow-wrap: anywhere; }
  .login-view {
    width: min(100% - 20px, 430px);
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 14px;
    padding: 14px 0;
  }
  .hero-copy h1 { font-size: clamp(2.25rem, 14vw, 4rem); margin-bottom: 8px; }
  .hero-copy p { display: none; }
  .hero-stats { margin-top: 10px; gap: 6px; }
  .hero-stats span, .hero-stats strong { padding: 7px 9px; font-size: .82rem; }
  .auth-panel { padding: 14px; }
  .auth-form { gap: 10px; }
  input, select { min-height: 48px; }
  .admin-head, .hub-hero { display: grid; }
  .auth-switch, .hub-tabs, .profile-picks, .verb-arena, .training-stats, .verb-options, .slot-machine, .flashcard-stage { grid-template-columns: 1fr; }
  .slot-check { grid-column: auto; }
  body.logged-in .hub-view {
    display: block;
    width: 100%;
    min-height: 100svh;
    padding: 10px 10px 82px;
  }
  .hub-view > .roster-panel,
  .hub-view > .hub-center,
  .hub-view > .chat-shell {
    display: none;
    position: static;
    max-height: none;
    min-height: calc(100svh - 102px);
    overflow: auto;
  }
  body[data-mobile-screen="team"] .hub-view > .roster-panel,
  body[data-mobile-screen="training"] .hub-view > .hub-center,
  body[data-mobile-screen="battle"] .hub-view > .hub-center,
  body[data-mobile-screen="ranking"] .hub-view > .hub-center,
  body[data-mobile-screen="profile"] .hub-view > .hub-center,
  body[data-mobile-screen="chat"] .hub-view > .chat-shell {
    display: grid;
  }
  .hub-hero {
    padding: 14px;
    margin-bottom: 10px;
  }
  .hub-hero h1 { font-size: 2.15rem; }
  .hub-hero p { display: none; }
  .hub-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 8px;
    background: linear-gradient(180deg, #050816 0%, rgb(5 8 22 / 88%) 78%, transparent);
  }
  .hub-tabs button { padding: 13px 8px; }
  .profile-panel { display: none; }
  body[data-mobile-screen="profile"] .profile-panel { display: block; }
  body[data-mobile-screen="profile"] .hub-hero,
  body[data-mobile-screen="profile"] .hub-tabs,
  body[data-mobile-screen="profile"] .hub-panel { display: none; }
  .module-grid, .split-grid { grid-template-columns: 1fr; gap: 10px; }
  .mode-card { min-height: 142px; padding: 14px; }
  .mode-card p { margin-bottom: 8px; }
  .chat-shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 0;
    padding: 12px;
  }
  .chat-feed { min-height: calc(100svh - 246px); }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form input { min-height: 64px; font-size: 1.1rem; }
  .mobile-dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 7px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 8px;
    background: rgb(2 6 23 / 92%);
    box-shadow: 0 0 32px rgb(34 211 238 / 18%);
    backdrop-filter: blur(16px);
  }
  .mobile-dock button {
    min-height: 46px;
    padding: 6px 4px;
    font-size: .72rem;
    color: var(--text);
    background: rgb(15 23 42 / 88%);
    box-shadow: none;
  }
  .mobile-dock button.active {
    color: #04111d;
    background: linear-gradient(135deg, var(--cyan), var(--lime));
  }
  .page-shell {
    width: 100%;
    min-height: 100svh;
    padding: 10px;
  }
  .focus-panel { padding: 14px; }
  .training-shell h1 { font-size: 2.45rem; margin-bottom: 8px; }
  .training-shell p { margin-bottom: 8px; }
  .training-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
  }
  .training-stats span { padding: 9px 7px; font-size: .8rem; }
  .training-stats strong { font-size: 1.2rem; }
  .verb-arena { gap: 10px; margin: 10px 0; }
  .verb-target { min-height: 188px; padding: 12px; }
  .verb-target strong { font-size: clamp(2.6rem, 17vw, 4.4rem); }
  .verb-target small { font-size: .92rem; }
  .verb-shot { min-height: 82px; font-size: 1.35rem; }
  .training-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .flashcard-lab { padding: 12px; }
  .flashcard-head { display: grid; }
  .box-shelf {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .shelf-box { min-height: 58px; }
  .flash-card, .flash-result {
    min-height: 230px;
    padding: 14px;
  }
}
