/* Fact or Fiction: a photo editor's light table at night. Clippings, slides, ads and posts lie on a glowing table;
   a loupe and a china marker find the clue. Copyright (C) 2026 B7 Collective LLC. All rights reserved. */
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0A1015; --ink: #0F171E; --ink-2: #16212A; --on: #EEF0EA; --on-2: rgba(238, 240, 234, .78); --on-3: rgba(238, 240, 234, .6);
  --glass: rgba(11, 17, 23, .8); --glass-line: rgba(255, 255, 255, .14);
  --table: #F2F5F0; --frame: #1A2229;
  --amber: #F2B544; --amber-lip: #C88D21; --marker: #D23F22; --real: #7FDCB5; --made: #FF9A80;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); scroll-padding-top: 84px; }
body { margin: 0; min-height: 100dvh; color: var(--on); font-family: var(--sans); font-size: 18px; line-height: 1.55; background: transparent; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 16px; background: var(--amber); color: #1D1404; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.noscript { max-width: 560px; margin: 120px auto; padding: 24px; background: var(--glass); border-radius: 16px; }

/* The room: the painted desk, sharp on the home page, leaned-in and soft while you work */
.room { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.room img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 46% 62%; transition: transform 1.1s var(--ease), filter 1.1s var(--ease); }
.room::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 70% at 50% 55%, transparent 40%, rgba(5, 8, 11, .62) 100%),
  linear-gradient(90deg, rgba(6, 10, 14, .82) 0%, rgba(6, 10, 14, .45) 42%, rgba(6, 10, 14, .2) 70%, rgba(6, 10, 14, .5) 100%); }
body:not([data-view="home"]) .room img { transform: scale(1.35); filter: blur(10px) brightness(.42) saturate(.8); }
body:not([data-view="home"]) .room::after { background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(5, 8, 11, .2), rgba(5, 8, 11, .78)); }

/* The bar */
.bar { position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(8, 12, 16, .92), rgba(8, 12, 16, .82)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); display: flex; align-items: center; gap: 14px; padding: max(10px, env(safe-area-inset-top)) calc(var(--gut) + 210px) 10px max(var(--gut), env(safe-area-inset-left)); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on); border-radius: 12px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.brand small { font-size: 13px; color: var(--on-3); }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; text-decoration: none; color: var(--on-2); font-weight: 700; font-size: 16px; }
.bar-nav a:hover { color: var(--on); }
.bar-nav a[aria-current="page"] { color: var(--on); }
.bar-nav a[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.bar-base { position: absolute; right: 0; top: 0; }
@media (max-width: 719px) {
  .bar { padding-right: calc(12px + 220px); padding-left: 12px; gap: 6px; }
  .bar-nav { margin-left: 0; }
  .brand span, .bar-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bar-nav a { width: 44px; justify-content: center; padding: 0; }
}

.view { position: relative; z-index: 1; padding: 6px var(--gut) max(40px, env(safe-area-inset-bottom)); }
.kicker { font-size: 16px; color: var(--on-2); }
.kicker a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--on); }
.lede { color: var(--on-2); font-size: 19px; max-width: 60ch; }
.small { font-size: 15px; color: var(--on-3); }

/* Buttons: amber with a lip, like the rest of the house */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.2; }
.btn.big { min-height: 58px; padding: 12px 26px; font-size: 19px; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn.amber { background: var(--amber); color: #201504; box-shadow: 0 4px 0 var(--amber-lip), 0 10px 24px -8px rgba(0, 0, 0, .6); }
.btn.amber:hover { background: #F6C35F; }
.btn.amber:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-lip); }
.btn.cream { background: var(--on); color: var(--ink); box-shadow: 0 4px 0 #B9BDB5; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--on); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .26); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn.ghost[aria-pressed="true"] { background: rgba(242, 181, 68, .18); box-shadow: inset 0 0 0 2px var(--amber); }

/* ---------------------------------------------------------------- home */
.home { display: grid; gap: 26px; max-width: 1240px; margin: 0 auto; padding-top: clamp(8px, 4vh, 48px); }
.hello h1 { font-size: clamp(48px, 8.4vw, 104px); font-weight: 600; letter-spacing: -.02em; margin: 6px 0 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hello h1 em { font-weight: 400; color: var(--amber); }
.hello .lede { font-size: clamp(18px, 2vw, 22px); max-width: 30ch; color: var(--on); text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.week { position: relative; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 30px 70px -30px #000; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.week .when, .learncard .when { font-size: 16px; color: var(--on-3); margin-bottom: 10px; }
.week h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; margin: 0 0 4px; }
.twoways .label { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--amber); margin-bottom: 6px; }
.week .blurb { color: var(--on-2); }
.week .status { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--on); }
.week .side { margin-top: 14px; font-size: 15px; color: var(--on-3); }
.start { margin-top: 18px; display: grid; gap: 16px; }
.levels { border: 0; margin: 0; padding: 0; min-width: 0; }
.levels legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--on-2); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 6px 4px; border-radius: 6px; }
.seg b { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--on-2); width: fit-content; padding-bottom: 16px; line-height: 1.1; }
.seg small { font-size: 13px; color: var(--on-3); line-height: 1.25; }
.seg input:checked + span b { font-weight: 600; color: var(--on); text-decoration: underline wavy var(--marker); text-decoration-thickness: 2.5px; text-underline-offset: .28em; text-decoration-skip-ink: none; }
.seg label:hover b { color: var(--on); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.doors { display: flex; flex-wrap: wrap; border-radius: 18px; background: rgba(11, 17, 23, .7); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.door { flex: 1 1 220px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; min-height: 72px; }
.door svg { color: var(--amber); }
.door span { display: flex; flex-direction: column; line-height: 1.25; }
.door small { color: var(--on-3); font-size: 15px; }
.door:hover { background: rgba(255, 255, 255, .06); }
.door:focus-visible { outline-offset: -4px; }
.next { color: var(--on-2); font-size: 16px; }
.foot a { color: var(--on-2); font-size: 16px; }
@media (min-width: 1000px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); align-items: start; column-gap: 48px; padding-top: clamp(40px, 9vh, 110px); }
  .hello { grid-row: 1 / span 2; }
  .doors, .next, .foot { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .seg span { padding: 6px 2px; } .seg small { font-size: 12.5px; } }

/* ---------------------------------------------------------------- the play view */
.play { display: grid; gap: 14px 28px; max-width: 1400px; margin: 0 auto; grid-template-areas: "top" "desk" "side"; }
.play > .top { grid-area: top; }
.play > .desk { grid-area: desk; min-width: 0; }
.play > .side { grid-area: side; min-width: 0; }
.where { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; font-size: 15px; color: var(--on-2); }
.where .leave { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 0; text-decoration: none; font-weight: 700; color: var(--on); }
.where .count { font-weight: 700; color: var(--on); }
.where .lvchip { color: var(--on-2); }
/* Progress is a strip of film: one frame per case */
.strip { list-style: none; margin: 10px 0 0; padding: 7px 8px; display: flex; gap: 6px; width: max-content; max-width: 100%; border-radius: 6px;
  background: #11181D radial-gradient(circle, rgba(255, 255, 255, .26) 1.6px, transparent 2px) 4px 1px / 9px 5px repeat-x; position: relative; }
.strip::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 1px; height: 5px; background: radial-gradient(circle, rgba(255, 255, 255, .26) 1.6px, transparent 2px) 0 0 / 9px 5px repeat-x; }
.strip li { width: 30px; height: 20px; border-radius: 2px; background: #2A343B; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.strip li.now { background: #3A4650; box-shadow: inset 0 0 0 2px var(--amber); }
.strip li.got { background: linear-gradient(#CDEFE0, #8FD4B6); }
.strip li.miss { background: linear-gradient(#F4E3DB, #D9BFB3); }

/* The light table */
.desk { display: grid; gap: 12px; justify-items: center; }
.table { position: relative; width: 100%; display: grid; place-items: center; padding: clamp(22px, 4vw, 48px) clamp(14px, 3vw, 40px); border-radius: 22px; min-height: 280px;
  background:
    repeating-linear-gradient(0deg, rgba(40, 70, 80, .06) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(40, 70, 80, .06) 0 1px, transparent 1px 36px),
    radial-gradient(ellipse 75% 70% at 50% 46%, #FFFFFF 0%, #F3F6F1 52%, #D5DDD8 100%);
  box-shadow: inset 0 0 0 10px var(--frame), inset 0 0 0 11px #3A444C, inset 0 18px 30px -18px rgba(0, 0, 0, .3), 0 40px 80px -30px #000; }
.specimen { position: relative; width: 100%; display: grid; place-items: center; cursor: grab; user-select: none; -webkit-user-select: none; }
.revealed .specimen, .case .specimen { cursor: default; }
.swipe-tag { position: absolute; top: 50%; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 18px; opacity: 0; pointer-events: none; transform: translateY(-50%); }
.swipe-tag.made { left: 18px; background: #5B1E12; color: #FFE5DC; }
.swipe-tag.real { right: 18px; background: #12402F; color: #DFFFF1; }
.tools { display: flex; gap: 10px; }

/* Every card is a thing on the table */
.card { position: relative; width: min(100%, 560px); color: #1B2228; transition: transform .3s var(--ease); }
.card.held { transition: none; }
.card.snap { transition: transform .26s var(--ease); }
.card.fly-real { transform: translateX(40px) rotate(2deg); opacity: .0; transition: transform .38s var(--ease), opacity .38s; }
.card.fly-made { transform: translateX(-40px) rotate(-2deg); opacity: .0; transition: transform .38s var(--ease), opacity .38s; }
.card.arrive { animation: arrive .5s var(--ease); }
@keyframes arrive { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.wm { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .02em; color: rgba(27, 34, 40, .6); }

/* A newsprint clipping */
.clip { padding: 26px 28px 18px; background: #F7F4EC radial-gradient(rgba(30, 30, 30, .045) 1px, transparent 1.3px) 0 0 / 5px 5px;
  clip-path: polygon(0 1.2%, 6% 0, 18% 1%, 31% .2%, 47% 1.1%, 63% 0, 78% .9%, 92% 0, 100% 1%, 99.4% 22%, 100% 47%, 99.3% 71%, 100% 98.6%, 88% 100%, 72% 99.1%, 55% 100%, 39% 99.2%, 22% 100%, 8% 99.3%, 0 100%, .6% 77%, 0 52%, .7% 26%);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22)); transform: rotate(-.6deg); }
.clip .spot { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #59616A; margin-bottom: 10px; }
.clip .outlet { font-family: var(--serif); font-style: italic; font-size: 16px; color: #3A434B; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1.5px solid rgba(27, 34, 40, .25); }
.clip .tiny { font-family: var(--sans); font-style: normal; font-size: 12.5px; letter-spacing: .04em; color: #5D646B; }
.clip .head { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.01em; color: #12181D; }
.clip .dek { margin-top: 10px; font-family: var(--serif); font-size: 18px; color: #333C44; }
.clip .byline { margin-top: 10px; font-size: 14px; color: #555E66; }
.clip .body { margin-top: 10px; font-family: var(--serif); font-size: 16px; color: #2F373E; columns: 2 200px; column-gap: 22px; }
.clip.article { transform: rotate(.5deg); }

/* A post on a phone screen */
.post { padding: 18px 20px 14px; border-radius: 22px; background: #151D24; color: #EEF1EC; box-shadow: 0 0 0 7px #0B0F13, 0 18px 30px -14px rgba(0, 0, 0, .6); }
.post header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post .av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; color: #fff; background: hsl(var(--h) 38% 38%); }
.post .who { display: flex; flex-direction: column; line-height: 1.25; }
.post .who span { color: #A9B3BA; font-size: 15px; }
.post .ptext { font-size: 19px; line-height: 1.45; }
.post .pmeta { margin-top: 12px; font-size: 14px; color: #A3ADB4; }
.post .wm { color: rgba(238, 241, 236, .5); }

/* A text message */
.sms { padding: 18px 18px 14px; border-radius: 22px; background: #E9ECE9; box-shadow: 0 0 0 7px #0B0F13, 0 18px 30px -14px rgba(0, 0, 0, .6); }
.sms .from { font-size: 14px; font-weight: 700; color: #4F575E; text-align: center; margin-bottom: 12px; }
.sms .bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; font-size: 18px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.sms .pmeta { margin-top: 8px; font-size: 13px; color: #5C646A; }

/* A glossy ad, a pop-up */
.ad { padding: 24px 26px 16px; border-radius: 14px; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .45); transform: rotate(.7deg); }
.ad .adlabel { display: inline-block; font-size: 13px; font-weight: 700; opacity: .85; }
.ad .brand { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 18px; }
.ad .adhead { margin-top: 6px; font-family: var(--sans); font-weight: 700; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.08; letter-spacing: -.01em; }
.ad .adbody { margin-top: 10px; font-size: 17px; }
.ad .ctarow { margin-top: 14px; }
.ad .cta { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; background: #12181D; color: #fff; }
.ad .fine { margin-top: 12px; font-size: 13px; line-height: 1.35; opacity: .86; }
.tone-sun { background: #FFD966; color: #1E1A0C; }
.tone-mint { background: #C5EBDA; color: #10251D; }
.tone-berry { background: #F8CFDC; color: #2C121B; }
.tone-sky { background: #C7DDF6; color: #0F1C2B; }
.tone-paper { background: #FFFDF6; color: #1B2228; }
.tone-loud { background: #E8452A; color: #fff; }
.tone-loud .cta { background: #FFE34D; color: #1B1200; }
.tone-loud .wm, .tone-night .wm { color: rgba(255, 255, 255, .62); }
.tone-night { background: #1D2433; color: #F2F2F7; }
.tone-night .cta { background: #F2B544; color: #1D1404; }
.ad.popup { border-radius: 12px; padding: 0 0 16px; background: #FDFDFC; color: #1B2228; transform: none; overflow: hidden; }
.ad.popup .adlabel { display: block; padding: 9px 14px; background: #2B3A4A; color: #fff; opacity: 1; letter-spacing: .02em; text-transform: none; font-size: 14px; }
.ad.popup .brand, .ad.popup .adhead, .ad.popup .adbody, .ad.popup .ctarow, .ad.popup .fine, .ad.popup .wm { padding: 0 22px; }
.ad.popup .adhead { margin-top: 16px; color: #C4251B; }

/* A 35mm slide in its mount, lit from below */
.slide { margin: 0; width: min(100%, 600px); }
.slide.tall { width: min(100%, 420px); }
.mount { padding: clamp(14px, 3vw, 22px) clamp(14px, 3vw, 22px) 10px; border-radius: 12px; background: #E3E0D8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 2px 0 rgba(255, 255, 255, .7), 0 12px 24px -10px rgba(0, 0, 0, .45); }
.win { position: relative; overflow: hidden; border-radius: 4px; background: #0E1215; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); touch-action: pan-y; }
.win img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.04) saturate(1.04); -webkit-user-drag: none; }
.win .missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #E8ECE8; font-size: 16px; }
.mount .wm { margin-top: 8px; text-align: center; font-size: 10.5px; color: rgba(27, 34, 40, .55); }
.slide figcaption { margin: 12px auto 0; width: fit-content; max-width: 100%; padding: 10px 16px; border-radius: 6px; background: #FBFBF8; color: #1B2228; font-size: 17px; line-height: 1.4; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); transform: rotate(-.4deg); }
.slide figcaption small { display: block; font-size: 13px; color: #59616A; }

/* The loupe */
.loupe { position: absolute; z-index: 3; width: clamp(110px, 36%, 200px); aspect-ratio: 1; border-radius: 50%; left: 0; top: 0; }
.loupe .glass { position: absolute; inset: 0; border-radius: 50%; background-repeat: no-repeat; }
.loupe .rim { position: absolute; inset: -2px; border-radius: 50%; border: 8px solid #14181B; box-shadow: 0 0 0 2.5px #B98B3E, 0 14px 30px -6px rgba(0, 0, 0, .7), inset 0 0 18px rgba(0, 0, 0, .45);
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .34), transparent 30%); }
.loupe:focus-visible { outline: 4px solid var(--amber); outline-offset: 4px; }
.loupe.parked { pointer-events: none; }
.loupe.glide { animation: glide .9s var(--ease) .15s both; }
@keyframes glide { from { opacity: 0; transform: scale(.7) translateY(30px); } }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.ring path { fill: none; stroke: var(--marker); stroke-width: 4.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .7)); }
.ring.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* China marker round a part of a text card */
[data-part].marked { position: relative; z-index: 1; }
[data-part].marked::after { content: ""; position: absolute; inset: -8px -12px; border: 3.5px solid var(--marker); border-radius: 50% 46% 52% 44% / 60% 50% 56% 48%; transform: rotate(-1.5deg); pointer-events: none; }
[data-part].marked.draw::after { animation: circle .8s var(--ease) both; }
@keyframes circle { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
span[data-part].marked, b[data-part].marked { display: inline-block; }

/* The side: the question, then the case notes */
.ask { display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ask .q { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; }
.calls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.call { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; padding: 10px 14px; border-radius: 16px; border: 0; cursor: pointer; font-weight: 700; font-size: 21px; }
.call.made { background: #3B1C16; color: #FFE7DF; box-shadow: inset 0 0 0 2.5px #E77155, 0 4px 0 #24100C; }
.call.real { background: #143429; color: #E1FFF3; box-shadow: inset 0 0 0 2.5px #5FC79B, 0 4px 0 #0A1F18; }
.call:hover { filter: brightness(1.18); }
.call:active { transform: translateY(2px); }
.ask .hint { font-size: 15px; color: var(--on-3); }
.ask .tip { color: var(--on-2); }
.notes { scroll-margin-top: 84px; display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.yousaid { font-size: 16px; color: var(--on-2); }
.yousaid b { color: var(--on); }
.verdict { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; line-height: 1.12; }
.verdict:focus { outline: none; }
.verdict:focus-visible { outline: 3px solid var(--amber); }
.real .verdict { color: var(--real); }
.made .verdict { color: var(--made); }
.lvtabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.lvtabs::before { content: "Explain for"; font-size: 15px; color: var(--on-3); margin-right: 2px; }
.lvtab { min-height: 40px; padding: 4px 2px; border: 0; cursor: pointer; font-size: 17px; color: var(--on-2); background: none; }
.lvtab:hover { color: var(--on); }
.lvtab[aria-pressed="true"] { color: var(--on); font-weight: 700; text-decoration: underline wavy var(--marker); text-decoration-thickness: 2px; text-underline-offset: .35em; text-decoration-skip-ink: none; }
.notes h3, .notes h2:not(.verdict) { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--on); margin-bottom: 6px; }
.clue { position: relative; padding: 16px 18px 20px; border-radius: 2px 2px 3px 14px / 2px 2px 3px 6px; background: #F6E27F; color: #2A2410; transform: rotate(-.8deg); box-shadow: 0 1px 1px rgba(0, 0, 0, .18), 0 12px 18px -12px rgba(0, 0, 0, .8); }
.notes .clue h3 { font-style: italic; font-size: 19px; color: #9A2B12; margin-bottom: 4px; }
.clue p { font-size: 18px; color: #2A2410; }
.why { color: var(--on-2); }
.habit { position: relative; padding: 14px 18px 16px; border-radius: 3px; color: #1D252B; transform: rotate(.5deg); box-shadow: 0 12px 20px -14px rgba(0, 0, 0, .9);
  background: #FBF8EF; }
.habit .htag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.habit .htag a { color: #1D252B; font-family: var(--serif); font-size: 19px; }
.habit .tipline, .habit .tipline b { color: #3A434A; }
/* A rubber stamp, pressed once when a habit is new to you */
.stamp { display: inline-block; padding: 1px 8px 2px; border: 2.5px solid currentColor; border-radius: 4px; color: #B4371C; font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.3; transform: rotate(-4deg); opacity: .88; mix-blend-mode: multiply; }
.habit p:last-child { color: #3A434A; font-size: 16px; }
.check ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--on-2); }
.src ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.src a { display: inline-flex; align-items: center; gap: 6px; color: var(--on); font-size: 16px; }
.credit p { font-size: 15.5px; color: var(--on-2); }
.credit a { display: inline-flex; align-items: center; gap: 4px; color: var(--on); margin-right: 8px; }
.next-row { margin-top: 14px; }
.next-row .btn { width: 100%; }

/* ---------------------------------------------------------------- done, rounds, habits, about */
.done, .rounds, .habits, .habit-page, .about { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; padding: 22px clamp(18px, 3vw, 36px) 30px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.done h1, .rounds h1, .habits h1, .habit-page h1, .about h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; }
.done h2, .habit-page h2, .about h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.recap, .reels, .pages, .casefile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recap, .reels, .casefile ul { gap: 0; }
.recap a, .reels a, .casefile a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); min-height: 60px; }
.recap a:hover b, .reels a:hover b, .casefile a:hover b { text-decoration: underline; }
.recap .n, .reels .no { flex: none; width: 36px; font-family: var(--serif); font-size: 26px; color: var(--on-3); text-align: center; }
.recap .t, .reels .t, .pages .t, .casefile a { display: flex; flex-direction: column; flex: 1; line-height: 1.3; min-width: 0; }
.recap small, .reels small, .pages small, .casefile small { color: var(--on-3); font-size: 15px; }
.recap .got .you { color: var(--real); }
.reels .cur .no { color: var(--amber); }
.reels small.b, .pages small.b { color: var(--on-2); }
.met ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.met a { display: inline-flex; min-height: 40px; align-items: center; color: var(--on); font-family: var(--serif); font-size: 19px; }
.done .go { display: flex; flex-wrap: wrap; gap: 12px; }
.fnotes ol, .habit-page .check ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--on-2); }
.fnotes li.shut { list-style: none; margin-left: -22px; display: flex; align-items: center; gap: 8px; color: var(--on-3); font-size: 15px; }
.prose { display: grid; gap: 12px; color: var(--on-2); }
.prose h2 { color: var(--on); margin-top: 10px; }
.credits { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.credits li { display: grid; gap: 2px; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.credits b { color: var(--on); }
.credits a { display: inline-flex; align-items: center; gap: 4px; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: min(560px, 92vw); padding: 14px 18px; border-radius: 14px; background: #F2F4EF; color: var(--ink); font-weight: 700; box-shadow: 0 16px 40px -10px #000; }

/* ---------------------------------------------------------------- layouts */
/* Phones: the card first, the buttons always in reach */
@media (max-width: 759px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .table { padding: 20px 12px; border-radius: 18px; min-height: 0; }
  .play:not(.revealed) .side { position: sticky; bottom: 0; z-index: 4; margin: 0 -12px; padding: 0 12px max(10px, env(safe-area-inset-bottom)); }
  .play:not(.revealed) .ask { gap: 10px; padding: 14px; border-radius: 20px 20px 16px 16px; background: rgba(11, 17, 23, .92); }
  .ask .q { font-size: 21px; }
  .call { min-height: 58px; font-size: 19px; }
  .clip { padding: 20px 18px 14px; }
  .clip .head { font-size: 23px; }
  .clip .body { columns: 1; }
  .ad { padding: 20px 18px 14px; }
  .ad .adhead { font-size: 24px; }
  .post .ptext { font-size: 17.5px; }
  .win { max-height: 52dvh; }
  .slide.tall .win { max-height: 46dvh; aspect-ratio: auto !important; }
}
@media (max-width: 400px) { .ask .hint:not(.tip) { display: none; } .strip li { width: 22px; height: 16px; } .where { font-size: 14px; gap: 4px 10px; } }
/* Tablets, foldables opened flat, desktops, Googlebooks: table and notes side by side */
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .play { grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr); grid-template-areas: "top top" "desk side"; align-items: start; }
  .play > .side { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow: auto; border-radius: 20px; }
  .table { min-height: min(70dvh, 720px); }
}
@media (min-width: 1300px) { .play { grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); } .card { width: min(100%, 620px); } .slide { width: min(100%, 680px); } }
/* Tablets held upright: the table gets the top, notes below, nothing stretched */
@media (min-width: 760px) and (max-aspect-ratio: 1/1) {
  .play { max-width: 760px; }
  .table { min-height: 46dvh; }
}
/* Phones held sideways */
@media (orientation: landscape) and (max-height: 520px) {
  .bar { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .play { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr); grid-template-areas: "top top" "desk side"; gap: 8px 16px; }
  .play > .side { position: sticky; top: 8px; max-height: calc(100dvh - 16px); overflow: auto; margin: 0; padding: 0; }
  .play:not(.revealed) .side { position: sticky; bottom: auto; }
  .table { padding: 14px; min-height: 0; }
  .win { max-height: 60dvh; }
  .slide { width: min(100%, calc(60dvh * 1.4)); }
  .strip { display: none; }
  .home { padding-top: 4px; }
  .hello h1 { font-size: 44px; }
}
/* Tabletop posture: the table on the top half, calls and notes on the bottom half */
@media (vertical-viewport-segments: 2) {
  .play { grid-template-columns: 1fr; grid-template-areas: "top" "desk" "side";
    grid-template-rows: auto calc(env(viewport-segment-bottom 0 0, 50vh) - 120px) auto; gap: 0; }
  .play > .desk { align-self: stretch; overflow: hidden; }
  .play > .desk .table { height: 100%; min-height: 0; }
  .play > .side { position: static; max-height: none; margin-top: calc(env(viewport-segment-top 0 1, 50vh) - env(viewport-segment-bottom 0 0, 50vh) + 14px); }
  .win { max-height: calc(env(viewport-segment-bottom 0 0, 50vh) - 260px); }
}
/* Book posture: the table on the left page, the notes on the right */
@media (horizontal-viewport-segments: 2) {
  .play { grid-template-columns: calc(env(viewport-segment-right 0 0, 50vw) - var(--gut)) calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw)) 1fr;
    grid-template-areas: "top . side" "desk . side"; column-gap: 0; }
  .play > .side { padding-left: 14px; position: sticky; top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .room img { transform: none !important; }
}
@media (forced-colors: active) { .call, .btn, .lvtab, .seg span { border: 2px solid ButtonText; } [data-part].marked::after { border-color: Highlight; } }
/* The smallest phones: the shared BASE chip needs the room, so Rounds stays on the home page's doors */
@media (max-width: 400px) { .bar-nav a[data-nav="rounds"] { display: none; } }
/* Headings take focus when a screen changes (so screen readers start there); they aren't controls, so no ring */
[tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- thinking caps on: Learn, new case types, scoring */
@media (max-width: 500px) { .bar-nav a[data-nav="rounds"] { display: none; } }
@media (max-width: 400px) { .bar-nav a[data-nav="habits"] { display: none; } }
@media (min-width: 1000px) {
  .home { grid-template-columns: 1fr; padding-top: clamp(24px, 6vh, 72px); }
  .hello { grid-row: auto; max-width: 980px; }
  .hello h1 { font-size: clamp(56px, 6.4vw, 92px); }
  .hello .lede { max-width: 46ch; }
}
.twoways { display: grid; gap: 20px; }
@media (min-width: 900px) { .twoways { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.learncard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 30px 70px -30px #000; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.learncard h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; }
.learncard .blurb { color: var(--on-2); }
.learncard .go { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.path-bar { display: flex; gap: 4px; margin: 6px 0; padding: 8px 6px; border-radius: 3px;
  background: radial-gradient(circle, rgba(255, 255, 255, .24) 1.5px, transparent 1.9px) 3px 1px / 8px 5px repeat-x, radial-gradient(circle, rgba(255, 255, 255, .24) 1.5px, transparent 1.9px) 3px calc(100% - 1px) / 8px 5px repeat-x, #0C1216; }
.path-bar i { flex: 1; height: 18px; border-radius: 1px; background: #29333A; }
.path-bar i.on { background: linear-gradient(#F4F1E6, #D9D3C2); }
.path-bar i.now { background: #F2B544; }
.tryline { margin-top: 12px; font-size: 15.5px; color: var(--on-2); }
.tryline b { color: var(--on); }
.doors .door { flex-basis: 200px; }

/* The path */
.learn, .unit, .maker { max-width: 920px; margin: 0 auto; display: grid; gap: 18px; padding: 22px clamp(18px, 3vw, 36px) 30px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.unit.worked { max-width: 1320px; }
.learn h1, .unit h1, .maker h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; }
.units { list-style: none; margin: 0; padding: 0; display: grid; }
.units a, .units .soon > div { display: flex; align-items: center; gap: 16px; padding: 14px 4px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); min-height: 64px; }
.units a:hover b { text-decoration: underline; }
.units .no { flex: none; width: 44px; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--on-3); text-align: center; }
.units .done .no { color: var(--real); }
.units .ready .no, .units .going .no { color: var(--amber); }
.units .t b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.units .ahead a { opacity: .78; }
.units .t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.units small { color: var(--on-3); font-size: 15px; }
.units small.b { color: var(--on-2); }
.unithead .uno { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 400; color: var(--on-2); margin-bottom: 4px; }
.uhabit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--on-2); }
.uhabit a { color: var(--on); font-weight: 700; }
.stepper { list-style: none; margin: 0; padding: 12px 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border-radius: 3px;
  background: radial-gradient(circle, rgba(255, 255, 255, .24) 1.6px, transparent 2px) 4px 2px / 10px 6px repeat-x, radial-gradient(circle, rgba(255, 255, 255, .24) 1.6px, transparent 2px) 4px calc(100% - 2px) / 10px 6px repeat-x, #0C1216; }
.stepper a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: 1px; text-decoration: none; text-align: center; color: var(--on-3); background: #222C33; font-size: 13.5px; line-height: 1.2; min-height: 64px; }
.stepper .sn { font-family: var(--serif); font-size: 18px; color: var(--on-3); }
.stepper .past a { background: #33403F; color: var(--on-2); }
.stepper .past .sn { color: var(--real); }
.stepper .now a { color: #1B2228; background: radial-gradient(ellipse at 50% 45%, #FFFFFF, #E4E9E3); font-weight: 700; }
.stepper .now .sn { color: #1B2228; }
@media (max-width: 560px) { .stepper .sl { font-size: 12px; } .stepper a { padding: 6px 2px; } }
.lessoncard { display: grid; gap: 18px; padding: clamp(20px, 4vw, 40px); border-radius: 4px; background: #F6F3EA radial-gradient(rgba(30, 30, 30, .04) 1px, transparent 1.3px) 0 0 / 5px 5px; color: #1B2228; box-shadow: 0 18px 40px -18px #000; }
.lcount { font-family: var(--serif); font-style: italic; font-size: 18px; color: #7A5410; }
.bigidea { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 600; }
.lessontext { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; }
.lessoncard .go { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.lessoncard .btn.ghost { color: #1B2228; box-shadow: inset 0 0 0 1.5px rgba(27, 34, 40, .35); background: transparent; }
.research { padding-top: 4px; }
.research h2, .research h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--on); margin-bottom: 6px; }
.research p { color: var(--on-2); }
.lessoncard .research { padding-top: 10px; }
.lessoncard .research h3 { color: #1B2228; }
.lessoncard .research p { color: #39424A; }
.research ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.research a { color: var(--on); }
.workgrid { display: grid; gap: 18px; }
@media (min-width: 900px) { .workgrid { grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); align-items: start; } }
.walk { display: grid; gap: 12px; }
.walk h2 { font-size: 26px; font-weight: 600; }
.walksteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.walksteps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--on-2); font-size: 17px; }
.walksteps li::before { content: counter(s); flex: none; width: 22px; font-family: var(--serif); font-size: 22px; color: var(--on-3); }
.walksteps li svg { display: none; }
.walksteps li.fresh { color: var(--on); animation: arrive .4s var(--ease); }
.walksteps li.fresh::before { color: var(--amber); }
.ufinish { display: grid; gap: 16px; }
.tryit h2, .talk h2, .talk h3, .umeter h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--on); margin-bottom: 6px; }
.tryit p, .talk p { color: var(--on-2); }
.talkhint { font-size: 14.5px; color: var(--on-3); }
.tipline { margin-top: 8px; font-size: 15.5px; color: var(--on-2); }
.tipline b { color: var(--on); }
.from { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--on-3); }
.meter { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--on-2); }
.meter .bars { display: inline-flex; gap: 3px; }
.meter .bars i { width: 14px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.meter .bars i.on { background: var(--real); }
.pages .meter { margin-top: 6px; }

/* Answers beyond real or made up */
.choices { display: grid; gap: 10px; }
.choices.two, .choices.four { grid-template-columns: 1fr 1fr; }
.choice { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--on); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .26), 0 3px 0 rgba(0, 0, 0, .4); text-align: center; }
.choice.long { justify-content: flex-start; text-align: left; font-family: var(--serif); font-weight: 600; font-size: 17.5px; }
.choice:hover { background: rgba(255, 255, 255, .14); }
.choice.real { background: #143429; color: #E1FFF3; box-shadow: inset 0 0 0 2.5px #5FC79B, 0 4px 0 #0A1F18; }
.choice.made { background: #3B1C16; color: #FFE7DF; box-shadow: inset 0 0 0 2.5px #E77155, 0 4px 0 #24100C; }
.call.checkcall { width: 100%; min-height: 54px; font-size: 18px; background: rgba(255, 255, 255, .07); color: var(--on); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 3px 0 rgba(0, 0, 0, .4); }
.linkish { border: 0; background: none; padding: 6px 0; min-height: 44px; color: var(--on-2); text-decoration: underline; cursor: pointer; font-size: 15px; }
.honest { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--real); }
.disc .meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.disc .meters p { color: var(--on-2); }
.disc .meters b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--on); }
.calib ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; color: var(--on-2); }
.calib b { color: var(--on); }
.done-lesson { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.4vw, 25px); line-height: 1.4; color: var(--on); max-width: 34ch; }
.strip li.chk { background: linear-gradient(#FCE6B5, #E9C36E); }
.recap .chk .you { color: var(--amber); }

/* The pretend new tab */
.newtab { width: min(100%, 640px); border-radius: 14px; overflow: hidden; background: #FBFBF8; color: #1B2228; box-shadow: 0 18px 36px -16px #000, 0 0 0 1px rgba(0, 0, 0, .2); }
.newtab .tabbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #DDE2E0; }
.newtab .dots { display: flex; gap: 6px; }
.newtab .dots i { width: 10px; height: 10px; border-radius: 50%; background: #A9B2AF; }
.newtab .tabname { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 8px 8px 0 0; background: #FBFBF8; color: #3B444A; }
.searchline { display: flex; align-items: center; gap: 8px; margin: 12px 14px; padding: 8px 14px; border-radius: 999px; background: #EEF1EF; box-shadow: inset 0 0 0 1px #C9D0CD; font-size: 16px; color: #1B2228; }
.aboutsrc { margin: 0 14px 10px; padding: 10px 12px; border-radius: 10px; background: #FFF6DE; box-shadow: inset 0 0 0 1px #E8D29A; }
.aboutsrc h4 { margin: 0 0 4px; font-size: 14px; }
.aboutsrc p { font-size: 15px; color: #39424A; }
.results { list-style: none; margin: 0; padding: 0 14px 6px; display: grid; gap: 10px; }
.results li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #E3E7E5; }
.results .site { font-size: 13px; color: #4E7A5E; font-weight: 700; }
.results b { font-family: var(--serif); font-size: 17px; color: #1C3F78; }
.results .snip { font-size: 15px; color: #3D464D; }
.tabnote { margin: 0 14px 12px; font-size: 12.5px; color: #6B7378; }
.folded { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; border: 2px dashed rgba(27, 34, 40, .35); color: #4B545B; font-size: 14.5px; font-weight: 700; background: rgba(0, 0, 0, .03); }
.post .folded { color: #C8D0D6; border-color: rgba(255, 255, 255, .3); }
.card.zoomed-out .win img, .card.zoomed-out { animation: unzoom .6s var(--ease); }
@keyframes unzoom { from { transform: scale(1.12); opacity: .4; } }

/* New card formats */
.email, .review, .transcript, .searchcard, .webpage, .chartcard { padding: 20px 22px 14px; border-radius: 14px; background: #FDFDFB; color: #1B2228; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .45); }
.email .mhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 15px; color: #4A535A; padding-bottom: 10px; border-bottom: 1px solid #E1E5E3; }
.email .subject { margin: 12px 0 8px; font-family: var(--sans); font-weight: 700; font-size: clamp(21px, 2.6vw, 26px); }
.email .mbody { font-size: 17px; }
.review .product { font-family: var(--serif); font-style: italic; color: #4A535A; }
.review .stars { font-size: 26px; color: #E0A21A; letter-spacing: 2px; margin: 4px 0; }
.review .rtext { font-family: var(--serif); font-size: 20px; }
.review .rby { margin-top: 10px; font-size: 14.5px; color: #5A6369; }
.transcript { background: #F3F0E7; }
.transcript .tlabel { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #6B6455; }
.transcript .speaker { margin: 8px 0 6px; font-weight: 700; }
.transcript .tlines { display: grid; gap: 8px; font-family: var(--serif); font-size: 18px; }
.webpage .addr { margin: -6px -8px 12px; padding: 6px 12px; border-radius: 999px; background: #EEF1EF; font-size: 14px; color: #3B444A; }
.webpage .wtitle { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.8vw, 30px); }
.webpage .wbody { margin-top: 8px; font-size: 17px; }
.webpage .wfoot { margin-top: 12px; padding-top: 8px; border-top: 1px solid #E1E5E3; font-size: 13.5px; color: #5A6369; }
.chartcard .ctitle { font-family: var(--sans); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.chartcard svg { width: 100%; height: auto; display: block; }
.chartcard .grid { stroke: #DCE1DF; stroke-width: 1; }
.chartcard .tick { font: 11px var(--sans); fill: #4A535A; }
.chartcard .bar { fill: #D96B2E; }
.chartcard .line { fill: none; stroke: #D96B2E; stroke-width: 3; stroke-linejoin: round; }
.chartcard .ccap { margin-top: 6px; font-size: 16px; }
.chartcard .csrc { margin-top: 6px; font-size: 13px; color: #5A6369; }
.playbtn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(10, 14, 18, .6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); z-index: 1; }
.playbtn::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }

/* Make a fake ad */
.makegrid { display: grid; gap: 18px; }
@media (min-width: 860px) { .makegrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.makeform { display: grid; gap: 16px; }
.makeform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.makeform legend { font-weight: 700; margin-bottom: 8px; color: var(--on-2); }
.tricks { display: grid; gap: 8px; }
.tricks { gap: 0; }
.trick { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); cursor: pointer; font-weight: 700; }
.trick input { width: 22px; height: 22px; accent-color: var(--amber); }
.small-table { min-height: 0; padding: 22px 16px; }
.made-ad .tinylabel { font-size: 9.5px; opacity: .7; }
.caught ul { list-style: none; margin: 10px 0; padding: 0; display: grid; }
.caught li { display: grid; gap: 4px; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.caught .caughtby { font-size: 14px; font-weight: 700; color: var(--real); }
.caught h2 { font-size: 26px; font-weight: 600; }
.minimeters { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.minimeters li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; color: var(--on-2); padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.minimeters .meter { font-size: 14px; font-weight: 400; font-style: italic; color: var(--on-3); }
.minimeters .bars { display: none; }
.cardimg { margin: 12px 0 4px; border-radius: 6px; overflow: hidden; background: #0E1215; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.cardimg img { width: 100%; max-height: 300px; object-fit: cover; }
@media (min-width: 760px) and (min-aspect-ratio: 1/1) { .play > .side, .workgrid > .side { position: sticky; top: 84px; align-self: start; } }
.playbtn { left: 16px; top: auto; bottom: 16px; margin: 0; width: 52px; height: 52px; }
.playbtn::after { left: 20px; top: 14px; border-left-width: 17px; border-top-width: 12px; border-bottom-width: 12px; }
.path-bar i.soon { background: #1A2126; }
.units .soon > div { opacity: .62; }
.mmhead { margin-top: 6px; font-family: var(--serif); font-size: 19px; color: var(--on); }

/* The habits collection: index cards in a detective's handbook, each stamped with how the skill is going */
.pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pages li { position: relative; }
.pages li:nth-child(odd) { transform: rotate(-.5deg); }
.pages li:nth-child(even) { transform: rotate(.45deg); }
.pages a, .pages li > div { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 190px; padding: 14px 18px 18px; border-radius: 3px; text-decoration: none; color: #1D252B;
  background: #FBF8EF; box-shadow: 0 14px 24px -16px #000; line-height: 1.4; }
.pages a:hover { box-shadow: 0 18px 30px -16px #000; }
.pages a:hover b { text-decoration: underline; }
.pages .no { font-family: var(--serif); font-style: italic; font-size: 16px; color: #6A7177; }
.pages .no::before { content: "No. "; }
.pages .t { display: flex; flex-direction: column; gap: 2px; }
.pages .t b { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: #12181D; }
.pages small { color: #3A434A; font-size: 15.5px; }
.pages small.b { color: #5A6268; font-size: 14.5px; }
.pages .meter { margin-top: 8px; }
.pages .meter .bars { display: none; }
.pages .meter { position: absolute; right: 16px; top: 12px; margin: 0; padding: 1px 8px 2px; border: 2.5px solid currentColor; border-radius: 4px; color: #B4371C; font-family: var(--serif); font-weight: 600; font-size: 15px; transform: rotate(-5deg); opacity: .88; mix-blend-mode: multiply; }
.pages li > a > svg, .pages li > div > svg { position: absolute; right: 16px; bottom: 14px; color: #6A7177; }
.pages .shut > div { background: #E9E5DA; color: #5A6268; }
.pages .shut .t b { color: #5A6268; }
@media (forced-colors: active) { .pages a, .pages li > div, .habit, .clue { border: 1px solid CanvasText; } }
.clip .outlet .tiny { margin-left: 14px; }

/* ---------------------------------------------------------------- the curriculum update: check tab, guided case, think aloud, Spot check */
.searchrow { display: flex; align-items: center; gap: 8px; margin: 12px 14px; }
.searchrow .searchline { flex: 1; margin: 0; }
.namesearch { margin: -4px 14px 10px; font-size: 14px; font-style: italic; color: #4A535A; }
.tabwait { margin: 4px 14px 14px; font-size: 15px; color: #4A535A; }
.results .rdate { font-weight: 400; color: #6B7378; }
.aboutsrc { margin-top: 4px; }
.cite { color: var(--on-2); font-size: 16px; }
/* A guided case: hints written in pencil under the question */
.guided { display: grid; gap: 8px; }
.gtag { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--on-2); }
.hints { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-family: var(--serif); font-size: 18px; color: var(--on); }
.guided .btn { justify-self: start; }
.guided .btn .small { font-size: 13px; }
/* Read to me */
.readaloud { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 6px 4px; border: 0; background: none; color: var(--on-2); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(238, 240, 234, .35); text-underline-offset: .3em; }
.readaloud:hover { color: var(--on); }
.lessoncard .readaloud { color: #3A434A; text-decoration-color: rgba(27, 34, 40, .3); }
.desk > .readaloud { margin-top: 2px; }
/* Why was it made: each purpose has its own small mark */
.choice.purpose { justify-content: flex-start; gap: 10px; text-align: left; }
.choice.purpose svg { flex: none; color: var(--amber); }
/* Think aloud: your guess first, then the checker's thinking */
.thinkaloud li { display: grid; gap: 6px; }
.thinkaloud li::before { grid-row: 1 / span 2; }
.thinkaloud li { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: baseline; }
.thinkaloud .predict, .thinkaloud .think { grid-column: 2; }
.thinkaloud .predict b, .thinkaloud .think b { color: var(--on); }
.thinkaloud .think { font-family: var(--serif); font-size: 18px; color: var(--on); }
[data-part].hl { box-shadow: inset 0 -0.42em 0 rgba(242, 181, 68, .5); transition: box-shadow .4s var(--ease); }
/* The Spot check */
.spotoffer, .spotcall { display: grid; gap: 10px; }
.spotoffer h2, .spotcall h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--on); }
.spotoffer p, .spotcall p { color: var(--on-2); max-width: 60ch; }
.spotoffer .go, .spotcall .go { display: flex; flex-wrap: wrap; gap: 10px; }
.spotcall .btn { justify-self: start; }
.spotcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 40px; }
.spotcol h3 { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--amber); margin-bottom: 6px; }
.spotcol p { color: var(--on-2); }
.spotcol b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.1; color: var(--on); }
.spotdone h2 { font-size: 24px; font-weight: 600; }
.spotline, .dueline { margin-top: 4px; font-size: 16px; color: var(--on-2); }
.spotline a, .dueline a { color: var(--on); font-weight: 700; }
/* The ad maker: tricks in four groups, and a fair version */
.trickgroup legend { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--on); }
.makeform .go { display: flex; flex-wrap: wrap; gap: 10px; }
.made-ad .shame { font-size: 15px; }
.fairnote { margin-top: 16px; }
.fairnote h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.fairnote ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--on-2); }
/* Links out of the app: a link-looking button that opens the grown-up gate */
.srclink { display: inline; padding: 0; border: 0; background: none; color: var(--on); font: inherit; font-size: 16px; text-align: left; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; cursor: pointer; }
.srclink svg { display: inline-block; vertical-align: -2px; margin-left: 4px; }
.credit .srclink { font-size: 15.5px; margin-right: 8px; }
.cite .src-site { color: var(--on-3); font-size: 14px; }
.gate { width: min(92vw, 28rem); padding: 24px; border: 0; border-radius: 6px; background: #F6F3EA; color: #1B2228; box-shadow: 0 30px 60px -20px #000; }
.gate::backdrop { background: rgba(4, 7, 10, .8); }
.gate h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.gate .gatehost { margin: 6px 0 18px; font-size: 18px; color: #3A434A; overflow-wrap: anywhere; }
.gate .hold { position: relative; overflow: hidden; width: 100%; min-height: 56px; background: #1B2228; color: #F6F3EA; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gate .hold .fill { position: absolute; inset: 0; background: rgba(242, 181, 68, .55); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.gate .hold .lbl { position: relative; }
.gate .gate-go { margin: 0 0 4px; }
.gate .gate-go .btn { width: 100%; }
.gate .btns { margin-top: 12px; }
.gate .btn.ghost { width: 100%; color: #1B2228; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(27, 34, 40, .35); }
/* Focus on light surfaces (paper, the light table, the gate): a dark ring with an amber halo, visible on cream */
.lessoncard :focus-visible, .gate :focus-visible, .habit :focus-visible, .clue :focus-visible, .newtab :focus-visible, .table :focus-visible,
.pages a:focus-visible, .makepreview :focus-visible, .lessoncard.focus-ring:focus-visible {
  outline: 3px solid #12181D; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(242, 181, 68, .6);
}
/* "Explained for": a compact switch in the Learn card and lesson header */
.levels.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0; }
.levels.inline legend { float: left; margin: 0 4px 0 0; font-size: 15px; font-weight: 400; color: var(--on-3); }
.segline { display: flex; gap: 2px 14px; flex-wrap: wrap; }
.segline label { position: relative; display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; }
.segline input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segline span { font-size: 17px; color: var(--on-2); padding: 0 2px; }
.segline input:checked + span { color: var(--on); font-weight: 700; text-decoration: underline wavy var(--marker); text-decoration-thickness: 2px; text-underline-offset: .35em; text-decoration-skip-ink: none; }
.segline input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.whohint { max-width: 52ch; }
.askLevel .btn .small { font-size: 13px; font-weight: 400; margin-left: 6px; }
.notes details.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--serif); font-size: 19px; color: var(--on); }
.notes details.more[open] summary { margin-bottom: 10px; }
.notes details.more > div + div { margin-top: 14px; }
.lvtab { min-height: 44px; }
.brand { min-height: 44px; }
.srclink { min-height: 24px; padding: 4px 0; }
/* Phones 500px and narrower: Learn, Rounds and Habits move to a labeled bar along the bottom (hidden while playing) */
@media (max-width: 500px) {
  .bar-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; justify-content: space-around; gap: 0; padding: 4px 8px max(4px, env(safe-area-inset-bottom)); background: rgba(8, 12, 16, .97); box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); }
  .bar-nav a, .bar-nav a[data-nav="rounds"], .bar-nav a[data-nav="habits"] { display: inline-flex; flex-direction: column; gap: 2px; width: auto; min-width: 72px; min-height: 52px; padding: 4px 8px; font-size: 13px; }
  .bar-nav a span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .bar { padding-right: calc(12px + 220px); }
  body:not([data-view="play"]) .view { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-view="play"] .bar-nav { display: none; }
}
/* While the practice tab is open on a phone, the question tray shrinks to one row of buttons */
@media (max-width: 759px) {
  .play.tabopen .ask { gap: 8px; padding: 10px 12px; }
  .play.tabopen .ask .q, .play.tabopen .ask .hint, .play.tabopen .ask .readaloud, .play.tabopen .ask .guided { display: none; }
  .play.tabopen .call { min-height: 48px; font-size: 17px; }
}
.opening { max-width: 820px; margin: 60px auto; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-2); }
.allmeters .bars { display: inline-flex; }
.allmeters li a { color: var(--on); }
/* The bottom bar must sit on the viewport, so the top bar drops its blur on small phones (blur makes a new containing box) */
@media (max-width: 500px) { .bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 12, 16, .97); } }
/* Which result would you open first? */
.openq { margin: 4px 14px 8px; font-family: var(--serif); font-size: 18px; font-weight: 600; color: #1B2228; }
.results.picks li { padding-bottom: 6px; }
.openpick { display: grid; gap: 2px; width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 6px; background: #F0F2EF; text-align: left; cursor: pointer; color: #1B2228; }
.openpick:hover { background: #E6EAE7; }
.openpick b { font-family: var(--serif); font-size: 17px; color: #1C3F78; }
.openfb { margin: 0 14px 10px; font-size: 15.5px; color: #1B2228; }
.results li.opened b { text-decoration: underline wavy var(--marker); text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
