.trtl {
  --trtl-accent: #fbc000;
  max-width: 960px;
  margin: 30px auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: #2b2b2b;
  box-shadow: 0 26px 80px rgba(0,0,0,.24);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.trtl * { box-sizing: border-box; }
.trtl [hidden] { display: none !important; }

.trtl__header {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 18px 28px;
  background: var(--trtl-accent);
  color: #1e1e1e;
}
.trtl__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; min-width: 0; }
.trtl__logo { display: block; width: auto; height: 74px; }
.trtl__wordmark { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.trtl__wordmark strong,
.trtl__wordmark .trtl__radio { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); font-size: 30px; letter-spacing: -.04em; }
.trtl__wordmark strong { font-weight: 950; }
.trtl__wordmark .trtl__radio { font-style: normal; font-weight: 400; }
.trtl__brand-title {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.trtl__stage {
  min-height: 560px;
  padding: 34px 8% 42px;
  background:
    radial-gradient(circle at 82% 8%, rgba(251,192,0,.2) 0, transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.09), transparent 34%),
    #292929;
}
.trtl__eyebrow { margin: 0 0 10px; color: var(--trtl-accent) !important; font-size: 15px !important; font-weight: 900; letter-spacing: .035em; line-height: 1.4; }
.trtl p { color: #e4e4e4; font-size: 17px; line-height: 1.5; }

.trtl__setup { display: grid; gap: 18px; max-width: 620px; }
.trtl__setup-title { margin: 0 0 4px; color: #fff; font-size: clamp(27px, 4vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.trtl__names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trtl label { display: grid; gap: 7px; color: #fff; font-weight: 800; font-size: 15px; }
.trtl input[type="text"] { width: 100%; padding: 14px 15px; border: 2px solid #8a8a8a; border-radius: 12px; outline: none; background: #3a3a3a; color: #fff; font-size: 18px; font-family: inherit; }
.trtl input[type="text"]:focus { border-color: var(--trtl-accent); box-shadow: 0 0 0 3px rgba(251,192,0,.15); }

.trtl__button { padding: 15px 22px; border: 0; border-radius: 12px; background: var(--trtl-accent); color: #242424; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 900; transition: transform .15s ease, opacity .15s ease; }
.trtl__button:hover { transform: translateY(-1px); }
.trtl__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.trtl__button--outline { border: 2px solid var(--trtl-accent); background: transparent; color: var(--trtl-accent); }
.trtl__button--big { padding: 22px 30px; font-size: 23px; letter-spacing: .01em; box-shadow: 0 12px 34px rgba(251,192,0,.28); }
.trtl__privacy { color: #bdbdbd !important; font-size: 13px !important; line-height: 1.45 !important; }

.trtl__game-controls { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.trtl__small-button { min-height: 42px; padding: 8px 13px; border: 2px solid #777; border-radius: 10px; background: #383838; color: #ddd; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; }
.trtl__small-button:hover { border-color: var(--trtl-accent); color: #fff; }
.trtl__small-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.trtl__scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.trtl__scorecard { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 14px; padding: 13px 15px; border: 2px solid #666; border-radius: 14px; background: #343434; transition: border-color .15s ease, background .15s ease; }
.trtl__scorecard.is-active { border-color: var(--trtl-accent); background: rgba(251,192,0,.1); }
.trtl__score-name { overflow: hidden; color: #fff; font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.trtl__scorecard strong { grid-row: 1 / span 2; grid-column: 2; color: var(--trtl-accent); font-size: 28px; line-height: 1; }
.trtl__scorecard small { color: #aaa; font-size: 12px; font-weight: 700; }
.trtl__scorecard.is-active small { color: #ddd; }

.trtl__meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; color: #fff; font-weight: 900; }
.trtl__meta span:first-child { color: var(--trtl-accent); }
.trtl__timer { height: 11px; overflow: hidden; border-radius: 99px; background: #777; }
.trtl__timer span { display: block; width: 100%; height: 100%; background: var(--trtl-accent); transition: width 1s linear; }
.trtl__timer span.is-urgent { animation: trtl-pulse .45s infinite alternate; }
.trtl__timer-label { display: flex; justify-content: space-between; margin-top: 8px; color: #bdbdbd; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.trtl__turn { margin: 22px 0 0; color: var(--trtl-accent) !important; font-size: 18px !important; font-weight: 900; }

.trtl .trtl__question {
  margin: 12px 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(26px, 3.6vw, 40px) !important;
  font-style: normal !important;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.14;
  text-transform: none !important;
}

.trtl__choices { display: grid; gap: 12px; margin: 0 0 18px; }
.trtl__choice {
  display: grid;
  width: 100%;
  grid-template-columns: 54px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 2px solid #8a8a8a;
  border-radius: 15px;
  background: #383838;
  color: #fff;
  text-align: left;
  font-family: inherit;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.trtl__choice:not(:disabled) { cursor: pointer; }
.trtl__choice:not(:disabled):hover { border-color: var(--trtl-accent); transform: translateX(3px); }
.trtl__choice:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.trtl__choice:disabled { opacity: 1; cursor: default; }
.trtl__choice-letter { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.12); color: var(--trtl-accent); font-size: 20px; font-weight: 950; }
.trtl__choice-year { font-size: 26px; font-weight: 900; letter-spacing: .02em; }
.trtl__choice-mark { color: #cfcfcf; font-size: 13px; font-weight: 800; }
.trtl__choice.is-correct { border-color: #58c274; background: rgba(88,194,116,.16); }
.trtl__choice.is-correct .trtl__choice-letter { background: #58c274; color: #142016; }
.trtl__choice.is-correct .trtl__choice-mark { color: #8fe0a5; }
.trtl__choice.is-wrong { border-color: #e06060; background: rgba(224,96,96,.14); }
.trtl__choice.is-wrong .trtl__choice-letter { background: #e06060; color: #260f0f; }
.trtl__choice.is-wrong .trtl__choice-mark { color: #f0a0a0; }

.trtl__feedback { min-height: 28px; margin: 0; font-size: 18px !important; font-weight: 800; }
.trtl__feedback.is-good { color: #8fe0a5 !important; }
.trtl__feedback.is-bad { color: #f0a0a0 !important; }

.trtl__results { display: grid; gap: 12px; max-width: 620px; margin: 6px 0 18px; }
.trtl__result { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 2px solid #8a8a8a; border-radius: 14px; background: #383838; }
.trtl__result strong { font-size: 19px; }
.trtl__result span { color: #cfcfcf; font-size: 14px; font-weight: 700; }
.trtl__verdict { font-size: 18px !important; font-weight: 700; }
.trtl__endbuttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@keyframes trtl-pulse { from { opacity: 1; } to { opacity: .45; } }

@media (max-width: 640px) {
  .trtl { margin: 16px auto; border-radius: 18px; }
  .trtl__stage { min-height: 0; padding: 24px 5% 32px; }
  .trtl__names, .trtl__scoreboard { grid-template-columns: 1fr; }
  .trtl__choice { grid-template-columns: 44px minmax(0,1fr) auto; }
  .trtl__brand-title { white-space: normal; }
  .trtl__logo { height: 56px; }
  .trtl__scorecard { padding: 11px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .trtl__button:hover, .trtl__choice:not(:disabled):hover { transform: none; }
  .trtl__timer span.is-urgent { animation: none; }
}
