.interactive-page{--ink:#305963;--teal:#218979;--blue:#2c87d0;max-width:1536px;margin:auto;padding:44px 32px 100px;color:var(--ink);font-family:system-ui,sans-serif}html{color-scheme:light;background:#f4f7ff}body:has(.interactive-page){background:#fffcf5}.interactive-page *{box-sizing:border-box}.interactive-page [hidden]{display:none!important}.intro{margin-bottom:36px}.eyebrow{font-size:13px;font-weight:800;letter-spacing:2px;color:#218979}.intro h1{font-size:clamp(32px,4vw,56px);margin:10px 0}.intro p{font-size:20px;line-height:1.6}.intro-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.intro-tags span,.pill{padding:12px 18px;background:#eaf2e5;border-radius:30px;font-weight:700}.topic-label{display:block;font-weight:700;margin-bottom:8px}#topic{width:min(100%,620px);padding:18px;font:700 18px system-ui;border:2px solid #dce5dd;border-radius:14px;background:white;color:var(--ink)}.topic-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0}.topic-heading h2{font-size:clamp(25px,3vw,38px);margin:0 0 10px}.topic-heading p{font-size:18px}.pill{background:#eee8fb;color:#7160a2;white-space:nowrap}.exercise-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.exercise-card{border:2px solid #e4e9df;box-shadow:0 6px 0 #e6e9df;border-radius:26px;background:#fff;padding:16px;display:flex;flex-direction:column;overflow:hidden}.preview{height:230px;border-radius:19px;background:var(--blue);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;position:relative;overflow:hidden;text-align:center;pointer-events:none}.preview:before,.preview:after{content:'';position:absolute;width:150px;height:150px;background:#ffffff14;border-radius:100%;right:-20px;top:-30px}.preview:after{right:auto;top:auto;left:-60px;bottom:-80px;width:210px;height:210px}.preview-title{font-size:23px;font-weight:800}.preview .tiles{display:flex;gap:8px}.preview .tiles span{background:#fff;color:#285c7f;border-radius:9px;padding:8px 13px;box-shadow:0 4px 0 #1f6597;font-size:26px;font-weight:800}.preview .sample{background:#edf8fb;color:#335c67;padding:12px 20px;border-radius:24px;font-weight:800;font-size:20px}.preview .wheel-mini{width:140px;height:140px;border:6px solid #fff0a4;border-radius:50%;background:conic-gradient(#ffe15a 0deg 90deg,#ab4dd0 90deg 180deg,#f15bb5 180deg 270deg,#48aec9 270deg)}.card-copy{padding:22px 12px 8px;display:flex;flex:1;flex-direction:column}.card-copy small{font-weight:700;color:#71858b}.card-copy h3{font-size:clamp(23px,2vw,31px);margin:16px 0}.card-copy p{font-size:18px;line-height:1.65;margin:0 0 20px;flex:1}.card-meta{display:flex;justify-content:space-between;border-top:1px dashed #dde4df;padding:16px 0;color:#71858b;font-weight:700}.interactive-page button{border:0;background:var(--teal);color:white;font:800 22px system-ui;border-radius:16px;padding:18px 25px;min-height:64px;cursor:pointer;touch-action:manipulation;box-shadow:0 5px 0 #166659}.interactive-page button:hover{filter:brightness(1.06)}.interactive-page button:focus-visible,#topic:focus-visible{outline:4px solid #f5b942;outline-offset:4px}.interactive-page button:disabled{cursor:default;opacity:.72}.catalog-note{margin-top:30px;color:#71858b}.player{background:#fffcf5;border:2px solid #e4e9df;border-radius:26px;padding:26px;min-height:700px}.player:fullscreen,.player[data-fullscreen-preparing="true"]{background-color:#f4f9ff;color-scheme:light}.player:fullscreen{overflow-y:auto;border:0;border-radius:0;min-height:100vh;padding:32px 6vw}.player-toolbar{display:flex;gap:18px;align-items:center;justify-content:space-between}.player-toolbar strong{font-size:24px;text-align:center}.interactive-page .soft{background:#e8efec;color:var(--ink);box-shadow:none;font-size:18px}.game-status{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:22px;font-weight:800;margin:28px 0 16px}.progress-track{height:10px;background:#e3ebe6;border-radius:10px;overflow:hidden}#progress{height:100%;background:var(--teal);transition:width .2s}.stage{max-width:1250px;margin:28px auto;text-align:center}.stage h2{font-size:clamp(30px,4vw,58px);line-height:1.35;margin:24px 0}.stage .hint{font-size:24px;line-height:1.6;color:#6c8086}.answers{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:30px}.interactive-page .answer{background:#fff;color:var(--ink);border:3px solid #d5e3e1;box-shadow:0 5px 0 #d5e3e1;font-size:clamp(24px,2.5vw,38px);min-height:110px}.interactive-page .answer.correct{background:#d4f5da;border-color:#278650}.interactive-page .answer.wrong{background:#ffe0de;border-color:#c54c49}.letter-bank,.word-slots{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin:25px 0}.interactive-page .letter{min-width:76px;font-size:36px;padding:14px;background:#fff;color:var(--ink);border:2px solid #cbdedb;box-shadow:0 5px 0 #cbdedb}.word-slots span{min-width:65px;border-bottom:4px solid #8ea9af;font-size:42px;padding:12px;font-weight:800}.player-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}#feedback{text-align:center;font-size:clamp(22px,2.5vw,32px);font-weight:800;min-height:64px;margin:16px 0;line-height:1.5}.teams{display:flex;justify-content:center;gap:20px}.teams span{background:#eaf2fa;border:3px solid transparent;border-radius:16px;padding:15px 28px}.teams .active{border-color:var(--teal)}.timer{color:#a25817}.timer.paused{color:#64748b}.wheel-wrap{position:relative;width:240px;margin:20px auto}.wheel-wrap:before{content:'▼';position:absolute;top:-25px;left:calc(50% - 17px);color:#305963;font-size:36px;z-index:2}.wheel{height:240px;border:9px solid #ffeaaa;border-radius:50%;background:conic-gradient(#ffe15a 0deg 45deg,#ab4dd0 45deg 90deg,#f15bb5 90deg 135deg,#48aec9 135deg 180deg,#ffe15a 180deg 225deg,#ab4dd0 225deg 270deg,#f15bb5 270deg 315deg,#48aec9 315deg);transition:transform 1.3s cubic-bezier(.12,.75,.15,1)}.result-number{font-size:80px;font-weight:900;color:var(--teal)}.review{max-width:900px;margin:30px auto;text-align:left}.review li{padding:16px;border-bottom:1px solid #dce5df;font-size:20px;line-height:1.6}.confirmation{background:#fff2cf;border-radius:18px;padding:22px;margin:24px 0}.interactive-page .danger{background:#b44742;box-shadow:0 5px 0 #8c332f}@media(min-width:1800px){.player:fullscreen .stage h2{font-size:72px}.player:fullscreen .answer{font-size:44px;min-height:140px}}@media(max-width:1050px){.exercise-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.interactive-page{padding:24px 14px 100px}.exercise-grid,.answers{grid-template-columns:1fr}.topic-heading{align-items:flex-start;flex-direction:column}.player{padding:16px}.player-toolbar{flex-wrap:wrap}.player-toolbar strong{order:-1;width:100%}.interactive-page button{font-size:20px}.teams span{padding:12px}.word-slots span{min-width:38px;font-size:30px}.interactive-page .letter{min-width:56px;font-size:28px}.preview{height:210px}}@media(prefers-reduced-motion:reduce){.wheel,#progress{transition:none}}

/* Classroom design: each activity has its own colour and decorative scene. */
.interactive-page {
  --ink: #243d59;
  --teal: #3269bd;
  --accent: #3269bd;
  --accent-dark: #234d91;
  --accent-soft: #eaf2ff;
  --scene: none;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}
body:has(.interactive-page) {
  background: radial-gradient(ellipse at 5% 0%, #e7efff 0, transparent 40%),
              radial-gradient(ellipse at 100% 45%, #efe9ff 0, transparent 35%), #f7f9ff;
}
.interactive-page [data-mode="missing"] {
  --accent:#8052b3; --accent-dark:#5c348d; --accent-soft:#f2ebff;
  --scene:url('/static/images/interactive/missing.svg?v=classroom-effects-5');
}
.interactive-page [data-mode="word"] {
  --accent:#21856a; --accent-dark:#14614d; --accent-soft:#e5f7ef;
  --scene:url('/static/images/interactive/word.svg?v=classroom-effects-5');
}
.interactive-page [data-mode="group"] {
  --accent:#a65b23; --accent-dark:#7d4019; --accent-soft:#fff1df;
  --scene:url('/static/images/interactive/group.svg?v=classroom-effects-5');
}
.interactive-page [data-mode="wheel"] {
  --accent:#af4778; --accent-dark:#823254; --accent-soft:#ffebf3;
  --scene:url('/static/images/interactive/wheel-festive.svg?v=wheel-festive-2');
}
.intro {
  padding:36px 40px;
  border:1px solid #ffffff;
  border-radius:30px;
  background:radial-gradient(circle at 95% 5%, #d9e8ff 0, transparent 38%),
             linear-gradient(120deg, #ffffff 20%, #f1edff);
  box-shadow:0 16px 50px #2b4b8210;
}
.intro h1 {font-weight:900;letter-spacing:-1.8px;line-height:1.18;color:#243d59;max-width:1000px}
.intro p {color:#516582;max-width:850px}
.eyebrow {color:#406caf;letter-spacing:2.2px}
.intro-tags span {background:#ffffffc9;border:1px solid #e2e8f5;color:#455e7c;font-size:15px}
.topic-heading {padding:6px 4px}
.topic-heading h2 {font-weight:850;letter-spacing:-.8px}
.topic-heading p {color:#526580;line-height:1.6}
.pill {background:#eae7fc;color:#5c4798;border:1px solid #dcd5f6}
.exercise-card {border:1px solid #dce4f0;border-radius:28px;padding:13px;box-shadow:0 8px 0 #dfe5ef,0 18px 40px #20375808}
.preview {
  height:240px;border-radius:20px;padding:24px 14px;
  background-image:var(--scene),radial-gradient(circle at 90% 5%, #ffffff20, transparent 55%),
                   linear-gradient(145deg,var(--accent),var(--accent-dark));
  background-size:cover;background-position:center;
  border:1px solid #ffffff35;
}
.preview:before {width:150px;height:150px;right:-35px;top:-65px;border:22px solid #ffffff12;background:transparent}
.preview:after {width:180px;height:180px;left:-70px;bottom:-100px;border:26px solid #ffffff10;background:transparent}
.preview-title {font-size:30px;letter-spacing:1px;line-height:1.4;position:relative;z-index:1}
.preview .tiles {gap:9px;position:relative;z-index:1;max-width:100%;flex-wrap:wrap;justify-content:center}
.preview .tiles span {color:var(--accent-dark);background:#ffffff;border:1px solid #ffffffaa;border-radius:12px;font-size:26px;padding:10px 13px;box-shadow:0 5px 0 #00000020;line-height:1.5}
.preview .sample {color:var(--accent-dark);background:#ffffffef;box-shadow:0 5px 20px #00000012;border-radius:18px;line-height:1.5;position:relative;z-index:1}
.preview .wheel-mini {box-shadow:0 10px 30px #00000025;position:relative;z-index:1}
.card-copy {padding:23px 15px 12px}
.card-copy small {color:var(--accent-dark);background:var(--accent-soft);border-radius:9px;padding:6px 10px;align-self:flex-start;font-size:13px;letter-spacing:.2px}
.card-copy h3 {font-weight:900;letter-spacing:-.7px;color:#243d59;line-height:1.25;margin:18px 0 14px}
.card-copy p {color:#526580;font-weight:500;font-size:17px;line-height:1.7}
.card-meta {font-size:14px;color:#536984;border-color:#dfe6ee;margin-top:2px}
.interactive-page button {font-family:inherit;background:linear-gradient(135deg,var(--accent),var(--accent-dark));box-shadow:0 5px 0 var(--accent-dark);letter-spacing:.1px;transition:filter .15s,transform .15s}
.interactive-page button:active:not(:disabled) {transform:translateY(2px)}
.interactive-page .soft {background:#ffffffda;border:1px solid #dbe4ee;box-shadow:0 3px 0 #dbe4ee;color:#334d6b}
.player {
  background-color:var(--accent-soft);
  background-image:var(--scene),radial-gradient(ellipse at 50% 40%,#ffffffee 0%,#ffffffa8 45%,transparent 85%);
  background-size:cover;background-position:center;
  border:1px solid #dae3ef;border-radius:30px;
  box-shadow:0 20px 60px #243d5912;padding:30px;
}
.player-toolbar {padding-bottom:22px;border-bottom:1px solid #ffffff}
.player-toolbar strong {font-weight:900;font-size:clamp(22px,2vw,32px);color:var(--accent-dark);letter-spacing:-.6px}
.game-status {font-size:20px;color:#344f70;align-items:center;font-variant-numeric:tabular-nums}
.game-status>span:first-child {background:#ffffffd9;border:1px solid #dce5ef;border-radius:12px;padding:12px 20px}
.progress-track {background:#ffffffcc;height:12px;box-shadow:inset 0 1px 4px #29405e10}
#progress {background:linear-gradient(90deg,var(--accent),var(--accent-dark));border-radius:12px}
.stage .hint {font-size:clamp(18px,1.7vw,25px);font-weight:650;color:#4b607b;line-height:1.65}
.stage h2 {
  background:#ffffffeb;border:1px solid #ffffff;border-radius:24px;
  padding:30px 36px;box-shadow:0 10px 30px #22385608;
  font-weight:900;letter-spacing:-.6px;color:#223b58;line-height:1.4;
  overflow-wrap:anywhere;
}
.answers {counter-reset:answers;gap:22px}
.interactive-page .answer {
  counter-increment:answers;position:relative;display:flex;align-items:center;justify-content:center;
  background:#ffffff;color:#243d59;border:2px solid #d5dfed;
  box-shadow:0 6px 0 #ced9e7,0 8px 20px #233b5706;
  border-radius:20px;font-weight:800;padding:24px 24px 24px 85px;
  min-height:120px;line-height:1.4;overflow-wrap:anywhere;
}
.answer:before {
  content:counter(answers,upper-alpha);position:absolute;left:20px;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:13px;display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent-dark);font-size:23px;font-weight:900;
}
.interactive-page .answer:disabled {opacity:1}
.interactive-page .answer.correct {background:#e1f6e7;color:#175532;border-color:#429967;box-shadow:0 6px 0 #348452}
.interactive-page .answer.wrong {background:#fff0ef;color:#873a35;border-color:#d87a74;box-shadow:0 6px 0 #b8635d}
.answer.correct:before {content:'✓';background:#278552;color:white}
.answer.wrong:before {content:'✗';background:#b9554e;color:white}
.interactive-page .letter {background:#fff;color:var(--accent-dark);font-weight:900;border-color:#d4dfeb;border-radius:16px;box-shadow:0 5px 0 #bfcede}
.word-slots span {background:#ffffffd9;border-radius:14px 14px 4px 4px;border-color:var(--accent);color:var(--accent-dark);font-weight:900;min-width:70px}
#feedback {color:#334d6b;border-radius:18px;padding:12px 20px}
#feedback[data-state="correct"] {background:#e1f6e7;border:1px solid #a7dabb;color:#175532}
#feedback[data-state="wrong"] {background:#fff0ef;border:1px solid #e9b9b5;color:#873a35}
.teams {gap:16px;flex-wrap:wrap}
.teams span {background:#ffffffd9;box-shadow:0 4px 12px #22385608;color:#3d5679;font-variant-numeric:tabular-nums;font-size:23px}
.teams span:nth-child(2) {background:#fff5dc;color:#755726}
.teams .active {border-color:var(--accent);box-shadow:0 0 0 3px #ffffff}
.timer {background:#fff3da;border:1px solid #ebd6a7;border-radius:12px;padding:12px 18px;font-weight:900}
.timer.paused {background:#edf1f6;border-color:#d2dce8}
.wheel {box-shadow:0 15px 40px #58397925,inset 0 0 0 4px #ffffff60}
.wheel-wrap:before {color:var(--accent-dark);text-shadow:0 3px 0 white}
.result-number {color:var(--accent-dark);letter-spacing:-3px;font-variant-numeric:tabular-nums}
.stage h3 {font-size:26px;font-weight:850;margin-top:28px;color:#344e6e}
.review {background:#ffffffde;border:1px solid #dce5ef;border-radius:20px;padding:10px 22px 10px 50px;box-shadow:0 10px 30px #22385608}
.review li {color:#3d5573;border-color:#e2e8f0;line-height:1.75;padding:18px 8px}
.review li:last-child {border:0}
.catalog-note {color:#536984;font-size:15px;line-height:1.6}
@media(min-width:1800px) {
  .player:fullscreen {padding:34px 6vw}
  .player:fullscreen .stage {max-width:1450px}
  .player:fullscreen .stage h2 {font-size:68px;padding:40px 50px}
  .player:fullscreen .answer {min-height:140px;font-size:44px}
}
@media(max-width:650px) {
  .intro {padding:26px 22px;border-radius:23px}
  .intro h1 {letter-spacing:-1px}
  .intro-tags span {font-size:13px;padding:10px 13px}
  .player {padding:18px;background-size:auto 100%}
  .player-toolbar {gap:14px;padding-bottom:18px}
  .stage h2 {padding:22px 18px;font-size:30px;border-radius:18px}
  .interactive-page .answer {min-height:90px;font-size:25px;padding:20px 18px 20px 70px}
  .answer:before {left:14px;width:38px;height:38px;font-size:20px}
  .word-slots {gap:8px}
  .word-slots span {min-width:40px;font-size:30px;padding:10px 6px}
  .game-status {font-size:17px}
  .game-status>span:first-child {padding:10px 14px}
  .teams span {font-size:19px;padding:12px 16px}
  .review {padding:8px 14px 8px 38px}
  .review li {font-size:18px}
}
@media(prefers-reduced-motion:reduce) {
  .interactive-page button {transition:none}
}

/* A framed activity board, with compact controls and floating perimeter art. */
.player {
  position:relative;isolation:isolate;overflow:hidden;
  max-width:1320px;margin:26px auto;min-height:600px;
  border:6px solid #ffffff;border-radius:28px;padding:24px 32px;
  outline:1px solid #b9c9df;
  background-image:radial-gradient(ellipse at 50% 42%,#ffffffa8 0%,transparent 70%),
                   linear-gradient(135deg,var(--accent-soft),#ddeaf5);
  box-shadow:0 12px 0 #aabbd3,0 26px 65px #23426330;
}
.player:before,.player:after {
  content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;
}
.player:before {
  background-image:var(--scene);background-position:center;background-size:100% 100%;
  animation:classroom-float 14s ease-in-out infinite alternate;
}
.player:after {
  background-image:radial-gradient(circle at 8% 38%,#ffffffb8 0 4px,transparent 5px),
                   radial-gradient(circle at 93% 42%,#ffffffc9 0 5px,transparent 6px),
                   radial-gradient(circle at 88% 80%,#ffffffb8 0 3px,transparent 4px),
                   radial-gradient(circle at 18% 88%,#ffffffc9 0 4px,transparent 5px);
  animation:classroom-glow 6s ease-in-out infinite alternate;
}

.content-filters{display:grid;gap:14px;margin:0 0 22px}.filter-row{display:flex;align-items:center;gap:18px;min-height:78px;padding:13px 17px;border:1px solid #ded5f1;border-radius:18px;background:#ffffffd9;box-shadow:0 7px 20px rgba(63,48,107,.05)}.filter-row>strong{flex:0 0 125px;color:#655477;font-size:12px;letter-spacing:.5px}.filter-options{display:flex;align-items:center;gap:9px;min-width:0;overflow-x:auto;padding:3px 4px 7px;scrollbar-width:thin}.interactive-page .filter-pill{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:44px;padding:9px 15px;border:1px solid #ded5f1;border-radius:999px;color:#5c4778;background:#faf8ff;box-shadow:none;font-size:14px;font-weight:800;white-space:nowrap}.interactive-page .filter-pill span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:999px;color:#7659a5;background:#eee8fb;font-size:11px}.interactive-page .filter-pill.active{border-color:#6d39ca;color:#fff;background:linear-gradient(135deg,#7c3aed,#6431bb);box-shadow:0 4px 0 #4f239b}.interactive-page .filter-pill.active span{color:#fff;background:#ffffff2b}.content-filters+.exercise-grid .load-message{grid-column:1/-1;width:100%;margin:0;padding:36px;border:1px solid #e1e5ee;border-radius:18px;background:#ffffffc7;text-align:center}
.interactive-access{display:flex;align-items:center;justify-content:center;min-height:52px;margin:0 0 14px;padding:11px 18px;border:1px solid #c9d9ee;border-radius:16px;color:#34516f;background:#f6faff;font-size:15px;font-weight:800;text-align:center;box-shadow:0 5px 16px #35577b0b}.interactive-access.is-pro{border-color:#d8c48c;color:#765819;background:#fff9e6}.interactive-access.is-limit{border-color:#e7b4b0;color:#8a3c38;background:#fff1f0}.interactive-access a{color:inherit;font-weight:900;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.filter-row{align-items:flex-start;flex-direction:column;gap:8px;padding:13px}.filter-row>strong{flex-basis:auto}.filter-options{width:100%}}

.round-size-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1;max-width:600px;margin:0;padding:0;border:0}.round-size-options legend{margin-bottom:8px;color:#415975;font-size:14px;font-weight:800;text-align:left}.interactive-page .round-size-options button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:67px;padding:10px 13px;border:2px solid #dce5f0;border-radius:14px;color:#405772;background:#fff;box-shadow:0 3px 0 #dce5f0;font-size:15px}.interactive-page .round-size-options button b{font-size:18px}.interactive-page .round-size-options button small{font-size:11px;font-weight:700}.interactive-page .round-size-options button.active{border-color:var(--accent);color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent-dark));box-shadow:0 4px 0 var(--accent-dark)}.interactive-page .round-size-options button:focus-visible{outline:3px solid #f5b942;outline-offset:3px}
.round-size-options.wordsearch-only{grid-template-columns:minmax(260px,390px);justify-content:center;max-width:430px}.round-size-options.wordsearch-only legend{text-align:center}.interactive-page .round-size-options.wordsearch-only button{min-height:82px}
.round-access-message{margin:14px auto 10px;color:#49627e;font-size:14px;font-weight:850}.round-access-message.is-limit{padding:10px 14px;border:1px solid #e7b4b0;border-radius:12px;color:#8a3c38;background:#fff1f0}
@media(max-width:650px){.round-size-options{grid-template-columns:1fr;max-width:none}.interactive-page .round-size-options button{min-height:55px;flex-direction:row;justify-content:space-between;padding:10px 16px}.interactive-page .round-size-options button small{font-size:12px}}

/* Game scenes are selected automatically for each new round. */
.player[data-theme="clouds"] {
  background-color:#9fdcf6;
  background-image:linear-gradient(#79c6ee,#e9f8ff 72%,#b9dfa6 73%,#8fc578);
  --accent:#277db4;--accent-dark:#175f91;--accent-soft:#e4f6ff;
}
.player[data-theme="clouds"]:after {
  background-image:radial-gradient(ellipse at 8% 22%,#fff 0 6%,transparent 6.5%),radial-gradient(ellipse at 13% 23%,#fff 0 8%,transparent 8.5%),radial-gradient(ellipse at 92% 35%,#fff 0 7%,transparent 7.5%),radial-gradient(ellipse at 85% 34%,#fff 0 9%,transparent 9.5%),radial-gradient(circle at 20% 14%,#fff8c2 0 3%,transparent 3.4%);
  animation:cloud-drift 12s ease-in-out infinite alternate;
}
.player[data-theme="gameshow"] {
  background-color:#251b4e;
  background-image:radial-gradient(ellipse at 50% -15%,#aa57d2 0,transparent 42%),radial-gradient(circle at 5% 55%,#e33f8b55 0,transparent 28%),radial-gradient(circle at 95% 65%,#3e90e755 0,transparent 28%),linear-gradient(155deg,#241846,#111832);
  --accent:#d9368c;--accent-dark:#a21e65;--accent-soft:#ffe7f5;color:#fff;
}
.player[data-theme="gameshow"]:before {filter:saturate(1.4) brightness(1.12);opacity:.72}
.player[data-theme="gameshow"] .board-caption>span,.player[data-theme="gameshow"] .keyboard-help {color:#fff}
.player[data-theme="gameshow"] .stage>.hint {color:#f3eaff;text-shadow:0 1px 3px #0008}
.player[data-theme="gameshow"] .progress-track {background:#ffffff38}
.player[data-theme="gameshow"] .answer {color:#fff;border-color:#ffffff55;box-shadow:0 5px 0 #0005,0 10px 24px #0003}
.player[data-theme="gameshow"] .answer:nth-child(1){background:repeating-linear-gradient(135deg,#3975c9 0 16px,#3168b7 16px 32px)}
.player[data-theme="gameshow"] .answer:nth-child(2){background:radial-gradient(circle,#ffffff1f 0 4px,transparent 5px) 0 0/24px 24px,#26915f}
.player[data-theme="gameshow"] .answer:nth-child(3){background:repeating-linear-gradient(45deg,#e6a51f 0 13px,#d89515 13px 26px)}
.player[data-theme="gameshow"] .answer:nth-child(4){background:linear-gradient(135deg,#9852c6 25%,#8543b2 25% 50%,#9852c6 50% 75%,#8543b2 75%)}
.player[data-theme="gameshow"] .answer:before {background:#fff;color:#33205e}
.player[data-theme="gameshow"] .answer.correct {background:#238755}.player[data-theme="gameshow"] .answer.wrong{background:#ad3b3b}
.player[data-theme="gameshow"] .question-trail span {background:#ffffff20;color:#fff;border-color:#ffffff50}
.player[data-theme="gameshow"] .question-trail .done {background:#2d9a64}.player[data-theme="gameshow"] .question-trail .missed {background:#b94c45}
.player[data-theme="gameshow"] .player-toolbar,.player[data-theme="gameshow"] .board-caption button {background:#ffffffed}

.player[data-theme="blackboard"] {
  background-color:#214d42;background-image:radial-gradient(circle at 50% 40%,#386f60 0,transparent 68%),linear-gradient(145deg,#2d6557,#173c34);
  border-color:#d6ae72;outline:5px solid #876037;box-shadow:0 12px 0 #64472d,0 26px 65px #172d2b55;
  --accent:#e4ad45;--accent-dark:#9b671d;--accent-soft:#fff1cc;
}
.player[data-theme="blackboard"]:after {background-image:linear-gradient(12deg,transparent 49.7%,#ffffff09 50%,transparent 50.3%),linear-gradient(-7deg,transparent 49.7%,#ffffff08 50%,transparent 50.3%)}
.player[data-theme="blackboard"] .stage>.hint,.player[data-theme="blackboard"] .board-caption>span,.player[data-theme="blackboard"] .keyboard-help {color:#fff;text-shadow:0 1px 2px #0006}
.player[data-theme="blackboard"] .progress-track {background:#ffffff30}

.player[data-theme="classroom"] {background-image:radial-gradient(ellipse at 50% 42%,#ffffffa8 0,transparent 70%),linear-gradient(135deg,#e8f4ff,#eae4ff)}
@keyframes cloud-drift {from{transform:translateX(-5px)}to{transform:translateX(8px)}}
@media(prefers-reduced-motion:reduce){.player[data-theme="clouds"]:after{animation:none}}
.player[data-mode="missing"],.player[data-mode="wheel"] {
  background-image:radial-gradient(ellipse at 50% 45%,#ffffffa8,transparent 72%),
                   linear-gradient(155deg,#d9effc,var(--accent-soft));
}
.player:fullscreen {
  margin:0;max-width:none;min-height:100vh;border:6px solid #fff;
  border-radius:0;padding:24px 5vw;overflow-y:auto;outline:0;
}
.player-toolbar {padding-bottom:16px;gap:14px}
.player-toolbar strong {font-size:clamp(20px,1.8vw,27px)}
.player button {font-size:19px;min-height:54px;padding:14px 20px;border-radius:13px}
.player .soft {font-size:16px}
.game-status {font-size:18px;margin:20px 0 12px;gap:12px}
.game-status>span:first-child {padding:9px 16px}
.progress-track {height:9px}
.stage {max-width:1060px;margin:20px auto}
.stage .hint {font-size:clamp(17px,1.5vw,21px);margin:12px 0}
.stage h2 {font-size:clamp(28px,3vw,44px);padding:22px 28px;margin:18px 0;border-radius:20px}
.answers {gap:16px;margin-top:22px}
.interactive-page .player .answer {
  font-size:clamp(23px,2.1vw,32px);min-height:88px;padding:18px 20px 18px 70px;
  border-radius:16px;box-shadow:0 5px 0 #ced9e7,0 8px 20px #233b5706;
}
.player .answer:before {width:36px;height:36px;left:17px;font-size:20px;border-radius:10px}
.interactive-page .player .answer.correct {box-shadow:0 5px 0 #348452}
.interactive-page .player .answer.wrong {box-shadow:0 5px 0 #b8635d}
.interactive-page .player .letter {min-width:60px;font-size:29px;min-height:58px;padding:10px 14px;border-radius:13px}
.word-slots span {min-width:56px;font-size:34px;padding:10px;border-bottom-width:3px}
.letter-bank,.word-slots {gap:10px;margin:20px 0}
.player-actions {gap:14px}
#feedback {font-size:clamp(19px,2vw,26px);min-height:48px;margin:14px auto;max-width:1060px;padding:10px 16px}
#feedback:empty {min-height:0;padding:0;margin:14px 0}
.teams span {font-size:20px;padding:10px 20px}
.timer {padding:9px 14px}
.wheel-wrap {width:210px;margin:20px auto}
.wheel {height:210px;border-width:8px}
.result-number {font-size:66px}
.stage h3 {font-size:23px}
.review li {font-size:18px;padding:13px 6px}
@keyframes classroom-float {from{transform:translateY(-5px)}to{transform:translateY(5px)}}
@keyframes classroom-glow {from{opacity:.35}to{opacity:.85}}
@media(min-width:1800px) {
  .player:fullscreen {padding:26px 6vw}
  .player:fullscreen .stage {max-width:1200px}
  .player:fullscreen .stage h2 {font-size:52px;padding:28px 36px}
  .interactive-page .player:fullscreen .answer {min-height:104px;font-size:35px}
}
@media(max-width:650px) {
  .player {padding:16px 14px;border-width:4px;margin:16px auto;min-height:540px;box-shadow:0 8px 0 #aabbd3,0 18px 40px #23426325}
  .player:before {background-size:auto 100%;opacity:.7}
  .player:fullscreen {padding:16px 14px;border-width:4px;margin:0}
  .stage h2 {font-size:27px;padding:18px 16px}
  .interactive-page .player .answer {font-size:23px;min-height:80px;padding:16px 16px 16px 60px}
  .player .answer:before {left:12px;width:32px;height:32px;font-size:18px}
  .interactive-page .player .letter {min-width:48px;font-size:25px;padding:10px;min-height:52px}
  .word-slots span {min-width:36px;font-size:27px;padding:8px 5px}
  .letter-bank,.word-slots {gap:8px}
  .teams span {font-size:18px;padding:9px 14px}
}
@media(prefers-reduced-motion:reduce) {
  .player:before,.player:after {animation:none}
}

.preview {height:220px;gap:15px}
.preview-title {font-size:27px}
.preview .tiles span {font-size:23px;padding:8px 11px}
.preview .sample {font-size:18px;padding:11px 17px}
.preview .wheel-mini {width:125px;height:125px}
.card-copy h3 {font-size:clamp(19px,1.45vw,23px);line-height:1.25;letter-spacing:-.25px}

/* Classroom review: calmer controls, visible pause state and balanced answers. */
.board-caption {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px}
.board-caption>span {font-size:11px;letter-spacing:2px;font-weight:800;color:var(--accent-dark)}
.player .board-caption button {min-height:40px;font-size:13px;padding:8px 12px;box-shadow:none;background:#ffffffa8}
.pause-notice {display:none;background:#fff4d5;border:1px solid #e4c674;color:#70521b;padding:14px 20px;border-radius:14px;text-align:center;font-weight:700}
.player[data-paused="true"] .pause-notice {display:block}
.player[data-paused="true"] .stage {opacity:.32;pointer-events:none;filter:blur(3px)}
.player[data-motion="off"]:before,.player[data-motion="off"]:after {animation:none}
.load-message {grid-column:1/-1;text-align:center;background:#fff;padding:30px;border:1px solid #dce4f0;border-radius:20px;line-height:1.7}
.load-message button {margin-top:15px}
.answers:has(>.answer:nth-child(3):last-child) {grid-template-columns:repeat(3,minmax(0,1fr))}
.answers:has(>.answer:nth-child(3):last-child) .answer {padding:55px 18px 20px;min-height:125px}
.answers:has(>.answer:nth-child(3):last-child) .answer:before {top:13px;left:calc(50% - 18px);transform:none}
.player .stage h2 {text-wrap:balance}
.player-toolbar {background:#ffffffb0;margin:-24px -32px 0;padding:18px 24px;border-bottom:1px solid #ffffff}
.player-heading {display:flex;min-width:0;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center}
.player-heading #game-title {line-height:1.15}
#game-context {max-width:min(720px,70vw);overflow:hidden;color:#5d7087;font-size:13px;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.player:fullscreen .player-toolbar {margin:0;padding:14px 20px;border-radius:18px}
.player:fullscreen #game-context {font-size:14px;color:#526781}
.player .stage {min-width:0}
.exercise-card {transition:transform .18s,box-shadow .18s}
@media(hover:hover){.exercise-card:hover {transform:translateY(-3px);box-shadow:0 10px 0 #dfe5ef,0 20px 40px #20375812}}
@media(max-width:800px){
 .answers:has(>.answer:nth-child(3):last-child) {grid-template-columns:1fr}
 .answers:has(>.answer:nth-child(3):last-child) .answer {padding:16px 18px 16px 68px;min-height:80px}
 .answers:has(>.answer:nth-child(3):last-child) .answer:before {top:50%;left:16px;transform:translateY(-50%)}
}
@media(max-width:650px){
 .player-toolbar {margin:-16px -14px 0;padding:16px 14px}
 .player-heading {order:-1;width:100%}
 #game-context {max-width:92vw;white-space:normal}
 .board-caption {flex-wrap:wrap}
 .board-caption>span {font-size:10px;letter-spacing:1px}
}
@media(prefers-reduced-motion:reduce){.exercise-card{transition:none}}

/* Round setup, play and review share a stable classroom board. */
.player[data-phase="setup"] .game-status,
.player[data-phase="setup"] .progress-track,
.player[data-phase="setup"] .question-trail,
.player[data-phase="setup"] .keyboard-help,
.player[data-phase="setup"] .player-actions,
.player[data-phase="results"] .question-trail,
.player[data-phase="results"] .keyboard-help {display:none}
.setup-card {max-width:760px;margin:10px auto 22px;padding:25px 38px;background:#fffffff0;border:1px solid #fff;border-radius:25px;box-shadow:0 12px 36px #23426310}
.setup-icon {display:inline-grid;place-items:center;min-width:72px;height:72px;padding:0 15px;border-radius:22px;background:var(--accent-soft);color:var(--accent-dark);font-size:30px;font-weight:900;box-shadow:0 5px 0 #233b5710}
.player .setup-card h2 {background:none;box-shadow:none;border:0;margin:6px 0 15px;padding:0;font-size:36px}
.setup-description {font-size:19px;line-height:1.7;color:#526580;max-width:580px;margin:auto}
.round-settings {display:flex;justify-content:center;gap:18px;margin:25px 0;text-align:left;flex-wrap:wrap}
.round-settings label {font-size:14px;font-weight:750;color:#415975;flex:1;max-width:300px}
.round-settings select {display:block;width:100%;min-height:52px;margin-top:8px;padding:12px 14px;border:2px solid #dce5f0;border-radius:12px;background:white;color:#243d59;font-family:inherit;font-weight:700;font-size:17px;cursor:pointer}
.round-settings select:focus-visible,.review-details summary:focus-visible {outline:3px solid var(--accent);outline-offset:4px}
.player #begin-round {min-width:240px;padding:17px 26px;font-size:21px}
.setup-tip {font-size:14px;line-height:1.6;color:#586c84;margin:20px 0 0}
.question-trail {display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:17px 0 8px}
.question-trail span {display:grid;place-items:center;min-width:28px;height:28px;border-radius:9px;border:1px solid #cfdae9;background:#ffffffbf;font-size:12px;font-weight:800;color:#5d708b}
.question-trail .current {background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 0 0 3px #ffffffb8}
.question-trail .done {background:#e2f5e9;color:#256a43;border-color:#a5cfb7}
.question-trail .missed {background:#fff0e4;color:#9c582b;border-color:#dfbd9e}
.game-status small {font-size:12px;letter-spacing:1px;font-weight:700}
.game-status>span:first-child {font-size:25px}
.keyboard-help {text-align:center;font-size:12px;color:#50657f;line-height:1.5;margin:16px 0 12px}
#feedback:not(:empty) {display:flex;align-items:center;gap:16px;text-align:left;padding:16px 22px;max-width:1060px}
.feedback-symbol {display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:50%;background:#ffffffb0;font-size:30px}
#feedback strong {font-size:21px;display:block;line-height:1.4}
#feedback p {font-size:17px;font-weight:500;line-height:1.65;margin:5px 0 0}
.player-actions {padding:4px 0 14px;align-items:center}
.player #next {min-width:240px;font-size:20px}
.player #restart {font-size:14px;min-height:44px;background:#ffffff9c}
.timer.urgent {background:#ffebdf;color:#9e411f;border-color:#e6b49a;box-shadow:0 0 0 3px #ffffff70}
.results-hero {background:#fffffff0;border:1px solid #fff;border-radius:25px;padding:28px 25px;box-shadow:0 12px 36px #23426310}
.player .results-hero h2 {background:none;box-shadow:none;border:0;font-size:34px;padding:0;margin:20px 0}
.result-badge {display:inline-block;background:var(--accent-soft);color:var(--accent-dark);padding:9px 17px;border-radius:22px;font-size:15px;font-weight:800}
.result-stats {display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:24px 0}
.result-stats span {display:flex;flex-direction:column;gap:4px;min-width:115px;background:#f3f6fb;border:1px solid #e0e7f1;border-radius:15px;padding:14px 20px;color:#516681;font-size:14px}
.result-stats b {font-size:28px;color:#2e4967}
.result-stats span:first-child {background:#eaf6ee}
.result-stats span:nth-child(2) {background:#fff2e9}
.result-actions {display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.review-details {margin-top:22px;text-align:left;border:1px solid #d3deec;border-radius:18px;background:#ffffffec;overflow:hidden}
.review-details summary {cursor:pointer;padding:20px 24px;font-size:19px;font-weight:750;color:#344e6e;min-height:60px}
.review-details .review {margin:0;box-shadow:none;border:0;border-radius:0;background:transparent}
.review li p {font-size:15px;color:#586c84;margin:5px 0}
.review-correct strong {color:#256a43}.review-wrong strong {color:#945127}
.player[data-phase="playing"] .stage {animation:question-arrive .22s ease-out}
@keyframes question-arrive {from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){
 .setup-card {padding:22px 18px;margin:8px auto 15px}
 .player .setup-card h2,.player .results-hero h2 {font-size:28px}
 .setup-description {font-size:17px}
 .round-settings {gap:14px;margin:20px 0}
 .round-settings label {flex-basis:100%;max-width:none}
 .question-trail {gap:5px}.question-trail span {min-width:25px;height:25px}
 .keyboard-help {display:none}
 #feedback:not(:empty) {padding:14px;gap:12px}
 #feedback strong {font-size:19px}#feedback p {font-size:16px}
 .feedback-symbol {width:35px;height:35px;font-size:24px}
 .result-stats {gap:8px}.result-stats span {min-width:80px;padding:12px}
 .results-hero {padding:22px 15px}
 .result-actions {flex-direction:column}
 .player #next {min-width:200px}
}
@media(prefers-reduced-motion:reduce){.player[data-phase="playing"] .stage {animation:none}}

.interactive-page [data-mode="sentence"]{--accent:#7c3aed;--accent-dark:#5b21b6;--accent-soft:#f3e8ff;--scene:url('/static/images/interactive/quiz.svg?v=classroom-effects-5')}
.interactive-page [data-mode="matching"]{--accent:#197f9c;--accent-dark:#125d75;--accent-soft:#e7f7fb;--scene:url('/static/images/interactive/group.svg?v=classroom-effects-5')}
.sentence-question{font-size:clamp(24px,3vw,40px)!important;color:#5b6c83}.sentence-slots,.sentence-bank{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;min-height:92px;margin:20px auto;padding:17px;border-radius:18px}.sentence-slots{max-width:1100px;border:2px dashed #b9a7dc;background:#ffffffc9}.sentence-slots em{color:#77869a;font-size:17px}.sentence-slots span{padding:10px 13px;border-radius:10px;color:var(--accent-dark);background:var(--accent-soft);font-size:clamp(18px,2vw,27px);font-weight:850}.sentence-bank{max-width:1150px;background:#ffffff80}.interactive-page .sentence-token{min-height:58px;padding:11px 17px;border:2px solid #d9d0eb;color:#3e506b;background:#fff;box-shadow:0 4px 0 #d9d0eb;font-size:clamp(17px,1.8vw,24px)}.interactive-page .sentence-token:disabled{opacity:.3;transform:translateY(3px);box-shadow:none}.sentence-actions{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;margin-top:18px}.sentence-actions button{font-size:17px;min-height:54px}
.interactive-page .hint-button{color:#694b12;background:linear-gradient(135deg,#fff5b8,#ffd75e);box-shadow:0 5px 0 #d6a92f}.interactive-page .hint-button:disabled{color:#7d745b;background:#eee9d8;box-shadow:none}
@media(max-width:650px){.sentence-slots,.sentence-bank{padding:12px;gap:7px}.sentence-actions{flex-direction:column}.sentence-actions button{width:100%}}

.content-picker{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 20px;padding:16px 18px;border:1px solid #d8e2ef;border-radius:18px;background:linear-gradient(135deg,#fff,#f2f7ff);box-shadow:0 7px 20px rgba(45,74,83,.07)}
.content-picker>div{display:flex;align-items:center;gap:12px}.content-picker-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#ede9fe;font-size:1.25rem}.content-picker strong,.content-picker small{display:block}.content-picker strong{color:#244d58}.content-picker small{margin-top:3px;color:#6b7f85;font-size:.76rem}.content-picker label{display:flex;align-items:center;gap:10px;color:#547078;font-size:.75rem;font-weight:800}.content-picker select{min-width:350px;padding:12px 38px 12px 13px;border:1px solid #b9ccc9;border-radius:12px;color:#244d58;background:#fff;font:inherit;font-size:.86rem;font-weight:750;cursor:pointer}.content-picker select:focus-visible{outline:4px solid #f5b942;outline-offset:3px}
@media(max-width:700px){.content-picker{align-items:stretch;flex-direction:column}.content-picker label{align-items:stretch;flex-direction:column;gap:6px}.content-picker select{min-width:0;width:100%}}
.player[data-motion="off"] .stage {animation:none}

/* Subtle extra light around the illustrated edges. */
.player:after {
  background-image:radial-gradient(circle at 5% 36%,#ffffffb8 0 4px,transparent 5px),
    radial-gradient(circle at 95% 43%,#ffffffc9 0 5px,transparent 6px),
    radial-gradient(circle at 91% 81%,#ffffffb8 0 3px,transparent 4px),
    radial-gradient(circle at 12% 88%,#ffffffc9 0 4px,transparent 5px),
    radial-gradient(ellipse at 2% 25%,#ffffff45,transparent 23%),
    radial-gradient(ellipse at 98% 73%,#ffffff50,transparent 24%);
}

/* Light classroom themes for projector and large touch-screen visibility. */
.preview {
  color:#243d59;
  background-image:var(--scene),
    linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,255,255,.58)),
    linear-gradient(145deg,var(--accent-soft),var(--accent));
  border-color:#dce7f2;
}
.preview:before,.preview:after {border-color:#ffffff80}
.preview .tiles span,.preview .sample {box-shadow:0 5px 0 #7c91aa38,0 8px 22px #52698318}

.player {
  background-color:#f4f9ff;
  background-image:radial-gradient(ellipse at 50% 42%,#ffffffed 0%,#ffffff8f 68%,transparent 88%),
    linear-gradient(135deg,#f7fbff,#e8f3ff);
}
.player:before {opacity:.66}
.player[data-theme="classroom"] {
  background-color:#f5f2ff;
  background-image:radial-gradient(ellipse at 50% 42%,#ffffffed 0%,#ffffff8a 70%,transparent 88%),
    linear-gradient(135deg,#f4faff,#f1edff);
}
.player[data-theme="clouds"] {
  background-color:#eaf8ff;
  background-image:linear-gradient(#d8f2ff,#f8fdff 72%,#e7f5df 73%,#d5edc9);
}
.player[data-theme="gameshow"] {
  background-color:#f8efff;
  background-image:radial-gradient(ellipse at 50% -15%,#ead7ff 0,transparent 46%),
    radial-gradient(circle at 5% 55%,#ffddec 0,transparent 31%),
    radial-gradient(circle at 95% 65%,#dceeff 0,transparent 31%),
    linear-gradient(155deg,#fff8ff,#edf5ff);
  --accent:#b83a82;--accent-dark:#7d285c;--accent-soft:#fdebf6;color:#243d59;
}
.player[data-theme="gameshow"]:before {filter:saturate(.82) brightness(1.08);opacity:.42}
.player[data-theme="gameshow"] .board-caption>span,
.player[data-theme="gameshow"] .keyboard-help {color:#4d5870}
.player[data-theme="gameshow"] .stage>.hint {color:#53627a;text-shadow:none}
.player[data-theme="gameshow"] .progress-track {background:#ffffffd9}
.player[data-theme="gameshow"] .answer {color:#243d59;border-color:#ffffff;box-shadow:0 5px 0 #b7c5d8,0 10px 24px #50647b12}
.player[data-theme="gameshow"] .answer:nth-child(1){background:linear-gradient(135deg,#eef6ff,#dcecff)}
.player[data-theme="gameshow"] .answer:nth-child(2){background:linear-gradient(135deg,#edfbf4,#d9f3e5)}
.player[data-theme="gameshow"] .answer:nth-child(3){background:linear-gradient(135deg,#fff9e8,#ffedbd)}
.player[data-theme="gameshow"] .answer:nth-child(4){background:linear-gradient(135deg,#f7efff,#e9dafa)}
.player[data-theme="gameshow"] .answer.correct {background:#e1f6e7;color:#175532}
.player[data-theme="gameshow"] .answer.wrong {background:#fff0ef;color:#873a35}
.player[data-theme="gameshow"] .question-trail span {background:#ffffffc9;color:#53627a;border-color:#d7dfeb}
.player[data-theme="gameshow"] .question-trail .done {background:#e2f5e9;color:#256a43}
.player[data-theme="gameshow"] .question-trail .missed {background:#fff0e4;color:#9c582b}

.player[data-theme="blackboard"] {
  background-color:#e8f7f1;
  background-image:radial-gradient(circle at 50% 40%,#f9fffc 0,transparent 72%),
    linear-gradient(145deg,#eaf8f3,#d7eee6);
  border-color:#f7e4c8;outline:3px solid #cba574;box-shadow:0 12px 0 #b98d5d,0 26px 65px #476b6528;
  --accent:#a66b18;--accent-dark:#74480f;--accent-soft:#fff4d9;
}
.player[data-theme="blackboard"]:before {opacity:.45}
.player[data-theme="blackboard"] .stage>.hint,
.player[data-theme="blackboard"] .board-caption>span,
.player[data-theme="blackboard"] .keyboard-help {color:#405f5a;text-shadow:none}
.player[data-theme="blackboard"] .progress-track {background:#ffffffd9}

.missing-question {letter-spacing:.015em}
.missing-gap {
  display:inline-block;
  width:1.05em;
  height:.82em;
  margin:0 .18em;
  border-bottom:.11em solid currentColor;
  vertical-align:-.06em;
}

.matching-preview {display:grid;grid-template-columns:repeat(2,minmax(80px,1fr));gap:9px;position:relative;z-index:1;width:min(92%,360px)}
.matching-preview span {padding:9px 12px;border:1px solid #d4e5ef;border-radius:12px;color:#28526a;background:#fffffff0;box-shadow:0 4px 0 #7894a72e;font-size:17px;font-weight:850}
.matching-preview span:nth-child(even) {color:#68428c;background:#fbf4ff}
.matching-hint {display:inline-block;padding:9px 18px;border:1px solid #cce7ee;border-radius:999px;background:#ffffffc9}
.matching-board {display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);gap:16px;align-items:start;max-width:1040px;margin:18px auto 8px;padding:22px;border:1px solid #cfe4eb;border-radius:26px;background:linear-gradient(135deg,#f4fcffed,#fff8ffed);box-shadow:0 14px 36px #365e7417}
.matching-column {display:grid;gap:12px;min-width:0}
.matching-column h3 {margin:0 0 4px;padding:12px;border-radius:14px;color:#31566d;background:#ffffffd9;font-size:20px;text-align:center;box-shadow:0 4px 14px #4564790c}
.matching-column:nth-child(3) h3 {color:#65427f}
.matching-divider {align-self:center;display:grid;place-items:center;width:46px;height:46px;margin:auto;border-radius:50%;color:#fff;background:linear-gradient(135deg,#31a5bd,#8a64c5);box-shadow:0 7px 18px #416d8130;font-size:24px;font-weight:900}
.interactive-page .match-card {position:relative;min-height:62px;padding:13px 18px;border:2px solid #d5e7ee;border-radius:16px;color:#294b62;background:linear-gradient(145deg,#fff,#edf9fc);box-shadow:0 5px 0 #c8dde5;font-size:clamp(18px,1.7vw,24px);font-weight:850;overflow-wrap:anywhere;transition:transform .15s,border-color .15s,background .15s}
.interactive-page .uzbek-card {border-color:#e5daf0;color:#604178;background:linear-gradient(145deg,#fff,#faf1ff);box-shadow:0 5px 0 #ddd0e8}
.interactive-page .match-card.selected {border-color:#f0a72e;background:#fff7d9;box-shadow:0 5px 0 #dfb34f,0 0 0 4px #fff8db80;transform:translateY(-2px)}
.interactive-page .match-card.matched {border-color:#62ad7c;color:#1e6540;background:#e3f7ea;box-shadow:0 5px 0 #79bd90}
.interactive-page .match-card.matched:after {content:'✓';position:absolute;right:13px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#fff;background:#33915a;font-size:16px}
.interactive-page .match-card.mismatch {border-color:#d96c68;color:#913c38;background:#fff0ef;animation:match-shake .28s ease-in-out}
@keyframes match-shake {0%,100%{transform:translateX(0)}35%{transform:translateX(-5px)}70%{transform:translateX(5px)}}
@media(max-width:700px){.matching-board{grid-template-columns:1fr;gap:13px;padding:15px}.matching-divider{width:38px;height:38px;transform:rotate(90deg)}.interactive-page .match-card{min-height:55px;font-size:19px}.matching-column{gap:9px}}
@media(prefers-reduced-motion:reduce){.interactive-page .match-card{transition:none}.interactive-page .match-card.mismatch{animation:none}}

.word-wheel-wrap {position:relative;width:min(480px,calc(100% - 64px));container-type:inline-size;margin:34px auto 26px;filter:drop-shadow(0 12px 18px #3b587526)}
.word-wheel-wrap:before {content:'';position:absolute;z-index:5;right:-28px;top:50%;width:46px;height:38px;background:linear-gradient(145deg,#c24e8b,#7e3471);clip-path:polygon(100% 5%,0 50%,100% 95%,85% 50%);filter:drop-shadow(0 0 2px #fff) drop-shadow(0 4px 5px #49305142);transform:translateY(-50%)}
.word-wheel-wrap:after {content:none}
.word-wheel {position:relative;width:100%;aspect-ratio:1;border:8px solid #fff1ad;border-radius:50%;box-shadow:inset 0 0 0 5px #ffffffd4,inset 0 0 0 9px #d9ab3470,0 0 0 3px #d4ad3d,0 0 0 7px #f7d86f,0 0 24px #5d45651c;transition:transform 3.4s cubic-bezier(.12,.72,.12,1);overflow:hidden}
.word-wheel:before {content:'';position:absolute;z-index:1;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,#ffffffb8 0 1.4deg,transparent 1.4deg var(--segment-step));box-shadow:inset 0 0 38px #ffffff52;pointer-events:none}
.word-wheel:after {content:'';position:absolute;z-index:1;inset:13px;border:2px solid #ffffff82;border-radius:50%;background:radial-gradient(circle at 34% 24%,#ffffff40 0,transparent 43%);box-shadow:inset 0 0 0 2px #7d5a2917;pointer-events:none}
.wheel-label {position:absolute;z-index:2;left:50%;top:50%;display:block;width:31cqw;padding:0;border:0;color:#203c59;background:transparent;box-shadow:none;font-size:var(--label-size,var(--word-size,7.4cqw));font-weight:950;line-height:1.02;letter-spacing:-.35px;text-align:center;overflow-wrap:anywhere;text-shadow:0 1px 0 #fff,1px 0 0 #ffffffd6,-1px 0 0 #ffffffd6,0 2px 4px #31506b30;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(-29cqw) rotate(var(--label-turn));transform-origin:center}
.wheel-hub {position:absolute;z-index:3;left:50%;top:50%;display:grid;place-items:center;width:15cqw;height:15cqw;border:7px solid #fff4bd;border-radius:50%;color:#fff;background:radial-gradient(circle at 35% 28%,#d766a0,#9340a3 55%,#65337f);box-shadow:0 7px 18px #4c2f6745, inset 0 0 0 3px #ffffff4f;transform:translate(-50%,-50%);font-size:6cqw;text-shadow:0 2px 0 #69306f}
.player[data-mode="wheel"] #spin {min-width:210px;border:2px solid #ffffffb8;background:linear-gradient(135deg,#b44782,#743263);box-shadow:0 6px 0 #60254e,0 11px 24px #73315a26}
.wheel-result {min-height:118px;margin:18px auto 0;max-width:700px}
.wheel-picked {display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;padding:18px 22px;border:1px solid #d5e4ef;border-radius:20px;background:#ffffffed;box-shadow:0 10px 26px #405b7214}
.wheel-picked small {color:#6a7c91;font-size:11px;font-weight:850;letter-spacing:1.5px}
.wheel-picked strong {color:#253f5d;font-size:clamp(26px,3vw,40px);font-weight:950}
.player .wheel-picked button {min-height:44px;padding:9px 15px;font-size:14px}
#wheel-answer {padding:9px 16px;border-radius:13px;color:#246042;background:#e4f6ea;font-size:clamp(21px,2vw,29px);font-weight:900}
.player[data-mode="wheel"] {--accent:#a43e7a;--accent-dark:#74305b;--accent-soft:#fff0f7;--scene:url('/static/images/interactive/wheel-festive.svg?v=wheel-festive-2');background-image:radial-gradient(circle at 50% 42%,#ffffffd1 0,transparent 58%),radial-gradient(circle at 8% 18%,#ffe1ef 0,transparent 30%),radial-gradient(circle at 92% 22%,#e8ddff 0,transparent 30%),linear-gradient(145deg,#fff8df,#fff0f7 48%,#eaf7ff)}
.player[data-mode="wheel"]:before {opacity:.9;filter:saturate(1.08)}
.player[data-mode="wheel"]:after {background-image:radial-gradient(circle at 6% 58%,#ffd05b 0 4px,transparent 5px),radial-gradient(circle at 95% 52%,#ec76ad 0 5px,transparent 6px),radial-gradient(circle at 15% 86%,#8b6ed0 0 4px,transparent 5px),radial-gradient(circle at 86% 84%,#50b9d2 0 4px,transparent 5px);opacity:.72}
 .wheel-label.wheel-selected {color:#63265f;text-shadow:0 1px 0 #fff,0 0 8px #ffffffd9;font-weight:1000}
.player[data-mode="wheel"] .stage {max-width:900px}
.player[data-mode="wheel"] .stage>.hint {font-size:clamp(16px,1.5vw,21px);max-width:640px;margin:0 auto 22px;line-height:1.5}
.word-wheel-wrap:before {right:-28px;left:auto}
@media(max-width:650px){.word-wheel-wrap{width:calc(100% - 48px);max-width:360px;margin:28px auto}.word-wheel{border-width:6px}.word-wheel-wrap:before{right:-21px;left:auto;width:36px;height:30px}.wheel-hub{border-width:4px}.wheel-picked{gap:10px;padding:15px}.player[data-mode="wheel"] #spin{min-width:180px;min-height:54px}}
@media(max-width:650px){.player[data-mode="wheel"]:after{background-image:radial-gradient(ellipse 22px 29px at 5% 72%,#f06da9d9 0 94%,transparent 100%),radial-gradient(ellipse 20px 27px at 96% 68%,#8d68ded6 0 94%,transparent 100%),radial-gradient(circle at 7% 62%,#ffd05b 0 4px,transparent 5px),radial-gradient(circle at 94% 58%,#55bfd8 0 4px,transparent 5px),radial-gradient(circle at 16% 82%,#8b6ed0 0 4px,transparent 5px),radial-gradient(circle at 86% 84%,#ec76ad 0 4px,transparent 5px);opacity:.68}}

/* Keep every wheel control visible on classroom displays without shrinking the wheel. */
.player[data-mode="wheel"]:fullscreen {height:100vh;min-height:0;padding:10px 24px 12px;overflow:hidden}
.player[data-mode="wheel"]:fullscreen .player-toolbar {height:50px;margin:0;padding:5px 12px;border-radius:14px}
.player[data-mode="wheel"]:fullscreen .player-toolbar button {min-height:38px;padding:7px 13px;font-size:14px}
.player[data-mode="wheel"]:fullscreen .board-caption {height:18px;padding-top:3px}
.player[data-mode="wheel"]:fullscreen .game-status {min-height:42px;margin:3px 0 5px;font-size:17px}
.player[data-mode="wheel"]:fullscreen .game-status>span:first-child {padding:7px 13px}
.player[data-mode="wheel"]:fullscreen .progress-track {height:8px}
.player[data-mode="wheel"]:fullscreen .question-trail {margin:6px 0 4px}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen .stage {display:grid;grid-template-columns:minmax(0,1fr) 520px minmax(230px,320px);grid-template-rows:auto 185px 329px;grid-template-areas:"hint hint hint" ". wheel spin" ". wheel result";column-gap:24px;row-gap:6px;align-items:center;width:100%;max-width:1200px;margin:12px auto 0;padding-bottom:10px;overflow:visible}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen .stage>.hint {grid-area:hint;max-width:none;margin:0;line-height:1.35}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen .word-wheel-wrap {grid-area:wheel;width:520px;margin:0;align-self:center}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen #spin {grid-area:spin;align-self:end;justify-self:center;margin-bottom:18px}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen .wheel-result {grid-area:result;align-self:start;width:100%;min-height:0;margin:8px 0 0}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen .wheel-picked {gap:9px;padding:13px 14px}
.player[data-mode="wheel"][data-phase="playing"]:fullscreen #feedback {display:none}
.player[data-mode="wheel"]:fullscreen .keyboard-help {position:absolute;left:50%;bottom:13px;margin:0;transform:translateX(-50%);white-space:nowrap}
.player[data-mode="wheel"]:fullscreen .player-actions {position:absolute;right:24px;bottom:8px;padding:0}
.player[data-mode="wheel"]:fullscreen #restart {min-height:38px;padding:7px 12px}
@media(max-width:900px){.player[data-mode="wheel"]:fullscreen {overflow-y:auto}.player[data-mode="wheel"][data-phase="playing"]:fullscreen .stage {display:block}.player[data-mode="wheel"][data-phase="playing"]:fullscreen .word-wheel-wrap {width:min(520px,calc(100% - 48px));margin:24px auto 18px}.player[data-mode="wheel"][data-phase="playing"]:fullscreen .wheel-result {margin:10px auto}.player[data-mode="wheel"]:fullscreen .keyboard-help,.player[data-mode="wheel"]:fullscreen .player-actions {position:static;transform:none;margin:8px auto}}

/* Compact fullscreen layout shared by the classroom activities. */
.player:fullscreen {height:100vh;min-height:0;padding:10px 24px 12px;overflow:hidden}
.player:fullscreen .player-toolbar {height:50px;margin:0;padding:5px 12px;border-radius:14px}
.player:fullscreen .player-toolbar button {min-height:38px;padding:7px 13px;font-size:14px}
.player:fullscreen .board-caption {height:18px;padding-top:3px}
.player:fullscreen .game-status {min-height:42px;margin:3px 0 5px;font-size:17px}
.player:fullscreen .game-status>span:first-child {padding:7px 13px}
.player:fullscreen .progress-track {height:8px}
.player:fullscreen .question-trail {margin:6px 0 4px}
.player:fullscreen .stage {margin:4px auto}
.player:fullscreen .stage>.hint {margin:3px 0 7px;line-height:1.35}
.player:fullscreen .stage h2 {margin:8px 0 12px;padding:16px 22px;font-size:clamp(26px,2.5vw,38px)}
.player:fullscreen .answers {gap:12px;margin-top:14px}
.interactive-page .player:fullscreen .answer {min-height:72px;padding:12px 18px 12px 62px;font-size:clamp(21px,1.8vw,28px)}
.player:fullscreen .answer:before {left:14px;width:34px;height:34px;font-size:19px}
.player:fullscreen #feedback:not(:empty) {position:absolute;z-index:7;left:50%;bottom:68px;width:min(760px,calc(100% - 520px));max-height:126px;margin:0;padding:9px 14px;overflow:auto;transform:translateX(-50%);background:#fffffff2;box-shadow:0 8px 28px #29405e24}
.player:fullscreen #feedback:empty {display:none}
.player:fullscreen .keyboard-help {position:absolute;left:50%;bottom:13px;margin:0;transform:translateX(-50%);white-space:nowrap}
.player:fullscreen .player-actions {position:absolute;right:24px;bottom:8px;padding:0}
.player:fullscreen #restart {min-height:38px;padding:7px 12px}
.player[data-phase="setup"]:fullscreen {overflow-y:auto}
.player[data-phase="setup"]:fullscreen .stage {display:block;width:min(980px,calc(100% - 48px));max-width:980px;margin:28px auto}
.player[data-phase="setup"]:fullscreen .setup-card {width:100%;max-width:none;padding:36px 54px;border-radius:30px;box-shadow:0 18px 50px #23426320}
.player[data-phase="setup"]:fullscreen .setup-icon {min-width:82px;height:82px;font-size:36px}
.player[data-phase="setup"]:fullscreen .stage>.setup-card>.hint {margin:15px 0 8px;font-size:24px}
.player[data-phase="setup"]:fullscreen .setup-card h2 {margin:8px 0 14px;font-size:clamp(38px,3.2vw,50px)}
.player[data-phase="setup"]:fullscreen .setup-description {max-width:760px;font-size:22px;line-height:1.55}
.player[data-phase="setup"]:fullscreen .round-settings {margin:24px 0 18px}
.player[data-phase="setup"]:fullscreen .round-size-options {max-width:720px}
.player[data-phase="setup"]:fullscreen .round-size-options button {min-height:76px;font-size:17px}
.player[data-phase="setup"]:fullscreen #begin-round {min-width:310px;min-height:64px;font-size:23px}
.player[data-phase="setup"]:fullscreen .setup-tip {max-width:720px;margin:18px auto 0;font-size:16px}
.player[data-mode="matching"]:fullscreen .matching-hint {margin:0 0 4px;padding:6px 14px;font-size:17px}
.player[data-mode="matching"]:fullscreen .matching-board {gap:10px;margin:4px auto 0;padding:8px 10px;border-radius:18px}
.player[data-mode="matching"]:fullscreen .matching-column {gap:3px}
.player[data-mode="matching"]:fullscreen .matching-column h3 {margin:0 0 2px;padding:6px;font-size:17px}
.interactive-page .player[data-mode="matching"]:fullscreen .match-card {min-height:40px;padding:5px 12px;border-width:1px;border-radius:11px;box-shadow:0 2px 0 #c8dde5;font-size:clamp(15px,1.35vw,18px)}
.player[data-mode="matching"]:fullscreen .matching-divider {width:38px;height:38px;font-size:20px}
.player[data-mode="matching"]:fullscreen #feedback:not(:empty) {top:163px;bottom:auto;width:min(650px,calc(100% - 420px));min-height:40px;max-height:44px;padding:5px 12px;gap:8px;overflow:hidden}
.player[data-mode="matching"]:fullscreen #feedback .feedback-symbol {width:30px;height:30px;font-size:19px}
.player[data-mode="matching"]:fullscreen #feedback>div {display:flex;align-items:center;gap:9px;min-width:0}
.player[data-mode="matching"]:fullscreen #feedback strong {flex:0 0 auto;font-size:16px;white-space:nowrap}
.player[data-mode="matching"]:fullscreen #feedback p {margin:0;font-size:14px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player[data-mode="matching"]:fullscreen:has(#feedback:not(:empty)) .matching-hint {visibility:hidden}
@media(max-width:900px){.player:fullscreen {overflow-y:auto}.player:fullscreen #feedback:not(:empty),.player:fullscreen .keyboard-help,.player:fullscreen .player-actions {position:static;width:auto;max-height:none;margin:8px auto;transform:none}}
@media(prefers-reduced-motion:reduce){.word-wheel{transition:none}}

/* Compact catalog cards keep more activities visible without shrinking touch targets. */
.exercise-card {padding:9px;border-radius:23px}
.exercise-card .preview {height:165px;min-height:165px;padding:13px 11px;gap:8px;border-radius:16px}
.exercise-card .preview-title {font-size:24px;line-height:1.2}
.exercise-card .preview .sample {padding:8px 14px;font-size:16px}
.exercise-card .preview .tiles {gap:6px}
.exercise-card .preview .tiles span {padding:7px 10px;font-size:21px;line-height:1.35}
.exercise-card .preview .wheel-mini {width:98px;height:98px}
.exercise-card .card-copy {padding:12px 10px 5px}
.exercise-card .card-copy small {padding:4px 8px;font-size:12px}
.exercise-card .card-copy h3 {margin:9px 0 6px;font-size:clamp(19px,1.35vw,22px)}
.exercise-card .card-copy p {margin:0 0 9px;font-size:16px;line-height:1.42}
.exercise-card .card-meta {padding:8px 0;margin-top:0;font-size:13px}
.interactive-page .exercise-card .card-copy>button {min-height:54px;padding:11px 18px;font-size:19px;border-radius:13px}
@media(max-width:650px){
  .exercise-card .preview {height:155px;min-height:155px}
  .exercise-card .card-copy {padding:11px 9px 5px}
}

/* Word Search: each found word leads into its Uzbek translation question. */
.wordsearch-mini {display:grid;grid-template-columns:repeat(3,30px);gap:3px;padding:8px;border-radius:10px;background:#ffffff24}
.wordsearch-mini b {display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#fff;color:#285c7f;font-size:15px}
.wordsearch-layout {display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:1000px;margin:0 auto;text-align:center}
.wordsearch-hint {order:0;margin:0!important;font-size:17px!important;line-height:1.35!important}
.wordsearch-words {order:1;display:grid;grid-template-columns:repeat(6,max-content);justify-content:center;gap:9px;width:100%;padding:0;border:0;border-radius:0;background:transparent}
.wordsearch-word {display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:8px 20px;border:1px solid #3779f2;border-radius:999px;background:linear-gradient(135deg,#3686ff,#2459df);box-shadow:0 5px 11px #2661cf35;color:#fff;font-size:16px;font-weight:850;letter-spacing:.35px;text-transform:uppercase}
.wordsearch-word.pending {border-color:#d98c17;background:linear-gradient(135deg,#ffbe45,#e98b16);box-shadow:0 5px 13px #d98c1745;transform:scale(1.04)}
.wordsearch-word.found {border-color:#21835d;background:linear-gradient(135deg,#45b77b,#20875f);color:#fff;text-decoration:line-through;opacity:.78}
.wordsearch-board-wrap {order:2;width:100%;overflow:auto;padding:4px 0 10px;touch-action:none}
.wordsearch-grid {display:grid;grid-template-columns:repeat(var(--wordsearch-size),minmax(0,1fr));gap:4px;width:min(100%,620px);margin:0 auto;padding:12px;border:0;border-radius:20px;background:#fff;box-shadow:0 12px 40px #20364d14;user-select:none;-webkit-user-select:none;touch-action:none}
.interactive-page .wordsearch-cell {display:grid;place-items:center;aspect-ratio:1;min-height:0;padding:2px;border:2px solid #dedede;border-radius:6px;background:#fff;color:#142a4c;font-size:clamp(14px,2.15vw,23px);font-weight:650;line-height:1;box-shadow:0 1px 2px #142a4c10}
.interactive-page .wordsearch-cell:hover {border-color:#8f9bb0;background:#f8faff}
.interactive-page .wordsearch-cell.selecting {z-index:1;border-color:#5b5bd6;background:linear-gradient(135deg,#818cf8,#6366f1);box-shadow:0 4px 10px #4f46e550;color:#fff;transform:scale(1.06)}
.interactive-page .wordsearch-cell.found {background:#d9f4df;border-color:#4caa68;color:#195937}
.wordsearch-translation-overlay {position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:24px;background:#20314d70;backdrop-filter:blur(3px)}
.wordsearch-translation {width:min(900px,calc(100vw - 48px));max-height:calc(100vh - 48px);margin:0;padding:24px;border:2px solid #d8e4ef;border-radius:22px;overflow:auto;background:#fff;box-shadow:0 24px 70px #16283d45}
.wordsearch-translation p {margin:0;color:#57718a;font-size:18px}.wordsearch-translation h2 {margin:5px 0 0!important;padding:0!important;font-size:clamp(23px,2.2vw,32px)!important}
.wordsearch-translation .wordsearch-points {margin:7px 0 0;color:#7442d8;font-size:16px}
.wordsearch-translation.correct {animation:wordsearch-correct .5s ease}.wordsearch-translation.wrong {animation:wordsearch-wrong .35s ease}
@keyframes wordsearch-correct {50%{box-shadow:0 0 0 9px #35ad6a55,0 24px 70px #16283d45}}@keyframes wordsearch-wrong {25%,75%{transform:translateX(-7px)}50%{transform:translateX(7px)}}
.wordsearch-translation .answers {grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}
.interactive-page .wordsearch-translation .answer {min-height:62px;padding:9px 12px 9px 56px;font-size:clamp(16px,1.45vw,22px)}
.interactive-page .wordsearch-continue {display:block;min-width:280px;margin:18px auto 0;padding:14px 28px;border:0;border-radius:14px;background:linear-gradient(135deg,#7b43ee,#5a2ed8);box-shadow:0 6px 0 #4420a8;color:#fff;font-size:19px;font-weight:850}
.interactive-page .wordsearch-continue:hover {transform:translateY(-1px);box-shadow:0 7px 0 #4420a8}
.interactive-page .wordsearch-continue:focus-visible {outline:4px solid #bda8ff;outline-offset:3px}
.player[data-mode="wordsearch"]:fullscreen .stage {max-width:1150px;margin:4px auto}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-layout {gap:10px;max-width:1150px}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-hint {font-size:15px!important}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-words {gap:8px}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-word {min-height:38px;padding:6px 17px;font-size:14px}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-grid {width:min(100%,calc(100vh - 330px),560px);padding:8px;gap:3px}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-cell {font-size:clamp(15px,1.45vw,21px);border-radius:5px}
.player[data-mode="wordsearch"]:fullscreen .wordsearch-translation {padding:20px}.player[data-mode="wordsearch"]:fullscreen .wordsearch-translation p {font-size:16px}.player[data-mode="wordsearch"]:fullscreen .wordsearch-translation h2 {font-size:24px!important}.player[data-mode="wordsearch"]:fullscreen .wordsearch-translation .answer {min-height:58px;padding:8px 14px 8px 56px;font-size:19px}
@media(max-width:900px){.wordsearch-words{grid-template-columns:repeat(4,max-content)}}
@media(max-width:900px){.wordsearch-translation .answers{grid-template-columns:repeat(2,minmax(0,1fr))}.player[data-mode="wordsearch"]:fullscreen .wordsearch-translation .answers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.wordsearch-layout{gap:10px}.wordsearch-words{grid-template-columns:repeat(3,max-content);gap:7px}.wordsearch-word{min-height:36px;padding:6px 13px;font-size:13px}.wordsearch-grid{width:min(100%,560px);gap:3px;padding:8px}.interactive-page .wordsearch-cell{border-radius:4px;font-size:clamp(12px,3.4vw,18px)}.wordsearch-translation .answers{grid-template-columns:1fr}.interactive-page .wordsearch-continue{width:100%;min-width:0}.player[data-mode="wordsearch"]:fullscreen .wordsearch-layout{display:flex}.player[data-mode="wordsearch"]:fullscreen .wordsearch-grid{width:min(100%,calc(100vh - 330px),520px)}.player[data-mode="wordsearch"]:fullscreen .wordsearch-translation .answers{grid-template-columns:1fr}}

/* Dashboard catalog — player and fullscreen rules above remain independent. */
.interactive-dashboard-body {margin:0;min-height:100vh;background:linear-gradient(135deg,#f8faff 0%,#f3f4ff 52%,#fbfaff 100%);color:#18276d;font-family:Inter,"Segoe UI",Arial,sans-serif}
.interactive-dashboard-body * {box-sizing:border-box}
.interactive-dashboard-shell {min-height:100vh}
.interactive-sidebar {position:fixed;z-index:60;inset:0 auto 0 0;display:block;width:248px;height:100vh;padding:18px 14px 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7d0fb transparent;background:#fff;border-right:1px solid #e4e8f7;box-shadow:8px 0 28px rgba(46,56,122,.035)}
.interactive-sidebar::-webkit-scrollbar {width:6px}
.interactive-sidebar::-webkit-scrollbar-thumb {border-radius:6px;background:#d7d0fb}
.sidebar-brand {display:flex;align-items:center;gap:10px;padding:0 7px 23px;color:#16158f;text-decoration:none}
.sidebar-brand img {width:42px;height:42px;object-fit:contain}
.sidebar-brand span {display:grid;line-height:1.05}
.sidebar-brand strong {font-size:24px;font-weight:900;letter-spacing:-.8px}
.sidebar-brand small {margin-top:4px;color:#394779;font-size:11px;font-weight:700}
.sidebar-nav {display:grid;gap:4px}
.sidebar-nav a,.sidebar-account>a,.sidebar-account button {display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 13px;border:0;border-radius:12px;background:transparent;color:#293b7d;font:700 15px/1.2 inherit;text-align:left;text-decoration:none;cursor:pointer}
.sidebar-nav a>.sidebar-icon,.sidebar-account>a>.sidebar-icon,.sidebar-account button>.sidebar-icon {display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;color:#354ba7}
.sidebar-icon svg {display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-nav a>b {margin-left:auto;font-size:24px}
.sidebar-nav a:hover,.sidebar-account>a:hover,.sidebar-account button:hover {background:#f4f3ff;color:#4c2bdc}
.sidebar-nav a.active {background:linear-gradient(135deg,#6744f4,#6d2ee8);color:#fff;box-shadow:0 9px 20px rgba(102,52,232,.23)}
.sidebar-nav a.active>.sidebar-icon {color:#fff}
.sidebar-pro-card {margin:25px 5px 16px;padding:18px 16px;background:linear-gradient(145deg,#fbfbff,#f0edff);border:1px solid #e4dfff;border-radius:16px;box-shadow:0 10px 24px rgba(77,54,181,.08)}
.sidebar-pro-card .pro-crown {display:block;color:#ffb400;font-size:38px;line-height:1}
.sidebar-pro-card strong {display:block;margin:8px 0 5px;color:#1d2076;font-size:18px}
.sidebar-pro-card p {margin:0 0 14px;color:#53618b;font-size:13px;line-height:1.45}
.sidebar-pro-card a {display:block;padding:11px;border-radius:10px;background:linear-gradient(135deg,#643df3,#7130e9);color:#fff;font-weight:800;text-align:center;text-decoration:none}
.sidebar-account {display:grid;gap:3px;margin-top:18px;padding-bottom:4px}
.sidebar-account .sidebar-user {height:auto;min-height:62px;padding-block:8px}
.sidebar-user>span,.topbar-user>span {display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#643ff3,#7936e9);color:#fff;font-size:18px;font-weight:800}
.sidebar-user div {display:grid;gap:3px;min-width:0}
.sidebar-user strong {overflow:hidden;text-overflow:ellipsis}
.sidebar-user small {color:#68759e;font-size:12px}
.sidebar-account form {margin:0}
.sidebar-login,.sidebar-register {justify-content:center!important}
.sidebar-register {background:#6039ec!important;color:#fff!important}
.interactive-dashboard-main {min-height:100vh;margin-left:248px}
.interactive-topbar {position:sticky;z-index:50;top:0;display:flex;align-items:center;gap:18px;height:62px;padding:8px 22px;background:rgba(255,255,255,.93);border-bottom:1px solid #e6e9f6;backdrop-filter:blur(14px)}
.mobile-dashboard-brand {display:none}
.dashboard-search {display:flex;align-items:center;gap:10px;width:min(650px,52vw);height:42px;padding:0 15px;border:1px solid #e2e6f6;border-radius:14px;background:#f5f7ff;color:#17257c;box-shadow:inset 0 1px 2px rgba(33,43,114,.025)}
.dashboard-search span {font:900 28px/1 Georgia,serif;transform:rotate(-20deg)}
.dashboard-search input {width:100%;border:0;outline:0;background:transparent;color:#253476;font:500 14px inherit}
.dashboard-search input::placeholder {color:#7f8ab1}
.topbar-actions {display:flex;align-items:center;gap:12px;margin-left:auto}
.active-grade,.topbar-feedback,.topbar-user,.topbar-login {display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #e5e8f7;border-radius:14px;background:#f8f9ff;color:#1e2e74;text-decoration:none}
.active-grade {min-width:130px;padding:0 14px;font-size:13px}
.topbar-feedback {width:42px;font-size:17px}
.topbar-user {padding:0 8px 0 4px;background:#fff;border-color:transparent}
.topbar-user>span {width:38px;height:38px;font-size:16px}
.topbar-user strong {max-width:120px;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.topbar-user b {font-size:16px}
.topbar-login {padding:0 18px;font-weight:800}
.interactive-dashboard-body .interactive-page {width:auto;max-width:none;margin:0;padding:9px 22px 54px;color:#16256f}
.interactive-dashboard-body .intro {position:relative;min-height:225px;margin:0 0 14px;padding:26px 29px;overflow:hidden;border:0;border-radius:19px;background:radial-gradient(circle at 67% 45%,rgba(255,255,255,.88) 0 9%,transparent 24%),linear-gradient(120deg,#eeeaff 0%,#ddd8ff 57%,#d2c8ff 100%);box-shadow:0 12px 30px rgba(77,60,186,.09);isolation:isolate}
.interactive-dashboard-body .intro:before {content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 40%,rgba(255,255,255,.36) 40.2%,transparent 65%);pointer-events:none}
.intro-copy {position:relative;z-index:4;width:51%;padding-top:1px}
.interactive-dashboard-body .eyebrow {display:inline-flex;align-items:center;min-height:35px;padding:0 13px;border-radius:18px;background:linear-gradient(135deg,#6540f4,#7334e9);color:#fff;font-size:12px;font-weight:900;letter-spacing:.1px;box-shadow:0 6px 13px rgba(93,46,220,.25)}
.interactive-dashboard-body .intro h1 {max-width:570px;margin:13px 0 8px;color:#17156f;font-size:clamp(29px,2.35vw,40px);line-height:1.08;letter-spacing:-1px}
.interactive-dashboard-body .intro p {max-width:495px;margin:0;color:#24347e;font-size:clamp(16px,1.25vw,20px);line-height:1.45}
.intro-student {position:absolute;z-index:2;right:-1.5%;bottom:-30%;width:61%;height:142%;object-fit:contain;object-position:right bottom;pointer-events:none;filter:drop-shadow(0 18px 16px rgba(40,28,114,.15))}
.hero-note {position:absolute;z-index:5;right:2%;top:30px;width:142px;padding:12px 10px;transform:rotate(6deg);border-radius:5px;background:#ffdc64;color:#17196c;font-size:13px;font-weight:800;line-height:1.3;text-align:center;box-shadow:0 9px 18px rgba(85,63,27,.12)}
.interactive-dashboard-body #catalog {display:grid;gap:7px}
.catalog-helper {display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:6px 15px;border:1px solid #e1e5f6;border-radius:15px;background:rgba(255,255,255,.74);color:#48598d;font-size:12px}
.interactive-page .catalog-helper button {min-height:30px;padding:5px 11px;border:0;border-radius:15px;background:#fff;color:#283985;font-size:11px;font-weight:800;box-shadow:0 2px 8px rgba(48,54,118,.08)}
.interactive-page .interactive-access {min-height:0;margin:0;padding:7px 13px;border-radius:12px;font-size:12px;text-align:left}
.interactive-page .content-filters {display:grid;gap:5px;margin:0}
.interactive-page .filter-row {position:relative;display:grid;grid-template-columns:98px minmax(0,1fr) 30px;align-items:center;min-height:53px;padding:7px 13px 7px 18px;border:1px solid #e0e3f5;border-radius:15px;background:rgba(255,255,255,.87);box-shadow:0 5px 14px rgba(40,49,120,.045)}
.interactive-page .filter-row[hidden] {display:none}
.interactive-page .filter-row>strong {color:#182772;font-size:11px;line-height:1.15}
.interactive-page .filter-options {display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;padding:2px 3px;scrollbar-width:thin}
.interactive-page .filter-pill {flex:0 0 auto;min-height:36px;padding:7px 16px;border:1px solid #e2e0f7;border-radius:19px;background:#fafaff;color:#27367a;font-size:12px;font-weight:800;box-shadow:none;white-space:nowrap}
.interactive-page .filter-pill span {display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 5px;border-radius:10px;background:#efecff;color:#6242d9;font-size:10px}
.interactive-page .filter-pill:hover {border-color:#b8abff;background:#f3f0ff;transform:none}
.interactive-page .filter-pill.active {border-color:transparent;background:linear-gradient(135deg,#6841f4,#7435e9);color:#fff;box-shadow:0 5px 0 #4d27bd,0 8px 15px rgba(78,39,186,.18)}
.interactive-page .filter-pill.active span {background:rgba(255,255,255,.18);color:#fff}
.filter-chevron {display:grid;place-items:center;width:29px;height:29px;border:1px solid #e3e4fa;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(62,51,145,.05)}
.filter-chevron:before {content:"";width:7px;height:7px;margin-top:-4px;border-right:2px solid #6843dc;border-bottom:2px solid #6843dc;transform:rotate(45deg)}
.catalog-title-row {display:flex;align-items:center;justify-content:space-between;min-height:47px;padding:5px 2px 0}
.catalog-title-row h2 {margin:0;color:#1a226c;font-size:19px}
.catalog-title-row h2 span {font-size:21px}
.catalog-title-row>span {color:#6535ed;font-size:12px;font-weight:700}
.interactive-dashboard-body .exercise-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.interactive-dashboard-body .exercise-card {position:relative;display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;min-height:126px;padding:15px;border:0;border-radius:17px;background:linear-gradient(135deg,#e5f5ff,#dff0ff);box-shadow:0 8px 18px rgba(57,71,147,.07);overflow:hidden}
.interactive-dashboard-body .exercise-card:nth-child(4n+2) {background:linear-gradient(135deg,#fff0f5,#ffe3eb)}
.interactive-dashboard-body .exercise-card:nth-child(4n+3) {background:linear-gradient(135deg,#fff9e3,#fff1bf)}
.interactive-dashboard-body .exercise-card:nth-child(4n+4) {background:linear-gradient(135deg,#eafff5,#d9f7e9)}
.interactive-dashboard-body .exercise-card:nth-child(8n+5) {background:linear-gradient(135deg,#f1edff,#e8e2ff)}
.interactive-dashboard-body .exercise-card:before {content:"";position:absolute;right:-25px;top:-35px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.37)}
.activity-icon {position:relative;display:grid;place-items:center;width:66px;height:66px;border-radius:17px;background:rgba(255,255,255,.78);font-size:39px;filter:drop-shadow(0 5px 5px rgba(32,47,113,.12))}
.interactive-dashboard-body .exercise-card .card-copy {position:relative;min-width:0;padding:0 35px 0 10px}
.interactive-dashboard-body .exercise-card .card-copy small {display:block;margin:0 0 3px;padding:0;background:transparent;color:#6540d6;font-size:10px;font-weight:800}
.interactive-dashboard-body .exercise-card .card-copy h3 {margin:0 0 4px;color:#121f68;font-size:16px;line-height:1.2;letter-spacing:-.2px}
.interactive-dashboard-body .exercise-card .card-copy p {display:-webkit-box;min-height:31px;margin:0;color:#50608f;font-size:12px;line-height:1.35;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.interactive-dashboard-body .exercise-card .card-meta {display:flex;gap:11px;margin:8px 0 0;padding:0;border:0;color:#31477d;font-size:10px;font-weight:700}
.interactive-dashboard-body .exercise-card .card-copy>.activity-launch {position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;max-height:40px;margin:0;padding:0;border:0;border-radius:50%;background:linear-gradient(145deg,#7652ff,#5d32e8);color:#fff;box-shadow:0 6px 13px rgba(83,47,207,.26),inset 0 1px 0 rgba(255,255,255,.3)}
.activity-launch>span {position:relative;display:block;width:14px;height:12px}
.activity-launch>span:before {content:"";position:absolute;top:5px;left:0;width:11px;height:2px;border-radius:2px;background:currentColor}
.activity-launch>span:after {content:"";position:absolute;top:2px;right:1px;width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
.interactive-dashboard-body .exercise-card .card-copy>.activity-launch:hover {transform:translateX(2px) scale(1.04);background:linear-gradient(145deg,#855fff,#6639ed);box-shadow:0 8px 16px rgba(83,47,207,.33)}
.interactive-dashboard-body .exercise-card .card-copy>.activity-launch:focus-visible {outline:3px solid rgba(103,61,238,.24);outline-offset:3px}
.interactive-dashboard-body .load-message {grid-column:1/-1;margin:10px 0;padding:26px;border:1px solid #e3e6f5;border-radius:16px;background:#fff;color:#52628d;text-align:center}
.interactive-dashboard-body .player:not([hidden]) {margin-top:0}
@media(max-width:1280px){
  .interactive-dashboard-body .exercise-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-note {display:none}
  .intro-student {right:-6%;width:65%}
}
@media(max-width:1060px){
  .interactive-sidebar {width:210px;padding-inline:10px}
  .interactive-dashboard-main {margin-left:210px}
  .sidebar-brand strong {font-size:21px}
  .interactive-dashboard-body .exercise-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar-user strong,.topbar-user b {display:none}
  .intro-student {right:-11%;width:72%}
}
@media(max-width:820px){
  .interactive-sidebar {display:none}
  .interactive-dashboard-main {margin-left:0}
  .interactive-topbar {height:60px;padding-inline:14px}
  .mobile-dashboard-brand {display:flex;align-items:center;gap:6px;color:#21159b;text-decoration:none;white-space:nowrap}
  .mobile-dashboard-brand img {width:31px;height:31px}
  .dashboard-search {width:auto;flex:1}
  .active-grade {min-width:42px;width:42px;padding:0;font-size:0}
  .active-grade:first-letter {font-size:16px}
  .topbar-user {display:none}
  .interactive-dashboard-body .interactive-page {padding-inline:12px}
  .interactive-dashboard-body .intro {min-height:205px;padding:23px}
  .intro-copy {width:62%}
  .intro-student {right:-14%;bottom:-24%;width:69%;height:130%}
  .interactive-dashboard-body .intro p {font-size:15px}
  .interactive-page .filter-row {grid-template-columns:84px minmax(0,1fr) 26px;padding-left:12px}
}
@media(max-width:590px){
  .mobile-dashboard-brand strong,.topbar-feedback {display:none}
  .interactive-topbar {gap:8px}
  .dashboard-search {min-width:0}
  .interactive-dashboard-body .intro {min-height:260px;padding:20px}
  .intro-copy {width:100%}
  .interactive-dashboard-body .intro h1 {max-width:350px;font-size:29px}
  .interactive-dashboard-body .intro p {max-width:310px}
  .intro-student {right:-22%;bottom:-31%;width:78%;height:104%;opacity:.86}
  .catalog-helper span {display:none}
  .catalog-helper {justify-content:flex-end}
  .interactive-page .filter-row {grid-template-columns:1fr 28px;gap:4px;padding:9px 10px}
  .interactive-page .filter-row>strong {grid-column:1/-1;padding-left:3px}
  .catalog-title-row>span {display:none}
  .interactive-dashboard-body .exercise-grid {grid-template-columns:1fr}
  .interactive-dashboard-body .exercise-card {min-height:118px}
}

/* Simple four-step activity chooser. */
.sidebar-pro-link {display:flex;align-items:center;gap:10px;margin:22px 5px 8px;padding:12px 13px;border:1px solid #e6e2fb;border-radius:13px;background:#f8f7ff;color:#263376;text-decoration:none}
.sidebar-pro-link>span {display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff2c8;color:#e9a400;font-size:23px}
.sidebar-pro-link>div {display:grid;gap:2px;min-width:0}
.sidebar-pro-link strong {font-size:13px}
.sidebar-pro-link small {color:#7b84a6;font-size:10px}
.sidebar-pro-link>b {margin-left:auto;color:#7553e9;font-size:20px}
.interactive-dashboard-body .interactive-topbar {height:54px;padding-block:6px;box-shadow:none}
.interactive-dashboard-body .interactive-topbar>.dashboard-search {visibility:hidden;pointer-events:none}
.interactive-dashboard-body .simple-intro {min-height:188px;margin-bottom:11px;padding:27px 30px;border:1px solid #e6e8f6;border-radius:17px;background:linear-gradient(115deg,#fff 0%,#fbfaff 58%,#f1efff 100%);box-shadow:0 8px 24px rgba(56,55,125,.045)}
.interactive-dashboard-body .simple-intro:before {display:none}
.simple-intro .intro-copy {width:67%;padding:0}
.interactive-dashboard-body .simple-intro h1 {max-width:820px;margin:0 0 5px;font-size:clamp(30px,2.25vw,38px);line-height:1.08;letter-spacing:-1.1px}
.interactive-dashboard-body .simple-intro p {max-width:620px;color:#7775b0;font-size:19px}
.simple-intro .intro-student {right:1%;bottom:-43%;width:37%;height:152%;opacity:.96;filter:drop-shadow(0 13px 14px rgba(54,39,137,.1))}
.hero-search {position:relative;z-index:5;display:flex;align-items:center;gap:9px;width:min(420px,100%);height:40px;margin-top:17px;padding:0 13px;border:1px solid #e3e5f5;border-radius:12px;background:#fff;color:#5237c5;box-shadow:0 4px 12px rgba(63,55,131,.05)}
.hero-search>span {font:900 25px/1 Georgia,serif;transform:rotate(-20deg)}
.hero-search input {width:100%;border:0;outline:0;background:transparent;color:#273478;font:500 13px inherit}
.hero-search input::placeholder {color:#969cba}
.interactive-dashboard-body #catalog {gap:8px}
.simple-helper {min-height:42px;padding-inline:14px;background:#fff}
.simple-helper>span {min-width:0;overflow:hidden;color:#616d9a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.interactive-page .simple-helper button {flex:0 0 auto;color:#6240df;background:#f6f3ff;box-shadow:none}
.selection-wizard {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;margin:0!important;align-items:stretch}
.wizard-step {min-width:0;min-height:440px;padding:18px 16px;border:1px solid #e2e5f3;border-radius:17px;background:rgba(255,255,255,.93);box-shadow:0 7px 20px rgba(43,50,116,.045)}
.wizard-step>header {display:flex;align-items:center;gap:11px;margin-bottom:15px;padding-bottom:0!important;border-bottom:0!important}
.wizard-step>header>span {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#9672f5,#7247e8);color:#fff;font-size:20px;font-weight:900;box-shadow:0 5px 12px rgba(103,67,213,.2)}
.wizard-step>header>div {display:grid;gap:2px;min-width:0}
.wizard-step>header strong {color:#17236d;font-size:16px;line-height:1.15}
.wizard-step>header small {color:#898fb0;font-size:11px}
.wizard-choice-area[hidden] {display:none!important}
.wizard-options {display:grid!important;gap:7px!important;overflow:visible!important;padding:0!important}
.interactive-page .wizard-options .filter-pill {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:49px;padding:10px 13px;border:1px solid #e0e4f2;border-radius:12px;background:#fbfcff;color:#283575;font-size:13px;text-align:left;white-space:normal}
.interactive-page .wizard-options .filter-pill:hover {border-color:#bcb0f5;background:#f8f5ff}
.interactive-page .wizard-options .filter-pill.active {border-color:transparent;background:linear-gradient(135deg,#946cf4,#7548e9);color:#fff;box-shadow:0 6px 14px rgba(104,64,211,.2)}
.source-options {grid-template-columns:1fr!important}
.topic-choice-area {margin-top:13px;padding-top:12px;border-top:1px solid #ebeaf5}
.topic-choice-area>strong {display:block;margin:0 0 7px;color:#7b82a4;font-size:10px;letter-spacing:.5px}
.topic-options {max-height:241px;overflow-y:auto!important;padding-right:3px!important;scrollbar-width:thin}
.topic-options .filter-pill {min-height:41px!important;padding-block:7px!important;font-size:12px!important}
.wizard-placeholder {display:grid;place-items:center;min-height:250px;margin:0;border:1px dashed #e0e2ef;border-radius:13px;background:#fbfbfe;color:#9a9fb8;font-size:12px;text-align:center}
.wizard-step:has(.wizard-choice-area:not([hidden]))>.wizard-placeholder {display:none}
.exercise-step {padding-inline:14px}
.interactive-dashboard-body .exercise-step .exercise-grid {display:grid;grid-template-columns:1fr;gap:7px;max-height:350px;overflow-y:auto;padding:1px 4px 2px 1px;scrollbar-width:thin}
.interactive-dashboard-body .exercise-step .exercise-card {display:grid;grid-template-columns:45px minmax(0,1fr);min-height:66px;padding:9px;border:1px solid #e3e5f2;border-radius:12px;background:#fbfcff;box-shadow:none}
.interactive-dashboard-body .exercise-step .exercise-card:nth-child(n) {background:#fbfcff}
.interactive-dashboard-body .exercise-step .exercise-card:before {display:none}
.exercise-step .activity-icon {width:43px;height:43px;border-radius:11px;background:linear-gradient(145deg,#f0edff,#e2ebff);font-size:26px;filter:none}
.interactive-dashboard-body .exercise-step .exercise-card .card-copy {padding:0 35px 0 9px}
.interactive-dashboard-body .exercise-step .exercise-card .card-copy small {margin-bottom:1px;font-size:9px}
.interactive-dashboard-body .exercise-step .exercise-card .card-copy h3 {margin-bottom:2px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.interactive-dashboard-body .exercise-step .exercise-card .card-copy p {display:block;min-height:0;margin:0;color:#747d9f;font-size:10px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.interactive-dashboard-body .exercise-step .exercise-card .card-meta {gap:7px;margin-top:3px;font-size:8px}
.interactive-dashboard-body .exercise-step .exercise-card .card-copy>.activity-launch {right:4px;bottom:50%;width:31px;min-width:31px;max-width:31px;height:31px;min-height:31px;max-height:31px;transform:translateY(50%);box-shadow:0 4px 9px rgba(83,47,207,.2)}
.exercise-step .activity-launch>span {transform:scale(.82)}
.interactive-dashboard-body .exercise-step .exercise-card .card-copy>.activity-launch:hover {transform:translateY(50%) translateX(2px) scale(1.03)}
.exercise-step .load-message {min-height:250px;margin:0;padding:20px;display:grid;place-items:center;border-style:dashed;background:#fbfbfe;color:#9a9fb8;font-size:12px}
.interactive-dashboard-body #interactive-access {margin:0;padding:8px 13px;border:1px solid #e3e6f2;background:#fff;color:#69749c;text-align:center}
@media(max-width:1180px){
  .selection-wizard {grid-template-columns:repeat(2,minmax(0,1fr))}
  .wizard-step {min-height:390px}
  .simple-intro .intro-copy {width:72%}
  .simple-intro .intro-student {right:-4%;width:43%}
}
@media(max-width:700px){
  .interactive-dashboard-body .interactive-topbar>.dashboard-search {display:none}
  .interactive-dashboard-body .simple-intro {min-height:230px;padding:21px}
  .simple-intro .intro-copy {width:100%}
  .interactive-dashboard-body .simple-intro h1 {max-width:480px;font-size:30px}
  .interactive-dashboard-body .simple-intro p {max-width:390px;font-size:15px}
  .simple-intro .intro-student {right:-20%;bottom:-45%;width:64%;height:110%;opacity:.45}
  .hero-search {width:min(340px,100%)}
  .selection-wizard {grid-template-columns:1fr}
  .wizard-step {min-height:0}
  .wizard-placeholder,.exercise-step .load-message {min-height:110px}
  .topic-options,.interactive-dashboard-body .exercise-step .exercise-grid {max-height:none}
}

/* Clean progressive layout: one decision at a time. */
.clean-intro,.clean-helper,.selection-flow,.activity-catalog {
  font-family:"Segoe UI Variable Text","Segoe UI Variable","Segoe UI",sans-serif;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
}
.interactive-dashboard-body .interactive-topbar>.dashboard-search {display:flex;visibility:visible;pointer-events:auto}
.interactive-dashboard-body .clean-intro {display:flex;align-items:center;min-height:112px;margin:0 0 10px;padding:22px 28px;border:1px solid #e3e6f3;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(44,51,112,.04)}
.interactive-dashboard-body .clean-intro:before {display:none}
.clean-intro .intro-copy {width:100%;padding:0}
.interactive-dashboard-body .clean-intro h1 {margin:0 0 5px;color:#17236d;font-size:31px;line-height:1.12;letter-spacing:-.6px}
.interactive-dashboard-body .clean-intro p {margin:0;color:#737da3;font-size:15px;line-height:1.4}
.clean-helper {min-height:42px;padding:6px 11px 6px 15px;background:#fff}
.clean-helper>span {min-width:0;overflow:hidden;color:#5f6c96;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.interactive-page .clean-helper>button {flex:0 0 auto;min-height:30px;padding:5px 11px;background:#f6f3ff;color:#603bd7;box-shadow:none;font-size:11px}
.selection-flow {display:grid!important;gap:8px!important;margin:0!important}
.selection-step {display:grid;grid-template-columns:235px minmax(0,1fr);align-items:start;gap:18px;min-height:84px;padding:14px 17px;border:2px solid #cfdcf0;border-radius:15px;background:#f7faff;box-shadow:0 5px 15px rgba(43,50,111,.035)}
.selection-step:nth-child(2) {border-color:#ddd1f0;background:#faf7ff}
.selection-step:nth-child(3) {border-color:#cce2dc;background:#f5fbf9}
.selection-step:nth-child(4) {border-color:#ead8b9;background:#fffaf2}
.selection-step[hidden] {display:none!important}
.step-heading {display:flex;align-items:center;gap:10px;min-width:0;padding-top:2px}
.step-heading>span,.activity-heading>div>span {display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#8b65f2,#673ce0);color:#fff;font-size:17px;font-weight:700;box-shadow:0 4px 10px rgba(94,54,202,.2)}
.step-heading>div {display:grid;gap:2px;min-width:0}
.step-heading strong {color:#19266e;font-size:17px;font-weight:650;line-height:1.22;letter-spacing:-.12px}
.step-heading small {color:#7e88a9;font-size:12px;font-weight:400;line-height:1.35;letter-spacing:.05px}
.interactive-page .selection-step .filter-options {display:flex;align-items:center;flex-wrap:wrap;gap:7px;width:100%;min-width:0;padding:2px 3px;overflow:visible}
.interactive-page .selection-step .filter-pill {display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 1 auto;max-width:100%;min-height:43px;padding:8px 15px;border:1px solid #dce2ef;border-radius:11px;background:rgba(255,255,255,.74);color:#273475;font-family:inherit;font-size:14px;font-weight:650;line-height:1.35;letter-spacing:-.08px;box-shadow:none;text-align:left;white-space:normal}
.interactive-page .selection-step .filter-pill span {display:grid;place-items:center;min-width:23px;height:23px;margin:0;padding:0 6px;border-radius:12px;background:#f0edff;color:#704ae0;font-size:10px}
.interactive-page .selection-step .filter-pill:hover {border-color:#b9acf1;background:#f8f5ff;transform:none}
.interactive-page .selection-step .filter-pill.active {border-color:transparent;background:linear-gradient(135deg,#8258ed,#693dde);color:#fff;box-shadow:0 4px 10px rgba(91,53,195,.18)}
.interactive-page .selection-step .filter-pill.active span {background:rgba(255,255,255,.18);color:#fff}
.activity-catalog {padding:17px;border:2px solid #d1d7e9;border-radius:16px;background:#f8f8ff;box-shadow:0 7px 19px rgba(43,50,111,.04)}
.activity-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.activity-heading>div {display:flex;align-items:center;gap:10px}
.activity-heading h2 {margin:0;color:#18256d;font-size:21px;font-weight:700;letter-spacing:-.25px}
.activity-heading>small {color:#737e9f;font-size:13px;font-weight:400}
.interactive-dashboard-body .activity-catalog .exercise-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0}
.interactive-dashboard-body .activity-catalog .exercise-card {position:relative;display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;width:100%;min-height:92px;margin:0;padding:13px;border:1px solid #dfe4f1;border-radius:13px;background:rgba(255,255,255,.82);color:#17236b;font-family:inherit;box-shadow:none;overflow:hidden;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.interactive-dashboard-body .activity-catalog .exercise-card:nth-child(n) {background:rgba(255,255,255,.82)}
.interactive-dashboard-body .activity-catalog .exercise-card:before {display:none}
.activity-catalog .activity-icon {width:58px;height:58px;border-radius:14px;background:linear-gradient(145deg,#f2efff,#e8efff);font-size:34px;filter:none}
.interactive-dashboard-body .activity-catalog .exercise-card .card-copy {display:flex;align-items:center;min-width:0;min-height:58px;padding:0 5px 0 12px}
.interactive-dashboard-body .activity-catalog .exercise-card .card-copy small,
.interactive-dashboard-body .activity-catalog .exercise-card .card-description,
.interactive-dashboard-body .activity-catalog .exercise-card .card-meta {display:none}
.interactive-dashboard-body .activity-catalog .exercise-card .card-title {display:block;margin:0;color:#17236b;font-size:19px;font-weight:700;line-height:1.25;letter-spacing:-.18px;white-space:normal;overflow:visible;text-overflow:clip}
.interactive-dashboard-body .activity-catalog .exercise-card:hover {filter:none;transform:translateY(-2px);border-color:#9c82ee;background:#fff;box-shadow:0 8px 18px rgba(79,57,162,.12)}
.interactive-dashboard-body .activity-catalog .exercise-card:focus-visible {outline:3px solid rgba(111,70,228,.3);outline-offset:2px;border-color:#7d57e8;background:#fff}
.activity-catalog .load-message {grid-column:1/-1;margin:0;min-height:100px;display:grid;place-items:center;border:1px dashed #dfe3ef;background:#fbfcff;color:#8c93ac;font-size:12px}
.interactive-dashboard-body #interactive-access {margin:0;padding:8px 13px;border:1px solid #e2e5f1;background:#fff;color:#657099;text-align:center}
.exercise-confirm {position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:24px;background:rgba(21,29,67,.48);backdrop-filter:blur(5px)}
.exercise-confirm[hidden] {display:none!important}
.exercise-confirm-card {width:min(440px,100%);padding:30px 30px 26px;border:1px solid #e0e4f1;border-radius:22px;background:#fff;color:#17236b;text-align:center;box-shadow:0 24px 70px rgba(20,28,74,.26)}
.exercise-confirm-icon {display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;border-radius:18px;background:#f0ebff;color:#693dde;font-size:29px;font-weight:800}
.player .exercise-confirm-card h2 {margin:0 0 9px;padding:0;border:0;background:none;color:#17236b;font-size:25px;line-height:1.25;box-shadow:none}
.exercise-confirm-card p {margin:0;color:#687498;font-size:16px;line-height:1.55}
.exercise-confirm-actions {display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:24px}
.interactive-page .exercise-confirm-actions button {min-height:50px;padding:11px 16px;border-radius:13px;font-family:inherit;font-size:15px;font-weight:700;box-shadow:none}
.interactive-page .exercise-confirm-actions .soft {border:1px solid #dce2ef;background:#f7f8fc;color:#354477}
.interactive-page .exercise-confirm[data-tone="exit"] #exercise-confirm-action {background:#be3f55;color:#fff}
.interactive-page .exercise-confirm[data-tone="restart"] #exercise-confirm-action {background:linear-gradient(135deg,#8056ed,#673ad8);color:#fff}
@media(max-width:520px){.exercise-confirm {padding:16px}.exercise-confirm-card {padding:25px 18px 20px}.exercise-confirm-actions {grid-template-columns:1fr}.interactive-page .exercise-confirm-actions button {width:100%}}
@media(max-width:1200px){
  .interactive-dashboard-body .activity-catalog .exercise-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .interactive-dashboard-body .clean-intro {min-height:96px;padding:18px}
  .interactive-dashboard-body .clean-intro h1 {font-size:26px}
  .interactive-dashboard-body .clean-intro p {font-size:13px}
  .selection-step {grid-template-columns:1fr;gap:9px;padding:12px}
  .interactive-page .selection-step .filter-options {padding-bottom:5px}
  .activity-heading {align-items:flex-start;flex-direction:column}
  .interactive-dashboard-body .activity-catalog .exercise-grid {grid-template-columns:1fr}
}

/* Sirli kartochkalar: complete objects without circular holders. */
.player[data-mode="mystery"] {--accent:#2f8e68;--accent-dark:#226849;--accent-soft:#e5f7ec;--scene:none;background:radial-gradient(circle at 50% 30%,#ffffffd9 0,transparent 48%),radial-gradient(ellipse at 8% 16%,#57b989 0 7%,transparent 7.3%),radial-gradient(ellipse at 94% 20%,#66c18f 0 8%,transparent 8.3%),linear-gradient(160deg,#efffdc,#dff4c4 55%,#c7e9a9)}
.player[data-mode="mystery"]:before {background-image:radial-gradient(circle at 9% 76%,#ffcf66 0 8px,transparent 9px),radial-gradient(circle at 88% 74%,#ee829d 0 10px,transparent 11px),radial-gradient(circle at 16% 24%,#df86dc 0 22px,transparent 23px),radial-gradient(circle at 82% 16%,#ffc558 0 25px,transparent 26px);opacity:.58}
.player[data-mode="mystery"]:after {background-image:radial-gradient(ellipse at 20% 100%,#9fd78a 0 29%,transparent 29.4%),radial-gradient(ellipse at 78% 106%,#8dce82 0 34%,transparent 34.4%);opacity:.7}
.player[data-mode="mystery"] .stage {max-width:940px}
.mystery-hint {display:grid;justify-items:center;gap:8px;margin:0 auto 12px!important}
.mystery-hint span {padding:7px 18px;border:1px solid #d7e8d1;border-radius:999px;background:#fffffff0;color:#426a59;font-size:13px;font-weight:800;letter-spacing:1px}
.mystery-hint b {padding:9px 18px;border-radius:12px;background:#ffffffe8;color:#31546b;font-size:clamp(20px,2vw,29px);box-shadow:0 5px 14px #456e5520}
.mystery-grid {position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,150px);justify-content:center;gap:12px 62px;max-width:760px;margin:0 auto;padding:5px 0 2px}
.interactive-page .mystery-balloon {position:relative;width:150px;height:185px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#2d4662;box-shadow:none;overflow:visible;filter:none}
.interactive-page .mystery-balloon:hover {filter:none;transform:translateY(-5px)}
.interactive-page .mystery-balloon:focus-visible {outline:0}
.interactive-page .mystery-balloon:focus-visible .balloon-body {outline:5px solid #fff;box-shadow:0 0 0 9px #f3b84dc7,0 13px 24px #31516c2b,inset -15px -20px 30px #67133e25}
.balloon-body {position:absolute;z-index:3;left:50%;top:4px;width:116px;height:136px;border-radius:54% 46% 50% 50% / 48% 48% 56% 52%;background:radial-gradient(circle at 66% 24%,#ffffffd9 0 6px,transparent 7px),radial-gradient(circle at 32% 24%,#ffffff75 0 12px,transparent 13px),linear-gradient(145deg,color-mix(in srgb,var(--balloon),white 24%),var(--balloon) 56%,color-mix(in srgb,var(--balloon),black 20%));box-shadow:0 13px 24px #31516c2b,inset -15px -20px 30px #67133e25,inset 12px 10px 24px #ffffff28;transform:translateX(-50%);transition:transform .18s ease,filter .18s ease}
.mystery-balloon:hover .balloon-body {transform:translateX(-50%) scale(1.045);filter:saturate(1.08)}
.balloon-body i {position:absolute;left:26px;top:19px;width:17px;height:28px;border-radius:50%;background:#ffffff65;transform:rotate(28deg)}
.balloon-knot {position:absolute;z-index:4;left:50%;top:133px;width:23px;height:19px;background:color-mix(in srgb,var(--balloon),black 13%);clip-path:polygon(50% 0,100% 100%,0 100%);transform:translateX(-50%)}
.balloon-string {position:absolute;z-index:2;left:50%;top:150px;width:18px;height:32px;border-left:4px solid color-mix(in srgb,var(--balloon),#2554b8 35%);border-bottom:4px solid color-mix(in srgb,var(--balloon),#2554b8 35%);border-radius:0 0 0 14px;transform:translateX(-2px) rotate(-7deg)}
.mystery-balloon>b {position:absolute;z-index:5;right:2px;bottom:25px;display:grid;place-items:center;width:34px;height:34px;border:2px solid #fff;border-radius:50%;background:#fffffff2;color:#465c78;font-size:16px;box-shadow:0 4px 11px #31516c24}
.mystery-reveal {position:relative;z-index:2;width:min(820px,100%);margin:36px auto;padding:38px 42px;border:2px solid #d7e8d1;border-radius:28px;background:#fffffff2;box-shadow:0 18px 46px #31516c20;text-align:center}
.mystery-reveal-badge {display:inline-block;padding:8px 17px;border-radius:999px;background:#e9f7dd;color:#3a7655;font-size:13px;font-weight:850;letter-spacing:1.2px}
.player .mystery-reveal h2 {margin:22px 0;padding:22px;border:0;background:#f8fbf4;color:#213e59;font-size:clamp(31px,4vw,54px);box-shadow:none}
.player .mystery-reveal>button {min-width:230px;background:linear-gradient(135deg,#31906a,#26704f);box-shadow:0 5px 0 #1b573c;color:#fff}
#mystery-answer {margin:22px auto 0;padding:18px;border:1px solid #cde2d0;border-radius:18px;background:#eaf8ec;color:#245b3c}
#mystery-answer strong {display:block;font-size:clamp(28px,3vw,43px)}
#mystery-answer p {margin:8px 0 0;color:#4d6b5a;font-size:17px;line-height:1.5}
.mystery-mini {font-size:27px;letter-spacing:5px}
@media(max-width:700px){.mystery-grid{grid-template-columns:repeat(2,130px);gap:5px 32px}.interactive-page .mystery-balloon{width:130px;height:174px}.balloon-body{width:104px;height:124px}.balloon-knot{top:121px}.balloon-string{top:138px}.mystery-reveal{margin:20px auto;padding:26px 17px}}
@media(max-width:380px){.mystery-grid{grid-template-columns:repeat(2,112px);gap:3px 16px}.interactive-page .mystery-balloon{width:112px}.balloon-body{width:94px;height:116px}.balloon-knot{top:113px}.balloon-string{top:130px}}
@media(prefers-reduced-motion:reduce){.balloon-body,.interactive-page .mystery-balloon{transition:none}}

/* A different complete object is used for every new mystery round. */
.mystery-shape-apple .balloon-body {top:20px;width:124px;height:116px;border-radius:45% 45% 50% 50% / 42% 42% 58% 58%;background:radial-gradient(circle at 33% 25%,#ffffff8c 0 13px,transparent 14px),linear-gradient(145deg,color-mix(in srgb,var(--balloon),white 18%),var(--balloon) 58%,color-mix(in srgb,var(--balloon),black 24%));box-shadow:0 13px 24px #31516c26,inset -16px -15px 28px #55122c28,inset 10px 8px 20px #ffffff29}
.mystery-shape-apple .balloon-body i {left:25px;top:19px;width:18px;height:28px}
.mystery-shape-apple .balloon-knot {z-index:2;top:3px;width:9px;height:34px;border-radius:7px;background:#79502d;clip-path:none;transform:translateX(-50%) rotate(7deg)}
.mystery-shape-apple .balloon-string {z-index:3;top:7px;width:37px;height:20px;border:0;border-radius:90% 8% 90% 8%;background:linear-gradient(145deg,#78c95e,#358849);transform:translateX(1px) rotate(-22deg)}

.mystery-shape-star .balloon-body {top:7px;width:138px;height:135px;border-radius:0;clip-path:polygon(50% 0,61% 34%,98% 34%,68% 55%,79% 92%,50% 70%,21% 92%,32% 55%,2% 34%,39% 34%);background:linear-gradient(145deg,color-mix(in srgb,var(--balloon),white 42%),var(--balloon) 58%,color-mix(in srgb,var(--balloon),black 14%));box-shadow:none;filter:drop-shadow(0 13px 12px #31516c2c)}
.mystery-shape-star .balloon-body i {left:38px;top:34px;width:15px;height:28px;background:#ffffff78}
.mystery-shape-star .balloon-knot,.mystery-shape-star .balloon-string {display:none}

.mystery-shape-heart .balloon-body {top:12px;width:136px;height:128px;border-radius:0;clip-path:polygon(50% 96%,8% 58%,1% 36%,5% 17%,18% 5%,34% 3%,50% 19%,66% 3%,82% 5%,95% 17%,99% 36%,92% 58%);background:radial-gradient(circle at 30% 25%,#ffffff80 0 13px,transparent 14px),linear-gradient(145deg,color-mix(in srgb,var(--balloon),white 24%),var(--balloon) 60%,color-mix(in srgb,var(--balloon),black 18%));box-shadow:none;filter:drop-shadow(0 13px 12px #31516c2c)}
.mystery-shape-heart .balloon-body i {left:29px;top:25px;width:17px;height:28px}
.mystery-shape-heart .balloon-knot,.mystery-shape-heart .balloon-string {display:none}

.mystery-shape-flower .balloon-body {top:48px;width:54px;height:54px;border:6px solid #fff3a8;border-radius:50%;background:linear-gradient(145deg,#ffe97c,#f1ad2c);box-shadow:0 8px 14px #31516c22;overflow:visible}
.mystery-shape-flower .balloon-body:before {content:'';position:absolute;z-index:-1;left:-7px;top:-7px;width:56px;height:56px;border-radius:50%;background:color-mix(in srgb,var(--balloon),white 16%);box-shadow:0 -43px 0 color-mix(in srgb,var(--balloon),white 16%),41px -13px 0 color-mix(in srgb,var(--balloon),white 10%),25px 34px 0 var(--balloon),-25px 34px 0 color-mix(in srgb,var(--balloon),black 5%),-41px -13px 0 color-mix(in srgb,var(--balloon),white 7%)}
.mystery-shape-flower .balloon-body i {left:11px;top:9px;width:11px;height:17px;background:#ffffff71}
.mystery-shape-flower .balloon-knot {z-index:1;top:99px;width:8px;height:65px;border-radius:8px;background:#4a9c56;clip-path:none;transform:translateX(-50%)}
.mystery-shape-flower .balloon-string {z-index:2;top:126px;width:34px;height:19px;border:0;border-radius:90% 8% 90% 8%;background:#70bd62;transform:translateX(3px) rotate(-24deg)}

.mystery-shape-gift .balloon-body {top:32px;width:130px;height:103px;border-radius:12px;background:linear-gradient(145deg,color-mix(in srgb,var(--balloon),white 22%),var(--balloon) 58%,color-mix(in srgb,var(--balloon),black 17%));box-shadow:0 13px 22px #31516c29,inset -12px -10px 22px #55122c1d}
.mystery-shape-gift .balloon-body i {left:54px;top:0;width:22px;height:103px;border-radius:0;background:#ffe486b8;transform:none}
.mystery-shape-gift .balloon-body:after {content:'';position:absolute;left:0;top:39px;width:100%;height:20px;background:#ffe486c9}
.mystery-shape-gift .balloon-knot {top:4px;width:68px;height:34px;background:transparent;clip-path:none;transform:translateX(-50%)}
.mystery-shape-gift .balloon-knot:before,.mystery-shape-gift .balloon-knot:after {content:'';position:absolute;top:2px;width:34px;height:27px;border:8px solid #f3c94f;background:transparent}
.mystery-shape-gift .balloon-knot:before {left:0;border-radius:50% 50% 8% 50%;transform:rotate(15deg)}
.mystery-shape-gift .balloon-knot:after {right:0;border-radius:50% 50% 50% 8%;transform:rotate(-15deg)}
.mystery-shape-gift .balloon-string {display:none}

.mystery-shape-apple:focus-visible .balloon-body,.mystery-shape-star:focus-visible .balloon-body,.mystery-shape-heart:focus-visible .balloon-body,.mystery-shape-flower:focus-visible .balloon-body,.mystery-shape-gift:focus-visible .balloon-body {outline:5px solid #fff;outline-offset:5px}
@media(max-width:700px){.mystery-shape-star .balloon-body,.mystery-shape-heart .balloon-body{transform:translateX(-50%) scale(.9)}.mystery-shape-star:hover .balloon-body,.mystery-shape-heart:hover .balloon-body{transform:translateX(-50%) scale(.94)}.mystery-shape-gift .balloon-body{width:116px}.mystery-shape-flower .balloon-body{width:50px;height:50px}}

/* Keep the selected class and Unit readable in the compact fullscreen toolbar. */
.player:fullscreen .player-toolbar {height:64px}

/* Polished layered SVG artwork replaces the earlier flat CSS shapes. */
.interactive-page .mystery-choice {display:grid;place-items:start center;height:190px;isolation:isolate}
.mystery-art {display:block;width:154px;height:176px;overflow:visible;transform:translateY(-2px) scale(.94);transform-origin:50% 56%;transition:transform .2s ease,filter .2s ease}
.interactive-page .mystery-choice:hover .mystery-art {transform:translateY(-8px) scale(1)}
.interactive-page .mystery-choice:focus-visible .mystery-art {filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #f0af32)}
.interactive-page .mystery-choice>b {right:-1px;bottom:13px;width:36px;height:36px;border-width:3px;background:#fffffff7;font-size:16px;box-shadow:0 6px 14px #29465f2e}
@media(max-width:700px){.interactive-page .mystery-choice{height:177px}.mystery-art{width:140px;height:164px}.interactive-page .mystery-choice>b{right:-4px;bottom:11px}}
@media(max-width:380px){.mystery-art{width:124px;height:154px}.interactive-page .mystery-choice>b{right:-6px}}
@media(prefers-reduced-motion:reduce){.mystery-art{transition:none}}
