/* 3 Dec 2026: LURKED beside the tabs, the page guides (guide.js) and the CHARTS contents strip.
   The comic styling of the same day was taken back out (owner: "the comic style is so cringe, revert back to the old style
   with all the new updates"). Everything here wears the site's own look: the dark field-tip box, Chakra Petch, the orange
   accent. No display face, no tilts, no halftone, no bursts. Motion plays once and calm motion turns it off. */

/* ============ 1. 2026 LURKED: the last tab, right after CRATES ============ */
@media (min-width: 761px) {
  html body .hdr #nav#nav { margin-right: 10px !important; }
  html body .hdr .wr-gift.wr-gift, html body.hdr-tight .hdr .wr-gift.wr-gift { margin: 0 auto 0 0 !important; }
  /* a soft holographic halo under it, like the floating tabs but brighter: it's the one that's a present */
  html body .hdr .wr-gift.wr-gift { box-shadow: 0 0 0 1px rgba(239, 230, 207, .7), 4px 4px 0 1px #5b2a86, 0 0 22px rgba(201, 160, 255, .45), 0 0 4px rgba(255, 224, 102, .5); }
  html body .hdr .wr-gift.wr-gift:hover, html body .hdr .wr-gift.wr-gift:focus-visible { transform: translate(-1px, -3px);
    box-shadow: 0 0 0 1px rgba(239, 230, 207, .9), 6px 7px 0 1px #5b2a86, 0 0 34px rgba(201, 160, 255, .7), 0 0 10px rgba(255, 224, 102, .8); }
}
/* the present opens while you point at it: the lid lifts and tips, light spills out, six pixel sparks jump once */
.wr-gift .wg-box { position: relative; width: 22px; height: 26px; margin-top: -4px; }
.wr-gift .wg-box svg { overflow: visible; }
.wr-gift .wg-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.wr-gift .wg-glow { fill: #fff3a8; opacity: 0; transition: opacity .2s; }
.wr-gift:is(:hover, :focus-visible) .wg-lid { transform: translateY(-1.2px) rotate(-7deg); }
.wr-gift:is(:hover, :focus-visible) .wg-glow { opacity: 1; }
.wr-gift .wg-spk { position: absolute; left: 50%; top: 42%; width: 3px; height: 3px; margin: -1.5px; background: #fff3a8; box-shadow: 0 0 0 1px #10100e;
  opacity: 0; pointer-events: none; transform: translate(0, 0) scale(.4); --a: calc(var(--k) * 36deg - 90deg - 54deg); }
.wr-gift:is(:hover, :focus-visible) .wg-spk { animation: wg-spark .55s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--k) * 25ms); }
.wr-gift.wg-shine .wg-spk { animation: wg-spark .6s cubic-bezier(.2, .7, .3, 1) 1 both; animation-delay: calc(.35s + var(--k) * 30ms); }
.wr-gift .wg-spk:nth-child(odd) { background: #7cc8ff; }
.wr-gift .wg-spk:nth-child(3n) { background: #ff9bd8; }
@keyframes wg-spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(2px) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(17px) scale(1); }
}
/* its popup, the same cream bubble as the tabs' (tabs-20261202.css), with a holo arrow */
.wr-gift .wg-tip { position: absolute; left: 50%; top: calc(100% + 12px); z-index: 60; display: grid; gap: 3px; width: max-content; max-width: 250px; padding: 8px 11px 9px;
  background: #fff8ea; color: #10100e; border: 2px solid #050605; box-shadow: 3px 3px 0 #5b2a86; text-align: left; white-space: normal; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px) scale(.94); transform-origin: 50% 0; transition: opacity .14s, transform .18s cubic-bezier(.3, 1.5, .5, 1), visibility 0s .18s; }
.wr-gift .wg-tip::before { content: ""; position: absolute; left: calc(50% - 7px); top: -9px; width: 12px; height: 12px; background: linear-gradient(135deg, #ff9bd8, #ffe066, #8ff5c8, #7cc8ff);
  border: 2px solid #050605; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.wr-gift .wg-tip b { font: 700 10px/1 var(--body, "Chakra Petch", sans-serif); letter-spacing: .14em; color: #5b2a86; }
.wr-gift .wg-tip span { font: 600 12.5px/1.3 var(--body, "Chakra Petch", sans-serif); letter-spacing: 0; text-transform: none; }
@media (min-width: 761px) {
  .wr-gift:is(:hover, :focus-visible) .wg-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: .22s, .22s, 0s; }
}
@media (max-width: 760px) { .wr-gift .wg-tip { display: none; } .wr-gift .wg-box { width: 18px; height: 21px; margin-top: -3px; } }
@media (prefers-reduced-motion: reduce) { .wr-gift .wg-lid, .wr-gift .wg-tip { transition: none; } .wr-gift .wg-spk { animation: none !important; } }
body.motion-quiet .wr-gift .wg-spk { animation: none !important; }
body.motion-quiet .wr-gift .wg-lid { transition: none; }

/* ============ 2. Page guides (guide.js) ============
   The old field-tip box (lurk-20261202.css), grown up: dark, cream words, the page's colour as a stripe on the left.
   Open: what the page is · three numbered steps · an IDEA box. Folded, it's one line, like the old tips. */
html body #shell .pg { --pg: #ff5b1c; --pg-dk: #8a2a06; --pg-line: #3a3d33; --pg-dim: #a8a18d; --pg-txt: #f6edce;
  position: relative; margin: 0 0 12px; color: var(--pg-txt); font: 500 13px/1.35 var(--body, "Chakra Petch", sans-serif); }
html body #shell .pg :is(.pg-fold-line, .pg-body) { background: #10100e; border: 2px solid #050605; border-left: 4px solid var(--pg); box-shadow: 0 0 0 1px var(--pg-line); }
html body #shell .pg b { color: #ff8b50; font-weight: 700; }
html body #shell .pg .pg-fold-line { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 8px 5px 8px; min-width: 0; }
html body #shell .pg.pg-open .pg-fold-line { display: none; }
html body #shell .pg .pg-how { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 5px; background: transparent; color: var(--pg-txt);
  border: 1px solid var(--pg-line); font: 700 11px/1 var(--body, "Chakra Petch", sans-serif); letter-spacing: .1em; cursor: pointer; transition: border-color .15s, color .15s; }
html body #shell .pg .pg-how:hover { border-color: var(--pg); color: #fff; }
html body #shell .pg .pg-q { display: grid; place-items: center; width: 18px; height: 18px; background: var(--pg); color: var(--pg-fg, #10100e); font: 700 12px/1 var(--body, "Chakra Petch", sans-serif); }
html body #shell .pg .pg-mini { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #shell .pg .pg-mini > b:first-child { color: var(--pg-dim); font-size: 10px; letter-spacing: .14em; margin-right: 4px; }
html body #shell .pg .pg-mini-idea { flex: 1 1 0; min-width: 0; margin-left: auto; padding-left: 12px; border-left: 1px solid var(--pg-line); font-size: 12px; color: #cfc8b2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
html body #shell .pg .pg-mini-idea i { font: 700 10px/1 var(--body, "Chakra Petch", sans-serif); font-style: normal; letter-spacing: .14em; color: var(--pg-dim); margin-right: 5px; }

html body #shell .pg .pg-body { display: none; }
html body #shell .pg.pg-open .pg-body { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2.2fr) minmax(220px, 1fr); gap: 10px; align-items: stretch; padding: 12px; }
html body #shell .pg .pg-cap { display: grid; align-content: center; gap: 8px; padding: 2px 4px; }
html body #shell .pg .pg-kick { font: 700 10px/1 var(--body, "Chakra Petch", sans-serif); letter-spacing: .14em; color: var(--pg-dim); }
html body #shell .pg .pg-what { font: 700 15px/1.3 var(--body, "Chakra Petch", sans-serif); color: var(--pg-txt); }
html body #shell .pg .pg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body #shell .pg .pg-steps li { position: relative; display: grid; align-content: start; gap: 4px; padding: 10px 10px 10px 38px; min-width: 0; background: #1a1b17; border: 1px solid var(--pg-line); }
html body #shell .pg .pg-steps li i { position: absolute; left: 9px; top: 9px; display: grid; place-items: center; width: 20px; height: 20px; font: 700 11px/1 var(--body, "Chakra Petch", sans-serif); font-style: normal;
  background: var(--pg); color: var(--pg-fg, #10100e); }
html body #shell .pg .pg-steps li > b { color: var(--pg-txt); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
html body #shell .pg .pg-steps li span { font-size: 12.5px; color: #cfc8b2; }
html body #shell .pg .pg-idea { display: grid; align-content: start; gap: 6px; padding: 10px 12px; background: #1a1b17; border: 1px solid var(--pg-line); }
html body #shell .pg .pg-n { font: 700 10px/1 var(--body, "Chakra Petch", sans-serif); letter-spacing: .14em; color: var(--pg-dim); }
html body #shell .pg .pg-done { font: 700 10px/1 var(--body, "Chakra Petch", sans-serif); font-style: normal; color: #6fd39a; letter-spacing: .08em; margin-left: 4px; }
html body #shell .pg .pg-idea p { margin: 0; color: var(--pg-txt); }
html body #shell .pg .pg-ctl { display: flex; gap: 6px; margin-top: auto; }
html body #shell .pg .pg-ctl button, html body #shell .pg .pg-got { height: 30px; min-width: 30px; padding: 0 9px; background: transparent; color: var(--pg-txt); border: 1px solid var(--pg-line);
  font: 700 11px/1 var(--body, "Chakra Petch", sans-serif); letter-spacing: .08em; cursor: pointer; transition: border-color .15s, color .15s; }
html body #shell .pg .pg-ctl .pg-show { background: #ff5b1c; color: #fff; border: 2px solid #050605; }
html body #shell .pg :is(.pg-ctl button:not(.pg-show), .pg-got):hover { border-color: var(--pg); color: #fff; }
html body #shell .pg .pg-got { position: absolute; right: 8px; top: -13px; height: 26px; background: #10100e; border-color: var(--pg-line); }
html body #shell .pg :is(button):focus-visible { outline: 2px solid #4fd6e6; outline-offset: 2px; }
/* it slides in once, the way the old tips did */
html body #shell .pg.pg-pop :is(.pg-fold-line, .pg-body) { animation: pg-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body #shell .pg, html body #shell .pg * { animation: none !important; transition: none !important; } }
body.motion-quiet #shell .pg, body.motion-quiet #shell .pg * { animation: none !important; transition: none !important; }
/* laptops: what the page is on top, steps and the idea under it */
@media (min-width: 761px) and (max-width: 1180px) {
  html body #shell .pg.pg-open .pg-body { grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); }
  html body #shell .pg .pg-cap { grid-column: 1 / -1; }
}
/* phones: one column; the folded line keeps HOW IT WORKS and the page's line */
@media (max-width: 760px) {
  html body #shell .pg { margin: 0 0 10px; font-size: 12px; }
  html body #shell .pg .pg-fold-line { gap: 8px; }
  html body #shell .pg .pg-mini-idea { display: none; }
  html body #shell .pg.pg-open .pg-body { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 8px; }
  html body #shell .pg .pg-what { font-size: 14px; }
  html body #shell .pg .pg-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  html body #shell .pg .pg-steps li { padding: 8px 10px 8px 38px; }
  html body #shell .pg .pg-steps li i { top: 8px; }
}

/* ============ 3. CHARTS: the contents strip ============
   Sticky under the header; a key jumps to its section and the key for the part you're reading lights up (charts.js). */
html body #shell #view-charts .ch-issue-wrap { position: sticky; top: calc(var(--hdr, 64px) + 6px); z-index: 30; margin: 0 0 14px; }
/* a strip of page above it, so rows never peek through between the header and the strip */
html body #shell #view-charts .ch-issue-wrap::before { content: ""; position: absolute; left: -10px; right: -10px; bottom: 100%; height: 13px; background: #f6eedb; }
html body #shell #view-charts .ch-issue { position: relative; display: flex; gap: 4px; margin: 0; padding: 5px; background: #10100e; border: 2px solid #050605; box-shadow: 0 0 0 1px #3a3d33;
  overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
html body #shell #view-charts .ch-issue::-webkit-scrollbar { display: none; }
html body #shell #view-charts .ch-issue button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 5px; border: 1px solid transparent; background: transparent;
  color: #cfc8b2; font: 700 11px/1 var(--body, "Chakra Petch", sans-serif); letter-spacing: .1em; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
html body #shell #view-charts .ch-issue button i { display: grid; place-items: center; width: 18px; height: 18px; font: 700 10px/1 var(--body, "Chakra Petch", sans-serif); font-style: normal; background: #2a2c25; color: #f6edce; }
html body #shell #view-charts .ch-issue button:hover { color: #fff; border-color: #3a3d33; }
html body #shell #view-charts .ch-issue button.on { background: #ff5b1c; color: #fff; border-color: #050605; }
html body #shell #view-charts .ch-issue button.on i { background: #10100e; color: #fff; }
html body #shell #view-charts .ch-issue button:focus-visible { outline: 2px solid #4fd6e6; outline-offset: 1px; }
html body #shell #view-charts .ch-body > section, html body #shell #view-charts .ch-pair > section { scroll-margin-top: calc(var(--hdr, 64px) + 60px); }
@media (prefers-reduced-motion: reduce) { html body #shell #view-charts .ch-issue button { transition: none; } }
@media (max-width: 760px) {
  html body #shell #view-charts .ch-issue-wrap { top: calc(var(--hdr, 56px) + 4px); margin-bottom: 10px; }
  html body #shell #view-charts .ch-issue button { height: 28px; font-size: 10.5px; padding: 0 8px 0 4px; }
}
