.tdlq {
  --td-teal: #12a8b5;
  --td-teal-dark: #087f8a;
  --td-red: #aa2739;
  --td-purple: #535c8b;
  --td-ink: #202637;
  --td-muted: #697386;
  --td-line: #e7ebf1;
  --td-soft: #f5f8fb;
  --td-green: #1d9b61;
  --td-green-bg: #effaf3;
  --td-red-bg: #fff2f2;
  --td-gold: #c99b32;
  color: var(--td-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  margin: 24px auto;
  max-width: 1120px;
  width: 100%;
}
.tdlq, .tdlq * { box-sizing: border-box; }
.tdlq button, .tdlq input { font: inherit; }
.tdlq button { cursor: pointer; }
.tdlq-shell { background: #fff; border: 1px solid #e9edf2; border-radius: 22px; box-shadow: 0 18px 55px rgba(30, 43, 66, .09); overflow: hidden; }
.tdlq-header { align-items: center; background: linear-gradient(112deg, #fff 0%, #f6fbfc 100%); border-bottom: 1px solid var(--td-line); display: flex; justify-content: space-between; min-height: 94px; padding: 17px 30px; gap: 18px; }
.tdlq-brand { align-items: center; display: flex; gap: 14px; min-width: 0; }
.tdlq-mascot { align-items: center; background: #e9f9fa; border: 1px solid #d2f0f2; border-radius: 17px; display: flex; flex: 0 0 58px; height: 58px; justify-content: center; overflow: hidden; width: 58px; }
.tdlq-mascot svg { height: 48px; width: 44px; animation: tdlq-float 3.3s ease-in-out infinite; }
.tdlq-eyebrow, .tdlq-kicker { color: var(--td-teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .15em; line-height: 1.3; margin: 0 0 4px; }
.tdlq-header h2 { color: var(--td-ink); font-size: 22px; font-weight: 850; letter-spacing: -.035em; line-height: 1.15; margin: 0; }
.tdlq-tagline { color: var(--td-muted); font-size: 12px; margin: 4px 0 0; }
.tdlq-header-pill { align-items: center; background: #fff; border: 1px solid #e4edf0; border-radius: 99px; color: #566275; display: inline-flex; flex: 0 0 auto; font-size: 11px; font-weight: 700; gap: 8px; padding: 8px 12px; }
.tdlq-live-dot { background: #29b77b; border-radius: 50%; box-shadow: 0 0 0 4px #e6f8ef; height: 7px; width: 7px; }
.tdlq-main { min-height: 500px; padding: 32px; }
.tdlq-screen[hidden], .tdlq-feedback[hidden], .tdlq-pass-panel[hidden], .tdlq-fail-panel[hidden] { display: none !important; }
.tdlq-intro { align-items: center; display: grid; gap: 34px; grid-template-columns: 1.06fr .94fr; min-height: 480px; }
.tdlq-intro-copy { padding: 18px 0 18px 8px; }
.tdlq-intro-copy h3 { color: var(--td-ink); font-size: clamp(31px, 4vw, 46px); font-weight: 850; letter-spacing: -.055em; line-height: 1.08; margin: 12px 0 15px; max-width: 540px; }
.tdlq-intro-copy h3 span { color: var(--td-teal); }
.tdlq-intro-copy > p { color: #647084; font-size: 15px; line-height: 1.75; margin: 0; max-width: 510px; }
.tdlq-feature-row { border-bottom: 1px solid var(--td-line); border-top: 1px solid var(--td-line); display: flex; flex-wrap: wrap; gap: 13px 24px; margin: 23px 0 22px; padding: 14px 0; }
.tdlq-feature-row span { color: #677386; font-size: 12px; }
.tdlq-feature-row b { color: var(--td-ink); font-size: 14px; margin-right: 4px; }
.tdlq-start-form { max-width: 440px; }
.tdlq-start-form label { color: #343d50; display: block; font-size: 13px; font-weight: 750; margin: 0 0 8px; }
.tdlq-name { background: #fff; border: 1px solid #dce3eb; border-radius: 10px; box-shadow: 0 2px 5px rgba(27, 39, 58, .025) inset; color: var(--td-ink); display: block; font-size: 15px; height: 48px; outline: none; padding: 0 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.tdlq-name:focus { border-color: var(--td-teal); box-shadow: 0 0 0 3px rgba(18, 168, 181, .13); }
.tdlq-name::placeholder { color: #a2aab7; }
.tdlq-btn { align-items: center; border: 0; border-radius: 10px; display: inline-flex; font-size: 13px; font-weight: 800; gap: 10px; justify-content: center; min-height: 45px; padding: 11px 18px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.tdlq-btn:hover { transform: translateY(-1px); }
.tdlq-btn:focus-visible { outline: 3px solid rgba(18, 168, 181, .3); outline-offset: 3px; }
.tdlq-btn-primary { background: var(--td-teal); box-shadow: 0 6px 15px rgba(18, 168, 181, .18); color: #fff; }
.tdlq-btn-primary:hover { background: var(--td-teal-dark); box-shadow: 0 8px 18px rgba(18, 168, 181, .23); color: #fff; }
.tdlq-start-form .tdlq-btn { margin-top: 11px; min-width: 190px; }
.tdlq-form-note { color: #8993a2; font-size: 10px; margin: 9px 0 0; }
.tdlq-intro-art { align-items: center; background: radial-gradient(circle at 50% 44%, #e9f9fa 0, #f3fafb 42%, #f8fafc 72%); border: 1px solid #e6f1f3; border-radius: 22px; display: flex; flex-direction: column; justify-content: center; min-height: 400px; overflow: hidden; position: relative; }
.tdlq-big-tux { align-items: center; background: #fff; border: 1px solid #e9f2f4; border-radius: 50%; box-shadow: 0 20px 40px rgba(32, 90, 103, .12); display: flex; height: 202px; justify-content: center; position: relative; width: 202px; z-index: 2; }
.tdlq-big-tux svg { height: 166px; width: 146px; animation: tdlq-float 3.2s ease-in-out infinite; }
.tdlq-body { fill: #20242c; }
.tdlq-belly { fill: #f7f8f8; }
.tdlq-eye { fill: #fff; }
.tdlq-pupil { fill: #20242c; }
.tdlq-beak, .tdlq-foot { fill: #ee9b24; }
.tdlq-shadow { fill: rgba(31, 45, 58, .12); }
.tdlq-orbit { border: 1px dashed rgba(18, 168, 181, .3); border-radius: 50%; height: 280px; left: 50%; position: absolute; top: 45%; transform: translate(-50%, -50%); width: 280px; }
.tdlq-orbit-two { border-color: rgba(83, 92, 139, .2); height: 350px; width: 350px; }
.tdlq-terminal-card { background: #202a3c; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 12px 24px rgba(25, 37, 55, .17); color: #fff; display: grid; gap: 3px; grid-template-columns: auto auto; margin-top: -7px; min-width: 204px; padding: 11px 14px; position: relative; z-index: 3; }
.tdlq-terminal-dots { color: #e7a34a; font-size: 9px; grid-column: 1 / -1; letter-spacing: 2px; margin-bottom: 4px; }
.tdlq-terminal-card code { color: #9bcdd2; font-size: 10px; }
.tdlq-terminal-card strong { font-size: 10px; text-align: right; }
.tdlq-terminal-card .tdlq-terminal-ready { color: #67dfa6; }
.tdlq-float-chip { animation: tdlq-chip-float 4.5s ease-in-out infinite; background: #fff; border: 1px solid #e4eef1; border-radius: 99px; box-shadow: 0 7px 18px rgba(43, 59, 77, .08); color: #586477; font-size: 10px; font-weight: 750; padding: 8px 12px; position: absolute; z-index: 4; }
.tdlq-chip-one { left: 7%; top: 21%; }
.tdlq-chip-two { animation-delay: -2s; bottom: 18%; right: 4%; }
@keyframes tdlq-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes tdlq-chip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Question screen */
.tdlq-question-screen { animation: tdlq-fade-up .35s ease both; }
@keyframes tdlq-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tdlq-quiz-meta { align-items: center; display: flex; gap: 28px; justify-content: space-between; margin: 0 0 31px; }
.tdlq-progress-wrap { flex: 1; max-width: 730px; }
.tdlq-progress-label { color: #6d7789; display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; margin-bottom: 8px; }
.tdlq-progress-count { color: #97a0ad; font-weight: 600; }
.tdlq-progress-track { background: #edf1f5; border-radius: 99px; height: 7px; overflow: hidden; }
.tdlq-progress-bar { background: linear-gradient(90deg, var(--td-teal), #52c8c1); border-radius: 99px; display: block; height: 100%; transition: width .35s ease; width: 0; }
.tdlq-timer { align-items: center; background: #fff8eb; border: 1px solid #f5e5c6; border-radius: 12px; color: #9a6918; display: inline-flex; flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 850; gap: 8px; justify-content: center; min-width: 108px; padding: 9px 13px; }
.tdlq-clock-icon { display: inline-block; font-size: 23px; line-height: 1; }
.tdlq-timer.tdlq-timer-toss .tdlq-clock-icon { animation: tdlq-clock-toss .65s ease-in-out infinite alternate; }
@keyframes tdlq-clock-toss { 0% { transform: rotate(-22deg) translateY(-2px); } 30% { transform: rotate(24deg) translateY(-9px); } 65% { transform: rotate(-16deg) translateY(2px); } 100% { transform: rotate(18deg) translateY(-5px); } }
.tdlq-question-heading { margin-bottom: 21px; }
.tdlq-question-number { color: #8590a0; font-size: 10px; font-weight: 850; letter-spacing: .14em; margin-right: 10px; }
.tdlq-difficulty { background: #eaf8f2; border-radius: 99px; color: #188254; display: inline-block; font-size: 9px; font-weight: 850; letter-spacing: .08em; padding: 4px 9px; vertical-align: 1px; }
.tdlq-difficulty.is-hard { background: #fff0f1; color: #a62d3b; }
.tdlq-question-text { color: var(--td-ink); font-size: clamp(20px, 2.7vw, 28px); font-weight: 800; letter-spacing: -.035em; line-height: 1.3; margin: 12px 0 8px; }
.tdlq-question-hint { color: #8791a0; font-size: 12px; margin: 0; }
.tdlq-options { display: grid; gap: 11px; grid-template-columns: 1fr 1fr; }
.tdlq-option { align-items: center; background: #fff; border: 1px solid #e2e8ef; border-radius: 12px; color: #384254; display: flex; gap: 12px; min-height: 66px; padding: 12px 15px; text-align: left; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; width: 100%; }
.tdlq-option:hover:not(:disabled) { background: #f7fcfc; border-color: #8ed5d9; box-shadow: 0 5px 12px rgba(18, 168, 181, .07); transform: translateY(-1px); }
.tdlq-option:focus-visible { outline: 3px solid rgba(18, 168, 181, .23); outline-offset: 2px; }
.tdlq-option-letter { align-items: center; background: #f0f3f7; border-radius: 8px; color: #657185; display: inline-flex; flex: 0 0 31px; font-size: 12px; font-weight: 850; height: 31px; justify-content: center; width: 31px; }
.tdlq-option-text { flex: 1; font-size: 13px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.tdlq-option-mark { display: inline-flex; flex: 0 0 20px; font-size: 18px; font-weight: 900; justify-content: center; }
.tdlq-option.is-correct { background: #effaf3; border-color: #4fbd83; color: #176f48; }
.tdlq-option.is-correct .tdlq-option-letter { background: #d8f4e4; color: #176f48; }
.tdlq-option.is-correct .tdlq-option-mark { color: #139456; }
.tdlq-option.is-wrong { background: #fff2f2; border-color: #e9a0a6; color: #9f3440; }
.tdlq-option.is-wrong .tdlq-option-letter { background: #ffe0e2; color: #a93442; }
.tdlq-option.is-wrong .tdlq-option-mark { color: #d24a56; }
.tdlq-option:disabled { cursor: default; opacity: 1; }
.tdlq-feedback { animation: tdlq-fade-up .3s ease both; margin-top: 22px; }
.tdlq-feedback-status { border-radius: 10px; font-size: 13px; font-weight: 800; margin-bottom: 12px; padding: 10px 13px; }
.tdlq-feedback-status.is-right { background: #eaf8f0; color: #147b4e; }
.tdlq-feedback-status.is-wrong { background: #fff0f0; color: #a6323f; }
.tdlq-explain-good, .tdlq-explain-bad { border-radius: 11px; margin-top: 11px; padding: 15px 17px; }
.tdlq-explain-good { background: #f0faf2; border: 1px solid #d8efdf; }
.tdlq-explain-bad { background: #fff3f3; border: 1px solid #f5dddd; }
.tdlq-explain-good h4, .tdlq-explain-bad h4 { font-size: 12px; font-weight: 850; margin: 0 0 6px; }
.tdlq-explain-good h4 { color: #20784c; }
.tdlq-explain-bad h4 { color: #a23b47; }
.tdlq-explanation, .tdlq-wrong-reasons { color: #526071; font-size: 12px; line-height: 1.7; margin: 0; }
.tdlq-wrong-reason { border-top: 1px solid rgba(176, 69, 79, .1); margin-top: 7px; padding-top: 7px; }
.tdlq-wrong-reason:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.tdlq-wrong-reason strong { color: #a23b47; }
.tdlq-continue { align-items: center; background: #f6f8fb; border: 1px solid #e9edf2; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 17px; padding: 15px 17px; }
.tdlq-continue > div:first-child { display: grid; gap: 2px; }
.tdlq-continue strong { color: #30394b; font-size: 13px; }
.tdlq-continue-note { color: #8791a0; font-size: 10px; }
.tdlq-continue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tdlq-continue-actions .tdlq-btn { min-height: 39px; padding: 8px 13px; }
.tdlq-btn-quiet { background: #fff; border: 1px solid #dce3eb; color: #596578; }
.tdlq-btn-quiet:hover { background: #f4f6f8; color: #30394b; }

/* Results */
.tdlq-result-screen { animation: tdlq-fade-up .4s ease both; margin: 4px auto; max-width: 870px; }
.tdlq-result-banner { align-items: center; background: linear-gradient(105deg, #edfafb, #f6f8fc); border: 1px solid #e2f0f2; border-radius: 16px; display: flex; gap: 16px; padding: 20px 22px; }
.tdlq-result-mascot { align-items: center; background: #fff; border-radius: 14px; box-shadow: 0 4px 12px rgba(27, 78, 89, .08); display: flex; flex: 0 0 54px; font-size: 29px; height: 54px; justify-content: center; }
.tdlq-result-banner h3 { color: var(--td-ink); font-size: 25px; font-weight: 850; letter-spacing: -.04em; margin: 3px 0; }
.tdlq-result-banner p { color: #6c788b; font-size: 12px; margin: 0; }
.tdlq-score-grid { display: grid; gap: 13px; grid-template-columns: 1.2fr 1fr 1fr; margin: 19px 0; }
.tdlq-score-card { background: #fff; border: 1px solid var(--td-line); border-radius: 13px; display: flex; flex-direction: column; min-height: 119px; padding: 16px 18px; }
.tdlq-score-card > span { color: #8490a0; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.tdlq-score-card > strong { color: var(--td-ink); font-size: 35px; font-weight: 850; letter-spacing: -.05em; line-height: 1.2; margin: 7px 0 2px; }
.tdlq-score-card > small { color: #919baa; font-size: 10px; }
.tdlq-score-total { background: #f2fbfb; border-color: #dceff0; }
.tdlq-score-total > strong { color: var(--td-teal-dark); }
.tdlq-score-correct > strong { color: #17915a; }
.tdlq-score-incorrect > strong { color: #b23b48; }
.tdlq-pass-panel { align-items: center; background: linear-gradient(108deg, #fff9e9, #fffdf7); border: 1px solid #f0dfb7; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 13px; margin-top: 17px; padding: 16px; }
.tdlq-pass-medal { align-items: center; background: radial-gradient(circle, #fff9d8 0 42%, #d6aa45 43% 56%, #f4df9c 57%); border: 2px solid #c6952c; border-radius: 50%; color: #a36c12; display: flex; flex: 0 0 49px; font-size: 25px; height: 49px; justify-content: center; width: 49px; }
.tdlq-pass-panel > div:nth-child(2) { flex: 1; min-width: 180px; }
.tdlq-pass-panel h4 { color: #765315; font-size: 14px; margin: 0 0 3px; }
.tdlq-pass-panel p { color: #88744a; font-size: 11px; margin: 0; }
.tdlq-btn-gold { background: linear-gradient(110deg, #b98522, #d7b34f); box-shadow: 0 5px 13px rgba(177, 132, 39, .18); color: #fff; }
.tdlq-btn-gold:hover { background: linear-gradient(110deg, #a97619, #c8a13b); color: #fff; }
.tdlq-fail-panel { background: #fff4f4; border: 1px solid #f3dddd; border-radius: 12px; margin-top: 17px; padding: 15px 17px; }
.tdlq-fail-panel h4 { color: #a23b47; font-size: 13px; margin: 0 0 4px; }
.tdlq-fail-panel p { color: #7c6267; font-size: 11px; margin: 0; }
.tdlq-result-actions { display: flex; justify-content: center; margin-top: 20px; }
.tdlq-footer { align-items: flex-start; background: #fbfcfd; border-top: 1px solid var(--td-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 17px 30px 19px; }
.tdlq-footer-brand { align-items: center; color: #697487; display: inline-flex; flex: 0 0 auto; font-size: 10px; gap: 8px; }
.tdlq-footer-brand strong { color: #3d485a; }
.tdlq-footer-mark { align-items: center; background: var(--td-teal); border-radius: 7px; color: #fff; display: inline-flex; font-size: 9px; font-weight: 900; height: 25px; justify-content: center; width: 25px; }
.tdlq-disclaimer { color: #9099a7; flex: 1 1 450px; font-size: 9px; line-height: 1.6; margin: 0; max-width: 760px; }
.tdlq-disclaimer strong { color: #6e7888; }
.tdlq-confetti { inset: 0; overflow: hidden; pointer-events: none; position: absolute; z-index: 20; }
.tdlq { position: relative; }
.tdlq-confetti-piece { animation: tdlq-confetti-fall 2.8s ease-out forwards; border-radius: 2px; height: 9px; position: absolute; top: -15px; width: 6px; }
@keyframes tdlq-confetti-fall { 0% { opacity: 1; transform: translate3d(0,-10px,0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--td-x), 650px, 0) rotate(var(--td-rot)); } }
.tdlq-toast { background: #202a3c; border-radius: 9px; bottom: 18px; color: #fff; font-size: 12px; left: 50%; opacity: 0; padding: 10px 15px; pointer-events: none; position: absolute; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; z-index: 30; }
.tdlq-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .tdlq { margin: 12px auto; }
  .tdlq-shell { border-radius: 15px; }
  .tdlq-header { padding: 15px 17px; }
  .tdlq-header-pill { display: none; }
  .tdlq-header h2 { font-size: 19px; }
  .tdlq-main { min-height: 0; padding: 22px 18px; }
  .tdlq-intro { grid-template-columns: 1fr; gap: 22px; }
  .tdlq-intro-copy { padding: 7px 0 0; }
  .tdlq-intro-copy h3 { font-size: 35px; }
  .tdlq-intro-art { min-height: 340px; }
  .tdlq-big-tux { height: 170px; width: 170px; }
  .tdlq-big-tux svg { height: 142px; width: 126px; }
  .tdlq-orbit { height: 240px; width: 240px; }
  .tdlq-orbit-two { height: 300px; width: 300px; }
  .tdlq-quiz-meta { align-items: flex-start; gap: 13px; }
  .tdlq-timer { min-width: 91px; padding: 7px 9px; }
  .tdlq-progress-count { display: none; }
  .tdlq-options { grid-template-columns: 1fr; }
  .tdlq-option { min-height: 58px; }
  .tdlq-score-grid { grid-template-columns: 1fr 1fr; }
  .tdlq-score-total { grid-column: 1 / -1; }
  .tdlq-footer { padding: 15px 18px; }
}
@media (max-width: 480px) {
  .tdlq-brand { gap: 10px; }
  .tdlq-mascot { flex-basis: 47px; height: 47px; width: 47px; }
  .tdlq-mascot svg { height: 41px; width: 37px; }
  .tdlq-eyebrow { font-size: 8px; }
  .tdlq-header h2 { font-size: 17px; }
  .tdlq-tagline { font-size: 10px; }
  .tdlq-feature-row { gap: 7px 13px; }
  .tdlq-feature-row span { font-size: 10px; }
  .tdlq-quiz-meta { flex-direction: column-reverse; }
  .tdlq-progress-wrap { width: 100%; }
  .tdlq-timer { align-self: flex-end; }
  .tdlq-continue { align-items: stretch; }
  .tdlq-continue-actions { width: 100%; }
  .tdlq-continue-actions .tdlq-btn { flex: 1 1 130px; }
  .tdlq-pass-panel { align-items: flex-start; }
  .tdlq-pass-panel .tdlq-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tdlq *, .tdlq *::before, .tdlq *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
