:root {
  /* A visszajelzések színei itt módosíthatók. */
  --helyes: #087a32;
  --hibas: #c90016;
  --kovetkezo: #ffdf00;
  --betumeret: clamp(24px, 2.6vw, 34px);
}
* { box-sizing: border-box; }
body { margin: 0; background: #f0f2f5; color: #161a22; font-family: Arial, Helvetica, sans-serif; }
main { width: min(1180px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 42px); }
#practice { display: grid; gap: 24px; }
.copy-window, .typing-window { border: 4px solid #4b5563; border-radius: 14px; overflow: hidden; background: white; }
.copy-window { padding: 20px 24px 24px; }
.label { display: block; margin: 0 0 16px; font-size: 17px; font-weight: 700; line-height: 1.4; color: #374151; }
#target { margin: 0; min-height: 130px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--betumeret); line-height: 1.8; font-weight: 600; }
#target span { border-radius: 2px; padding: 3px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#target .correct { color: #fff; background: var(--helyes); }
#target .wrong { color: #fff; background: var(--hibas); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
#target .current { color: #000; background: var(--kovetkezo); box-shadow: 0 3px 0 #111; }
.typing-window { border-color: #374151; }
.typing-window .label { margin: 0; padding: 16px 24px; border-bottom: 2px solid #d1d5db; background: white; }
textarea { display: block; width: 100%; resize: vertical; min-height: 200px; margin: 0; padding: 20px 24px; border: 0; border-radius: 0; background: white; color: #111; outline: none; font-family: inherit; font-size: var(--betumeret); font-weight: 600; line-height: 1.65; caret-color: #111; }
textarea::placeholder { color: #5a616b; opacity: 1; font-size: .72em; font-weight: 400; }
.typing-window:focus-within { outline: 3px solid #111; outline-offset: 4px; }
.typing-window.correct { border-color: var(--helyes); }
.typing-window.correct textarea { background: var(--helyes); color: white; caret-color: white; }
.typing-window.error { border-color: var(--hibas); }
.typing-window.error textarea { background: var(--hibas); color: white; caret-color: white; }
textarea::selection { background: #ffdf00; color: #000; }
#summary, #load-error { background: #fff; border: 4px solid #374151; border-radius: 14px; padding: 32px; text-align: center; }
h1 { margin: 0 0 16px; font-size: 34px; }
#summary p, #load-error p { font-size: 20px; line-height: 1.5; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
dl div { background: #f0f2f5; border-radius: 8px; padding: 18px; }
dt { font-size: 16px; } dd { margin: 10px 0 0; font-size: 30px; font-weight: 700; }
button { background: #075d29; color: white; font: 700 24px Arial, sans-serif; padding: 16px 38px; border: 2px solid #05481f; border-radius: 8px; cursor: pointer; }
button:hover { background: #05481f; } button:focus-visible { outline: 4px solid #111; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  #practice { gap: 18px; }
  .copy-window { padding: 16px; }
  .typing-window .label { padding: 12px 16px; }
  .label { font-size: 15px; margin-bottom: 12px; }
  textarea { padding: 16px; min-height: 180px; }
  #target { line-height: 1.8; }
  #summary, #load-error { padding: 24px 16px; }
  h1 { font-size: 28px; } dd { font-size: 24px; }
}
@media (forced-colors: active) {
  #target .correct { text-decoration: underline; }
  #target .wrong { text-decoration: underline wavy; }
  #target .current { outline: 2px solid CanvasText; }
}
