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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f1ff;
  --ink: #4a4a4a;
  --muted: #6f6f6f;
  --card: #ffffff;
  --accent: #d84b6b;
  --accent-2: #7b5cf6;
  --accent-3: #ffb547;
  --line: #ece7f5;
  --shadow: 0 20px 60px rgba(64, 54, 112, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #f3edff 0%, #ffe9f2 100%);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid #efe6f7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text span {
  display: block;
  font-weight: 600;
}

.brand-text small {
  color: var(--muted);
}

.index {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.index-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.language-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.language-block.active {
  border-color: #f7dbe7;
  background: #fff3f8;
}

.language-button {
  text-align: left;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.language-button.active {
  color: #2b1a20;
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-button {
  text-align: left;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.level-button.active {
  background: #4a4a4a;
  color: #fff;
  border-color: #4a4a4a;
}

.content {
  padding: 32px 42px 64px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 24px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg-button {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.seg-button.active {
  background: #4a4a4a;
  color: #fff;
  border-color: #4a4a4a;
}

.homepage-only {
  display: block;
}

.focused-view .homepage-only {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin: 0;
}

#guide-title span {
  display: inline-block;
  text-shadow: 0 6px 14px rgba(83, 64, 151, 0.18);
}

.subhead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 520px;
}

.level-row td {
  font-weight: 600;
  background: #f9f0e6;
  color: #5a4c44;
  border-top: 1px solid #eadfd4;
}

.table-card {
  background: var(--card);
  padding: 20px 20px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #efe6f7;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.table-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.table-head p {
  margin: 0;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff7f1;
  border: 1px solid #f0dfd2;
  padding: 6px 10px;
  border-radius: 999px;
}

.toggle input {
  display: none;
}

.toggle-pill {
  width: 42px;
  height: 22px;
  background: #e8dcd3;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-pill::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-pill {
  background: #1f1a16;
}

.toggle input:checked + .toggle-pill::after {
  transform: translateX(20px);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.row-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.row-pill.watch {
  background: #ffdbe7;
  color: #a53353;
}

.row-pill.read {
  background: #e9e2ff;
  color: #5b41b2;
}

.row-pill.speak {
  background: #ffe8c1;
  color: #6a4506;
}

.grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #f3e7dd;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
}

.info-card p {
  color: var(--muted);
}

.schema {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schema-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px dashed #efe6f7;
  padding-bottom: 8px;
}

.quote {
  background: linear-gradient(140deg, #ffffff 0%, #fff3f8 60%, #f4f0ff 100%);
}

.why-callout {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5f0;
  border: 1px solid #f6d8d0;
}

.why-callout h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.why-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pink {
  background: #ffdbe7;
  color: #a53353;
}

.violet {
  background: #e9e2ff;
  color: #5b41b2;
}

.gold {
  background: #ffe8c1;
  color: #6a4506;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .content {
    padding: 24px;
  }

  .table-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .schema-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .language-list {
    gap: 10px;
  }

  .level-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.modal-page {
  background: #f7f2ff;
}

.modal-page .shell {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  background: radial-gradient(circle at top, #fff7fb 0%, #f2eaff 50%, #f6f2ff 100%);
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  width: min(100%, 980px);
  background: #ffffff;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(88, 71, 160, 0.2);
  display: grid;
  gap: 24px;
  margin: 32px auto;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #3a2a4d;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(88, 71, 160, 0.2);
}

.modal-hero {
  text-align: center;
}

.modal-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: #6a34c4;
}

.modal-hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.modal-icons {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.modal-button {
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.modal-button.primary {
  background: linear-gradient(90deg, #9b4dff, #ff6b9e);
  color: #fff;
  box-shadow: 0 16px 30px rgba(155, 77, 255, 0.25);
}

.modal-button.ghost {
  background: #ffffff;
  color: #7b5cf6;
  border: 2px solid #d9ccff;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.activity-card {
  background: #f7f3ff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px #ece3ff;
}

.activity-card h3 {
  margin: 8px 0 6px;
}

.activity-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6a34c4;
  background: #efe6ff;
}

@media (max-width: 700px) {
  .modal-card {
    padding: 24px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

.stepper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-chip {
  border: none;
  background: #f2eaff;
  color: #5b41b2;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.step-chip.active {
  background: #5b41b2;
  color: #fff;
}

.modal-step {
  display: grid;
  gap: 20px;
}

.modal-step[hidden] {
  display: none !important;
}

.step-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #4b2b8a;
}

.step-header p {
  margin: 0;
  color: var(--muted);
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.vocab-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 20px rgba(80, 60, 140, 0.08);
  border: 1px solid #efe6ff;
}

.vocab-word {
  font-weight: 700;
  color: #4b2b8a;
}

.heart-toggle {
  border: none;
  background: #f7f3ff;
  color: #c7b5ff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.heart-toggle.active {
  background: #ffebf2;
  color: #ff5fa2;
}

.saved-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px dashed #e3d6ff;
}

.saved-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #4b2b8a;
}

.saved-words {
  margin: 8px 0 12px;
  color: var(--muted);
}

.saved-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-link {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2eaff;
  color: #5b41b2;
  font-weight: 700;
  font-size: 0.8rem;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reflection-form {
  display: grid;
  gap: 16px;
}

.form-block label {
  display: block;
  font-weight: 700;
  color: #4b2b8a;
  margin-bottom: 8px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.input-grid input,
.reflection-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e7ddff;
  padding: 10px 12px;
  font-family: "Nunito", sans-serif;
}

.pill-group {
  display: grid;
  gap: 10px;
}

.pill-option {
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  font-weight: 600;
  color: #5a4a88;
}

.pill-option input {
  accent-color: #7b5cf6;
  margin: 0;
}

.modal-overlay[data-step="2"] {
  background: linear-gradient(180deg, #eaf0ff 0%, #f3f1ff 100%);
}

.modal-overlay[data-step="3"] {
  background: linear-gradient(180deg, #fff4db 0%, #fff6ef 100%);
}

.modal-overlay[data-step="4"] {
  background: linear-gradient(180deg, #ffe9f1 0%, #fff2f7 100%);
}

.modal-overlay[data-step="5"] {
  background: linear-gradient(180deg, #e2f7ff 0%, #ecfbff 100%);
}

.modal-overlay[data-step="6"] {
  background: linear-gradient(180deg, #f0ebff 0%, #f7f3ff 100%);
}

.modal-overlay[data-step="7"] {
  background: linear-gradient(180deg, #fff2cc 0%, #fff7df 100%);
}

.modal-overlay[data-step="8"] {
  background: linear-gradient(180deg, #fff2cc 0%, #fff7df 100%);
}

.modal-overlay[data-step="9"] {
  background: linear-gradient(180deg, #f3e4ff 0%, #f9f1ff 100%);
}

.input-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #e7ddff;
}

.input-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e7ddff;
  padding: 12px 14px;
  font-family: "Nunito", sans-serif;
}

.char-count {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.celebration-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 14px 26px rgba(76, 53, 128, 0.12);
}

.celebration-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: radial-gradient(circle at top, #ffd6e6, #ffc1a1);
}

.celebration-media.celebratory {
  background: radial-gradient(circle at top, #d7ffe8, #9ce0c2);
}

.checklist-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #d8efff;
}

.checklist-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.file-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f7f3ff;
  border: 1px dashed #d9ccff;
  font-weight: 700;
  color: #5b41b2;
  cursor: pointer;
}

.file-upload input {
  display: none;
}

.word-cards {
  display: grid;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.word-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid #e5ddff;
  box-shadow: 0 16px 28px rgba(108, 85, 176, 0.12);
}

.word-card h3 {
  margin-top: 0;
  color: #6a34c4;
  font-size: 1.1rem;
}

.word-card label {
  display: block;
  font-weight: 700;
  margin: 8px 0 4px;
  color: #4b2b8a;
}

.word-card input,
.word-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e2d8ff;
  padding: 12px 14px;
  font-family: "Nunito", sans-serif;
}

.modal-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.helper-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.validation-text {
  color: #d65a7a;
  font-weight: 600;
  margin-top: 8px;
}

.celebration-gif {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(75, 43, 138, 0.2);
}

.pdf-content {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 794px;
  padding: 32px;
  background: #ffffff;
  color: #3a2a4d;
  font-family: "Nunito", sans-serif;
}

.pdf-cover {
  background: linear-gradient(180deg, #f3e9ff, #fff4fb);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}

.pdf-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: #7b5cf6;
  margin-bottom: 8px;
}

.pdf-section {
  margin-top: 22px;
  background: #f8f5ff;
  border-radius: 18px;
  padding: 18px;
}

.pdf-section h3 {
  margin-top: 0;
  color: #5b41b2;
}

.pdf-question {
  font-weight: 700;
}

.pdf-caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.pdf-section img {
  width: 100%;
  border-radius: 16px;
  margin-top: 8px;
}

.pdf-closing {
  font-weight: 700;
  text-align: center;
}

.pdf-word {
  background: #fff7e9;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.modal-overlay[data-mode="read"][data-step="1"] {
  background: linear-gradient(180deg, #e6f4ff 0%, #f7fbff 100%);
}

.modal-overlay[data-mode="read"][data-step="2"] {
  background: linear-gradient(180deg, #e8f2ff 0%, #f2f6ff 100%);
}

.modal-overlay[data-mode="read"][data-step="3"] {
  background: linear-gradient(180deg, #eef7ff 0%, #f9fbff 100%);
}

.modal-overlay[data-mode="read"][data-step="4"] {
  background: linear-gradient(180deg, #fff0d9 0%, #fff7ef 100%);
}

.modal-overlay[data-mode="read"][data-step="5"] {
  background: linear-gradient(180deg, #ffeef4 0%, #fff5f8 100%);
}

.modal-overlay[data-mode="read"][data-step="6"] {
  background: linear-gradient(180deg, #f2eaff 0%, #f8f4ff 100%);
}

.modal-overlay[data-mode="read"][data-step="7"] {
  background: linear-gradient(180deg, #e6f9ff 0%, #f1fcff 100%);
}

.modal-overlay[data-mode="read"][data-step="8"] {
  background: linear-gradient(180deg, #e6f9ff 0%, #f1fcff 100%);
}

.modal-overlay[data-mode="read"][data-step="9"] {
  background: linear-gradient(180deg, #e6fff0 0%, #f2fff8 100%);
}

.modal-overlay[data-mode="read"][data-step="10"] {
  background: linear-gradient(180deg, #f0eaff 0%, #f7f3ff 100%);
}

.modal-overlay[data-mode="read"][data-step="11"] {
  background: linear-gradient(180deg, #fff2cc 0%, #fff7df 100%);
}

.modal-overlay[data-mode="read"][data-step="12"] {
  background: linear-gradient(180deg, #e5f7ff 0%, #f0fbff 100%);
}

.modal-overlay[data-mode="read"][data-step="13"] {
  background: linear-gradient(180deg, #fff0e6 0%, #fff6f1 100%);
}

.modal-overlay[data-mode="read"][data-step="14"] {
  background: linear-gradient(180deg, #f0e5ff 0%, #f8f1ff 100%);
}

.inline-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.inline-actions .modal-button {
  min-width: 220px;
}

.highlight {
  background: #fff3f8;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ffe0f0;
}

.instruction-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px dashed #f1d8ff;
  color: #6a34c4;
  font-weight: 700;
}

.modal-button.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.step-intro-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px dashed #e2d6ff;
  text-align: center;
}

.step-intro-card h3 {
  margin: 0 0 6px;
  color: #6a34c4;
}

.finish-line {
  text-align: center;
  font-weight: 700;
  color: #6a34c4;
}


.word-card .pill-group {
  gap: 8px;
  margin-top: 4px;
}

.word-card label.pill-option {
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  margin: 0;
}

.word-card label.pill-option input {
  margin: 0;
}


.director-card {
  background: #f7f3ff;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid #e5ddff;
  box-shadow: inset 0 0 0 1px #f0e8ff;
}

.director-card h3 {
  margin-top: 0;
  color: #5b41b2;
}

.director-hint {
  margin-top: 14px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #efe6ff;
}

.director-hint ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.script-form {
  display: grid;
  gap: 18px;
}

.form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #e7ddff;
  box-shadow: 0 12px 22px rgba(108, 85, 176, 0.08);
}

.form-card h3 {
  margin-top: 0;
  color: #5b41b2;
}

.form-card label {
  display: block;
  font-weight: 700;
  margin: 10px 0 6px;
  color: #4b2b8a;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e7ddff;
  padding: 10px 12px;
  font-family: "Nunito", sans-serif;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dialogue-lines {
  display: grid;
  gap: 12px;
}

.dialogue-line {
  display: grid;
  gap: 6px;
}

.line-label {
  font-weight: 700;
  color: #5b41b2;
}

.text-button {
  width: 100%;
  border-radius: 14px;
  border: 1px dashed #d9ccff;
  padding: 10px 12px;
  background: #f7f3ff;
  color: #5b41b2;
  font-weight: 700;
  cursor: pointer;
}

.paper-preview {
  background: #fffdf6;
  border-radius: 24px;
  padding: 24px;
  border: 2px solid #eadfcb;
  position: relative;
  box-shadow: 0 16px 30px rgba(120, 93, 62, 0.12);
}

.paper-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: repeating-linear-gradient(
    180deg,
    rgba(237, 226, 206, 0.4) 0px,
    rgba(237, 226, 206, 0.4) 1px,
    transparent 1px,
    transparent 30px
  );
  pointer-events: none;
}

.paper-preview > * {
  position: relative;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #6c5f7a;
  margin-bottom: 16px;
}

.preview-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-dialogue {
  display: grid;
  gap: 10px;
}

.preview-line {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #f0e1cc;
  box-shadow: inset 0 0 0 1px #f7efe3;
}

.preview-line .speaker {
  font-weight: 700;
  color: #5b41b2;
  margin-right: 6px;
}

.speak-pdf .pdf-title {
  font-size: 1.4rem;
  font-weight: 800;
}


.modal-page .modal-overlay {
  background: var(--practice-bg, radial-gradient(circle at top, #fff7fb 0%, #f2eaff 50%, #f6f2ff 100%));
}
