/* The bag (earth/bag.js): its button, its drawer, the cards, and the extra lesson boxes (choice, go find it, finding,
   collect). Every class starts with bag- or bx- so nothing here touches Earth's own styles. Used by /earth/ and /history/.
   Look (Nov 14 2026, second pass): a museum's collection drawer. Near-black panels, cream type, one gold accent,
   hairlines instead of boxes, a serif for names and titles, photographs instead of drawings. Nothing bounces. */
:root {
  --bag-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; --bag-sans: "Bricolage Grotesque", system-ui, sans-serif; --bag-mono: "Martian Mono", ui-monospace, monospace;
  --bag-k0: #fbfaf7; --bag-k1: #ffffff; --bag-k2: #efece6; --bag-kl: rgba(47,59,69,.14); --bag-t: #2f3b45; --bag-d: #687682; --bag-gold: #b8862b;
  --bag-ink: #2f3b45; --bag-ease: cubic-bezier(.22,.61,.36,1);
}
.bag-panel *, .bx *, .bag-reveal *, .bag-card * { box-sizing: border-box; }
.bag-panel[hidden], .bag-panel [hidden], .bag-scrim[hidden], .bag-badge[hidden] { display: none !important; }
.bag-panel small, .bag-reveal small, .bag-card small { font-family: var(--bag-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bag-d); }
.bag-panel dfn, .bag-reveal dfn { font-style: italic; font-family: var(--bag-serif); font-size: 1.12em; color: var(--bag-gold); }
.bag-shake { animation: bag-shake .35s; }
@keyframes bag-shake { 25% { translate: -5px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
@keyframes bag-up { from { opacity: 0; translate: 0 10px; } }
@keyframes bag-fade { from { opacity: 0; } }

/* ---- the three buttons, top right: Moments, Ideas, People, each with its count; they open the side panel */
.bag-opens { flex: none; display: flex; gap: 6px; }
.bag-opens { display: none; } /* HIDDEN FOR NOW (Manny, Nov 25 2026): the Moments, Ideas and People buttons, on Earth and on My Timeline. Take this line out to bring them back; the buttons, their panels and what was collected are all still there. */
.bag-open { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line, #e2ddd3); background: var(--panel, #fbfaf7); color: var(--bag-ink); box-shadow: var(--shadow-s, 0 2px 6px rgba(46,56,66,.1)); font: 600 13px var(--bag-sans); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bag-open i { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bag-ink); color: #fff; font: 500 10px/22px var(--bag-mono); font-style: normal; text-align: center; transition: background .2s, color .2s; }
.bag-open:hover { border-color: #cfc8bb; }
.bag-open[aria-expanded="true"] { background: var(--bag-ink); border-color: var(--bag-ink); color: #fff; } .bag-open[aria-expanded="true"] i { background: #fff; color: var(--bag-ink); }
.bag-open.wiggle { animation: bag-call 1.8s ease-out infinite; border-color: var(--bag-gold); }
.bag-open.bump { animation: bag-bump .35s var(--bag-ease); }
@keyframes bag-call { 0% { box-shadow: 0 0 0 0 rgba(184,134,43,.7); } 100% { box-shadow: 0 0 0 18px rgba(184,134,43,0); } }
@keyframes bag-bump { 40% { scale: 1.14; } }
@media (max-width: 620px) { .bag-open { padding: 0 6px 0 10px; font-size: 12px; gap: 5px; } .bag-open i { min-width: 19px; height: 19px; line-height: 19px; font-size: 9px; padding: 0 4px; } }

/* My Timeline: a button in the top bar beside the bag, in the same quiet style as the bar's other buttons */
.bag-tlbtn { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line, #e2ddd3); background: var(--panel, #fbfaf7); color: var(--bag-ink); box-shadow: var(--shadow-s, 0 2px 6px rgba(46,56,66,.1)); font: 600 13px var(--bag-sans); text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.bag-tlbtn:hover { background: var(--bag-ink); border-color: var(--bag-ink); color: #fff; }
@media (max-width: 620px) { .bag-tlbtn { padding: 0 11px; font-size: 12px; } }

/* ---- My Timeline, over the page: the timeline's own page in a frame that covers everything */
.tl-over { position: fixed; inset: 0; z-index: 44; background: #050506; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .35s ease, transform .5s var(--bag-ease), visibility 0s .5s; }
.tl-over.open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .5s var(--bag-ease); }
.tl-over iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---- buttons and links */
.bag-go { display: block; width: 100%; padding: 13px 20px; border: 0; border-radius: 8px; background: var(--bag-t); color: var(--bag-k0); font: 600 15px var(--bag-sans); letter-spacing: .01em; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, opacity .2s; }
.bag-go:hover:not(:disabled) { background: #1f2830; }
.bag-go:disabled { opacity: .3; cursor: default; }
.bag-link { display: inline-block; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--bag-gold); font: 500 14px var(--bag-sans); text-align: left; text-decoration: underline; text-decoration-color: rgba(184,134,43,.45); text-underline-offset: 4px; cursor: pointer; }
.bag-link:hover { text-decoration-color: var(--bag-gold); }

/* ---- pictures and cards. A card is dark wherever it appears, so it reads as an object taken out of the drawer. */
.bag-art { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: color-mix(in srgb, var(--c, #888) 30%, var(--bag-k2)); }
.bag-art i, .bag-face i { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 46px var(--bag-serif); color: rgba(47,59,69,.3); }
.bag-art img, .bag-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .6s var(--bag-ease), filter .3s; }
.bag-art.big { aspect-ratio: auto; height: 250px; border-radius: 8px; }
.bag-art.mini { width: 54px; height: 54px; aspect-ratio: 1; border-radius: 6px; flex: none; } .bag-art.mini i { font-size: 24px; }
.bag-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; border-radius: 8px; border: 1px solid var(--bag-kl); background: var(--bag-k1); box-shadow: 0 2px 10px rgba(46,56,66,.07); font-family: var(--bag-sans); color: var(--bag-t); transition: border-color .25s, transform .25s var(--bag-ease); }
button.bag-card { cursor: pointer; }
button.bag-card:hover { border-color: var(--bag-gold); } button.bag-card:hover img { transform: scale(1.05); filter: none; }
.bag-card .meta { display: block; padding: 12px 14px 14px; min-width: 0; }
.bag-card .meta small { display: block; color: var(--bag-gold); }
.bag-card .meta b { display: block; font: 400 22px/1.08 var(--bag-serif); margin: 5px 0 4px; }
.bag-card .meta > span { font-size: 13px; color: var(--bag-d); }
.bag-card .pips { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.bag-card .pips em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.94); border: 1px solid var(--c); color: var(--c); font: normal 15px/1 var(--bag-serif); }
.bag-card.person, .bag-card.idea { flex-direction: row; align-items: center; gap: 4px; padding-left: 14px; }
.bag-card.ghost { display: grid; place-items: center; min-height: 190px; border-style: dashed; background: none; } .bag-card.ghost span { font: 500 9.5px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: #9aa3ad; }
.bag-card.sel { border-color: var(--bag-gold); box-shadow: 0 0 0 1px var(--bag-gold); }
.bag-face { position: relative; flex: none; display: block; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c, #888) 35%, var(--bag-k2)); box-shadow: 0 0 0 1px var(--bag-kl); }
.bag-face i { font-size: 24px; } .bag-face.big { width: 116px; height: 116px; } .bag-face.big i { font-size: 52px; }
.bag-face.dark { background: none; box-shadow: none; border: 1px dashed #cfc8bb; }
.bag-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); font: 400 26px/1 var(--bag-serif); } .bag-ico.big { width: 72px; height: 72px; font-size: 40px; }
.bag-card.idea .meta small { color: var(--c); }
.bag-fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.bag-mote { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--bag-gold); box-shadow: 0 0 8px 2px rgba(184,134,43,.5); }
.bag-fly { position: fixed !important; z-index: 61; margin: 0; pointer-events: none; }

/* ---- the drawer: slides in from the right */
.bag-scrim { position: fixed; inset: 60px 0 0 0; z-index: 39; background: transparent; } /* unseen: it only catches a click outside the panel, to close it. No dimming or blur (Manny, Nov 15: the haze stopped at the top bar and looked wrong) */
.bag-panel { position: fixed; z-index: 40; top: 60px; right: 0; bottom: 0; border-top: 1px solid var(--bag-kl); border-top-left-radius: 14px; width: min(580px, 100vw); display: flex; flex-direction: column; overflow: hidden; font-family: var(--bag-sans); color: var(--bag-t);
  background: var(--bag-k0); border-left: 1px solid var(--bag-kl); box-shadow: -20px 0 60px rgba(46,56,66,.18); transform: translateX(102%); transition: transform .42s var(--bag-ease); }
.bag-panel.open { transform: none; }
.bag-head { display: flex; align-items: baseline; gap: 16px; padding: 26px 28px 6px; }
.bag-n { font: 500 10px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bag-d); }
.bag-head h2 { margin: 0; font: 400 40px/1 var(--bag-serif); letter-spacing: -.01em; }
.bag-x { margin-left: auto; }
.bag-x { position: relative; align-self: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--bag-kl); background: none; border-radius: 50%; color: var(--bag-t); cursor: pointer; } .bag-x:hover { border-color: var(--bag-t); }
.bag-x::before, .bag-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1px; background: currentColor; transform: translate(-50%,-50%) rotate(45deg); } .bag-x::after { transform: translate(-50%,-50%) rotate(-45deg); }
.bag-pickbanner { margin: 14px 28px 0; padding: 12px 16px; border: 1px solid rgba(184,134,43,.5); border-radius: 8px; background: rgba(184,134,43,.08); font-size: 15px; line-height: 1.4; }
.bag-pickbanner b { display: block; font: 500 10px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bag-gold); margin-bottom: 3px; }
.bag-list, .bag-detail { flex: 1; overflow-y: auto; padding: 14px 28px 32px; scrollbar-width: thin; scrollbar-color: #d5cfc3 transparent; }
.bag-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--bag-kl); }
.bag-tab { padding: 10px 0 12px; margin-bottom: -1px; border: 0; border-bottom: 1px solid transparent; background: none; font: 500 15px var(--bag-sans); color: var(--bag-d); cursor: pointer; transition: color .2s; }
.bag-tab i { margin-left: 8px; font: 500 9.5px var(--bag-mono); letter-spacing: .08em; font-style: normal; color: #9aa3ad; }
.bag-tab:hover { color: var(--bag-t); } .bag-tab.on { color: var(--bag-t); border-bottom-color: var(--bag-gold); } .bag-tab.on i { color: var(--bag-gold); } .bag-tab:disabled { opacity: .3; cursor: default; }
.bag-search { display: flex; align-items: center; gap: 10px; margin-top: 14px; border-bottom: 1px solid var(--bag-kl); color: var(--bag-d); } .bag-search:focus-within { border-color: var(--bag-gold); }
.bag-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 11px 0; font: 400 15px var(--bag-sans); color: var(--bag-t); } .bag-search input::placeholder { color: #9aa3ad; }
.bag-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; } .bag-frow small { width: 52px; }
.bag-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--bag-kl); background: none; font: 500 9.5px var(--bag-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bag-d); cursor: pointer; transition: color .2s, border-color .2s; }
.bag-chip:hover { color: var(--bag-t); } .bag-chip.on { border-color: var(--bag-gold); color: var(--bag-gold); }
.bag-grid { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.bag-grid.g-ideas { grid-template-columns: 1fr; } .bag-grid.g-people { display: block; }
.bag-grid > .bag-card { animation: bag-up .45s var(--bag-ease) var(--d, 0ms) both; }
.bag-empty { grid-column: 1/-1; color: var(--bag-d); font-size: 15px; padding: 8px 0; margin: 0; }
.bag-pickbar { padding: 14px 28px 18px; border-top: 1px solid var(--bag-kl); }

/* ---- people: a roster. Rows of round portraits; the chosen one's story is set out underneath. */
.bag-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 24px 8px; padding: 4px 0 26px; }
.bag-char { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--bag-t); font-family: var(--bag-sans); cursor: pointer; animation: bag-up .45s var(--bag-ease) var(--d, 0ms) both; }
.bag-char .bag-face { width: 74px; height: 74px; transition: box-shadow .3s; } .bag-char .bag-face img { filter: grayscale(.9); }
.bag-char b { font-size: 13px; font-weight: 500; line-height: 1.15; text-align: center; color: var(--bag-d); transition: color .2s; } .bag-char small { font-size: 8.5px; color: #9aa3ad; margin-top: -5px; }
.bag-char:hover .bag-face img, .bag-char.on .bag-face img { filter: none; } .bag-char:hover b { color: var(--bag-t); }
.bag-char.on .bag-face { box-shadow: 0 0 0 2px var(--bag-k0), 0 0 0 3px var(--bag-gold), 0 0 22px rgba(184,134,43,.3); } .bag-char.on b { color: var(--bag-t); }
.bag-char.locked { cursor: default; } .bag-char.locked b { font: 500 8.5px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: #b0b6bd; }
.bag-stage { display: grid; grid-template-columns: 116px 1fr; gap: 0 22px; align-items: center; padding-top: 26px; border-top: 1px solid var(--bag-kl); animation: bag-fade .4s both; }
.bag-spot { grid-row: span 1; }
.bag-who small { color: var(--bag-gold); } .bag-who h3 { margin: 6px 0 4px; font: 400 44px/1 var(--bag-serif); letter-spacing: -.01em; } .bag-who p { margin: 0; color: var(--bag-d); font-size: 15px; }
.bag-facts { grid-column: 1/-1; margin-top: 24px; }
.bag-facts > div { display: grid; grid-template-columns: 138px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--bag-kl); animation: bag-up .4s var(--bag-ease) both; }
.bag-facts > div:nth-child(2) { animation-delay: .05s; } .bag-facts > div:nth-child(3) { animation-delay: .1s; } .bag-facts > div:nth-child(4) { animation-delay: .15s; } .bag-facts > div:nth-child(5) { animation-delay: .2s; }
.bag-facts small { padding-top: 4px; line-height: 1.5; } .bag-facts p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.bag-facts .choice small { color: var(--bag-gold); } .bag-facts .you small { color: #2f6fd0; } .bag-facts .you p { font: italic 400 20px/1.3 var(--bag-serif); } .bag-facts .win small { color: #2f8a4a; } .bag-facts .miss small { color: #c8452f; }
.bag-stage .bag-link { grid-column: 1/-1; justify-self: start; }
.bag-stage.empty h3 { margin: 0 0 4px; font: 400 26px var(--bag-serif); } .bag-stage.empty p { margin: 0; color: var(--bag-d); }

/* ---- a moment's or an idea's own page */
.bag-detail { animation: bag-fade .35s both; }
.bag-back { border: 0; background: none; padding: 4px 0 16px; font: 500 10px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bag-d); cursor: pointer; } .bag-back:hover { color: var(--bag-t); }
.bag-detail .kick { display: block; margin-top: 20px; color: var(--bag-gold); }
.bag-detail .ttl { font: 400 46px/1.02 var(--bag-serif); letter-spacing: -.01em; margin: 8px 0 12px; }
.bag-detail h4 { font: 500 10px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bag-d); margin: 30px 0 0; padding: 16px 0 12px; border-top: 1px solid var(--bag-kl); }
.bag-detail .lead { font-size: 17px; line-height: 1.55; margin: 0; }
.bag-credit { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #8a939c; } .bag-credit a { color: inherit; }
.bag-detail dl { margin: 0; } .bag-detail dl div { display: grid; grid-template-columns: 138px 1fr; gap: 14px; padding: 8px 0; align-items: baseline; }
.bag-detail dt { font: italic 400 20px var(--bag-serif); color: var(--bag-gold); } .bag-detail dd { margin: 0; font-size: 15px; color: #4a5661; }
.bag-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bag-ihead { display: flex; align-items: center; gap: 18px; } .bag-ihead .kick { margin-top: 0; color: var(--c); } .bag-ihead .ttl { margin-bottom: 0; }
.bag-bigq { font: italic 400 24px/1.25 var(--bag-serif); color: var(--c); margin: 16px 0 0; }
.bag-chain { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--c); display: grid; gap: 4px; }
.bag-chain li { position: relative; animation: bag-up .45s var(--bag-ease) var(--d) both; }
.bag-chain li::before { content: ""; position: absolute; left: -25px; top: 32px; width: 9px; height: 9px; border-radius: 50%; background: var(--bag-k0); border: 1px solid var(--c); }
.bag-chain button { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 10px 8px; border: 0; border-radius: 8px; background: none; font-family: var(--bag-sans); color: var(--bag-t); cursor: pointer; transition: background .2s; } .bag-chain button:hover { background: var(--bag-k1); }
.bag-chain b { display: block; font: 400 21px/1.1 var(--bag-serif); margin: 3px 0; } .bag-chain em { display: block; font-style: normal; font-size: 14px; line-height: 1.4; color: #5a6671; }
.bag-finding { margin: 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--bag-gold); font: italic 400 23px/1.35 var(--bag-serif); }

/* ---- an idea is named: over the whole page */
.bag-reveal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 24px; overflow: auto; background: rgba(251,250,247,.97); animation: bag-fade .4s both; font-family: var(--bag-sans); color: var(--bag-t); }
.bag-reveal.out { opacity: 0; transition: opacity .5s; }
.bag-reveal-in { width: min(560px, 100%); text-align: center; }
.bag-match { display: flex; align-items: center; justify-content: center; } .bag-match .bag-card { width: min(170px, 36vw); text-align: left; }
.m-old { animation: bag-fromleft .9s var(--bag-ease) both; } .m-new { animation: bag-fromright .9s var(--bag-ease) both; }
@keyframes bag-fromleft { from { translate: -40px 0; opacity: 0; } } @keyframes bag-fromright { from { translate: 40px 0; opacity: 0; } }
.m-link { width: 0; height: 1px; background: var(--c); box-shadow: 0 0 10px var(--c); animation: bag-link .6s var(--bag-ease) .8s forwards; } @keyframes bag-link { to { width: clamp(28px, 9vw, 80px); } }
.bag-named { margin: 34px 0 28px; animation: bag-up .8s var(--bag-ease) 1.3s both; }
.bag-named .r-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); font: 400 36px/1 var(--bag-serif); }
.bag-named small { color: var(--c); } .bag-named h2 { font: italic 400 clamp(52px, 11vw, 84px)/1 var(--bag-serif); letter-spacing: -.02em; margin: 10px 0 16px; } .bag-named p { margin: 8px auto 0; max-width: 460px; font-size: 16.5px; line-height: 1.55; color: #4a5661; }
.bag-reveal .bag-go { width: auto; margin: 0 auto; padding: 13px 28px; animation: bag-fade .5s 2s both; }

/* ---- lesson boxes, inside Earth's (light) lesson drawer */
.bx { position: relative; margin: 18px 0 4px; padding: 18px; border-radius: var(--radius, 14px); background: var(--panel, #fbfaf7); border: 1px solid var(--line, #e2ddd3); font-family: var(--bag-sans); color: var(--bag-ink); animation: bag-up .45s var(--bag-ease) both; }
.bx > small, .bx-done small { font-family: var(--bag-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #687682; }
.bx-q { color: var(--bag-ink); margin: 6px 0 14px; font: 700 19px/1.25 var(--bag-sans); letter-spacing: -.01em; }
.bx-note { margin: 12px 0 0; font-size: 13.5px; color: #687682; } .bx-note:empty { display: none; }
.bx-as { display: flex; align-items: baseline; gap: 10px; } .bx-as span { font: 500 10px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: #687682; } .bx-as b { font: italic 400 26px/1 var(--bag-serif); color: var(--accent-deep, #cf3a2f); }
.bx-opts { display: grid; gap: 8px; }
.bx-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line, #e2ddd3); background: #fff; font: 500 15px/1.35 var(--bag-sans); color: var(--bag-ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.bx-opt i { flex: none; font: 500 10px var(--bag-mono); font-style: normal; color: #9aa3ad; }
.bx-opt:hover:not(:disabled) { border-color: var(--bag-ink); } .bx-opt:disabled { cursor: default; opacity: .45; }
.bx-opt.on { opacity: 1; background: var(--bag-ink); border-color: var(--bag-ink); color: #fff; } .bx-opt.on i { color: var(--bag-gold); }
.bx .bag-go { background: var(--bag-ink); color: #fff; } .bx .bag-go:hover:not(:disabled) { background: #1f2830; }
/* the story stops: the one dark box in the drawer */
.bx-find { background: #fff; border-color: var(--bag-gold); color: var(--bag-t); padding: 22px; animation: bag-up .45s var(--bag-ease) both, bx-glow 2.4s ease-in-out .5s infinite; }
.bx-find > small { color: var(--bag-gold); } .bx-find .bx-q { color: var(--bag-t); font: 400 27px/1.15 var(--bag-serif); letter-spacing: 0; margin: 10px 0 8px; } .bx-find .bx-note { margin: 0 0 18px; color: var(--bag-d); }
.bx-find .bag-go { background: var(--bag-t); color: #fff; }
@keyframes bx-glow { 50% { box-shadow: 0 0 0 3px rgba(184,134,43,.22); } }
.bx-done { display: flex; align-items: center; gap: 12px; padding: 11px 14px; } .bx-done > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); font: 400 19px/1 var(--bag-serif); } .bx-done b { display: block; font-weight: 600; font-size: 15px; margin-top: 2px; }
.bx-sentence { font: 400 23px/1.9 var(--bag-serif); margin: 0 0 16px; }
.bx-blank { min-width: 96px; min-height: 30px; padding: 0 8px; border: 0; border-bottom: 1.5px solid var(--bag-ink); background: rgba(47,59,69,.05); font: italic 400 1em/1.3 var(--bag-serif); color: var(--accent-deep, #cf3a2f); vertical-align: baseline; cursor: pointer; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .bx-chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line, #e2ddd3); background: #fff; font: 500 14.5px var(--bag-sans); color: var(--bag-ink); cursor: pointer; } .bx-chip:hover { border-color: var(--bag-ink); }
.bx-finding.solved { border-left: 3px solid var(--bag-gold); } .bx-finding.solved .bx-sentence { margin: 6px 0 0; font-style: italic; line-height: 1.4; }

/* ---- something to keep: when Next is pressed the card rises over the globe, rests, and goes into the bag by itself */
.bag-keep { position: fixed; z-index: 9; top: 50%; left: 50%; translate: -50% -50%; width: min(460px, calc(100vw - 28px)); pointer-events: none; font-family: var(--bag-sans); color: var(--bag-t); text-align: center; }
body.drawer-open .bag-keep { left: calc(var(--drawer-w, 0px) + (100vw - var(--drawer-w, 0px)) / 2); width: min(460px, calc(100vw - var(--drawer-w, 0px) - 28px)); }
.bag-keep-in { padding: 22px 22px 24px; border-radius: 18px; background: rgba(251,250,247,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--bag-kl); box-shadow: 0 24px 70px rgba(46,56,66,.28); animation: bag-keep-in .6s var(--bag-ease) both; transition: opacity .5s var(--bag-ease) .25s, transform .5s var(--bag-ease) .25s; }
@keyframes bag-keep-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.bag-keep.out .bag-keep-in { opacity: 0; transform: scale(.97); }
.bag-keep small { font: 500 10px var(--bag-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bag-gold); }
.bag-keep-cards { display: flex; justify-content: center; align-items: stretch; gap: 12px; margin-top: 14px; text-align: left; }
.bag-keep-cards .bag-card.moment { width: 190px; } .bag-keep-cards .bag-card.person { width: 200px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 14px 0 0 0; } .bag-keep-cards .bag-card.person .bag-face { margin-left: 14px; width: 72px; height: 72px; }
.bag-keep-cards .bag-card { animation: bag-up .6s var(--bag-ease) .15s both; } .bag-keep-cards .bag-card + .bag-card { animation-delay: .3s; }
.bag-keep p { margin: 16px auto 0; max-width: 330px; font-size: 15px; line-height: 1.45; color: var(--bag-t); animation: bag-up .6s var(--bag-ease) .7s both; }
@media (max-width: 900px) { body.drawer-open .bag-keep { left: 50%; top: 22%; width: min(460px, calc(100vw - 28px)); } }

@media (max-width: 520px) { .bag-head { padding: 20px 20px 4px; } .bag-list, .bag-detail { padding: 12px 20px 28px; } .bag-pickbanner { margin: 12px 20px 0; } .bag-pickbar { padding: 12px 20px 16px; } .bag-stage { grid-template-columns: 88px 1fr; gap: 0 16px; } .bag-face.big { width: 88px; height: 88px; } .bag-who h3 { font-size: 34px; } .bag-facts > div, .bag-detail dl div { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .bag-panel, .bag-panel *, .bx, .bx *, .bag-reveal, .bag-reveal *, .bag-open, .bag-keep * { animation-duration: .01ms !important; animation-delay: 0ms !important; transition: none !important; } }
/* The panel shows one kind at a time, named in its head, and opens under the top bar, so the three buttons stay in reach
   to switch kinds or close it. The old row of tabs inside the panel is not shown. */
.bag-panel .bag-tabs { display: none; }
html[data-sky="light"] .tl-over { background: #fbfaf7; } /* My Timeline's light look: no dark flash while it loads */
.tl-over.film-over { z-index: 60; background: #050506 !important; } /* a lesson film opened over Earth: always dark, above everything */
.tl-over.top { z-index: 70; } /* My Timeline shown over a lesson film, to fill in what was just finished */
