/* 🏛️ Museum reading room (museum.js) */
.mhalls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mhall { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 10px; text-decoration: none; color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); align-items: stretch; transition: transform .15s; }
.mhall:hover { transform: translateY(-2px); }
.mcov { flex: 0 0 110px; height: 120px; border-radius: 12px; overflow: hidden; background: #1d3557; display: flex; align-items: center; justify-content: center; }
.mcov img { width: 100%; height: 100%; object-fit: cover; }
.earthcov { font-size: 64px; background: radial-gradient(circle, #1d3557, #000); }
.mht { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mht b { font-size: 19px; }
.mht .mbl { font-size: 14px; color: #555; margin: 4px 0; line-height: 1.4; }
.mprog { display: block; height: 6px; background: #eceff1; border-radius: 3px; overflow: hidden; margin-top: auto; }
.mprog i { display: block; height: 100%; background: #2a9d8f; }

.mgroup { margin: 22px 0 10px; font-size: 21px; }
.mex.noimg { grid-template-columns: 1fr; }
.mfacts .btn { align-self: flex-start; margin-top: 4px; }
.wtopics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wtopic { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 14px; padding: 12px 8px;
  text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.08); text-align: center; }
.wtopic span { font-size: 34px; }
.wtopic small { font-size: 13px; color: #666; }
.wtopic em { position: absolute; top: 6px; right: 8px; color: #2a9d8f; font-style: normal; font-weight: 700; }
.wtopic.d { outline: 3px solid #2a9d8f55; }
.mitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mitem { position: relative; display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 14px; padding: 8px;
  text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mitem .mimg { height: 140px; border-radius: 10px; overflow: hidden; background: #f1f3f5; margin-bottom: 4px; }
.mitem .mimg img { width: 100%; height: 100%; object-fit: cover; }
.mitem small { font-size: 13px; }
.mitem em { position: absolute; top: 12px; right: 12px; background: #2a9d8f; color: #fff; border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; }
.mitem.d { outline: 3px solid #2a9d8f55; }

.mex { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; margin-bottom: 14px; align-items: start; }
@media (max-width: 760px) { .mex { grid-template-columns: 1fr; } }
.mpic { margin: 0; background: #11131a; border-radius: 16px; overflow: hidden; text-align: center; }
.mpic img { max-width: 100%; max-height: 52vh; display: block; margin: 0 auto; cursor: zoom-in; }
.mpic figcaption { color: #cfd8dc; font-size: 13px; padding: 4px 0 6px; }
.mpicwrap { min-width: 0; }
.mcap { display: block; color: #fff; font-size: 15px; padding: 0 8px 2px; }
.mcap small { color: #cfd8dc; font-size: 13px; }
.mthumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.mthumb { position: relative; width: 76px; height: 60px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: #11131a; cursor: pointer; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb span { position: absolute; left: 3px; bottom: 2px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; border-radius: 6px; padding: 0 5px; }
.mthumb.on { border-color: #2a9d8f; }
.mnoimg { color: #fff; padding: 40px 10px; }
.mnoimg a { color: #a8dadc; }
.mfacts { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.mlook { background: #fff8e1; border-radius: 10px; padding: 8px 10px; }
.mlook small { display: block; color: #666; }

.mquiz { margin-top: 16px; }
.mquiz h3 { margin: 0 0 8px; }
.mq { margin-bottom: 12px; }
.mq .q-text { cursor: pointer; font-size: 19px; }
.mq .q-text small, .mq .opt small { display: block; font-size: 14px; color: #666; font-weight: normal; }
.mq .opt.right { background: #d8f3dc; border-color: #2a9d8f; }
.mq .opt.wrong { background: #ffe5e5; border-color: #e63946; }
/* 📶 Reading levels */
.mlvnote { background: #eef6ff; border-radius: 12px; padding: 8px 12px; font-size: 15px; line-height: 1.5; }
.mlvbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.mlv { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: #fff; border: 2px solid #dfe6ee; border-radius: 12px;
  padding: 6px 14px; cursor: pointer; font: inherit; color: inherit; }
.mlv b { font-size: 16px; }
.mlv small { font-size: 13px; color: #666; }
.mlv.on { border-color: #2a9d8f; background: #e8f6f4; }
.mlv.locked { opacity: .55; }
.mstars { letter-spacing: -1px; font-size: 12px; }
.mstars span { filter: grayscale(1); opacity: .45; margin-right: 6px; }
.mstars span.got { filter: none; opacity: 1; }
.mwords { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.mword { background: #fff8e1; border: 1px solid #f1d58a; border-radius: 10px; padding: 4px 10px; font: inherit; font-size: 17px; cursor: pointer; }
.mword small { color: #8a6d1d; font-size: 13px; }
.mword i { font-style: normal; color: #555; font-size: 14px; }
.mnext { margin-top: 6px; padding: 10px 12px; background: #e8f6f4; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.mnext small { display: block; width: 100%; color: #666; }
.mcredit { font-size: 13px; color: #777; text-align: center; margin-top: 14px; }

.mzoom { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; overflow: auto; display: flex; align-items: center; justify-content: center; }
.mzoom img { max-width: 100vw; max-height: 100vh; cursor: zoom-in; }
.mzoom.big { display: block; }
.mzoom.big img { max-width: none; max-height: none; width: 200vw; cursor: zoom-out; }
.mzoom .btn { position: fixed; top: 12px; right: 12px; }

.mearth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .mearth { grid-template-columns: 1fr; } }
.mearth img.epic { width: 100%; max-width: 520px; display: block; margin: 0 auto; border-radius: 50%; background: #000; }
.sentp { cursor: pointer; font-size: 17px; line-height: 1.6; }
.sentp:hover { background: #fff3c4; }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li { padding: 6px 0; border-bottom: 1px solid #eee; }
.mag { display: inline-block; min-width: 38px; text-align: center; color: #fff; border-radius: 8px; padding: 1px 4px; margin-right: 6px; }
