#topicGames{flex:1;min-height:0;overflow:auto;border-radius:22px}#topicGames[hidden]{display:none!important}.modern-games-layout:has(#topicGames:not([hidden])){grid-template-columns:minmax(0,1fr)!important}.modern-games-layout:has(#topicGames:not([hidden]))>.games-sidebar{display:none!important}.topic-catalog{padding:18px 12px;color:#274a6a}.topic-catalog>header>span,.topic-eyebrow{color:#2c8a80;letter-spacing:1.4px;font-size:10px;font-weight:900}.topic-catalog h1{font-size:26px;margin:6px 0}.topic-catalog header p{font-size:13px;margin:7px 0 15px}.topic-selectors{display:grid;grid-template-columns:1fr 1.5fr;gap:12px;margin-bottom:17px}.topic-selectors label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;min-width:0}.topic-selectors select{width:100%;min-width:0;padding:11px;border:1px solid #bededc;border-radius:13px;background:#fff;color:#29516c;font:inherit;font-size:13px}.topic-game-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.topic-game-card{min-width:0;background:#fffdf4;border:1px solid #c2dbd0;border-radius:23px;overflow:hidden;box-shadow:0 6px 14px #23476d15}.topic-card-art{height:180px;background:linear-gradient(transparent,#38694644),url('assets/topic-games/forest.webp') center 65%/cover;display:flex;align-items:end;justify-content:space-between;padding:14px 22px}.topic-workshop .topic-card-art{background-image:url('assets/topic-games/workshop.webp')}.topic-card-art img{width:115px;height:125px;object-fit:contain;filter:drop-shadow(0 5px 5px #143d5144)}.topic-card-art>span{font-size:65px;color:#f8d978;text-shadow:0 4px #9a6226}.topic-game-card>div:last-child{padding:17px}.topic-game-card small{font-size:9px;color:#25837b;font-weight:900;letter-spacing:.8px}.topic-game-card h2{font-size:23px;margin:5px 0;color:#24435e}.topic-game-card p{font-size:13px;line-height:1.5;min-height:38px;margin:5px 0 12px}.topic-game-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#578071}.topic-game-card button,.topic-primary{border:2px solid #7ce4ba;border-bottom:5px solid #0b795c;background:linear-gradient(#20bc89,#079c74);color:#fff;font:inherit;font-weight:900;border-radius:17px;padding:11px 18px;cursor:pointer;text-shadow:0 1px #07715244}.topic-reward-note{font-size:11px;line-height:1.5;color:#638092}.topic-play{min-height:100%;height:100%;display:flex;flex-direction:column;gap:10px;padding:14px;background:url('assets/topic-games/forest.webp') center/cover;color:#213f60;isolation:isolate}.topic-play.topic-workshop{background-image:url('assets/topic-games/workshop.webp')}.topic-play-head{display:flex;align-items:center;gap:10px;background:#fffdf1ec;border:1px solid #fff;border-radius:18px;padding:10px;flex:none}.topic-play-head>div{flex:1;min-width:0;display:flex;flex-direction:column}.topic-play-head strong{font-size:21px;line-height:1.2}.topic-play-head span{font-size:10px;color:#5e7188;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topic-play-head button{flex:none;background:#fff;border:1px solid #dbe5dd;border-radius:50%;width:36px;height:36px;color:#294868;font-size:18px;cursor:pointer}.topic-game-progress{display:flex;align-items:center;gap:13px;background:#fffdf0ee;border-radius:16px;padding:9px 14px;flex:none;font-size:13px}.topic-game-progress progress{flex:1;min-width:0;height:13px;border:0;accent-color:#1cb98a;border-radius:12px;overflow:hidden}.topic-clock{font-variant-numeric:tabular-nums;color:#ac6e22}.topic-play-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:2px}.topic-question{border:5px solid #c09653;border-bottom:8px solid #a4733c;border-radius:20px;padding:18px;background:linear-gradient(120deg,#fffdf0,#ffedc6);box-shadow:0 6px 12px #4e491b28;text-align:center}.topic-question>span{font-size:9px;font-weight:900;letter-spacing:1.1px;color:#9b6e3d}.topic-question h2{font-size:23px;line-height:1.35;margin:10px 0 2px;overflow-wrap:anywhere}.topic-question p{font-size:11px;margin:8px 0 0;color:#806645}.topic-leaves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1;min-height:140px}.topic-leaves button{min-width:0;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:3px solid #e2d7ae;border-bottom:6px solid #bcad79;border-radius:35px 20px 30px 20px;background:linear-gradient(130deg,#fffef5,#fff5db);padding:14px;color:#263f64;font:inherit;font-size:17px;font-weight:800;cursor:pointer;line-height:1.3;overflow-wrap:anywhere}.topic-leaves button>span{font-size:23px;color:#5aad58;flex:none}.topic-leaves button>b{font-size:20px}.topic-leaves button.is-correct,.topic-slot.is-correct{background:#0f9e76;color:#fff;border-color:#a4e7c1}.topic-leaves button.is-wrong,.topic-slot.is-wrong{background:#ffe0d8;color:#993c38;border-color:#e59480}.topic-feedback{border:2px solid #a6d2ab;border-radius:16px;background:#e3ffdfed;color:#185f49;padding:14px 16px;box-shadow:0 4px 7px #2d531c15;flex:none}.topic-feedback.is-wrong{background:#fff1e6f5;border-color:#e8a28e;color:#8d3d34}.topic-feedback strong{font-size:17px}.topic-feedback p{font-size:13px;line-height:1.45;margin:6px 0 0}.topic-hint{padding:8px;background:#fff9ecdf;border-radius:10px;font-size:11px;margin:0}.topic-play-actions{display:flex;justify-content:center;gap:10px;flex:none}.topic-primary{font-size:19px;min-width:180px;padding:12px 22px}.topic-secondary{padding:10px 15px;border:1px solid #d1bf9e;border-bottom:3px solid #bdab8a;border-radius:15px;background:#fffbf3;color:#5c5575;font:inherit;font-weight:800;cursor:pointer}.topic-play button:disabled{cursor:default}.topic-setup{margin:auto;max-width:510px;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:23px;background:#fff9e9ed;border:2px solid #fff4cd;border-radius:25px;overflow:auto;min-height:0}.topic-setup>img{width:140px;height:145px;object-fit:contain}.topic-setup h1{font-size:30px;margin:0}.topic-setup p{font-size:15px;line-height:1.5;margin:0}.topic-setup-info{background:#e9f4e4;border-radius:12px;padding:10px 15px;line-height:1.7;font-size:12px}.topic-setup small{font-size:11px}.topic-setup .topic-primary{width:min(300px,100%)}.topic-setup .topic-secondary{font-size:13px}.topic-stars{color:#e0a62c;font-size:30px}.topic-score{font-size:38px;color:#16826d}.topic-workbench{display:flex;gap:7px;flex-wrap:wrap;background:#ab7b4b;border:4px solid #d0a574;border-radius:18px;padding:11px;box-shadow:0 5px #815737}.topic-slot{min-width:65px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;border:2px dashed #c9ad83;background:#fff7de;border-radius:10px;padding:10px;font:inherit;font-weight:800;font-size:14px;color:#526866;min-height:70px}.topic-slot small{font-size:8px;color:#7f7464;white-space:nowrap}.topic-slot.filled{background:#e6ffd4;border-color:#83ba78;border-style:solid;color:#2f5c52;cursor:pointer}.topic-tiles{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.topic-tiles button{max-width:100%;border:2px solid #ccb3dc;border-bottom:5px solid #aa89b6;background:linear-gradient(#fff7fa,#efe0f4);border-radius:12px;padding:12px 15px;color:#4f4471;font:inherit;font-size:16px;font-weight:800;cursor:pointer;overflow-wrap:anywhere}.topic-tiles button:disabled{opacity:.35}.topic-error{font-size:12px;color:#953d32;background:#fff3e5;border-radius:10px;padding:7px;margin:0;flex:none}.topic-error:empty{display:none}.topic-play button:focus-visible,.topic-catalog button:focus-visible{outline:3px solid #2453ad;outline-offset:2px}.study-topic-games{margin:16px 0;padding:16px;border:1px solid #a5dcd2;border-radius:19px;background:linear-gradient(120deg,#e9faf2,#fff5dc)}.study-topic-games h3{margin:0 0 10px;font-size:18px;color:#225867}.study-topic-games>div{display:flex;gap:10px;flex-wrap:wrap}.study-topic-games button{border:1px solid #80c9b4;border-bottom:4px solid #249078;border-radius:14px;padding:12px 15px;background:#fff;color:#176756;font:inherit;font-weight:800;cursor:pointer}.study-topic-games p{font-size:11px;margin:10px 0 0;color:#507585}
@media(max-width:700px){.game-category-tabs button{font-size:11px!important;padding:8px 7px!important;min-width:0;flex:1}.game-category-tabs{gap:5px!important}.topic-catalog{padding:10px 3px}.topic-catalog h1{font-size:21px}.topic-selectors{grid-template-columns:1fr;gap:8px}.topic-selectors select{padding:8px;font-size:11px}.topic-game-cards{gap:10px}.topic-card-art{height:105px;padding:8px}.topic-card-art img{width:76px;height:88px}.topic-card-art>span{font-size:35px}.topic-game-card>div:last-child{padding:11px}.topic-game-card h2{font-size:17px}.topic-game-card p{font-size:11px;min-height:65px}.topic-game-card small{font-size:8px;letter-spacing:0}.topic-game-card footer{flex-direction:column;align-items:stretch;text-align:center;font-size:9px}.topic-game-card button{font-size:11px;padding:9px}.topic-play{padding:8px;gap:7px;border-radius:17px}.topic-play-head{padding:7px;gap:7px;border-radius:13px}.topic-play-head strong{font-size:17px}.topic-play-head span{font-size:9px}.topic-play-head button{width:29px;height:29px;font-size:15px}.topic-question{padding:12px;border-width:4px;border-bottom-width:6px}.topic-question h2{font-size:17px;margin:6px 0 0}.topic-question>span{font-size:7px;letter-spacing:.6px}.topic-question p{font-size:10px;margin-top:5px}.topic-leaves{gap:8px;min-height:112px}.topic-leaves button{padding:10px 8px;border-width:2px;border-bottom-width:4px;font-size:13px;gap:4px;border-radius:23px 14px}.topic-leaves button>span{font-size:17px}.topic-feedback{padding:10px 12px}.topic-feedback strong{font-size:14px}.topic-feedback p{font-size:11px}.topic-primary{font-size:15px;padding:10px 15px;min-width:140px}.topic-play-content{gap:9px}.topic-game-progress{padding:7px 10px;gap:9px;font-size:11px}.topic-game-progress progress{height:9px}.topic-workbench{padding:7px;gap:5px;border-width:3px}.topic-slot{font-size:11px;min-height:58px;padding:7px;min-width:56px;gap:3px}.topic-slot small{font-size:7px}.topic-tiles{gap:6px}.topic-tiles button{font-size:12px;padding:9px 10px}.topic-secondary{font-size:12px;padding:8px 10px}.topic-setup{padding:16px;gap:10px}.topic-setup>img{width:105px;height:105px}.topic-setup h1{font-size:25px}.topic-setup p{font-size:13px}.topic-setup-info{font-size:11px}.topic-score{font-size:29px}}
@media(max-height:680px){.topic-play{gap:5px;padding:6px}.topic-play-content{gap:6px}.topic-question{padding:8px}.topic-question h2{font-size:15px}.topic-question>span{font-size:7px}.topic-leaves{min-height:96px}.topic-leaves button{font-size:12px;padding:8px 6px}.topic-feedback{padding:8px}.topic-feedback strong{font-size:12px}.topic-feedback p{font-size:10px;margin-top:4px}.topic-hint{font-size:9px;padding:5px}.topic-setup>img{width:65px;height:65px}.topic-setup{gap:7px;padding:13px}.topic-setup h1{font-size:22px}.topic-setup p{font-size:12px}.topic-primary{padding:8px 12px}.topic-tiles button{font-size:11px;padding:7px 9px}.topic-slot{min-height:44px}.topic-game-progress{padding:5px 9px}.topic-play-head strong{font-size:15px}.topic-play-head{padding:5px 7px}}
@media(prefers-reduced-motion:no-preference){.topic-feedback{animation:topic-feedback-in .22s ease-out}.topic-leaves button,.topic-tiles button{transition:transform .12s,box-shadow .12s}.topic-leaves button:active,.topic-tiles button:active{transform:scale(.97)}@keyframes topic-feedback-in{from{transform:translateY(5px);opacity:.3}to{transform:none;opacity:1}}}

#topicGames .topic-feedback{background:#e3ffdf;opacity:1}#topicGames .topic-feedback.is-wrong{background:#fff1e6;opacity:1}.game-category-tabs #topicsTab[aria-selected=true]{background:linear-gradient(#1abc8d,#079b73)!important;color:white!important;box-shadow:0 3px #0b735b!important}.topic-play .topic-question{flex:none}.topic-play .topic-error{max-height:55px;overflow:auto}
