:root {
  --bg: #F4F1EB;
  --card: #FFFFFF;
  --accent: #E35B2C;
  --accent-light: #FFF0EB;
  --text: #2A2520;
  --text-muted: #7A756E;
  --de: #2D6A4F;
  --de-bg: #E8F5EE;
  --het: #1D4E89;
  --het-bg: #E3EDF8;
  --highlight: #F7C948;
  --highlight-bg: #FFFBE6;
  --border: #E5E0D8;
  --shadow: 0 2px 16px rgba(42,37,32,0.07);
  --modal: #8B5CF6;
  --modal-bg: #F3EEFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.hero {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'NL';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 18rem;
  font-weight: 700;
  color: rgba(227,91,44,0.04);
  top: -3rem;
  right: 1.5rem;
  pointer-events: none;
  line-height: 1;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.hero-title-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
  transform: translateY(4px);
}

.hero h1 span { color: var(--accent); }

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.level-badges {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  width: 100%;
  max-width: calc(920px - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.level-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-top: 0;
}

.level-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  margin-left: auto;
  background: var(--het);
  border: 1.5px solid var(--het);
  box-shadow: 0 4px 10px rgba(29,78,137,0.22);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.level-badge-link-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.level-badge-link:visited {
  color: white;
}

.level-badge-link:hover {
  opacity: 1;
  background: #163f71;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(29,78,137,0.27);
}

.level-badge.blocked {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--card);
  color: var(--text-muted);
  border: 1.5px dashed var(--border);
  padding: 0.26rem 0.8rem;
  cursor: pointer;
  position: relative;
}

.level-badge.blocked img {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.level-badge.blocked .blocked-hint {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  z-index: 12;
}

.level-badge.blocked .blocked-hint::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}

.level-badge.blocked:hover .blocked-hint,
.level-badge.blocked:focus .blocked-hint,
.level-badge.blocked:focus-visible .blocked-hint {
  display: block;
}

.ad-zone {
  width: 100%;
  max-width: calc(920px - 3rem);
  margin: 0 auto;
  padding: 0.4rem 0.65rem 0.65rem;
  border: 1.5px dashed #D8CDC0;
  border-radius: 14px;
  background: #F8F4ED;
}

.ad-zone-top {
  margin-top: 0.1rem;
  margin-bottom: 0.9rem;
}

.ad-zone-bottom {
  margin-top: 0.9rem;
  margin-bottom: 1rem;
}

.ad-zone-lesson {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}

.ad-zone-lesson-first,
.ad-zone-lesson-second {
  max-width: 100%;
}

.ad-zone-label {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9B8F83;
}

.ad-zone-body {
  min-height: 96px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #EEE6DC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-zone .adsbygoogle.ad-slot {
  max-width: 100%;
}

.ad-slot-lessonInlineFirst,
.ad-slot-lessonInlineSecond {
  width: 728px;
  height: 90px;
}

.ad-zone-placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.4rem 0.7rem;
}

.ad-zone-placeholder code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #6A645D;
}

.tab-area {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  max-width: calc(920px - 3rem);
  margin: 0 auto;
}

.tab {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.55rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(42,37,32,0.08);
}

.tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(227,91,44,0.2);
}

@media (max-width: 900px) {
  .tab-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.55);
}

.site-footer-inner {
  width: 100%;
  max-width: calc(920px - 3rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer-text {
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
}

.site-footer-links a:hover {
  color: var(--accent);
}

.section { display: none; animation: fadeIn 0.3s ease; }
.section.active { display: block; }

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

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.2rem 0 0.5rem;
}

.card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.lesson-num {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.explain {
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--text);
}

.explain strong { color: var(--accent); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.table-scroll > table {
  margin-bottom: 0;
}

.table-wide {
  width: 100%;
}

@media (min-width: 701px) {
  .table-scroll {
    overflow-x: hidden;
  }
  .table-scroll > .table-wide {
    table-layout: fixed;
    font-size: 0.84rem;
  }
  .table-scroll > .table-wide th,
  .table-scroll > .table-wide td {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

th {
  text-align: left;
  font-weight: 700;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #F0ECE5;
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(227,91,44,0.02); }

.de { color: var(--de); font-weight: 600; }
.het { color: var(--het); font-weight: 600; }
.hl { color: var(--accent); font-weight: 700; }
.modal-hl { color: var(--modal); font-weight: 600; }
.ex {
  color: var(--text-muted);
  font-size: 0.83rem;
  font-style: italic;
  display: block;
  margin-top: 0.15rem;
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
}
.badge.de-badge { background: var(--de-bg); color: var(--de); }
.badge.het-badge { background: var(--het-bg); color: var(--het); }
.badge.accent-badge { background: var(--accent-light); color: var(--accent); }
.badge.highlight-badge { background: var(--highlight-bg); color: #8B6914; }
.badge.modal-badge { background: var(--modal-bg); color: var(--modal); }

.tip {
  background: var(--highlight-bg);
  border-left: 3px solid var(--highlight);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: #5C4B0A;
}

.tip strong { color: #8B6914; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.structure-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.structure-box .slot {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--card);
}

.structure-box .slot.verb-slot {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.structure-box .slot.subj-slot {
  background: var(--het-bg);
  border-color: var(--het);
  color: var(--het);
}

.example-sentence {
  background: #FAFAF7;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
}

.example-sentence .dutch { font-weight: 600; }
.example-sentence .eng { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }

.suffix-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0.1rem;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.35rem;
  vertical-align: -0.08em;
  padding: 0;
  line-height: 1;
}

.play-btn img {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.play-btn:hover img { opacity: 1; }

.play-btn.playing img { opacity: 1; }

.hint-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  vertical-align: middle;
  line-height: 1;
}

.hint-wrap .hint-icon {
  width: 14px;
  height: 14px;
  display: block;
  margin-left: 0.35rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.hint-wrap:hover .hint-icon { opacity: 1; }

.hint-wrap .hint-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  line-height: 1.5;
}

.hint-wrap .hint-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}

.hint-wrap:hover .hint-tooltip { display: block; }

.verb-form-tooltip {
  white-space: normal;
  min-width: 220px;
  text-align: left;
}

.verb-conjugation-hint .hint-icon {
  width: 17px;
  height: 17px;
  margin-top: -2px;
}

.verb-form-tooltip .play-btn {
  margin-left: 0.2rem;
}

.verb-form-tooltip .play-btn img {
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.verb-form-tooltip .play-btn:hover img,
.verb-form-tooltip .play-btn.playing img {
  opacity: 1;
}

.practice-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.15rem;
}

.practice-switch-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #FAFAF7;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.practice-switch-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.practice-switch-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.practice-panel-title {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.practice-panel-subtitle {
  margin-bottom: 1rem;
}

.exercise-shell {
  background: #FAFAF7;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.exercise-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.exercise-clue {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.exercise-sentence {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.exercise-input {
  margin-top: 0.1rem;
}

.exercise-input-field {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.exercise-input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 99, 38, 0.12);
}

.exercise-blank,
.exercise-answer {
  color: var(--accent);
  font-weight: 700;
}

.exercise-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.exercise-option {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.exercise-option:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.exercise-option:disabled {
  cursor: default;
}

.exercise-option.correct {
  background: var(--de-bg);
  border-color: var(--de);
  color: var(--de);
}

.exercise-option.wrong {
  background: #FFF1ED;
  border-color: #D06A4A;
  color: #A24528;
}

.exercise-feedback {
  min-height: 1.5rem;
  margin-top: 0.95rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.exercise-feedback.correct { color: var(--de); }

.exercise-feedback.wrong { color: #A24528; }

.exercise-summary {
  display: block;
  margin-left: 0;
  margin-top: 0.2rem;
}

.exercise-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.exercise-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.exercise-btn.secondary {
  background: var(--text);
}

.exercise-btn:hover {
  opacity: 0.94;
}

.lesson-support-card {
  background: linear-gradient(180deg, #fff9f5 0%, #ffffff 100%);
  border-color: #ecd8cd;
}

.lesson-support-content {
  display: block;
}

.lesson-support-content::after {
  content: '';
  display: table;
  clear: both;
}

.lesson-support-copy {
  float: left;
  width: calc(100% - 360px);
  min-width: 320px;
}

.lesson-support-title {
  margin: 0.05rem 0 0.35rem;
}

.lesson-support-text {
  margin-bottom: 0;
  max-width: 580px;
}

.lesson-support-actions {
  float: right;
  width: 340px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

.lesson-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1.5px solid var(--accent);
}

.lesson-support-btn:hover {
  background: #c84f26;
}

.lesson-support-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.lesson-support-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
}

.lesson-support-secondary-icon {
  width: 16px;
  height: 16px;
}

.lesson-support-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lesson5-difficulty-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lesson5-difficulty-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.drag-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.drag-slot {
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  min-height: 72px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.drag-slot:hover:not(:disabled) {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.drag-slot.drag-over {
  border-color: var(--accent);
  background: #FFF8F3;
}

.drag-slot-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.drag-slot-word {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
}

.drag-slot.empty .drag-slot-word {
  color: #B5ADA2;
  font-weight: 600;
}

.drag-slot.correct {
  background: var(--de-bg);
  border-color: var(--de);
}

.drag-slot.correct .drag-slot-word {
  color: var(--de);
}

.drag-slot.wrong {
  background: #FFF1ED;
  border-color: #D06A4A;
}

.drag-slot.wrong .drag-slot-word {
  color: #A24528;
}

.drag-wordbank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.drag-token {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  background: white;
  border: 1.5px dashed var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: grab;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.drag-token:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.drag-token.dragging {
  opacity: 0.65;
}

.drag-empty-bank {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drag-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

.drag-preview-label {
  font-weight: 700;
}

.drag-preview-sentence {
  color: var(--text);
}

.drag-difficulty-hub.hard-mode .drag-slots,
.exercise-shell.hard-mode .drag-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow: visible;
  padding-bottom: 0;
}

.drag-difficulty-hub.hard-mode .drag-slot,
.exercise-shell.hard-mode .drag-slot {
  flex: 0 0 auto;
  width: 104px;
  min-width: 104px;
  max-width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.45rem 0.55rem;
}

.drag-difficulty-hub.hard-mode .drag-slot.empty,
.exercise-shell.hard-mode .drag-slot.empty {
  width: 104px;
  min-width: 104px;
}

.drag-difficulty-hub.hard-mode .drag-slot.filled,
.exercise-shell.hard-mode .drag-slot.filled {
  width: auto;
  min-width: 0;
}

.drag-difficulty-hub.hard-mode .drag-slot-label,
.exercise-shell.hard-mode .drag-slot-label {
  display: none;
}

.drag-difficulty-hub.hard-mode .drag-slot-word,
.exercise-shell.hard-mode .drag-slot-word {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero h1 { font-size: 2rem; }
  .hero-title {
    gap: 0.32rem;
  }
  .hero-title-icon {
    width: 34px;
    height: 34px;
    transform: translateY(3px);
  }
  .hero::before {
    font-size: 7rem;
    top: -0.15rem;
    right: 50%;
    transform: translateX(50%);
  }
  .level-badges {
    gap: 0.4rem;
    justify-content: center;
    max-width: 100%;
  }
  .ad-zone {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border: none;
    background: transparent;
  }
  .ad-zone-top {
    margin-top: 0;
    margin-bottom: 0.7rem;
  }
  .ad-zone-bottom {
    margin-top: 0.7rem;
    margin-bottom: 0.85rem;
  }
  .ad-zone-body,
  .ad-zone .adsbygoogle.ad-slot {
    border-color: var(--border);
    background: var(--card);
  }
  .ad-slot-lessonInlineFirst,
  .ad-slot-lessonInlineSecond {
    width: 320px;
    height: 100px;
  }
  .ad-zone-lesson {
    margin-top: 0.55rem;
    margin-bottom: 0.55rem;
  }
  .ad-zone-label {
    margin: 0 0 0.28rem 0.2rem;
    font-size: 0.64rem;
    letter-spacing: 0.07em;
  }
  .ad-zone-placeholder {
    font-size: 0.76rem;
    padding: 0.3rem 0.55rem;
  }
  .level-badge { font-size: 0.8rem; padding: 0.28rem 0.75rem; }
  .level-badge-link { margin-left: 0; }
  .level-badge-link-icon { width: 13px; height: 13px; }
  .site-footer-inner {
    max-width: 100%;
    justify-content: center;
  }
  .site-footer-text,
  .site-footer-links a {
    font-size: 0.8rem;
  }
  .level-badge.blocked img { width: 13px; height: 13px; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 1.2rem; }
  table { font-size: 0.83rem; }
  .hint-wrap .hint-tooltip {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0.8rem;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 1.5rem);
    white-space: normal;
    text-align: left;
    z-index: 999;
  }
  .hint-wrap .hint-tooltip::after {
    display: none;
  }
  .verb-form-tooltip {
    min-width: min(220px, calc(100vw - 1.5rem));
  }
  #lesson2-frequent-verbs .verb-form-tooltip {
    width: calc(100vw - 4rem);
    max-width: calc(100vw - 4rem);
    min-width: 0;
  }
  .table-wide {
    width: auto;
    min-width: 860px;
  }
  td, th { padding: 0.45rem 0.5rem; }
  .tab-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .tab { font-size: 0.72rem; padding: 0.45rem 0.5rem; }
  .practice-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    padding-bottom: 0;
  }
  #lesson5-practice-hub .practice-switcher,
  #lesson6-practice-hub .practice-switcher,
  #lesson8-practice-hub .practice-switcher,
  #lesson11-practice-hub .practice-switcher,
  #lesson12-practice-hub .practice-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .practice-switch-btn {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    font-size: 0.74rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    padding: 0.45rem 0.4rem;
  }
  #L5 .structure-box,
  #L6 .structure-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.35rem;
  }
  #L5 .structure-box .slot,
  #L6 .structure-box .slot {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0.4rem 0.35rem;
  }
  .sticky-first-col {
    border-collapse: separate;
    border-spacing: 0;
  }
  .sticky-first-col th:first-child,
  .sticky-first-col td:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background: var(--card);
    background-clip: padding-box;
    min-width: 88px;
    box-shadow: 1px 0 0 var(--border), 8px 0 10px rgba(42,37,32,0.04);
  }
  .sticky-first-col th:first-child {
    z-index: 8;
  }
  .sticky-first-col tr:hover td:first-child,
  .sticky-first-col tr:active td:first-child,
  .sticky-first-col tr:focus-within td:first-child {
    background: #F8F5EF;
  }
  #lesson2-frequent-verbs .grid-2 {
    gap: 0;
  }
  #lesson2-frequent-verbs .grid-2 > table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
  }
  #lesson2-frequent-verbs .grid-2 > table th:first-child,
  #lesson2-frequent-verbs .grid-2 > table td:first-child {
    width: 56%;
  }
  #lesson2-frequent-verbs .grid-2 > table:nth-child(2) tr:first-child {
    display: none;
  }
  #lesson2-frequent-verbs .grid-2 > table:first-child tr:last-child td {
    border-bottom: 1px solid #F0ECE5;
  }
  #L4 .l4-article-overview {
    width: auto;
    min-width: 700px;
  }
  #L4 .l4-article-overview th,
  #L4 .l4-article-overview td {
    white-space: nowrap;
  }
  #L4 .l4-article-overview td:first-child .badge {
    white-space: nowrap;
  }
  .exercise-options { grid-template-columns: 1fr; }
  .exercise-input-field {
    font-size: 16px;
    padding: 0.72rem 0.82rem;
  }
  .drag-slots { grid-template-columns: 1fr; }
  .drag-slot {
    min-height: 66px;
    padding: 0.6rem 0.65rem;
  }
  .drag-token {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
  .lesson-support-content {
    display: block;
  }
  .lesson-support-copy,
  .lesson-support-actions {
    float: none;
    width: 100%;
    min-width: 0;
  }
  .lesson-support-actions {
    margin-top: 0.6rem;
    justify-content: flex-start;
  }
  .lesson-support-btn,
  .lesson-support-secondary {
    width: 100%;
    justify-content: center;
  }
  .lesson5-difficulty-toggle {
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
  }
  .drag-difficulty-hub.hard-mode .drag-slots,
  .exercise-shell.hard-mode .drag-slots {
    display: flex;
    grid-template-columns: none;
    flex-wrap: wrap;
    overflow: visible;
  }
  .drag-difficulty-hub.hard-mode .drag-slot,
  .exercise-shell.hard-mode .drag-slot {
    flex: 0 0 auto;
    width: 90px;
    min-width: 90px;
    min-height: 0;
    padding: 0.45rem 0.4rem;
  }
  .drag-difficulty-hub.hard-mode .drag-slot.empty,
  .exercise-shell.hard-mode .drag-slot.empty {
    width: 90px;
    min-width: 90px;
  }
  .drag-difficulty-hub.hard-mode .drag-slot.filled,
  .exercise-shell.hard-mode .drag-slot.filled {
    width: auto;
    min-width: 0;
  }
  .drag-difficulty-hub.hard-mode .drag-token,
  .exercise-shell.hard-mode .drag-token {
    width: auto;
  }
}
