:root {
  --ink: #102a43;
  --muted: #4f6a87;
  --paper: #f7f4ed;
  --cream: #fffdf8;
  --coral: #e56b55;
  /* Fehér szöveghez (gomb-háttér) és papír háttéren álló feliratokhoz a sima
     --coral csak ~3.2:1 / ~2.9:1 kontrasztot ad – ez a két árnyalat mindkét
     esetben eléri a WCAG AA 4.5:1-et. */
  --coral-text: #b8492f;
  --coral-text-dark: #96381f;
  --mint: #c8e6db;
  --line: #dbe4e2;
  --shadow: 0 22px 55px rgba(16, 42, 67, .11);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background: radial-gradient(circle at 8% 14%, rgba(200, 230, 219, .7), transparent 25%), radial-gradient(circle at 92% 80%, rgba(229, 107, 85, .13), transparent 28%);
}
.skip-link { position: absolute; top: 0; left: 0; transform: translateY(-100%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0; font-size: 13px; font-weight: 700; text-decoration: none; z-index: 10; transition: transform .15s; }
.skip-link:focus { transform: translateY(0); }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16, 42, 67, .12); }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .02em; background: var(--coral-text); border: 1px solid var(--coral-text); border-radius: 100px; padding: 8px 16px; box-shadow: 0 6px 14px rgba(184, 73, 47, .3); transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.back-link:hover, .back-link:focus-visible { background: var(--coral-text-dark); border-color: var(--coral-text-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(184, 73, 47, .4); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .01em; }
.brand strong { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: var(--mint); font-family: Fraunces, serif; font-size: 19px; }
.topbar-note { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.live-dot, .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: 1px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; padding: 82px 0 74px; }
.eyebrow { margin: 0 0 17px; color: var(--coral-text); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-family: Fraunces, serif; font-size: clamp(48px, 7.5vw, 88px); line-height: .96; letter-spacing: -.04em; font-weight: 600; }
h1 em { color: var(--coral-text); font-style: normal; }
.intro { max-width: 465px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; margin-right: 50px; border: 1px solid var(--coral); border-radius: 50%; transform: rotate(8deg); color: var(--coral-text); }
.stamp-number { font-family: Fraunces, serif; font-size: 37px; line-height: 1; }
.stamp-label { margin-top: 8px; font-size: 11px; line-height: 1.25; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.practice-area { padding: 46px 0 72px; border-top: 1px solid rgba(16, 42, 67, .12); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
h2 { margin-bottom: 0; font-family: Fraunces, serif; font-size: clamp(30px, 4vw, 43px); line-height: 1; letter-spacing: -.03em; }
.status-pill { padding: 9px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 12px; font-weight: 600; background: rgba(255, 253, 248, .65); }
.status-pill.is-speaking .status-dot { animation: pulse 1.2s infinite; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 13px; margin-bottom: 22px; }
.filter-field { flex: 1 1 135px; min-width: 135px; display: flex; flex-direction: column; gap: 7px; }
.filter-field span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
select { width: 100%; padding: 12px 37px 12px 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: rgba(255, 253, 248, .8); font: inherit; font-size: 16px; cursor: pointer; }
select:focus-visible { outline: 3px solid rgba(229, 107, 85, .35); outline-offset: 2px; }
.selection-count { flex: 0 0 auto; padding: 13px 0; color: var(--coral-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sentence-card { position: relative; padding: 39px 48px 33px; border: 1px solid rgba(16, 42, 67, .08); border-radius: 8px; background: var(--cream); box-shadow: var(--shadow); }
.sentence-meta { display: flex; justify-content: space-between; margin-bottom: 36px; color: var(--coral-text); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.english-sentence { max-width: 810px; margin-bottom: 29px; font-family: Fraunces, serif; font-size: clamp(31px, 5vw, 59px); line-height: 1.08; letter-spacing: -.035em; }
.divider { width: 100%; height: 1px; background: var(--line); }
.hungarian-sentence { margin: 22px 0 33px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.repeat-indicator { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; }
.repeat-label { font-weight: 600; }
.repeat-bars { display: flex; gap: 5px; }
.repeat-bars i { display: block; width: 23px; height: 5px; border-radius: 10px; background: var(--line); }
.repeat-bars i.active { background: var(--coral); }
.repeat-count { font-variant-numeric: tabular-nums; }
.controls { display: flex; justify-content: center; gap: 12px; margin: 31px 0 15px; }
button { font: inherit; cursor: pointer; }
.control-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 124px; padding: 14px 22px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.control-button:hover { transform: translateY(-2px); }
.control-button:focus-visible { outline: 3px solid rgba(229, 107, 85, .35); outline-offset: 3px; }
.control-button.primary { min-width: 155px; background: var(--coral-text); color: white; box-shadow: 0 9px 20px rgba(184, 73, 47, .25); }
.control-button.primary:hover { background: var(--coral-text-dark); }
.control-button.secondary { border-color: var(--line); background: rgba(255, 253, 248, .7); color: var(--ink); }
.control-button.secondary.is-paused { border-color: var(--coral); background: var(--mint); color: var(--ink); box-shadow: 0 8px 18px rgba(200, 230, 219, .55); }
.control-button.secondary:hover { background: white; }
.control-button:disabled { opacity: .4; cursor: default; box-shadow: none; transform: none; }
.control-button:disabled:hover { transform: none; background: inherit; }
.button-icon { font-size: 14px; line-height: 1; }
.hint { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.key-hint { display: inline-block; margin-right: 5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.45); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.footer { display: flex; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid rgba(16, 42, 67, .12); color: var(--muted); font-size: 11px; letter-spacing: .04em; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }
@media (max-width: 680px) {
  .app-shell { width: min(100% - 30px, 1120px); }
  .topbar { height: 70px; }
  .topbar-left { gap: 10px; }
  .back-link { padding: 5px 9px; font-size: 11px; }
  .topbar-note { font-size: 10px; }
  .hero { align-items: flex-start; flex-direction: column; gap: 37px; padding: 60px 0 55px; }
  .hero-stamp { align-self: flex-end; width: 116px; height: 116px; margin-right: 18px; }
  .stamp-number { font-size: 29px; }
  .stamp-label { font-size: 9px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .filters { gap: 11px; }
  .filter-field { flex-basis: 100%; }
  .selection-count { flex-basis: 100%; padding: 4px 0 2px; }
  .sentence-card { padding: 27px 23px 25px; }
  .sentence-meta { margin-bottom: 29px; font-size: 9px; }
  .english-sentence { font-size: 35px; }
  .controls { gap: 7px; }
  .control-button { min-width: 0; flex: 1; padding: 13px 8px; font-size: 12px; }
  .control-button.primary { min-width: 0; }
  .footer { gap: 14px; flex-direction: column; }
}