.ttd-section{
  padding:34px 0 92px;
  position:relative;
  overflow:hidden;
}
.ttd-section::before{
  content:"";
  position:absolute;
  inset:5% -15% auto;
  height:72%;
  pointer-events:none;
  background:radial-gradient(circle at 50% 45%,rgba(0,229,190,.10),transparent 58%);
  filter:blur(20px);
}
.ttd-shell{
  position:relative;
  padding:clamp(22px,4vw,48px);
  border:1px solid rgba(255,255,255,.11);
  border-radius:34px;
  background:
    linear-gradient(145deg,rgba(10,18,28,.97),rgba(4,8,16,.98)),
    #071019;
  box-shadow:0 34px 90px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.045);
  overflow:hidden;
}
.ttd-shell::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-260px;
  top:-300px;
  border:1px solid rgba(0,229,190,.13);
  border-radius:50%;
  box-shadow:0 0 0 70px rgba(0,229,190,.022),0 0 0 150px rgba(0,229,190,.014);
  pointer-events:none;
}
.ttd-heading{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.58fr);
  gap:32px;
  align-items:end;
  margin-bottom:34px;
}
.ttd-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:#67f5df;
  font:800 11px/1 'Inter',sans-serif;
  letter-spacing:.2em;
  text-transform:uppercase;
}
.ttd-kicker::before{content:"";width:34px;height:2px;background:#67f5df;box-shadow:0 0 14px rgba(103,245,223,.65)}
.ttd-heading h2{
  margin:0;
  max-width:720px;
  color:#f7fbff;
  font:700 clamp(39px,5.5vw,76px)/.94 'Space Grotesk',sans-serif;
  letter-spacing:-.055em;
}
.ttd-heading h2 span{color:#f3c76b}
.ttd-intro{
  margin:0;
  color:rgba(234,242,249,.67);
  font:400 15px/1.7 'Inter',sans-serif;
}
.ttd-game{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(330px,.75fr);
  gap:22px;
}
.ttd-stage-card,.ttd-decision-panel{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.028);
  border-radius:26px;
}
.ttd-stage-card{padding:18px;min-width:0}
.ttd-stage-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:2px 2px 15px;
}
.ttd-phase{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border-radius:999px;
  color:#67f5df;
  background:rgba(0,229,190,.08);
  border:1px solid rgba(0,229,190,.18);
  font:800 10px/1 'Inter',sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.ttd-counter{color:rgba(255,255,255,.52);font:800 11px/1 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase}
.ttd-perspective{perspective:1100px;padding:8px 8px 20px}
.ttd-pitch{
  position:relative;
  aspect-ratio:16/9;
  min-height:350px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.19);
  border-radius:22px;
  background:#0f493b;
  transform:rotateX(7deg);
  transform-origin:center bottom;
  box-shadow:0 28px 35px rgba(0,0,0,.34),inset 0 0 60px rgba(2,15,18,.28);
  transition:border-color .25s,box-shadow .25s;
}
.ttd-game.is-correct .ttd-pitch{border-color:rgba(57,229,146,.55);box-shadow:0 28px 42px rgba(0,0,0,.35),0 0 0 4px rgba(57,229,146,.08),inset 0 0 70px rgba(13,90,60,.26)}
.ttd-game.is-incorrect .ttd-pitch{border-color:rgba(255,83,99,.58);box-shadow:0 28px 42px rgba(0,0,0,.35),0 0 0 4px rgba(255,83,99,.08),inset 0 0 70px rgba(120,18,36,.24)}
.ttd-pitch svg{display:block;width:100%;height:100%}
.ttd-grass-a{fill:#124c3d}.ttd-grass-b{fill:#105044}
.ttd-lines{fill:none;stroke:rgba(255,255,255,.58);stroke-width:2.3;vector-effect:non-scaling-stroke}
.ttd-zone{fill:rgba(244,199,107,.10);stroke:rgba(244,199,107,.54);stroke-width:2;stroke-dasharray:9 8;opacity:0;transition:opacity .3s}
.ttd-pitch.show-zone .ttd-zone{opacity:1}
.ttd-route{fill:none;stroke:#f3c76b;stroke-width:7;stroke-linecap:round;stroke-dasharray:13 11;filter:drop-shadow(0 0 6px rgba(243,199,107,.58));opacity:0;vector-effect:non-scaling-stroke}
.ttd-route.run{opacity:1;animation:ttd-route .9s linear both}
@keyframes ttd-route{from{stroke-dashoffset:90}to{stroke-dashoffset:0}}
.ttd-player circle{stroke:#eefcff;stroke-width:3;filter:drop-shadow(0 6px 6px rgba(0,0,0,.34))}
.ttd-player text{font:800 17px 'Inter',sans-serif;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.ttd-player.home circle{fill:#52ead3}.ttd-player.home text{fill:#04251f}
.ttd-player.away circle{fill:#ff596a}.ttd-player.away text{fill:#fff}
.ttd-player.keeper circle{fill:#f3c76b}.ttd-player.keeper text{fill:#231b06}
.ttd-player.focus circle{stroke:#f3c76b;stroke-width:5;animation:ttd-pulse 1.7s ease-in-out infinite}
@keyframes ttd-pulse{50%{filter:drop-shadow(0 0 13px rgba(243,199,107,.9))}}
.ttd-ball{fill:#fff;stroke:#071016;stroke-width:3;filter:drop-shadow(0 4px 5px rgba(0,0,0,.38))}
.ttd-body-line{stroke:#f3c76b;stroke-width:5;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(243,199,107,.5))}
.ttd-legend{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  padding:8px 5px 0;
  color:rgba(255,255,255,.55);
  font:600 11px/1.3 'Inter',sans-serif;
}
.ttd-legend span{display:inline-flex;align-items:center;gap:7px}
.ttd-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
.ttd-legend .me{background:#52ead3}.ttd-legend .rival{background:#ff596a}.ttd-legend .body{background:#f3c76b;border-radius:2px;width:13px;height:3px}
.ttd-decision-panel{padding:clamp(20px,2.6vw,30px);display:flex;flex-direction:column;min-width:0}
.ttd-focus{color:#f3c76b;font:800 10px/1 'Inter',sans-serif;letter-spacing:.17em;text-transform:uppercase;margin-bottom:11px}
.ttd-title{margin:0;color:#f8fbff;font:700 clamp(25px,2.6vw,36px)/1.02 'Space Grotesk',sans-serif;letter-spacing:-.035em}
.ttd-question{margin:13px 0 8px;color:rgba(242,247,251,.76);font:400 14px/1.55 'Inter',sans-serif}
.ttd-cue{
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin:8px 0 19px;
  padding:11px 12px;
  border-radius:13px;
  background:rgba(243,199,107,.06);
  border:1px solid rgba(243,199,107,.13);
  color:rgba(244,229,194,.75);
  font:500 11.5px/1.45 'Inter',sans-serif;
}
.ttd-cue i{color:#f3c76b;margin-top:2px}
.ttd-options{display:grid;gap:10px}
.ttd-option{
  position:relative;
  display:grid;
  grid-template-columns:30px 1fr 22px;
  gap:10px;
  align-items:center;
  width:100%;
  min-height:58px;
  padding:11px 13px;
  text-align:left;
  color:rgba(246,250,253,.86);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.025);
  cursor:pointer;
  transition:transform .2s,border-color .2s,background .2s,color .2s;
}
.ttd-option:hover,.ttd-option:focus-visible{transform:translateX(4px);border-color:rgba(103,245,223,.38);background:rgba(103,245,223,.055);outline:none}
.ttd-option:disabled{cursor:default}
.ttd-option-key{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.07);color:#f3c76b;font:800 12px 'Inter',sans-serif}
.ttd-option-label{font:700 13px/1.35 'Inter',sans-serif}
.ttd-option-icon{font-size:16px;color:rgba(255,255,255,.25)}
.ttd-option.selected.correct{border-color:rgba(57,229,146,.55);background:rgba(57,229,146,.10);color:#dffff0}
.ttd-option.selected.incorrect{border-color:rgba(255,83,99,.56);background:rgba(255,83,99,.10);color:#ffe4e7}
.ttd-option.selected.correct .ttd-option-icon{color:#39e592}
.ttd-option.selected.incorrect .ttd-option-icon{color:#ff5363}
.ttd-feedback{
  display:none;
  margin-top:18px;
  padding:17px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(3,7,13,.52);
  animation:ttd-feedback .35s ease both;
}
.ttd-feedback.show{display:block}
@keyframes ttd-feedback{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ttd-feedback-head{display:flex;gap:10px;align-items:center;margin-bottom:9px}
.ttd-feedback-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:15px}
.ttd-game.is-correct .ttd-feedback-mark{background:rgba(57,229,146,.16);color:#39e592;border:1px solid rgba(57,229,146,.35)}
.ttd-game.is-incorrect .ttd-feedback-mark{background:rgba(255,83,99,.16);color:#ff5363;border:1px solid rgba(255,83,99,.35)}
.ttd-feedback-head b{color:#f7fbff;font:800 14px/1.2 'Inter',sans-serif}
.ttd-feedback p{margin:0;color:rgba(238,244,249,.68);font:400 12.5px/1.58 'Inter',sans-serif}
.ttd-feedback .ttd-happens{margin-top:9px;padding-top:9px;border-top:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.82)}
.ttd-actions{display:flex;gap:9px;align-items:center;margin-top:auto;padding-top:18px}
.ttd-action{
  min-height:42px;
  padding:0 15px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.72);
  font:800 11px 'Inter',sans-serif;
  cursor:pointer;
}
.ttd-action:hover{border-color:rgba(103,245,223,.35);color:#fff}
.ttd-action.primary{margin-left:auto;background:#f3c76b;border-color:#f3c76b;color:#161103}
.ttd-action.primary:disabled{opacity:.36;cursor:not-allowed}
.ttd-dots{display:flex;gap:7px;align-items:center}
.ttd-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.17);cursor:pointer;transition:width .2s,background .2s}
.ttd-dot.active{width:25px;border-radius:99px;background:#67f5df}
.ttd-complete{
  display:none;
  position:fixed;
  inset:0;
  z-index:1300;
  place-items:center;
  padding:26px;
  border-radius:0;
  background:rgba(4,9,16,.94);
  backdrop-filter:blur(12px);
}
.ttd-complete.show{display:grid}
.ttd-complete-card{text-align:center;max-width:520px}
.ttd-complete-icon{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 20px;border-radius:22px;color:#041b15;background:#67f5df;font-size:28px;box-shadow:0 0 0 10px rgba(103,245,223,.08)}
.ttd-complete h3{margin:0 0 10px;color:#fff;font:700 36px/1 'Space Grotesk',sans-serif;letter-spacing:-.04em}
.ttd-complete p{margin:0 0 20px;color:rgba(240,246,250,.67);font:400 14px/1.65 'Inter',sans-serif}
.ttd-score{display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;padding:9px 13px;border-radius:999px;background:rgba(243,199,107,.09);border:1px solid rgba(243,199,107,.2);color:#f3c76b;font:800 12px 'Inter',sans-serif}
.ttd-restart{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:0;border-radius:13px;background:#f3c76b;color:#171104;font:800 12px 'Inter',sans-serif;cursor:pointer}
@media(max-width:980px){
  .ttd-heading{grid-template-columns:1fr;gap:15px}
  .ttd-intro{max-width:700px}
  .ttd-game{grid-template-columns:1fr}
  .ttd-decision-panel{min-height:0}
  .ttd-pitch{min-height:320px}
}
@media(max-width:640px){
  .ttd-section{padding:18px 0 66px}
  .ttd-shell{margin:0 -10px;padding:24px 14px;border-radius:27px}
  .ttd-heading{padding:0 6px;margin-bottom:22px}
  .ttd-heading h2{font-size:42px}
  .ttd-stage-card{padding:10px;border-radius:21px}
  .ttd-stage-top{padding:4px 4px 10px}
  .ttd-perspective{padding:2px 1px 10px;perspective:none}
  .ttd-pitch{min-height:0;aspect-ratio:4/3;border-radius:17px;transform:none}
  .ttd-decision-panel{padding:20px 15px;border-radius:21px}
  .ttd-title{font-size:27px}
  .ttd-question{font-size:13.5px}
  .ttd-option{min-height:56px}
  .ttd-actions{flex-wrap:wrap}
  .ttd-action.primary{margin-left:0;flex:1}
  .ttd-dots{width:100%;order:-1;margin-bottom:6px}
}
@media(prefers-reduced-motion:reduce){
  .ttd-pitch,.ttd-option,.ttd-feedback{transition:none;animation:none}
  .ttd-player.focus circle,.ttd-route.run{animation:none}
}
