.sightreadle-page {
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.92), rgba(255, 255, 255, 0.98) 320px),
    radial-gradient(circle at 15% 0%, rgba(58, 134, 255, 0.10), transparent 280px);
}

.sightreadle-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 44px;
}

.sr-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sr-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #172033;
}

.sr-topbar p {
  margin: 4px 0 0;
  color: #596273;
  font-weight: 600;
}

.sr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-landscape-tip {
  display: none;
}

.mobile-landscape-tip[hidden] {
  display: none !important;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  color: #263247;
  background: #fff;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.icon-button:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.sightreadle-page button:disabled,
.sightreadle-page select:disabled,
.sightreadle-page input:disabled {
  cursor: not-allowed;
}

.sightreadle-page button:disabled {
  opacity: 0.48;
  transform: none;
}

.sr-workbench {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.control-panel,
.notation-panel {
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(22, 32, 50, 0.08);
}

.control-panel {
  padding: 16px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: 8px;
  background: #edf2f7;
  margin-bottom: 16px;
}

.mode-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526070;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.86rem;
}

.mode-button.active {
  background: #172033;
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  color: #354158;
  font-size: 0.9rem;
}

.field-group select {
  min-height: 44px;
  background-color: #fbfcfe;
}

.tempo-field {
  display: block;
}

.tempo-field.disabled {
  opacity: 0.48;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slider-label-row strong {
  color: #172033;
  font-family: var(--font-heading);
}

.tempo-field input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--primary);
}

.tempo-field input[type="range"]:disabled {
  cursor: not-allowed;
}

.toggle-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  margin: 0 0 14px;
  color: #354158;
  cursor: pointer;
}

.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.start-button {
  width: 100%;
  min-height: 46px;
}

.mic-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.mic-panel span {
  display: block;
  color: #627086;
}

.mic-panel strong {
  display: block;
  margin: 6px 0;
  color: #172033;
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.notation-panel {
  min-width: 0;
  padding: 16px;
}

.notation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notation-toolbar div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.countdown-value {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #0f5ca7;
  font-weight: 800;
}

.seed-pill {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid #dde5ef;
  border-radius: 999px;
  color: #596273;
  background: #fbfcfe;
  font-size: 0.9rem;
  font-weight: 700;
}

.score-frame {
  position: relative;
  width: 100%;
  height: 306px;
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fffdf8;
  isolation: isolate;
}

.score-output {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 284px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.score-lead {
  position: absolute;
  top: 0;
  left: 0;
  width: 156px;
  height: 284px;
  z-index: 2;
  overflow: hidden;
  background: #fffdf8;
  pointer-events: none;
}

.score-output svg,
.score-lead svg {
  display: block;
  overflow: visible;
}

.score-empty {
  width: min(680px, 100%);
  padding: 84px 18px;
  color: #536074;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
}

.measure-label {
  position: absolute;
  top: 20px;
  color: #667085;
  font: 700 12px var(--font-heading);
  pointer-events: none;
}

.tempo-marking {
  position: absolute;
  top: 28px;
  color: #111827;
  font: italic 700 16px Georgia, 'Times New Roman', serif;
  pointer-events: none;
}

.lives-hearts {
  display: flex;
  justify-content: center;
  gap: 18px;
  min-height: 76px;
  padding: 16px 0 8px;
  color: #dc3545;
  font-size: clamp(3.2rem, 6vw, 4.35rem);
  line-height: 1;
}

.lives-hearts .spent {
  color: #cbd5e1;
}

.feedback-row {
  min-height: 30px;
  margin-top: 12px;
  color: #455166;
  font-weight: 700;
}

.mode-choice-modal {
  z-index: 1200;
}

.mode-choice-content {
  width: min(780px, calc(100% - 24px));
  max-width: 780px;
  padding: 30px;
  border: 1px solid #d8e0ec;
  box-shadow: 0 20px 56px rgba(22, 32, 50, 0.22);
}

.mode-choice-eyebrow {
  margin: 0 0 2px;
  color: #627086;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-choice-content h2 {
  margin: 0 0 22px;
  color: #172033;
  font-size: 1.7rem;
}

.mode-choice-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mode-choice-button {
  min-width: 0;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  padding: 20px;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mode-choice-button:hover,
.mode-choice-button:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(22, 32, 50, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.mode-choice-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.mode-choice-heading i {
  color: var(--primary);
}

.mode-choice-description,
.mode-choice-reset {
  overflow-wrap: anywhere;
}

.mode-choice-description {
  color: #455166;
  font-weight: 700;
}

.mode-choice-reset {
  color: #697586;
  font-size: 0.86rem;
  font-weight: 600;
}

.mode-choice-reset strong {
  color: #172033;
  font-variant-numeric: tabular-nums;
}

.tutorial-welcome-modal {
  z-index: 1210;
}

.tutorial-welcome-content {
  width: min(560px, calc(100% - 24px));
  padding: 30px;
  border: 1px solid #d8e0ec;
  box-shadow: 0 20px 56px rgba(22, 32, 50, 0.22);
}

.tutorial-welcome-content h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 1.7rem;
}

.tutorial-welcome-copy {
  margin: 0 0 18px;
  color: #455166;
  line-height: 1.55;
}

.tutorial-intro-points {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}

.tutorial-intro-points p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: #455166;
  line-height: 1.45;
}

.tutorial-intro-points i {
  padding-top: 3px;
  color: var(--primary);
  text-align: center;
}

.tutorial-intro-points strong {
  color: #172033;
}

.tutorial-welcome-actions {
  justify-content: flex-end;
}

.tutorial-coachmark {
  --tutorial-arrow-left: 50%;
  position: fixed;
  z-index: 1300;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #c9d5e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(22, 32, 50, 0.24);
  color: #172033;
}

.tutorial-coachmark[hidden] {
  display: none;
}

.tutorial-coachmark-arrow {
  position: absolute;
  left: var(--tutorial-arrow-left);
  width: 14px;
  height: 14px;
  border: solid #c9d5e7;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.tutorial-coachmark.below-target .tutorial-coachmark-arrow {
  top: -8px;
  border-width: 1px 0 0 1px;
}

.tutorial-coachmark.above-target .tutorial-coachmark-arrow {
  bottom: -8px;
  border-width: 0 1px 1px 0;
}

.tutorial-coachmark-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #697586;
  font-size: 0.8rem;
  font-weight: 800;
}

.tutorial-skip-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #526070;
  font: inherit;
  cursor: pointer;
}

.tutorial-skip-button:hover,
.tutorial-skip-button:focus-visible {
  color: var(--primary);
  outline: none;
  text-decoration: underline;
}

.tutorial-coachmark h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 1.2rem;
}

.tutorial-coachmark p {
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  color: #455166;
  line-height: 1.5;
}

.tutorial-coachmark-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tutorial-coachmark-actions .btn {
  min-height: 40px;
  padding: 8px 14px;
}

.tutorial-highlight {
  outline: 3px solid #3a86ff;
  outline-offset: 5px;
  box-shadow: 0 0 0 7px rgba(58, 134, 255, 0.15);
}

.how-to-actions {
  margin-top: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.results-modal-content {
  width: min(520px, calc(100% - 24px));
  padding: 28px;
  border: 1px solid #d8e0ec;
  box-shadow: 0 20px 56px rgba(22, 32, 50, 0.2);
}

#game-over-modal {
  z-index: 1100;
}

.results-close-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  line-height: 1;
}

.results-close-button:hover,
.results-close-button:focus-visible {
  background: #edf2f7;
  color: #172033;
  outline: none;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 36px;
}

.results-instrument-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.results-context {
  margin: 0 0 2px;
  color: #627086;
  font-size: 0.9rem;
  font-weight: 700;
}

.results-header h2 {
  margin: 0;
  color: #172033;
  font-size: 1.55rem;
  line-height: 1.2;
}

.results-distance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 18px;
  color: #172033;
}

.results-distance strong {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 0.9;
}

.results-distance span {
  color: #596273;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 15px 0;
  border-top: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
}

.results-stat {
  min-width: 0;
  padding: 0 14px;
  text-align: center;
}

.results-stat:first-child {
  padding-left: 0;
}

.results-stat:last-child {
  padding-right: 0;
}

.results-stat + .results-stat {
  border-left: 1px solid #dfe6ef;
}

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

.results-stat span {
  min-height: 20px;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.results-stat strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #172033;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.results-breakdown {
  min-height: 24px;
  margin: 14px 0 18px;
  color: #596273;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.results-modal-actions .btn {
  min-height: 44px;
  flex: 1 1 160px;
}

.results-modal-actions [hidden] {
  display: none;
}

.results-modal-actions .results-share-button {
  flex-basis: 100%;
}

.results-share-button.copied {
  background: #198754;
}

.tuner-modal-content {
  max-width: 430px;
}

.tuner-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfcfe;
  text-align: center;
}

.tuner-panel span,
.tuner-panel small {
  color: #627086;
  font-weight: 700;
}

.tuner-panel strong {
  color: #172033;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
}

.tuner-rail {
  position: relative;
  height: 16px;
  margin: 8px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc3545 0%, #f59f00 36%, #28a745 48%, #28a745 52%, #f59f00 64%, #dc3545 100%);
}

.tuner-center,
.tuner-needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  border-radius: 999px;
  background: #172033;
}

.tuner-center {
  left: 50%;
  opacity: 0.36;
}

.tuner-needle {
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  transition: left 0.08s linear;
}

.tuner-panel.in-tune .tuner-needle {
  background: #198754;
}

body.dark-theme.sightreadle-page {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 1) 320px),
    radial-gradient(circle at 15% 0%, rgba(77, 171, 255, 0.12), transparent 280px);
}

body.dark-theme .sr-topbar h1,
body.dark-theme .sr-topbar p,
body.dark-theme .slider-label-row strong,
body.dark-theme .mic-panel strong {
  color: var(--text);
}

body.dark-theme .control-panel,
body.dark-theme .notation-panel,
body.dark-theme .icon-button {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-theme .tuner-panel {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-theme .tuner-panel strong,
body.dark-theme .tuner-center,
body.dark-theme .tuner-needle {
  color: var(--text);
  background: var(--text);
}

body.dark-theme .results-modal-content {
  border-color: #3a4352;
}

body.dark-theme .mode-choice-content,
body.dark-theme .mode-choice-button,
body.dark-theme .tutorial-welcome-content,
body.dark-theme .tutorial-coachmark {
  border-color: #3a4352;
  background: #1e1e1e;
}

body.dark-theme .mode-choice-content h2,
body.dark-theme .mode-choice-heading,
body.dark-theme .mode-choice-reset strong,
body.dark-theme .tutorial-welcome-content h2,
body.dark-theme .tutorial-intro-points strong,
body.dark-theme .tutorial-coachmark h2 {
  color: var(--text);
}

body.dark-theme .mode-choice-eyebrow,
body.dark-theme .mode-choice-description,
body.dark-theme .mode-choice-reset,
body.dark-theme .tutorial-welcome-copy,
body.dark-theme .tutorial-intro-points p,
body.dark-theme .tutorial-coachmark-meta,
body.dark-theme .tutorial-coachmark p,
body.dark-theme .tutorial-skip-button {
  color: #b4bdca;
}

body.dark-theme .tutorial-coachmark-arrow {
  border-color: #3a4352;
  background: #1e1e1e;
}

body.dark-theme .results-header h2,
body.dark-theme .results-distance,
body.dark-theme .results-stat strong {
  color: var(--text);
}

body.dark-theme .results-context,
body.dark-theme .results-distance span,
body.dark-theme .results-stat span,
body.dark-theme .results-breakdown {
  color: #b4bdca;
}

body.dark-theme .results-stats,
body.dark-theme .results-stat + .results-stat {
  border-color: #3a4352;
}

body.dark-theme .results-close-button:hover,
body.dark-theme .results-close-button:focus-visible {
  background: #30343b;
  color: var(--text);
}

body.dark-theme .score-frame {
  background: #fdfcf7;
}

body.dark-theme .score-lead {
  background: #fdfcf7;
}

@media (max-width: 940px) {
  .sr-workbench {
    grid-template-columns: 1fr;
  }

  .control-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mode-switch,
  .start-button,
  .mic-panel {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .sightreadle-shell {
    width: min(100% - 20px, 1240px);
    margin-top: 18px;
  }

  .sr-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .sr-topbar h1 {
    font-size: 1.85rem;
  }

  .sr-topbar p {
    margin-top: 2px;
    font-size: 0.9rem;
  }

  .sr-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .control-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .control-panel .field-group,
  .control-panel .toggle-row {
    margin-bottom: 0;
  }

  .mode-switch {
    margin-bottom: 0;
  }

  .notation-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .seed-pill {
    max-width: 58%;
  }

  .notation-panel {
    padding: 10px;
  }

  .score-frame {
    height: 260px;
  }

  .score-lead {
    height: 260px;
  }

  .lives-hearts {
    min-height: 64px;
    padding: 12px 0 6px;
    font-size: 3rem;
  }

  .results-modal-content {
    padding: 22px 18px;
  }

  .mode-choice-content {
    padding: 24px 18px;
  }

  .tutorial-welcome-content {
    padding: 24px 18px;
  }

  .mode-choice-options {
    grid-template-columns: 1fr;
  }

  .mode-choice-button {
    min-height: 126px;
  }

  .tutorial-welcome-actions .btn {
    flex: 1 1 calc(50% - 5px);
  }

  .results-distance strong {
    font-size: 3rem;
  }

  .results-stat {
    padding: 0 8px;
  }

  .results-modal-actions .btn {
    flex-basis: calc(50% - 5px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .results-modal-actions .results-share-button {
    flex-basis: 100%;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .mobile-landscape-tip {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding: 10px 10px 10px 12px;
    border: 1px solid #b8d6f2;
    border-radius: 8px;
    background: #eef7ff;
    color: #284b6d;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .mobile-landscape-tip > i {
    color: #2878c7;
    font-size: 1.05rem;
    text-align: center;
  }

  .mobile-landscape-tip button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #45617d;
    cursor: pointer;
  }

  .mobile-landscape-tip button:hover,
  .mobile-landscape-tip button:focus-visible {
    background: #dbeefe;
    color: #172033;
    outline: none;
  }

  body.dark-theme .mobile-landscape-tip {
    border-color: #315b80;
    background: #172b3d;
    color: #d1e8fb;
  }

  body.dark-theme .mobile-landscape-tip > i,
  body.dark-theme .mobile-landscape-tip button {
    color: #8bc7f5;
  }
}

@media (max-width: 940px) and (max-height: 600px) and (orientation: landscape) {
  #header-placeholder {
    display: none;
  }

  .sightreadle-shell {
    width: calc(100% - 12px);
    margin: 6px auto 16px;
  }

  .sr-topbar {
    min-height: 42px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 6px;
  }

  .sr-topbar h1 {
    font-size: 1.55rem;
  }

  .sr-topbar p {
    display: none;
  }

  .sr-actions {
    width: auto;
    margin-left: auto;
    gap: 6px;
  }

  .sr-actions .btn,
  .sr-actions .icon-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
  }

  .sr-actions .action-label {
    display: none;
  }

  .sr-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .control-panel {
    display: block;
    padding: 10px;
  }

  .mode-switch {
    margin-bottom: 8px;
    padding: 3px;
  }

  .mode-button {
    min-height: 32px;
    font-size: 0.76rem;
  }

  .field-group {
    margin-bottom: 8px;
  }

  .field-group label {
    font-size: 0.8rem;
  }

  .field-group select {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body[data-sightreadle-mode="daily"] #difficulty-field,
  body[data-sightreadle-mode="daily"] #tempo-field,
  body[data-sightreadle-mode="tutorial"] #difficulty-field,
  body[data-sightreadle-mode="tutorial"] #tempo-field {
    display: none;
  }

  .tempo-field input[type="range"] {
    margin-bottom: 0;
  }

  .toggle-row {
    min-height: 38px;
    margin-bottom: 8px;
    padding: 5px 0;
    font-size: 0.86rem;
  }

  .toggle-row input {
    width: 20px;
    height: 20px;
  }

  .start-button {
    min-height: 40px;
  }

  .mic-panel {
    margin-top: 8px;
    padding: 8px 10px;
  }

  .mic-panel strong {
    margin: 2px 0 0;
    font-size: 1.3rem;
  }

  .notation-panel {
    padding: 8px;
  }

  .notation-toolbar {
    align-items: center;
    flex-direction: row;
    margin-bottom: 4px;
  }

  .countdown-value,
  .seed-pill {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .seed-pill {
    max-width: 58%;
  }

  .score-frame {
    height: 220px;
  }

  .score-lead {
    height: 220px;
  }

  .lives-hearts {
    gap: 14px;
    min-height: 48px;
    padding: 6px 0 2px;
    font-size: 2.55rem;
  }

  .feedback-row {
    min-height: 22px;
    margin-top: 4px;
    font-size: 0.86rem;
  }

  .mode-choice-content,
  .tutorial-welcome-content {
    padding: 18px;
  }

  .mode-choice-content h2,
  .tutorial-welcome-content h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
  }

  .mode-choice-button {
    min-height: 126px;
    padding: 14px;
  }

  .tutorial-welcome-copy {
    margin-bottom: 12px;
  }

  .tutorial-intro-points {
    gap: 8px;
    margin-bottom: 14px;
  }
}
