/* ระบบคลังข้อสอบและเกียรติบัตร รุ่น 20 */
.exam-manager-heading,.exam-take-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 22px}.exam-manager-heading h1,.exam-take-heading h1{margin:.15rem 0}.exam-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px;margin:0 0 20px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.exam-tabs a{flex:0 0 auto;padding:10px 15px;border-radius:11px;font-weight:800;color:var(--ink)}.exam-tabs a.active,.exam-tabs a:hover{background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 15%,#fff),color-mix(in srgb,var(--blue2) 13%,#fff));color:var(--blue);text-decoration:none}.exam-panel{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;margin-bottom:20px;box-shadow:var(--shadow)}.exam-panel h2{margin-top:0}.exam-manager-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:20px}.exam-choice-edit{display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:center;margin:8px 0}.exam-choice-edit input[type=radio]{width:22px;height:22px}.exam-stat-big{display:grid;place-items:center;margin:28px auto;padding:24px;width:160px;height:160px;border-radius:50%;background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 13%,#fff),color-mix(in srgb,var(--blue2) 13%,#fff));border:5px solid #fff;box-shadow:0 0 0 2px var(--border)}.exam-stat-big strong{font-size:3rem;line-height:1}.exam-stat-big span{color:var(--muted);font-weight:700}.exam-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-top:14px}.exam-check-grid label{display:flex;gap:8px;align-items:flex-start}.exam-check-grid input{width:20px;height:20px;flex:0 0 auto}.exam-import-form{display:flex;gap:12px;align-items:end;margin:18px 0}.exam-import-form .form-control{flex:1}.exam-column-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.exam-column-list code{background:#eff6ff;border:1px solid #c7ddff;border-radius:999px;padding:5px 10px}.exam-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.exam-template-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;box-shadow:var(--shadow)}.exam-template-card img{width:100%;aspect-ratio:1.414/1;object-fit:cover;border-radius:10px;border:1px solid var(--border)}.status-muted{background:#eef2f6;color:#475467}.status-danger{background:#fee4e2;color:#b42318}.exam-public-hero{background:linear-gradient(125deg,#173b78,#7c3aed)}.exam-filter{margin-bottom:24px}.exam-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.exam-public-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:20px;padding:22px;box-shadow:var(--shadow)}.exam-public-card h2{margin:.7rem 0}.exam-public-card .btn{margin-top:auto}.exam-card-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,#dbeafe,#fce7f3);font-size:2rem;margin-bottom:12px}.badge.secondary{background:#fce7f3;color:#9d174d}.exam-card-meta,.student-game-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-weight:700;font-size:.9rem;margin:10px 0 18px}.exam-narrow{max-width:980px}.exam-registration-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:28px;box-shadow:var(--shadow)}.exam-registration-card h1{margin:.7rem 0}.exam-timer{min-width:160px;text-align:center;background:#fff7ed;border:2px solid #fdba74;border-radius:18px;padding:12px 20px;position:sticky;top:122px}.exam-timer span{display:block;color:#9a3412;font-weight:700}.exam-timer strong{font-size:2.1rem;color:#c2410c}.exam-paper{display:grid;gap:18px}.exam-question-card{margin:0;background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(16,24,40,.07)}.exam-question-card legend{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:start;width:100%;padding:0 6px;font-weight:800}.exam-question-card legend b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--blue);color:#fff}.exam-question-card legend em{font-style:normal;color:var(--muted);font-size:.85rem}.exam-choice-list{display:grid;gap:10px;margin-top:16px}.exam-choice-list label{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;border:2px solid var(--border);border-radius:14px;padding:13px 15px;cursor:pointer;min-height:54px}.exam-choice-list label:has(input:checked){border-color:var(--blue);background:color-mix(in srgb,var(--blue) 8%,#fff)}.exam-choice-list input{width:22px;height:22px}.exam-submit-bar{position:sticky;bottom:10px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.96);border:1px solid var(--border);border-radius:16px;padding:14px 18px;box-shadow:var(--shadow);backdrop-filter:blur(10px)}.exam-result-card{text-align:center;background:#fff;border-radius:24px;padding:34px;border:3px solid var(--border);box-shadow:var(--shadow)}.exam-result-card.passed{border-color:#6ce9a6;background:linear-gradient(180deg,#ecfdf3,#fff)}.exam-result-card.failed{border-color:#fdb022;background:linear-gradient(180deg,#fffaeb,#fff)}.exam-result-card .exam-result-icon{font-size:4rem}.exam-result-card h2{margin:.3rem 0}.exam-result-card>strong{font-size:4rem;color:var(--blue)}.exam-result-card .actions{justify-content:center}.exam-answer-review{margin-top:22px}.exam-review-item{background:#fff;border-left:6px solid var(--border);padding:16px 18px;margin:12px 0;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.05)}.exam-review-item.correct{border-color:#12b76a}.exam-review-item.incorrect{border-color:#f04438}.certificate-page .section-heading{align-items:center}.certificate-canvas-wrap{background:#e5e7eb;border-radius:18px;padding:18px;overflow:auto;box-shadow:var(--shadow)}#certificateCanvas{display:block;width:min(100%,1200px);height:auto;margin:auto;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.18)}.certificate-verify{text-align:center;border-radius:20px;padding:30px;margin-top:20px}.certificate-verify>span{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;margin:auto;font-size:2.5rem}.certificate-verify.success{background:#ecfdf3;border:2px solid #6ce9a6}.certificate-verify.success>span{background:#12b76a;color:#fff}.certificate-verify.failed{background:#fef3f2;border:2px solid #fda29b}.certificate-verify.failed>span{background:#f04438;color:#fff}.certificate-verify code{display:inline-block;margin-top:10px;padding:8px 12px;background:#fff;border-radius:8px}
@media(max-width:980px){.exam-manager-grid{grid-template-columns:1fr}.exam-public-grid,.exam-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-manager-heading,.exam-take-heading{flex-direction:column}.exam-timer{position:static;width:100%}}
@media(max-width:680px){.exam-public-grid,.exam-template-grid{grid-template-columns:1fr}.exam-check-grid{grid-template-columns:1fr}.exam-import-form,.exam-submit-bar{flex-direction:column;align-items:stretch}.exam-question-card{padding:15px}.exam-question-card legend{grid-template-columns:38px 1fr}.exam-question-card legend em{grid-column:2}.exam-choice-list label{min-height:60px;font-size:1.05rem}.exam-result-card>strong{font-size:3rem}.exam-registration-card{padding:18px}.certificate-canvas-wrap{padding:6px;border-radius:10px}}
@media print{.site-header,.site-footer,.responsive-toolbar,.certificate-page .actions,.notice{display:none!important}.certificate-canvas-wrap{padding:0;background:none;box-shadow:none}#certificateCanvas{width:100%;box-shadow:none}}
/* รุ่น 29.7.10: ฟอร์มข้อสอบพร้อมภาพประกอบ */
.exam-section-heading{display:flex;align-items:center;gap:12px;margin:10px 0 -4px;padding:13px 18px;border-radius:14px;border:2px solid #93c5fd;background:#eef6ff;color:#1d4ed8}.exam-section-heading span{font-weight:900;white-space:nowrap}.exam-section-heading strong{font-size:1.08rem}.exam-section-heading.section-2{border-color:#d8b4fe;background:#f8f0ff;color:#7e22ce}.exam-section-heading.section-3{border-color:#6ee7b7;background:#ecfdf5;color:#047857}.exam-question-body{display:grid;grid-template-columns:1fr;gap:18px;margin-top:16px}.exam-question-card.has-image .exam-question-body{grid-template-columns:minmax(150px,220px) minmax(0,1fr)}.exam-question-card.section-1{border-color:#bfdbfe}.exam-question-card.section-2{border-color:#ddd6fe}.exam-question-card.section-3{border-color:#a7f3d0}.exam-question-visual{display:flex;align-items:flex-start;justify-content:center}.exam-question-visual img{width:100%;max-width:220px;aspect-ratio:3/2;object-fit:contain;border:2px solid #bfdbfe;border-radius:14px;background:#f8fbff}.exam-question-card.section-2 .exam-question-visual img{border-color:#ddd6fe;background:#fbfaff}.exam-question-card.section-3 .exam-question-visual img{border-color:#a7f3d0;background:#f7fffb}.exam-question-answer{min-width:0}.exam-question-image-admin{margin:10px 0;padding:10px;border:1px solid var(--border);border-radius:12px}.exam-question-image-admin img{display:block;max-width:240px;max-height:180px;object-fit:contain;border-radius:8px}
@media(max-width:680px){.exam-question-card.has-image .exam-question-body{grid-template-columns:1fr}.exam-question-visual img{max-width:260px}.exam-section-heading{align-items:flex-start;flex-direction:column;gap:3px}}

/* รุ่น 29.7.11: กลุ่มคลังข้อสอบ, ตัวอย่างเกียรติบัตรสด และโหมดเกมทีละข้อ */
.exam-field-help{display:block;margin-top:5px;color:var(--muted);font-size:.82rem;line-height:1.45}.exam-field-label{display:grid;gap:5px;font-weight:800}.exam-field-label .form-control{font-weight:400}.exam-template-editor{align-items:start}.exam-template-preview-panel{position:sticky;top:92px}.exam-template-preview-wrap{background:#e9eef5;border:1px solid var(--border);border-radius:16px;padding:12px;margin:12px 0;overflow:auto}.exam-template-preview-wrap canvas{display:block;width:100%;height:auto;background:#fff;border-radius:9px;box-shadow:0 10px 24px rgba(15,23,42,.16)}.exam-template-preview-note{font-size:.9rem;color:var(--muted)}
.exam-bank-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 22px}.exam-bank-group-card{border:1px solid var(--border);border-radius:15px;padding:14px;background:linear-gradient(145deg,#fff,#f8fbff)}.exam-bank-group-card h3{font-size:1rem;margin:0 0 6px}.exam-bank-group-card p{margin:4px 0;color:var(--muted);font-size:.9rem}.exam-bank-group-card .badge{margin-right:5px}.exam-bank-group-card .actions{margin-top:10px}.exam-bank-group-heading td{background:#eef6ff!important;color:#1d4ed8;font-weight:900;border-top:3px solid #bfdbfe}.exam-bank-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.exam-bank-filter-grid .wide{grid-column:span 2}
.exam-game{max-width:920px;margin:0 auto}.exam-game-status{position:sticky;top:90px;z-index:15;background:rgba(255,255,255,.97);border:1px solid #bfdbfe;border-radius:18px;padding:14px 18px;margin-bottom:18px;box-shadow:0 10px 28px rgba(37,99,235,.12);backdrop-filter:blur(10px)}.exam-game-progress-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:1.05rem}.exam-game-progress-meta strong{color:#1d4ed8}.exam-game-progress-meta b{color:#047857;font-size:1.15em}.exam-game-progress-track{height:14px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-top:9px}.exam-game-progress-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#8b5cf6,#f472b6);transition:width .35s ease}.exam-game-stage{min-height:520px}.exam-game-card{background:linear-gradient(160deg,#ffffff 0%,#f8fbff 62%,#fdf2f8 100%);border:2px solid #bfdbfe;border-radius:28px;padding:28px;box-shadow:0 18px 45px rgba(30,64,175,.13);animation:examGameIn .38s ease both}.exam-game-card[hidden]{display:none!important}.exam-game-question-number{display:inline-flex;padding:7px 14px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-weight:900;margin-bottom:12px}.exam-game-card h2{font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.5;margin:.25rem 0 20px;text-align:center}.exam-game-question-body{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:25px;align-items:center}.exam-game-card:not(.has-image) .exam-game-question-body{grid-template-columns:1fr;max-width:720px;margin:auto}.exam-game-visual{display:flex;justify-content:center}.exam-game-visual img{width:100%;max-width:300px;aspect-ratio:4/3;object-fit:contain;background:#fff;border:3px solid #bfdbfe;border-radius:22px;padding:8px;box-shadow:0 10px 24px rgba(37,99,235,.1)}.exam-game-choices{display:grid;gap:13px}.exam-game-choices label{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;min-height:64px;border:2px solid #dbe4f0;border-radius:17px;padding:13px 16px;background:#fff;font-size:1.08rem;font-weight:700;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.exam-game-choices label:hover{transform:translateY(-2px);border-color:#60a5fa;box-shadow:0 8px 18px rgba(37,99,235,.1)}.exam-game-choices label:has(input:checked){border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.exam-game-choices input{width:24px;height:24px}.exam-game-short-answer{font-size:1.25rem;min-height:58px}.exam-game-check-btn{margin-top:12px;width:100%}.exam-game-hint{text-align:center;color:var(--muted);font-weight:700;margin:22px 0 0}.exam-game-card.is-checking{opacity:.76;pointer-events:none}.exam-game-feedback[hidden]{display:none!important}.exam-game-feedback{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.58);backdrop-filter:blur(6px)}.exam-game-feedback-card{position:relative;width:min(92vw,520px);background:#fff;border-radius:30px;padding:28px;text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.3);overflow:hidden;animation:examFeedbackPop .35s cubic-bezier(.2,.8,.2,1)}.exam-game-feedback.correct .exam-game-feedback-card{border:5px solid #6ee7b7;background:linear-gradient(180deg,#ecfdf5,#fff)}.exam-game-feedback.incorrect .exam-game-feedback-card{border:5px solid #fdba74;background:linear-gradient(180deg,#fff7ed,#fff)}.exam-game-feedback img{display:block;width:min(82%,360px);height:240px;object-fit:contain;margin:0 auto;animation:examRobotBounce 1.1s ease-in-out infinite alternate}.exam-game-feedback h2{font-size:1.8rem;margin:5px 0 6px}.exam-game-feedback p{font-size:1.1rem;color:var(--muted);font-weight:700}.exam-game-feedback-burst span{position:absolute;font-size:2rem;animation:examStarFloat 1.2s ease-in-out infinite alternate}.exam-game-feedback-burst span:nth-child(1){left:8%;top:8%}.exam-game-feedback-burst span:nth-child(2){right:9%;top:12%;animation-delay:.2s}.exam-game-feedback-burst span:nth-child(3){left:15%;bottom:24%;animation-delay:.35s}.exam-game-feedback-burst span:nth-child(4){right:12%;bottom:28%;animation-delay:.5s}.exam-feedback-open{overflow:hidden}
@keyframes examGameIn{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}@keyframes examFeedbackPop{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}@keyframes examRobotBounce{from{transform:translateY(3px) rotate(-1deg)}to{transform:translateY(-8px) rotate(1deg)}}@keyframes examStarFloat{from{transform:translateY(0) scale(.9);opacity:.65}to{transform:translateY(-10px) scale(1.18);opacity:1}}
@media(max-width:980px){.exam-bank-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-template-preview-panel{position:static}.exam-bank-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.exam-bank-group-grid,.exam-bank-filter-grid{grid-template-columns:1fr}.exam-bank-filter-grid .wide{grid-column:auto}.exam-game-status{top:70px}.exam-game-card{padding:18px;border-radius:20px}.exam-game-question-body{grid-template-columns:1fr;gap:14px}.exam-game-visual img{max-width:260px}.exam-game-choices label{min-height:68px;font-size:1.08rem}.exam-game-progress-meta{font-size:.95rem}.exam-game-feedback-card{padding:20px 16px}.exam-game-feedback img{height:210px}}

.exam-template-preview-metrics{display:flex;flex-wrap:wrap;gap:.55rem;margin:.7rem 0 .85rem}.exam-template-preview-metrics span{background:#f6f8fc;border:1px solid #dfe6f1;border-radius:999px;padding:.38rem .7rem;font-size:.9rem}.exam-template-preview-metrics b{font-variant-numeric:tabular-nums}

/* v29.7.13 — รูปภาพคำถาม/ตัวเลือก และตัวช่วยแม่แบบเกียรติบัตร */
.exam-choice-edit-with-image{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:12px;border:1px solid rgba(148,163,184,.35);border-radius:16px;margin:10px 0;background:rgba(255,255,255,.7)}
.exam-choice-fields{display:grid;gap:7px}.exam-choice-correct{display:flex;align-items:center;gap:7px;padding-top:34px;white-space:nowrap}.exam-choice-image-admin{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px;border-radius:12px;border:1px solid rgba(148,163,184,.4);background:#fff}.exam-choice-image-admin img{display:block;max-width:180px;max-height:110px;object-fit:contain;border-radius:10px}
.exam-import-form-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.exam-import-columns-table code{white-space:nowrap}.exam-cert-serial-settings{margin:14px 0;padding:14px;border:1px dashed rgba(37,99,235,.35);border-radius:16px;background:rgba(239,246,255,.65)}.exam-cert-serial-settings h3{margin:0 0 4px}
.exam-game-choice-content,.exam-paper-choice-content{display:flex;align-items:center;gap:14px;min-width:0;width:100%}.exam-game-choice-image{width:min(180px,32vw);height:120px;object-fit:contain;border-radius:14px;background:#fff;border:1px solid rgba(148,163,184,.3);padding:6px}.exam-paper-choice-image{width:120px;height:86px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid rgba(148,163,184,.3);padding:5px}
@media(max-width:760px){.exam-choice-edit-with-image{grid-template-columns:1fr}.exam-choice-correct{padding-top:0}.exam-import-form-images{grid-template-columns:1fr}.exam-game-choice-content,.exam-paper-choice-content{align-items:flex-start;flex-direction:column}.exam-game-choice-image{width:min(220px,70vw);height:120px}.exam-paper-choice-image{width:min(180px,65vw);height:110px}}

/* v29.7.14 — ตัวสร้างเกมข้อสอบมัลติมีเดีย และอันดับคะแนนสูงสุด */
.exam-media-editor,.exam-game-builder-settings{margin:16px 0;padding:16px;border:1px solid rgba(59,130,246,.24);border-radius:18px;background:linear-gradient(180deg,rgba(239,246,255,.75),rgba(255,255,255,.92))}.exam-media-editor h3,.exam-game-builder-settings h3{margin:0 0 5px}.exam-media-upload-grid,.exam-choice-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.exam-choice-media-grid label{font-size:.9rem;font-weight:700}.exam-media-admin-preview{display:grid;gap:10px;margin-top:12px;padding:12px;border-radius:15px;background:#fff;border:1px dashed rgba(100,116,139,.32)}.exam-media-admin-preview.compact{padding:8px}.exam-media-remove-grid{display:flex;gap:10px;flex-wrap:wrap}.exam-media-stack,.exam-choice-media-stack{display:grid;gap:10px;min-width:0}.exam-admin-media-image,.exam-admin-choice-media-image{max-width:100%;max-height:260px;object-fit:contain;border-radius:14px;border:1px solid rgba(148,163,184,.35);background:#fff}.exam-admin-media-video,.exam-admin-choice-media-video{display:block;width:100%;max-width:520px;max-height:300px;border-radius:14px;background:#0f172a}.exam-admin-media-audio,.exam-admin-choice-media-audio{display:block;width:min(100%,520px)}
.exam-game-card:not(.has-media) .exam-game-question-body{grid-template-columns:1fr;max-width:760px;margin:auto}.exam-question-card:not(.has-media) .exam-question-body{grid-template-columns:1fr}.exam-game-visual,.exam-question-visual{min-width:0}.exam-game-media-image,.exam-paper-media-image{display:block;width:100%;max-width:420px;max-height:300px;object-fit:contain;margin:auto;border-radius:18px;background:#fff;border:2px solid #dbeafe;padding:7px}.exam-game-media-video,.exam-paper-media-video{display:block;width:100%;max-width:560px;max-height:340px;margin:auto;border-radius:18px;background:#0f172a}.exam-game-media-audio,.exam-paper-media-audio{display:block;width:min(100%,560px);margin:auto}.exam-game-choice-media-image,.exam-paper-choice-media-image{display:block;width:min(180px,34vw);height:120px;object-fit:contain;border-radius:14px;background:#fff;border:1px solid rgba(148,163,184,.3);padding:6px}.exam-game-choice-media-video,.exam-paper-choice-media-video{display:block;width:min(240px,48vw);max-height:150px;border-radius:12px;background:#0f172a}.exam-game-choice-media-audio,.exam-paper-choice-media-audio{display:block;width:min(280px,55vw);max-width:100%}.exam-review-media-image{max-width:320px;max-height:220px;object-fit:contain;border-radius:14px}.exam-review-media-video{width:min(100%,480px);max-height:280px;border-radius:14px;background:#0f172a}.exam-review-media-audio{width:min(100%,480px)}
.exam-game-builder-settings[hidden]{display:none!important}.exam-feedback-admin-preview{display:grid;gap:8px;margin-top:10px}.exam-feedback-admin-preview img{display:block;max-width:260px;max-height:170px;object-fit:contain;border-radius:16px;border:1px solid rgba(148,163,184,.35);background:#fff}.exam-leaderboard-settings{margin-top:16px;padding:15px;border-radius:16px;background:rgba(255,255,255,.85);border:1px solid rgba(168,85,247,.2)}.exam-leaderboard-card{margin-top:22px;padding:20px;border:1px solid rgba(245,158,11,.3);border-radius:22px;background:linear-gradient(180deg,#fffdf5,#fff);box-shadow:0 12px 30px rgba(120,53,15,.08)}.exam-leaderboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.exam-leaderboard-heading h2{margin:.35rem 0 0}.exam-leaderboard-heading p{max-width:520px;color:var(--muted);margin:0}.exam-leaderboard-table td,.exam-leaderboard-table th{vertical-align:middle}.exam-leaderboard-table .top-rank{font-size:1.03em}.exam-leaderboard-table .rank-1{background:rgba(254,240,138,.28)}.exam-leaderboard-table .rank-2{background:rgba(226,232,240,.38)}.exam-leaderboard-table .rank-3{background:rgba(254,215,170,.28)}.exam-public-leaderboard{margin-bottom:22px}
@media(max-width:820px){.exam-media-upload-grid,.exam-choice-media-grid{grid-template-columns:1fr}.exam-game-question-body,.exam-question-body{grid-template-columns:1fr!important}.exam-game-media-image,.exam-paper-media-image{max-width:320px}.exam-game-choice-content,.exam-paper-choice-content{align-items:flex-start}.exam-leaderboard-heading{display:block}.exam-leaderboard-heading p{margin-top:8px}}
@media(max-width:560px){.exam-game-choice-media-image,.exam-paper-choice-media-image{width:min(220px,72vw);height:120px}.exam-game-choice-media-video,.exam-paper-choice-media-video{width:min(260px,74vw)}.exam-game-choice-media-audio,.exam-paper-choice-media-audio{width:min(280px,76vw)}}
.exam-game-card.has-media .exam-game-question-body{grid-template-columns:minmax(220px,320px) minmax(0,1fr);max-width:none;margin:0}.exam-question-card.has-media .exam-question-body{grid-template-columns:minmax(170px,260px) minmax(0,1fr)}
@media(max-width:820px){.exam-game-card.has-media .exam-game-question-body,.exam-question-card.has-media .exam-question-body{grid-template-columns:1fr}}
