@import url("https://fonts.googleapis.com/css2?family=Chewy&family=Fredoka:wght@400;500;600&family=Grandstander:wght@400;500;700;800&display=swap");

@font-face {
  font-family: "Lets Trace";
  src: url("assets/LetsTracebasic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fffaf0;
  --cream: #f7efd9;
  --teal: #0b6f80;
  --teal-soft: #39aeb3;
  --leaf: #75ad4f;
  --leaf-soft: #cce6b4;
  --coral: #f47668;
  --coral-soft: #ffd0c8;
  --sun: #f6af2d;
  --sun-soft: #ffe5a9;
  --ink: #0a5263;
  --white: #fffdf7;
  --sand: var(--cream);
  --shell-pink: var(--coral-soft);
  --foam: #e7fbf8;
  --reef: var(--teal-soft);
  --lagoon: var(--teal);
  --seaweed: var(--leaf);
  --deep: var(--ink);
  --shadow: rgba(8, 80, 96, 0.2);
  --outline: rgba(255, 255, 255, 0.72);
  --page-overlay-top: rgba(255, 250, 240, 0.66);
  --page-overlay-bottom: rgba(231, 251, 248, 0.7);
  --page-background-image: url("assets/littlebloom-learning-logo.png");
  --bubble-highlight: rgba(255, 250, 240, 0.92);
  --bubble-fade: rgba(57, 174, 179, 0.08);
  --decor-left-accent: rgba(117, 173, 79, 0.36);
  --decor-right-accent: rgba(244, 118, 104, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Grandstander", sans-serif;
  color: var(--deep);
  background-image:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.2), rgba(255, 250, 240, 0.8) 58%, rgba(231, 251, 248, 0.92) 100%),
    linear-gradient(180deg, var(--page-overlay-top), var(--page-overlay-bottom)),
    var(--page-background-image);
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  position: relative;
}

body[data-theme="sunset"] {
  --paper: #fff6ea;
  --cream: #f8ecd4;
  --teal: #0a6c7a;
  --teal-soft: #35a9ad;
  --leaf: #78a94e;
  --coral: #f27668;
  --sun: #f4aa2a;
  --ink: #0a5263;
  --page-overlay-top: rgba(255, 246, 234, 0.72);
  --page-overlay-bottom: rgba(255, 224, 196, 0.66);
  --decor-left-accent: rgba(244, 170, 42, 0.34);
  --decor-right-accent: rgba(242, 118, 104, 0.34);
}

body[data-theme="mint"] {
  --paper: #f4fff9;
  --cream: #eef6df;
  --teal: #096b77;
  --teal-soft: #40b5ad;
  --leaf: #6fac4d;
  --coral: #f47668;
  --sun: #f6af2d;
  --ink: #0a5263;
  --page-overlay-top: rgba(244, 255, 249, 0.72);
  --page-overlay-bottom: rgba(211, 239, 218, 0.68);
  --decor-left-accent: rgba(117, 173, 79, 0.4);
  --decor-right-accent: rgba(57, 174, 179, 0.32);
}

body[data-theme="moonlight"] {
  --paper: #f4fbff;
  --cream: #eef3e6;
  --teal: #075e70;
  --teal-soft: #2d9da8;
  --leaf: #6ea24b;
  --coral: #ed7a6e;
  --sun: #e8a82d;
  --ink: #084d60;
  --page-overlay-top: rgba(244, 251, 255, 0.78);
  --page-overlay-bottom: rgba(216, 238, 239, 0.72);
  --decor-left-accent: rgba(45, 157, 168, 0.34);
  --decor-right-accent: rgba(110, 162, 75, 0.34);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--bubble-highlight), var(--bubble-fade) 45%, transparent 65%);
  pointer-events: none;
  opacity: 0.75;
  animation: float-bubble 10s ease-in-out infinite;
  z-index: 0;
}

body::before {
  top: 9%;
  left: -70px;
}

body::after {
  right: -60px;
  bottom: 10%;
  animation-delay: -4s;
}

.page-decor {
  position: fixed;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.decor-left {
  top: 32%;
  left: -40px;
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 40%, transparent 60%),
    radial-gradient(circle at 75% 70%, var(--decor-left-accent), transparent 36%);
}

.decor-right {
  right: -30px;
  top: 18%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.16) 42%, transparent 60%),
    radial-gradient(circle at 32% 72%, var(--decor-right-accent), transparent 35%);
}

.app {
  height: 100%;
  overflow: hidden;
  max-width: none;
  margin: 0;
  padding: 16px 16px 12px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.app-right {
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}

.sea-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(231, 251, 248, 0.78)),
    linear-gradient(135deg, rgba(255, 229, 169, 0.24), rgba(204, 230, 180, 0.1));
  border: 3px solid var(--outline);
  box-shadow:
    0 18px 40px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.sea-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -34px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 173, 79, 0.18), transparent 70%);
  pointer-events: none;
}

.top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 22px;
}

.brand-mark {
  font-family: "Chewy", cursive;
  font-size: 1.3rem;
  color: var(--deep);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand-mark:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.brand-mark::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--sun) 0 30%, transparent 31%),
    radial-gradient(circle at 50% 15%, var(--coral) 0 18%, transparent 19%),
    radial-gradient(circle at 82% 38%, var(--coral) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 78%, var(--leaf) 0 18%, transparent 19%),
    radial-gradient(circle at 30% 78%, var(--leaf) 0 18%, transparent 19%),
    radial-gradient(circle at 18% 38%, var(--coral) 0 18%, transparent 19%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(246, 175, 45, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(244, 118, 104, 0.18), transparent 34%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 0.95;
  font-family: "Chewy", cursive;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--deep);
  font-size: 1.05rem;
  max-width: 28ch;
}

.stats {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.pill {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(231, 251, 248, 0.9));
  padding: 12px 16px;
  border-radius: 24px;
  box-shadow: 0 10px 18px rgba(8, 80, 96, 0.14);
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.stat-pill {
  min-width: auto;
  padding: 6px 10px;
  display: grid;
  gap: 3px;
}

.pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.pill-value {
  font-size: 1.1rem;
  font-family: "Chewy", cursive;
}

.level-pill {
  min-width: 158px;
  position: relative;
}

.level-select {
  appearance: none;
  width: 100%;
  border: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%) calc(100% - 10px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--teal) 50%, transparent 50%) calc(100% - 6px) 50% / 6px 6px no-repeat;
  color: var(--deep);
  cursor: pointer;
  font-family: "Chewy", cursive;
  font-size: 1.05rem;
  line-height: 1.1;
  outline: none;
  padding: 0 18px 0 0;
  text-align: center;
}

.level-select:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(57, 174, 179, 0.28);
}

#settings-btn,
#share-btn {
  min-width: 40px;
  padding: 6px 10px;
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scoreboard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 26px;
}

.scoreboard .stats {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.scoreboard .stat-pill {
  min-width: 118px;
  text-align: center;
}

.scoreboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.reset-pill {
  min-width: 96px;
  align-self: stretch;
  color: var(--deep);
  font-family: "Chewy", cursive;
  font-size: 1rem;
  cursor: pointer;
}

.reset-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--sun-soft), var(--coral-soft));
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 30px;
}

.controls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.btn-start {
  font-size: 1.2rem;
  padding: 14px 28px;
  flex-shrink: 0;
}

.settings-dock {
  display: grid;
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid rgba(57, 174, 179, 0.16);
}

.settings-rail-btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  font-size: 0.92rem;
  opacity: 0.86;
}

.mode-icon {
  font-size: 1.3em;
  margin-right: 2px;
}

.section-copy {
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.section-title {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Chewy", cursive;
  color: var(--deep);
}

.toggle {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 229, 169, 0.34));
  padding: 10px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(8, 80, 96, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
}

.picker {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 229, 169, 0.28));
  padding: 8px 14px;
  border-radius: 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(8, 80, 96, 0.12);
  min-width: 0;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.picker label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.picker select {
  font-family: "Grandstander", sans-serif;
  border: 2px solid rgba(57, 174, 179, 0.22);
  border-radius: 12px;
  padding: 6px 10px;
  background: var(--white);
  min-width: 0;
  width: 100%;
}

.theme-picker {
  max-width: 260px;
}

.theme-background-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn {
  border: none;
  padding: 13px 20px;
  border-radius: 18px;
  font-size: 16px;
  cursor: pointer;
  font-family: "Chewy", cursive;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--teal), var(--leaf));
  color: white;
  box-shadow:
    0 14px 24px rgba(8, 80, 96, 0.24),
    inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.btn.ghost {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(247, 239, 217, 0.86));
  color: var(--deep);
  box-shadow: 0 8px 16px rgba(8, 80, 96, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.08);
}

.settings-btn {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border: none;
  min-width: 86px;
}

.settings-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.settings-page[hidden] {
  display: none;
}

.settings-page {
  min-height: 0;
  padding-bottom: 12px;
}

.account-onboarding-header {
  display: none;
}

body.dashboard-open .scoreboard,
body.dashboard-open .stage {
  display: none;
}

body.dashboard-open .app-right {
  overflow-y: auto;
  padding-right: 2px;
}

.settings-dashboard {
  display: grid;
  gap: 16px;
  min-height: 0;
}

body.account-onboarding-open .settings-dashboard {
  align-content: start;
  max-width: 860px;
  margin: 0 auto;
}

body.account-onboarding-open .app {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1080px;
  margin: 0 auto;
}

body.account-onboarding-open .mode-bar {
  display: none;
}

body.account-onboarding-open .account-onboarding-header {
  display: block;
}

body.account-onboarding-open .settings-header,
body.account-onboarding-open #dashboard-score-cards,
body.account-onboarding-open .dashboard-grid > section:not(.account-panel) {
  display: none;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-hero {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(231, 251, 248, 0.88)),
    linear-gradient(90deg, rgba(255, 229, 169, 0.4), transparent 58%);
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  box-shadow: 0 14px 28px rgba(8, 80, 96, 0.12);
  padding: 18px 20px;
}

.settings-kicker {
  margin: 0 0 4px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-title {
  margin: 0;
  color: var(--deep);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-family: "Chewy", cursive;
}

.dashboard-score-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-score-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(231, 251, 248, 0.88));
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow: 0 12px 22px rgba(8, 80, 96, 0.1);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.dashboard-score-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-score-label {
  color: var(--deep);
  font-family: "Chewy", cursive;
  font-size: 1.12rem;
}

.dashboard-score-level {
  background: var(--sun-soft);
  border-radius: 999px;
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.dashboard-score-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dashboard-score-metrics strong {
  color: var(--teal);
  display: block;
  font-family: "Chewy", cursive;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-score-metrics span {
  color: rgba(10, 82, 99, 0.76);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.dashboard-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(231, 251, 248, 0.9));
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(8, 80, 96, 0.1);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.account-panel {
  background:
    radial-gradient(circle at 92% 8%, rgba(246, 175, 45, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(231, 251, 248, 0.92));
}

.account-panel-heading,
.account-session-actions,
.account-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-status-badge {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--sun-soft);
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-status-badge[data-state="connected"] {
  background: var(--leaf-soft);
}

.account-auth-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.account-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-auth-form label,
.account-label {
  color: rgba(10, 82, 99, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-auth-form input,
.account-auth-form select,
.account-session-grid select {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(11, 111, 128, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--deep);
  padding: 8px 10px;
  font: inherit;
}

.account-auth-form button {
  min-height: 42px;
}

.account-session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.account-session-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-session-grid strong {
  overflow-wrap: anywhere;
}

.account-session-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.account-message {
  margin: 0;
  min-height: 1.25rem;
  color: var(--deep);
  line-height: 1.35;
}

.account-message p {
  margin: 5px 0 0;
}

.account-message[data-tone="success"] {
  color: #3e7130;
}

.account-message[data-tone="notice"] {
  color: #8a5d11;
}

.account-message[data-tone="error"] {
  color: #a7463e;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
}

.settings-section-title {
  margin: 0;
  font-size: 18px;
  font-family: "Chewy", cursive;
  color: var(--teal);
}

.recorder-note {
  margin: 0;
  color: var(--deep);
}

.recorder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.recorder-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.status {
  font-weight: 600;
  color: var(--deep);
  padding-top: 4px;
}

.progress-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mastery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.mastery-card {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 229, 169, 0.28));
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 16px rgba(8, 80, 96, 0.12);
  display: grid;
  gap: 6px;
}

.mastery-label {
  font-family: "Chewy", cursive;
  font-size: 18px;
}

.progress-report-section {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.progress-report-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(231, 251, 248, 0.92)),
    radial-gradient(circle at 8% 12%, rgba(246, 175, 45, 0.24), transparent 34%),
    radial-gradient(circle at 94% 8%, rgba(117, 173, 79, 0.2), transparent 34%);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(8, 80, 96, 0.12);
  display: grid;
  gap: 14px;
}

.progress-report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 2px dashed rgba(11, 111, 128, 0.22);
  padding-bottom: 12px;
}

.progress-report-kicker {
  margin: 0 0 4px;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.progress-report-header h4 {
  margin: 0;
  font-family: "Chewy", cursive;
  font-size: 1.45rem;
  color: var(--deep);
}

.progress-report-header time {
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
}

.progress-report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.progress-report-stats > div {
  background: rgba(255, 255, 255, 0.68);
  border: 2px solid rgba(11, 111, 128, 0.12);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 2px;
}

.progress-report-stats strong {
  font-family: "Chewy", cursive;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
}

.progress-report-stats span,
.progress-skill-metrics span {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(10, 82, 99, 0.78);
}

.progress-report-stats small {
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.progress-report-skills {
  display: grid;
  gap: 10px;
}

.dashboard-panel-report .progress-report-skills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-skill-card {
  background: rgba(255, 253, 247, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
  break-inside: avoid;
}

.progress-skill-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.progress-skill-topline h4 {
  margin: 0;
  font-family: "Chewy", cursive;
  font-size: 1.15rem;
}

.progress-skill-topline span {
  background: var(--sun-soft);
  border-radius: 999px;
  color: var(--deep);
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
}

.progress-skill-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.progress-skill-metrics > div {
  border-left: 4px solid var(--leaf);
  display: grid;
  gap: 1px;
  padding-left: 8px;
}

.progress-skill-metrics strong {
  font-family: "Chewy", cursive;
  font-size: 1.25rem;
  color: var(--teal);
}

.progress-skill-card p {
  margin: 0;
  color: var(--deep);
  line-height: 1.35;
}

.progress-report-actions {
  display: flex;
  justify-content: flex-end;
}

.file-btn {
  position: relative;
  overflow: hidden;
}

.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.stage {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.task {
  min-height: 0;
  overflow: hidden;
  padding: 26px 24px;
  border-radius: 34px;
}

.task::after {
  width: 240px;
  height: 240px;
  background:
    radial-gradient(circle, rgba(255, 253, 247, 0.88), transparent 64%),
    radial-gradient(circle at 62% 62%, rgba(244, 118, 104, 0.16), transparent 40%);
  top: -86px;
  right: -66px;
}

.task-card {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.task-kicker {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun-soft), var(--coral-soft));
  color: var(--deep);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.task-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "Chewy", cursive;
  line-height: 0.98;
}

.task-body {
  font-size: 1.15rem;
  color: var(--deep);
  max-width: 34ch;
}

.task-body.trace-preview-expanded {
  max-width: none;
  width: 100%;
  display: flex;
  justify-content: center;
}

.sound-helper {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.72);
  border: 2px dashed rgba(57, 174, 179, 0.34);
  display: grid;
  gap: 10px;
}

.sound-helper[hidden] {
  display: none;
}

.sound-helper-text {
  font-size: 0.95rem;
  color: var(--deep);
  font-weight: 600;
}

.sound-helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.options-shell {
  min-height: 0;
  overflow: hidden;
  padding: 20px;
  border-radius: 32px;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.option {
  padding: 22px 18px;
  font-size: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 229, 169, 0.34)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  cursor: pointer;
  text-align: center;
  font-family: "Chewy", cursive;
  color: var(--deep);
  box-shadow:
    0 14px 24px rgba(8, 80, 96, 0.16),
    inset 0 -4px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.option.sound-option {
  padding: 18px 16px;
  gap: 6px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sound-letter {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
}

.sound-sample {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(10, 82, 99, 0.72);
}

.options.reveal-after-audio .option {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.options.reveal-after-audio .option.is-hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.option.flash-option {
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option.utility {
  font-size: 1.1rem;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(231, 251, 248, 0.92));
}

.build-word-display {
  font-size: 3rem;
  font-family: "Chewy", cursive;
  color: var(--deep);
  text-align: center;
  padding: 18px 20px;
  margin: 16px auto;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(220, 247, 250, 0.88));
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  letter-spacing: 0.1em;
  box-shadow: 0 6px 12px rgba(8, 80, 96, 0.1);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
}

.option.used {
  opacity: 0.45;
}

.option:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.02);
  border-color: rgba(244, 118, 104, 0.74);
  box-shadow:
    0 18px 26px rgba(8, 80, 96, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.05);
}

.option.correct {
  border-color: var(--seaweed);
  background: linear-gradient(135deg, var(--leaf-soft), var(--white));
}

.option.wrong {
  border-color: var(--coral);
  background: linear-gradient(135deg, var(--coral-soft), var(--white));
}

.mode-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 30px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.mode-bar .section-copy {
  display: none;
}

.mode-bar .toggle {
  justify-content: center;
}

.mode {
  width: 100%;
  border: none;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(231, 251, 248, 0.9));
  padding: 12px 16px;
  border-radius: 20px;
  font-family: "Chewy", cursive;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(8, 80, 96, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  text-align: center;
}

.mode.active {
  background: linear-gradient(135deg, var(--sun-soft), var(--leaf-soft));
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  padding: 8px 16px;
  border-radius: 16px;
}

.tip {
  display: none;
}

.celebration {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(247, 239, 217, 0.78);
  backdrop-filter: blur(3px);
  z-index: 30;
}

.celebration.show {
  display: flex;
}

.celebration-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(231, 251, 248, 0.95)),
    linear-gradient(135deg, rgba(255, 229, 169, 0.24), transparent 35%);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 18px 36px var(--shadow);
  text-align: center;
  display: grid;
  gap: 12px;
  max-width: min(420px, 90vw);
  animation: pop-in 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.78);
}

.celebration-card p {
  margin: 0;
  font-family: "Chewy", cursive;
  font-size: 1.5rem;
  color: var(--deep);
}

.celebration-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(8, 80, 96, 0.16);
}

.audio-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 34, 64, 0.55);
  backdrop-filter: blur(4px);
  z-index: 70;
  padding: 20px;
}

.audio-gate.show {
  display: flex;
}

.audio-gate-card {
  max-width: min(360px, 90vw);
  padding: 22px 20px;
  border-radius: 26px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.audio-gate-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--teal);
}

.audio-gate-title {
  margin: 0;
  font-size: 1.4rem;
  font-family: "Chewy", cursive;
  color: var(--deep);
}

.audio-gate-body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--deep);
}

.audio-gate-btn {
  justify-self: center;
  padding-inline: 22px;
}

.audio-status {
  font-size: 0.75rem;
  color: var(--deep);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes pop-in {
  from {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float-bubble {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

.flash-card {
  perspective: 1000px;
  cursor: pointer;
  width: 100%;
  min-height: 200px;
  margin: 20px 0;
}

.flash-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.flash-card.flipped .flash-card-inner {
  transform: rotateY(180deg);
}

.flash-card-front,
.flash-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 200px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 2.5rem;
  font-weight: 800;
  padding: 20px;
  text-align: center;
}

.flash-card-front {
  background: linear-gradient(135deg, var(--leaf-soft) 0%, var(--teal-soft) 100%);
  color: var(--deep);
}

.flash-card-back {
  background: linear-gradient(135deg, var(--sun-soft) 0%, var(--sun) 100%);
  color: var(--deep);
  transform: rotateY(180deg);
}

.word-length-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.word-length-level {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

.word-length-label {
  font-weight: 700;
  color: var(--deep);
  font-size: 0.95rem;
}

.word-length-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.word-length-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
}

.word-length-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.word-length-checkbox label {
  cursor: pointer;
  user-select: none;
}

@media (max-width: 1200px) {
  body {
    height: auto;
    overflow: auto;
    background-attachment: scroll;
  }

  .app {
    grid-template-columns: 160px 1fr;
    gap: 14px;
    padding: 14px 14px 12px;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .app-right {
    height: auto;
    overflow: visible;
    grid-template-rows: auto;
  }

  .mode-bar {
    padding: 16px;
    gap: 10px;
  }

  .mode {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .top,
  .scoreboard,
  .controls {
    padding: 10px 14px;
  }

  .stats {
    gap: 6px;
  }

  .pill {
    padding: 10px 12px;
  }

  .stat-pill {
    padding: 6px 8px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 15px;
  }

  .btn.small {
    padding: 8px 12px;
    font-size: 13px;
  }

  .task {
    padding: 22px 20px;
    border-radius: 30px;
  }

  .options-shell {
    padding: 16px;
    border-radius: 28px;
    overflow: visible;
  }

  .footer {
    padding: 8px 12px;
  }

  .stage {
    overflow: visible;
  }
}

@media (max-width: 900px) {
  body {
    height: auto;
    overflow: auto;
    background-attachment: scroll;
  }

  .app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .app-right {
    height: auto;
    overflow: visible;
    grid-template-rows: auto;
  }

  .mode-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    height: auto;
    overflow: visible;
    gap: 12px;
    align-items: center;
  }

  .mode-bar .section-copy {
    display: block;
    flex-basis: 100%;
  }

  .mode {
    width: auto;
    flex: 1;
    min-width: 120px;
  }

  .settings-dock {
    flex-basis: 100%;
    margin-top: 0;
    padding-top: 12px;
  }

  .settings-rail-btn {
    max-width: 240px;
    margin: 0 auto;
  }

  .dashboard-score-cards,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-wide {
    grid-column: auto;
  }

  .stage {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .mode-bar,
  .scoreboard,
  .controls {
    width: 100%;
  }

  .scoreboard {
    flex-wrap: wrap;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-actions {
    margin-left: 0;
    justify-content: center;
  }

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

  .mode {
    width: auto;
  }

  .stat-pill {
    flex: 1 1 110px;
  }

  #settings-btn,
  #share-btn {
    min-width: 44px;
    padding: 8px 12px;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-score-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .account-auth-form,
  .account-session-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mode {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .app {
    padding-inline: 14px;
  }

  .top,
  .scoreboard,
  .controls,
  .options-shell,
  .mode-bar,
  .task,
  .footer {
    padding-inline: 16px;
  }

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

  .stat-pill {
    min-width: 100%;
  }

  .scoreboard .stats {
    flex-wrap: nowrap;
  }

  .scoreboard .stat-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .scoreboard .reset-pill {
    flex: 0 0 auto;
    min-width: 68px;
    padding-inline: 10px;
  }

  .scoreboard-actions {
    margin-left: auto;
  }

  .progress-report-header,
  .progress-skill-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-report-header time {
    white-space: normal;
  }

  .progress-report-stats,
  .dashboard-panel-report .progress-report-skills,
  .progress-skill-metrics {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    font-size: 1.1rem;
  }

  .mode-bar {
    padding: 14px;
  }

  .mode {
    padding: 10px 10px;
    font-size: 0.85rem;
  }

  .top,
  .scoreboard,
  .controls,
  .options-shell,
  .task,
  .footer {
    border-radius: 24px;
  }

  .task-title {
    font-size: 1.8rem;
  }

  .task-body {
    font-size: 1rem;
  }

  .account-auth-form,
  .account-session-grid {
    grid-template-columns: 1fr;
  }

  .toggle {
    padding: 8px 12px;
  }

  .picker {
    min-width: 100%;
  }
}

/* Welcome Modal */
.welcome-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 80, 96, 0.56);
  z-index: 1000;
  padding: 20px;
}

.welcome-modal[aria-hidden="true"] {
  display: none;
}

.welcome-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border: 3px solid var(--lagoon);
}

.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--foam);
  padding-bottom: 15px;
}

.welcome-header h2 {
  margin: 0;
  color: var(--lagoon);
  font-size: 28px;
}

.welcome-header button {
  flex-shrink: 0;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-section {
  padding: 15px;
  background: var(--foam);
  border-radius: 10px;
  border-left: 4px solid var(--reef);
}

.welcome-section h3 {
  margin: 0 0 10px 0;
  color: var(--lagoon);
  font-size: 18px;
}

.welcome-section p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.welcome-section ol,
.welcome-section ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.welcome-section li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.game-mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-mode {
  padding: 10px 15px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--reef);
  line-height: 1.4;
}

/* Help Accordions in Settings */
.help-accordion {
  margin: 15px 0;
  padding: 12px 15px;
  background: var(--foam);
  border-radius: 8px;
  border: 1px solid var(--reef);
  cursor: pointer;
}

.help-accordion summary {
  color: var(--lagoon);
  font-weight: 600;
  user-select: none;
  padding: 5px 0;
}

.help-accordion summary:hover {
  color: var(--seaweed);
}

.help-content {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--reef);
  line-height: 1.6;
}

.help-item {
  margin-bottom: 15px;
  padding: 10px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--seaweed);
}

/* Donation Section */
.donate-section {
  margin-top: 0.75rem;
  text-align: center;
}

.donate-label {
  font-size: 0.85rem;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.donate-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.donate-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.donate-btn:hover {
  opacity: 0.85;
}

.donate-paypal {
  background: var(--teal);
  color: var(--white);
}

.donate-venmo {
  background: var(--leaf);
  color: var(--white);
}

/* Feedback Section */
.feedback-section {
  margin-top: 0.75rem;
  text-align: center;
}

.feedback-label {
  font-size: 0.85rem;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.feedback-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--teal);
  color: var(--white);
  transition: opacity 0.2s;
}

.feedback-btn:hover {
  opacity: 0.85;
}

/* Share Section */
.share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.share-nav-btn {
  background: linear-gradient(135deg, var(--seaweed), var(--lagoon));
  color: white;
  border: none;
}

.share-copy-confirm {
  font-size: 13px;
  color: var(--seaweed);
  font-weight: 600;
  min-height: 20px;
  margin-top: 2px;
  transition: opacity 0.3s ease;
}

.share-copy-confirm.hidden {
  opacity: 0;
}

/* ── Traceable Sentences Worksheet ─────────────────────────── */

.trace-dual-worksheets {
  width: 100%;
  max-width: 1440px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.trace-worksheet {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.alphabet-worksheet-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.trace-header {
  text-align: center;
  margin-bottom: 10px;
}

.trace-title {
  font-family: "Chewy", cursive;
  font-size: 1.4rem;
  color: var(--deep);
  margin: 0 0 4px;
}

.trace-date {
  font-size: 0.8rem;
  color: rgba(10, 82, 99, 0.58);
  margin: 0;
}

.trace-line-group {
  margin-bottom: 8px;
}

.trace-guides {
  position: relative;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 38px,
    rgba(57, 174, 179, 0.28) 38px,
    rgba(57, 174, 179, 0.28) 39px
  );
  padding: 1px 8px;
  border-radius: 4px;
}

.trace-text {
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 28px;
  color: rgba(10, 82, 99, 0.62);
  letter-spacing: 0.02em;
  padding-bottom: 1px;
}

.trace-blank-line {
  height: 24px;
  border-bottom: 1px dashed rgba(10, 82, 99, 0.32);
  margin-top: 1px;
}

body.trace-preview-mode .task {
  overflow-y: auto;
}

body.trace-preview-mode .scoreboard {
  display: none;
}

@media (min-width: 901px) {
  .trace-alphabet-worksheet .alphabet-worksheet-image {
    width: auto;
    max-height: min(39vh, 460px);
  }
}

@media (max-width: 900px) {
  .trace-dual-worksheets {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }
}

/* ── Print Styles ──────────────────────────────────────────── */

@media print {
  @page {
    margin: 0.5in;
    size: letter portrait;
  }

  .mode-bar,
  .top,
  .scoreboard,
  .controls,
  .options-shell,
  .footer,
  .page-decor,
  .celebration,
  .welcome-modal,
  .settings-page,
  #oops,
  body::before,
  body::after {
    display: none !important;
  }

  body {
    background: white !important;
    background-image: none !important;
    color: #222 !important;
    margin: 0;
    padding: 0;
  }

  .app {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-right {
    display: block !important;
  }

  .task {
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .task::after {
    display: none !important;
  }

  .task-card {
    padding: 0 !important;
  }

  .task-kicker,
  .task-title {
    display: none !important;
  }

  .task-body.trace-preview-expanded {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .trace-dual-worksheets {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .trace-worksheet {
    max-width: 100%;
    width: 100% !important;
    padding: 0.3in 0;
    background: white !important;
    border: 0 !important;
    border-radius: 0 !important;
    break-after: page;
    page-break-after: always;
  }

  .trace-worksheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .alphabet-worksheet-image {
    width: 100%;
    height: auto;
    max-width: none;
    break-inside: avoid;
  }

  .trace-title {
    font-size: 1.7rem;
  }

  .trace-date {
    font-size: 0.9rem;
  }

  .trace-text {
    font-size: 2.8rem;
    line-height: 56px;
    color: #555 !important;
  }

  .trace-guides {
    background-image: repeating-linear-gradient(
      transparent,
      transparent 50px,
      rgba(57, 174, 179, 0.38) 50px,
      rgba(57, 174, 179, 0.38) 51px
    );
    padding: 6px 10px;
  }

  .trace-blank-line {
    height: 48px;
  }

  .trace-guides,
  .trace-line-group {
    break-inside: avoid;
  }

  .trace-line-group {
    margin-bottom: 16px;
  }

  body.report-print-mode .settings-page {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: white !important;
    padding: 0 !important;
  }

  body.report-print-mode .settings-dashboard {
    display: block !important;
    max-width: 100% !important;
    max-height: none !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: white !important;
    animation: none !important;
  }

  body.report-print-mode .settings-dashboard > * {
    display: none !important;
  }

  body.report-print-mode .settings-dashboard > .dashboard-grid {
    display: block !important;
  }

  body.report-print-mode .dashboard-panel {
    display: none !important;
  }

  body.report-print-mode .dashboard-panel-report {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
    padding: 0 !important;
  }

  body.report-print-mode .progress-report-card {
    display: grid !important;
    box-shadow: none !important;
    border: 2px solid #0a5263 !important;
    border-radius: 0 !important;
    background: white !important;
    color: #0a5263 !important;
    padding: 0.25in !important;
  }

  body.report-print-mode .progress-report-card * {
    color: #0a5263 !important;
  }

  body.report-print-mode .progress-report-actions {
    display: none !important;
  }

  body.report-print-mode .progress-skill-card,
  body.report-print-mode .progress-report-stats > div {
    border-color: rgba(10, 82, 99, 0.3) !important;
    background: white !important;
  }

  @page {
    margin: 0.4in;
    size: letter portrait;
  }
}
