:root {
  --bg-top: #04121f;
  --bg-bottom: #10263d;
  --panel: rgba(7, 24, 40, 0.74);
  --panel-border: rgba(159, 204, 255, 0.18);
  --text: #eef6ff;
  --muted: #a9bfd6;
  --accent: #6fe7ff;
  --accent-warm: #ffd166;
  --accent-hot: #ff7b54;
  --success: #7dffb2;
  --danger: #ff8d8d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --grid: rgba(142, 190, 255, 0.1);
  --axis: rgba(214, 234, 255, 0.55);
  --curve: #7ee6ff;
  --preview: #ffd166;
  --chip-1: #153f6e;
  --chip-2: #1f5e95;
  --footer-banner-height: 75px;
  --footer-logo-size: 68px;
  --footer-logo-lift: -8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Candara", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(58, 160, 255, 0.22), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(255, 209, 102, 0.18), transparent 20%),
    linear-gradient(155deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: 12px;
  scroll-padding-bottom: calc(var(--footer-banner-height) + 36px);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -12rem;
  left: -12rem;
  background: rgba(43, 135, 255, 0.15);
}

body::after {
  bottom: -14rem;
  right: -8rem;
  background: rgba(255, 123, 84, 0.14);
}

body.is-dragging {
  cursor: grabbing;
}

body.fever-active {
  background:
    radial-gradient(circle at top left, rgba(255, 118, 76, 0.26), transparent 30%),
    radial-gradient(circle at 80% 8%, rgba(255, 209, 102, 0.28), transparent 22%),
    linear-gradient(155deg, #2b1022, #12253c);
}

body.tutorial-active {
  background:
    radial-gradient(circle at top left, rgba(96, 180, 255, 0.28), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(255, 223, 145, 0.18), transparent 24%),
    linear-gradient(155deg, #10283f, #1b3f5f);
  color: var(--text);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1340px, calc(100vw - 24px));
  margin: 0 auto;
  min-height: calc(100vh - var(--footer-banner-height));
  padding: 10px 0 calc(var(--footer-banner-height) + 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.school-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-banner-height);
  padding: 3px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, 0.98), rgba(16, 38, 61, 0.96));
  box-shadow: 0 -18px 30px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  overflow: visible;
  z-index: 40;
}

.school-banner__logo,
.school-banner__text {
  position: relative;
  z-index: 1;
}

.school-banner__logo {
  width: 85px;
  height: 85px;
  flex: 0 0 auto;
  object-fit: contain;
  margin-top: var(--footer-logo-lift);
  margin-bottom: 15px;
  padding: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98), rgba(221, 236, 255, 0.92));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.school-banner__text {
  margin: 0;
  color: #f4fbff;
  font-size: clamp(0.92rem, 2.45vw, 1.16rem);
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(111, 231, 255, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 8px 0 10px;
  backdrop-filter: blur(12px);
}

.brand {
  max-width: 460px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent-warm);
}

.brand h1,
.graph-header h2,
.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  line-height: 0.95;
}

.brand h1 {
  font-size: clamp(2rem, 2.9vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-head h2,
.graph-header h2 {
  font-size: 1.2rem;
}

h3 {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 1.4rem;
  color: var(--accent-warm);
}

.general-information {
  font-size: 1.2rem;
}

.subtitle,
.instruction,
.stage-description,
.hint-text,
.status-line,
.overlay-card p,
.overlay-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 10px;
  min-width: min(520px, 100%);
}

.hud-card,
.panel-card,
.graph-panel,
.overlay-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hud-card {
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hud-card strong {
  font-size: 1.08rem;
}

.fever-card {
  position: relative;
  overflow: hidden;
}

.fever-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent, rgba(255, 209, 102, 0.14), transparent);
  transform: translateX(-55%);
  transition: transform 0.5s ease;
}

body.fever-active .fever-card::after {
  transform: translateX(55%);
}

.game-layout {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 12px;
  height: auto;
  min-height: 0;
  align-items: stretch;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
  max-width: 520px;
}

.panel-card,
.graph-panel {
  border-radius: 26px;
}

.panel-card {
  padding: 16px;
}

.palette-card {
  padding: 14px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: -13px;
}

.section-head.compact h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.formula-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutorial-board-label {
  display: none;
  align-self: center;
  margin: -2px 0 2px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.28);
  color: #15324b;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.tutorial-active .tutorial-board-label {
  display: inline-flex;
}

.formula-board {
  background:
    linear-gradient(145deg, rgba(111, 231, 255, 0.08), rgba(255, 209, 102, 0.06)),
    rgba(4, 18, 31, 0.58);
  border: 1px solid rgba(120, 210, 255, 0.16);
  border-radius: 18px;
  padding: 12px 14px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

.formula-area {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formula-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 700;
  white-space: nowrap;
}

.formula-token {
  color: var(--text);
}

.formula-line sup {
  font-size: 0.56em;
}

.drop-slot {
  appearance: none;
  border: 1px dashed rgba(111, 231, 255, 0.5);
  background: rgba(3, 20, 38, 0.82);
  color: var(--accent);
  border-radius: 14px;
  min-width: 64px;
  height: 46px;
  font: inherit;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.drop-slot:hover,
.drop-slot:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.72);
  outline: none;
}

.drop-slot.filled {
  color: var(--text);
  border-style: solid;
  background: linear-gradient(160deg, rgba(56, 127, 216, 0.76), rgba(18, 72, 130, 0.9));
  box-shadow: 0 14px 24px rgba(30, 99, 179, 0.3);
}

.drop-slot.previewing {
  color: #111c28;
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.95), rgba(255, 154, 92, 0.94));
  border-color: rgba(255, 230, 168, 0.95);
  box-shadow: 0 14px 30px rgba(255, 155, 92, 0.24);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.formula-reset-btn {
  width: 62px;
  min-width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.formula-reset-btn:hover,
.formula-reset-btn:focus-visible {
  filter: brightness(1.06);
}

.reset-icon {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.26));
}

.reset-icon-disc {
  fill: #05080d;
}

.reset-icon-arc {
  fill: none;
  stroke: #ffffff;
  stroke-width: 11;
  stroke-linecap: round;
}

.reset-icon-head {
  fill: #ffffff;
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.secondary-btn,
.primary-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-hot));
  color: #102336;
  box-shadow: 0 16px 34px rgba(255, 123, 84, 0.28);
}

.secondary-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.danger-btn {
  background: linear-gradient(135deg, #ff7d7d, #d83a58);
  color: #fff;
  border: 1px solid rgba(255, 173, 173, 0.2);
  box-shadow: 0 16px 34px rgba(216, 58, 88, 0.28);
}

.long-btn,
.side-action-btn {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.number-chip {
  border: 1px solid rgba(145, 217, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(160deg, var(--chip-1), var(--chip-2));
  color: var(--text);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.number-chip:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 209, 102, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.number-chip:active {
  cursor: grabbing;
}

.status-line {
  min-height: 24px;
}

.status-line.success {
  color: var(--success);
}

.status-line.fever {
  color: var(--accent-warm);
}

.status-line.warning {
  color: var(--danger);
}

body.tutorial-active .hud-card,
body.tutorial-active .panel-card,
body.tutorial-active .graph-panel {
  background: rgba(18, 47, 76, 0.82);
  border-color: rgba(132, 197, 255, 0.18);
  box-shadow: 0 24px 52px rgba(4, 16, 29, 0.36);
}

body.tutorial-active .hud-label,
body.tutorial-active .subtitle,
body.tutorial-active .instruction,
body.tutorial-active .status-line,
body.tutorial-active .graph-legend,
body.tutorial-active .overlay-card p,
body.tutorial-active .overlay-card li,
body.tutorial-active .target-label,
body.tutorial-active .tick-label,
body.tutorial-active .axis-label {
  color: #bfd5ea;
}

body.tutorial-active .brand h1,
body.tutorial-active .section-head h2,
body.tutorial-active .graph-header h2,
body.tutorial-active .hud-card strong {
  color: #f4f8ff;
}

body.tutorial-active .formula-board,
body.tutorial-active .graph-frame {
  background:
    radial-gradient(circle at top left, rgba(111, 231, 255, 0.12), transparent 38%),
    linear-gradient(160deg, rgba(18, 47, 76, 0.96), rgba(8, 26, 45, 0.96));
  border-color: rgba(132, 197, 255, 0.2);
}

body.tutorial-active .graph-backdrop {
  fill: rgba(10, 31, 50, 0.92);
}

body.tutorial-active .grid-line {
  stroke: rgba(143, 194, 246, 0.12);
}

body.tutorial-active .axis-line {
  stroke: rgba(217, 236, 255, 0.45);
}

body.tutorial-active .formula-token,
body.tutorial-active .number-chip,
body.tutorial-active .drop-slot {
  color: #eef6ff;
}

.score-banner {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translate(-50%, -18px);
  min-width: 220px;
  max-width: min(90vw, 420px);
  padding: 14px 22px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.score-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.score-banner.gain {
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.98), rgba(77, 212, 145, 0.96));
  color: #0b1d16;
}

.score-banner.loss {
  background: linear-gradient(135deg, rgba(255, 141, 141, 0.98), rgba(255, 95, 95, 0.96));
  color: #2a0d0d;
}

.score-banner.fever {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.98), rgba(255, 145, 77, 0.96));
  color: #2c1b06;
}

.overlay-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.stacked-buttons {
  flex-direction: column;
  align-items: stretch;
}

.confirm-actions {
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.graph-panel {
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 550px;
  min-height: 550px;
}

.graph-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 231, 255, 0.12), transparent 62%);
  pointer-events: none;
}

.graph-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.graph-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.legend-swatch.current {
  background: var(--curve);
}

.legend-swatch.preview {
  background: linear-gradient(90deg, var(--preview), rgba(255, 209, 102, 0.2));
  border: 1px dashed rgba(255, 209, 102, 0.6);
}

.graph-frame {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.1), transparent 34%),
    linear-gradient(160deg, rgba(5, 22, 38, 0.92), rgba(11, 34, 56, 0.88));
  border: 4px solid rgba(153, 210, 255, 0.34);
  border-radius: 22px;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#graph {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-backdrop {
  fill: rgba(3, 12, 24, 0.78);
  stroke: none;
}

@media (min-width: 921px) and (max-height: 940px) {
  .app-shell {
    gap: 10px;
    padding-top: 8px;
    padding-bottom: calc(var(--footer-banner-height) + 28px);
  }

  .topbar {
    gap: 10px;
    padding: 6px 0 8px;
  }

  .brand h1 {
    font-size: clamp(1.72rem, 2.45vw, 2.6rem);
  }

  .subtitle {
    line-height: 1.45;
  }

  .hud-card {
    padding: 10px 12px;
    gap: 4px;
  }

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

  .panel-card,
  .graph-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .formula-card {
    gap: 10px;
  }

  .formula-board {
    min-height: 66px;
    padding: 10px 12px;
  }

  .long-btn,
  .side-action-btn {
    min-height: 50px;
  }

  .number-chip {
    min-height: 48px;
    font-size: 1rem;
  }
}

@media (min-width: 921px) and (max-height: 840px) {
  .app-shell {
    gap: 8px;
    padding-bottom: calc(var(--footer-banner-height) + 24px);
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.17em;
  }

  .brand h1 {
    font-size: clamp(1.56rem, 2.15vw, 2.18rem);
    margin: 6px 0 8px;
  }

  .section-head h2,
  .graph-header h2 {
    font-size: 1.08rem;
    margin: 6px 0 8px;
  }

  .hud {
    gap: 8px;
  }

  .hud-card {
    padding: 9px 11px;
  }

  .panel-card,
  .graph-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .formula-board {
    min-height: 60px;
    padding: 9px 11px;
  }

  .formula-line {
    gap: 8px;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  }

  .drop-slot {
    min-width: 58px;
    height: 42px;
    padding: 0 12px;
  }

  .long-btn,
  .side-action-btn {
    min-height: 46px;
  }

  .number-chip {
    min-height: 44px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .side-actions {
    gap: 10px;
  }

  .side-actions-row {
    gap: 8px;
  }
}

.grid-line {
  stroke: var(--grid);
  stroke-width: 1;
}

.axis-line {
  stroke: var(--axis);
  stroke-width: 2.6;
}

.axis-label,
.tick-label {
  fill: rgba(238, 246, 255, 0.68);
  font-size: 15px;
  font-family: "Candara", "Trebuchet MS", "Segoe UI", sans-serif;
}

.curve-path,
.preview-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.curve-path {
  stroke: var(--curve);
  stroke-width: 6;
  transition: d 0.2s ease, opacity 0.2s ease;
}

.preview-path {
  stroke: var(--preview);
  stroke-width: 4;
  stroke-dasharray: 16 12;
  opacity: 0.92;
}

.curve-solved {
  animation: curvePulse 0.65s ease;
}

@keyframes curvePulse {
  0% {
    stroke-width: 6;
    filter: drop-shadow(0 0 0 rgba(125, 255, 178, 0));
  }
  50% {
    stroke-width: 10;
    filter: drop-shadow(0 0 28px rgba(125, 255, 178, 0.46));
  }
  100% {
    stroke-width: 6;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
  }
}

.target-label {
  fill: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-family: "Candara", "Trebuchet MS", "Segoe UI", sans-serif;
}

.target-star {
  fill: #ffd166;
  stroke: rgba(255, 246, 194, 0.88);
  stroke-width: 1.5;
}

.target-anchor {
  fill: rgba(111, 231, 255, 0.2);
  stroke: rgba(111, 231, 255, 0.9);
  stroke-width: 3;
}

.target-center {
  fill: rgba(255, 209, 102, 0.2);
  stroke: rgba(255, 209, 102, 0.92);
  stroke-width: 2.6;
}

.gate-body {
  fill: rgba(125, 255, 178, 0.1);
  stroke: rgba(125, 255, 178, 0.72);
  stroke-width: 3;
  stroke-dasharray: 10 10;
}

.gate-core {
  stroke: rgba(125, 255, 178, 0.84);
  stroke-width: 2;
}

.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.95), rgba(255, 123, 84, 0.92));
  color: #0d2030;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  z-index: 25;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 19, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 48;
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-card {
  width: min(620px, 100%);
  border-radius: 28px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(111, 231, 255, 0.14), transparent 26%),
    linear-gradient(160deg, rgba(10, 33, 56, 0.95), rgba(4, 18, 31, 0.95));
  max-height: min(90vh, 960px);
  overflow: auto;
}

.overlay-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.stage-intro-overlay {
  background: rgba(2, 10, 19, 0.48);
  z-index: 50;
}

.tutorial-stage-banner-overlay {
  background: rgba(2, 10, 19, 0.18);
  z-index: 51;
}

.stage-intro-card {
  width: min(760px, calc(100vw - 32px));
  padding: 34px 30px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.16), transparent 26%),
    linear-gradient(160deg, rgba(10, 33, 56, 0.95), rgba(4, 18, 31, 0.95));
  border: 1px solid rgba(159, 204, 255, 0.16);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.stage-intro-card h2 {
  margin: 8px 0;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stage-intro-subtitle,
.stage-intro-lead {
  display: none;
  /* font-family: "Candara", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase; */
}

.tutorial-stage-banner {
  width: min(1040px, calc(100vw - 40px));
  min-height: 108px;
  padding: 24px 40px;
  border-radius: 999px;
  text-align: center;
  background:
    radial-gradient(circle at left center, rgba(255, 209, 102, 0.14), transparent 22%),
    radial-gradient(circle at right center, rgba(111, 231, 255, 0.16), transparent 22%),
    linear-gradient(90deg, rgba(12, 36, 59, 0.96), rgba(18, 52, 82, 0.96));
  border: 1px solid rgba(145, 210, 255, 0.16);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34);
}

.tutorial-stage-banner h2 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(1.55rem, 4.2vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorial-stage-banner p {
  margin-top: 8px;
  color: #b8d3eb;
  font-size: clamp(0.9rem, 2vw, 1.12rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fever-info-overlay {
  z-index: 52;
}

.fever-info-card {
  width: min(820px, 100%);
}

.fever-info-lead {
  width: min(100%, 38rem);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fever-info-list {
  width: min(100%, 36rem);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.tutorial-hint-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 36;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tutorial-hint-layer.is-visible {
  opacity: 1;
}

.tutorial-hint-bubble {
  --tutorial-hint-arrow-offset: 50%;
  position: fixed;
  top: 12px;
  left: 12px;
  width: min(330px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.96), rgba(255, 154, 92, 0.94));
  color: #132334;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tutorial-hint-bubble::after {
  content: "";
  position: absolute;
  left: var(--tutorial-hint-arrow-offset);
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: rgba(255, 176, 96, 0.96);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 4px;
}

.tutorial-hint-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tutorial-hint-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.62), rgba(255, 123, 84, 0.58));
  color: #0d2030;
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  opacity: 0;
  z-index: 1;
}

.tutorial-hint-ghost.is-visible {
  opacity: 0.82;
}

.tutorial-hint-ghost.is-animating {
  transition: transform 0.86s cubic-bezier(0.2, 0.8, 0.22, 1);
}

.screen-flash-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)),
    rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 0.22s ease, visibility 0.22s ease, backdrop-filter 0.8s ease, -webkit-backdrop-filter 0.8s ease;
  z-index: 58;
}

.screen-flash-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.drop-slot.tutorial-drop-target {
  border-color: rgba(255, 209, 102, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.tutorial-overlay {
  z-index: 52;
}

.tutorial-screen.large-overlay-card {
  width: min(980px, 100%);
}

.tutorial-screen > .section-kicker,
.tutorial-screen > h2,
.tutorial-screen > .tutorial-lead {
  text-align: center;
}

.tutorial-lead {
  width: min(100%, 46rem);
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.tutorial-demo-card {
  margin-top: 26px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.14), transparent 24%),
    linear-gradient(160deg, rgba(7, 24, 40, 0.9), rgba(4, 18, 31, 0.88));
  border: 1px solid rgba(159, 204, 255, 0.14);
}

.tutorial-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.tutorial-demo-head strong {
  color: var(--text);
  font-size: 1.05rem;
}

.tutorial-demo-head span {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutorial-playground {
  position: relative;
  padding: 96px 20px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 231, 255, 0.1), transparent 18%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.tutorial-formula-board {
  min-height: 88px;
  justify-content: center;
}

.tutorial-formula-area {
  justify-content: center;
}

.tutorial-demo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  pointer-events: none;
}

.tutorial-slot-target {
  border-color: rgba(255, 209, 102, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.tutorial-slot-hit {
  animation: tutorial-slot-hit 0.4s ease;
}

.tutorial-palette-wrap {
  margin-top: 18px;
}

.tutorial-palette-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutorial-palette {
  pointer-events: none;
}

.tutorial-chip {
  cursor: default;
  position: relative;
  pointer-events: none;
}

.tutorial-chip-source {
  border-color: rgba(255, 209, 102, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12), 0 16px 28px rgba(0, 0, 0, 0.18);
}

.tutorial-callout {
  --tutorial-arrow-offset: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(320px, calc(100% - 24px));
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.96), rgba(255, 154, 92, 0.94));
  color: #132334;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tutorial-callout::after {
  content: "";
  position: absolute;
  left: var(--tutorial-arrow-offset);
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: rgba(255, 176, 96, 0.96);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 4px;
}

.tutorial-callout.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tutorial-ghost-chip {
  position: absolute;
  top: 0;
  left: 0;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.95), rgba(255, 123, 84, 0.92));
  color: #0d2030;
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.tutorial-ghost-chip.is-visible {
  opacity: 0.84;
}

.tutorial-ghost-chip.is-animating {
  transition: transform 0.86s cubic-bezier(0.2, 0.8, 0.22, 1);
}

@keyframes tutorial-slot-hit {
  0% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.start-screen {
  text-align: left;
}

.large-overlay-card {
  border-radius: 34px;
  padding: 42px 46px;
}

.start-screen.large-overlay-card {
  width: min(980px, 100%);
}

.name-screen.large-overlay-card,
.leaderboard-screen.large-overlay-card {
  width: min(780px, 100%);
}

.centered-overlay {
  text-align: center;
}

.centered-overlay .overlay-actions {
  justify-content: center;
}

.start-screen > .section-kicker,
.start-screen > h2,
.start-copy,
.leaderboard-screen > .section-kicker,
.leaderboard-screen > h2,
.name-screen > .section-kicker,
.name-screen > h2 {
  text-align: center;
}

.start-screen h2 {
  font-size: clamp(2.7rem, 5vw, 4.15rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.start-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-stats {
  margin-top: 0;
  display: flex;
}

.hero-stat-card {
  flex: 1;
  border-radius: 22px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.hero-stat-card span,
.hero-stat-card small {
  color: var(--muted);
  font-size: 1.02rem;
}

.player-name {
  color: var(--text);
  font-weight: 800;
  font-size: 1em;
}

.hero-stat-card strong:not(.player-name) {
  font-size: clamp(2.55rem, 5.2vw, 3.55rem);
}

.form-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--text);
  font-weight: 700;
}

.name-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(145, 217, 255, 0.2);
  background: rgba(3, 20, 38, 0.82);
  color: var(--text);
  padding: 18px 20px;
  font: inherit;
  font-size: 1.08rem;
  text-align: center;
}

.name-screen .name-input {
  margin-top: 18px;
}

.name-input:focus {
  outline: 2px solid rgba(255, 209, 102, 0.45);
  border-color: rgba(255, 209, 102, 0.65);
}

.input-error {
  min-height: 24px;
  margin-top: 10px;
  color: var(--danger);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.input-error.is-visible {
  opacity: 1;
}

.tutorial-toggle-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.tutorial-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tutorial-toggle-copy strong {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.tutorial-toggle-copy p {
  display: none;
}

.tutorial-toggle-btn {
  position: relative;
  width: 58px;
  min-width: 58px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  cursor: pointer;
}

.tutorial-toggle-btn__track {
  position: relative;
  display: block;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(145deg, #7de28d, #3ebc63);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 18px rgba(31, 103, 58, 0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tutorial-toggle-btn__track::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

.tutorial-toggle-btn::after {
  content: attr(aria-pressed);
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tutorial-toggle-btn__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #edf5fb);
  box-shadow: 0 6px 12px rgba(3, 20, 38, 0.18);
  transform: translateX(24px);
  transition: transform 0.2s ease;
}

.tutorial-toggle-btn.is-off .tutorial-toggle-btn__track {
  background: linear-gradient(145deg, #c5d2de, #9eb2c4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 18px rgba(41, 64, 86, 0.16);
}

.tutorial-toggle-btn.is-off .tutorial-toggle-btn__thumb {
  transform: translateX(0);
}

.tutorial-toggle-card.is-hidden {
  display: none;
}

.end-tutorial-toggle,
.confirm-tutorial-toggle {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.end-tutorial-toggle {
  display: none;
}

.leaderboard-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 660px);
  margin-left: auto;
  margin-right: auto;
}

.leaderboard-screen h2 {
  font-size: clamp(2.3rem, 4.7vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.leaderboard-head,
.leaderboard-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.55fr) minmax(90px, 0.72fr) minmax(120px, 0.92fr);
  gap: 14px;
  align-items: center;
}

.leaderboard-head {
  width: min(100%, 660px);
  margin: 24px auto 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard-head span:nth-child(3),
.leaderboard-head span:nth-child(4) {
  text-align: right;
}

.leaderboard-item {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
}

.leaderboard-rank {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-warm);
}

.leaderboard-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  font-weight: 800;
  text-align: right;
}

.leaderboard-time {
  font-weight: 800;
  text-align: right;
}

.leaderboard-empty {
  color: var(--muted);
  text-align: center;
  padding: 26px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.countdown-overlay {
  background: rgba(2, 10, 19, 0.58);
}

.countdown-card {
  min-width: min(72vw, 420px);
  text-align: center;
  border-radius: 30px;
  padding: 34px 28px;
  background: rgba(3, 20, 38, 0.92);
  border: 1px solid rgba(145, 217, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.countdown-number {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent-warm);
  margin: 10px 0 8px;
}

.countdown-name {
  color: var(--muted);
  font-size: 1.05rem;
}

.overlay-list {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 640px);
  margin: 22px auto 24px;
}

.end-stats div {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.end-stats span {
  color: var(--muted);
}

.end-stats strong {
  font-size: 1.7rem;
}

.end-screen.large-overlay-card {
  width: min(840px, 100%);
}

.confirm-screen.large-overlay-card {
  width: min(760px, 100%);
}

.pause-screen {
  text-align: center;
}

.pause-screen p,
.pause-screen h2 {
  text-align: center;
}

.pause-screen .primary-btn {
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
}

.end-screen h2,
.end-screen #endSummary,
.confirm-screen #confirmMessage {
  text-align: center;
}

.end-screen h2 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.end-screen #endSummary,
.confirm-screen #confirmMessage {
  width: min(100%, 40rem);
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.end-actions {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  align-items: stretch;
}

.end-actions-row,
.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1120px) {
  .app-shell {
    width: calc(100vw - 18px);
  }

  .brand {
    max-width: 360px;
  }

  .hud {
    min-width: 460px;
  }

  .game-layout {
    grid-template-columns: 470px minmax(0, 1fr);
  }

  .control-panel {
    max-width: 470px;
  }
}

@media (max-width: 920px) {
  :root {
    --footer-banner-height: 78px;
    --footer-logo-size: 60px;
    --footer-logo-lift: -6px;
  }

  body {
    height: auto;
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    padding-bottom: calc(var(--footer-banner-height) + 24px);
    grid-template-rows: auto auto;
  }

  .topbar {
    flex-direction: column;
  }

  .brand {
    max-width: none;
  }

  .hud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

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

  .control-panel {
    max-width: none;
  }

  .panel-card,
  .graph-panel {
    padding: 18px;
    border-radius: 22px;
  }

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

  .number-chip {
    min-height: 72px;
    font-size: 1.45rem;
  }

  .formula-board {
    min-height: 96px;
    padding: 16px;
  }

  .formula-line {
    gap: 10px;
    font-size: 1.45rem;
  }

  .drop-slot {
    min-width: 76px;
    height: 58px;
    border-radius: 14px;
  }

  .graph-header {
    flex-direction: column;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .overlay-card {
    padding: 24px;
  }

  .large-overlay-card {
    padding: 30px 24px;
  }

  .stage-intro-card {
    padding: 28px 22px;
  }

  .stage-intro-card h2 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .tutorial-stage-banner {
    min-height: 96px;
    padding: 22px 24px;
  }

  .stage-intro-subtitle {
    font-size: 0.96rem;
  }

  .tutorial-hint-bubble {
    width: min(296px, calc(100vw - 20px));
    font-size: 0.9rem;
  }

  .tutorial-hint-ghost {
    width: 72px;
    height: 72px;
    font-size: 1.36rem;
  }

  .start-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: block;
  }

  .tutorial-toggle-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .tutorial-toggle-btn {
    margin: 0 auto;
  }

  .tutorial-demo-head {
    flex-direction: column;
    text-align: center;
  }

  .tutorial-playground {
    padding: 112px 14px 16px;
  }

  .tutorial-callout {
    width: calc(100% - 24px);
    font-size: 0.9rem;
  }

  .tutorial-ghost-chip {
    width: 72px;
    height: 72px;
    font-size: 1.36rem;
  }

  .school-banner {
    padding: 4px 16px;
    gap: 12px;
  }

  .school-banner__text {
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  :root {
    --footer-banner-height: 90px;
    --footer-logo-size: 52px;
    --footer-logo-lift: -4px;
  }

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

  .side-actions-row,
  .end-actions-row,
  .confirm-actions,
  .leaderboard-head,
  .leaderboard-item {
    grid-template-columns: 1fr;
  }

  .leaderboard-head span:nth-child(3),
  .leaderboard-head span:nth-child(4),
  .leaderboard-score,
  .leaderboard-time {
    text-align: left;
  }

  .end-stats {
    grid-template-columns: 1fr;
  }

  .tutorial-demo-card {
    padding: 18px 14px;
  }

  .tutorial-playground {
    padding: 122px 10px 12px;
  }

  .stage-intro-card {
    padding: 24px 18px;
  }

  .tutorial-stage-banner {
    border-radius: 28px;
    min-height: 88px;
    padding: 18px 18px;
  }

  .tutorial-stage-banner h2 {
    font-size: clamp(1.18rem, 6.2vw, 1.9rem);
    letter-spacing: 0.08em;
  }

  .tutorial-stage-banner p {
    font-size: 0.82rem;
  }

  .stage-intro-subtitle {
    font-size: 0.9rem;
  }

  .stage-intro-lead {
    font-size: 0.92rem;
  }

  .tutorial-hint-bubble {
    width: min(260px, calc(100vw - 16px));
    font-size: 0.84rem;
  }

  .tutorial-hint-ghost {
    width: 64px;
    height: 64px;
    font-size: 1.22rem;
  }

  .tutorial-callout {
    font-size: 0.84rem;
  }

  .tutorial-ghost-chip {
    width: 64px;
    height: 64px;
    font-size: 1.22rem;
  }

  .school-banner {
    padding: 4px 12px;
    gap: 10px;
  }

  .school-banner__text {
    font-size: 0.74rem;
    line-height: 1.12;
  }
}
