/* DeutschQuest - premium redesign. Deep teal + amber on warm paper.
   Fonts: Plus Jakarta Sans for display, Inter for body. No build step. */
:root {
  --pine: #062e2b;
  --pine-2: #0a3d3a;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: #e6f4f1;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #b45309;
  --amber-soft: #fef3c7;
  --ink: #101e2c;
  --muted: #5b6b7a;
  --paper: #faf8f3;
  --card: #ffffff;
  --line: #e8e2d6;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16,30,44,.06), 0 4px 14px rgba(16,30,44,.06);
  --shadow-md: 0 2px 4px rgba(16,30,44,.06), 0 16px 36px rgba(16,30,44,.10);
  --shadow-lg: 0 24px 60px rgba(6,46,43,.30);
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber-soft); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(245,158,11,.65); outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.01em; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-9px) rotate(var(--tilt, 0deg)); } }

/* ---------- header ---------- */
header.site {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .mark {
  position: relative; overflow: hidden;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-bright), var(--pine-2));
  color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(15,118,110,.35);
}
.logo .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #111827 0 33%, #dd0000 33% 66%, #ffcc00 66% 100%);
}
.logo em { font-style: normal; color: var(--teal); }
nav.main { display: flex; align-items: center; }
nav.main a { margin-left: 22px; color: var(--muted); font-weight: 600; font-size: .96rem; }
nav.main a:hover { color: var(--teal); text-decoration: none; }
nav.main a.cta {
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px;
}
nav.main a.cta:hover { background: var(--teal); }
@media (max-width: 640px) {
  nav.main a { margin-left: 13px; font-size: .88rem; }
  nav.main a.cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(620px 320px at 88% -10%, rgba(20,184,166,.5), transparent 62%),
    radial-gradient(520px 280px at 4% 112%, rgba(245,158,11,.30), transparent 60%),
    linear-gradient(135deg, #052825 0%, #0a3d3a 55%, #0f766e 100%);
  padding: 72px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero .eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .levels, .hero .stats { animation: rise .6s ease both; }
.hero h1 { animation-delay: .06s; }
.hero .lede { animation-delay: .12s; }
.hero .cta-row { animation-delay: .18s; }
.hero .levels { animation-delay: .24s; }
.hero .stats { animation-delay: .3s; }
.hero-art { animation: rise .7s .15s ease both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); line-height: 1.06; margin: 18px 0 16px; font-weight: 800; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--amber-bright), #fda4af);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 1.16rem; max-width: 560px; opacity: .94; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .levels span {
  font-size: .82rem; font-weight: 600; color: #d1fae5;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 5px 12px;
}
.hero .levels span b { color: #fff; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .stat {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 14px; padding: 12px 18px; min-width: 118px;
}
.hero .stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.hero .stat span { font-size: .85rem; opacity: .88; }

/* hero preview card */
.hero-art { position: relative; }
.preview {
  position: relative; z-index: 2;
  background: #fff; color: var(--ink); border-radius: 22px; padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}
.preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.preview-tag {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); padding: 5px 11px; border-radius: 999px;
}
.preview-lives { font-size: 1rem; letter-spacing: 2px; }
.preview-q { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin: 0 0 16px; line-height: 1.4; }
.preview-q strong { color: var(--teal); }
.preview-opts { display: grid; gap: 9px; }
.preview-opts .opt {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: .96rem; font-weight: 500; background: #fff;
}
.preview-opts .opt.ok { border-color: var(--green); background: var(--green-bg); color: #14532d; font-weight: 700; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .9rem; font-weight: 600; }
.preview-foot .streak { color: var(--amber-deep); }
.preview-foot .score { color: var(--teal); }
.chip {
  --tilt: -4deg;
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: .95rem;
  box-shadow: 0 12px 28px rgba(3,32,30,.35);
  animation: floaty 5s ease-in-out infinite;
}
.chip span { color: var(--muted); font-weight: 500; font-size: .82rem; margin-left: 4px; }
.chip.c1 { top: -18px; left: -8px; --tilt: -5deg; }
.chip.c2 { bottom: 42px; right: -14px; --tilt: 4deg; animation-delay: 1.2s; }
.chip.c3 { bottom: -16px; left: 26px; --tilt: -2deg; animation-delay: 2.1s; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 480px; }
  .chip { display: none; }
  .hero { padding: 56px 0 52px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display);
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #451a03; font-weight: 800; padding: 14px 28px; border-radius: 999px;
  border: none; cursor: pointer; font-size: 1rem; line-height: 1.2;
  box-shadow: 0 10px 24px rgba(245,158,11,.38);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); text-decoration: none; box-shadow: 0 14px 30px rgba(245,158,11,.45); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--teal); border: 2px solid var(--teal); box-shadow: none; }
.btn.secondary:hover { background: var(--teal-soft); box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,.10); color: #fff; border: 2px solid rgba(255,255,255,.65); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.20); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* ---------- sections ---------- */
section.block { padding: 60px 0 12px; }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-deep); background: var(--amber-soft);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 12px;
}
section.block h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin: 0 0 8px; font-weight: 800; }
section.block p.sub { color: var(--muted); margin: 0; max-width: 680px; font-size: 1.05rem; }

/* ---------- category grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; text-align: left; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.cat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-bright), var(--amber));
  opacity: 0; transition: opacity .18s ease;
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c9d6d2; }
.cat:hover::before { opacity: 1; }
.cat .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.7rem; line-height: 1;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.cat:nth-child(6n+2) .ico { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.cat:nth-child(6n+3) .ico { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.cat:nth-child(6n+4) .ico { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.cat:nth-child(6n+5) .ico { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.cat:nth-child(6n+6) .ico { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.cat h3 { margin: 14px 0 3px; font-size: 1.14rem; font-weight: 700; }
.cat .en { color: var(--muted); font-size: .92rem; margin: 0; }
.cat .meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted); }
.cat .count { background: var(--teal-soft); color: var(--teal); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cat .best { font-weight: 700; color: var(--amber-deep); }
.cat .meta .go { font-weight: 700; color: var(--teal); transition: transform .18s ease; }
.cat:hover .meta .go { transform: translateX(3px); }

/* ---------- quiz ---------- */
#quiz { scroll-margin-top: 84px; }
.quiz-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.quiz-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal) 45%, var(--amber));
}
.quiz-card .hud { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 16px; }
.pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: .9rem; }
.pill.lives { color: var(--red); background: #fff5f5; border-color: #fecaca; }
.pill.streak { color: var(--amber-deep); }
.pill.streak.hot { background: var(--amber-soft); border-color: var(--amber); animation: floaty 2.4s ease-in-out infinite; }
.progress { height: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--teal-bright), var(--amber)); width: 0%; transition: width .35s ease; border-radius: 999px; }
.qtext { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 700; margin: 6px 0 20px; line-height: 1.4; animation: rise .3s ease both; }
.answers { display: grid; gap: 11px; counter-reset: opt; animation: rise .35s .05s ease both; }
.answer {
  position: relative; text-align: left; font: inherit; font-weight: 500; font-size: 1.02rem;
  padding: 14px 16px 14px 54px; background: #fff; border: 2px solid var(--line);
  border-radius: 14px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.answer::before {
  counter-increment: opt; content: counter(opt, upper-alpha);
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 29px; height: 29px; border-radius: 9px;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--teal);
}
.answer:hover:not(:disabled) { border-color: var(--teal); background: #f0fdfa; transform: translateX(3px); box-shadow: var(--shadow-sm); }
.answer:disabled { cursor: default; opacity: .9; }
.answer.correct { border-color: var(--green); background: var(--green-bg); font-weight: 700; box-shadow: 0 6px 18px rgba(21,128,61,.18); }
.answer.correct::before { background: var(--green); color: #fff; border-color: var(--green); }
.answer.correct::after { content: " \2713"; color: var(--green); font-weight: 800; }
.answer.wrong { border-color: var(--red); background: var(--red-bg); }
.answer.wrong::before { background: var(--red); color: #fff; border-color: var(--red); }
.answer.wrong::after { content: " \2717"; color: var(--red); font-weight: 800; }
.feedback { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-weight: 600; animation: rise .3s ease both; }
.feedback.good { background: var(--green-bg); color: #14532d; }
.feedback.bad { background: var(--red-bg); color: #7f1d1d; }
.feedback .bonus { display: block; color: var(--amber-deep); margin-top: 2px; }
.level-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.level-btn {
  font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; line-height: 1.3;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.level-btn small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.level-btn:hover { border-color: var(--teal); transform: translateY(-2px); }
.level-btn.sel { border-color: var(--teal); background: linear-gradient(135deg, var(--teal), var(--pine-2)); color: #fff; box-shadow: 0 10px 22px rgba(15,118,110,.30); }
.level-btn.sel small { color: #ccfbf1; }
.quiz-empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.quiz-empty .empty-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(135deg, var(--teal-soft), #fef3c7);
  display: grid; place-items: center; font-size: 1.9rem;
}
.quiz-empty h3 { margin: 0 0 6px; font-size: 1.25rem; }
.quiz-empty p { margin: 0; }
.result { text-align: center; animation: rise .35s ease both; }
.result h3 { font-size: 1.5rem; margin: 2px 0 4px; }
.result .big {
  font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 3.4rem); font-weight: 800; margin: 8px 0 4px; line-height: 1.1;
  background: linear-gradient(110deg, var(--teal), var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 26px; }
.result .cell { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px; min-width: 110px; }
.result .cell strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.result .cell span { font-size: .88rem; color: var(--muted); }

/* ---------- steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .n {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: #fff; display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(15,118,110,.28);
}
.step h3 { margin: 0 0 6px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feat p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- faq ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 11px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  font-family: var(--font-display); font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 700; line-height: 1; transition: transform .2s ease;
}
.faq details[open ] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- static pages ---------- */
.page { padding: 52px 0 64px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 12px; font-weight: 800; }
.page h2 { margin-top: 34px; font-size: 1.35rem; padding-bottom: 8px; border-bottom: 3px solid var(--teal-soft); }
.page p, .page li { color: #334155; }
.page .prose { max-width: 760px; }
.page .prose > h1 { position: relative; padding-top: 14px; }
.page .prose > h1::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-bright), var(--amber));
}
form.contact { max-width: 560px; display: grid; gap: 12px; margin-top: 20px; }
form.contact label { font-weight: 700; font-family: var(--font-display); }
form.contact input, form.contact textarea {
  font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; width: 100%;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
.note { background: var(--teal-soft); border: 1px solid #99f6e4; border-radius: 14px; padding: 14px 18px; }

/* ---------- footer ---------- */
footer.site {
  background: #0b1b26; color: #cbd5e1; margin-top: 72px; padding: 44px 0 30px;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--teal-bright), var(--amber)) 1;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer.site a { color: #e2e8f0; }
footer.site a:hover { color: #fff; }
footer.site h4 { color: #fff; margin: 0 0 10px; font-size: 1.02rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; }
footer.site p { margin: 0; }
footer.site .fine { margin-top: 32px; font-size: .86rem; color: #94a3b8; border-top: 1px solid #1e293b; padding-top: 18px; }

/* ---------- word of the day ---------- */
#word-of-the-day, #grammar { scroll-margin-top: 84px; }
.wotd-card {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(420px 220px at 92% -10%, rgba(20,184,166,.45), transparent 62%),
    radial-gradient(380px 200px at 2% 112%, rgba(245,158,11,.28), transparent 60%),
    linear-gradient(135deg, #052825 0%, #0a3d3a 55%, #0f766e 100%);
  border-radius: 22px; padding: 32px 34px;
  box-shadow: var(--shadow-md);
}
.wotd-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .3;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}
.wotd-card > div { position: relative; }
.wotd-date { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #99f6e4; margin: 0; }
.wotd-word { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 2.6rem); font-weight: 800; margin: 10px 0 4px; line-height: 1.15; }
.wotd-word .art { color: var(--amber-bright); }
.wotd-meaning { font-size: 1.18rem; opacity: .95; margin: 0 0 20px; }
.wotd-ex { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 16px 20px; }
.wotd-ex p { margin: 0; }
.wotd-ex .de { font-weight: 700; font-size: 1.06rem; }
.wotd-ex .en { opacity: .86; font-size: .95rem; margin-top: 5px; }
.wotd-loading { margin: 0; opacity: .8; }

/* ---------- grammar basics ---------- */
.grammar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.grammar-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.grammar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.grammar-card .g-ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.grammar-card:nth-child(2) .g-ico { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.grammar-card:nth-child(3) .g-ico { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.grammar-card:nth-child(4) .g-ico { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.grammar-card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.grammar-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.grammar-card .g-ex {
  display: block; margin-top: 12px; background: var(--teal-soft); color: var(--pine);
  border-radius: 10px; padding: 9px 13px; font-weight: 600; font-size: .92rem;
}

/* ---------- about lead ---------- */
.page .lead { font-size: 1.14rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
