/* Result blocks (viewer + admin preview) */
.result-blocks { position: relative; display: grid; gap: 16px; margin-top: 4px; text-align: left; }
.blk { position: relative; min-width: 0; }
.blk-heading { margin: 0 0 8px; color: #fff; font-size: 17px; line-height: 1.4; letter-spacing: 0; text-shadow: none; }
h2.blk-heading { font-size: 19px; }
.blk-paragraph { margin: 0 0 10px; color: #e4eef3; font-size: clamp(14px, 3.8vw, 16px); line-height: 1.8; overflow-wrap: anywhere; }
.blk-paragraph:last-child { margin-bottom: 0; }
.blk-list { margin: 0 0 10px; padding-left: 20px; color: #e4eef3; line-height: 1.8; }
.blk-paragraph strong, .blk-list strong { color: #ffe39b; }
.blk-caption, .blk-hint { margin: 8px 0 0; color: #9fc4d6; font-size: 12px; line-height: 1.5; text-align: center; }

.blk-copy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid rgba(180,231,248,.38); border-radius: 14px; color: #eafaff; background: rgba(4,28,45,.6); font: inherit; font-size: 13px; }
.blk-copy > span { font-size: 18px; line-height: 1; }
.blk-copy.copied { color: #092b35; background: #a9efd9; }

.blk-video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.blk-video-frame iframe, .blk-video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-video-play { padding: 0; background: #000; cursor: pointer; }
.blk-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.blk-video-icon { position: absolute; inset: 0; display: grid; place-items: center; margin: auto; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: rgba(220,38,38,.92); font-size: 24px; padding-left: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }

.blk-image-track { display: grid; gap: 12px; }
.blk-image.is-carousel .blk-image-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -6px; padding: 0 6px 6px; -webkit-overflow-scrolling: touch; }
.blk-image.is-carousel .blk-figure { flex: 0 0 88%; scroll-snap-align: center; }
.blk-figure { margin: 0; }
.blk-figure img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 14px; background: rgba(255,255,255,.05); cursor: zoom-in; }
.blk-figure figcaption { margin-top: 6px; color: #9fc4d6; font-size: 12px; text-align: center; }
.blk-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.92); }
.blk-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.blk-lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); font-size: 28px; line-height: 1; }

.blk-link-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; border: 1px solid rgba(255,227,155,.55); border-radius: 16px; color: #2b1d00; background: linear-gradient(180deg, #ffe9a8, #f2b63d); box-shadow: 0 4px 0 #a06b0a, 0 12px 24px rgba(0,0,0,.25); text-decoration: none; font-size: 15px; }
.blk-link-button span { font-size: 18px; }

.blk-quiz { padding: 14px; border: 1px solid rgba(143,208,233,.28); border-radius: 18px; background: rgba(143,208,233,.06); }
.quiz-question { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.quiz-question legend { padding: 0; margin-bottom: 8px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5; }
.quiz-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-bottom: 6px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #e4eef3; font-size: 14px; line-height: 1.5; cursor: pointer; }
.quiz-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: #f2b63d; }
.quiz-choice:has(input:checked) { border-color: rgba(255,227,155,.7); background: rgba(242,182,61,.12); }
.quiz-choice.is-answer { border-color: #6be3b2; background: rgba(107,227,178,.16); }
.is-wrong .quiz-choice:has(input:checked):not(.is-answer) { border-color: #ff8a8a; background: rgba(255,138,138,.14); }
.quiz-feedback { margin: 4px 0 0; min-height: 0; color: #a9dced; font-size: 13px; line-height: 1.5; }
.quiz-feedback:empty { display: none; }
.is-correct .quiz-feedback { color: #8ff0c8; }
.is-wrong .quiz-feedback { color: #ffb0b0; }
.quiz-code { display: grid; gap: 6px; margin: 4px 0 12px; color: #cfe6f0; font-size: 13px; }
.quiz-code input { min-height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: #fff; background: rgba(0,0,0,.28); font: inherit; font-size: 18px; letter-spacing: .12em; }
.quiz-submit { width: 100%; min-height: 50px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; color: #09223a; background: linear-gradient(180deg, #eefcff, #9fd9ee); box-shadow: 0 4px 0 #347b9a; font: inherit; font-size: 15px; font-weight: 900; }
.quiz-submit:disabled { opacity: .6; }
.quiz-summary { margin: 10px 0 0; min-height: 1.4em; color: #cfe6f0; font-size: 14px; text-align: center; line-height: 1.5; }
.quiz-summary.warn { color: #ffd779; }
.quiz-summary.done { color: #8ff0c8; font-weight: 700; }

/* Pastel mint result content */
.blk-heading { color: #1d5548; }
.blk-paragraph, .blk-list { color: #365c52; }
.blk-paragraph strong, .blk-list strong { color: #237b66; }
.blk-caption, .blk-hint, .blk-figure figcaption { color: #6b8c83; }
.blk-copy { border-color: rgba(75,170,144,.3); color: #286d5a; background: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 white; }
.blk-copy.copied { color: #173f37; background: #bcefdc; }
.blk-figure img { background: rgba(85,176,151,.07); box-shadow: 0 10px 26px rgba(44,125,103,.12); }
.blk-link-button { border-color: rgba(255,255,255,.82); color: #16463a; background: linear-gradient(180deg, #f9fffd, #9fe0cd); box-shadow: 0 4px 0 #4ca58d, 0 12px 24px rgba(43,124,102,.16); }
.blk-quiz { border-color: rgba(72,167,141,.26); background: rgba(104,205,177,.09); }
.quiz-question legend { color: #214f43; }
.quiz-choice { border-color: rgba(69,157,133,.2); color: #365c52; background: rgba(255,255,255,.55); }
.quiz-choice input { accent-color: #399c81; }
.quiz-choice:has(input:checked) { border-color: rgba(54,158,130,.62); background: rgba(92,196,167,.14); }
.quiz-choice.is-answer { border-color: #45bb91; background: rgba(87,202,161,.16); }
.quiz-feedback { color: #4d8877; }
.is-correct .quiz-feedback { color: #21835e; }
.quiz-code { color: #4d756a; }
.quiz-code input { border-color: rgba(67,157,132,.3); color: #173f37; background: rgba(255,255,255,.72); }
.quiz-submit { color: #16463a; border-color: rgba(255,255,255,.88); background: linear-gradient(180deg, #f9fffd, #a5e3d1); box-shadow: 0 4px 0 #4ca58d; }
.quiz-summary { color: #4d756a; }
.quiz-summary.warn { color: #927018; }
.quiz-summary.done { color: #21835e; }
