:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5c6878;
  --line: rgba(28, 41, 64, 0.15);
  --panel: rgba(255, 255, 255, 0.93);
  --panel-strong: #ffffff;
  --blue: #2563eb;
  --teal: #0f9f8f;
  --green: #16a34a;
  --yellow: #facc15;
  --orange: #f97316;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(27, 38, 59, 0.17);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --picture-token-size: clamp(22px, 4.2vmin, 34px);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(135deg, #eaf3ff 0%, #eefaf0 46%, #fff6d9 100%);
}

button {
  border: 0;
  font: inherit;
  touch-action: manipulation;
}

.addition-game {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(10px, 1.8vw, 22px);
  overflow: hidden;
  isolation: isolate;
}

.asset-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 78% 22%, rgba(255, 191, 61, 0.42), rgba(255, 191, 61, 0) 24%),
    linear-gradient(135deg, #073b30 0%, #0f766e 46%, #102033 100%);
  transition: opacity 240ms ease, visibility 240ms ease;
  backdrop-filter: blur(10px);
}

.addition-game:not(.is-loading) .asset-loader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-card,
.overlay-card {
  width: min(540px, 100%);
  padding: clamp(20px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 80px rgba(8, 37, 26, 0.28);
  text-align: center;
}

.brand-loader {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 253, 247, 0.92));
}

.brand-loader::before {
  content: "";
  position: absolute;
  inset: -45% -18% auto;
  height: 140px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform: rotate(-8deg) translateX(-55%);
  animation: loaderSweep 2.2s ease-in-out infinite;
  pointer-events: none;
}

.loader-eyebrow,
.small-label,
.overlay-kicker {
  margin: 0;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loader-eyebrow {
  margin: 0 0 12px;
  color: #0e6b40;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.loader-brand {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  color: #0f2438;
  font-size: clamp(28px, 10vw, 58px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.loader-brand span {
  flex: 0 0 auto;
  display: inline-block;
  color: transparent;
  background: linear-gradient(135deg, #102033 0%, #0f766e 52%, #ffbf3d 100%);
  background-clip: text;
  opacity: 0;
  transform: translateX(-28px) translateY(8px) rotate(-5deg);
  animation: brandLetterIn 0.68s cubic-bezier(0.18, 0.86, 0.25, 1.18) forwards;
  animation-delay: calc(var(--i) * 0.075s);
  -webkit-background-clip: text;
}

.loader-card p:not(.loader-eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.loader-bar {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dceee7;
}

.loader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f8a4c, #27c6a1, #ffbf3d);
  transition: width 0.25s ease;
}

.rotate-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(9, 34, 48, 0.88), rgba(6, 78, 59, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px;
  color: #ffffff;
}

.rotate-card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.rotate-card strong {
  font-size: 1.3rem;
}

.rotate-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.rotate-phone {
  width: 74px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 4px solid #ffffff;
  border-radius: 16px;
  animation: rotatePhone 1.9s ease-in-out infinite;
}

.rotate-phone span {
  width: 34px;
  height: 9px;
  border-radius: 999px;
  background: #facc15;
}

.game-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(10px, 1.4vw, 14px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 26px rgba(27, 38, 59, 0.09);
  backdrop-filter: blur(18px);
}

.game-title {
  min-width: 0;
}

.game-title span {
  display: block;
  color: #2563eb;
  font-size: clamp(0.66rem, 1.4vw, 0.75rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #14213d;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud {
  display: flex;
  gap: 8px;
}

.hud-item {
  min-width: clamp(70px, 8vw, 104px);
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #f7fbff;
  text-align: center;
}

.hud-item span {
  display: block;
  color: var(--muted);
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  font-weight: 800;
}

.hud-item strong {
  display: block;
  color: #12325f;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  line-height: 1.02;
}

.game-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5vw, 16px);
}

.question-panel,
.answer-panel,
.progress-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.question-panel {
  min-width: 0;
  min-height: 0;
  align-self: center;
  padding: clamp(12px, 1.8vw, 20px);
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: clamp(10px, 1.4vw, 16px);
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.panel-head h1 {
  margin: 4px 0 0;
  color: #14213d;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
}

.icon-badge {
  width: clamp(54px, 7vw, 78px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 159, 143, 0.18);
  border-radius: 8px;
  color: #0f766e;
  background: #e8fbf6;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 950;
}

.picture-equation {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(82px, 0.16fr);
  gap: clamp(6px, 1vw, 12px);
  align-items: center;
}

.group-box,
.total-box {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.group-box {
  min-height: clamp(118px, 26vh, 230px);
  padding: clamp(6px, 1vw, 10px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
}

.group-head strong {
  color: #14213d;
  font-size: 1.15rem;
}

.picture-grid {
  --token-size: var(--question-token-size, var(--picture-token-size));
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--token-size), var(--token-size)));
  grid-auto-rows: var(--token-size);
  justify-content: center;
  align-content: center;
  gap: clamp(3px, 0.7vmin, 6px);
  overflow: hidden;
  padding: 0;
}

.picture-token {
  width: var(--token-size);
  height: var(--token-size);
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 7px;
  color: var(--token-color, #2563eb);
  background: var(--token-bg, #eff6ff);
  font-size: calc(var(--token-size) * 0.62);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(27, 38, 59, 0.07);
  animation: tokenIn 220ms ease both;
}

.empty-group {
  width: max-content;
  min-height: 0;
  max-width: 100%;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 2px dashed rgba(92, 104, 120, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.operator,
.total-box {
  display: grid;
  place-items: center;
  color: #172033;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
}

.operator {
  align-self: center;
  width: clamp(28px, 4vw, 42px);
}

.total-box {
  min-height: clamp(118px, 26vh, 230px);
  background: linear-gradient(180deg, #fff9e7, #fff1bd);
  color: #92400e;
}

.feedback {
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(92, 104, 120, 0.14);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
  line-height: 1.35;
}

.feedback.good {
  border-color: rgba(22, 163, 74, 0.22);
  color: #15803d;
  background: #ecfdf3;
}

.feedback.bad {
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  background: #fff1f2;
}

.answer-panel {
  min-height: 0;
  padding: clamp(12px, 1.6vw, 18px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 12px);
  align-items: center;
}

.answer-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
  align-content: start;
}

.answer-choice {
  min-width: 0;
  min-height: clamp(50px, 10vh, 68px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  color: #102033;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  cursor: pointer;
  font-size: clamp(1.45rem, 4.6vmin, 2.4rem);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(37, 99, 235, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.answer-choice:hover,
.answer-choice:focus-visible {
  border-color: rgba(15, 159, 143, 0.6);
  background: #effefa;
  transform: translateY(-1px);
}

.answer-choice:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.level-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.answer-choice.is-wrong {
  border-color: rgba(220, 38, 38, 0.34);
  color: #b91c1c;
  background: #fff1f2;
  animation: shake 220ms linear;
}

.answer-choice.is-correct {
  border-color: rgba(22, 163, 74, 0.36);
  color: #15803d;
  background: #ecfdf3;
  animation: pop 220ms ease;
}

.score-note {
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.primary-action,
.secondary-action,
.level-card {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 18px;
}

.primary-action {
  color: #061514;
  background: linear-gradient(135deg, #1fb6a6, #7bc950);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.top-menu-action {
  min-width: 82px;
  min-height: 48px;
  padding: 0 16px;
}

.primary-action:hover,
.secondary-action:hover,
.level-card:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.progress-panel {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f1;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f9f8f, #facc15);
  transition: width 220ms ease;
}

#progressText {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(6, 78, 59, 0.72)),
    rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.game-overlay.is-visible {
  display: flex;
}

.overlay-card {
  max-height: calc(100svh - 24px);
  overflow: auto;
}

.overlay-card h2 {
  margin: 0;
  color: #14213d;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 0.98;
}

.overlay-card p:not(.overlay-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.menu-card {
  padding: clamp(14px, 3.2vh, 26px);
}

.menu-art {
  height: clamp(58px, 11vh, 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.art-token {
  width: clamp(48px, 10vh, 64px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 2.3rem;
  font-weight: 950;
  animation: artBounce 1.8s ease-in-out infinite;
}

.art-token.a {
  color: #1d4ed8;
  background: #dbeafe;
}

.art-token.b {
  color: #047857;
  background: #d1fae5;
  animation-delay: 0.12s;
}

.art-token.c {
  color: #b45309;
  background: #fef3c7;
  animation-delay: 0.24s;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.level-card {
  min-height: clamp(64px, 12vh, 84px);
  display: grid;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #14213d;
  background: #ffffff;
  text-align: left;
}

.level-card strong {
  font-size: 1.18rem;
  line-height: 1.15;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.result-labels,
.result-values {
  display: contents;
}

.result-grid span {
  min-height: 30px;
  padding: 6px 4px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.result-grid strong {
  min-height: 38px;
  padding: 7px 4px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: #0f766e;
  font-size: clamp(1rem, 4vmin, 1.35rem);
  line-height: 1;
}

.result-grid span:first-child,
.result-grid strong:first-child {
  border-left: 0;
}

.overlay-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.noscript-card {
  position: fixed;
  inset: 20px;
  z-index: 120;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #14213d;
  text-align: center;
  font-weight: 800;
}

@keyframes brandLetterIn {
  0% {
    opacity: 0;
    transform: translateX(-28px) translateY(8px) rotate(-5deg);
  }
  68% {
    opacity: 1;
    transform: translateX(3px) translateY(0) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0);
  }
}

@keyframes loaderSweep {
  0%,
  18% {
    transform: rotate(-8deg) translateX(-62%);
  }
  62%,
  100% {
    transform: rotate(-8deg) translateX(62%);
  }
}

@keyframes rotatePhone {
  0%,
  100% {
    transform: rotate(0deg);
  }
  48%,
  72% {
    transform: rotate(90deg);
  }
}

@keyframes tokenIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-6px);
  }
  66% {
    transform: translateX(6px);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes artBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (orientation: portrait) and (max-width: 740px) {
  .addition-game:not(.is-loading) .rotate-overlay {
    display: grid;
  }
}

@media (max-width: 920px) {
  .addition-game {
    min-height: 100svh;
  }

  .game-topbar,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .picture-equation {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .picture-equation .operator:nth-of-type(4),
  .total-box {
    display: none;
  }

  .answer-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .answer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .level-grid,
  .overlay-actions,
  .progress-panel {
    grid-template-columns: 1fr;
  }

  .level-card {
    min-height: 68px;
    text-align: center;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .addition-game {
    min-height: 100svh;
    gap: 8px;
    padding: 8px;
  }

  .game-topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 8px;
  }

  .game-title span {
    font-size: 0.58rem;
  }

  .game-title strong {
    font-size: 1rem;
  }

  .hud {
    display: flex;
    gap: 6px;
  }

  .hud-item {
    min-width: 62px;
    padding: 6px 8px;
  }

  .hud-item span {
    font-size: 0.56rem;
  }

  .hud-item strong {
    font-size: 0.95rem;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .question-panel,
  .answer-panel {
    padding: 10px;
    gap: 8px;
  }

  .question-panel {
    grid-template-rows: auto auto auto;
  }

  .panel-head h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .icon-badge {
    width: 48px;
  }

  .picture-token {
    font-size: calc(var(--token-size) * 0.62);
  }

  .picture-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--token-size), var(--token-size)));
    grid-auto-rows: var(--token-size);
    gap: 3px;
  }

  .group-box {
    padding: 6px;
    gap: 4px;
    overflow: hidden;
  }

  .group-head {
    font-size: 0.72rem;
  }

  .feedback {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .answer-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .answer-grid {
    gap: 6px;
  }

  .answer-choice {
    min-height: 44px;
    font-size: clamp(1.35rem, 5vmin, 1.8rem);
  }

  .score-note {
    display: none;
  }

  .secondary-action,
  .primary-action {
    min-height: 40px;
  }

  .progress-panel {
    display: none;
  }

  .game-overlay {
    padding: 10px;
  }

  .overlay-card {
    padding: 14px;
  }

  .overlay-card h2 {
    font-size: clamp(1.55rem, 5vw, 2.25rem);
  }

  .overlay-card p:not(.overlay-kicker) {
    margin-top: 7px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .menu-art {
    height: 44px;
    margin-bottom: 6px;
  }

  .art-token {
    width: 42px;
    font-size: 1.45rem;
  }

  .level-grid {
    margin-top: 10px;
  }

  .level-card {
    min-height: 50px;
    padding: 8px 10px;
  }

  .level-card strong {
    font-size: 1rem;
  }

  .result-grid {
    margin-top: 10px;
  }

  .result-grid span {
    min-height: 24px;
    padding: 5px 3px;
    font-size: 0.56rem;
  }

  .result-grid strong {
    min-height: 32px;
    padding: 6px 3px;
    font-size: 1.05rem;
  }

  .overlay-actions {
    margin-top: 10px;
  }
}
