.cell-cloze { --cloze-ink:var(--teacher-deep,#093446); --cloze-paper:#f4fff9ed; --cloze-line:var(--teacher-deep,#14515d); --cloze-accent:var(--teacher-accent,#c9f06b); --cloze-pixel:"Brainpower Pixel","Arial Black",system-ui,sans-serif; color:var(--cloze-ink); font:16px/1.5 system-ui,sans-serif; min-width:0; }
.cell-cloze *, .cell-cloze *::before, .cell-cloze *::after { box-sizing:border-box; }
.cell-cloze-panel { background:var(--cloze-paper); border:3px solid var(--cloze-line); border-top-color:#ccf9e9; border-left-color:#ccf9e9; box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #143e5b26,5px 5px 0 #072d42; padding:clamp(16px,3vw,28px); width:100%; max-width:860px; margin:0 auto; }
.cell-cloze-panel :is(h1,h2) { margin:0; font:600 clamp(28px,4vw,36px)/1.12 var(--cloze-pixel); letter-spacing:.015em; }
.cell-cloze-panel h3 { margin:0 0 14px; font:600 23px/1.15 var(--cloze-pixel); letter-spacing:.015em; }
.cell-cloze-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.cell-cloze-kicker { margin:0 0 5px; text-transform:uppercase; letter-spacing:.06em; font:600 14px/1.2 var(--cloze-pixel); }
.cell-cloze-state { border:2px solid var(--cloze-line); padding:5px 10px; background:#e3f7ed; box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #143e5b26; font:600 17px/1.1 var(--cloze-pixel); flex:none; }
.cell-cloze-instruction { margin:14px 0 18px; }
.cell-cloze-progress { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; font:700 13px/1.4 system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.cell-cloze-meter { height:9px; background:#dbeddf; border:1px solid var(--cloze-line); box-shadow:inset 1px 1px 0 #143e5b26; margin:8px 0 16px; }
.cell-cloze-meter span { display:block; height:100%; background:#327b6b; }
.cell-cloze-clue { border-left:4px solid #5cae9d; padding:1px 0 1px 16px; margin:0 0 16px; }
.cell-cloze-clue p { margin:4px 0 12px; font-size:clamp(17px,2.2vw,21px); line-height:1.45; overflow-wrap:anywhere; }
.cell-cloze-clue p[lang=es] { font-size:16px; color:#2b555a; margin-bottom:4px; }
.cell-cloze-answer, .cell-cloze-select { display:grid; gap:6px; font-weight:650; }
.cell-cloze input[type=text], .cell-cloze select { width:100%; min-width:0; min-height:46px; border:2px solid var(--cloze-line); border-radius:0; box-shadow:inset 2px 2px 0 #143e5b1f; padding:9px 12px; font:400 18px/1.3 system-ui,sans-serif; color:var(--cloze-ink); background:#fff; }
.cell-cloze input[readonly] { background:#e4f2e8; }
.cell-cloze-select { margin:14px 0; }
.cell-cloze-history { margin:0 0 10px; }
.cell-cloze-actions { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 0; }
.cell-cloze button { min-height:44px; border:2px solid var(--cloze-line); border-top-color:#f5fff3; border-left-color:#f5fff3; border-radius:0; padding:9px 14px; font:600 18px/1.15 var(--cloze-pixel); letter-spacing:.015em; color:var(--cloze-ink); background:var(--cloze-accent); box-shadow:inset 1px 1px 0 #fff9,inset -2px -2px 0 #17365038,2px 3px 0 #072d42; cursor:pointer; }
.cell-cloze button.cell-cloze-secondary { background:#e8f9f3; }
.cell-cloze button:active { transform:translate(1px,2px); box-shadow:inset 1px 1px 0 #fff9,1px 1px 0 #072d42; }
.cell-cloze button:disabled { opacity:.55; cursor:wait; transform:none; }
.cell-cloze :focus-visible { outline:3px solid #1d67ba; outline-offset:3px; }
.cell-cloze-status { min-height:24px; margin:14px 0 0; overflow-wrap:anywhere; }
.cell-cloze-note { font-size:14px; margin:14px 0 0; }
.cell-cloze [hidden] { display:none !important; }
.cell-cloze summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:650; overflow-wrap:anywhere; }
.cell-cloze-bank { border-block:1px solid #cbd7bd; margin:18px 0 10px; }
.cell-cloze-bank ol, .cell-cloze-learner ol { padding-left:24px; }
.cell-cloze-bank li, .cell-cloze-learner li { padding:12px 0; border-top:1px solid #d8e0d0; }
.cell-cloze-review-check { display:flex; align-items:flex-start; gap:12px; line-height:1.5; }
.cell-cloze-review-check input { flex:none; width:22px; height:22px; accent-color:#315d42; margin:2px 0 0; }
.cell-cloze-review-check span span { display:block; margin-bottom:6px; }
.cell-cloze-review-check small { display:block; color:#36584a; }
.cell-cloze-classes { display:grid; gap:18px; margin-top:22px; }
.cell-cloze-class { border:2px solid #b9cbb0; padding:16px; }
.cell-cloze-class > button { margin-top:14px; }
.cell-cloze-class-work { margin-top:12px; }
.cell-cloze-learner { border-top:1px solid #cbd7bd; }
.cell-cloze-learner p { margin:4px 0; }
.cell-cloze-saved { white-space:pre-wrap; overflow-wrap:anywhere; background:#e9f0dc; padding:8px; }
.cell-cloze-page { max-width:940px; margin:0 auto; padding:14px 24px 24px; }
body.cell-cloze-shell { background:#073651; }
body.bio-page.cell-cloze-shell::before { animation:none; will-change:auto; background-image:url('/racs/img/bio/pixel-cell-interior-morning-grid.png'); }
.cell-cloze-shell .cell-cloze-topbar .topbar-in { max-width:940px; min-height:48px; padding:2px 24px; gap:12px; flex-wrap:nowrap; }
.cell-cloze-topbar .brand img { display:block; max-width:200px; object-fit:contain; image-rendering:pixelated; }
.cell-cloze-back { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:4px 10px; margin-left:auto; flex:none; border:2px solid #90dec7; border-top-color:#d6fff0; border-left-color:#d6fff0; background:#145b62; box-shadow:inset -2px -2px 0 #17365038,2px 3px 0 #072d42; color:#effff8; font:600 19px/1.15 "Brainpower Pixel","Arial Black",system-ui,sans-serif; text-decoration:none; }
.cell-cloze-back:active { transform:translate(1px,2px); box-shadow:1px 1px 0 #072d42; }
.cell-cloze-back:focus-visible { outline:3px solid #c9f06b; outline-offset:3px; }
@media (max-width:480px) { .cell-cloze-page { padding:14px 14px 24px; } .cell-cloze-panel { padding:16px; box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #143e5b26,3px 3px 0 #072d42; } .cell-cloze-shell .cell-cloze-topbar .topbar-in { padding-inline:14px; } .cell-cloze-class { padding:12px; } .cell-cloze-actions button { flex:1 1 140px; } .cell-cloze-clue { padding-left:12px; } }
@media (min-width:700px) and (max-height:700px) { .cell-cloze-panel:not(.cell-cloze-teacher) { padding:20px; } .cell-cloze-panel:not(.cell-cloze-teacher) h2 { font-size:32px; } .cell-cloze-instruction { margin:10px 0 12px; } .cell-cloze-meter { margin:6px 0 12px; } .cell-cloze-clue { margin-bottom:12px; } .cell-cloze-clue p { font-size:20px; line-height:1.3; margin-bottom:8px; } .cell-cloze-clue p[lang=es] { font-size:16px; line-height:1.3; } .cell-cloze-history { margin-bottom:6px; } }
@media (hover:hover) and (pointer:fine) { .cell-cloze button:not(:disabled):hover { background:#e5f6b4; } }
@media (prefers-reduced-motion:reduce) { body.bio-page.cell-cloze-shell::before { animation:none; } }
