/* Inner Dive · Your Map on the Science page (27 Oct 2026) · goes with sci-map.js */
.sm-map { position: relative; margin: 18px 0 22px; padding: 16px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, rgba(122,90,255,.16), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(46,200,255,.10), transparent 60%), linear-gradient(180deg, #0B1130, #070B1F);
  border: 1px solid rgba(157,180,255,.16); box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 24px 50px -30px rgba(122,90,255,.6); }
.sm-map::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 78% 14%, #fff6, transparent), radial-gradient(1px 1px at 42% 70%, #fff5, transparent),
    radial-gradient(1px 1px at 88% 64%, #fff7, transparent), radial-gradient(1px 1px at 24% 88%, #fff4, transparent), radial-gradient(1px 1px at 60% 36%, #fff5, transparent); }
.sm-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sm-title { display: grid; gap: 3px; }
.sm-eye { font: 600 .7rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .22em; text-transform: uppercase; color: #B9A8FF; }
.sm-title b { font-size: 1.02rem; font-weight: 600; color: var(--ink, #E7EBF8); }
.sm-lvl { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 8px 12px 8px 8px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(10,15,36,.75); border: 1px solid rgba(157,180,255,.18); }
.sm-lvl-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 700 .9rem/1 var(--font-mono, ui-monospace, monospace); color: #0A0F24;
  background: conic-gradient(from 200deg, #B46BFF, #5FE6FF, #4BE38A, #FFC857, #FF5FA2, #B46BFF); box-shadow: 0 0 14px -2px #9D8CFF; }
.sm-lvl-tx { display: grid; gap: 4px; flex: 1; min-width: 0; }
.sm-lvl-tx b { font-size: .84rem; color: #fff; font-weight: 600; }
.sm-lvl-tx small { font-size: .7rem; color: var(--muted, #9BA7CA); }
.sm-lvl-bar { height: 4px; border-radius: 3px; background: rgba(157,180,255,.16); overflow: hidden; }
.sm-lvl-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7A5AFF, #5FE6FF); box-shadow: 0 0 8px #5FE6FF; }

.sm-row { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.sm-row::-webkit-scrollbar { display: none; }
.sm-con { scroll-snap-align: start; border-radius: 16px; padding: 6px 6px 10px; background: rgba(10,15,36,.6); border: 1px solid color-mix(in srgb, var(--ga) 24%, transparent); transition: border-color .4s, box-shadow .4s; }
.sm-con.full { border-color: color-mix(in srgb, var(--ga) 70%, transparent); box-shadow: 0 0 24px -8px var(--ga); }
.sm-con svg { display: block; width: 100%; height: auto; overflow: visible; }
.sm-lines line { stroke: rgba(157,180,255,.3); stroke-width: 1.1; stroke-dasharray: 2 3; }
.sm-lines line.on { stroke: var(--ga); stroke-width: 1.3; stroke-dasharray: none; filter: drop-shadow(0 0 3px var(--ga)); }
.sm-star .sm-core { fill: rgba(200,210,240,.5); transition: all .4s; }
.sm-star.start .sm-core { fill: color-mix(in srgb, var(--ga) 70%, #fff); }
.sm-star.done .sm-core { fill: #fff; filter: drop-shadow(0 0 3px var(--ga)) drop-shadow(0 0 7px var(--ga)); }
.sm-halo { fill: color-mix(in srgb, var(--ga) 30%, transparent); animation: smPulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sm-arc { fill: none; stroke: var(--gb); stroke-width: 1.6; stroke-linecap: round; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 2px var(--gb)); }
.sm-star circle.sm-arc { stroke-dashoffset: 0; }
.sm-hit { fill: transparent; }
.sm-star:focus-visible .sm-hit { stroke: #fff; stroke-width: 1; }
.sm-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 8px 0; text-decoration: none; }
.sm-name b { font-size: .78rem; font-weight: 600; color: var(--ink, #E7EBF8); line-height: 1.25; }
.sm-name span { flex: none; font: 600 .7rem/1 var(--font-mono, ui-monospace, monospace); color: color-mix(in srgb, var(--ga) 70%, #fff); }
.sm-legend { position: relative; display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; font-size: .72rem; color: var(--muted, #9BA7CA); }
.sm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sm-legend i { width: 8px; height: 8px; border-radius: 50%; }
.sm-legend .done i { background: #fff; box-shadow: 0 0 6px #B46BFF, 0 0 10px #B46BFF; }
.sm-legend .start i { border: 1.5px solid #5FE6FF; width: 6px; height: 6px; }
.sm-legend .new i { background: rgba(200,210,240,.35); width: 5px; height: 5px; }
@media (min-width: 820px) { .sm-row { grid-auto-columns: minmax(200px, 1fr); } .sm-map { padding: 20px; } .sm-row { margin: 0 -20px; padding-inline: 20px; } }

/* the star on each topic card */
.sci-card { position: relative; }
.sm-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; color: #fff; pointer-events: none; }
.sm-badge.new { display: none; }
.sm-badge.start { background: conic-gradient(var(--k, #5FE6FF) calc(var(--f) * 1%), rgba(10,15,36,.75) 0); padding: 3px; }
.sm-badge.start::after { content: ""; width: 100%; height: 100%; border-radius: 50%; background: rgba(10,15,36,.9); }
.sm-badge.done { background: rgba(10,15,36,.8); border: 1px solid var(--k, #9D8CFF); box-shadow: 0 0 12px -2px var(--k, #9D8CFF); text-shadow: 0 0 8px var(--k, #9D8CFF); }

@keyframes smPulse { 50% { opacity: .35; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .sm-halo { animation: none; } }

/* 27 Oct 2026 · the Map is the way into every quiz */
.sm-hr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sm-all { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 14px; text-decoration: none; font: 600 .84rem/1 var(--font-body, inherit); color: #0A0F24;
  background: linear-gradient(120deg, #B46BFF, #5FE6FF); box-shadow: 0 0 18px -6px #9D8CFF; }
.sm-all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sm-big { display: flex; align-items: center; gap: 7px; margin: 8px 6px 0; padding: 8px 10px; border-radius: 11px; text-decoration: none; font: 600 .76rem/1 var(--font-body, inherit); color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ga) 32%, #10163A), color-mix(in srgb, var(--gb) 18%, #10163A)); border: 1px solid color-mix(in srgb, var(--ga) 45%, transparent); }
.sm-big { white-space: nowrap; }
.sm-big i { font-style: normal; font-size: .7rem; color: var(--ga); }
.sm-big small { margin-left: auto; font: 600 .66rem/1 var(--font-mono, ui-monospace, monospace); color: color-mix(in srgb, var(--ga) 60%, #fff); }
.sm-qd { fill: #FFD27A; filter: drop-shadow(0 0 3px #FFB547); }
.sm-star.sel .sm-core { fill: #fff; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px var(--ga)); }
.sm-star.sel .sm-hit { stroke: rgba(255,255,255,.7); stroke-width: 1; stroke-dasharray: 2 2; }
.sm-legend .qp i { width: 6px; height: 6px; background: #FFD27A; box-shadow: 0 0 6px #FFB547; }
.sm-card { position: relative; margin: 4px 0 10px; padding: 14px 16px; border-radius: 16px; display: grid; gap: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ga) 18%, #0E1434), #0A0F28); border: 1px solid color-mix(in srgb, var(--ga) 50%, transparent); box-shadow: 0 0 26px -12px var(--ga); animation: smIn .35s cubic-bezier(.2,.8,.2,1); }
.sm-cx { all: unset; position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; cursor: pointer; font-size: 1.1rem; color: var(--muted, #9BA7CA); }
.sm-cst { margin: 0; display: flex; align-items: center; gap: 7px; font: 600 .68rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--ga) 70%, #fff); }
.sm-cst i { width: 7px; height: 7px; border-radius: 50%; background: rgba(200,210,240,.5); }
.sm-cst.done i { background: #fff; box-shadow: 0 0 8px var(--ga); } .sm-cst.start i { border: 1.5px solid var(--gb); background: none; }
.sm-ct { font-size: 1.02rem; color: #fff; padding-right: 34px; }
.sm-cq { margin: 0; font-size: .8rem; color: var(--muted, #9BA7CA); }
.sm-cb { display: flex; gap: 8px; margin-top: 4px; }
.sm-cb a { flex: 1; text-align: center; padding: 11px 10px; border-radius: 12px; text-decoration: none; font: 600 .86rem/1 var(--font-body, inherit); }
.sm-read { color: #fff; background: rgba(10,15,36,.7); border: 1px solid rgba(157,180,255,.22); }
.sm-play { color: #0A0F24; background: linear-gradient(120deg, var(--ga), var(--gb)); box-shadow: 0 0 16px -6px var(--ga); }
@keyframes smIn { from { opacity: 0; transform: translateY(-6px); } }
