:root {
  --sky-top: #89f7fe;
  --sky-bottom: #66a6ff;
  --cream: #fff8e7;
  --ink: #1b1464;
  --muted: #4a4580;
  --pink: #ff6b9d;
  --orange: #ffa502;
  --yellow: #ffd54f;
  --green: #2ed573;
  --blue: #1e90ff;
  --purple: #7c4dff;
  --shadow: 0 12px 30px rgba(27, 20, 100, .18);
  --radius: 22px;
  --header-h: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", "Comic Sans MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, #c2e9fb 38%, var(--cream) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, canvas { max-width: 100%; }
a { color: #4c1d95; }
.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 12px; z-index: 80; background: #fff; padding: .6rem 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cloud {
  position: absolute; background: #fff; border-radius: 40px; opacity: .75;
  animation: drift 28s linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cloud.c1 { width: 140px; height: 46px; top: 90px; left: -160px; animation-duration: 36s; }
.cloud.c1::before { width: 60px; height: 60px; top: -28px; left: 18px; }
.cloud.c1::after { width: 80px; height: 80px; top: -40px; left: 50px; }
.cloud.c2 { width: 110px; height: 38px; top: 180px; left: -200px; animation-duration: 44s; animation-delay: -12s; }
.cloud.c2::before { width: 50px; height: 50px; top: -22px; left: 14px; }
.cloud.c2::after { width: 64px; height: 64px; top: -32px; left: 40px; }
.cloud.c3 { width: 160px; height: 50px; top: 40px; left: -180px; animation-duration: 50s; animation-delay: -20s; opacity: .55; }
.cloud.c3::before { width: 70px; height: 70px; top: -32px; left: 22px; }
.cloud.c3::after { width: 90px; height: 90px; top: -46px; left: 58px; }
.float-star {
  position: absolute; color: #ffe066; font-size: 1.4rem;
  animation: twinkle 2.8s ease-in-out infinite;
  text-shadow: 0 0 8px #fff;
}
.s1 { top: 16%; left: 8%; }
.s2 { top: 28%; right: 12%; animation-delay: .6s; }
.s3 { top: 12%; right: 28%; animation-delay: 1.2s; font-size: 1rem; }
.s4 { top: 36%; left: 22%; animation-delay: 1.8s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: .7; }
  50% { transform: scale(1.25) rotate(12deg); opacity: 1; }
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid #ffd54f;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; position: relative; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-logo { width: 52px; height: 52px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word strong { font-size: 1.25rem; }
.brand-word small { color: var(--muted); font-size: .78rem; }
.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--yellow); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; top: 50%;
  display: block; height: 3px; margin: 0; background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-8px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(8px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
.main-nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.main-nav a, .nav-user {
  text-decoration: none; color: var(--ink); font-weight: 700;
  padding: .45rem .8rem; border-radius: 999px;
}
.main-nav a:hover, .main-nav a.is-active { background: #ffeaa7; }
.nav-cta { background: var(--pink) !important; color: #fff !important; }
.nav-user { background: #dfe6ff; }
.nav-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  margin-left: .15rem;
}
.nav-logout {
  padding: .15rem .8rem .35rem !important;
  font-size: .82rem !important;
  font-weight: 700;
  color: var(--muted) !important;
  background: transparent !important;
  line-height: 1.1;
}
.nav-logout:hover {
  color: var(--ink) !important;
  background: #ffeaa7 !important;
}
.nav-msg {
  position: relative;
  padding-right: 1.15rem;
  display: inline-flex;
  align-items: center;
  transform-origin: center center;
}
.nav-msg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .28rem; margin-left: .2rem;
  border-radius: 999px; background: var(--pink); color: #fff; font-size: .7rem;
  transform-origin: center center;
}
.nav-msg-badge[hidden] { display: none !important; }
.nav-msg.is-pop { animation: nav-msg-pop .8s ease; }
.nav-msg-badge.is-pop { animation: nav-badge-pop .8s ease; }
.nav-toggle.is-pop { animation: nav-badge-pop .8s ease; }
@keyframes nav-msg-pop {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.16); }
  58% { transform: scale(.94); }
}
@keyframes nav-badge-pop {
  0%, 100% { transform: scale(1); }
  28% { transform: scale(1.7); }
  58% { transform: scale(.88); }
}
.podium-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border-radius: 999px;
  padding: .35rem .85rem .35rem .35rem;
  box-shadow: var(--shadow);
  border: 3px solid #ffd54f;
  transform: translate(-50%, 0) scale(.45);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.podium-toast.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  animation: toastPop .55s cubic-bezier(.2, 1.45, .35, 1) both;
}
.podium-toast-star {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff7c2, #ffb300);
  color: #c2410c; font-size: 1.35rem;
  animation: medalPop .8s ease-in-out 1;
}
.podium-toast-body { display: flex; flex-direction: column; line-height: 1.15; }
.podium-toast-place { color: var(--purple); font-size: .78rem; }
.podium-toast-name { font-weight: 800; }
.podium-toast.is-like { border-color: #ff80ab; white-space: normal; max-width: min(520px, calc(100% - 2rem)); }
.podium-toast.is-like .podium-toast-star {
  background: radial-gradient(circle at 35% 30%, #ffe4ec, #ff6b9d);
  color: #fff;
}
.podium-toast.is-like .podium-toast-place { color: #c2185b; }
@keyframes toastPop {
  0% { transform: translate(-50%, -12px) scale(.4) rotate(-8deg); opacity: 0; }
  60% { transform: translate(-50%, 0) scale(1.06) rotate(3deg); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1) rotate(0); opacity: 1; }
}

main { position: relative; z-index: 1; }

.hero { padding: 2.2rem 0 3.4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-block; background: #fff; border-radius: 999px; padding: .25rem .8rem;
  font-weight: 800; color: var(--purple); box-shadow: var(--shadow);
}
.hero h1, h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; margin: .6rem 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.rainbow-text {
  background: linear-gradient(90deg, #ff6b6b, #ffa502, #2ed573, #1e90ff, #a55eea);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 6s linear infinite;
}
@keyframes hue { to { filter: hue-rotate(360deg); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .85rem 1.4rem; font-weight: 800;
  cursor: pointer; text-decoration: none; font-size: 1rem; font-family: inherit;
  box-shadow: 0 8px 0 rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn-primary { background: linear-gradient(180deg, #ffd54f, #ff9f1a); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-warn { background: linear-gradient(180deg, #ffe082, #ffb300); color: var(--ink); }
.btn-success { background: linear-gradient(180deg, #69f0ae, #00c853); color: #083b1f; }
.btn-danger { background: linear-gradient(180deg, #ff8a80, #e53935); color: #fff; }
.btn-small { padding: .4rem .8rem; font-size: .85rem; box-shadow: 0 4px 0 rgba(0,0,0,.1); }
.btn-xl { font-size: 1.15rem; padding: 1rem 1.7rem; }
.btn-block { width: 100%; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.bounce-in { animation: pop .7s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.hero-mascot { text-align: center; position: relative; }
.mascot { width: min(280px, 70vw); height: auto; filter: drop-shadow(0 18px 0 rgba(27,20,100,.12)); }
.floaty { animation: floaty 3.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.speech-bubble {
  display: inline-block; margin-top: .4rem; background: #fff; border-radius: 18px;
  padding: .5rem 1rem; font-weight: 800; box-shadow: var(--shadow);
  animation: wiggle 2.6s ease-in-out infinite;
}
@keyframes wiggle { 40% { transform: rotate(-2deg); } 70% { transform: rotate(2deg); } }

.news-band { background: #7c4dff; color: #fff; padding: .85rem 0; margin-top: 1.6rem; }
.news-band .container { display: flex; gap: .8rem; align-items: center; }
.news-label { background: #ffd54f; color: var(--ink); padding: .15rem .6rem; border-radius: 999px; font-weight: 800; }
.news-band p { margin: 0; }

.section { padding: 2.4rem 0 3rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 1.6rem; }
.feature-grid, .grade-grid, .level-map { display: grid; gap: 1rem; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .grade-card, .level-card, .auth-card, .admin-card, .contact-card, .legal-content {
  background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow);
}
.feature-card {
  text-align: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.feature-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.15rem;
  line-height: 1.25;
}
.feature-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  max-width: 28ch;
}
.feature-ico {
  flex: 0 0 auto;
  font-size: 2rem; display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto .7rem;
  background: #fff8e7; border-radius: 18px;
}
.feature-card.c1 { border-top: 8px solid #ff6b6b; }
.feature-card.c2 { border-top: 8px solid #ffa502; }
.feature-card.c3 { border-top: 8px solid #2ed573; }
.feature-card.c4 { border-top: 8px solid #1e90ff; }
.feature-card.c5 { border-top: 8px solid #7c4dff; }
.feature-card.c6 { border-top: 8px solid #ff6b9d; }

.grade-grid { grid-template-columns: repeat(5, 1fr); }
.subjects-section { padding-top: 1.2rem; }
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.subject-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 4px solid var(--g);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .45rem;
  min-height: 210px;
  transition: transform .2s;
}
.subject-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.subject-emoji { font-size: 2.4rem; line-height: 1; }
.subject-card strong { font-size: 1.35rem; }
.subject-card small { color: var(--muted); font-weight: 700; max-width: 16rem; }
.subject-stars, .subject-cta {
  margin-top: auto;
  font-weight: 900;
  color: var(--g);
}
.subject-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin: .85rem 0 .35rem;
}
.subject-chip {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--g) 55%, #dfe6ff);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-weight: 800;
  font-size: .92rem;
  box-shadow: var(--shadow);
}
.subject-chip.is-active {
  background: var(--g);
  color: #fff;
  border-color: var(--g);
}
.grade-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .85rem;
  margin: 0 0 .85rem;
}
.grade-band-label {
  font-weight: 800;
  font-size: .92rem;
  color: var(--muted);
  min-width: 7.5rem;
}
.grade-band .chip { min-width: 2.4rem; justify-content: center; }
.grade-card {
  text-decoration: none; color: inherit; text-align: center;
  border: 4px solid var(--g); min-height: 168px;
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  transition: transform .2s;
  position: relative;
  padding-top: 1.35rem;
}
.grade-tag {
  position: absolute;
  top: .45rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
  background: color-mix(in srgb, #fff 82%, var(--g));
  border-radius: 999px;
  padding: .15rem .55rem;
  white-space: nowrap;
}
.grade-card:hover { transform: translateY(-6px) rotate(-1deg); }
.grade-num {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  background: var(--g); color: #fff; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 900;
}

.page-hero { padding: 1.6rem 0 .4rem; text-align: center; }
.play-page .grade-hero { padding-bottom: 1.6rem; }
.grade-hero { background: color-mix(in srgb, var(--g) 22%, transparent); }
.grade-switch { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin-top: 1rem; margin-bottom: .4rem; }
.grade-hero .btn { margin-top: .35rem; }
.chip {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: var(--shadow);
}
button.chip {
  border: 0; cursor: pointer; font: inherit; padding: 0;
}
.chip.is-active { background: var(--ink); color: #fff; }

.level-map-section { padding-top: 4rem; padding-bottom: 3rem; }
.level-map { grid-template-columns: repeat(4, 1fr); }
.level-card {
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .2rem;
  border: 3px solid #ffeaa7; min-height: 180px; position: relative;
}
.level-card:hover { transform: translateY(-4px); }
.level-card.is-done { border-color: #2ed573; background: #f3fff6; }
.level-card.is-locked { opacity: .55; pointer-events: none; filter: grayscale(.3); }
.level-emoji { font-size: 1.8rem; }
.level-no { font-size: .8rem; font-weight: 800; color: var(--purple); }
.star-row { letter-spacing: .15rem; margin-top: auto; }
.star { color: #dfe6e9; font-size: 1.2rem; }
.star.is-on { color: #ffc107; text-shadow: 0 0 8px #ffeaa7; }
.lock { font-size: .8rem; color: var(--muted); }

.auth-section { padding: 2rem 0 3rem; }
.auth-card { max-width: 520px; margin: 0 auto; }
.auth-mascot { text-align: center; }
.auth-mascot .mascot { width: 120px; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 800; margin-bottom: .35rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 14px; border: 3px solid #dfe6ff;
  font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); }
.form-check { margin: .4rem 0 1rem; }
.form-check label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 700; cursor: pointer; }
.form-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: #7c4dff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-hint { color: var(--muted); }
.combo-wrap { position: relative; z-index: 1; }
.combo-wrap.is-open { z-index: 6; }
.combo-wrap .combo-input { padding-right: 2.8rem; }
.combo-input[readonly] { background: #fff; cursor: pointer; caret-color: transparent; }
.combo-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; background: transparent;
  font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--purple);
  z-index: 2; touch-action: manipulation;
}
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 8; margin: 0; padding: .35rem;
  list-style: none; background: #fff;
  border: 3px solid var(--purple); border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: min(52vh, 280px); overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.combo-list li { margin: 0; padding: 0; }
.combo-option {
  display: block; width: 100%; text-align: left;
  padding: .9rem 1rem; border: 0; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; font-weight: 800;
  min-height: 48px; cursor: pointer; touch-action: manipulation;
}
.combo-option:active,
.combo-option:hover,
.combo-option.is-on { background: #efe7ff; }
.combo-list .combo-empty {
  color: var(--muted); cursor: default; font-weight: 700;
  padding: .9rem 1rem;
}
.combo-sheet {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(27, 20, 100, .45);
  padding: 0;
}
.combo-sheet[hidden] { display: none !important; }
.combo-sheet-panel {
  width: 100%; max-width: 560px;
  max-height: min(82dvh, 620px);
  background: #fff; color: var(--ink);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  padding: .85rem .85rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.combo-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; margin-bottom: .65rem;
}
.combo-sheet-title { font-size: 1.15rem; }
.combo-sheet-close {
  width: 44px; height: 44px; border: 0; border-radius: 14px;
  background: #efe7ff; color: var(--ink); font-size: 1.4rem;
  cursor: pointer; touch-action: manipulation;
}
.combo-sheet-filter {
  width: 100%; margin: 0 0 .65rem; padding: .75rem .9rem;
  border-radius: 14px; border: 3px solid #dfe6ff; font: inherit; background: #fff;
}
.combo-sheet-list {
  list-style: none; margin: 0; padding: 0; overflow: auto;
  flex: 1 1 auto; min-height: 120px; -webkit-overflow-scrolling: touch;
}
.combo-sheet-list .combo-option { padding: 1rem; font-size: 1.05rem; }
.combo-sheet-use { margin-top: .7rem; }
body.combo-sheet-open .music-toggle { visibility: hidden; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert {
  border-radius: 16px; padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 700;
}
.alert-error { background: #ffe3e3; color: #c0392b; }
.alert-success { background: #d4f8e8; color: #0b7a45; }
.alert-info { background: #e8f4ff; color: #1b1464; }

.game-shell { width: min(860px, calc(100% - 1.4rem)); margin: 1rem auto 3rem; }
.game-top { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.back-link { font-weight: 800; text-decoration: none; }
.game-meta { text-align: center; }
.pill { display: inline-block; background: var(--g, var(--purple)); color: #fff; border-radius: 999px; padding: .1rem .7rem; font-size: .8rem; font-weight: 800; }
.sound-toggle { border: 0; background: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); }
.progress-track { height: 14px; background: #fff; border-radius: 999px; margin: 1rem 0; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,.08); }
#progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff6b6b, #ffd54f, #2ed573); transition: width .4s ease; }
.game-stage {
  background: #fff; border-radius: 28px; padding: 1.4rem; min-height: 360px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.game-stage-wrap {
  position: relative;
}
.game-stage-wrap.has-math-notepad {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.game-stage-wrap.has-math-notepad .game-stage {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  min-height: 320px;
  padding-bottom: 4.2rem;
}
.exercise-card { animation: slideUp .35s ease; position: relative; z-index: 1; padding-right: 4.5rem; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } }
.instruction { font-weight: 800; color: var(--purple); margin-bottom: .4rem; }
.prompt { font-size: 1.4rem; margin: .4rem 0 1rem; }
.choice-grid { display: grid; gap: .7rem; }
.choice-btn, .word-chip, .drop-slot, .drag-item {
  border: 3px solid #dfe6ff; background: #f8f6ff; border-radius: 16px;
  padding: .85rem 1rem; font: inherit; font-weight: 800; cursor: pointer; color: inherit;
  appearance: none; -webkit-appearance: none;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
@media (hover: hover) {
  .choice-btn:hover, .word-chip:hover, .drag-item:hover { border-color: var(--purple); transform: translateY(-2px); }
}
.choice-btn.is-correct, .drop-slot.is-correct { background: #d4f8e8; border-color: #2ed573; }
.choice-btn.is-wrong, .game-stage.is-wrong { animation: shake .45s; }
.choice-btn.is-wrong { background: #ffe3e3; border-color: #ff6b6b; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.order-board { display: flex; flex-wrap: wrap; gap: .6rem; min-height: 64px; }
.drag-board { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.drop-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.drop-slot {
  width: 100%; text-align: left; min-height: 58px; background: #fffef4; border-style: dashed;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.drop-slot.is-aim {
  border-color: var(--orange); background: #fff8d6;
  box-shadow: 0 0 0 3px rgba(255, 165, 2, .28);
}
.drop-target {
  min-width: min(48%, 11rem); text-align: center; border-radius: 12px;
  padding: .4rem .7rem; background: rgba(255,255,255,.75);
}
.drop-target[data-empty="1"] { color: var(--muted); font-weight: 700; font-size: .95rem; border: 2px dashed #dfe6ff; }
.drop-target:not([data-empty="1"]) { background: #ffeaa7; color: var(--ink); }
.drag-pool { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.drag-item { background: #ffeaa7; flex: 1 1 140px; text-align: center; }
.drag-item.is-placed { opacity: .38; }
.drag-item.is-selected {
  border-color: var(--purple); background: #efe7ff;
  box-shadow: 0 0 0 4px rgba(124, 77, 255, .28);
  transform: scale(1.04);
}
.speak-btn { margin-left: .4rem; border: 0; background: #dfe6ff; border-radius: 999px; padding: .2rem .6rem; cursor: pointer; font-weight: 800; }
.feedback {
  margin-top: 1rem; padding: 1rem; border-radius: 18px; font-size: 1.2rem; font-weight: 800; text-align: center;
}
.feedback.good { background: #d4f8e8; color: #0b7a45; animation: pop .4s; }
.feedback.bad { background: #ffe3e3; color: #c0392b; }
.math-notepad-toggle {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 6;
  border: 0;
  border-radius: 999px;
  padding: .65rem .95rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1e90ff, #3742fa);
  box-shadow: 0 6px 16px rgba(30, 144, 255, .28);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.math-notepad-toggle:hover { transform: translateY(-2px); }
.math-notepad-toggle.is-open { background: linear-gradient(135deg, #57606f, #2f3542); }
.math-notepad {
  position: relative;
  z-index: 5;
  margin: 0 1.1rem 3.6rem;
  background: #fffef8;
  border: 3px solid #1e90ff;
  border-radius: 18px;
  box-shadow: none;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  max-height: none;
}
.math-notepad[hidden] { display: none !important; }
.math-notepad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.math-notepad-bar strong { color: #1b1464; font-size: 1rem; }
.math-notepad-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.math-notepad-btn {
  border: 0;
  border-radius: 999px;
  padding: .35rem .75rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  background: #dfe6ff;
  color: #1b1464;
}
.math-notepad-btn:hover { background: #c7d2fe; }
.math-notepad-hint {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
}
#math-notepad-canvas {
  width: 100%;
  height: 280px;
  min-height: 220px;
  touch-action: none;
  border-radius: 12px;
  background:
    linear-gradient(transparent 23px, rgba(30, 144, 255, .12) 24px),
    linear-gradient(90deg, transparent 23px, rgba(30, 144, 255, .08) 24px),
    #fff;
  background-size: 24px 24px;
  border: 2px dashed #a5b4fc;
  cursor: crosshair;
  display: block;
}
@media (max-width: 640px) {
  .game-stage-wrap.has-math-notepad .game-stage { padding-bottom: 4.4rem; }
  .math-notepad { margin: 0 .85rem 3.8rem; }
  #math-notepad-canvas { height: 240px; }
  .math-notepad-toggle { right: .85rem; bottom: .85rem; }
}

.mascot-react { position: absolute; right: 12px; top: 12px; width: 72px; height: 78px; transition: transform .3s; z-index: 2; }
.mascot-react svg { width: 72px; height: auto; display: block; }
.mascot-react.is-happy { transform: scale(1.15) rotate(-8deg); }
.mascot-react.is-sad { transform: rotate(12deg); }
.win-screen { text-align: center; padding: 1.5rem .5rem; }
.win-stars { font-size: 3rem; letter-spacing: .3rem; animation: pop .6s; }
.confetti-layer { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.confetti { position: absolute; width: 10px; height: 16px; top: -20px; animation: fall 1.2s linear forwards; }
@keyframes fall { to { transform: translateY(420px) rotate(280deg); opacity: 0; } }

.vocab-hero .lead { margin-bottom: 0; }
.vocab-section { padding-top: .4rem; }
.vocab-badge-wrap { text-align: center; margin-bottom: 1.2rem; }
.vocab-badge {
  display: inline-block; background: linear-gradient(180deg, #ffeaa7, #ffd54f);
  color: var(--ink); font-weight: 800; padding: .35rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow);
}
.vocab-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem;
  margin-bottom: 1.2rem;
}
.vocab-stat {
  background: #fff; border-radius: 18px; padding: .85rem .6rem; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem;
}
.vocab-stat-ico { font-size: 1.2rem; }
.vocab-stat strong { font-size: 1.35rem; line-height: 1.1; }
.vocab-stat small { color: var(--muted); font-weight: 700; }
.vocab-star-meter {
  grid-column: 1 / -1; background: #fff; border-radius: 18px; padding: .85rem 1rem;
  box-shadow: var(--shadow);
}
.vocab-star-meter span { font-weight: 800; }
.vocab-star-track { margin: .45rem 0 .25rem; }
.vocab-star-track span {
  display: block; height: 100%; background: linear-gradient(90deg, #ffd54f, #ff9f1a, #2ed573);
  width: 0; transition: width .4s ease;
}
.vocab-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; margin-bottom: 1rem; }
.vocab-card {
  background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow);
}
.vocab-card h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.vocab-import {
  margin-top: 1.15rem; padding-top: 1rem;
  border-top: 2px dashed #dfe6ff;
}
.vocab-import .form-hint { margin-bottom: .35rem; }
.vocab-grade-switch {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .55rem;
  margin-bottom: .85rem;
}
.vocab-grade-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
}
.vocab-grade-band-label {
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
}
.vocab-grade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.vocab-grade-switch .chip {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 2px solid #dfe6ff;
  font: inherit;
}
.vocab-grade-switch .chip.is-active {
  border-color: var(--ink);
}
@media (max-width: 640px) {
  .vocab-grade-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .vocab-grade-band-label {
    min-width: 0;
  }
}
.vocab-quiz-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.vocab-stage { min-height: 280px; margin-top: .4rem; }
.vocab-idle { text-align: center; padding: 1.5rem .5rem; position: relative; z-index: 1; }
.vocab-idle p { font-weight: 800; color: var(--muted); }
.vocab-list { display: flex; flex-direction: column; gap: .55rem; }
.vocab-row {
  display: flex; justify-content: space-between; gap: .8rem; align-items: center;
  background: #f8f6ff; border: 2px solid #dfe6ff; border-radius: 16px; padding: .7rem .85rem;
  flex-wrap: wrap;
}
.vocab-row-words { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 800; }
.vocab-row-words em { font-style: normal; color: var(--purple); }
.vocab-row-meta { display: flex; align-items: center; gap: .55rem; }
.vocab-strength {
  display: inline-block; width: 72px; height: 10px; background: #e8e4ff; border-radius: 999px; overflow: hidden;
}
.vocab-strength i { display: block; height: 100%; background: linear-gradient(90deg, #7c4dff, #2ed573); }
.vocab-pill {
  display: inline-flex; border-radius: 999px; padding: .1rem .5rem; font-size: .75rem; font-weight: 800;
}
.vocab-pill.is-ok { background: #d4f8e8; color: #0b7a45; }

.podium-section .section-head a,
.highscore-page .section-head a,
.highscore-you {
  text-decoration: none;
  font-weight: 800;
}
.highscore-you {
  display: inline-block;
  margin: .6rem 0 0;
  background: #fff;
  border-radius: 999px;
  padding: .35rem .9rem;
  box-shadow: var(--shadow);
}
.podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-areas: "p2 p1 p3";
  align-items: end;
  gap: .7rem;
  max-width: 780px;
  margin: 0 auto;
}
.podium-n1 {
  grid-template-columns: minmax(180px, 280px);
  grid-template-areas: "p1";
  justify-content: center;
}
.podium-n2 {
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas: "p2 p1";
  max-width: 520px;
}
.podium-place {
  text-align: center;
  position: relative;
  animation: podiumIn .7s cubic-bezier(.2, 1.3, .4, 1) both;
}
.podium-place.p1 { grid-area: p1; animation-delay: .08s; }
.podium-place.p2 { grid-area: p2; animation-delay: .2s; }
.podium-place.p3 { grid-area: p3; animation-delay: .32s; }
.podium-crown {
  min-height: 1.5rem;
  font-size: 1.7rem;
  line-height: 1;
}
.p1 .podium-crown { animation: floaty 2.4s ease-in-out infinite; }
.podium-medal { font-size: 2rem; line-height: 1; margin-bottom: .25rem; }
.p1 .podium-medal { animation: medalPop 1.6s ease-in-out infinite; }
.podium-name {
  display: block;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  margin: .15rem 0 .1rem;
}
.podium-stars {
  display: block;
  font-weight: 800;
  color: #c2410c;
  margin-bottom: .45rem;
}
.podium-block {
  border-radius: 18px 18px 10px 10px;
  color: #fff;
  font-weight: 900;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.p1 .podium-block {
  height: 148px;
  background: linear-gradient(180deg, #ffe566, #ffb300);
  color: var(--ink);
}
.p2 .podium-block {
  height: 108px;
  background: linear-gradient(180deg, #eceff4, #9aa5b1);
  color: #1b1464;
}
.p3 .podium-block {
  height: 86px;
  background: linear-gradient(180deg, #f8d2a8, #d48b3c);
}
.p1 .podium-block::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: shine 2.8s ease-in-out infinite;
}
.podium-place.is-me .podium-name { color: var(--purple); }
.podium-place.p1::before,
.podium-place.p1::after {
  content: "✦";
  position: absolute;
  top: 1.2rem;
  color: #ffd54f;
  animation: twinkle 1.6s ease-in-out infinite;
  text-shadow: 0 0 8px #fff;
  pointer-events: none;
}
.podium-place.p1::before { left: .2rem; }
.podium-place.p1::after { right: .2rem; animation-delay: .5s; }
@keyframes podiumIn {
  from { opacity: 0; transform: translateY(28px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes medalPop {
  0%, 100% { transform: scale(1) rotate(-6deg); }
  50% { transform: scale(1.12) rotate(6deg); }
}
@keyframes shine {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}

.highscore-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.highscore-card h2 { margin: 0 0 .8rem; }
.highscore-list { list-style: none; padding: 0; margin: 0; }
.highscore-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto auto;
  gap: .6rem;
  align-items: center;
  padding: .7rem .8rem;
  border-radius: 14px;
  border-bottom: 1px solid #eef0ff;
}
.highscore-row.is-top { background: #fff8e1; border-bottom-color: transparent; margin-bottom: .35rem; }
.highscore-row.is-me {
  box-shadow: none;
  background:
    linear-gradient(rgba(124, 77, 255, .38), rgba(124, 77, 255, .38)) top / 100% 2px no-repeat,
    linear-gradient(rgba(124, 77, 255, .38), rgba(124, 77, 255, .38)) bottom / 100% 2px no-repeat,
    #f3eeff;
}
.highscore-rank { font-weight: 900; font-size: 1.15rem; }
.highscore-name { font-weight: 800; overflow-wrap: anywhere; }
.highscore-school { display: block; font-weight: 700; font-size: .78rem; color: var(--muted); }
.like-btn {
  display: inline-flex; align-items: center; gap: .28rem;
  border: 0; background: #ffe4ec; color: #c2185b; border-radius: 999px;
  padding: .2rem .55rem; font: inherit; font-weight: 800; font-size: .85rem;
  cursor: pointer; box-shadow: none;
}
.like-btn.is-on { background: #ff6b9d; color: #fff; }
.like-btn.is-static { cursor: default; background: #f3e8ff; color: #7c4dff; }
.like-btn:hover { transform: none; }
.podium-place .like-btn { margin: 0 auto .45rem; }
.highscore-name small { color: var(--purple); }
.highscore-meta { color: var(--muted); font-weight: 700; font-size: .85rem; }
.highscore-stars { font-weight: 900; color: #c2410c; white-space: nowrap; }
.highscore-user, .podium-name a { text-decoration: none; color: inherit; font-weight: 800; }
.highscore-user:hover, .podium-name a:hover { color: var(--purple); }
.highscore-table-wrap { overflow-x: auto; width: 100%; }
.highscore-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 .45rem;
}
.highscore-table th {
  text-align: left;
  font-size: .82rem;
  color: var(--muted);
  padding: .2rem .7rem;
}
.highscore-table td {
  background: #f8f6ff;
  padding: .7rem .75rem;
  font-weight: 700;
  vertical-align: middle;
}
.highscore-table th:nth-child(1),
.highscore-table td:nth-child(1),
.highscore-rank { width: 3.6rem; white-space: nowrap; }
.highscore-table th:nth-child(2),
.highscore-table td:nth-child(2),
.highscore-who { overflow-wrap: anywhere; }
.highscore-table.has-place th:nth-child(3),
.highscore-table.has-place td:nth-child(3),
.highscore-class { width: 6.2rem; white-space: nowrap; }
.highscore-table.has-place th:nth-child(4),
.highscore-table.has-place td:nth-child(4),
.highscore-table:not(.has-place) th:nth-child(3),
.highscore-table:not(.has-place) td:nth-child(3) { width: 5.4rem; white-space: nowrap; }
.highscore-table.has-place th:nth-child(5),
.highscore-table.has-place td:nth-child(5),
.highscore-table:not(.has-place) th:nth-child(4),
.highscore-table:not(.has-place) td:nth-child(4),
.highscore-likes { width: 5rem; white-space: nowrap; }
.highscore-table.has-place th:nth-child(6),
.highscore-table.has-place td:nth-child(6),
.highscore-table:not(.has-place) th:nth-child(5),
.highscore-table:not(.has-place) td:nth-child(5),
.highscore-go { width: 8rem; text-align: right; white-space: nowrap; }
.highscore-table td:first-child { border-radius: 14px 0 0 14px; }
.highscore-table td:last-child { border-radius: 0 14px 14px 0; }
.highscore-table tr.is-me td {
  box-shadow: none;
  background:
    linear-gradient(rgba(124, 77, 255, .38), rgba(124, 77, 255, .38)) top / 100% 2px no-repeat,
    linear-gradient(rgba(124, 77, 255, .38), rgba(124, 77, 255, .38)) bottom / 100% 2px no-repeat,
    #f3eeff;
}
.highscore-msg {
  display: inline-flex; text-decoration: none; font-weight: 800; font-size: .82rem;
  background: #ffeaa7; color: var(--ink); border-radius: 999px; padding: .25rem .65rem;
}
.chat-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  min-height: 520px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-list-pane {
  border-right: 3px solid #eef0ff;
  padding: 1rem .85rem 1.1rem;
  background: #fbfaff;
}
.chat-list-pane h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.chat-people-search {
  margin: .2rem 0 .45rem;
  padding: .55rem .75rem;
  font-size: .92rem;
  appearance: none;
  -webkit-appearance: none;
}
.chat-people-search::-webkit-search-cancel-button { cursor: pointer; }
.chat-list-pane .form-hint { margin: 0 0 .15rem; }
.chat-people { display: flex; flex-direction: column; gap: .4rem; margin-top: .55rem; max-height: 440px; overflow: auto; }
.chat-person {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  width: 100%; border: 0; background: #fff; border-radius: 14px; padding: .65rem .7rem;
  text-align: left; cursor: pointer; font: inherit; box-shadow: 0 1px 0 #ecebff;
}
.chat-person small { color: var(--muted); max-width: 100%; }
.chat-person-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.chat-person-place {
  font-size: .75rem; line-height: 1.25; font-weight: 400;
  color: var(--muted); white-space: normal; overflow-wrap: anywhere;
}
.chat-person.is-active { background: #ffeaa7; }
.chat-person-name { display: flex; align-items: center; gap: .4rem; font-weight: 800; width: 100%; }
.chat-unread {
  margin-left: auto; min-width: 1.2rem; height: 1.2rem; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: .7rem; display: grid; place-items: center;
}
.chat-thread-pane { display: flex; flex-direction: column; min-width: 0; }
.chat-thread-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem; border-bottom: 3px solid #eef0ff;
}
.chat-thread-head .form-hint { margin: .15rem 0 0; }
.chat-back {
  border: 0; background: #dfe6ff; border-radius: 999px; padding: .4rem .75rem;
  font: inherit; font-weight: 800; cursor: pointer;
}
.chat-log {
  flex: 1; overflow: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .45rem; min-height: 280px;
  background: linear-gradient(180deg, #fff, #f6f4ff);
}
.chat-bubble {
  max-width: min(78%, 420px); background: #eef0ff; border-radius: 16px 16px 16px 6px;
  padding: .55rem .75rem; font-weight: 700;
}
.chat-bubble.is-mine {
  margin-left: auto; background: #ffeaa7; border-radius: 16px 16px 6px 16px;
}
.chat-bubble.is-like {
  margin: .15rem auto;
  max-width: min(92%, 460px);
  background: #ffe4ec;
  color: #c2185b;
  border-radius: 999px;
  text-align: center;
}
.chat-bubble p { margin: 0; overflow-wrap: anywhere; }
.chat-form {
  display: flex; flex-direction: column; gap: .55rem; padding: .75rem;
  border-top: 3px solid #eef0ff; background: #fff;
}
.chat-compose { display: flex; gap: .5rem; }
.chat-compose input { margin: 0; }
.chat-compose .btn { flex: none; box-shadow: none; }
.chat-icons {
  display: flex; flex-wrap: wrap; gap: .3rem;
}
.chat-icon {
  width: 2.35rem; height: 2.35rem; border: 0; border-radius: 12px;
  background: #f3f0ff; font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; touch-action: manipulation;
}
.chat-icon:hover, .chat-icon:focus { background: #ffeaa7; }
.chat-empty-hint { padding: 0 1rem 1rem; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; }

.contact-layout { align-items: stretch; }
.contact-aside, .contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-aside {
  border-top: 8px solid var(--purple);
  display: flex;
  flex-direction: column;
}
.contact-aside h2,
.contact-form-card h2 {
  margin: .4rem 0 .55rem;
  font-size: 1.45rem;
  line-height: 1.2;
}
.contact-form-card h2 { margin-top: 0; }
.contact-address {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.contact-points { display: grid; gap: .7rem; margin-top: auto; }
.contact-point {
  display: block;
  background: #f8f6ff;
  border: 2px solid #dfe6ff;
  border-radius: 16px;
  padding: .75rem .9rem;
  color: inherit;
  text-decoration: none;
}
.contact-point-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .2rem;
}
.contact-point strong,
.contact-point a {
  display: block;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.contact-page a,
.contact-page a:hover,
.contact-page a:focus,
.contact-page a:visited {
  text-decoration: none;
}
.contact-captcha-slot { margin-top: .2rem; }
.legal-content h2 { margin-top: 1.6rem; }
.obf-rev { unicode-bidi: bidi-override; direction: rtl; }
.obf-mail-at::before { content: "@"; }
.obf-mail.is-ready .obf-mail-fallback { display: none; }
.obf-mail-ch { display: inline; }
.protected-media { position: relative; display: inline-block; overflow: hidden; }
.protected-canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.protected-media[data-fit="cover"] .protected-canvas { object-fit: cover; }
.protected-overlay { position: absolute; inset: 0; }
.brand-logo.protected-media, .footer-logo.protected-media { width: 52px; height: 52px; }
.footer-logo.protected-media { width: 48px; height: 48px; }

.site-footer { position: relative; z-index: 1; background: #1b1464; color: #ffeaa7; padding: 2.2rem 0 calc(1.6rem + env(safe-area-inset-bottom, 0px)); margin-top: 1rem; }
.site-footer a,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:visited {
  color: #fff;
  text-decoration: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .85fr);
  gap: 2rem 2.4rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 234, 167, .18);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  text-align: left;
}
.footer-logo-wrap {
  flex: 0 0 auto;
  display: block;
  width: 48px;
  height: 48px;
  text-decoration: none;
}
.footer-brand-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.footer-brand-title {
  display: block;
  line-height: 1.1;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.footer-about {
  margin: .7rem 0 0;
  max-width: 36rem;
  padding: 0;
  line-height: 1.55;
  font-size: .92rem;
  color: #f7e7b0;
  text-align: left;
}
.footer-learn h3 {
  margin: .15rem 0 .75rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffeaa7;
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.footer-links li { margin: 0; }
.footer-links a {
  display: inline-flex; align-items: center;
  padding: .38rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.2;
}
.footer-links a:hover,
.footer-links a:focus {
  background: #ffeaa7;
  color: #1b1464;
}
.footer-bottom { display: flex; align-items: center; gap: .85rem 1.4rem; margin-top: 1.4rem; font-size: .82rem; flex-wrap: wrap; }
.footer-credits { margin: 0; white-space: nowrap; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .15rem .85rem; align-items: center;
  font-size: .75rem; opacity: .72; font-weight: 700;
}
.footer-legal a { color: #ffeaa7 !important; }
.visitor-count { margin-left: auto; }
.copyright-admin-link { text-decoration: none; color: inherit; }
.copyright-link { text-decoration: none; }
.visitor-count { opacity: .45; font-size: .8rem; }

.music-toggle {
  position: fixed;
  left: calc(14px + env(safe-area-inset-left, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 72;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd54f, #ff9f1a);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}
.music-toggle:hover { transform: translateY(-2px); }
.music-toggle.is-off { background: #dfe6e9; color: #636e72; }
.music-toggle .icon-off { display: none; }
.music-toggle.is-off .icon-on { display: none; }
.music-toggle.is-off .icon-off { display: block; }
.music-toggle:not(.is-off) { animation: pulse 2s ease-in-out infinite; }

.stars-notice {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
  width: min(640px, calc(100% - 1.4rem)); background: #fff; border-radius: 22px;
  box-shadow: var(--shadow); padding: 1rem; z-index: 90; opacity: 0; pointer-events: none;
  border: 4px solid #ffd54f;
}
.stars-notice.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.stars-notice-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .6rem; }
.stars-notice-dim { position: fixed; inset: 0; background: rgba(27,20,100,.35); z-index: 80; display: none; }
.stars-notice-dim.is-on { display: block; }
html.stars-notice-open, body.stars-notice-open,
body.combo-sheet-open { overflow: hidden; }

.admin-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-nav a { background: #fff; padding: .45rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 800; }
.admin-nav a.is-active { background: var(--ink); color: #fff; }
.admin-login { padding: 3rem 0; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .6rem; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table tr.is-blocked td { background: #fff6f6; }
.admin-table tr.is-pending td { background: #fffbeb; }
.admin-table tr.is-selected td { background: #fff8e1; }
.admin-table-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.admin-inline-form { display: inline; margin: 0; }
.status-pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .15rem .65rem; font-weight: 800; font-size: .8rem;
}
.status-pill.is-ok { background: #d4f8e8; color: #0b7a45; }
.status-pill.is-off { background: #ffe0e0; color: #c0392b; }
.status-pill.is-wait { background: #fff3cd; color: #8a6d00; }
.admin-setting-card { margin-bottom: 1rem; max-width: 640px; }
.admin-nav a { display: inline-flex; align-items: center; gap: .35rem; }
.nav-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: #fff3cd; color: #8a6d00; font-size: .75rem;
}
.admin-edit-card { margin-bottom: 1rem; max-width: 640px; }
.admin-edit-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.admin-reset-form { margin-top: .8rem; }
.admin-place-grid { display: grid; gap: 1rem; }
.admin-place-card { overflow: hidden; }
.admin-place-add {
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end;
  margin: .2rem 0 1rem;
}
.admin-place-add .btn { flex: none; }
.admin-place-edit, .admin-place-drop {
  margin: 0 0 1rem; padding: .9rem .95rem 1rem;
  background: #f7f5ff; border-radius: 16px;
}
.admin-place-drop h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.admin-place-table-wrap { overflow-x: auto; }
.admin-msg-search {
  max-width: 420px;
  margin: 0 0 .85rem;
  padding: .55rem .75rem;
  font-size: .92rem;
}
.admin-msg-text { max-width: 28rem; overflow-wrap: anywhere; font-weight: 700; }

@media (min-width: 1240px) {
  .brand { margin-left: calc(-52px - .7rem); }
  .footer-logo-wrap { margin-left: calc(-48px - .75rem); }
}

@media (max-width: 900px) {
  .hero-grid, .grade-grid, .level-map, .footer-grid, .split, .vocab-layout, .subject-grid { grid-template-columns: 1fr 1fr; }
  .vocab-stats { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: block; }
  .site-header { overflow: visible; }
  .brand {
    position: relative;
    margin-left: 0;
    flex-direction: row;
    align-items: center;
    gap: .55rem;
  }
  .brand-logo,
  .brand-logo.protected-media {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .brand-word { text-align: left; }
  .brand-word strong { font-size: 1.12rem; }
  .main-nav {
    display: none; position: absolute; right: 1rem; top: calc(var(--header-h) + 8px);
    background: #fff; border-radius: 18px; padding: .8rem; flex-direction: column; min-width: 220px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
}
@media (max-width: 640px) {
  .hero-grid, .grade-grid, .level-map, .footer-grid, .split, .form-row, .drop-row, .vocab-layout, .subject-grid { grid-template-columns: 1fr; }
  .vocab-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
  }
  .footer-brand,
  .footer-brand-copy,
  .footer-about,
  .brand,
  .brand-word { text-align: left; }
  .game-top { flex-wrap: wrap; }
  .exercise-card { padding-right: 0; padding-top: 3.6rem; }
  .mascot-react { width: 56px; height: 60px; }
  .mascot-react svg { width: 56px; height: auto; }
  .drop-slot { flex-direction: column; align-items: stretch; text-align: center; }
  .drop-target { min-width: 0; width: 100%; }
  .podium,
  .podium-n1,
  .podium-n2 {
    grid-template-columns: 1fr;
    max-width: 360px;
    justify-content: stretch;
  }
  .podium-n1 { grid-template-areas: "p1"; }
  .podium-n2 { grid-template-areas: "p1" "p2"; }
  .podium-n3 { grid-template-areas: "p1" "p2" "p3"; }
  .p1 .podium-block, .p2 .podium-block, .p3 .podium-block { height: 72px; }
  .highscore-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .highscore-meta { display: none; }
  .highscore-table-wrap { overflow: visible; }
  .highscore-table {
    table-layout: auto;
    border-spacing: 0;
    width: 100%;
  }
  .highscore-table thead { display: none; }
  .highscore-table tbody { display: block; }
  .highscore-table tr {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) auto auto;
    grid-template-areas:
      "rank who who msg"
      ". stars likes likes";
    column-gap: .55rem;
    row-gap: .35rem;
    align-items: center;
    background: #f8f6ff;
    border-radius: 14px;
    padding: .75rem .8rem;
    margin-bottom: .5rem;
  }
  .highscore-table.has-place tr {
    grid-template-areas:
      "rank who who msg"
      ". class stars likes";
  }
  .highscore-table td {
    display: block;
    width: auto !important;
    max-width: none;
    background: transparent;
    padding: 0;
    white-space: normal;
    text-align: left;
  }
  .highscore-table td:first-child,
  .highscore-table td:last-child { border-radius: 0; }
  .highscore-table tr.is-me td {
    box-shadow: none;
    background: transparent;
  }
  .highscore-table tr.is-me {
    box-shadow: none;
    background:
      linear-gradient(rgba(124, 77, 255, .38), rgba(124, 77, 255, .38)) top / 100% 2px no-repeat,
      linear-gradient(rgba(124, 77, 255, .38), rgba(124, 77, 255, .38)) bottom / 100% 2px no-repeat,
      #f3eeff;
  }
  .highscore-rank { grid-area: rank; align-self: start; padding-top: .05rem; }
  .highscore-who { grid-area: who; min-width: 0; }
  .highscore-class { grid-area: class; width: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
  .highscore-stars { grid-area: stars; width: auto; }
  .highscore-likes { grid-area: likes; width: auto; justify-self: start; }
  .highscore-go { grid-area: msg; width: auto; text-align: right; justify-self: end; white-space: nowrap; }
  .highscore-msg { padding: .3rem .7rem; }
  .chat-shell { grid-template-columns: 1fr; min-height: 460px; }
  .chat-list-pane { border-right: 0; border-bottom: 3px solid #eef0ff; }
  .chat-shell.has-open .chat-list-pane { display: none; }
  .chat-shell:not(.has-open) .chat-thread-pane { display: none; }
  .podium-toast { left: 1rem; right: 1rem; width: auto; max-width: calc(100% - 2rem); transform: none; white-space: normal; }
  .podium-toast.is-open { animation: none; transform: none; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); left: 1rem; }
  .footer-legal { margin-left: 0; }
}
/* Scroll-Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition:
    opacity .7s cubic-bezier(.2, .8, .2, 1),
    transform .7s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-in {
  opacity: 1;
  transform: none;
}
.scroll-reveal-left {
  transform: translateX(-32px);
}
.scroll-reveal-right {
  transform: translateX(32px);
}
.scroll-reveal-left.is-in,
.scroll-reveal-right.is-in {
  transform: none;
}
.scroll-reveal-pop {
  transform: translateY(18px) scale(.9);
}
.scroll-reveal-pop.is-in {
  transform: none;
}
.scroll-stagger > .scroll-reveal:nth-child(1) { transition-delay: .05s; }
.scroll-stagger > .scroll-reveal:nth-child(2) { transition-delay: .12s; }
.scroll-stagger > .scroll-reveal:nth-child(3) { transition-delay: .19s; }
.scroll-stagger > .scroll-reveal:nth-child(4) { transition-delay: .26s; }
.scroll-stagger > .scroll-reveal:nth-child(5) { transition-delay: .33s; }
.scroll-stagger > .scroll-reveal:nth-child(6) { transition-delay: .4s; }
.scroll-stagger > .scroll-reveal:nth-child(7) { transition-delay: .47s; }
.scroll-stagger > .scroll-reveal:nth-child(8) { transition-delay: .54s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Battle Quiz Promo (Startseite) */
.battle-promo-section { padding-top: 1.8rem; padding-bottom: 1.2rem; }
.battle-promo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 1.6rem 1.4rem 1.5rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 213, 79, .55), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(255, 107, 157, .4), transparent 40%),
    linear-gradient(135deg, #1b1464 0%, #4c1d95 45%, #c0392b 100%);
  color: #fff;
  box-shadow: var(--shadow);
  border: 4px solid #ffd54f;
  display: grid;
  gap: 1rem;
  text-align: center;
}
.battle-promo-glow {
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 0deg, transparent, rgba(255,213,79,.25), transparent 30%, rgba(255,107,157,.2), transparent 60%);
  animation: battlePromoSpin 8s linear infinite;
  pointer-events: none;
}
@keyframes battlePromoSpin { to { transform: rotate(360deg); } }
.battle-promo-fighters {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 2.4rem;
  margin-top: .2rem;
}
.battle-promo-fighter {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 3px solid #ffd54f;
  animation: battlePromoBob 1.6s ease-in-out infinite;
}
.battle-promo-fighter.right { animation-delay: .35s; }
@keyframes battlePromoBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.08); }
}
.battle-promo-vs {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .08em;
  color: #ffd54f;
  text-shadow: 0 0 18px rgba(255, 213, 79, .7);
  animation: battlePromoPulse 1.2s ease-in-out infinite;
}
@keyframes battlePromoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: .85; }
}
.battle-promo-copy { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.battle-promo-badge {
  display: inline-block;
  margin: 0 0 .55rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: #ffd54f;
  color: #1b1464;
  font-weight: 800;
  font-size: .85rem;
}
.battle-promo h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  color: #fff;
}
.battle-promo-copy p { margin: 0 auto .9rem; color: rgba(255,255,255,.92); max-width: 520px; }
.battle-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}
.battle-promo-actions .btn-ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.battle-promo-chips {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: .2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}
.battle-promo-chips li {
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .82rem;
  font-weight: 700;
  animation: battleChipFlash 2.4s ease-in-out infinite;
}
.battle-promo-chips li:nth-child(2) { animation-delay: .3s; }
.battle-promo-chips li:nth-child(3) { animation-delay: .6s; }
.battle-promo-chips li:nth-child(4) { animation-delay: .9s; }
@keyframes battleChipFlash {
  0%, 100% { transform: translateY(0); background: rgba(255,255,255,.14); }
  50% { transform: translateY(-3px); background: rgba(255,213,79,.28); }
}
@media (max-width: 640px) {
  .battle-promo { padding: 1.25rem 1rem 1.2rem; }
  .battle-promo-actions { flex-direction: column; }
  .battle-promo-actions .btn { width: 100%; }
}

/* Battle Quiz */
.battle-invite-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(27, 20, 100, .45);
}
.battle-invite-modal[hidden] { display: none !important; }
.battle-invite-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  border: 4px solid #ffd54f;
}
.battle-invite-card h2 { margin: .2rem 0 .6rem; }
.battle-invite-actions {
  display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap;
}
#battle-invite-block {
  margin-right: auto;
  color: #be123c;
  border-color: #fda4af;
}
body.battle-invite-open { overflow: hidden; }

.battle-shell { max-width: 760px; margin: 0 auto; }
.battle-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .8rem;
  align-items: center;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.battle-player {
  display: flex; flex-direction: column; gap: .2rem; text-align: center;
}
.battle-player.is-me { background: #eef2ff; border-radius: 16px; padding: .5rem; }
.battle-points { font-size: 2rem; font-weight: 900; color: var(--purple); line-height: 1; }
.battle-vs { font-weight: 900; color: var(--muted); }
.battle-card {
  background: #fff; border-radius: 24px; padding: 1.3rem; box-shadow: var(--shadow);
}
.battle-meta {
  display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin-bottom: .8rem;
}
.battle-qnum, .battle-timer { font-weight: 800; color: var(--muted); }
.battle-timer { color: #c0392b; }
.battle-final-score { font-size: 2rem; font-weight: 900; text-align: center; }
.battle-win { text-align: center; }
.highscore-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.highscore-battle {
  border: 0; border-radius: 999px; padding: .3rem .55rem; cursor: pointer;
  background: #ffeaa7; font-size: 1rem;
}
.highscore-battle:hover { background: #ffd54f; }
.chat-thread-head {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.chat-thread-head > div { flex: 1 1 auto; min-width: 0; }
.chat-outgoing-battles,
.chat-blocked-battles {
  margin: 0 0 .85rem;
  padding: .7rem .75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff6d6, #ffe4ec);
  border: 2px solid #ffd54f;
}
.chat-blocked-battles {
  background: linear-gradient(135deg, #f3f4f6, #ffe4e6);
  border-color: #fda4af;
}
.chat-person-preview.is-blocked { color: #be123c; font-weight: 800; }
.chat-person.is-battle-blocked { border-color: #fda4af; background: #fff1f2; }
.chat-battle-banner-inner.is-blocked {
  background: #fff1f2;
}
.chat-outgoing-title {
  margin: 0 0 .45rem;
  font-weight: 900;
  font-size: .9rem;
  color: var(--ink);
}
.chat-outgoing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.chat-outgoing-item {
  display: flex;
  gap: .45rem;
  align-items: center;
  flex-wrap: wrap;
}
.chat-outgoing-open {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  border: 0;
  background: rgba(255,255,255,.72);
  border-radius: 12px;
  padding: .45rem .55rem;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: .1rem;
}
.chat-outgoing-open strong { font-size: .92rem; }
.chat-outgoing-open small { color: var(--muted); font-weight: 700; }
.chat-outgoing-item .btn { flex: 0 0 auto; }
.chat-battle-banner {
  padding: .7rem 1rem;
  background: #fff6d6;
  border-bottom: 3px solid #ffd54f;
}
.chat-battle-banner-inner {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.chat-battle-banner-inner p { margin: 0; font-weight: 700; }
.chat-person.has-battle { border-color: #ffd54f; background: #fffbeb; }
.chat-person-battle { margin-left: .35rem; }
.chat-person-preview.is-battle { color: #b7791f; font-weight: 800; }
.battle-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
  justify-content: center;
}
.battle-challenge-btn:disabled {
  opacity: .65;
  cursor: default;
}
@media (max-width: 640px) {
  .battle-scoreboard { grid-template-columns: 1fr; }
  .battle-vs { display: none; }
  .nav-account { width: 100%; }
}
