
.tece-app{--tece-main:#159bc0;--tece-dark:#126b86;--tece-soft:#eaf9fd;--tece-green:#20a66a;--tece-red:#e64a4a;max-width:1120px;margin:30px auto;padding:0 16px;font-family:Arial,Helvetica,sans-serif;color:#19323b}.tece-app *{box-sizing:border-box}.tece-hero{text-align:center;margin-bottom:22px}.tece-logo-wrap{display:flex;justify-content:center;margin:0 auto 14px}.tece-logo-wrap img{max-width:280px;max-height:220px;width:auto;height:auto;object-fit:contain}.tece-banner{width:100%;overflow:hidden;border-radius:22px;margin:0 auto 22px;background:#f4fbfd}.tece-banner img{display:block;width:100%;height:auto;max-width:100%}.tece-hero h1{font-size:clamp(28px,5vw,48px);margin:10px 0 8px;color:var(--tece-dark);font-weight:800}.tece-hero p{font-size:17px;line-height:1.7;margin:0 auto;max-width:760px}.tece-card{background:#fff;border:1px solid #dceef3;border-radius:28px;box-shadow:0 18px 55px rgba(20,90,110,.10);padding:clamp(20px,4vw,42px)}.tece-topic-screen{text-align:center}.tece-badge{display:inline-block;background:var(--tece-soft);color:var(--tece-dark);padding:8px 14px;border-radius:999px;font-weight:700;font-size:13px}.tece-topic-screen h2{font-size:clamp(24px,4vw,36px);margin:15px 0 8px}.tece-topic-screen>p{max-width:700px;margin:0 auto 25px;line-height:1.7}.tece-topic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.tece-topic{border:2px solid #e0f0f4;background:linear-gradient(145deg,#fff,#f7fdff);border-radius:22px;padding:24px;text-align:left;cursor:pointer;transition:.2s;min-height:190px}.tece-topic:hover:not(:disabled){transform:translateY(-4px);border-color:var(--tece-main);box-shadow:0 12px 30px rgba(21,155,192,.15)}.tece-topic:disabled{opacity:.5;cursor:not-allowed}.tece-topic-icon{font-size:30px;display:block;margin-bottom:10px}.tece-topic strong{display:block;font-size:19px;margin-bottom:7px}.tece-topic small{display:block;color:#60777e;min-height:42px;line-height:1.5}.tece-topic em{display:block;margin-top:12px;color:var(--tece-main);font-style:normal;font-size:13px;font-weight:700}.tece-topic-pagination{display:flex;justify-content:center;gap:7px;margin-top:22px;flex-wrap:wrap}.tece-page-btn{border:1px solid #cfe5eb;background:#fff;border-radius:10px;min-width:38px;height:38px;cursor:pointer;font-weight:700;color:var(--tece-dark)}.tece-page-btn.active{background:var(--tece-main);color:#fff;border-color:var(--tece-main)}.tece-test-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.tece-test-topic{font-weight:800;font-size:20px}.tece-progress-text{font-size:13px;color:#71878e;margin-top:4px}.tece-timer{font-size:25px;font-weight:900;color:var(--tece-dark);background:#eefaff;padding:9px 16px;border-radius:14px;min-width:110px;text-align:center}.tece-timer.danger{color:#fff;background:var(--tece-red)}.tece-progress{height:9px;background:#e8f2f5;border-radius:20px;overflow:hidden;margin:10px 0 28px}.tece-progress span{display:block;height:100%;width:3%;background:var(--tece-main);border-radius:20px;transition:.2s}.tece-question h3{font-size:clamp(21px,3vw,29px);line-height:1.55;margin:0 0 22px;white-space:pre-wrap}.tece-type-label{display:inline-block;background:#eef9fc;color:var(--tece-dark);font-size:12px;font-weight:800;padding:7px 11px;border-radius:999px;margin-bottom:13px}.tece-question-image{display:block;max-width:100%;max-height:360px;width:auto;height:auto;object-fit:contain;margin:0 auto 20px;border-radius:14px}.tece-answers{display:grid;gap:13px}.tece-answer{display:flex;align-items:flex-start;gap:12px;border:2px solid #e4eef1;border-radius:17px;padding:16px;cursor:pointer;transition:.15s}.tece-answer:hover{border-color:#7bc7da;background:#f7fdff}.tece-answer input{margin-top:4px;accent-color:var(--tece-main)}.tece-answer-label{font-weight:800;color:var(--tece-main);min-width:22px}.tece-answer-text{line-height:1.55;white-space:pre-wrap}.tece-option-image{display:block;max-width:260px;max-height:180px;width:auto;height:auto;object-fit:contain;border-radius:10px}.tece-arrange-input{width:100%;border:2px solid #dcebef;border-radius:15px;padding:16px;font-size:18px;line-height:1.5;outline:none}.tece-arrange-input:focus{border-color:var(--tece-main);box-shadow:0 0 0 3px rgba(21,155,192,.1)}.tece-paragraph-content,.tece-paragraph-review{font-size:18px;line-height:1.85;background:#f9fdfe;border:1px solid #e1f0f3;border-radius:18px;padding:22px;white-space:pre-wrap}.tece-nav{display:flex;justify-content:space-between;gap:10px;margin-top:28px;flex-wrap:wrap}.tece-btn{border:0;border-radius:14px;padding:13px 20px;font-size:15px;font-weight:800;cursor:pointer;background:#e9f6fa;color:var(--tece-dark)}.tece-next,.tece-submit,.tece-retry{background:var(--tece-main);color:#fff}.tece-submit{display:none}.tece-result-screen{text-align:center}.tece-result-hero{background:linear-gradient(135deg,#effcff,#fff8e8);border-radius:25px;padding:30px 15px}.tece-result-stars{letter-spacing:8px;color:#f3b72f;font-size:23px}.tece-result-circle{width:150px;height:150px;margin:15px auto;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:9px solid #a8dfeb;box-shadow:0 10px 35px rgba(0,0,0,.08);font-weight:900}.tece-result-circle .tece-score{font-size:47px;color:var(--tece-dark)}.tece-result-circle small{font-size:18px;color:#79929a;margin-top:23px}.tece-result-hero h2{font-size:30px;margin:8px 0}.tece-result-message{margin:0;color:#526d75}.tece-result-stats{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px 0}.tece-stat{min-width:150px;background:#f5fbfd;border-radius:16px;padding:16px}.tece-stat strong{display:block;font-size:25px;color:var(--tece-dark)}.tece-review{text-align:left;margin-top:25px}.tece-review h3{margin-bottom:12px}.tece-review-item{border:2px solid #e5eef0;border-radius:16px;padding:15px;margin:10px 0}.tece-review-item.correct{border-color:#9fe0c1;background:#f2fff8}.tece-review-item.wrong{border-color:#f2aaaa;background:#fff5f5}.tece-review-item.paragraph{border-color:#d7e9ee;background:#fbfeff}.tece-review-q{font-weight:800;line-height:1.5}.tece-review-given{margin-top:7px;line-height:1.6}.tece-correct{color:var(--tece-green);font-weight:800}.tece-wrong{color:var(--tece-red);font-weight:800}.tece-review-image{display:block;max-width:220px;max-height:150px;width:auto;height:auto;object-fit:contain;border-radius:9px;margin:8px 0}.tece-meaning,.tece-explanation{margin-top:13px;padding:13px 15px;border-radius:12px;background:#fff}.tece-explanation{border-left:4px solid #f1b83b}.tece-result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:25px}.tece-empty{padding:25px;background:#fff8e8;border-radius:15px}.tece-user-modal{position:fixed;inset:0;background:rgba(10,45,55,.55);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}.tece-user-modal[hidden]{display:none}.tece-user-modal-box{background:#fff;width:min(500px,100%);border-radius:26px;padding:32px;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.25);text-align:center}.tece-modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;cursor:pointer;color:#60777e}.tece-user-modal input{display:block;width:100%;padding:14px 15px;border:1px solid #d6e7eb;border-radius:12px;margin:10px 0;font-size:15px}.tece-user-modal .tece-btn{width:100%;margin-top:8px}.tece-toast{position:fixed;right:20px;bottom:20px;z-index:999999;background:#183b46;color:#fff;padding:14px 18px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.2);display:none}.tece-toast.show{display:block}@media(max-width:600px){.tece-test-top{align-items:flex-start}.tece-timer{font-size:20px;min-width:92px}.tece-nav .tece-btn{flex:1}.tece-logo-wrap img{max-width:220px}.tece-option-image{max-width:190px}}
.tece-text-answer-wrap{max-width:720px;margin:8px auto 4px}.tece-text-answer-input{width:100%;border:2px solid #dcebef;border-radius:15px;padding:16px 18px;font-size:20px;line-height:1.5;outline:none;background:#fff}.tece-text-answer-input:focus{border-color:var(--tece-main);box-shadow:0 0 0 3px rgba(21,155,192,.1)}

/* AdSense banner: normal document flow, responsive and never positioned over the test UI. */
.tece-adsense-banner{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:14px auto 18px;
  padding:0;
  text-align:center;
  overflow:visible;
  position:relative;
  z-index:1;
}
.tece-adsense-banner > *{max-width:100%;box-sizing:border-box;}
.tece-adsense-banner ins.adsbygoogle{display:block;max-width:100%;margin:0 auto;}
@media (max-width:600px){
  .tece-adsense-banner{margin:10px auto 14px;}
}
