.antidote-shell {
  --av-ink: #102044;
  --av-navy: #142d5e;
  --av-orange: #f28a24;
  --av-mint: #dff7ee;
  --av-green: #08765c;
  --av-cream: #fff8ea;
  --av-line: #dce4ef;
  color: #17243a;
  display: grid;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.antidote-hero {
  background:
    radial-gradient(circle at 90% 12%, rgba(242, 138, 36, .34), transparent 26%),
    linear-gradient(135deg, #102044 0%, #183d74 62%, #09684f 100%);
  border-radius: 0 0 34px 34px;
  color: #fff;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  position: relative;
}

.antidote-hero::after {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  content: "";
  height: 340px;
  position: absolute;
  right: -120px;
  top: -160px;
  width: 340px;
}

.antidote-hero-copy { position: relative; z-index: 1; }
.antidote-hero .eyebrow { color: #ffbd67; letter-spacing: .13em; }
.antidote-hero h1 { color: #fff; font-size: clamp(2.15rem, 5vw, 4.7rem); line-height: .98; margin: 12px 0 22px; max-width: 920px; }
.antidote-hero-copy > p:not(.eyebrow) { color: #e5edf9; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; max-width: 820px; }
.antidote-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.antidote-hero-actions .button { background: #fff; border-color: #fff; color: var(--av-navy); }
.antidote-hero-actions .button.secondary { background: transparent; color: #fff; }

.antidote-hero-cards {
  align-self: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.antidote-hero-cards article {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  display: grid;
  gap: 4px;
  min-height: 132px;
  padding: 22px;
}
.antidote-hero-cards strong { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
.antidote-hero-cards span { color: #dce9f8; font-size: .9rem; }

.antidote-speech-bar,
.antidote-panel,
.antidote-method {
  margin-inline: clamp(16px, 3vw, 42px);
}

.antidote-speech-bar {
  align-items: end;
  background: #fff;
  border: 1px solid var(--av-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(16,32,68,.09);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .35fr) minmax(180px, .35fr);
  padding: 18px 22px;
}
.antidote-speech-bar > div { align-items: center; display: flex; gap: 14px; }
.antidote-speech-bar > div > span { background: var(--av-mint); border-radius: 16px; font-size: 1.6rem; padding: 12px; }
.antidote-speech-bar p, .antidote-speech-bar small { display: block; margin: 0; }
.antidote-speech-bar label, .antidote-filters label, .antidote-answer { display: grid; font-weight: 750; gap: 7px; }
.antidote-speech-bar select, .antidote-filters input, .antidote-filters select, .antidote-answer input, .antidote-answer select {
  background: #fff;
  border: 1px solid #bac8d9;
  border-radius: 12px;
  color: #17243a;
  min-height: 48px;
  padding: 10px 13px;
  width: 100%;
}
.antidote-speech-bar select:focus, .antidote-filters input:focus, .antidote-filters select:focus, .antidote-answer input:focus, .antidote-answer select:focus { outline: 3px solid rgba(242,138,36,.32); outline-offset: 2px; }

.antidote-panel {
  background: #fff;
  border: 1px solid var(--av-line);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(16,32,68,.08);
  padding: clamp(20px, 4vw, 42px);
}
.antidote-panel-head { align-items: start; display: flex; gap: 22px; justify-content: space-between; }
.antidote-panel-head h2 { color: var(--av-ink); font-size: clamp(1.7rem, 3.3vw, 3rem); margin: 5px 0 9px; }
.antidote-panel-head p { line-height: 1.65; margin: 0; max-width: 760px; }
.antidote-count { align-items: center; background: var(--av-cream); border: 1px solid #f5d7aa; border-radius: 18px; color: #9c410d; display: flex; flex-direction: column; font-size: 2.2rem; min-width: 132px; padding: 15px; }
.antidote-count small { font-size: .72rem; font-weight: 700; }

.antidote-filters { align-items: end; background: #f5f8fc; border-radius: 18px; display: grid; gap: 14px; grid-template-columns: 1.2fr .8fr auto; margin: 26px 0; padding: 16px; }
.antidote-table-wrap { border: 1px solid var(--av-line); border-radius: 18px; overflow: auto; }
.antidote-table { border-collapse: collapse; min-width: 900px; width: 100%; }
.antidote-table caption { color: #5c6b7d; padding: 12px; text-align: left; }
.antidote-table th, .antidote-table td { border-bottom: 1px solid #e6ebf2; padding: 13px 14px; text-align: left; vertical-align: top; }
.antidote-table thead th { background: var(--av-navy); color: #fff; font-size: .82rem; letter-spacing: .05em; position: sticky; text-transform: uppercase; top: 0; z-index: 1; }
.antidote-table tbody tr:nth-child(even) { background: #f8fafc; }
.antidote-table tbody tr:hover { background: #fff8ea; }
.antidote-table td > small { color: #617087; display: block; line-height: 1.45; margin-top: 6px; max-width: 410px; }

.antidote-audio {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #113e7c;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  margin: 1px 8px 1px 0;
  padding: 6px 7px;
}
.antidote-audio:hover { background: #e9f2ff; }
.antidote-audio:focus-visible { outline: 3px solid var(--av-orange); }
.antidote-audio > span:first-child { align-items: center; background: #dbeaff; border-radius: 50%; display: inline-flex; font-size: .63rem; height: 24px; justify-content: center; width: 24px; }
.antidote-pagination { align-items: center; display: flex; gap: 16px; justify-content: center; margin-top: 22px; }

.antidote-game-badge { background: #e8fff7; border-radius: 99px; color: #08765c; font-weight: 850; padding: 9px 15px; }
.antidote-game-settings { align-items: end; background: #f4f7fb; border: 1px solid var(--av-line); border-radius: 20px; display: grid; gap: 16px; grid-template-columns: minmax(210px, 1fr) minmax(240px, 1fr) auto; margin: 26px 0; padding: 18px; }
.antidote-game-settings > label { display: grid; gap: 10px; }
.antidote-game-settings input[type="range"] { accent-color: var(--av-orange); width: 100%; }
.antidote-game-settings fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.antidote-game-settings legend { font-weight: 800; margin-bottom: 8px; width: 100%; }
.antidote-game-settings fieldset label { background: #fff; border: 1px solid var(--av-line); border-radius: 10px; padding: 9px 11px; }
.antidote-game-settings > div { display: flex; flex-wrap: wrap; gap: 9px; }

.antidote-game-empty { align-items: center; background: linear-gradient(135deg, #fff8ea, #eaf8f3); border: 1px dashed #e0b16e; border-radius: 24px; display: flex; flex-direction: column; padding: clamp(28px, 7vw, 64px); text-align: center; }
.antidote-game-empty > div { font-size: 3rem; }
.antidote-game-empty h3 { color: var(--av-ink); font-size: 1.8rem; margin: 8px; }

.antidote-game-status { align-items: center; display: grid; gap: 12px; grid-template-columns: 1fr auto auto; margin-bottom: 18px; }
.antidote-game-status > div:not(:first-child) { background: #f5f7fb; border-radius: 13px; display: grid; min-width: 84px; padding: 9px 13px; text-align: center; }
.antidote-game-status > div:not(:first-child) strong { color: var(--av-navy); font-size: 1.45rem; }
.antidote-game-status > div:not(:first-child) span { color: #68758a; font-size: .7rem; text-transform: uppercase; }
.antidote-progress { background: #dce5ef; border-radius: 99px; height: 9px; margin-top: 8px; overflow: hidden; }
.antidote-progress i { background: linear-gradient(90deg, var(--av-orange), #f6ba45); display: block; height: 100%; transition: width .25s ease; }

.antidote-prompt { align-items: center; background: linear-gradient(145deg, #102044, #17487e); border-radius: 24px; color: #fff; display: flex; flex-direction: column; min-height: 260px; padding: 32px; text-align: center; }
.antidote-prompt p { color: #bcd0e9; margin: 0; }
.antidote-prompt h3 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; margin: 22px 0; overflow-wrap: anywhere; }
.antidote-listen-large, .antidote-hint { background: transparent; border: 1px solid rgba(255,255,255,.46); border-radius: 99px; color: #fff; cursor: pointer; margin: 5px; padding: 10px 16px; }
.antidote-hint { border: 0; color: #ffcb84; text-decoration: underline; }
.antidote-prompt small { background: rgba(255,255,255,.12); border-radius: 10px; margin-top: 8px; padding: 9px 12px; }

.antidote-answer-form { align-items: end; display: grid; gap: 16px; grid-template-columns: 1fr 1fr auto; margin: 20px 0; }
.antidote-feedback { background: #f3f6fa; border-left: 5px solid #9eacc0; border-radius: 16px; color: #445268; padding: 18px; }
.antidote-feedback.is-correct { background: #e8faf3; border-color: #0d9a72; color: #075f49; }
.antidote-feedback.is-wrong { background: #fff0eb; border-color: #d9502d; color: #7a2818; }
.antidote-feedback > strong { display: block; font-size: 1.25rem; }
.antidote-correct-forms { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.antidote-correct-forms > span { background: #fff; border: 1px solid currentColor; border-radius: 10px; padding: 4px; }
.antidote-feedback > .button { margin-top: 12px; }

.antidote-summary { background: linear-gradient(145deg, #fff8ea, #e7f8f1); border: 1px solid #f2d3a8; border-radius: 24px; padding: clamp(28px, 5vw, 52px); text-align: center; }
.antidote-trophy { font-size: 4rem; }
.antidote-summary h3 { color: var(--av-ink); font-size: clamp(1.8rem, 4vw, 3rem); margin: 8px; }
.antidote-score-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin: 25px auto; max-width: 850px; }
.antidote-score-grid article { background: #fff; border: 1px solid var(--av-line); border-radius: 16px; display: grid; padding: 17px; }
.antidote-score-grid strong { color: #a33615; font-size: 2rem; }
.antidote-score-grid span { color: #65748a; }
.antidote-summary-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.antidote-method { background: #fff; border: 1px solid var(--av-line); border-radius: 20px; }
.antidote-method summary { color: var(--av-navy); cursor: pointer; font-weight: 850; padding: 18px 22px; }
.antidote-method > div { border-top: 1px solid var(--av-line); line-height: 1.7; padding: 0 24px 24px; }
.antidote-method a { color: #0a5a97; }

@media (max-width: 980px) {
  .antidote-hero { grid-template-columns: 1fr; }
  .antidote-speech-bar { grid-template-columns: 1fr 1fr; }
  .antidote-speech-bar > div { grid-column: 1 / -1; }
  .antidote-game-settings { grid-template-columns: 1fr; }
  .antidote-answer-form { grid-template-columns: 1fr 1fr; }
  .antidote-answer-form > .button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .antidote-shell { gap: 16px; }
  .antidote-hero { border-radius: 0 0 24px 24px; padding: 28px 18px; }
  .antidote-hero h1 { font-size: 2.45rem; }
  .antidote-hero-cards article { min-height: 104px; padding: 16px; }
  .antidote-speech-bar, .antidote-panel, .antidote-method { margin-inline: 10px; }
  .antidote-speech-bar { grid-template-columns: 1fr; }
  .antidote-speech-bar > div { grid-column: auto; }
  .antidote-panel { border-radius: 20px; padding: 17px 12px; }
  .antidote-panel-head { flex-direction: column; }
  .antidote-count { align-items: baseline; flex-direction: row; gap: 8px; width: 100%; }
  .antidote-filters { grid-template-columns: 1fr; }
  .antidote-game-status { grid-template-columns: 1fr 1fr; }
  .antidote-game-status > div:first-child { grid-column: 1 / -1; }
  .antidote-answer-form { grid-template-columns: 1fr; }
  .antidote-answer-form > .button { grid-column: auto; }
  .antidote-score-grid { grid-template-columns: repeat(2, 1fr); }
  .antidote-prompt { min-height: 230px; padding: 24px 12px; }
  .antidote-prompt h3 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .antidote-progress i { transition: none; }
  .antidote-shell * { scroll-behavior: auto !important; }
}
