:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --ink-soft: #657084;
  --line: #d9dee8;
  --line-strong: #7d8798;
  --blue: #2f6fe4;
  --blue-dark: #1f55b8;
  --blue-soft: #e9f1ff;
  --blue-related: #f2f6fd;
  --coral: #e45f55;
  --coral-soft: #fff0ee;
  --gold: #d99b35;
  --shadow: 0 16px 45px rgba(30, 48, 82, 0.09);
  --shadow-soft: 0 6px 20px rgba(30, 48, 82, 0.07);
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

html {
  background: var(--page);
  touch-action: manipulation;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 111, 228, 0.34);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.ambient {
  display: none;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, var(--safe-top)) 24px max(28px, var(--safe-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.brand-mark i {
  display: block;
  border-radius: 2px;
  background: #ffffff;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) {
  background: #7fb1ff;
}

.brand-mark i:nth-child(4) {
  background: #ff887f;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.streak-pill strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.streak-dot {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 155, 53, 0.14);
}

.icon-button,
.modal-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.icon-button:hover,
.modal-close:hover {
  border-color: #b3c6e9;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.layout {
  display: grid;
  grid-template-columns: minmax(520px, 700px) 360px;
  align-items: start;
  justify-content: center;
  gap: 28px;
}

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

.intro-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker {
  grid-column: 1 / -1;
}

.kicker span {
  margin-right: 7px;
  color: var(--coral);
}

.intro-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.intro-lede {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: right;
}

.game-card {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-card-head,
.game-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-head {
  gap: 14px;
  padding: 0 2px 16px;
}

.game-card-head .eyebrow {
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.game-card-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 740;
}

.pause-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.pause-button:hover,
.pause-button[aria-pressed="true"] {
  border-color: #a9c5f8;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.pause-glyph {
  display: inline-flex;
  gap: 3px;
}

.pause-glyph i {
  display: block;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: currentColor;
}

.board-wrap {
  position: relative;
  overflow: hidden;
  border: 2px solid #384355;
  border-radius: 8px;
  background: var(--surface);
}

.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 1;
  background: var(--line);
}

.cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #d3d9e3;
  border-bottom: 1px solid #d3d9e3;
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  line-height: 1;
  transition: background-color 100ms ease, color 100ms ease, box-shadow 100ms ease;
}

.cell:nth-child(3n):not(:nth-child(9n)) {
  border-right: 2px solid #667185;
}

.cell:nth-child(n+19):nth-child(-n+27),
.cell:nth-child(n+46):nth-child(-n+54) {
  border-bottom: 2px solid #667185;
}

.cell:nth-child(n+73) {
  border-bottom: 0;
}

.cell:nth-child(9n) {
  border-right: 0;
}

.cell:hover {
  background: #f7faff;
}

.cell.related {
  background: var(--blue-related);
}

.cell.same-number {
  background: #dce9ff;
}

.cell.selected {
  z-index: 1;
  background: #c9ddff;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.cell.given {
  color: var(--ink);
  font-weight: 760;
}

.cell.user-filled {
  font-weight: 700;
}

.cell.conflict,
.cell.invalid {
  background: var(--coral-soft);
  color: #c84138;
}

.cell.invalid {
  animation: nudge 230ms ease both;
}

.cell-value,
.cell-notes {
  pointer-events: none;
}

.cell-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  width: 82%;
  height: 82%;
  color: var(--ink-soft);
  font-size: clamp(0.42rem, 1.2vw, 0.68rem);
  font-weight: 700;
}

.cell-note {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.game-card-foot {
  min-height: 46px;
  gap: 14px;
  padding: 12px 2px 0;
}

.stat-block {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.stat-label {
  margin-right: 2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.stat-block strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.stat-muted {
  color: #9aa3b2;
  font-size: 0.74rem;
}

.timer-block {
  margin-right: auto;
}

.foot-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.game-status {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

.board-wrap.is-paused .sudoku-board {
  filter: blur(12px);
  pointer-events: none;
}

.paused-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(3px);
}

.paused-content {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--ink);
  text-align: center;
}

.pause-ring {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 800;
}

.paused-content strong {
  font-size: 1.18rem;
}

.paused-content > span:not(.pause-ring) {
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.control-column {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding-top: 66px;
}

.panel,
.tip-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.panel-heading h2,
.tip-card h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.panel-heading .eyebrow,
.tip-card .eyebrow {
  color: var(--ink-soft);
  letter-spacing: 0.09em;
}

.panel-index {
  display: none;
}

.difficulty-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 4px;
  border-radius: 10px;
  background: #eef1f6;
}

.difficulty-switch button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 680;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.difficulty-switch button:hover {
  color: var(--ink);
}

.difficulty-switch button.active {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(31, 48, 77, 0.1);
  color: var(--blue-dark);
}

.compact-heading {
  margin-bottom: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.tool-button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 680;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.tool-button:hover:not(:disabled) {
  border-color: #b7ccf2;
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.tool-button.accent-tool {
  border-color: #f1d8a9;
  background: #fffaf0;
  color: #996412;
}

.tool-button em {
  color: inherit;
  font-size: 0.62rem;
  font-style: normal;
}

.tool-icon {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1;
}

.accent-tool .tool-icon {
  color: var(--gold);
}

.notes-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.notes-toggle:hover,
.notes-toggle[aria-pressed="true"] {
  border-color: #b3cbf6;
  background: var(--blue-soft);
}

.notes-symbol {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 3px;
  width: 17px;
  height: 17px;
}

.notes-symbol i {
  border: 1px solid var(--ink-soft);
}

.notes-toggle > span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
}

.notes-toggle strong {
  font-size: 0.74rem;
}

.notes-toggle small {
  color: var(--ink-soft);
  font-size: 0.63rem;
}

.toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #bdc5d1;
  transition: background-color 150ms ease;
}

.toggle-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 32, 50, 0.2);
  transition: transform 150ms ease;
}

.notes-toggle[aria-pressed="true"] .toggle-track {
  background: var(--blue);
}

.notes-toggle[aria-pressed="true"] .toggle-track i {
  transform: translateX(14px);
}

.number-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.number-pad button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 1.28rem;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.number-pad button:hover:not(:disabled),
.number-pad button.is-candidate {
  border-color: #a7c4fa;
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.number-pad button.is-complete {
  color: #a6afbd;
  opacity: 0.58;
}

.number-pad button:disabled {
  cursor: not-allowed;
}

.keyboard-hint {
  margin: 12px 0 0;
  color: #8993a3;
  font-size: 0.63rem;
  text-align: center;
}

.keyboard-hint span {
  margin: 0 4px;
}

kbd {
  display: inline-block;
  min-width: 18px;
  padding: 2px 4px;
  border: 1px solid #c7ced8;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.59rem;
  text-align: center;
}

.tip-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 17px 19px;
  background: #fbfcff;
}

.tip-mark {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 0.8;
}

.tip-card h2 {
  font-size: 0.98rem;
}

.tip-card p:last-child {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #929baa;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-mark {
  color: var(--coral);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: max(24px, calc(var(--safe-bottom) + 24px));
  max-width: min(90vw, 360px);
  padding: 11px 15px;
  border: 1px solid #c8d8f6;
  border-radius: 10px;
  background: #172a48;
  box-shadow: 0 14px 35px rgba(24, 39, 67, 0.22);
  color: #ffffff;
  font-size: 0.76rem;
  text-align: center;
  transform: translateX(50%);
  animation: toast-in 180ms ease both;
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 30, 48, 0.5);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(27, 42, 69, 0.24);
  color: var(--ink);
}

.modal .eyebrow {
  color: var(--blue);
}

.modal h2 {
  margin: 8px 0 10px;
  font-size: 1.75rem;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-body-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.7;
}

.help-list {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.modal-stat {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  text-align: center;
}

.modal-stat strong,
.modal-stat span {
  display: block;
}

.modal-stat strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.modal-stat span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.primary-button.compact {
  min-height: 36px;
  margin-top: 8px;
  padding: 7px 14px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.secondary-button:hover {
  border-color: #aeb7c5;
  background: var(--surface-soft);
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(50%, 8px); }
  to { opacity: 1; transform: translate(50%, 0); }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(480px, 620px) 320px;
    gap: 20px;
  }

  .app-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .control-column {
    padding-top: 62px;
  }

  .panel {
    padding: 16px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(78px + var(--safe-bottom));
    background: #ffffff;
  }

  .app-shell {
    width: 100%;
    padding: max(10px, var(--safe-top)) 12px max(18px, var(--safe-bottom));
  }

  .topbar {
    min-height: 50px;
    margin-bottom: 15px;
    padding: 0 2px 10px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    padding: 5px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .streak-pill {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .layout {
    display: block;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    gap: 3px;
    margin: 0 2px 10px;
  }

  .kicker {
    display: none;
  }

  .intro-copy h1 {
    font-size: 1.45rem;
  }

  .intro-lede {
    font-size: 0.76rem;
    text-align: left;
  }

  .game-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .game-card-head {
    padding: 8px 2px 11px;
  }

  .game-card-head .eyebrow {
    font-size: 0.58rem;
  }

  .game-card-head h2 {
    font-size: 1rem;
  }

  .pause-button {
    min-height: 34px;
  }

  .board-wrap {
    border-radius: 5px;
  }

  .cell {
    font-size: clamp(1.12rem, 6.7vw, 1.65rem);
  }

  .cell-notes {
    font-size: clamp(0.4rem, 2.7vw, 0.62rem);
  }

  .game-card-foot {
    min-height: 44px;
    gap: 10px;
    padding: 10px 2px 0;
  }

  .game-status {
    display: none;
  }

  .control-column {
    position: static;
    gap: 10px;
    margin-top: 12px;
    padding-top: 0;
  }

  .panel,
  .tip-card {
    border-radius: 12px;
    box-shadow: none;
  }

  .panel {
    padding: 14px;
  }

  .panel-heading {
    margin-bottom: 11px;
  }

  .panel-heading h2 {
    font-size: 0.94rem;
  }

  .panel-heading .eyebrow {
    display: none;
  }

  .difficulty-panel {
    padding: 12px;
  }

  .difficulty-panel .panel-heading {
    display: none;
  }

  .difficulty-switch button {
    min-height: 34px;
  }

  .toolkit-panel {
    padding: 12px;
  }

  .toolkit-panel .panel-heading {
    display: none;
  }

  .tool-button {
    min-height: 58px;
    padding: 8px 3px 6px;
  }

  .notes-toggle {
    margin-top: 9px;
    padding: 9px 10px;
  }

  .number-pad {
    position: fixed;
    z-index: 15;
    right: 10px;
    bottom: max(8px, var(--safe-bottom));
    left: 10px;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 35px rgba(26, 43, 73, 0.18);
    backdrop-filter: blur(12px);
  }

  .number-pad button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--blue-soft);
    font-size: 1.05rem;
  }

  .number-pad button.is-candidate {
    background: #d6e6ff;
  }

  .keyboard-hint,
  .tip-card,
  .app-footer {
    display: none;
  }

  .toast {
    bottom: calc(76px + var(--safe-bottom));
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-right: 9px;
    padding-left: 9px;
  }

  .brand-copy small {
    display: none;
  }

  .streak-pill > span:not(.streak-dot):last-child {
    display: none;
  }

  .number-pad {
    right: 6px;
    left: 6px;
    gap: 2px;
    padding: 6px;
  }

  .number-pad button {
    min-height: 43px;
  }
}
