@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/Onest-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/Onest-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/Unbounded-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/Unbounded-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./assets/fonts/Comfortaa-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./assets/fonts/Comfortaa-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-brand: "Unbounded", "Onest", sans-serif;
  --font-heading: "Comfortaa", "Onest", sans-serif;
  --font-interface: "Unbounded", "Onest", sans-serif;
  --font-label: "Comfortaa", "Onest", sans-serif;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-soft: #f0eff6;
  --text: #17171c;
  --text-2: #565461;
  --text-3: #696773;
  --violet: #7357ef;
  --violet-dark: #5e43dc;
  --violet-soft: #ece8ff;
  --blue: #4b91f1;
  --blue-soft: #e7f2ff;
  --mint: #43bda1;
  --mint-soft: #e5f8f2;
  --orange: #ff955f;
  --orange-soft: #fff0e7;
  --green: #34b77a;
  --red: #eb5b69;
  --acid: #a5ff2c;
  --acid-strong: #79d600;
  --background: var(--bg);
  --surface-2: var(--surface-soft);
  --track: var(--surface-soft);
  --font-display: var(--font-heading);
  --border: rgba(30, 28, 45, 0.075);
  --shadow: 0 14px 38px rgba(59, 51, 101, 0.09);
  --shadow-soft: 0 8px 22px rgba(59, 51, 101, 0.065);
  --safe-top: max(16px, env(safe-area-inset-top));
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--violet) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--violet), var(--blue)) padding-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--bg);
  color-scheme: light;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-interface);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body.game-open,
body.arcade-open {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.game-open .tab-bar,
body.arcade-open .tab-bar {
  display: none !important;
}

button,
input {
  font: inherit;
}

h1,
h2,
.home-title p,
.daily-hero__content h2,
.game-question-head h1,
.game-result h1 {
  font-family: var(--font-heading);
  font-weight: 800;
}

p,
small,
input,
textarea,
.micro-label,
.tab-button,
.tab-button *,
.sheet-label {
  font-family: var(--font-label);
}

button,
.brand-lockup,
.brand-lockup *,
.mode-card,
.path-stage,
.path-map-card,
.achievement-card,
.setting-row,
.profile-card,
.stat-summary,
.skill-list {
  font-family: var(--font-interface);
}

[hidden] {
  display: none !important;
}

body.auth-locked {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  z-index: 500;
  inset: 0;
  overflow: auto;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(168, 143, 255, 0.28), transparent 31rem),
    radial-gradient(circle at 88% 88%, rgba(75, 145, 241, 0.16), transparent 30rem),
    var(--bg);
  overscroll-behavior: contain;
}

.auth-shell {
  display: grid;
  width: min(100% - 32px, 1120px);
  min-height: min(720px, calc(100dvh - 48px));
  margin: max(24px, env(safe-area-inset-top)) auto max(24px, env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(48, 39, 92, 0.18);
  backdrop-filter: blur(24px) saturate(1.2);
}

.auth-intro {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 42px;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 255, 255, 0.22), transparent 25%),
    radial-gradient(circle at 12% 86%, rgba(87, 201, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #866df7, #6948e5 54%, #5033c5);
}

.auth-intro::after {
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.045),
    0 0 0 88px rgba(255, 255, 255, 0.03);
  content: "";
}

.auth-brand {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 13px;
  align-items: center;
  font-family: var(--font-brand);
}

.auth-brand__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.auth-brand__icon img {
  width: 100%;
  height: 100%;
}

.auth-brand div {
  display: grid;
  gap: 3px;
}

.auth-brand span {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.auth-brand strong {
  font-size: 0.88rem;
}

.auth-intro__copy {
  position: relative;
  z-index: 2;
  margin: auto 0 34px;
}

.auth-intro__copy .micro-label {
  color: rgba(255, 255, 255, 0.7);
}

.auth-intro__copy h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.auth-intro__copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.6;
}

.auth-benefits {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.auth-benefits span {
  display: flex;
  min-height: 45px;
  padding: 9px 12px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-label);
  font-size: 0.74rem;
  backdrop-filter: blur(12px);
}

.auth-benefits b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  color: #5f43d4;
  background: #fff;
  font-family: var(--font-interface);
  font-size: 0.62rem;
}

.auth-note-orbit i {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.15);
  font-size: 4rem;
  font-style: normal;
  transform: rotate(-12deg);
}

.auth-note-orbit i:nth-child(1) {
  top: 19%;
  right: 9%;
}

.auth-note-orbit i:nth-child(2) {
  top: 34%;
  left: 8%;
  font-size: 2.4rem;
}

.auth-note-orbit i:nth-child(3) {
  right: 20%;
  bottom: 25%;
  font-size: 2.8rem;
}

.auth-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 54px clamp(34px, 5vw, 70px) 34px;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}

.auth-card__mark {
  position: absolute;
  top: 24px;
  right: 26px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--violet);
  background: var(--violet-soft);
  font-family: var(--font-interface);
  font-size: 1.3rem;
  font-weight: 850;
}

.auth-panel {
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.auth-panel > h2 {
  margin: 8px 0 7px;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.auth-panel > p:not(.auth-switch) {
  margin: 0 0 26px;
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.auth-form label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.auth-form label > span:first-child {
  color: var(--text-2);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  min-height: 53px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  background: var(--surface-soft);
  font-family: var(--font-label);
  font-size: 0.82rem;
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.auth-form input::placeholder {
  color: var(--text-3);
  opacity: 0.72;
}

.auth-form input:focus {
  border-color: rgba(115, 87, 239, 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(115, 87, 239, 0.11);
}

.auth-password-field {
  position: relative;
  display: block;
}

.auth-password-field input {
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover {
  color: var(--violet);
  background: var(--violet-soft);
}

.auth-password-toggle svg {
  width: 20px;
  height: 20px;
}

.auth-form__meta {
  display: flex;
  min-height: 30px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.auth-form .auth-check {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.auth-check input {
  width: 19px;
  min-height: 19px;
  padding: 0;
  accent-color: var(--violet);
}

.auth-check span {
  color: var(--text-2) !important;
  font-size: 0.68rem !important;
}

.auth-link,
.auth-switch button {
  padding: 2px;
  border: 0;
  color: var(--violet);
  background: transparent;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.auth-feedback {
  min-height: 18px;
  margin: -2px 0 !important;
  color: var(--red) !important;
  font-size: 0.68rem !important;
  font-weight: 700;
}

.auth-feedback--success {
  color: var(--green) !important;
}

.auth-submit {
  min-height: 54px;
  padding: 10px 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #8468f6, #6444dc);
  box-shadow: 0 14px 28px rgba(94, 67, 205, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-test-account {
  display: flex;
  min-height: 42px;
  margin-top: 15px;
  padding: 8px 12px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(115, 87, 239, 0.28);
  border-radius: 13px;
  color: var(--text-2);
  background: var(--violet-soft);
  font-family: var(--font-label);
  font-size: 0.65rem;
}

.auth-test-account span {
  margin-right: 3px;
}

.auth-test-account strong {
  color: var(--violet-dark);
  font-family: var(--font-interface);
  font-size: 0.64rem;
}

.auth-test-account i {
  color: var(--text-3);
  font-style: normal;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--text-3);
  font-size: 0.7rem;
  text-align: center;
}

.auth-local-note {
  display: block;
  max-width: 480px;
  margin: 22px auto 0;
  color: var(--text-3);
  font-family: var(--font-label);
  font-size: 0.6rem !important;
  line-height: 1.45;
  text-align: center;
}

.profile-card__copy .profile-email {
  margin-top: 6px;
  color: var(--violet);
  font-size: 0.66rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.setting-icon--danger {
  color: var(--red);
  background: #ffedf0;
}

.setting-row--danger strong {
  color: var(--red);
}

.not-found-body {
  min-height: 100dvh;
  overflow: auto;
  background:
    radial-gradient(circle at 14% 12%, rgba(168, 143, 255, 0.27), transparent 29rem),
    radial-gradient(circle at 88% 86%, rgba(75, 145, 241, 0.17), transparent 30rem),
    var(--bg);
}

.not-found-page {
  display: grid;
  width: min(100% - 28px, 760px);
  min-height: 100dvh;
  margin: auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  place-content: center;
  justify-items: center;
}

.not-found-brand {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.not-found-brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 12px 25px rgba(94, 67, 205, 0.22);
}

.not-found-brand img {
  width: 100%;
  height: 100%;
}

.not-found-brand b {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.not-found-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: clamp(27px, 5vw, 42px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 70px rgba(48, 39, 92, 0.16);
  text-align: center;
  backdrop-filter: blur(22px);
}

.not-found-visual {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  color: var(--violet);
}

.not-found-visual span {
  font-family: var(--font-hero);
  font-size: clamp(4.5rem, 15vw, 7.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.not-found-visual svg {
  width: clamp(78px, 18vw, 118px);
  height: clamp(84px, 19vw, 128px);
  overflow: visible;
  fill: var(--violet);
  stroke: var(--violet);
  stroke-width: 3;
  stroke-linecap: round;
}

.not-found-visual svg path:first-child {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
  opacity: 0.55;
}

.not-found-card h1 {
  margin: 9px 0 13px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.not-found-card p {
  max-width: 470px;
  margin: 0 auto 25px;
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.6;
}

.not-found-action {
  display: inline-flex;
  min-width: 190px;
  min-height: 53px;
  padding: 10px 22px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #8468f6, #6444dc);
  box-shadow: 0 14px 28px rgba(94, 67, 205, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.not-found-page > small {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.62rem !important;
  text-align: center;
}

@media (max-width: 820px) {
  .auth-gate {
    background:
      radial-gradient(circle at 50% -5%, rgba(168, 143, 255, 0.25), transparent 25rem),
      var(--bg);
  }

  .auth-shell {
    width: min(100% - 20px, 560px);
    min-height: auto;
    margin-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .auth-intro {
    min-height: auto;
    padding: 20px 22px;
  }

  .auth-intro::after,
  .auth-benefits,
  .auth-note-orbit {
    display: none;
  }

  .auth-intro__copy {
    margin: 24px 0 2px;
  }

  .auth-intro__copy .micro-label,
  .auth-intro__copy p {
    display: none;
  }

  .auth-intro__copy h1 {
    margin: 0;
    font-size: clamp(1.72rem, 9vw, 2.35rem);
    line-height: 1;
  }

  .auth-intro__copy h1 br {
    display: none;
  }

  .auth-card {
    padding: 31px 22px 22px;
  }

  .auth-card__mark {
    top: 18px;
    right: 19px;
    width: 36px;
    height: 36px;
  }

  .auth-panel > h2 {
    font-size: 2.15rem;
  }
}

@media (max-width: 430px) {
  .auth-shell {
    width: calc(100% - 12px);
    margin-block: 6px;
    border-radius: 25px;
  }

  .auth-intro {
    padding: 17px 18px;
  }

  .auth-brand__icon {
    width: 41px;
    height: 41px;
    border-radius: 13px;
  }

  .auth-brand span {
    font-size: 0.59rem;
  }

  .auth-brand strong {
    font-size: 0.72rem;
  }

  .auth-intro__copy {
    margin-top: 17px;
  }

  .auth-card {
    padding: 27px 17px 19px;
  }

  .auth-panel > p:not(.auth-switch) {
    margin-bottom: 20px;
  }

  .auth-form {
    gap: 12px;
  }

  .auth-form__columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-form input {
    min-height: 50px;
  }

  .auth-card__mark {
    display: none;
  }
}

small {
  font-size: 0.75rem !important;
  line-height: 1.35;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(115, 87, 239, 0.3);
  outline-offset: 2px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
}

.app-content {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(102px + var(--safe-bottom));
}

.app-view {
  display: none;
  width: 100%;
  min-height: calc(100dvh - 100px);
  padding: var(--safe-top) 18px 28px;
  overflow-x: hidden;
  overflow-x: clip;
  animation: view-in 0.25s ease both;
}

.app-view--active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.page-header {
  display: flex;
  min-height: 62px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
}

.page-header--home {
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 9vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.micro-label {
  color: var(--text-3);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-lockup {
  display: flex;
  gap: 11px;
  align-items: center;
}

.brand-lockup > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-lockup strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-note {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 9px 20px rgba(111, 79, 232, 0.25);
}

.brand-note img {
  width: 100%;
  height: 100%;
}

.guide-button {
  display: inline-flex;
  min-height: 40px;
  margin-left: auto;
  margin-right: 10px;
  padding: 8px 12px;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--violet);
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(55, 49, 88, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.guide-button svg {
  width: 18px;
  height: 18px;
}

.avatar-button {
  position: relative;
  display: grid;
  width: 47px;
  height: 47px;
  padding: 0;
  place-items: center;
  border: 3px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ffaf81, #fb7d70);
  box-shadow:
    0 0 0 1px rgba(30, 28, 45, 0.08),
    0 7px 18px rgba(235, 100, 99, 0.18);
  font-weight: 800;
  cursor: pointer;
}

.avatar-button > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-button i {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  font-size: 0.61rem;
  font-style: normal;
}

.home-title {
  margin-bottom: 18px;
}

.home-title p {
  margin: 0 0 2px;
  color: var(--text-2);
  font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.home-title h1 {
  margin: 0;
  font-size: clamp(2.45rem, 12vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: -0.067em;
}

.daily-hero {
  position: relative;
  overflow: hidden;
  min-height: 294px;
  padding: 20px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #8469f6 0%, #7252ea 52%, #5e40d5 100%);
  box-shadow: 0 20px 44px rgba(90, 62, 205, 0.26);
}

.daily-hero::after {
  position: absolute;
  right: -57px;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 58px rgba(255, 255, 255, 0.025);
  content: "";
}

.daily-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.daily-hero__glow--one {
  top: -90px;
  left: -70px;
  width: 230px;
  height: 230px;
  background: rgba(202, 175, 255, 0.31);
}

.daily-hero__glow--two {
  right: 8%;
  bottom: 15%;
  width: 100px;
  height: 100px;
  background: rgba(254, 155, 226, 0.14);
}

.daily-hero__top,
.daily-hero__content,
.hero-button {
  position: relative;
  z-index: 2;
}

.daily-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-pill {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 11px;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.streak-mini {
  display: flex;
  min-width: 53px;
  height: 31px;
  padding: 0 10px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(36, 18, 91, 0.2);
}

.streak-mini strong {
  font-size: 0.8rem;
}

.daily-hero__content {
  display: grid;
  margin: 26px 2px 22px;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.daily-hero__content h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 9.4vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.daily-hero__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.goal-ring {
  --progress: 0;
  display: grid;
  width: 86px;
  height: 86px;
  padding: 7px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--progress) * 1%), rgba(255, 255, 255, 0.2) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.goal-ring > div {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(104, 74, 224, 0.94);
}

.goal-ring strong {
  font-size: 1.32rem;
  line-height: 1;
}

.goal-ring span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.62rem;
}

.hero-button {
  display: grid;
  width: 100%;
  min-height: 57px;
  padding: 8px 13px 8px 9px;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 18px;
  color: var(--violet-dark);
  background: #fff;
  box-shadow: 0 12px 28px rgba(38, 15, 104, 0.18);
  font-weight: 780;
  cursor: pointer;
}

.hero-button__play {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--violet);
}

.hero-button__play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.hero-button__arrow,
.mode-card > svg {
  width: 20px;
  height: 20px;
}

.content-section {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}

.text-link {
  min-width: 44px;
  min-height: 38px;
  padding: 7px 0 7px 10px;
  border: 0;
  color: var(--violet);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.mode-list {
  display: grid;
  gap: 10px;
}

.mode-card {
  display: grid;
  width: 100%;
  min-height: 84px;
  padding: 12px 13px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(50, 46, 77, 0.045);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.mode-card:active {
  transform: scale(0.985);
}

.mode-card__icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 18px;
  font-family: "Segoe UI Symbol", "Noto Music", serif;
  font-size: 2.55rem;
  line-height: 1;
}

.mode-card--violet .mode-card__icon {
  color: var(--violet);
  background: var(--violet-soft);
}

.mode-card--blue .mode-card__icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.mode-card--mint .mode-card__icon {
  color: var(--mint);
  background: var(--mint-soft);
}

.mode-card__icon--mixed {
  font-size: 1.8rem;
}

.mode-card__icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.mode-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.mode-card__copy strong {
  overflow: hidden;
  font-size: 0.92rem;
  letter-spacing: -0.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-card__copy small,
.skill-list small {
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-card__badge {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface-soft);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.mode-card > svg {
  color: var(--text-3);
}

.arcade-launch {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(115, 87, 239, 0.22);
  border-radius: 21px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(84, 213, 255, 0.35), transparent 29%),
    linear-gradient(135deg, #7656ef, #4a32bd);
  box-shadow: 0 13px 26px rgba(82, 53, 191, 0.2);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.arcade-launch::after {
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: -54px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.045);
  content: "";
}

.arcade-launch:active {
  transform: scale(0.985);
}

.arcade-launch__icon {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.arcade-launch__icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.arcade-launch__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.arcade-launch__copy strong {
  font-size: 0.88rem;
}

.arcade-launch__copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-launch__badge {
  padding: 5px 7px;
  border-radius: 999px;
  color: #4a31ba;
  background: #fff;
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.arcade-launch__arrow {
  width: 19px;
  height: 19px;
}

.learning-path {
  position: relative;
  display: grid;
  gap: 9px;
}

.learning-path::before {
  position: absolute;
  z-index: 0;
  top: 33px;
  bottom: 33px;
  left: 28px;
  width: 2px;
  background: linear-gradient(var(--violet) 0 34%, #dfdde8 34%);
  content: "";
}

.path-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 84px;
  padding: 12px 13px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

button.path-stage {
  cursor: pointer;
}

.path-stage--active {
  border-color: rgba(115, 87, 239, 0.45);
  box-shadow: 0 9px 25px rgba(94, 67, 220, 0.09);
}

.path-stage--locked {
  opacity: 0.72;
}

.path-stage__number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 4px solid var(--surface);
  border-radius: 15px;
  color: var(--text-2);
  background: var(--surface-soft);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 0.69rem;
  font-weight: 850;
}

.path-stage--complete .path-stage__number {
  color: #16835a;
  background: var(--mint-soft);
}

.path-stage--active .path-stage__number {
  color: #fff;
  background: var(--violet);
}

.path-stage__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.path-stage__copy strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-stage__copy small {
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-progress {
  overflow: hidden;
  width: 100%;
  height: 5px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.path-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  transition: width 0.4s ease;
}

.path-stage--active .path-progress span {
  background: var(--violet);
}

.path-stage__status {
  min-width: 34px;
  color: var(--text-3);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: right;
}

.achievement-row {
  display: grid;
  width: calc(100% + 36px);
  max-width: calc(100% + 36px);
  margin-inline: -18px;
  padding: 2px 18px 8px;
  grid-auto-columns: 103px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.achievement-row::-webkit-scrollbar {
  display: none;
}

.achievement-card {
  display: flex;
  min-height: 126px;
  padding: 12px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(50, 46, 77, 0.04);
  text-align: center;
  scroll-snap-align: start;
}

.achievement-card--locked {
  opacity: 0.74;
  filter: grayscale(0.65);
}

.achievement-medal {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 17px;
  background: var(--violet-soft);
  font-size: 1.45rem;
}

.achievement-card strong {
  font-size: 0.72rem;
  line-height: 1.2;
}

.achievement-card small {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.59rem;
}

.round-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
}

.round-icon-button svg {
  width: 21px;
  height: 21px;
}

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

.stat-summary {
  display: flex;
  min-width: 0;
  min-height: 118px;
  padding: 13px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  text-align: center;
}

.stat-summary__icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 11px;
}

.stat-summary--violet .stat-summary__icon {
  color: var(--violet);
  background: var(--violet-soft);
}

.stat-summary--orange .stat-summary__icon {
  background: var(--orange-soft);
}

.stat-summary--green .stat-summary__icon {
  color: var(--green);
  background: var(--mint-soft);
}

.stat-summary strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
}

.stat-summary small {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 0.64rem;
}

.chart-card {
  margin-top: 14px;
  padding: 18px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.chart-card__head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-card__head span {
  color: var(--text-3);
  font-size: 0.7rem;
}

.chart-card__head strong span {
  color: inherit;
  font-size: inherit;
}

.chart-card__head strong {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.trend-pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green) !important;
  background: var(--mint-soft);
  font-weight: 700;
}

.week-chart {
  display: grid;
  height: 158px;
  margin-top: 18px;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  align-items: end;
}

.week-bar {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.week-bar__value {
  min-height: 15px;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 0.57rem;
  font-weight: 700;
}

.week-bar__track {
  position: relative;
  display: flex;
  width: min(22px, 68%);
  height: 108px;
  align-items: flex-end;
  border-radius: 999px;
  background: var(--surface-soft);
}

.week-bar__fill {
  width: 100%;
  min-height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9a83ff, var(--violet));
  transition: height 0.5s ease;
}

.week-bar--today .week-bar__track {
  box-shadow: 0 0 0 4px var(--violet-soft);
}

.week-bar__day {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 0.62rem;
}

.week-bar--today .week-bar__day {
  color: var(--violet);
  font-weight: 800;
}

.skill-list {
  display: grid;
  gap: 9px;
}

.skill-list article {
  display: grid;
  min-height: 77px;
  padding: 11px 12px;
  grid-template-columns: auto minmax(90px, 1fr) minmax(54px, 0.55fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
}

.skill-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  font-family: "Segoe UI Symbol", "Noto Music", serif;
  font-size: 2.05rem;
}

.skill-icon--violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.skill-icon--blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.skill-list article > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.skill-list strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-progress {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.skill-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.skill-list article:nth-child(2) .skill-progress span {
  background: var(--blue);
}

.skill-list b {
  font-size: 0.7rem;
}

.insight-card {
  display: flex;
  margin-top: 18px;
  padding: 16px;
  gap: 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0edff, #f8f6ff);
}

.insight-card > span {
  font-size: 1.35rem;
}

.insight-card strong {
  font-size: 0.82rem;
}

.insight-card p {
  margin: 5px 0 0;
  color: var(--text-2);
  font-size: 0.72rem;
  line-height: 1.45;
}

.growth-card {
  margin-top: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.growth-chart {
  display: block;
  width: 100%;
  height: 150px;
  margin-top: 12px;
  overflow: visible;
}

.growth-legend {
  display: flex;
  margin-top: 8px;
  gap: 15px;
  color: var(--text-3);
  font-size: 0.64rem;
  font-weight: 700;
}

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

.growth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.growth-dot--blue {
  background: var(--blue);
}

.competition-card {
  display: grid;
  margin-top: 12px;
  padding: 17px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(75, 145, 241, 0.14);
  border-radius: 23px;
  background: linear-gradient(135deg, #edf5ff, #f6f2ff);
}

.competition-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1.35rem;
}

.competition-card strong {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
}

.competition-card p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 0.68rem;
  line-height: 1.4;
}

.soon-pill {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--surface);
  font-size: 0.62rem;
  font-weight: 800;
}

.reminder-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 28px 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.98), transparent 28%),
    linear-gradient(150deg, #f1edff, #e8e2ff);
  text-align: center;
}

.reminder-hero h2 {
  margin: 8px 0 12px;
  font-size: 2.08rem;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.reminder-hero p {
  max-width: 290px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.5;
}

.reminder-illustration {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: -2px auto 13px;
  place-items: center;
}

.reminder-illustration::before,
.reminder-illustration::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.reminder-illustration::before {
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 40px rgba(103, 75, 203, 0.12);
}

.reminder-illustration::after {
  width: 96px;
  height: 96px;
  border: 1px dashed rgba(115, 87, 239, 0.22);
}

.bell-shape {
  position: relative;
  z-index: 2;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(145deg, #8d72fb, #6849dd);
  box-shadow: 0 14px 25px rgba(104, 73, 221, 0.27);
  transform: rotate(-5deg);
}

.bell-shape svg {
  width: 45px;
  height: 45px;
  stroke-width: 2.6;
}

.floating-note {
  position: absolute;
  z-index: 3;
  color: var(--violet);
  font-family: Georgia, serif;
  font-weight: 700;
}

.floating-note--one {
  top: 15px;
  right: 3px;
  font-size: 1.65rem;
  transform: rotate(12deg);
}

.floating-note--two {
  bottom: 24px;
  left: -1px;
  color: #b056dd;
  font-size: 1.35rem;
  transform: rotate(-12deg);
}

.settings-group {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.setting-row {
  display: grid;
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.setting-row + .setting-row {
  border-top: 1px solid var(--border);
}

.setting-row--button {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  cursor: pointer;
}

.setting-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
}

.setting-icon svg {
  width: 21px;
  height: 21px;
}

.setting-icon--violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.setting-icon--blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.setting-icon--orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.setting-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.setting-row strong {
  overflow: hidden;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-row small {
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-row b {
  color: var(--text-2);
  font-size: 0.78rem;
}

.chevron {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.ios-switch {
  position: relative;
  display: block;
  width: 50px;
  height: 30px;
}

.ios-switch input {
  position: absolute;
  opacity: 0;
}

.ios-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dedde4;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ios-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 20, 38, 0.2);
  content: "";
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ios-switch input:checked + span {
  background: var(--violet);
}

.ios-switch input:checked + span::after {
  transform: translateX(20px);
}

.reminder-days-section {
  margin-top: 28px;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.day-chip {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-2);
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 760;
  cursor: pointer;
}

.day-chip--active {
  border-color: var(--violet);
  color: #fff;
  background: var(--violet);
  box-shadow: 0 7px 16px rgba(115, 87, 239, 0.2);
}

.ios-primary-button,
.secondary-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 18px;
  font-weight: 780;
  cursor: pointer;
}

.ios-primary-button {
  margin-top: 24px;
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #8064f5, #6748dd);
  box-shadow: 0 13px 28px rgba(103, 72, 221, 0.24);
}

.secondary-button {
  margin-top: 10px;
  border: 1px solid var(--border);
  color: var(--violet);
  background: var(--surface);
}

.reminder-note {
  margin: 12px auto 0;
  color: var(--text-3);
  font-size: 0.64rem;
  line-height: 1.45;
  text-align: center;
}

.profile-card {
  display: flex;
  padding: 22px 18px;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -20%, rgba(168, 143, 255, 0.25), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.profile-avatar {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  padding: 0;
  place-items: center;
  border: 4px solid var(--surface);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #ffb586, #f87c72);
  box-shadow:
    0 0 0 2px var(--violet-soft),
    0 12px 25px rgba(226, 111, 103, 0.18);
  font-size: 1.7rem;
  font-weight: 800;
  cursor: pointer;
  overflow: visible;
}

.profile-avatar > span {
  display: grid;
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  place-items: center;
}

.profile-avatar > img {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
}

.profile-avatar i {
  position: absolute;
  right: -8px;
  bottom: -5px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  font-style: normal;
}

.profile-avatar i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-card__copy {
  margin-top: 15px;
  text-align: center;
}

.profile-card__copy h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.profile-card__copy p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 0.72rem;
}

.profile-card__copy > small {
  display: block;
  max-width: 280px;
  margin: 9px auto 0;
  color: var(--text-3);
  font-size: 0.62rem;
  line-height: 1.45;
}

.profile-edit-button {
  margin-top: 12px;
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 0.68rem;
  font-weight: 780;
  cursor: pointer;
}

.level-block {
  width: 100%;
  margin-top: 22px;
}

.level-block > div:first-child {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 0.7rem;
}

.level-block b {
  color: var(--violet);
}

.level-block strong {
  color: var(--text-3);
  font-size: 0.65rem;
}

.level-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.level-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #9d80ff);
}

.section-count {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.section-count--button {
  border: 0;
  cursor: pointer;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.achievement-grid .achievement-card {
  min-width: 0;
  min-height: 114px;
  padding-inline: 4px;
}

.profile-settings {
  margin-top: 28px;
}

.tab-bar {
  position: fixed;
  z-index: 50;
  right: max(10px, calc((100vw - 520px) / 2 + 10px));
  bottom: var(--safe-bottom);
  left: max(10px, calc((100vw - 520px) / 2 + 10px));
  display: grid;
  height: 74px;
  padding: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 25px;
  background: rgba(250, 250, 253, 0.88);
  box-shadow:
    0 14px 40px rgba(42, 38, 67, 0.16),
    0 0 0 1px rgba(33, 29, 57, 0.05);
  backdrop-filter: blur(22px) saturate(1.45);
}

.tab-button {
  display: flex;
  min-width: 0;
  padding: 5px 2px 3px;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  color: var(--text-3);
  background: transparent;
  font-size: 0.59rem;
  font-weight: 680;
  cursor: pointer;
  transition: 0.18s ease;
}

.tab-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.tab-button--active {
  color: var(--violet);
}

.tab-button--active .tab-icon {
  background: var(--violet-soft);
}

.game-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(195, 180, 255, 0.22), transparent 34%),
    var(--bg);
  overscroll-behavior: none;
  touch-action: none;
}

.game-overlay--active {
  display: block;
  animation: game-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes game-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.game-view,
.game-result {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--safe-top) 18px calc(24px + var(--safe-bottom));
}

.game-view {
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

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

.game-progress-wrap {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.game-context-line {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.game-context-line .micro-label {
  min-width: 0;
  overflow: hidden;
  font-size: 0.58rem;
  letter-spacing: 0.075em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-question-status {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  color: var(--text-3);
  font-family: var(--font-label);
  font-size: 0.68rem;
  white-space: nowrap;
}

.game-close,
.sheet-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
}

.game-close svg,
.sheet-close svg {
  width: 20px;
  height: 20px;
}

.game-progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e6e4ed;
}

.game-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f85ff, var(--violet));
  transition: width 0.35s ease;
}

.game-xp {
  display: flex;
  min-width: 57px;
  height: 36px;
  padding: 0 9px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 0.75rem;
}

.question-timer {
  display: inline-flex;
  min-width: 56px;
  min-height: 22px;
  padding: 2px 6px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--violet);
  background: var(--violet-soft);
  font-variant-numeric: tabular-nums;
}

.question-timer[hidden] {
  display: none;
}

.question-timer svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.question-timebar {
  width: 100%;
  height: 4px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e7ee;
}

.question-timebar[hidden] {
  display: none;
}

.question-timebar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition:
    width 0.1s linear,
    background-color 0.1s linear;
}

.staff-card {
  position: relative;
  overflow: hidden;
  padding: 10px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 29px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.staff-card__accent {
  position: absolute;
  top: -55px;
  left: 50%;
  width: 180px;
  height: 120px;
  border-radius: 50%;
  background: rgba(122, 93, 239, 0.08);
  filter: blur(20px);
  transform: translateX(-50%);
}

.staff {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
}

.staff-note-target {
  cursor: pointer;
  outline: none;
}

.staff-note-target .staff-note-hit-area {
  fill: #000;
  fill-opacity: 0.001;
  stroke: none;
  stroke-width: 3;
}

.staff-note-target:focus-visible .staff-note-hit-area {
  stroke: var(--violet);
}

.staff-listen-hint {
  position: relative;
  z-index: 2;
  margin: -1px 8px 2px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.game-feedback {
  min-height: 58px;
  padding: 14px 8px 9px;
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 650;
  text-align: center;
}

.game-feedback strong,
.game-feedback b {
  font-size: 1.08rem;
  font-weight: 850;
}

.game-feedback span {
  margin-left: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.game-feedback--right {
  color: var(--green);
}

.game-feedback--wrong {
  color: var(--red);
}

.note-answers {
  position: relative;
  display: grid;
  width: 100%;
  height: 176px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  isolation: isolate;
  filter: drop-shadow(0 10px 18px rgba(38, 34, 62, 0.1));
}

.piano-white-key {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  height: 176px;
  padding: 93px 2px 12px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #dad9e1;
  border-radius: 0 0 12px 12px;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #fff 72%, #f5f4f8 100%);
  box-shadow:
    inset 0 -5px 0 #e9e8ee,
    0 4px 0 #d6d4de;
  cursor: pointer;
  transition:
    transform 0.09s ease,
    background 0.14s ease;
}

.piano-white-key:first-of-type {
  border-radius: 13px 0 12px 12px;
}

.piano-white-key:nth-of-type(7) {
  border-radius: 0 13px 12px 12px;
}

.piano-white-key:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    inset 0 -2px 0 #e9e8ee,
    0 1px 0 #d6d4de;
}

.piano-white-key__note {
  display: grid;
  width: 24px;
  height: 32px;
  place-items: center;
  color: var(--violet);
}

.piano-white-key__note svg {
  width: 21px;
  height: 29px;
  fill: currentColor;
  stroke: none;
}

.piano-white-key strong {
  color: #1f2430;
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  font-weight: 850;
  line-height: 1;
}

.piano-white-key small {
  color: #747c8b;
  font-size: 0.54rem !important;
  font-weight: 700;
}

.piano-white-key--correct {
  border-color: #59bd8b;
  color: #14774a;
  background: linear-gradient(180deg, #ecfff5, #dff7eb);
  box-shadow:
    inset 0 -5px 0 #a8dfc4,
    0 4px 0 #72c89e;
}

.piano-white-key--wrong {
  border-color: #e98591;
  color: #b62f45;
  background: linear-gradient(180deg, #fff4f5, #ffe7ea);
  box-shadow:
    inset 0 -5px 0 #efb0b7,
    0 4px 0 #db7b87;
}

.piano-black-key {
  --key-index: 1;
  position: absolute;
  z-index: 3;
  top: 0;
  left: calc((100% / 7) * var(--key-index) - min(17px, 4.35vw));
  width: min(34px, 8.7vw);
  height: 101px;
  padding: 0;
  border: 1px solid #17161d;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(90deg, #23212b, #3b3945 54%, #1b1a21);
  box-shadow:
    inset 0 -7px 0 #101015,
    0 5px 7px rgba(22, 20, 30, 0.28);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.09s ease,
    filter 0.14s ease;
}

.piano-black-key::after {
  position: absolute;
  right: 6px;
  bottom: 12px;
  left: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.piano-black-key small {
  position: absolute;
  right: 1px;
  bottom: 20px;
  left: 1px;
  color: inherit;
  font-size: 0.49rem !important;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.piano-black-key:active:not(:disabled) {
  transform: translateY(4px);
}

.piano-black-key--correct {
  border-color: #45c782;
  background: linear-gradient(90deg, #143825, #2d8d5b 54%, #123321);
  box-shadow:
    inset 0 -5px 0 #0f4e2e,
    0 0 0 3px rgba(52, 183, 122, 0.22),
    0 6px 12px rgba(22, 95, 58, 0.3);
}

.piano-black-key--wrong {
  border-color: #f07482;
  background: linear-gradient(90deg, #42161d, #9b3342 54%, #371218);
  box-shadow:
    inset 0 -5px 0 #581923,
    0 0 0 3px rgba(235, 91, 105, 0.2);
}

.game-result {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.game-result[hidden] {
  display: none;
}

.result-medal {
  position: relative;
  z-index: 2;
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 28px;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(145deg, #9a80ff, #6746dc);
  box-shadow:
    0 0 0 3px var(--violet-soft),
    0 20px 42px rgba(92, 62, 205, 0.25);
  font-size: 2.7rem;
  transform: rotate(-5deg);
}

.game-result h1 {
  margin: 8px 0 10px;
  font-size: 3rem;
  letter-spacing: -0.07em;
}

.game-result > p {
  max-width: 310px;
  margin: 0 0 30px;
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

.result-stats {
  display: grid;
  width: 100%;
  margin-bottom: 4px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.result-stats div {
  display: flex;
  min-height: 112px;
  padding: 12px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.result-stats div > span {
  color: var(--violet);
  font-size: 1rem;
}

.result-stats strong {
  margin-top: 7px;
  font-size: 1.3rem;
}

.result-stats small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 0.62rem;
}

.game-result .ios-primary-button {
  margin-top: 22px;
}

.arcade-overlay {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: none;
  overflow: hidden;
  color: #f7f8ff;
  background:
    radial-gradient(circle at 16% 5%, rgba(120, 83, 255, 0.3), transparent 28rem),
    radial-gradient(circle at 88% 90%, rgba(54, 202, 244, 0.18), transparent 30rem),
    #090d19;
  overscroll-behavior: none;
  touch-action: none;
}

.arcade-overlay--active {
  display: block;
  animation: game-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.arcade-shell {
  position: relative;
  display: grid;
  width: min(100%, 1040px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: var(--safe-top) 14px var(--safe-bottom);
  grid-template-rows: 68px minmax(0, 1fr) 118px;
  gap: 10px;
}

.arcade-topbar {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.arcade-close {
  display: grid;
  width: 43px;
  height: 43px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.arcade-close svg {
  width: 21px;
  height: 21px;
}

.arcade-heading {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.arcade-heading .micro-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.55rem;
}

.arcade-heading strong {
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-hud {
  display: flex;
  gap: 6px;
  align-items: center;
}

.arcade-hud > span:not(.arcade-lives) {
  display: grid;
  min-width: 52px;
  min-height: 42px;
  padding: 5px 8px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.arcade-hud small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.45rem !important;
  line-height: 1;
}

.arcade-hud b {
  margin-top: 3px;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.arcade-lives {
  min-width: 48px;
  color: #ff7188;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.arcade-lives--danger {
  animation: arcade-heart 0.32s ease 2 alternate;
}

@keyframes arcade-heart {
  to { transform: scale(1.18); filter: brightness(1.4); }
}

.arcade-arena {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, rgba(112, 77, 242, 0.16), transparent 45%),
    rgba(16, 22, 38, 0.93);
  background-size: 36px 36px, 36px 36px, auto, auto;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.28),
    0 18px 48px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.arcade-sky i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.8);
  opacity: 0.35;
  animation: arcade-star 1.7s ease-in-out infinite alternate;
}

.arcade-sky i:nth-child(1) { top: 13%; left: 11%; }
.arcade-sky i:nth-child(2) { top: 21%; right: 17%; animation-delay: -0.7s; }
.arcade-sky i:nth-child(3) { top: 46%; left: 22%; animation-delay: -1.1s; }
.arcade-sky i:nth-child(4) { top: 58%; right: 9%; animation-delay: -0.35s; }
.arcade-sky i:nth-child(5) { top: 37%; left: 72%; animation-delay: -1.35s; }

@keyframes arcade-star {
  to { opacity: 0.9; transform: scale(1.7); }
}

.arcade-danger-line {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 80px;
  left: 16px;
  height: 1px;
  border-top: 1px dashed rgba(255, 113, 136, 0.32);
}

.arcade-danger-line span {
  position: absolute;
  top: -8px;
  right: 0;
  padding-left: 7px;
  color: rgba(255, 113, 136, 0.58);
  background: #111726;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.arcade-target-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.arcade-note-target {
  position: absolute;
  top: -102px;
  left: 50%;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 29px;
  color: #342366;
  background:
    radial-gradient(circle at 32% 22%, #fff, transparent 30%),
    linear-gradient(145deg, #f8f6ff, #dcd5ff);
  box-shadow:
    0 0 0 6px rgba(125, 89, 242, 0.14),
    0 18px 30px rgba(0, 0, 0, 0.28);
  will-change: transform;
}

.arcade-note-target::after {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 3px solid #121827;
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  font-family: "Segoe UI Symbol", serif;
  font-size: 0.72rem;
  content: "♪";
}

.arcade-note-target svg {
  width: 76px;
  height: 76px;
  overflow: visible;
}

.arcade-note-target .mini-staff {
  fill: none;
  stroke: #7c748a;
  stroke-width: 1.2;
  opacity: 0.72;
}

.arcade-note-target .mini-clef {
  fill: #332c40;
  font-family: "Segoe UI Symbol", "Noto Music", serif;
  font-size: 36px;
}

.arcade-note-target .mini-note,
.arcade-note-target .mini-stem,
.arcade-note-target .mini-ledger {
  fill: var(--violet);
  stroke: var(--violet);
}

.arcade-note-target--hit {
  animation: arcade-pop 0.42s cubic-bezier(0.18, 0.89, 0.4, 1.4) forwards;
}

.arcade-note-target--missed {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

@keyframes arcade-pop {
  35% { transform: translate(-50%, var(--target-y)) scale(1.22) rotate(7deg); }
  100% { transform: translate(-50%, var(--target-y)) scale(0.05) rotate(24deg); opacity: 0; }
}

.arcade-cannon {
  --cannon-angle: 0deg;
  position: absolute;
  z-index: 6;
  bottom: 8px;
  left: 50%;
  width: 82px;
  height: 68px;
  pointer-events: none;
  transform: translateX(-50%);
}

.arcade-cannon__barrel {
  position: absolute;
  z-index: 1;
  bottom: 29px;
  left: 34px;
  width: 14px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #5b43d8, #a58eff 52%, #4f36c8);
  box-shadow: 0 0 16px rgba(127, 91, 244, 0.38);
  transform: rotate(var(--cannon-angle));
  transform-origin: 50% 100%;
  transition: transform 0.14s ease;
}

.arcade-cannon__body {
  position: absolute;
  z-index: 2;
  bottom: 9px;
  left: 20px;
  width: 42px;
  height: 35px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 19px 19px 12px 12px;
  background: linear-gradient(145deg, #8e72ff, #5035c9);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.3);
}

.arcade-cannon__body i {
  position: absolute;
  top: 10px;
  left: 13px;
  width: 12px;
  height: 12px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.arcade-cannon__base {
  position: absolute;
  right: 6px;
  bottom: 2px;
  left: 6px;
  height: 12px;
  border-radius: 9px 9px 4px 4px;
  background: #2c3244;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.12);
}

.arcade-cannon--fire {
  animation: cannon-recoil 0.22s ease;
}

@keyframes cannon-recoil {
  45% { transform: translateX(-50%) translateY(5px) scale(0.96); }
}

.arcade-feedback {
  position: absolute;
  z-index: 7;
  bottom: 77px;
  left: 50%;
  max-width: calc(100% - 150px);
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(9, 13, 25, 0.72);
  font-size: 0.61rem;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.arcade-feedback--right { color: #a8f0c9; border-color: rgba(74, 208, 137, 0.3); }
.arcade-feedback--wrong { color: #ff9bab; border-color: rgba(255, 113, 136, 0.3); }

.arcade-bullet {
  position: absolute;
  z-index: 20;
  width: 9px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: linear-gradient(#fff, #68dcff 45%, #7656ef);
  box-shadow:
    0 0 10px #6cddff,
    0 0 22px rgba(117, 86, 239, 0.75);
  pointer-events: none;
}

.arcade-burst-particle {
  position: absolute;
  z-index: 18;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--particle-color, #7de8ff);
  box-shadow: 0 0 9px var(--particle-color, #7de8ff);
  pointer-events: none;
}

.arcade-keyboard {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.arcade-key {
  position: relative;
  display: flex;
  min-width: 0;
  height: 108px;
  padding: 12px 2px 11px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #d7dae4;
  border-radius: 5px 5px 13px 13px;
  color: #232735;
  background: linear-gradient(180deg, #fff, #f7f8fb 75%, #e8eaf0);
  box-shadow:
    inset 0 -5px 0 #dfe2e9,
    0 4px 0 #bfc4ce;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.arcade-key::before {
  position: absolute;
  top: 11px;
  width: 17px;
  height: 24px;
  border-radius: 50%;
  color: var(--violet);
  font-family: "Segoe UI Symbol", serif;
  font-size: 1.45rem;
  content: "♪";
}

.arcade-key strong {
  overflow: hidden;
  max-width: 100%;
  color: #202432;
  font-size: clamp(0.58rem, 2.5vw, 0.78rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-key small {
  color: #768092;
  font-size: 0.5rem !important;
  font-weight: 750;
}

.arcade-key:active,
.arcade-key--pressed {
  transform: translateY(4px);
  box-shadow: inset 0 -2px 0 #dfe2e9, 0 1px 0 #bfc4ce;
}

.arcade-key--correct {
  border-color: #57d596;
  background: linear-gradient(180deg, #f0fff7, #c8f3dc);
  filter: drop-shadow(0 0 10px rgba(66, 218, 140, 0.42));
}

.arcade-key--wrong {
  border-color: #ff7188;
  background: linear-gradient(180deg, #fff5f6, #ffd5db);
  animation: arcade-key-wrong 0.25s ease 2 alternate;
}

@keyframes arcade-key-wrong {
  to { transform: translateX(3px); }
}

.arcade-result {
  position: absolute;
  z-index: 40;
  inset: max(16px, var(--safe-top)) 14px max(16px, var(--safe-bottom));
  display: flex;
  padding: 28px 22px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 32px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(136, 105, 255, 0.2), transparent 32%),
    var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.arcade-result[hidden] { display: none; }

.arcade-result__icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 31px;
  color: #fff;
  background: linear-gradient(145deg, #9b82ff, #6041d8);
  box-shadow: 0 18px 38px rgba(96, 65, 216, 0.3);
  font-size: 2.4rem;
  transform: rotate(-5deg);
}

.arcade-result h2 {
  position: relative;
  z-index: 2;
  margin: 8px 0 9px;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.arcade-result > p {
  position: relative;
  z-index: 2;
  max-width: 330px;
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 0.78rem;
  line-height: 1.45;
}

.arcade-result__stats {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 420px);
  margin-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.arcade-result__stats span {
  display: flex;
  min-height: 88px;
  padding: 10px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface-soft);
}

.arcade-result__stats b { font-size: 1.22rem; }
.arcade-result__stats small { margin-top: 3px; color: var(--text-3); font-size: 0.58rem !important; }
.arcade-result .ios-primary-button,
.arcade-result .secondary-button { position: relative; z-index: 2; width: min(100%, 420px); }

.arcade-result__burst {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 300px;
  height: 150px;
  pointer-events: none;
  transform: translateX(-50%);
}

.arcade-result__burst i {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  background: var(--violet);
  animation: confetti 1.5s ease-in-out infinite alternate;
}

.arcade-result__burst i:nth-child(1) { top: 5%; left: 8%; background: #53d8ff; transform: rotate(24deg); }
.arcade-result__burst i:nth-child(2) { top: 55%; left: 20%; background: var(--mint); transform: rotate(-30deg); }
.arcade-result__burst i:nth-child(3) { top: 8%; right: 15%; background: var(--orange); transform: rotate(18deg); }
.arcade-result__burst i:nth-child(4) { top: 65%; right: 5%; background: #e869c4; transform: rotate(-38deg); }
.arcade-result__burst i:nth-child(5) { top: 82%; left: 8%; transform: rotate(50deg); }
.arcade-result__burst i:nth-child(6) { top: 84%; right: 28%; background: #53d8ff; transform: rotate(-12deg); }

@media (max-width: 560px) {
  .arcade-shell {
    grid-template-rows: 62px minmax(0, 1fr) 102px;
    gap: 7px;
  }

  .arcade-heading .micro-label { display: none; }
  .arcade-heading strong { font-size: 0.88rem; }
  .arcade-hud > span:not(.arcade-lives) { min-width: 45px; padding-inline: 5px; }
  .arcade-lives { min-width: 39px; font-size: 0.72rem; }
  .arcade-note-target { width: 82px; height: 82px; border-radius: 26px; }
  .arcade-note-target svg { width: 70px; height: 70px; }
  .arcade-key { height: 94px; }
  .arcade-feedback { max-width: calc(100% - 130px); font-size: 0.55rem; }
}

@media (max-width: 359px) {
  .arcade-shell { padding-inline: 8px; }
  .arcade-heading { display: none; }
  .arcade-topbar { grid-template-columns: auto minmax(0, 1fr); }
  .arcade-hud { justify-content: flex-end; }
  .arcade-key strong { font-size: 0.54rem; }
  .arcade-launch__badge { display: none; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .arcade-shell {
    width: min(100%, 980px);
    padding: var(--safe-top) 12px var(--safe-bottom);
    grid-template-rows: 48px minmax(0, 1fr) 76px;
    gap: 5px;
  }

  .arcade-close { width: 38px; height: 38px; }
  .arcade-hud > span:not(.arcade-lives) { min-height: 36px; }
  .arcade-key { height: 70px; padding-bottom: 7px; }
  .arcade-key::before { top: 4px; font-size: 1.12rem; }
  .arcade-danger-line { bottom: 55px; }
  .arcade-cannon { bottom: -2px; transform: translateX(-50%) scale(0.74); transform-origin: bottom; }
  .arcade-feedback { bottom: 49px; }
  .arcade-note-target { width: 70px; height: 70px; border-radius: 22px; }
  .arcade-note-target svg { width: 61px; height: 61px; }
  .arcade-result { padding: 12px 22px; }
  .arcade-result__icon { width: 55px; height: 55px; margin-bottom: 7px; border-width: 4px; border-radius: 18px; font-size: 1.4rem; }
  .arcade-result h2 { margin-block: 4px; font-size: 1.55rem; }
  .arcade-result > p { margin-bottom: 8px; }
  .arcade-result__stats { margin-bottom: 8px; }
  .arcade-result__stats span { min-height: 54px; }
  .arcade-result .ios-primary-button,
  .arcade-result .secondary-button { min-height: 40px; margin-top: 5px; }
}

.result-confetti {
  position: absolute;
  z-index: 0;
  top: 14%;
  left: 50%;
  width: 260px;
  height: 110px;
  opacity: 0.45;
  pointer-events: none;
  transform: translateX(-50%);
}

.profile-form {
  display: grid;
  margin-top: 20px;
  gap: 18px;
}

.profile-form label {
  display: grid;
  gap: 7px;
}

.profile-form label > span {
  font-size: 0.75rem;
  font-weight: 800;
}

.profile-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 0.85rem;
}

.profile-form small {
  color: var(--text-3);
  font-size: 0.65rem;
  line-height: 1.45;
}

.profile-form .ios-primary-button {
  margin-top: 2px;
}

.nickname-input {
  display: flex;
  height: 50px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.nickname-input b {
  padding-left: 14px;
  color: var(--violet);
}

.nickname-input input {
  height: 48px;
  padding-left: 4px;
  border: 0;
  background: transparent;
}

.guide-hero {
  display: flex;
  padding-right: 36px;
  gap: 14px;
  align-items: flex-start;
}

.guide-hero .sheet-emoji {
  flex: 0 0 auto;
  margin: 0 !important;
}

.guide-hero h2 {
  margin-top: 4px !important;
}

.guide-hero p {
  margin-top: 7px !important;
}

.guide-grid {
  display: grid;
  margin-top: 22px;
  gap: 10px;
}

.guide-card {
  display: grid;
  padding: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.guide-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--violet);
  background: var(--surface);
  font-size: 0.66rem;
  font-weight: 850;
}
.guide-card strong,
.guide-section h3,
.mastery-ladder h3 {
  font-size: 0.85rem;
}

.guide-card p,
.guide-section p {
  margin-top: 5px !important;
}
.mastery-ladder,
.guide-section {
  margin-top: 22px;
}
.mastery-ladder h3,
.guide-section h3 {
  margin: 0 0 11px;
}

.mastery-ladder > div {
  display: grid;
  gap: 7px;
}

.mastery-ladder span {
  position: relative;
  display: flex;
  min-height: 32px;
  padding: 7px 11px;
  overflow: hidden;
  align-items: center;
  border-radius: 10px;
  color: var(--text-2);
  background: var(--surface-soft);
  font-size: 0.7rem;
  font-weight: 750;
}

.mastery-ladder span::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: linear-gradient(90deg, rgba(115, 87, 239, 0.18), rgba(75, 145, 241, 0.1));
  content: "";
}

.mastery-ladder span {
  isolation: isolate;
}

.guide-section ol {
  margin: 0;
  padding-left: 21px;
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1.65;
}

.guide-section--accent {
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--violet-soft), var(--blue-soft));
}

.natural-path-summary {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.natural-path-summary span {
  display: flex;
  min-height: 70px;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text-3);
  background: var(--surface-soft);
  font-size: 0.66rem;
}

.natural-path-summary span.is-open {
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(115, 87, 239, 0.15);
}

.natural-path-summary b {
  color: var(--violet);
}

.path-map-columns {
  display: grid;
  margin-top: 20px;
  gap: 18px;
}

.path-map-columns section {
  display: grid;
  gap: 8px;
}

.path-map-heading {
  display: flex;
  margin-bottom: 3px;
  gap: 10px;
  align-items: center;
}

.path-map-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 1.45rem;
}

.path-map-heading strong,
.path-map-heading small {
  display: block;
}

.path-map-card {
  display: grid;
  width: 100%;
  min-height: 72px;
  padding: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.path-map-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 1.05rem;
  font-weight: 850;
}

.path-map-card strong,
.path-map-card small {
  display: block;
}

.path-map-card strong {
  font-size: 0.74rem;
}

.path-map-card small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-map-card > b {
  color: var(--text-3);
  font-size: 0.62rem;
  white-space: nowrap;
}

.path-map-card .path-progress {
  margin-top: 7px;
}

.path-map-card .path-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.path-map-card--locked {
  opacity: 0.58;
}

.path-map-card--ready > span {
  color: #16754e;
  background: var(--mint-soft);
}

.path-map-final {
  display: grid;
  margin-top: 18px;
  gap: 8px;
}

@media (min-width: 700px) {
  .path-map-columns,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.game-result > *:not(.result-confetti) {
  position: relative;
  z-index: 2;
}

.result-confetti i {
  position: absolute;
  width: 9px;
  height: 17px;
  border-radius: 4px;
  background: var(--violet);
  animation: confetti 1.8s ease-in-out infinite alternate;
}

.result-confetti i:nth-child(1) { top: 8px; left: 12px; background: var(--orange); transform: rotate(30deg); }
.result-confetti i:nth-child(2) { top: 65px; left: 43px; background: var(--mint); transform: rotate(-22deg); }
.result-confetti i:nth-child(3) { top: 14px; right: 25px; background: #e869c4; transform: rotate(18deg); }
.result-confetti i:nth-child(4) { top: 80px; right: 5px; background: var(--blue); transform: rotate(-35deg); }
.result-confetti i:nth-child(5) { top: 86px; left: 20px; transform: rotate(50deg); }
.result-confetti i:nth-child(6) { top: 88px; right: 42px; background: var(--orange); transform: rotate(-12deg); }

@keyframes confetti {
  to {
    translate: 0 7px;
  }
}

.bottom-sheet-backdrop {
  position: fixed;
  z-index: 190;
  inset: 0;
  background: rgba(21, 19, 31, 0.35);
  backdrop-filter: blur(3px);
}

.bottom-sheet-backdrop[hidden] {
  display: none;
}

.bottom-sheet {
  position: fixed;
  z-index: 200;
  right: max(8px, calc((100vw - 520px) / 2 + 8px));
  bottom: 8px;
  left: max(8px, calc((100vw - 520px) / 2 + 8px));
  max-height: 78vh;
  max-height: min(78dvh, 650px);
  padding: 12px 20px calc(22px + var(--safe-bottom));
  overflow-y: auto;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 -20px 60px rgba(32, 28, 56, 0.2);
  transform: translateY(calc(100% + 20px));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-sheet--active {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 5px;
  margin: 0 auto 15px;
  border-radius: 999px;
  background: #dfdee5;
}

.sheet-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: var(--surface-soft);
}

#sheetContent {
  padding-top: 12px;
}

#sheetContent .sheet-emoji {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 21px;
  background: var(--violet-soft);
  font-size: 1.8rem;
}

#sheetContent h2 {
  margin: 0 45px 10px 0;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
}

#sheetContent p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.83rem;
  line-height: 1.6;
}

#sheetContent ul {
  margin: 17px 0 0;
  padding-left: 19px;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: calc(102px + var(--safe-bottom));
  left: 18px;
  max-width: 440px;
  min-height: 50px;
  margin: auto;
  padding: 13px 18px;
  border-radius: 17px;
  color: #fff;
  background: rgba(28, 26, 39, 0.94);
  box-shadow: 0 12px 35px rgba(25, 22, 42, 0.25);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 374px) {
  .guide-button {
    width: 40px;
    margin-right: 7px;
    padding: 0;
    justify-content: center;
  }

  .guide-button span {
    display: none;
  }

  .app-view,
  .game-view,
  .game-result {
    padding-inline: 14px;
  }

  .daily-hero {
    padding-inline: 16px;
  }

  .daily-hero__content {
    margin-block: 23px 19px;
  }

  .goal-ring {
    width: 77px;
    height: 77px;
  }

  .mode-card {
    gap: 8px;
  }

  .mode-card__icon {
    width: 49px;
    height: 49px;
  }

  .mode-card__badge {
    display: none;
  }

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

  .skill-list article {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .skill-progress {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --safe-top: max(8px, env(safe-area-inset-top));
    --safe-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .game-view {
    display: grid;
    width: 100%;
    max-width: 980px;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    padding: var(--safe-top) max(12px, env(safe-area-inset-right)) var(--safe-bottom) max(12px, env(safe-area-inset-left));
    grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
    grid-template-rows: 54px auto minmax(0, 1fr);
    gap: 7px 14px;
    overflow: hidden;
  }

  .game-topbar {
    grid-column: 1 / -1;
    height: 42px;
  }

  .game-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .question-timebar {
    height: 4px;
  }

  .staff-card {
    grid-column: 1;
    grid-row: 2 / 4;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    padding: 4px 7px 7px;
    border-radius: 22px;
  }

  .staff {
    height: calc(100% - 27px);
    max-height: none;
  }

  .staff-listen-hint {
    margin: 0 4px;
    font-size: 0.62rem;
  }

  .game-feedback {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 8px 4px 3px;
    align-self: end;
  }

  .note-answers {
    grid-column: 2;
    grid-row: 3;
    height: 100%;
    min-height: 190px;
    max-height: 265px;
  }

  .piano-white-key {
    height: 100%;
    padding-top: 76px;
  }

  .piano-black-key {
    left: calc((100% / 7) * var(--key-index) - min(17px, 2.15vw));
    width: min(34px, 4.3vw);
    height: 56%;
    max-height: 130px;
  }

  .game-result {
    width: min(100%, 720px);
    height: 100dvh;
    min-height: 0;
    padding: 8px 20px;
  }

  .result-medal {
    width: 66px;
    height: 66px;
    margin-bottom: 8px;
    border-width: 5px;
    border-radius: 22px;
    font-size: 1.75rem;
  }

  .game-result h1 {
    margin: 2px 0 3px;
    font-size: 2rem;
  }

  .game-result > p {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .result-stats {
    max-width: 520px;
  }

  .result-stats div {
    min-height: 62px;
    padding: 5px;
    border-radius: 16px;
  }

  .result-stats strong {
    margin-top: 2px;
    font-size: 1rem;
  }

  .game-result .ios-primary-button,
  .game-result .secondary-button {
    max-width: 520px;
    min-height: 40px;
    margin-top: 6px;
    padding-block: 7px;
    border-radius: 14px;
  }
}

@media (min-width: 700px) {
  body {
    background:
      radial-gradient(circle at 25% 15%, rgba(126, 96, 242, 0.1), transparent 34rem),
      radial-gradient(circle at 78% 80%, rgba(75, 145, 241, 0.08), transparent 32rem),
      var(--bg);
  }

  .app-content {
    width: min(100%, 920px);
    border-inline: 1px solid rgba(30, 28, 45, 0.04);
    background: rgba(247, 247, 251, 0.93);
  }

  .app-view {
    padding-inline: 28px;
  }

  #homeView.app-view--active,
  #statsView.app-view--active,
  #reminderView.app-view--active,
  #profileView.app-view--active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
  }

  #homeView > .page-header,
  #homeView > .home-title,
  #homeView > .achievements-preview,
  #statsView > .page-header,
  #statsView > .stat-summary-grid,
  #statsView > .content-section,
  #reminderView > .page-header,
  #profileView > .page-header,
  #profileView > .profile-settings {
    grid-column: 1 / -1;
  }

  #homeView > .page-header,
  #homeView > .home-title {
    margin-bottom: 0;
  }

  #homeView > .daily-hero,
  #homeView > .content-section,
  #statsView > .chart-card,
  #statsView > .growth-card,
  #statsView > .insight-card,
  #statsView > .competition-card,
  #reminderView > .settings-group,
  #reminderView > .content-section,
  #profileView > .content-section {
    margin-top: 0;
  }

  #homeView > .daily-hero,
  #homeView > .content-section:first-of-type {
    align-self: stretch;
  }

  #homeView > .content-section:nth-of-type(2) {
    grid-column: 1 / -1;
  }

  #statsView > .chart-card,
  #statsView > .growth-card {
    min-height: 270px;
  }

  #reminderView > .page-header {
    margin-bottom: 0;
  }

  #reminderView > .reminder-hero {
    grid-row: span 3;
  }

  #reminderView > .ios-primary-button,
  #reminderView > .reminder-note,
  #profileView > .profile-card,
  #profileView > .content-section {
    align-self: start;
  }

  #reminderView > .reminder-note {
    margin-top: 0;
  }

  .achievement-row {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    grid-auto-columns: minmax(108px, 1fr);
  }

  .tab-bar {
    right: max(22px, calc((100vw - 720px) / 2));
    left: max(22px, calc((100vw - 720px) / 2));
  }

  .game-view {
    width: min(100%, 760px);
    padding-inline: 28px;
  }

  .staff {
    max-height: 270px;
  }

  .note-answers,
  .piano-white-key {
    height: 210px;
  }

  .piano-black-key {
    height: 120px;
  }
}

@media (min-width: 1100px) and (min-height: 650px) {
  .app-content {
    width: min(100%, 1320px);
    padding: 0 26px 0 124px;
    border-inline: 0;
  }

  .app-view {
    height: 100vh;
    min-height: 0;
    padding: 22px 28px;
    overflow: hidden;
  }

  .page-header {
    min-height: 54px;
    margin-bottom: 0;
  }

  .page-header h1 {
    font-size: 2.35rem;
  }

  #homeView.app-view--active {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto minmax(300px, auto) minmax(150px, auto);
    gap: 14px 18px;
  }

  #homeView > .page-header,
  #homeView > .home-title,
  #homeView > .achievements-preview {
    grid-column: 1 / -1;
  }

  #homeView > .daily-hero {
    grid-column: 1;
    grid-row: 3;
    min-height: 300px;
  }

  #homeView > .content-section:first-of-type {
    grid-column: 2;
    grid-row: 3;
  }

  #homeView > .content-section:nth-of-type(2) {
    grid-column: 3;
    grid-row: 3;
  }

  #homeView > .achievements-preview {
    grid-row: 4;
  }

  .home-title p {
    font-size: 1.25rem;
  }

  .home-title h1 {
    font-size: 2.7rem;
  }

  .daily-hero {
    padding: 18px;
  }

  .daily-hero__content {
    margin-block: 25px 20px;
  }

  .daily-hero__content h2 {
    font-size: 2.45rem;
  }

  .mode-list,
  .learning-path {
    gap: 8px;
  }

  .mode-card,
  .path-stage {
    min-height: 76px;
    padding-block: 9px;
  }

  .mode-card__icon {
    width: 49px;
    height: 49px;
  }

  .achievements-preview .section-heading {
    margin-bottom: 8px;
  }

  .achievements-preview .achievement-card {
    min-height: 112px;
  }

  #statsView.app-view--active {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto minmax(250px, 1fr) auto;
    gap: 14px;
  }

  #statsView > .page-header,
  #statsView > .stat-summary-grid {
    grid-column: 1 / -1;
  }

  #statsView > .chart-card {
    grid-column: 1 / 7;
    min-height: 0;
  }

  #statsView > .growth-card {
    grid-column: 7 / -1;
    min-height: 0;
  }

  #statsView > .content-section {
    grid-column: 1 / 7;
  }

  #statsView > .insight-card {
    grid-column: 7 / 10;
  }

  #statsView > .competition-card {
    grid-column: 10 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  #statsView > .competition-card .soon-pill {
    grid-column: 2;
    justify-self: start;
  }

  .week-chart {
    height: 170px;
  }

  .growth-chart {
    height: 168px;
  }

  #reminderView.app-view--active {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto 1fr;
    gap: 14px 20px;
  }

  #reminderView > .page-header {
    grid-column: 1 / -1;
  }

  #reminderView > .reminder-hero {
    grid-column: 1 / 7;
    grid-row: 2 / 6;
    min-height: 0;
    height: 100%;
  }

  #reminderView > .settings-group,
  #reminderView > .content-section,
  #reminderView > .ios-primary-button,
  #reminderView > .reminder-note {
    grid-column: 7 / -1;
  }

  #reminderView > .ios-primary-button {
    margin-top: 0;
  }

  #profileView.app-view--active {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    gap: 16px 20px;
  }

  #profileView > .page-header {
    grid-column: 1 / -1;
  }

  #profileView > .profile-card {
    grid-column: 1 / 5;
    grid-row: 2 / 4;
    height: 100%;
    justify-content: flex-start;
    padding-top: 48px;
  }

  #profileView > .content-section {
    grid-column: 5 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  #profileView > .profile-settings {
    grid-column: 5 / -1;
    grid-row: 3;
    margin-top: 0;
  }

  #profileView .achievement-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  #profileView .achievement-card {
    min-height: 122px;
  }

  .tab-bar {
    top: 27px;
    right: auto;
    bottom: auto;
    left: max(18px, calc((100vw - 1320px) / 2 + 18px));
    width: 88px;
    height: auto;
    padding: 9px;
    grid-template-columns: 1fr;
    transform: none;
  }

  .tab-button {
    min-height: 72px;
  }

  .game-view {
    display: grid;
    width: min(100%, 1200px);
    max-width: 1200px;
    height: 100vh;
    min-height: 0;
    padding: 20px 28px;
    grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
    grid-template-rows: 58px auto minmax(0, 1fr);
    gap: 14px 28px;
    overflow: hidden;
  }

  .game-topbar {
    grid-column: 1 / -1;
  }

  .staff-card {
    grid-column: 1;
    grid-row: 2 / 4;
    min-height: 0;
  }

  .staff {
    height: calc(100% - 30px);
    max-height: none;
  }

  .game-feedback {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .note-answers {
    grid-column: 2;
    grid-row: 3;
    height: 100%;
    max-height: 440px;
    align-self: start;
  }

  .piano-white-key {
    height: 100%;
    padding-top: 120px;
  }

  .piano-black-key {
    left: calc((100% / 7) * var(--key-index) - min(22px, 1.8vw));
    width: min(44px, 3.6vw);
    height: 58%;
    max-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Physical piano input and microphone calibration */
.input-calibration {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(165, 255, 44, 0.14), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(75, 145, 241, 0.14), transparent 30%),
    var(--background);
}

.input-calibration:not(.input-calibration--active) { display: none; }

.input-calibration__shell {
  display: grid;
  width: min(100%, 1180px);
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  margin: 0 auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.input-calibration__header {
  display: grid;
  min-height: 86px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 42px) 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.input-calibration__header > div { min-width: 0; }

.input-calibration__header strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calibration-step-badge {
  display: inline-grid;
  min-width: 52px;
  min-height: 32px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--violet);
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.calibration-progress {
  overflow: hidden;
  height: 5px;
  grid-column: 1 / -1;
  border-radius: 999px;
  background: var(--track);
}

.calibration-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #43ddd4, var(--acid));
  transition: width 0.3s ease;
}

.input-calibration__content {
  overflow: auto;
  min-height: 0;
  padding: 12px clamp(16px, 5vw, 64px) 20px;
  scrollbar-color: var(--violet) transparent;
}

.calibration-panel {
  width: min(100%, 820px);
  min-height: 100%;
  margin: 0 auto;
}

.calibration-panel--intro,
.calibration-panel--summary {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.calibration-panel[hidden] { display: none; }

.calibration-hero-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 27px;
  background: linear-gradient(145deg, var(--surface), var(--violet-soft));
  box-shadow: var(--shadow);
  font-size: 2.35rem;
}

.calibration-panel h1 {
  max-width: 690px;
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 5vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.calibration-panel > p,
.calibration-run-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(0.8rem, 1.7vw, 1rem);
  line-height: 1.55;
}

.calibration-rules {
  display: grid;
  width: 100%;
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calibration-rules span,
.calibration-summary-stats span {
  display: flex;
  min-width: 0;
  padding: 16px 12px;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calibration-rules b {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 11px;
  color: #152008;
  background: var(--acid);
  font-size: 0.76rem;
}

.calibration-rules strong,
.calibration-summary-stats strong { font-size: 0.8rem; }

.calibration-rules small,
.calibration-summary-stats small {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.65rem;
  line-height: 1.35;
}

.calibration-panel .calibration-privacy {
  margin-top: 17px;
  color: var(--text-3);
  font-size: 0.68rem;
}

.calibration-panel--run {
  display: grid;
  max-width: 940px;
  grid-template-columns: minmax(220px, 0.72fr) minmax(330px, 1.28fr);
  grid-template-areas:
    "copy piano"
    "note piano"
    "detected detected"
    "meter meter"
    "keys keys";
  gap: 14px 20px;
  align-content: center;
}

.calibration-run-copy { grid-area: copy; align-self: end; }

.calibration-run-copy h1 {
  margin-top: 7px;
  font-size: clamp(1.45rem, 3.6vw, 2.45rem);
}

.calibration-note-card {
  display: grid;
  min-height: 138px;
  padding: 18px;
  grid-area: note;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calibration-note-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 15px;
  color: #172006;
  background: var(--acid);
  font-size: 1.3rem;
  font-weight: 900;
}

.calibration-note-card strong {
  align-self: end;
  margin-left: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  line-height: 1;
}

.calibration-note-card small {
  align-self: start;
  margin: 6px 0 0 14px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 750;
}

.calibration-piano {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  grid-area: piano;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #d9dde5;
  box-shadow: var(--shadow);
}

.calibration-piano__whites {
  display: grid;
  position: absolute;
  inset: 0;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.calibration-piano-key--white {
  position: relative;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8bec9;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(100deg, #fff, #edf0f5 75%, #dfe3ea);
  box-shadow: inset 0 -7px 0 #c7ccd4;
}

.calibration-piano-key--white.is-target {
  background: linear-gradient(160deg, #eaffc8, var(--acid));
  box-shadow: inset 0 -7px 0 #80c900, 0 0 28px rgba(165, 255, 44, 0.55);
}

.calibration-piano-key--black {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 8.5%;
  height: 62%;
  border: 0;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(100deg, #090d14, #303746 55%, #080b11);
  box-shadow: 0 8px 8px rgba(8, 12, 20, 0.35), inset 0 -5px 0 #030508;
  transform: translateX(-50%);
}

.calibration-piano-key--black.is-target {
  background: linear-gradient(160deg, #d9ff97, #7fd600);
  box-shadow: 0 0 28px rgba(165, 255, 44, 0.7), inset 0 -5px 0 #5e9f00;
}

.calibration-piano-key i {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  color: #69717e;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.calibration-piano-key--black i { bottom: 10px; color: #fff; }

.calibration-detected {
  display: grid;
  min-height: 66px;
  padding: 12px 16px;
  grid-area: detected;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.calibration-detected strong,
.calibration-detected small { display: block; }
.calibration-detected strong { font-size: 0.83rem; }
.calibration-detected small { margin-top: 3px; color: var(--text-3); font-size: 0.67rem; }
.calibration-detected.is-success { border-color: rgba(29, 187, 121, 0.36); background: rgba(29, 187, 121, 0.1); }
.calibration-detected.is-warning { border-color: rgba(245, 151, 35, 0.38); background: rgba(245, 151, 35, 0.11); }

.calibration-listening-dot {
  width: 16px;
  height: 16px;
  border: 4px solid rgba(75, 145, 241, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: calibration-spin 0.85s linear infinite;
}

.is-success .calibration-listening-dot,
.is-warning .calibration-listening-dot { border: 0; background: currentColor; animation: none; }
.is-success .calibration-listening-dot { color: var(--green); }
.is-warning .calibration-listening-dot { color: var(--orange); }

@keyframes calibration-spin { to { transform: rotate(360deg); } }

.calibration-meter {
  overflow: hidden;
  height: 7px;
  grid-area: meter;
  border-radius: 999px;
  background: var(--track);
}

.calibration-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #45d8c8, var(--acid), var(--orange));
  transition: width 0.09s linear;
}

.calibration-key-progress {
  display: grid;
  grid-area: keys;
  grid-template-columns: repeat(49, minmax(3px, 1fr));
  gap: 3px;
}

.calibration-key-progress i { height: 7px; border-radius: 999px; background: var(--track); }
.calibration-key-progress i.is-done { background: var(--green); }
.calibration-key-progress i.is-current { background: var(--acid); box-shadow: 0 0 0 3px rgba(165, 255, 44, 0.2); }

.calibration-summary-stats {
  display: grid;
  width: 100%;
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calibration-summary-stats strong { font-family: var(--font-display); font-size: clamp(1.2rem, 4vw, 2rem); }

.calibration-diagnosis {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(29, 187, 121, 0.28);
  border-radius: 20px;
  color: var(--text-2);
  background: rgba(29, 187, 121, 0.09);
  font-size: 0.76rem;
  line-height: 1.5;
}

.calibration-diagnosis.is-warning { border-color: rgba(245, 151, 35, 0.34); background: rgba(245, 151, 35, 0.1); }
.calibration-diagnosis.is-danger { border-color: rgba(235, 82, 96, 0.34); background: rgba(235, 82, 96, 0.1); }

.input-calibration__footer {
  display: flex;
  min-height: 84px;
  padding: 12px clamp(16px, 5vw, 64px) max(12px, env(safe-area-inset-bottom));
  gap: 10px;
  justify-content: center;
  background: linear-gradient(180deg, transparent, var(--background) 24%);
}

.input-calibration__footer button { width: min(100%, 360px); min-height: 54px; margin: 0; }
.input-calibration__footer .secondary-button { max-width: 160px; }

.input-choice-list { display: grid; margin-top: 18px; gap: 10px; }

.input-choice {
  display: grid;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.input-choice > i {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 15px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 1.25rem;
  font-style: normal;
}

.input-choice strong,
.input-choice small { display: block; }
.input-choice strong { font-size: 0.83rem; }
.input-choice small { margin-top: 4px; color: var(--text-3); font-size: 0.67rem; line-height: 1.35; }
.input-choice > b { color: var(--text-3); font-size: 0.67rem; }
.input-choice.is-selected { border-color: rgba(115, 87, 239, 0.42); box-shadow: inset 0 0 0 1px rgba(115, 87, 239, 0.16); }
.input-choice[disabled] { opacity: 0.55; cursor: not-allowed; }

.input-calibration-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}

.input-calibration-card strong,
.input-calibration-card small { display: block; }
.input-calibration-card small { margin-top: 5px; color: var(--text-3); font-size: 0.68rem; line-height: 1.45; }
.input-calibration-card button { width: 100%; min-height: 46px; margin-top: 12px; }

.game-input-badge {
  display: inline-flex;
  min-height: 22px;
  padding: 0 8px;
  align-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.6rem;
  font-weight: 850;
}

@media (max-width: 680px) {
  .input-calibration__header { min-height: 76px; padding-bottom: 9px; }
  .input-calibration__content { padding-top: 6px; }
  .calibration-rules { grid-template-columns: 1fr; }
  .calibration-rules span {
    display: grid;
    min-height: 68px;
    padding: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 11px;
    text-align: left;
  }
  .calibration-rules b { margin: 0; grid-row: 1 / 3; }
  .calibration-panel--run { grid-template-columns: 1fr; grid-template-areas: "copy" "note" "piano" "detected" "meter" "keys"; align-content: start; }
  .calibration-piano { min-height: 176px; }
  .calibration-note-card { min-height: 96px; }
  .calibration-key-progress { gap: 2px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .input-calibration__header { min-height: 60px; padding-top: 8px; padding-bottom: 7px; }
  .input-calibration__content { padding-top: 4px; padding-bottom: 5px; }
  .input-calibration__footer { min-height: 64px; padding-top: 5px; padding-bottom: 6px; }
  .input-calibration__footer button { min-height: 46px; }
  .calibration-panel--run {
    grid-template-columns: minmax(200px, 0.7fr) minmax(330px, 1.3fr);
    grid-template-areas: "copy piano" "note piano" "detected meter" "keys keys";
    gap: 8px 14px;
  }
  .calibration-run-copy h1 { margin-bottom: 5px; font-size: 1.28rem; }
  .calibration-run-copy p { display: none; }
  .calibration-note-card { min-height: 72px; padding: 9px; }
  .calibration-note-card strong { font-size: 1.7rem; }
  .calibration-piano { min-height: 145px; }
  .calibration-detected { min-height: 42px; padding: 5px 10px; }
  .calibration-detected small { margin-top: 1px; font-size: 0.6rem; }
  .calibration-meter { align-self: center; }
}
