:root {
  --bg0: #f4f6ff;
  --bg1: #f7f9ff;
  --ink: rgba(15, 18, 30, 0.92);
  --muted: rgba(15, 18, 30, 0.58);
  --glass: rgba(255, 255, 255, 0.78);
  --stroke: rgba(15, 18, 30, 0.12);
  --accent: #6b63ff;
  --accent2: #2b8cff;
  --blank-underline: rgba(43, 140, 255, 0.45);
  --blank-active-underline: rgba(255, 140, 163, 0.86);
  --blank-active-bg: rgba(255, 140, 163, 0.12);
  --shadow: 0 18px 46px rgba(22, 26, 60, 0.12);
  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
}

.app-shell {
  min-height: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(7, 11, 23, 0.82),
    rgba(7, 11, 23, 0.52)
  );
  backdrop-filter: blur(12px);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: conic-gradient(
    from 220deg,
    rgba(140, 92, 255, 1),
    rgba(46, 233, 166, 1),
    rgba(140, 92, 255, 1)
  );
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.brand__mark:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 23, 0.2),
    rgba(7, 11, 23, 0.72)
  );
}

.brand__title {
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times,
    serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 18px;
  line-height: 1.1;
}

.brand__subtitle {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.stage {
  padding: 0 0 52px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r20);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__header {
  padding: 18px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(15, 18, 30, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86),
    rgba(255, 255, 255, 0.72)
  );
}

.panel__headerRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h1 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times,
    serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.2px;
}

.h2 {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 18, 30, 0.06);
  border: 1px solid rgba(15, 18, 30, 0.1);
  color: rgba(15, 18, 30, 0.7);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

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

.card {
  border-radius: var(--r16);
  border: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(22, 26, 60, 0.08);
}

.book {
  display: grid;
  grid-template-rows: 132px auto;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  outline: none;
  transition: transform 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.book:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 92, 255, 0.5);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.book:focus-visible {
  outline: 2px solid rgba(140, 92, 255, 0.8);
  outline-offset: 2px;
}

.book__cover {
  border-radius: 14px 14px 0 0;
  background: radial-gradient(
      220px 140px at 20% 28%,
      rgba(140, 92, 255, 0.6),
      rgba(255, 255, 255, 0)
    ),
    radial-gradient(
      220px 140px at 82% 16%,
      rgba(46, 233, 166, 0.4),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.03)
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.book__meta {
  padding: 12px 12px 14px;
}

.book__name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.book__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(15, 18, 30, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.82)
  );
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease,
    background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 99, 255, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.65);
}

.btn--soft {
  border-color: rgba(107, 99, 255, 0.28);
  background: linear-gradient(
    180deg,
    rgba(107, 99, 255, 0.18),
    rgba(107, 99, 255, 0.08)
  );
}

.btn--pill {
  border-radius: 999px;
  padding: 9px 12px;
}

.is-hidden {
  display: none;
}

.home-hero {
  background: linear-gradient(90deg, #6b63ff, #7e66ff, #6c5ce7);
  padding: 48px 0 44px;
}

.home-hero__content {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.home-hero__logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
}

.home-hero__logo:after {
  content: "";
  position: absolute;
  inset: 10px 12px 12px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-left-color: rgba(255, 255, 255, 0.28);
}

.home-hero__title {
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times,
    serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.home-hero__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.home-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease,
    background 140ms ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.pill.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.46);
}

.home-hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.actionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 140ms ease, filter 140ms ease;
}

.actionBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.actionBtn--green {
  background: linear-gradient(180deg, #20c565, #12a94f);
}

.actionBtn--red {
  background: linear-gradient(180deg, #ff5a5a, #f23b3b);
}

.home-body {
  padding-top: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.statCard {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 18, 30, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(22, 26, 60, 0.1);
  padding: 16px 18px;
}

.statCard__label {
  font-size: 12px;
  color: rgba(15, 18, 30, 0.62);
  font-weight: 700;
}

.statCard__value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.home-section {
  margin-top: 18px;
}

.home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 12px;
}

.hint {
  font-size: 12px;
  color: rgba(15, 18, 30, 0.55);
}

.guideCard {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 18, 30, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(22, 26, 60, 0.1);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guideCard:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 99, 255, 0.38);
  box-shadow: 0 18px 40px rgba(22, 26, 60, 0.14);
}

.guideCard__meta {
  display: grid;
  gap: 6px;
}

.guideCard__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(15, 18, 30, 0.9);
}

.guideCard__desc {
  font-size: 13px;
  color: rgba(15, 18, 30, 0.62);
}

.guideCard__arrow {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 99, 255, 0.12);
  border: 1px solid rgba(107, 99, 255, 0.18);
  color: rgba(107, 99, 255, 0.9);
  font-weight: 900;
}

.bookGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.bookCard {
  appearance: none;
  border: 1px solid rgba(15, 18, 30, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(22, 26, 60, 0.1);
  padding: 10px 10px 12px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bookCard:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 99, 255, 0.42);
  box-shadow: 0 18px 40px rgba(22, 26, 60, 0.16);
}

.bookCard:focus-visible {
  outline: 2px solid rgba(107, 99, 255, 0.5);
  outline-offset: 2px;
}

.bookCard__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: linear-gradient(
    135deg,
    rgba(107, 99, 255, 0.16),
    rgba(43, 140, 255, 0.12)
  );
}

.bookCard__name {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  color: rgba(15, 18, 30, 0.86);
}

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

.courseGrid.is-hidden {
  display: none;
}

.courseCard {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 18, 30, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(22, 26, 60, 0.1);
  padding: 16px 16px 14px;
  display: grid;
  gap: 8px;
}

.courseCard__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.courseCard__icon--purple {
  background: linear-gradient(
    180deg,
    rgba(107, 99, 255, 0.28),
    rgba(107, 99, 255, 0.16)
  );
  border: 1px solid rgba(107, 99, 255, 0.26);
}

.courseCard__icon--pink {
  background: linear-gradient(
    180deg,
    rgba(255, 99, 180, 0.24),
    rgba(255, 99, 180, 0.14)
  );
  border: 1px solid rgba(255, 99, 180, 0.22);
}

.courseCard__icon--blue {
  background: linear-gradient(
    180deg,
    rgba(43, 140, 255, 0.22),
    rgba(43, 140, 255, 0.12)
  );
  border: 1px solid rgba(43, 140, 255, 0.2);
}

.courseCard__icon--green {
  background: linear-gradient(
    180deg,
    rgba(32, 197, 101, 0.22),
    rgba(32, 197, 101, 0.12)
  );
  border: 1px solid rgba(32, 197, 101, 0.2);
}

.courseCard__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 13px;
}

.courseCard__desc {
  color: rgba(15, 18, 30, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.courseCard__cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(107, 99, 255, 0.92);
  text-decoration: none;
}

.courseCard__cta:hover {
  text-decoration: underline;
}

.home-footer {
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(15, 18, 30, 0.08);
  display: flex;
  justify-content: center;
}

.home-footer__links {
  color: rgba(15, 18, 30, 0.52);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-footer__link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.home-footer__link:hover {
  text-decoration: underline;
}

.home-footer__sep {
  opacity: 0.5;
}

.guide-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.guideHeader {
  padding: 18px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guideArticle {
  margin-top: 14px;
  padding: 18px 18px;
  color: rgba(15, 18, 30, 0.86);
  line-height: 1.75;
}

.guideArticle__h2 {
  margin-top: 16px;
}

.guideArticle__h2:first-child {
  margin-top: 0;
}

.guideArticle__p {
  margin: 10px 0 0;
  color: rgba(15, 18, 30, 0.72);
}

.practice-wrap {
  position: relative;
  padding-top: 22px;
}

.practiceTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(213, 238, 255, 0.92), rgba(209, 232, 255, 0.72));
  border: 1px solid rgba(43, 140, 255, 0.14);
  box-shadow: 0 18px 46px rgba(22, 26, 60, 0.12);
}

.practiceTop__meta {
  min-width: 260px;
}

.practiceTop__title {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times,
    serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.practiceTop__subtitle {
  margin: 6px 0 0;
  color: rgba(15, 18, 30, 0.56);
  font-size: 12px;
}

.practiceTop__player {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: min(560px, 100%);
}

.playerUpload {
  appearance: none;
  border: 1px dashed rgba(15, 18, 30, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 18, 30, 0.74);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.playerUpload__dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 173, 87, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 173, 87, 0.18);
}

.playerBar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 18, 30, 0.1);
}

.playerBtn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 30, 0.1);
  background: rgba(15, 18, 30, 0.04);
  color: rgba(15, 18, 30, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

.playerBtn:hover {
  background: rgba(15, 18, 30, 0.08);
  color: rgba(15, 18, 30, 0.88);
}

.playerBtn:disabled {
  cursor: default;
  opacity: 0.4;
}

.playerTime {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 18, 30, 0.62);
  white-space: nowrap;
}

.playerTime--cur {
  min-width: 36px;
}

.playerTime--end {
  min-width: 36px;
  text-align: right;
}

.playerSpeedWrap {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
}

.playerSpeed {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(15, 18, 30, 0.03);
  color: rgba(15, 18, 30, 0.52);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.playerSpeed:hover,
.playerSpeedWrap:has(.playerSpeedMenu:not(.is-hidden)) .playerSpeed {
  background: rgba(15, 18, 30, 0.06);
  color: rgba(15, 18, 30, 0.72);
}

.playerSpeedMenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 18, 30, 0.08);
  box-shadow: 0 8px 24px rgba(15, 18, 30, 0.12);
  z-index: 60;
}

.playerSpeedMenu.is-hidden {
  display: none;
}

.playerSpeedMenu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(15, 18, 30, 0.64);
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.playerSpeedMenu button:hover {
  background: rgba(15, 18, 30, 0.06);
  color: rgba(15, 18, 30, 0.86);
}

.playerSpeedMenu button.is-active {
  background: rgba(43, 140, 255, 0.12);
  color: rgba(15, 18, 30, 0.86);
}

.playerTrack {
  position: relative;
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: rgba(15, 18, 30, 0.1);
  overflow: visible;
  cursor: pointer;
}

.playerTrack__fill {
  width: 26%;
  height: 100%;
  border-radius: 999px;
  background: rgba(15, 18, 30, 0.64);
}

.playerTrack__thumb {
  position: absolute;
  left: calc(26% - 8px);
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(15, 18, 30, 0.9);
  box-shadow: 0 2px 6px rgba(15, 18, 30, 0.18);
}

.practiceLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 16px 0 0;
  align-items: start;
}

.practiceLeft {
  padding: 16px 16px 12px;
}

.practiceLeft__legend {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legendChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 12px;
  border: 1px solid rgba(107, 99, 255, 0.2);
  background: rgba(107, 99, 255, 0.12);
  color: rgba(15, 18, 30, 0.78);
}

.dialogList {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.dialogItem {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 18, 30, 0.1);
}

.dialogItem:last-child {
  border-bottom: 0;
}

.dialogRow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dialogTag {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 18, 30, 0.04);
  border: 1px solid rgba(15, 18, 30, 0.06);
  font-weight: 800;
  color: rgba(15, 18, 30, 0.84);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2px;
}

.dialogCol {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.dialogText {
  line-height: 1.6;
  color: rgba(15, 18, 30, 0.82);
  font-size: 22px;
}

.dialogEye {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(15, 18, 30, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: rgba(15, 18, 30, 0.72);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dialogEye:hover {
  background: rgba(15, 18, 30, 0.06);
  border-color: rgba(15, 18, 30, 0.12);
  color: rgba(15, 18, 30, 0.82);
}

.dialogEye:disabled {
  opacity: 0.35;
  cursor: default;
}

.blank {
  display: inline-block;
  text-align: center;
  vertical-align: bottom;
  box-sizing: border-box;
  height: 1.5em;
  line-height: 1.5em;
  padding: 0 8px;
  margin: 0 4px;
  border-bottom: 2px solid var(--blank-underline);
  border-radius: 6px 6px 0 0;
  color: rgba(15, 18, 30, 0.74);
  font-weight: inherit;
  min-width: 10ch;
}

.blank.is-editing {
  border-bottom-color: var(--blank-active-underline);
  background: var(--blank-active-bg);
  caret-color: rgba(15, 18, 30, 0.86);
  outline: none;
}

.blank.is-editing.is-wrong {
  border-bottom-color: var(--blank-active-underline);
  background: var(--blank-active-bg);
  color: inherit;
}

.blank--xs {
  width: 16ch;
}

.blank--s {
  width: 16ch;
}

.blank--m {
  width: 16ch;
}

.blank--l {
  width: 16ch;
}

.blank.is-wrong {
  border-bottom-color: rgba(255, 77, 79, 0.72);
  background: rgba(255, 77, 79, 0.12);
  color: rgba(255, 77, 79, 0.92);
  border-radius: 6px 6px 0 0;
}

.dialogHint {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(107, 99, 255, 0.08);
  border: 1px solid rgba(107, 99, 255, 0.16);
  color: rgba(15, 18, 30, 0.7);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.dialogHint.is-hidden {
  display: none;
}

.practiceLeft__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 18, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.practiceDots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(15, 18, 30, 0.54);
  font-weight: 800;
  font-size: 11px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.dot--blue {
  background: rgba(43, 140, 255, 0.92);
}

.dot--gray {
  background: rgba(15, 18, 30, 0.28);
}

.dot--purple {
  background: rgba(107, 99, 255, 0.92);
}

.dot__label {
  margin-right: 6px;
}

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

.pagerBtn {
  width: 30px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 18, 30, 0.1);
}

.pagerBtn.is-active {
  background: rgba(107, 99, 255, 0.58);
}

.practiceRight {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.shortcutCard {
  padding: 14px 14px;
  background: rgba(255, 246, 166, 0.74);
  border: 1px solid rgba(255, 211, 94, 0.35);
}

.shortcutCard__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.shortcutItem {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 18, 30, 0.06);
  margin-bottom: 10px;
}

.shortcutItem:last-child {
  margin-bottom: 0;
}

.shortcutKey {
  font-weight: 900;
  color: rgba(15, 18, 30, 0.82);
  letter-spacing: 0.2px;
  font-size: 12px;
}

.shortcutDesc {
  color: rgba(15, 18, 30, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.actionCard {
  padding: 14px 14px;
  display: grid;
  gap: 10px;
}

.actionBig {
  appearance: none;
  border: 1px solid rgba(15, 18, 30, 0.08);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.actionBig:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  border-color: rgba(107, 99, 255, 0.22);
}

.actionBig:active {
  transform: translateY(0);
}

.actionBig__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.actionBig--green {
  background: linear-gradient(180deg, rgba(178, 255, 210, 0.92), rgba(144, 247, 192, 0.82));
  border-color: rgba(32, 197, 101, 0.22);
  color: rgba(15, 18, 30, 0.82);
}

.actionBig--blue {
  background: linear-gradient(180deg, rgba(197, 231, 255, 0.92), rgba(172, 214, 255, 0.82));
  border-color: rgba(43, 140, 255, 0.22);
  color: rgba(15, 18, 30, 0.82);
}

.actionBig--soft {
  background: linear-gradient(180deg, rgba(233, 236, 255, 0.9), rgba(230, 232, 255, 0.78));
  border-color: rgba(107, 99, 255, 0.18);
  color: rgba(15, 18, 30, 0.78);
  font-weight: 800;
  font-size: 12px;
}

.actionBig--purple {
  background: linear-gradient(180deg, rgba(216, 204, 255, 0.96), rgba(195, 176, 255, 0.82));
  border-color: rgba(107, 99, 255, 0.22);
  color: rgba(15, 18, 30, 0.82);
}

.actionBig--reset {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 18, 30, 0.08);
  color: rgba(15, 18, 30, 0.6);
}

.actionBig.is-hidden {
  display: none;
}

.scoreLine {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 97, 117, 0.12);
  border: 1px solid rgba(255, 97, 117, 0.18);
  color: rgba(15, 18, 30, 0.82);
  font-weight: 900;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(22, 26, 60, 0.18);
}

.scoreLine.is-hidden {
  display: none;
}

.blank.is-correct {
  border-bottom-color: rgba(46, 184, 110, 0.85);
  background: rgba(255, 140, 163, 0.12);
  color: rgba(26, 160, 90, 0.95);
  border-radius: 6px 6px 0 0;
}

.scoreLabel {
  opacity: 0.8;
}

.errorBook {
  margin-top: 18px;
  padding: 18px 18px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 18, 30, 0.08);
  box-shadow: 0 12px 30px rgba(22, 26, 60, 0.1);
}

.errorBook.is-hidden {
  display: none;
}

.errorBook__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid rgba(15, 18, 30, 0.08);
  flex-wrap: wrap;
}

.errorBook__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 16px;
  color: rgba(15, 18, 30, 0.88);
}

.errorBook__emoji {
  font-size: 18px;
  filter: saturate(1.05);
}

.errorBook__sep {
  opacity: 0.4;
  font-weight: 700;
  margin: 0 2px;
}

.errorBook__sub {
  color: rgba(15, 18, 30, 0.56);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.errorBook__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.errorBook__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 30, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(15, 18, 30, 0.74);
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.errorBook__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 99, 255, 0.32);
  background: rgba(107, 99, 255, 0.08);
  color: rgba(15, 18, 30, 0.88);
}

.errorBook__btn:active {
  transform: translateY(0);
}

.errorBook__btn--primary {
  background: linear-gradient(180deg, rgba(107, 99, 255, 0.18), rgba(107, 99, 255, 0.08));
  border-color: rgba(107, 99, 255, 0.3);
  color: rgba(15, 18, 30, 0.86);
}

.errorBook__btn--primary:hover {
  background: linear-gradient(180deg, rgba(107, 99, 255, 0.26), rgba(107, 99, 255, 0.14));
}

.errorBook__list {
  display: grid;
  gap: 14px;
  padding: 14px 0 14px;
}

.errorBook__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  color: rgba(15, 18, 30, 0.56);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.errorBook__empty.is-hidden {
  display: none;
}

.errorBook__emptyIcon {
  font-size: 18px;
}

.errorCard {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 244, 248, 0.92));
  border: 1px solid rgba(255, 97, 117, 0.18);
  box-shadow: 0 8px 20px rgba(22, 26, 60, 0.06);
  display: grid;
  gap: 10px;
}

.errorCard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #ff7e8a, #ff5a73);
}

.errorCard__original {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 18, 30, 0.86);
  font-weight: 600;
}

.errorCard__pin {
  flex: 0 0 auto;
  font-size: 14px;
  margin-top: 2px;
}

.errorCard__originalLabel {
  flex: 0 0 auto;
  color: rgba(15, 18, 30, 0.6);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.errorCard__originalText {
  flex: 1;
}

.errorCard__result {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 246, 220, 0.96), rgba(255, 240, 200, 0.86));
  border: 1px solid rgba(255, 198, 110, 0.45);
  overflow: hidden;
  font-size: 13px;
}

.errorCard__side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

.errorCard__side--wrong {
  color: rgba(217, 48, 67, 0.92);
  font-weight: 800;
}

.errorCard__side--correct {
  color: rgba(20, 130, 70, 0.96);
  font-weight: 800;
  justify-content: flex-end;
  border-left: 1px solid rgba(15, 18, 30, 0.08);
}

.errorCard__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.96);
}

.errorCard__icon--wrong {
  background: linear-gradient(180deg, #ff7373, #ff4d4f);
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.32);
}

.errorCard__icon--correct {
  background: linear-gradient(180deg, #2ec27e, #18a866);
  box-shadow: 0 2px 6px rgba(32, 197, 110, 0.32);
}

.errorCard__sideLabel {
  opacity: 0.78;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.errorCard__sideValue {
  font-weight: 900;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.errorCard__sideValue--empty {
  color: rgba(217, 48, 67, 0.62);
  font-style: italic;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal.is-hidden {
  display: none;
}

.practiceLeft__footer.is-hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 30, 0.34);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(980px, calc(100vw - 60px));
  border-radius: 24px;
  border: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 18, 30, 0.22);
  overflow: hidden;
  color: var(--ink);
  transform: translateY(0);
  animation: pop 160ms ease-out;
}

@keyframes pop {
  from {
    transform: translateY(8px);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__header {
  padding: 22px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.modal__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 30px;
  color: rgba(107, 99, 255, 0.92);
}

.modal__close {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(15, 18, 30, 0.04);
  color: rgba(15, 18, 30, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

.modal__close:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 99, 255, 0.28);
}

.modal__body {
  padding: 18px 26px 34px;
  display: grid;
  gap: 26px;
}

.testRow {
  display: grid;
  gap: 12px;
}

.testRow__label {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 22px;
  color: rgba(15, 18, 30, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.testRow__label::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: rgba(107, 99, 255, 0.88);
}

.testRow__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
}

.sectionPill {
  appearance: none;
  border: 1px solid rgba(15, 18, 30, 0.08);
  background: rgba(15, 18, 30, 0.03);
  color: rgba(15, 18, 30, 0.74);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  min-width: 140px;
  transition: transform 140ms ease, border-color 140ms ease,
    background 140ms ease;
}

.sectionPill::after {
  display: none;
}

.sectionPill:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 99, 255, 0.28);
  background: rgba(107, 99, 255, 0.12);
}

.sectionPill:active {
  transform: translateY(0);
}

.sectionPill:focus-visible {
  outline: 2px solid rgba(107, 99, 255, 0.35);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .bookGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .courseGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .practiceTop {
    flex-direction: column;
    align-items: stretch;
  }
  .practiceTop__player {
    width: 100%;
  }
  .practiceLayout {
    grid-template-columns: 1fr;
  }
  .practiceRight {
    position: static;
  }
}

@media (max-width: 560px) {
  .bookGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hero__actions {
    flex-direction: column;
    width: min(320px, 100%);
  }
  .actionBtn {
    width: 100%;
  }
  .practiceTop {
    padding: 18px 16px;
  }
  .playerUpload {
    width: 100%;
    justify-content: center;
  }
  .practiceTop__player {
    flex-direction: column;
    align-items: stretch;
  }
  .playerVol {
    display: none;
  }
}
