@font-face{font-family:Noto;src:url('./assets/noto-sans-thai.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--ink:#20242a;--muted:#68707b;--yellow:#ffda31;--paper:#f5f6f7;--line:#e1e4e8;--green:#1b7162;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Noto,system-ui,sans-serif;font-size:16px;line-height:1.65}button,a,input{ -webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.43}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #167b87;outline-offset:4px}a{color:inherit;text-underline-offset:4px}button{color:inherit}.skip-link{position:fixed;top:-100px;left:20px;padding:10px;background:var(--yellow);z-index:100}.skip-link:focus{top:10px}.site-header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{max-width:1200px;margin:auto;padding:18px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{background:none;border:0;display:flex;align-items:center;gap:12px;padding:0;text-align:left}.brand img{width:48px;height:48px;object-fit:contain}.brand strong{display:block;font-size:22px;font-weight:850;line-height:1.2}.brand small{display:block;font-size:10px;letter-spacing:1.4px;margin-top:6px;font-weight:700;color:var(--muted)}.brand-dot{color:#c69b00}.text-button{background:none;border:none;padding:9px 12px;font-size:14px;font-weight:650}.text-button:hover{text-decoration:underline}nav{display:flex;gap:8px}main{max-width:1200px;margin:auto;padding:0 36px;min-height:75vh}main:focus{outline:0}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:65px;align-items:center;padding:68px 0 44px}.eyebrow{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:750;letter-spacing:1px}.eyebrow:before{content:'';width:24px;height:4px;background:var(--yellow)}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(42px,4.8vw,68px);font-weight:900;line-height:1.28;letter-spacing:-1.8px;margin:20px 0}.hero h1 em{font-style:normal;box-shadow:inset 0 -.22em var(--yellow)}.hero-copy{max-width:480px;font-size:18px;color:var(--muted);line-height:1.9;margin-bottom:25px}.pills{display:flex;flex-wrap:wrap;gap:16px;margin:25px 0;color:#4b535e;font-size:14px}.pills span{display:flex;align-items:center;gap:8px}.pills b{font-size:21px;color:var(--ink);font-weight:800}.primary{border:1px solid var(--ink);border-radius:12px;background:var(--ink);color:#fff;font-weight:750;padding:14px 26px;min-height:52px;transition:transform .15s,background .15s}.primary:hover{background:#363d47;transform:translateY(-1px)}.primary.yellow{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}.primary.yellow:hover{background:#ffdf53}.secondary{border:1px solid #cdd2d9;border-radius:12px;background:#fff;padding:12px 20px;font-weight:650;min-height:48px}.secondary:hover{border-color:var(--ink)}.wide-button{width:100%}.fine{font-size:13px;color:var(--muted);line-height:1.8}.mode-choice{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.mode{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 16px;font-size:14px}.mode[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);font-weight:750}.hero-art{background:var(--ink);color:#fff;border-radius:28px;padding:28px 30px 25px;position:relative;box-shadow:0 20px 40px #1113180d;overflow:hidden}.art-top{display:flex;justify-content:space-between;font-size:12px;letter-spacing:1.5px;color:#d6d9dd}.art-tag{color:var(--yellow)}.demo-matrix{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:34px 0 28px}.demo-cell{aspect-ratio:1;background:#ffffff09;border:1px solid #ffffff15;border-radius:16px;display:grid;place-items:center}.demo-cell svg{width:74%;height:74%;color:#f8f7f3}.demo-cell.question{background:var(--yellow);color:var(--ink);font-size:58px;font-weight:850;border:0}.art-bottom{display:flex;justify-content:space-between;align-items:end;gap:12px}.art-bottom strong{font-size:19px;line-height:1.55}.art-bottom small{font-size:11px;letter-spacing:1px;color:#b3b9c2}.intro-strip{border-top:1px solid var(--line);padding:30px 0 42px;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.intro-item{display:flex;align-items:flex-start;gap:12px}.category-icon{width:36px;height:36px;display:grid;place-items:center;background:#e9ecef;border-radius:10px;font-size:13px;font-weight:800;flex-shrink:0}.intro-item h2{font-size:16px;margin:0;font-weight:750}.intro-item p{font-size:13px;color:var(--muted);margin:4px 0 0}.note-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 24px;margin-bottom:40px;display:flex;gap:14px;align-items:flex-start}.note-panel b{font-size:14px;white-space:nowrap}.note-panel p{margin:0;color:var(--muted);font-size:14px}.resume{border:1px solid #cdb660;background:#fffae6;border-radius:14px;padding:17px 20px;margin-top:25px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}.resume b{font-size:15px}.resume small{display:block;color:#6f6337;font-size:13px}.site-footer{max-width:1200px;margin:auto;padding:24px 36px 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;color:var(--muted);font-size:12px}.site-footer div{display:flex;gap:16px;align-items:center}.site-footer b{letter-spacing:1.4px;font-size:11px}.site-footer a{font-size:13px}.quiz-head{display:flex;justify-content:space-between;align-items:center;padding:28px 0 14px;gap:15px}.quiz-head h1{font-size:17px;margin:0;font-weight:750}.quiz-head .sub{font-size:12px;color:var(--muted)}.timer{font-variant-numeric:tabular-nums;font-weight:750;font-size:17px;background:#fff;padding:7px 14px;border-radius:10px;border:1px solid var(--line)}.timer.danger{background:#fff1ef;color:#b13b30}.quiz-progress{height:5px;border-radius:10px;background:#e1e4e8;margin-bottom:30px;overflow:hidden}.quiz-progress>span{display:block;height:100%;background:var(--yellow);transition:width .25s}.question-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.category-label{display:inline-block;font-size:12px;font-weight:750;border-radius:6px;background:#e7eceb;padding:4px 9px;color:#35524b}.level{font-size:12px;color:var(--muted);margin-left:10px}.question-head h2{font-size:clamp(23px,2.7vw,31px);font-weight:800;line-height:1.45;margin:10px 0 6px}.question-hint{color:var(--muted);font-size:14px;margin:0}.flag{border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 13px;white-space:nowrap;font-size:13px}.flag.active{background:#fff4b8;border-color:#d2b32e}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:stretch;margin-bottom:24px}.question-visual{min-height:325px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.question-visual .big-svg{width:100%;max-width:390px;max-height:325px;display:block}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-content:center}.option{position:relative;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #d9dee4;border-radius:16px;min-height:148px;padding:25px 14px 16px;transition:border-color .15s,background .15s}.option:hover{border-color:#747d89;background:#fdfdfd}.option[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink);background:#fff9df}.option-letter{position:absolute;top:10px;left:13px;font-size:12px;font-weight:750;color:#7a828d}.option[aria-pressed=true] .option-letter{background:var(--ink);color:var(--yellow);border-radius:50%;width:22px;height:22px;display:grid;place-items:center;top:8px;left:10px}.option-text{font-weight:750;font-size:28px;line-height:1.5;overflow-wrap:anywhere}.option.long .option-text{font-size:16px;font-weight:650;text-align:left}.option svg{width:90px;height:90px}.question-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid var(--line);padding:20px 0 28px;margin-bottom:12px}.action-side{display:flex;gap:10px;align-items:center}.question-count{color:var(--muted);font-size:13px}.overview-button{border:0;background:none;color:var(--muted);font-size:13px;text-decoration:underline;padding:10px 0}.key-help{font-size:12px;color:var(--muted);margin:0 0 26px}.number-series{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:18px 23px;width:100%;padding:25px 0;font-size:clamp(26px,3vw,37px);font-weight:800;font-variant-numeric:tabular-nums}.number-series .unknown{color:#a47c00;border-bottom:3px solid var(--yellow);padding:0 10px}.statements{display:grid;gap:15px;width:100%}.statement{font-size:17px;line-height:1.85;padding-left:17px;border-left:3px solid var(--yellow)}.analogy{display:grid;grid-template-columns:1fr 1fr;gap:18px 8px;text-align:center;width:100%;font-size:28px;font-weight:800}.analogy .relation{grid-column:1/-1;font-size:13px;color:var(--muted);font-weight:450}.cards-rule{text-align:center;font-size:17px;font-weight:650;line-height:1.8;margin-bottom:24px}.rule-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:100%}.rule-card{height:108px;background:#eef1f4;border:1px solid #d9dee3;border-radius:10px;display:grid;place-items:center;font-size:24px;font-weight:800}.rule-card.label{font-size:13px}.single-caption{font-size:13px;color:var(--muted);margin-top:8px}.result-header{text-align:center;padding:46px 0 26px}.result-header .eyebrow{justify-content:center}.result-header h1{font-size:38px;line-height:1.4;margin:14px 0 8px;font-weight:850}.result-header p{color:var(--muted);margin:0}.result-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:22px;margin-bottom:24px}.score-panel{border-radius:22px;background:var(--ink);color:#fff;padding:32px;text-align:center;display:grid;align-content:center}.score-panel .big-score{font-size:100px;line-height:1.15;letter-spacing:-4px;font-weight:850;color:var(--yellow)}.score-panel .denominator{font-size:22px;color:#b6bcc5;font-weight:500;letter-spacing:0}.score-label{font-size:14px;color:#d3d7df;margin-bottom:18px}.score-meta{font-size:13px;color:#c5cbd3;margin-top:15px}.breakdown{border:1px solid var(--line);border-radius:22px;background:#fff;padding:28px}.breakdown h2{font-size:19px;margin-bottom:22px}.metric{margin-bottom:18px}.metric:last-child{margin:0}.metric-head{display:flex;justify-content:space-between;font-size:14px;font-weight:650;margin-bottom:7px}.metric-bar{height:8px;background:#edf0f2;border-radius:10px;overflow:hidden}.metric-bar span{display:block;height:100%;border-radius:10px}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:25px 0 32px}.review-section{margin:42px 0}.review-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.review-heading h2{font-size:23px;margin:0}.segmented{display:flex;gap:4px;background:#e8ebef;padding:4px;border-radius:9px}.segmented button{font-size:12px;border:0;background:transparent;border-radius:6px;padding:7px 12px}.segmented button[aria-pressed=true]{background:#fff;font-weight:750;box-shadow:0 1px 3px #0001}.review-card{background:white;border:1px solid var(--line);border-radius:15px;margin:12px 0;overflow:hidden}.review-card summary{cursor:pointer;list-style:none;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:15px;font-weight:650}.review-card summary::-webkit-details-marker{display:none}.review-card summary:after{content:'+';color:var(--muted);font-size:24px}.review-card[open] summary:after{content:'−'}.review-status{font-size:12px;border-radius:6px;padding:3px 8px;white-space:nowrap;background:#e8f4ef;color:#206b52}.review-status.wrong{background:#fff0eb;color:#9d4631}.review-body{padding:5px 20px 22px;border-top:1px solid #f0f1f3}.review-body .question-visual{min-height:0;padding:18px;max-width:480px;margin:16px auto;background:var(--paper)}.review-answer{display:flex;gap:12px;align-items:center;margin:12px 0;font-size:14px}.review-answer svg{width:56px;height:56px}.explanation{background:#f5f6f7;border-radius:10px;padding:15px;font-size:14px;line-height:1.9;margin:15px 0 0}.empty-state{padding:25px;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:center;color:var(--muted)}dialog{border:0;border-radius:20px;padding:25px;max-width:590px;width:calc(100% - 32px);box-shadow:0 24px 80px #0003;color:var(--ink);max-height:90vh;overflow-y:auto}dialog::backdrop{background:#171e2a88;backdrop-filter:blur(3px)}.modal-heading{display:flex;gap:15px;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:18px}.modal-heading h2{font-size:22px;font-weight:800;margin:0}.icon-close{border:0;background:#f0f2f4;border-radius:50%;font-size:25px;width:35px;height:35px;line-height:1;flex-shrink:0}.modal-copy p,.modal-copy li{font-size:15px;line-height:1.9}.modal-copy ol{padding-left:24px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:15px 0}.question-jump{border:1px solid #d2d8df;border-radius:9px;min-height:48px;background:#fff;font-weight:650;position:relative}.question-jump.answered{background:var(--ink);color:#fff;border-color:var(--ink)}.question-jump.current{outline:3px solid var(--yellow);outline-offset:1px}.question-jump.flagged:after{content:'';width:8px;height:8px;background:#d4a700;border:1px solid #fff;border-radius:50%;position:absolute;right:5px;top:5px}.legend{font-size:13px;color:var(--muted)}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;transition:.2s;background:#20242a;color:white;padding:11px 20px;border-radius:10px;font-size:14px;pointer-events:none;z-index:100;max-width:90%;text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}.fade-in{animation:in .25s ease}@keyframes in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:800px){.header-inner{padding:15px 22px}.hero{gap:30px;padding-top:44px}.hero h1{font-size:43px}.hero-copy{font-size:16px}.hero-art{padding:22px}.demo-matrix{gap:9px;margin:25px 0}.intro-strip{grid-template-columns:repeat(2,1fr)}main{padding:0 22px}.workspace{gap:20px}.question-visual{padding:18px}.option{min-height:135px}.result-header h1{font-size:31px}.site-footer{padding:22px}.site-footer span{display:none}.note-panel{display:block}.note-panel b{display:block;margin-bottom:6px}}@media(max-width:600px){.header-inner{padding:13px 18px}.brand{gap:9px}.brand img{width:39px;height:39px}.brand strong{font-size:19px}.brand small{font-size:8px;letter-spacing:.8px}.about-btn{display:none}.text-button{font-size:13px;padding:8px}main{padding:0 18px}.hero{grid-template-columns:1fr;gap:30px;padding:32px 0}.hero h1{font-size:44px;letter-spacing:-1.4px;margin:18px 0}.hero-copy{font-size:16px;line-height:1.9;margin-bottom:20px}.eyebrow{font-size:11px}.pills{margin:20px 0;gap:20px}.hero-art{padding:22px 25px;max-width:420px;width:100%;margin:auto}.demo-matrix{gap:10px;margin:22px 0}.demo-cell{border-radius:12px}.art-bottom strong{font-size:16px}.art-bottom small{font-size:10px}.intro-strip{gap:22px 15px;padding:25px 0}.intro-item{gap:9px}.category-icon{width:30px;height:30px;font-size:11px}.intro-item h2{font-size:14px}.intro-item p{font-size:12px}.note-panel{padding:17px;margin-bottom:25px}.note-panel p{font-size:13px}.quiz-head{padding:20px 0 12px}.quiz-head h1{font-size:15px}.timer{font-size:15px;padding:6px 10px}.quiz-progress{margin-bottom:22px}.question-head{align-items:flex-start;gap:8px}.question-head h2{font-size:23px}.question-hint{font-size:13px}.level{display:none}.flag{font-size:12px;padding:7px 10px}.workspace{grid-template-columns:1fr;gap:16px}.question-visual{min-height:205px;padding:20px}.question-visual .big-svg{max-height:260px;max-width:310px}.options{gap:10px}.option{min-height:104px;border-radius:12px;padding:24px 12px 12px}.option svg{width:70px;height:70px}.option-text{font-size:25px}.option.long .option-text{font-size:14px}.number-series{font-size:29px;padding:12px 0;gap:16px 22px}.question-actions{padding:16px 0 20px;align-items:flex-start;gap:10px}.action-side{gap:8px}.action-side .secondary{padding:10px 13px;font-size:13px;min-height:44px}.action-side .primary{padding:10px 16px;font-size:13px;min-height:44px}.question-count{font-size:11px;display:none}.overview-button{font-size:12px}.key-help{display:none}.statement{font-size:15px}.rule-cards{gap:7px}.rule-card{height:80px;font-size:24px}.rule-card.label{font-size:11px}.cards-rule{font-size:15px;margin-bottom:16px}.analogy{font-size:24px}.result-header{padding-top:30px}.result-header h1{font-size:29px}.result-header p{font-size:14px}.result-layout{grid-template-columns:1fr;gap:15px}.score-panel{padding:25px}.score-panel .big-score{font-size:88px}.breakdown{padding:23px}.result-actions{gap:9px}.result-actions button{font-size:13px;padding:11px 16px}.review-heading{align-items:flex-start;gap:15px;flex-direction:column}.review-heading h2{font-size:21px}.review-card summary{font-size:14px;padding:16px;gap:9px}.review-status{font-size:11px}.review-body{padding:5px 16px 18px}.review-answer{font-size:13px}.explanation{font-size:13px}.site-footer{padding:20px 18px;font-size:11px}.site-footer a{font-size:12px}dialog{padding:20px}.modal-heading h2{font-size:20px}.modal-copy p,.modal-copy li{font-size:14px}.modal-actions .primary,.modal-actions .secondary{font-size:14px;padding:11px 18px}.question-grid{gap:8px}.question-jump{min-height:44px}.resume{padding:15px;gap:12px}.resume .secondary{font-size:13px;padding:8px 15px;min-height:42px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.practice-box{padding:18px;background:#fff8d7;border-radius:12px;margin:18px 0}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.check-row{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:15px}.check-row input{width:20px;height:20px;flex-shrink:0;accent-color:#8b6900}select{font:inherit;padding:9px;margin-left:10px;max-width:100%}#study-options{border-left:3px solid #ffda31;padding-left:16px}#start-error{color:#a13d18}.site-footer{gap:15px;flex-wrap:wrap}.note-panel a{color:#725400}

.hero h1.iq-hero-title{font-size:clamp(35px,3.8vw,54px);letter-spacing:-1px;line-height:1.4}.iq-intro{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;margin:25px 0 48px}.iq-intro-heading{max-width:760px}.iq-intro h2{font-size:28px;line-height:1.45;margin:10px 0}.iq-intro p{line-height:1.9;color:var(--muted);font-size:15px}.iq-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.iq-facts>div{background:#f5f6f8;border-radius:14px;padding:18px 20px}.iq-facts strong{display:block;font-size:33px;font-weight:900;color:var(--ink);line-height:1.45}.iq-facts span{display:block;font-size:13px;line-height:1.65;color:var(--muted)}.iq-levels{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.iq-levels summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:18px;padding:17px 0;font-weight:750}.iq-levels summary::-webkit-details-marker{display:none}.iq-levels summary::after{content:'＋';color:#8a6800}.iq-levels[open] summary::after{content:'−'}.iq-levels-body{padding-bottom:10px}.iq-levels table{border-collapse:collapse;width:100%;font-size:14px;margin:16px 0}.iq-levels th,.iq-levels td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.iq-levels thead{background:#fff7d2}.iq-levels th{font-weight:750}.iq-levels td{color:var(--muted)}.iq-intro a{color:#785800;text-underline-offset:3px}.iq-score-note{margin:20px 0 0}@media(max-width:700px){.hero h1.iq-hero-title{font-size:clamp(29px,8.6vw,39px);letter-spacing:-.6px}.iq-intro{padding:21px 18px;border-radius:18px}.iq-intro h2{font-size:23px}.iq-facts{gap:8px;margin:20px 0}.iq-facts>div{padding:12px 9px}.iq-facts strong{font-size:clamp(17px,4.9vw,23px);white-space:nowrap;letter-spacing:-.6px}.iq-facts span{font-size:11px}.iq-levels th,.iq-levels td{padding:10px 8px;font-size:13px}.iq-levels summary{font-size:15px}}

.mode-choice{align-items:stretch;gap:12px}.mode-choice>.mode{flex:1;max-width:230px;text-align:left;padding:12px 14px}.mode-title{display:block;font-size:15px;font-weight:750;line-height:1.6}.mode-description{display:block;margin-top:4px;font-size:12px;font-weight:500;line-height:1.7;color:var(--muted)}@media(max-width:700px){.mode-choice>.mode{padding:11px 12px}.mode-title{font-size:14px}.mode-description{font-size:12px}}
