/* Field-guide look shared with the crater project: serif headings, glass panels, gold accent. */
:root { --ink: #ecebe6; --dim: rgba(236, 235, 230, 0.62); --glass: rgba(10, 12, 18, 0.55); --line: rgba(236, 235, 230, 0.16); --accent: #e9b560; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; color: var(--ink);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
canvas#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
canvas#view.dragging { cursor: grabbing; }
.panel { position: fixed; background: var(--glass); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); border: 1px solid var(--line); border-radius: 12px; }
button { font: inherit; color: var(--ink); background: rgba(236, 235, 230, 0.08); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover { background: rgba(236, 235, 230, 0.17); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.ghost { background: transparent; border-color: transparent; color: var(--dim); }
button.ghost:hover { color: var(--ink); background: rgba(0,0,0,.3); }
kbd { font: 600 10.5px/1 ui-monospace, Menlo, monospace; background: rgba(236, 235, 230, 0.13); border-radius: 4px; padding: 2px 4px; color: var(--ink); }

#hud { top: 14px; left: 14px; width: 282px; padding: 13px 15px 11px; z-index: 3; }
#hud h1 { margin: 0; font: 600 19px/1.15 var(--serif); letter-spacing: .01em; }
#hud .brand .sub { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
/* the small link home to Wonder Glass: in the main panel only (the Kids area hides every panel, kids.css) */
#hud .brand { position: relative; }
#wgHome { position: absolute; top: 2px; right: 0; color: var(--dim); font-size: 11px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
#wgHome:hover, #wgHome:focus-visible { color: var(--ink); border-color: var(--accent); outline: none; }
#dateLine { margin-top: 11px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#dateText { font: 600 21px/1.1 var(--serif); }
#timeText { font: 500 14px/1 ui-monospace, Menlo, monospace; color: var(--ink); }
#dateLine .utc { font-size: 10px; letter-spacing: .14em; color: var(--dim); }
#rateLine { margin-top: 3px; font-size: 12px; color: var(--accent); display: flex; gap: 8px; flex-wrap: wrap; }
#approxNote { color: #f0a070; }
.row { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.row .lab { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; width: 44px; flex: none; }
#timeRow button { flex: 1; padding: 6px 0; }
#btnPlay.paused { background: var(--accent); color: #1c1307; border-color: var(--accent); }
#btnReverse.on { border-color: var(--accent); color: var(--accent); }
#datePick { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; color-scheme: dark; }
.seg { display: flex; flex: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 6px 0; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: rgba(233, 181, 96, 0.92); color: #1c1307; font-weight: 600; }
.toggles { justify-content: space-between; font-size: 12px; color: var(--dim); }
.toggles label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.toggles input { accent-color: var(--accent); margin: 0; }
#help { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; line-height: 1.55; }
#help b { color: var(--ink); font-weight: 600; }

#finder { top: 14px; left: 310px; width: 260px; padding: 8px; z-index: 3; }
#search { width: 100%; font: inherit; color: var(--ink); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
#results { max-height: min(58vh, 520px); overflow: auto; margin-top: 6px; scrollbar-width: thin; scrollbar-color: rgba(236,235,230,.2) transparent; }
#results:empty { display: none; margin: 0; }
#results .grp { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 8px 6px 3px; }
#results .it { display: flex; justify-content: space-between; gap: 8px; padding: 5px 7px; border-radius: 6px; cursor: pointer; }
#results .it:hover, #results .it.sel { background: rgba(236,235,230,.1); }
#results .it small { color: var(--dim); white-space: nowrap; }

#scaleBanner { left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; font-size: 12px; display: flex; gap: 10px; align-items: baseline; max-width: calc(100vw - 420px); z-index: 2; }
#scaleBanner b { font: 600 11px/1 -apple-system, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
#scaleBanner.true b { color: #8fd0ff; }
#scaleBanner span { color: var(--dim); }
#focusLine { left: 50%; top: 14px; transform: translateX(-50%); padding: 6px 13px; font-size: 12px; color: var(--dim); z-index: 2; max-width: 46vw; text-align: center; }
#focusLine b { color: var(--ink); font-weight: 600; }
#toast { left: 50%; bottom: 58px; transform: translateX(-50%); padding: 8px 13px; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 5; max-width: 70vw; text-align: center; }
#toast.show { opacity: 1; }
#fps { top: 14px; right: 14px; padding: 4px 8px; font: 11px/1.2 ui-monospace, Menlo, monospace; color: var(--dim); border-radius: 8px; z-index: 2; }
body.cardopen #fps { right: 438px; }
#btnCredits { position: fixed; right: 10px; bottom: 9px; font-size: 11px; z-index: 2; }
body.cardopen #btnCredits { right: 438px; }

#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11.5px; letter-spacing: .02em; color: rgba(236,235,230,.86); text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8); pointer-events: auto; cursor: pointer; padding: 1px 4px; border-radius: 4px; will-change: transform; }
.lbl:hover { color: #fff; background: rgba(0,0,0,.4); }
.lbl.k-planet { font: 600 13px/1.2 var(--serif); letter-spacing: .04em; color: #fff; }
.lbl.k-star { font: 600 13px/1.2 var(--serif); color: #ffe7b0; }
.lbl.k-dwarf { color: #d8c8f0; }
.lbl.k-moon { color: rgba(214, 226, 236, .82); font-size: 11px; }
.lbl.k-comet, .lbl.k-interstellar { color: #a8e0e0; }
.lbl.k-asteroid, .lbl.k-tno, .lbl.k-centaur, .lbl.k-dwarf-candidate { color: rgba(220, 205, 180, .85); font-size: 11px; }
.lbl.sel { color: var(--accent); }
.lbl i { font-style: normal; color: var(--dim); font-size: 10px; margin-left: 4px; }

/* ---- the field guide card ---- */
#card { position: fixed; top: 14px; right: 14px; bottom: 14px; width: min(412px, calc(100vw - 28px)); display: flex; flex-direction: column; z-index: 4;
  transform: translateX(calc(100% + 28px)); opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s; }
#card.open { transform: none; opacity: 1; pointer-events: auto; }
#cardView { position: relative; height: 232px; flex: none; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
#cardView::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(rgba(10,12,18,0), rgba(10,12,18,.86)); pointer-events: none; }
#cardView .kick { position: absolute; left: 18px; top: 14px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(236,235,230,.55); }
#cardClose { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; background: rgba(0,0,0,.45); z-index: 1; }
#cardBody { flex: 1; overflow: auto; padding: 0 22px 20px; background: rgba(10,12,18,.86); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; scrollbar-width: thin; scrollbar-color: rgba(236,235,230,.2) transparent; }
#cardName { margin: -6px 0 0; font: 600 29px/1.1 var(--serif); letter-spacing: .005em; position: relative; }
.cnames { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
#cardType { color: var(--accent); font: 500 15px/1.2 var(--serif); }
#cardSci { color: var(--dim); font: italic 13px/1.2 var(--serif); }
.status { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid currentColor; }
.status.real { color: #a9cf96; } .status.partial { color: #d6cf7a; } .status.shape { color: #9fc7e8; } .status.none { color: #f0a070; } .status.images { color: #d8b8e8; }
.cactions { display: flex; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.cactions button { flex: 1; padding: 9px 10px; border-radius: 10px; }
#cardLand { background: var(--accent); border-color: var(--accent); color: #1c1307; font-weight: 600; }
#cardLand:hover { background: #f3c77d; }
#cardAlt.on { border-color: var(--accent); color: var(--accent); }
.cnote { font-size: 11.5px; color: var(--dim); margin: 6px 0 12px; line-height: 1.5; }
.cnote b { color: #f0a070; font-weight: 600; }
#cardRows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: rgba(236,235,230,.05); border: 1px solid rgba(236,235,230,.08); border-radius: 10px; padding: 8px 11px 9px; }
.tile.wide { grid-column: 1 / -1; }
.tile dt { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); }
.tile dd { margin: 3px 0 0; }
.tile dd b { display: block; font: 600 17px/1.2 var(--serif); color: var(--ink); }
.tile dd span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: rgba(236,235,230,.7); }
.tile.unknown dd b { color: var(--dim); font-style: italic; font-weight: 500; }
#card sup { font-size: 8.5px; color: rgba(233,181,96,.8); margin-left: 2px; letter-spacing: .02em; }
#card h3 { margin: 18px 0 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding-top: 14px; border-top: 1px solid rgba(236,235,230,.1); }
.facts { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.facts li { position: relative; padding-left: 30px; margin: 0 0 11px; font: 14.5px/1.5 var(--serif); counter-increment: f; }
.facts li::before { content: counter(f); position: absolute; left: 0; top: -3px; font: 600 21px/1 var(--serif); color: var(--accent); }
.visits { font-size: 12.5px; line-height: 1.6; }
.visits .v { display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border-radius: 99px; background: rgba(236,235,230,.06); border: 1px solid rgba(236,235,230,.1); }
.visits .v small { color: var(--dim); margin-left: 4px; }
.visits .none { color: var(--dim); font-style: italic; }
button.link { background: none; border: 0; padding: 14px 0 4px; color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--ink); background: none; }
#cardSources { font-size: 11.5px; color: var(--dim); line-height: 1.5; }
#cardSources ol { margin: 6px 0 0; padding-left: 22px; }
#cardSources li { margin: 3px 0; word-break: break-word; }
#cardSources a { color: var(--ink); text-decoration-color: rgba(236,235,230,.35); }
#cardSources h4 { margin: 12px 0 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }

#creditsPanel { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 32px)); max-height: min(82vh, 760px); overflow: auto; padding: 16px 20px 18px; z-index: 6; background: rgba(10, 12, 18, 0.92); }
#creditsPanel[hidden] { display: none; }
#creditsPanel .ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#creditsPanel h2 { margin: 0; font: 600 20px/1.2 var(--serif); }
#creditsPanel h3 { margin: 16px 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; }
#creditsPanel ul { margin: 0; padding-left: 18px; }
#creditsPanel li { margin: 5px 0; line-height: 1.45; }
#creditsPanel a { color: var(--accent); }
#creditsPanel p { color: var(--dim); }

#surfaceHud { left: 14px; bottom: 14px; width: 300px; padding: 12px 15px; z-index: 3; }
#surfaceHud .kick { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
#surfaceHud h3 { margin: 3px 0 6px; font: 600 19px/1.2 var(--serif); }
#surfaceHud #surfInfo { font-size: 12px; color: var(--dim); line-height: 1.5; }
#surfaceHud .hint { font-size: 11px; color: var(--dim); margin-top: 8px; }
body.surface #hud, body.surface #finder { display: none; }

#loading { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, #1b1a24 0%, #07080c 60%, #000 100%); transition: opacity .9s; z-index: 10; }
#loading.done { opacity: 0; pointer-events: none; }
#loading .box { text-align: center; max-width: 80vw; }
#loading h2 { font: 600 30px/1.1 var(--serif); margin: 0 0 6px; }
#loading p { margin: 0; color: var(--dim); }
#loading .bar { width: 220px; height: 2px; background: var(--line); margin: 18px auto 10px; overflow: hidden; border-radius: 2px; }
#loading .bar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .4s; }
#err { white-space: pre-wrap; color: #ffb4a0; margin-top: 14px; font: 12px/1.4 ui-monospace, Menlo, monospace; text-align: left; }
@media (max-width: 900px) { #finder { left: 14px; top: auto; bottom: 60px; } }

#surfSite { flex: 1; font: inherit; color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color-scheme: dark; }
#surfaceHud #surfInfo b { color: var(--ink); font-weight: 600; }
#surfaceHud { width: 340px; }

/* ---- "Where in the Solar System?" game ---- */
#btnWhere { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 11px; text-align: left; border-color: rgba(233,181,96,.55); background: rgba(233,181,96,.1); }
#btnWhere b { font: 600 14.5px/1.2 var(--serif); color: var(--accent); }
#btnWhere small { font-size: 11px; color: var(--dim); }
#btnWhere:hover { background: rgba(233,181,96,.2); }
body.game #hud, body.game #finder, body.game #scaleBanner, body.game #focusLine, body.game #toast, body.game #fps, body.game #btnCredits,
body.game #labels, body.game #card, body.game #surfaceHud, body.game #creditsPanel { display: none !important; }
body.game canvas#view { touch-action: none; }
.where-modal { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px; background: rgba(3,4,8,.55); }
.where-modal[hidden], #whereBar[hidden], #wherePanel[hidden], #whereResult[hidden], #whereHint[hidden] { display: none; }
.where-card { position: relative; width: min(470px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 26px 22px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(10,12,18,.9); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.where-kick { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.where-card h2 { margin: 6px 0 8px; font: 600 30px/1.1 var(--serif); }
.where-lede { margin: 0 0 16px; color: var(--dim); font-size: 14px; line-height: 1.5; }
.where-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; background: rgba(0,0,0,.35); }
.where-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.where-levels button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 13px; border-radius: 12px; text-align: left; }
.where-levels button b { font: 600 17px/1.2 var(--serif); }
.where-levels button span { font-size: 12px; color: var(--dim); line-height: 1.4; }
.where-levels button.on { border-color: var(--accent); background: rgba(233,181,96,.16); }
.where-levels button.on b { color: var(--accent); }
.where-primary { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--accent); border-color: var(--accent); color: #1c1307; font-weight: 700; font-size: 15px; }
.where-primary:hover { background: #f3c77d; }
#whereBar { top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 7px 6px 14px; z-index: 7; white-space: nowrap; font-size: 13px; }
#whereBar .where-name { font: 600 14px/1 var(--serif); }
.where-tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(233,181,96,.6); border-radius: 99px; padding: 2px 8px; }
#whereRound { color: var(--dim); }
#whereScoreNow { font-weight: 600; }
#whereExit { padding: 6px 14px; }
#wherePanel { left: 50%; bottom: 14px; transform: translateX(-50%); width: min(660px, calc(100vw - 24px)); padding: 14px 16px 16px; z-index: 7; background: rgba(10,12,18,.8); }
.where-q { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.where-q h3 { margin: 0; font: 600 21px/1.2 var(--serif); }
#whereHow { color: var(--dim); font-size: 11.5px; }
#whereHint { margin-top: 6px; font-size: 13px; color: var(--ink); }
#whereHint b { color: var(--accent); font-weight: 600; }
.where-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.where-choices button { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 11px; text-align: left; font-size: 14.5px; min-height: 48px; }
.where-choices button kbd { flex: none; }
.where-choices button:disabled { cursor: default; opacity: .55; }
.where-choices button.right { opacity: 1; border-color: #8fd18a; background: rgba(120, 200, 110, .22); }
.where-choices button.wrong { opacity: 1; border-color: #f08a70; background: rgba(240, 120, 90, .2); }
.where-choices button.right::after { content: "✓"; margin-left: auto; color: #a9e3a2; font-weight: 700; }
.where-choices button.wrong::after { content: "✗"; margin-left: auto; color: #f6a58f; font-weight: 700; }
#wherePanel.done .where-q #whereHow, #wherePanel.done #whereHint { display: none; }
#whereResult { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.where-res { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
#whereVerdict { font: 600 22px/1.1 var(--serif); }
#whereVerdict.ok { color: #a9e3a2; } #whereVerdict.no { color: #f6a58f; }
#whereAnswer b { font-weight: 600; }
#whereAnswer .when { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
#whereClue { margin: 9px 0 12px; font: 15px/1.5 var(--serif); }
#whereClue .ck { font: 600 10px/1 -apple-system, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
#whereClue .src { display: block; margin-top: 4px; font: 11.5px/1.4 -apple-system, sans-serif; color: var(--dim); }
#whereClue .src a { color: var(--ink); text-decoration-color: rgba(236,235,230,.35); }
#whereLog { margin: 0 0 18px; padding: 0; list-style: none; columns: 2; column-gap: 18px; font-size: 13px; }
#whereLog li { margin: 0 0 5px; break-inside: avoid; color: var(--dim); }
#whereLog li i { font-style: normal; display: inline-block; width: 18px; font-weight: 700; }
#whereLog li.ok i { color: #a9e3a2; } #whereLog li.no i { color: #f6a58f; }
#whereLog li.ok { color: var(--ink); }
#whereEnd h2 { font-size: 40px; }
.where-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.where-btns button { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
#whereVeil { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s; }
#whereVeil.on { opacity: 1; pointer-events: auto; }
#whereVeil div { text-align: center; }
#whereVeil b { display: block; font: 600 28px/1.2 var(--serif); }
#whereVeil span { display: block; margin-top: 6px; color: var(--dim); }
@media (max-width: 640px) {
  #whereBar { left: 8px; right: 8px; transform: none; top: 8px; gap: 8px; font-size: 12px; }
  #whereBar .where-name { display: none; }
  #whereExit { margin-left: auto; }
  #wherePanel { bottom: 8px; padding: 11px 12px 12px; width: calc(100vw - 16px); }
  .where-q h3 { font-size: 18px; }
  .where-choices { gap: 6px; margin-top: 9px; }
  .where-choices button { font-size: 13.5px; padding: 9px 10px; min-height: 46px; }
  .where-choices button kbd { display: none; }
  #whereClue { font-size: 14px; margin: 7px 0 10px; }
  .where-card { padding: 20px 18px 18px; }
  .where-card h2 { font-size: 26px; }
  .where-levels { grid-template-columns: 1fr; }
  #whereLog { columns: 1; }
}
@media (pointer: coarse) { .where-choices button kbd { display: none; } }
.where-endlevel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.where-seg { display: flex; flex: 1; max-width: 280px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.where-seg button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 8px 0; font-size: 14px; text-transform: none; letter-spacing: 0; }
.where-seg button + button { border-left: 1px solid var(--line); }
.where-seg button.on { background: rgba(233, 181, 96, 0.92); color: #1c1307; font-weight: 600; }
#whereBonus { margin: -4px 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(233,181,96,.1); border: 1px solid rgba(233,181,96,.3); font: 14.5px/1.5 var(--serif); }
#whereBonus[hidden] { display: none; }
#whereBonus .ck { font: 600 10px/1 -apple-system, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
#whereBonus .src { display: block; margin-top: 4px; font: 11.5px/1.4 -apple-system, sans-serif; color: var(--dim); }
#whereBonus .src a { color: var(--ink); text-decoration-color: rgba(236,235,230,.35); }

/* ---- main menu: game + Learning Center side by side ---- */
.row.menu2 { gap: 8px; }
.row.menu2 button { flex: 1; min-width: 0; }
#btnLearn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 11px; text-align: left; border-color: rgba(143,208,255,.55); background: rgba(143,208,255,.1); }
#btnLearn b { font: 600 14.5px/1.2 var(--serif); color: #9fd4ff; }
#btnLearn small { font-size: 11px; color: var(--dim); }
#btnLearn:hover { background: rgba(143,208,255,.2); }
.row.menu2 #btnWhere b, .row.menu2 #btnLearn b { font-size: 13.5px; }

/* ---- Learning Center ---- */
body.learn #hud, body.learn #finder, body.learn #scaleBanner, body.learn #focusLine, body.learn #toast, body.learn #fps, body.learn #btnCredits,
body.learn #labels, body.learn #card, body.learn #surfaceHud, body.learn #creditsPanel { display: none !important; }
body.learn canvas#view { touch-action: none; }
.lc-menu { width: min(1180px, 100%); }
@media (min-width: 1100px) { .lc-cards { grid-template-columns: repeat(5, 1fr) !important; } }
.lc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lc-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 12px; border-radius: 14px; text-align: left; min-height: 138px; background: rgba(236,235,230,.05); }
.lc-card .lc-n { font: 600 28px/1 var(--serif); color: #9fd4ff; }
.lc-card b { font: 600 16px/1.25 var(--serif); }
.lc-card .lc-t { font-size: 12px; color: var(--dim); line-height: 1.4; }
.lc-card .lc-st { margin-top: auto; padding-top: 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lc-card.done { border-color: rgba(169,227,162,.5); }
.lc-card.done .lc-st { color: #a9e3a2; }
#learnBar { top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 7px; z-index: 7; white-space: nowrap; font-size: 13px; max-width: calc(100vw - 16px); }
#learnBar[hidden] { display: none; }
#learnBar #learnNum { color: var(--dim); }
#learnBar #learnName { font: 600 14px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; }
#learnMute.off { color: var(--dim); }
#learnTop { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); width: min(96vw, 980px); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
body:not(.learn) #learnTop { display: none; }
#learnBadges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#learnBadges:empty { display: none; }
.lc-badge { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; color: #ffd08a; border: 1px solid rgba(255,208,138,.6); background: rgba(10,12,18,.6); }
#learnBig { text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.85); }
#learnBig[hidden] { display: none; }
#learnBigNum { display: block; font: 700 clamp(40px, 7.5vw, 92px)/1 var(--serif); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
#learnBigCap { display: block; margin-top: 6px; font-size: clamp(13px, 1.6vw, 17px); color: rgba(236,235,230,.85); }
/* the callout has its own slot under the big number (kept even when empty, so nothing jumps) */
#learnCallout { min-height: 3.1em; opacity: 0; transition: opacity .35s; text-align: center; font: 600 clamp(19px, 2.4vw, 28px)/1.15 var(--serif); text-shadow: 0 2px 16px rgba(0,0,0,.95); }
#learnCallout.on { opacity: 1; }
#learnCallout small { display: block; font: 500 clamp(12px, 1.3vw, 15px)/1.35 -apple-system, sans-serif; color: #9fd4ff; margin-top: 3px; }
body.lc-nocallout #learnCallout { display: none; }
#learnLeaders { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }
#learnLeaders line { stroke: rgba(236,235,230,.85); stroke-width: 1.5; }
#learnLeaders circle { fill: none; stroke: rgba(236,235,230,.85); stroke-width: 1.5; }
#learnTags { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.lc-tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 13px; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.9); padding: 1px 3px; }
.lc-tag b { font: 600 14px/1.2 var(--serif); }
.lc-tag i { font-style: normal; color: #9fd4ff; margin-left: 6px; }
.lc-tag.big b { font-size: 18px; }
.lc-tag.small i { font-style: normal; font-size: 12px; color: #cfd8e6; margin: 0; }
.lc-tag.center b { font: 700 16px/1.2 -apple-system, sans-serif; }
.lc-fitrange { -webkit-appearance: none; appearance: none; height: 10px; border-radius: 5px; background: var(--fit, #333); margin: 10px 0 4px; }
.lc-fitrange::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #9fd4ff; box-shadow: 0 1px 6px rgba(0,0,0,.6); }
.lc-fitrange::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #9fd4ff; }
#learnPanel { left: 50%; bottom: 14px; transform: translateX(-50%); animation: lcin .45s ease-out; width: min(640px, calc(100vw - 24px)); padding: 16px 18px 16px; z-index: 7; background: rgba(10,12,18,.82); }
#learnPanel[hidden] { display: none; }
#learnPanel.lc-wait { visibility: hidden; animation-play-state: paused; }
.lc-kick { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #9fd4ff; }
.lc-q { margin: 6px 0 12px; font: 600 clamp(18px, 2.2vw, 23px)/1.25 var(--serif); }
.lc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.lc-opts button { padding: 12px 12px; border-radius: 11px; font-size: 15px; min-height: 48px; }
.lc-slider { display: flex; align-items: center; gap: 12px; }
.lc-slider input { flex: 1; accent-color: #9fd4ff; height: 28px; }
.lc-slider output { min-width: 110px; text-align: right; font: 600 20px/1 var(--serif); }
.lc-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin: 2px 122px 12px 0; }
.lc-go, .lc-action { width: 100%; padding: 13px 14px; border-radius: 12px; background: #9fd4ff; border-color: #9fd4ff; color: #07131f; font-weight: 700; font-size: 16px; }
.lc-action { font-size: 18px; padding: 16px; animation: lcpulse 1.6s ease-in-out infinite; }
@keyframes lcin { 0% { opacity: 0; transform: translate(-50%, 24px); } 55% { opacity: 0.3; transform: translate(-50%, 14px); } 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes lcpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(159,212,255,.5); } 50% { box-shadow: 0 0 0 10px rgba(159,212,255,0); } }
.lc-go:hover, .lc-action:hover { background: #bfe3ff; }
.lc-sub { margin-top: 8px; font-size: 12.5px; color: var(--dim); text-align: center; }
.lc-say { font: 500 16px/1.45 var(--serif); text-align: center; }
.lc-revbig { font: 700 clamp(30px, 4.6vw, 52px)/1.05 var(--serif); margin: 4px 0 6px; }
.lc-text { margin: 4px 0 8px; font: 17px/1.45 var(--serif); }
.lc-guess { margin: 0 0 8px; font-size: 13.5px; color: #ffd08a; }
.lc-src { font-size: 11.5px; color: var(--dim); margin: 6px 0 12px; }
.lc-src a { color: var(--ink); text-decoration-color: rgba(236,235,230,.35); }
.lc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.lc-btns button { flex: 1; padding: 11px 12px; border-radius: 11px; font-size: 14.5px; min-width: 140px; }
.lc-btns .lc-next { background: #9fd4ff; border-color: #9fd4ff; color: #07131f; font-weight: 700; }
.lc-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.lc-row button { flex: 1; padding: 10px; border-radius: 10px; min-width: 90px; }
.lc-row button.on { background: rgba(159,212,255,.25); border-color: #9fd4ff; }
.lc-range { width: 100%; accent-color: #9fd4ff; height: 30px; }
#learnHold { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 8; padding: 16px 18px; border-radius: 16px; font-weight: 700; background: rgba(10,12,18,.7); border-color: rgba(159,212,255,.6); color: #9fd4ff; user-select: none; -webkit-user-select: none; touch-action: none; }
#learnHold[hidden] { display: none; }
#learnHold.on { background: #9fd4ff; color: #07131f; }
#learnPhoto { position: fixed; right: 16px; top: 72px; z-index: 7; margin: 0; width: min(420px, 44vw); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
#learnPhoto[hidden] { display: none; }
#learnPhoto img { display: block; width: 100%; }
#learnPhoto figcaption { padding: 7px 10px; font-size: 11.5px; color: var(--dim); }
.lc-bars { display: grid; gap: 8px; margin: 4px 0 10px; }
.lc-bar { position: relative; height: 34px; border-radius: 9px; background: rgba(236,235,230,.08); overflow: hidden; }
.lc-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(255,196,110,.55), rgba(255,170,80,.9)); }
.lc-bar.yr i { background: linear-gradient(90deg, rgba(120,190,255,.5), rgba(120,190,255,.95)); }
.lc-bar span { position: absolute; left: 12px; top: 8px; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.lc-bar.done span::after { content: "  done"; color: #fff; }
@media (max-width: 640px) {
  #learnBar { left: 8px; right: 8px; transform: none; top: 8px; gap: 8px; font-size: 12px; }
  #learnBar #learnName, #learnBar #learnNum { display: none; }
  #learnExit { margin-left: auto; }
  #learnPanel { bottom: 8px; width: calc(100vw - 16px); padding: 12px; }
  #learnTop { top: 56px; }
  #learnBigNum { font-size: clamp(30px, 10.5vw, 60px); white-space: nowrap; }
  #learnBadges { gap: 4px; }
  .lc-badge { font-size: 9px; letter-spacing: .05em; padding: 3px 7px; white-space: normal; max-width: 100%; text-align: center; }   /* a label wider than the screen wraps; the others stay on one line */
  .lc-ends { margin-right: 0; }
  .lc-slider output { min-width: 86px; font-size: 17px; }
  #learnPhoto { left: 8px; right: 8px; width: auto; top: 60px; }
  #learnHold { bottom: 12px; }
}

/* Venus surface compass (Learning Center, fact 7) */
.lc-compass { position: relative; width: min(440px, 84vw); flex: none; height: 38px; border-radius: 19px; background: rgba(10,12,18,.6); border: 1px solid rgba(255,255,255,.25); overflow: hidden; z-index: 7; pointer-events: none; }
.lc-compass b { position: absolute; top: 8px; transform: translateX(-50%); font: 700 16px/1 -apple-system, sans-serif; color: #fff; }
.lc-compass b.w { color: #ffd08a; text-shadow: 0 0 10px #ffb347; }
.lc-compass i { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #ffd08a; }

/* icons drawn as SVG (no emoji) */
.lc-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; fill: currentColor; }
.lc-card .lc-st svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; fill: currentColor; }

/* the real photo inside the reveal card (fact 9) */
.lc-photo { margin: 4px 0 8px; display: flex; gap: 10px; align-items: flex-end; }
.lc-photo img { width: min(46%, 240px); border-radius: 10px; border: 1px solid var(--line); }
.lc-photo figcaption { font-size: 11.5px; color: var(--dim); line-height: 1.35; }
@media (max-width: 640px) { .lc-photo img { width: 48%; } }
@media (min-width: 641px) {
  #learnPanel:not([hidden]):has(> .lc-photo) { display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-rows: auto auto auto auto 1fr auto auto; column-gap: 16px; }
  #learnPanel:not([hidden]):has(> .lc-photo) > * { grid-column: 1; }
  #learnPanel:not([hidden]):has(> .lc-photo) > .lc-photo { grid-column: 2; grid-row: 1 / 6; flex-direction: column; align-items: stretch; gap: 6px; margin: 2px 0 6px; }
  #learnPanel:not([hidden]):has(> .lc-photo) > .lc-photo img { width: 100%; height: auto; }
  #learnPanel:not([hidden]):has(> .lc-photo) > .lc-src { grid-column: 1 / -1; grid-row: 6; }
  #learnPanel:not([hidden]):has(> .lc-photo) > .lc-btns { grid-column: 1 / -1; grid-row: 7; }
}

/* text stays readable on bright skies: a tight dark shadow hugging each letter (no glow across the sky), dark pills under labels */
#learnBigNum, #learnBigCap, #learnCallout, #learnCallout small { text-shadow: 0 0 1px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.55); }
#learnBigCap { color: #f2f1ec; font-weight: 500; }
.lc-tag { background: rgba(6,8,14,.62); border-radius: 6px; padding: 2px 7px; }
/* a thin panel while an animation plays, so the picture has room */
#learnPanel.lc-compact { padding: 8px 14px 9px; width: min(560px, calc(100vw - 24px)); }
#learnPanel.lc-compact .lc-kick { font-size: 9px; }
#learnPanel.lc-compact .lc-range { height: 20px; }
#learnPanel.lc-compact .lc-sub { margin-top: 0; font-size: 11.5px; }
#learnPanel.lc-compact .lc-bars { gap: 4px; margin: 4px 0 0; }
#learnPanel.lc-compact .lc-bar { height: 18px; border-radius: 6px; }
#learnPanel.lc-compact .lc-bar span { top: 2px; left: 8px; font-size: 11.5px; }
#learnPanel.lc-compact .lc-inline { display: flex; align-items: center; gap: 10px; }
#learnPanel.lc-compact .lc-inline .lc-range { flex: 1; }
#learnPanel.lc-compact .lc-inline button { flex: none; padding: 7px 12px; border-radius: 9px; font-size: 13px; }
#learnPanel.lc-compact .lc-inline .lc-yr { font-size: 11px; color: var(--dim); flex: none; }
/* reveal cards a little tighter */
.lc-revbig { font-size: clamp(28px, 4vw, 46px); margin: 2px 0 4px; }
.lc-text { font-size: 16px; line-height: 1.4; margin: 2px 0 6px; }
.lc-src { margin: 4px 0 10px; }

/* ---- Learning Center on touch screens (Set 2 round): the page never zooms or slides, every target is at least 44 x 44 ---- */
html, body { overscroll-behavior: none; }
body.learn { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.learn #learnBar { touch-action: none; }
.where-modal .where-card, body.learn #learnPanel { touch-action: pan-y; overscroll-behavior: contain; }
#learnBar { padding: 3px; gap: 8px; }
#learnBar button { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
#learnBar #learnNum, #learnBar #learnName { padding: 0 2px; }
#learnMenuClose { width: 44px; height: 44px; right: 8px; top: 8px; font-size: 22px; }
#learnPanel button, .lc-opts button, .lc-btns button, .lc-row button, .lc-go, .lc-action, .lc-play { min-height: 44px; min-width: 44px; }
#learnPanel.lc-compact .lc-inline button { min-height: 44px; }
.lc-range, .lc-slider input, #learnPanel.lc-compact .lc-range { height: 44px; margin: 0; }
.lc-fitrange { height: 44px; background: transparent; margin: 0; }
.lc-fitrange::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: var(--fit, #333); }
.lc-fitrange::-webkit-slider-thumb { margin-top: -6px; }
.lc-fitrange::-moz-range-track { height: 10px; border-radius: 5px; background: var(--fit, #333); }
.lc-src a { padding: 12px 0; margin: -12px 0; }
.lc-set { grid-column: 1 / -1; margin: 8px 0 -2px; font: 600 11px/1.2 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9fd4ff; }
.lc-set:first-child { margin-top: 0; }
.lc-card.lc-soon { opacity: .5; cursor: default; }
.lc-card.lc-soon:hover { background: rgba(236,235,230,.05); }
#learnLeaders circle.lc-ring { stroke: #9fd4ff; stroke-width: 2; stroke-dasharray: 5 4; }
@media (max-width: 640px) {
  #learnBar { padding: 3px; gap: 6px; }
  #learnTop { top: 64px; }
}
@media (max-width: 460px) {
  #learnBar .lc-bt { display: none; }
  #learnBar .lc-ico { margin-right: 0; width: 16px; height: 16px; }
  #learnBar button { padding: 0; width: 44px; }
}

/* the Kids button (main menu): opens the Kids area; it never opens by itself */
.row.menu3 { margin-top: 8px; }
.row.menu3 #btnKids { width: 100%; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 14px; background: linear-gradient(135deg, #ffd23f, #ff9b6a); color: #18203f; border: 0; }
.row.menu3 #btnKids b { font-size: 15px; grid-column: 2; }
.row.menu3 #btnKids small { grid-column: 2; color: #3a2a20; }
.row.menu3 .kids-ic { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: #36c9b4 radial-gradient(circle at 34% 45%, #7ff3ff 14%, transparent 15%), radial-gradient(circle at 66% 45%, #7ff3ff 14%, transparent 15%); background-color: #16224a; box-shadow: 0 0 0 3px #36c9b4; }

/* "Where is it?" and "Why it matters" on fact cards (notes 15 and 16) */
.lc-where { display: flex; gap: 12px; align-items: center; margin: 2px 0 8px; padding: 8px 10px; border-radius: 12px; background: rgba(159,212,255,.07); border: 1px solid rgba(159,212,255,.16); }
.lc-where .lw-figs { display: flex; gap: 8px; flex: none; }
.lc-where .lw-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 150px; }
.lc-where .lw-fig figcaption { font-size: 10px; line-height: 1.25; color: var(--dim); text-align: center; margin-top: 3px; }
.lc-where .lw-cv { display: block; }
.lc-where .lw-text { min-width: 0; }
.lc-where .lw-text p { margin: 0 0 4px; font-size: 13px; line-height: 1.38; }
.lc-where .lw-text p:last-child { margin: 0; }
.lc-where .lw-h { display: inline-block; margin-right: 4px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #9fd4ff; font-weight: 700; }
.lw-y .lw-h { color: #ffd08a; }
.lc-why { margin: 0 0 8px; font-size: 13px; line-height: 1.38; }
.lc-why .lw-h { display: inline-block; margin-right: 4px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
/* the pictures' captions also sit in the text line; shown there only where the captions under the pictures are hidden */
.lc-where .lw-capline { display: none; color: var(--dim); font-size: 11.5px; }
/* mid-size screens (tablets upright): smaller pictures, captions in the text line, so the card stays short */
@media (min-width: 561px) and (max-width: 899px) {
  .lc-where { padding: 6px 10px; }
  .lc-where .lw-cv { width: auto !important; height: 62px !important; }
  .lc-where .lw-fig figcaption { display: none; }
  .lc-where .lw-capline { display: inline; }
}
/* phones: the block starts as one line (a tiny picture, "Where is it? ...", an arrow); a tap opens the full pictures and
   "Why it matters". On a phone the card would otherwise cover the picture (the owner can overrule: DECISIONS 152) */
@media (max-width: 560px) {
  .lc-where { gap: 8px; padding: 6px 8px; margin: 0 0 6px; cursor: pointer; position: relative; }
  .lc-where .lw-figs { gap: 4px; }
  .lc-where .lw-cv { width: auto !important; height: 54px !important; }
  .lc-where .lw-fig figcaption { display: none; }
  .lc-where .lw-text p, .lc-why { font-size: 12.5px; line-height: 1.32; }
  .lc-why { margin-bottom: 6px; }
  .lc-where:not(.open) { padding: 4px 26px 4px 6px; }
  .lc-where:not(.open) .lw-cv { height: 28px !important; }
  .lc-where:not(.open) .lw-fig + .lw-fig { display: none; }
  .lc-where:not(.open) .lw-text { min-width: 0; flex: 1; }
  .lc-where:not(.open) .lw-w { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lc-where:not(.open) + .lc-why { display: none; }
  .lc-where.open .lw-capline { display: inline; }
  .lc-where::after { content: '\203A'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #9fd4ff; }
  .lc-where.open::after { transform: translateY(-50%) rotate(90deg); top: 16px; }
}
/* wide screens: "Where is it?" sits in a column beside the fact (the card gets wider, not taller, so the picture keeps its room) */
@media (min-width: 900px) {
  #learnPanel:not([hidden]):has(> .lc-where):not(:has(> .lc-photo)) { width: min(980px, calc(100vw - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) 336px; grid-template-rows: auto auto auto auto auto 1fr auto auto; column-gap: 18px; }
  #learnPanel:not([hidden]):has(> .lc-where):not(:has(> .lc-photo)) > * { grid-column: 1; }
  #learnPanel:not([hidden]):has(> .lc-where):not(:has(> .lc-photo)) > .lc-where { grid-column: 2; grid-row: 1 / 7; flex-direction: column; align-items: stretch; gap: 6px; margin: 2px 0 6px; padding: 8px 10px 8px; align-self: start; }
  #learnPanel:not([hidden]):has(> .lc-where):not(:has(> .lc-photo)) > .lc-where .lw-figs { justify-content: center; }
  #learnPanel:not([hidden]):has(> .lc-where):not(:has(> .lc-photo)) > .lc-src { grid-column: 1 / -1; grid-row: 7; }
  #learnPanel:not([hidden]):has(> .lc-where):not(:has(> .lc-photo)) > .lc-btns { grid-column: 1 / -1; grid-row: 8; }
}
