@font-face {
  font-family: BMM;
  src: url("/fonts/DejaVuSans.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: BMM;
  src: url("/fonts/DejaVuSans-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}
:root {
  --paper: #f7f6f2;
  --ink: #222b35;
  --muted: #6b716f;
  --orange: #ef5934;
  --orange-dark: #ca3f1d;
  --line: #dedfd8;
  --green: #2e6654;
  --soft-green: #e6eee6;
  --yellow: #e5c967;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 12px 32px #2631270b;
  font-family: BMM, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(40px, 5.3vw, 70px);
  line-height: 1.07;
  font-weight: 800;
}
h2 {
  font-size: 30px;
  line-height: 1.16;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.site-shell {
  max-width: 1220px;
  margin: auto;
  padding: 0 48px;
}
.site-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.brand-mark {
  height: 36px;
  width: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  display: block;
}
.brand-dot {
  color: var(--orange);
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}
.nav-play {
  padding: 10px 0;
}
.profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e9e6db;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}
.profile-link #player-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.site-footer a {
  max-width: 70%;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 63px 0 48px;
}
.hero h1 {
  margin: 20px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-copy > p {
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.hero-notes {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
}
.hero-notes span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-notes span::before {
  content: "✓";
  color: var(--green);
  font-size: 13px;
}
.math-scene {
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#d1d4c9 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.sample-card {
  width: 285px;
  background: #fff;
  border: 1px solid #e6e4dc;
  border-radius: 18px;
  box-shadow: 0 24px 40px #2631270d;
  transform: rotate(-7deg);
  padding: 25px;
  position: relative;
}
.sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.sample-top b {
  color: var(--green);
}
.sample-equation {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -2px;
  padding: 32px 0 16px;
}
.sample-answer {
  border: 1px solid #c7d7c8;
  border-radius: 10px;
  background: #f0f5ee;
  color: var(--green);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 11px;
}
.scene-sticker {
  position: absolute;
  border: 1px solid #dbc878;
  border-radius: 12px;
  background: #f1dea3;
  right: 4px;
  bottom: 22px;
  padding: 14px 20px;
  transform: rotate(7deg);
  font-size: 11px;
  box-shadow: 0 6px 12px #26312708;
}
.scene-sticker b {
  display: block;
  font-size: 24px;
  margin-top: 4px;
  letter-spacing: -1px;
}
.scene-spark {
  position: absolute;
  right: 10%;
  top: 18px;
  font-size: 53px;
  color: var(--orange);
  transform: rotate(12deg);
}
.scene-label {
  position: absolute;
  left: 0;
  bottom: 15px;
  color: var(--muted);
  font-size: 10px;
  transform: rotate(-7deg);
}
.play-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 27px;
  border-bottom: 1px solid var(--line);
}
.panel-top > span {
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 7px;
  background: var(--paper);
  border: 1px solid #e6e5de;
  border-radius: 10px;
  padding: 4px;
}
.tabs button {
  background: none;
  border: 0;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 6px #0000000d;
  font-weight: 700;
}
.panel-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 35px;
  padding: 26px 27px;
}
.settings-label {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.operations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.operation {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  min-height: 83px;
}
.operation .symbol {
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
}
.operation[aria-pressed="true"] {
  background: #fff3ec;
  border-color: #eead94;
  color: var(--orange-dark);
}
.operation[aria-pressed="true"] .symbol {
  color: var(--orange);
}
.difficulty-block {
  margin-top: 23px;
}
.difficulty-row {
  display: flex;
  gap: 9px;
  align-items: center;
}
.difficulty {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 18px;
  color: var(--muted);
  font-size: 11px;
}
.difficulty[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.mode-detail {
  font-size: 10px;
  color: var(--muted);
  margin: 11px 0 0;
  min-height: 16px;
  line-height: 1.5;
}
.launch-box {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.launch-box h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.launch-box p {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 17px;
}
.button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 19px;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 12px;
  font-weight: 700;
  min-height: 45px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--paper);
}
.button.dark {
  background: var(--ink);
}
.button.dark:hover {
  background: #374251;
}
.button.small {
  padding: 9px 13px;
  min-height: 36px;
  font-size: 11px;
}
.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--green);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.launch-box small {
  text-align: center;
  margin-top: 9px;
  font-size: 9px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 33px;
}
.step {
  display: flex;
  gap: 13px;
}
.step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eae9e0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #6d726b;
}
.step h3 {
  font-size: 11px;
  margin: 2px 0 7px;
}
.step p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.resume-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0 -20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--soft-green);
  font-size: 12px;
}
.page {
  max-width: 820px;
  margin: 48px auto 0;
}
.page-heading {
  margin-bottom: 27px;
}
.page-heading h1 {
  font-size: 43px;
  margin: 14px 0 10px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
}
.back-link {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}
.card {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.narrow {
  max-width: 530px;
}
.center {
  text-align: center;
}
.mode-pill {
  display: inline-flex;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 10px;
  color: var(--muted);
}
.game-page {
  max-width: 560px;
  margin: 40px auto 0;
}
.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.game-timer {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  gap: 7px;
  align-items: center;
}
.game-timer.urgent {
  color: var(--orange-dark);
}
.game-card {
  padding: 27px 42px 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.progress-track {
  height: 4px;
  border-radius: 5px;
  background: #ebece4;
  margin-top: 12px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  transition: width 0.2s;
}
.equation {
  font-size: clamp(36px, 8vw, 62px);
  letter-spacing: -2px;
  font-weight: 700;
  margin: 37px 0 26px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.answer-wrap {
  position: relative;
  margin-bottom: 16px;
}
.answer-input {
  width: 100%;
  height: 64px;
  border: 1px solid #cbcec5;
  background: var(--paper);
  border-radius: 12px;
  text-align: center;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--ink);
  caret-color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.answer-input::placeholder {
  font-size: 13px;
  letter-spacing: 0;
  color: #8c918a;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.key {
  background: #f2f2ed;
  color: var(--ink);
  border: 1px solid #e8e9e1;
  border-radius: 10px;
  min-height: 49px;
  font-size: 20px;
}
.key:hover {
  background: #e8ebe3;
}
.key.action {
  font-size: 12px;
  color: var(--muted);
}
.key.enter {
  background: var(--orange);
  color: white;
  font-size: 12px;
  border-color: var(--orange);
}
.game-hint {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 16px;
}
.countdown-number {
  font-size: 110px;
  line-height: 1.4;
  color: var(--orange);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 15px;
}
.countdown-title {
  margin-top: 20px;
  font-size: 23px;
}
.countdown-text {
  color: var(--muted);
  font-size: 12px;
}
.countdown-card {
  min-height: 370px;
  display: grid;
  align-content: center;
}
.notice {
  padding: 13px 16px;
  border-radius: 10px;
  background: #fff3ec;
  color: #974628;
  font-size: 11px;
  line-height: 1.6;
  margin: 16px 0;
}
.notice.green {
  background: var(--soft-green);
  color: var(--green);
}
.inline-error {
  min-height: 0;
  color: var(--orange-dark);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 10px;
}
.result-icon {
  height: 58px;
  width: 58px;
  border-radius: 16px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  transform: rotate(-5deg);
}
.result-icon.failed {
  color: var(--orange);
  background: #fff0e9;
}
.result-time {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -3px;
  margin: 13px 0;
  font-variant-numeric: tabular-nums;
}
.result-time span {
  font-size: 22px;
  letter-spacing: -1px;
  color: var(--muted);
}
.result-caption {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 22px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.failure-detail {
  padding: 17px;
  background: var(--paper);
  border-radius: 12px;
  margin-top: 20px;
  font-size: 13px;
}
.failure-detail .math {
  font-size: 25px;
  letter-spacing: -1px;
  margin: 6px 0;
}
.share-box {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.share-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}
.copy-row {
  display: flex;
  gap: 9px;
}
.copy-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
}
.invite-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 27px;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.rule-grid b {
  font-size: 23px;
  display: block;
  letter-spacing: -1px;
}
.rule-grid span {
  font-size: 9px;
  color: var(--muted);
}
.invite-card h1 {
  font-size: 39px;
  margin: 22px 0 10px;
}
.invite-card .button {
  width: 100%;
  margin-top: 12px;
}
.deadline-text {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.leaderboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.status-chip {
  padding: 7px 10px;
  background: var(--soft-green);
  color: var(--green);
  border-radius: 30px;
  font-size: 9px;
  white-space: nowrap;
}
.status-chip.open {
  background: #f7ecd0;
  color: #886e27;
}
.board-summary {
  display: flex;
  gap: 25px;
  margin: 20px 0;
  font-size: 11px;
  color: var(--muted);
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 25px;
}
.podium-place {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 8px;
  text-align: center;
  min-width: 0;
}
.podium-place:first-child {
  background: #fbf4dc;
  border-color: #e4d393;
  padding-top: 28px;
}
.podium-rank {
  font-size: 24px;
  margin-bottom: 9px;
}
.podium-name {
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.podium-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
td {
  padding: 16px 9px;
  border-bottom: 1px solid #eeeee8;
  overflow-wrap: anywhere;
}
td:first-child,
th:first-child {
  width: 50px;
}
td:last-child,
th:last-child {
  text-align: right;
  white-space: nowrap;
}
tr.me {
  background: #f0f5ed;
}
tr.me td:nth-child(2)::after {
  content: "You";
  margin-left: 9px;
  font-size: 9px;
  color: var(--green);
}
.row-failed {
  color: var(--muted);
  font-size: 10px;
}
.board-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.board-footer span {
  font-size: 10px;
  color: var(--muted);
}
.profile-top {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}
.profile-title {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.profile-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--soft-green);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--green);
}
.profile-title h1 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.profile-title p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 23px 0;
}
.stat {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.stat b {
  display: block;
  font-size: 25px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 15px;
}
.section-heading h2 {
  font-size: 21px;
}
.section-heading span {
  font-size: 10px;
  color: var(--muted);
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.history-row:last-child {
  border-bottom: 0;
}
.history-row small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}
.history-row .history-status {
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
}
.empty-state {
  text-align: center;
  padding: 27px 15px;
  color: var(--muted);
  font-size: 12px;
}
.form-field {
  display: block;
  font-size: 11px;
  margin-bottom: 17px;
}
.form-field input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink);
}
.form-field small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 23px;
}
dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 30px 90px #18231a40;
}
dialog::backdrop {
  background: #222b3570;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 24px;
}
.close-button {
  background: var(--paper);
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
}
.dialog-text {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 12px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  z-index: 20;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading-view {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.loading-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1s ease-in-out infinite;
}
.error-page {
  padding: 80px 0;
  text-align: center;
  max-width: 500px;
  margin: auto;
}
.error-page h1 {
  font-size: 36px;
  margin-bottom: 15px;
}
.error-page p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.noscript {
  padding: 25px;
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}
@media (min-width: 1000px) {
  .hero h1 {
    font-size: 65px;
  }
}
@media (max-width: 900px) {
  .site-shell {
    padding: 0 28px;
  }
  .hero {
    gap: 20px;
    padding-top: 45px;
  }
  .math-scene {
    height: 280px;
  }
  .sample-card {
    width: 245px;
    padding: 20px;
  }
  .sample-equation {
    font-size: 35px;
  }
  .scene-sticker {
    right: -5px;
    padding: 10px 16px;
  }
  .hero-notes {
    gap: 12px;
  }
  .hero-notes span {
    font-size: 9px;
  }
  .panel-body {
    grid-template-columns: 1fr 210px;
    gap: 25px;
  }
  .launch-box {
    padding-left: 23px;
  }
  .launch-box h3 {
    font-size: 17px;
  }
  .difficulty {
    padding: 9px 14px;
  }
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 620px) {
  .site-shell {
    padding: 0 20px;
  }
  .site-header {
    height: 77px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
    font-size: 20px;
  }
  nav {
    gap: 12px;
  }
  .nav-play {
    display: none;
  }
  .profile-link #player-name {
    display: none;
  }
  .profile-link {
    gap: 6px;
  }
  .hero {
    display: block;
    padding: 35px 0 30px;
  }
  .hero h1 {
    font-size: 47px;
    margin: 17px 0;
  }
  .hero-copy > p {
    font-size: 12px;
    max-width: 330px;
  }
  .hero-notes {
    gap: 15px;
    margin-top: 20px;
  }
  .math-scene {
    display: none;
  }
  .panel-top {
    padding: 16px;
    gap: 12px;
  }
  .panel-top > span {
    display: none;
  }
  .tabs {
    width: 100%;
  }
  .tabs button {
    flex: 1;
    font-size: 11px;
  }
  .panel-body {
    display: block;
    padding: 20px 16px;
  }
  .operations {
    gap: 7px;
  }
  .operation {
    font-size: 9px;
    padding: 12px 2px;
    min-height: 77px;
  }
  .operation .symbol {
    font-size: 25px;
  }
  .difficulty-row {
    gap: 8px;
  }
  .difficulty {
    flex: 1;
    padding: 10px 5px;
  }
  .difficulty-block {
    margin-top: 19px;
  }
  .launch-box {
    margin-top: 21px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .launch-box p {
    margin: 8px 0 15px;
    font-size: 11px;
  }
  .launch-box h3 {
    font-size: 17px;
  }
  .steps {
    display: block;
    margin-top: 25px;
  }
  .step {
    margin-top: 20px;
    gap: 12px;
  }
  .step p {
    font-size: 11px;
  }
  .step h3 {
    font-size: 12px;
  }
  .site-footer {
    margin-top: 34px;
    display: block;
    padding: 20px 0;
    line-height: 1.7;
    font-size: 10px;
  }
  .site-footer span {
    display: block;
    margin-top: 4px;
  }
  .page {
    margin-top: 28px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .card {
    padding: 23px 18px;
  }
  .game-page {
    margin-top: 26px;
  }
  .game-card {
    padding: 21px 21px 24px;
  }
  .game-meta {
    margin-bottom: 15px;
    font-size: 10px;
  }
  .equation {
    font-size: 44px;
    margin: 32px 0 23px;
  }
  .key {
    min-height: 50px;
  }
  .game-hint {
    font-size: 9px;
  }
  .countdown-card {
    min-height: 350px;
  }
  .invite-card h1 {
    font-size: 33px;
  }
  .invite-intro {
    font-size: 12px;
  }
  .rule-grid {
    gap: 7px;
  }
  .rule-grid b {
    font-size: 22px;
  }
  .rule-grid span {
    font-size: 9px;
  }
  .result-time {
    font-size: 58px;
  }
  .leaderboard-head h2 {
    font-size: 24px;
  }
  .board-summary {
    gap: 15px;
    font-size: 10px;
  }
  .podium {
    gap: 7px;
  }
  .podium-place {
    padding: 15px 5px;
  }
  .podium-name {
    font-size: 10px;
  }
  .podium-time {
    font-size: 9px;
  }
  .podium-rank {
    font-size: 21px;
  }
  td {
    font-size: 11px;
    padding: 14px 5px;
  }
  th {
    padding: 10px 5px;
    font-size: 8px;
  }
  .board-footer {
    display: block;
  }
  .board-footer .button {
    margin-top: 12px;
  }
  .profile-top {
    display: block;
  }
  .profile-top > .button {
    margin-top: 17px;
  }
  .profile-title h1 {
    font-size: 26px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat b {
    font-size: 24px;
  }
  .resume-banner {
    margin-top: 18px;
    font-size: 11px;
    padding: 12px;
  }
  .resume-banner .button {
    padding: 9px 12px;
  }
  .copy-row {
    gap: 7px;
  }
  .copy-row .button {
    padding: 9px 12px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading span {
    font-size: 9px;
  }
  .history-row {
    font-size: 11px;
  }
  .actions .button {
    flex: 1;
  }
  .profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#app:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.button:not(.secondary):not(.dark),
.key.enter {
  background: #cf4422;
  border-color: #cf4422;
}
.button:not(.secondary):not(.dark):hover,
.key.enter:hover {
  background: var(--orange-dark);
}
.copy-row .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.form-field input[type="checkbox"] {
  display: inline-block;
  width: auto;
  padding: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
#delete-account-form .form-actions {
  flex-wrap: wrap;
}

.deletion-policy h1 {
  margin-bottom: 18px;
}
.deletion-policy h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  line-height: 1.3;
}
.deletion-policy p {
  font-size: 14px;
  line-height: 1.7;
}
