
/* The course engine's styles (one template for every course, 7 Nov 2026) · built for phones first.
   Brand (fonts, colours) lives in assets/brand/brand.css; the admin's colours for a course come in by _acct/theme.css (head.html).
   A course adds its own pieces (world games, slide pieces) in styles/course.css. */
/* assets/brand/brand.css */
/* Da Vinci School · Atomic Geometry — the brand in one place: fonts, colours, colour code.
   Everything else uses these names; change a colour here and it changes everywhere. */
/* lib/fonts/fonts.css */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/a89ed22ca4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/25e3098244.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/a89ed22ca4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/25e3098244.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/9076820487.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/2fed1d1b2e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/9076820487.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/2fed1d1b2e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../lib/fonts/9076820487.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../lib/fonts/2fed1d1b2e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/ba16536d41.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/480c062501.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/ba16536d41.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/480c062501.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../../lib/fonts/35e12df6d2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../../lib/fonts/357083765a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/35e12df6d2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../lib/fonts/357083765a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/35e12df6d2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../lib/fonts/357083765a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../lib/fonts/35e12df6d2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../lib/fonts/357083765a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces */
  --bg: #15111F; --bg-2: #1E192D;
  --panel: rgba(255,253,249,.05); --panel-line: rgba(47,175,167,.24);

  /* ink: light text on the dark ground (dark with turquoise, Heike 29 Oct 2026; was ivory from 28 Oct) */
  --ink: #F1ECE2; --ink-2: #CFC8DA; --ink-3: #B5ADC4;

  /* the house colour: turquoise, brighter on the dark ground (the names stay "gold" so nothing else had to change) */
  --gold: #2FAFA7; --gold-light: #2FD0C5; --gold-bright: #2FD0C5; --gold-deep: #0E8C85;
  --gold-metal: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));

  /* the colour code (Heike): orbitals S yellow, P red, D green, F purple;
     solids tetrahedron yellow, octahedron red, cube green, dodecahedron blue, icosahedron purple */
  --yellow: #E0A82E; --red: #D9483F; --green: #3FA463; --blue: #3F78C9; --purple: #8E5BC9;   /* the brand's solid colours (brand.css --c-tetra … --c-icosa, 20 Nov 2026) */
  --s: var(--yellow); --p: var(--red); --d: var(--green); --f: var(--purple);
  --tetra: var(--yellow); --octa: var(--red); --cube: var(--green); --dodeca: var(--blue); --icosa: var(--purple);
  /* printed templates use Heike's own card colours */
  --print-red: #e12e2c; --print-green: #357828;

  /* what kind of mission a hexagon is (its rim on the map) */
  --act-construct: var(--green); --act-watch: var(--blue); --act-explore: var(--gold); --act-play: var(--purple); --act-write: #c99a06;

  /* answers */
  --right: var(--gold);   /* right answers and done = turquoise (Heike 20 Nov 2026: no green, turquoise ticks) */ --wrong: var(--red);

  /* type */
  --serif: 'Outfit', system-ui, sans-serif;   /* Outfit everywhere (Heike 20 Nov 2026); the name stays so nothing else had to change */ --sans: 'Outfit', system-ui, sans-serif; --mono: 'JetBrains Mono', monospace;

  /* the faint honeycomb on the background */
  --tapestry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%232FAFA7' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M28 0 L56 16.2 L56 48.5 L28 64.7 L0 48.5 L0 16.2 Z M28 64.7 L28 97'/%3E%3C/g%3E%3C/svg%3E");
}

/* journey/styles/base.css */
/* The basics: page, type, top bar, pills, buttons, links, icons. */

/* The Atomic Geometry journey · same style as the slides, built for phones first */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(ellipse at 50% 0%, rgba(47,175,167,.10) 0%, rgba(21,17,31,.96) 60%), var(--tapestry) 0 0/56px 97px, var(--bg); background-attachment: fixed; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; color: var(--gold); }
/* ---------- top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(21,17,31,.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(47,175,167,.12); }
.bar #shelf-btn { margin-left: auto; }
.bar .bar-home { flex: none; }   /* ‹ My courses, left of the logo */
html body .bar .bar-home .lbl { display: inline; }   /* keep the words on phones too: an arrow alone is not clear enough */   /* the profile stays top right, also on phones where the brand name is hidden (Heike, 28 Oct 2026) */
.bar img { width: 28px; height: 28px; }
.bar .brand { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--panel-line); background: var(--panel); font-size: 14px; }
.pill b { color: var(--gold); font-weight: 600; }
.kicker { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.go { width: 100%; border-radius: 16px; border: 0; background: var(--gold); color: var(--bg); font-weight: 600; font-size: 17px; letter-spacing: .02em; transition: transform .1s, opacity .3s; }
.go:active { transform: scale(.98); }
.go[disabled] { opacity: .3; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.go { padding: 14px; }
/* the bar over a digit in a class symbol (3̄, 4̄): drawn tight over the digit, so it never reaches the line above */
.ov { position: relative; display: inline-block; text-decoration: none; }
.ov::before { content: ''; position: absolute; left: 8%; right: 8%; top: .18em; border-top: max(1.5px, .055em) solid currentColor; }
/* ================================================================ nothing pushes the page; pictures fit their frames */
html, body { overflow: hidden; }
/* ================================================================ 2026-10-15: line icons + readable links everywhere */
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }
a { color: var(--gold); text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--gold-bright); } }   /* phones keep a tapped link in :hover: that turned the text of turquoise link-buttons turquoise (21 Nov 2026) */
a.pill { color: var(--ink); text-decoration: none; border-color: rgba(47,175,167,.45); }
a.pill:hover { color: var(--ink); background: rgba(47,175,167,.12); }
.pill .ic { color: var(--gold); }
.bar img, .bar .brand { cursor: pointer; }
/* phones: the top bar keeps only the icons, so everything fits */
@media (max-width: 520px) {
  .bar { gap: 6px; padding: 12px 12px; }
  .bar .pill { padding: 6px 9px; font-size: 13px; }
  .bar .pill .ic { margin: 0; width: 18px; height: 18px; }
  .bar .brand { font-size: 11px; }
}
/* small phones: the top bar keeps every icon; the brand word steps back to just the logo */
@media (max-width: 430px) { .bar .brand { display: none; } .bar .pill { padding: 6px 8px; } .bar { gap: 5px; } }
/* report 8 (Sascha, 8 Nov 2026): the school logo bigger, the course name after it with a dash */
.bar > img { width: 40px; height: 40px; }
.bar > img + .brand { font-size: 13px; }
.bar > img + .brand::before { content: '–'; margin-right: .8em; opacity: .6; letter-spacing: 0; }
@media (max-width: 520px) { .bar > img { width: 34px; height: 34px; } }

/* journey/styles/home.css */
/* Home: the four weeks, the world info, the honeycomb of missions (pathway, activity rims, done). */

/* ---------- home */
.wrap { max-width: 560px; margin: 0 auto; padding: 22px 18px 120px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.02; margin: 0 0 8px; }
.lead { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); margin: 0 0 22px; }
.worlds { overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.world { flex: 0 0 auto; border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: var(--panel); color: var(--ink-3); text-align: left; }
.world b { display: block; font-family: var(--serif); font-weight: 500; color: var(--ink-2); }
.world.on { border-color: var(--gold); color: var(--gold); }
.world.on b { color: var(--ink); }
.world.locked { opacity: .5; }
.progress-ring { display: flex; }
.progress-ring .track { flex: 1; height: 6px; border-radius: 3px; background: rgba(241,236,226,.08); overflow: hidden; }
.progress-ring .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 3px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.progress-ring span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
/* the honeycomb of missions: grown from the centre, flat-topped hexagons */
.gems-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.comb { position: relative; width: 100%; }
@media (min-width: 900px) {
  h1 { font-size: 58px; }
}
.progress-ring b.ok { color: #2fafa7; }
/* ================================================================ home on one screen: info on top (or left), the honeycomb fills the rest */
main.wrap { height: calc(100dvh - 57px); display: flex; flex-direction: column; padding: 12px 16px 10px; overflow: hidden; max-width: 1200px; }
.w-info { flex: 0 0 auto; }
.worlds { margin-bottom: 10px; flex: 0 0 auto; }
.world b { font-size: 17px; }
h1 { font-size: clamp(30px, 4.6vh, 44px); margin-bottom: 4px; }
.lead { font-size: clamp(15px, 2vh, 19px); margin-bottom: 10px; }
.progress-ring { margin-bottom: 8px; }
.gems-line { margin: 0 0 6px; }
.comb { flex: 1 1 0; min-height: 0; margin: 0; }
@media (min-width: 900px) and (orientation: landscape) {
  main.wrap { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); }
  .w-info { align-self: center; }
  .comb { height: 100%; }
  h1 { font-size: 54px; }
}
/* the homework button on the map */
.hw-dl { place-items: center; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(47,175,167,.5); color: var(--gold); font-size: 14px; text-decoration: none; white-space: nowrap; }
/* world tabs: all four fit across */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
.world { padding: 6px 8px; font-size: 10.5px; min-width: 0; }
.world b { font-size: clamp(12px, 3.4vw, 17px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ================================================================ 2026-10-15: desktop home: the four weeks as a menu on the left */
.world .wn { display: none; }
@media (min-width: 900px) and (orientation: landscape) {
  main.wrap { max-width: 1520px; grid-template-columns: 230px minmax(280px, 1fr) minmax(0, 1.7fr); column-gap: 36px; }
  .worlds { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 18px 26px 18px 0; border-right: 1px solid rgba(241,236,226,.08); }
  .worlds::before { content: 'Seven worlds'; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px 4px; }
  .world { display: grid; column-gap: 12px; align-items: center; padding: 12px 14px; font-size: 12px; }
  .world .wn { display: grid; grid-row: 1 / 3; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; font: 500 17px var(--serif); font-style: normal; }
  .world b { font-size: 19px; white-space: normal; line-height: 1.15; }
  .world:not(.on):not(.locked):hover { border-color: rgba(47,175,167,.5); }
  .w-info { grid-column: 2; grid-row: 1; }
  .comb { grid-column: 3; grid-row: 1; }
}
.types { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); }
.types span { display: inline-flex; align-items: center; gap: 6px; }
.types i { background: var(--t); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.ic.fill { fill: currentColor; }
.hw-dl { display: inline-flex; align-items: center; gap: 6px; }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(47,175,167,0)); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(47,175,167,.6)); } }
@keyframes nextglow { 0%, 100% { filter: brightness(1.05) drop-shadow(0 0 0 transparent); } 50% { filter: brightness(1.45) drop-shadow(0 0 10px var(--t, var(--gold))); } }
/* progress: the growing crystal (journey/crystal.js) */
.progress-ring { gap: 14px; align-items: center; }
.w-crystal svg { display: block; width: 46px; height: 108px; }
.pr-text { flex-direction: column; gap: 2px; }
.pr-text b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.pr-text span { font-size: 13px; color: var(--ink-3); }
.pr-text .ok { color: #2fafa7; font-weight: 500; }
.crystal-progress .f0 { filter: brightness(.62); }
.crystal-progress .f2 { filter: brightness(.8); }
.crystal-progress .edges { fill: none; stroke: rgba(241,236,226,.35); stroke-width: .8; stroke-linejoin: round; }
.crystal-progress polygon { transition: fill .6s; }
.crystal-progress.hw .tip { filter: drop-shadow(0 0 4px var(--gold-bright)); }
.world .wc { display: none; }
@media (max-width: 520px) {
  .w-crystal svg { width: 34px; height: 80px; }
  .pr-text b { font-size: 18px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .world { grid-template-columns: 34px 1fr 22px; }
  .world .wc { display: block; grid-column: 3; grid-row: 1 / 3; width: 22px; }
  .world .wc svg { display: block; width: 22px; height: 52px; }
  .world.locked .wc { opacity: .5; }
}
/* progress above the title: the crystal lying down, as long as the column; key and hidden crystals at the bottom */
.w-progress .w-crystal svg { display: block; width: 100%; height: auto; }
.w-progress .pr-text { display: block; margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.w-progress .pr-text b { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.w-progress .pr-text span { font-size: 13px; }
.home-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding: 10px 0 0; font-size: 12px; color: var(--ink-3); }
.home-foot .types, .home-foot .gems-line { margin: 0; font-size: 12px; }
@media (min-width: 900px) and (orientation: landscape) {
  main.wrap { grid-template-rows: 1fr auto; }
  .home-foot { grid-column: 1 / 3; grid-row: 2; padding: 8px 0 4px; }
}

/* your points, big, at the bottom right of the map (tap: your profile); hidden while a mission or the profile is open */
.xp-big { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 16px 9px; border-radius: 20px;
  border: 1px solid rgba(47,175,167,.45); background: rgba(30,25,45,.92); backdrop-filter: blur(8px); box-shadow: 0 10px 28px rgba(241,236,226,.14); color: var(--ink); }
.xp-big b { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1; color: var(--gold); }
.xp-big span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.xp-big small { font-size: 11px; color: var(--gold-light); margin-top: 3px; }
.xp-big .xp-streak { font-style: normal; font-size: 12px; color: var(--ink); margin-top: 3px; }   /* the daily streak, 1 Nov 2026 */
.streakline { display: block; margin-top: 8px; color: var(--ink); }
.flame { width: 1em; height: 1em; vertical-align: -.12em; color: #f2a65a; }
.xp-big small:empty { display: none; }
body:has(.player.open) .xp-big, body:has(.shelf.open) .xp-big, body:has(.cover) .xp-big { display: none; }
.profile-btn { gap: 8px; padding: 4px 12px 4px 4px; }
@media (max-width: 520px) { .xp-big { right: 12px; bottom: 12px; min-width: 78px; padding: 8px 12px 7px; } .xp-big b { font-size: 30px; } .profile-btn { padding: 4px; } }
@media (max-width: 520px) { .home-foot { padding-right: 96px; } }
/* hidden crystals: just the gem and the count, under the points */
.xp-big .xp-gems { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(47,175,167,.25); font-style: normal; font-size: 13px; font-weight: 600; color: #f2c94c; }
.xp-big .xp-gems svg { width: 15px; height: 15px; }
.xp-big b { margin-bottom: 5px; } .xp-big span { margin-bottom: 1px; }
.w-progress { margin: 0 0 30px; } .w-info .kicker { margin-bottom: 8px; }
.crystal-progress .seams { fill: none; stroke: rgba(241,236,226,.16); stroke-width: .7; }
.w-time { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; } .w-time .ic { width: 15px; height: 15px; color: var(--gold); }

/* ================================================================ 2026-10-22: the map of seven worlds (Nature in the centre) */
.map-wrap { display: none; }
body.on-map main.wrap > :not(.map-wrap) { display: none; }
body.on-map .map-wrap { display: flex; flex-direction: column; grid-column: 1 / -1; grid-row: 1 / -1; height: 100%; min-height: 0; text-align: center; }
.map-wrap h1 { margin: 2px 0 4px; } .map-wrap .lead { margin: 0 auto 10px; color: var(--ink-2); }
.map { position: relative; flex: 1 1 0; min-height: 0; width: 100%; }
.world-cell .lab { padding-top: 4%; }
.world-cell .lab b { font-size: calc(var(--w) * .15); }
.world-cell .lab small { margin-top: 6px; font: 500 calc(var(--w) * .055) var(--sans); letter-spacing: .08em; color: rgba(30,25,45,.85); display: flex; gap: 4px; align-items: center; }
.world-cell .lab small svg { width: 1.1em; height: 1.1em; }
.map-btn { margin-bottom: 18px; display: inline-flex; gap: 6px; align-items: center; }

/* one Continue button per world (5 Nov 2026, UX review): bottom centre, the points badge stays on the right */
.w-go { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; text-align: left; min-width: 230px; max-width: calc(100vw - 140px);
  padding: 11px 16px 11px 22px; border: 0; border-radius: 999px; background: var(--gold); color: #12100a; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); font: inherit; }
.w-go small { grid-column: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.w-go b { grid-column: 1; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-go .w-go-ic { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(0,0,0,.14); }
.w-go:hover { filter: brightness(1.06); }
.w-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.w-go[hidden], body.on-map .w-go, body:has(.player.open) .w-go, body:has(.shelf.open) .w-go, body:has(.cover) .w-go { display: none; }
@media (max-width: 520px) { .w-go { left: 12px; transform: none; bottom: 12px; min-width: 0; max-width: calc(100vw - 112px); padding: 9px 12px 9px 16px; } .w-go b { font-size: 18px; } }
@media (prefers-reduced-motion: no-preference) { .w-go { transition: filter .15s; } }
/* reports 9, 11, 16 (Sascha, 8 Nov 2026): the "0 of 19" on a world was dark on dark (dark text is only for the gold one);
   the map needs the same room at the bottom as at the top; the legend under the honeycomb was too small to notice */
.world-cell:not(.next) .lab small { color: rgba(241,236,226,.88); text-shadow: 0 1px 5px rgba(0,0,0,.85); }
body.on-map .map-wrap { padding-bottom: 28px; box-sizing: border-box; }
.home-foot .types { font-size: 14px; gap: 8px 18px; color: var(--ink); }
.types i { width: 15px; height: 13px; }

/* the world's hunt (Nature: photos outside, 8 Nov 2026): a chip beside "10 of 19 missions" */
.hunt-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid rgba(242,201,76,.55);
  background: rgba(242,201,76,.12); color: var(--ink); font: 600 13px/1.2 Outfit, system-ui, sans-serif; cursor: pointer; vertical-align: middle; }
.hunt-chip .ic { width: 16px; height: 16px; color: #f2c94c; }
.hunt-chip span { color: #f2c94c; font-weight: 700; }
.hunt-chip.done { border-color: var(--right); background: rgba(47,175,167,.15); }
.hunt-chip[hidden] { display: none; }
/* a finished world says so on the world list (report 180, 16 Nov 2026) */
.world .wok { font-style: normal; color: var(--gold, #2FAFA7); font-weight: 600; }
.world .wok::before { content: '✓ '; }

/* Hands-on (18 Nov 2026, Heike reports 337/347): a teal chip beside the hunt chip; the sheet lists the world's
   construction PDF and every make/draw card */
.hands-chip { border-color: rgba(47,175,167,.6); background: rgba(47,175,167,.12); }
.hands-chip .ic { color: #2FAFA7; }
.hands-chip span { color: #2FAFA7; }
.hands-chip[hidden] { display: none; }
.pr-text { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
#m-body .ho-lead { margin: 0 0 12px; color: var(--ink-2, rgba(241,236,226,.8)); }
#m-body .ho-sheets { display: grid; gap: 8px; margin: 0 0 14px; }
#m-body .ho-sheet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(47,175,167,.55);
  background: rgba(47,175,167,.12); color: var(--ink, #F1ECE2); text-decoration: none; }
#m-body .ho-sheet .ic { width: 22px; height: 22px; color: #2FAFA7; flex: none; }
#m-body .ho-sheet b { display: block; font: 600 16px/1.25 Outfit, system-ui, sans-serif; }
#m-body .ho-sheet small { display: block; font-size: 13px; color: rgba(241,236,226,.7); margin-top: 2px; }
#m-body .ho-count { margin: 4px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(241,236,226,.6); }
#m-body .ho-list { display: grid; gap: 8px; }
#m-body .ho-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; background: rgba(241,236,226,.05); border: 1px solid rgba(241,236,226,.1); }
#m-body .ho-item.done { border-color: rgba(47,175,167,.5); }
#m-body .ho-pic { flex: none; width: 64px; height: 64px; border-radius: 10px; background: rgba(241,236,226,.08) center/cover no-repeat; display: grid; place-items: center; }
#m-body .ho-pic .ic { width: 28px; height: 28px; color: #2FAFA7; }
#m-body .ho-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
#m-body .ho-txt b { font: 600 15px/1.3 Outfit, system-ui, sans-serif; color: var(--ink, #F1ECE2); }
#m-body .ho-txt small { font-size: 12.5px; color: rgba(241,236,226,.65); }
#m-body .ho-txt .ok { font-style: normal; color: #2fafa7; display: inline-flex; align-items: center; gap: 3px; }
#m-body .ho-txt .ok .ic { width: 13px; height: 13px; }
#m-body .ho-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
#m-body .ho-open, #m-body .ho-pdf { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; font: 600 13px/1 Outfit, system-ui, sans-serif; cursor: pointer; text-decoration: none; }
#m-body .ho-open { background: #2FAFA7; color: #15111F; border: 0; }
#m-body .ho-pdf { border: 1px solid rgba(47,175,167,.55); color: #2FAFA7; }
#m-body .ho-open .ic, #m-body .ho-pdf .ic { width: 14px; height: 14px; }
#m-body .ho-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: rgba(241,236,226,.55); }
#m-body .ho-lock .ic { width: 13px; height: 13px; }
/* phones: the missions count, the hunt and Hands-on chips wrap onto a second line instead of being cut off (18 Nov 2026) */
@media (max-width: 600px) {
  .w-progress .pr-text { display: flex !important; flex-direction: row !important; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 8px; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto; }
  .w-progress .pr-text .hunt-chip { margin-left: 0; }
  .w-progress { height: auto; align-items: flex-start; }
}

/* Hands-on as a floating button at the bottom left of a world's map, like the points badge on the right
   (Heike 18 Nov 2026, report 350: "should really be on the bottom left, at the moment it's next to the progress bar") */
.hands-fab { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(47,175,167,.6); background: rgba(30,25,45,.92); backdrop-filter: blur(8px); box-shadow: 0 10px 28px rgba(0,0,0,.35);
  color: var(--ink, #F1ECE2); font: 600 15px/1.2 Outfit, system-ui, sans-serif; }
.hands-fab .ic { width: 24px; height: 18px; color: #2FAFA7; }
.hands-fab span { color: #2FAFA7; font-weight: 700; }
.hands-fab:hover { border-color: #2FAFA7; }
.hands-fab:focus-visible { outline: 2px solid var(--ink, #F1ECE2); outline-offset: 3px; }
.hands-fab[hidden], body.on-map .hands-fab, body:has(.player.open) .hands-fab, body:has(.shelf.open) .hands-fab, body:has(.cover) .hands-fab, body:has(.modal.open) .hands-fab { display: none; }
@media (max-width: 520px) { .hands-fab { left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px 13px 8px 10px; font-size: 14px; } }
@media (max-width: 640px) { .hands-fab { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } }
/* in the sheet the printed sheet comes first, drawing on screen second (report 350) */
#m-body .ho-pdf.pri { background: #2FAFA7; color: #15111F; border-color: #2FAFA7; }
#m-body .ho-open.sec { background: transparent; color: #2FAFA7; border: 1px solid rgba(47,175,167,.55); }
.xp-big .xp-gems .gl { font-size: 11px; opacity: .8; font-weight: 500; }
/* Continue: the first mission with cards still open (18 Nov 2026, Heike) */
.cont-chip { display: flex; align-items: center; gap: 10px; width: min(460px, 100%); margin: 6px 0 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(47,175,167,.55); background: rgba(47,175,167,.1); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cont-chip[hidden] { display: none; }
.cont-chip > svg, .cont-chip > .ic { flex: none; width: 22px; height: 22px; color: var(--gold); }
.cont-chip span { display: flex; flex-direction: column; min-width: 0; }
.cont-chip b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-chip small { font-size: 13px; color: var(--ink-3); }
.cont-chip .cc-m { font-style: normal; }
body.on-map .cont-chip { display: none; }

/* ---- engine: key missions (COURSE.keyMissions): the key-mission button, Templates, the "done" note (Crystal Geometry, Blueprint) */
.soon { margin: 6px 0; padding: 8px 12px; border: 1px dashed rgba(241,236,226,.15); border-radius: 18px; color: var(--ink-3); font-size: 13px; text-align: center; }
.hw-row { display: flex; gap: 8px; align-items: stretch; margin: 4px 0 8px; }
.hw-btn { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px 14px; border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #15111F; box-shadow: 0 6px 22px rgba(47,175,167,.35); }
.hw-btn span { grid-row: 1 / 3; font-size: 22px; }
.hw-btn b { font-size: 16px; }
.hw-btn small { font-size: 12px; opacity: .75; }
.hw-btn.done { background: rgba(47,175,167,.2); color: var(--ink); box-shadow: none; border: 1px solid var(--right); }
.hw-btn > span .ic { width: 22px; height: 22px; }
.w-info h1 { margin-bottom: 26px; } .w-info .hw-row { margin-top: 6px; }

/* the world map as a 2 x 2 square (COURSE.squareMap, 2 Dec 2026) */
#map.sq { display: grid; grid-template-columns: repeat(2, var(--w)); grid-auto-rows: var(--w); gap: 14px; justify-content: center; align-content: center; }
#map.sq .cell { position: relative; width: var(--w); height: var(--w); }
#map.sq .cell::before, #map.sq .cell .face, #map.sq .cell .lab { clip-path: none; border-radius: 20px; }
#map.sq .cell .face { border-radius: 17px; }
#map.sq .cell:hover { transform: scale(1.03); }

/* journey/styles/cards.css */
/* Every kind of card: story, quiz and pictures, photos, flips, sort and match, hexagon walls, steps, homework, slide pieces. */

.stagebox { flex: 1; min-height: 240px; position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(closest-side, rgba(255,255,255,.04), transparent); border: 1px solid rgba(47,175,167,.1); }
.stagebox canvas, .stagebox > svg { display: block; width: 100%; height: 100%; }
.stagebox .hint { position: absolute; right: 12px; bottom: 10px; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); font-size: 15px; color: var(--ink-2); }
.chip.on { border-color: var(--gold); color: var(--ink); background: rgba(47,175,167,.12); }
.cap { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); text-align: center; min-height: 26px; margin: 10px 0 0; }
/* quiz */
.opts { display: flex; flex-direction: column; margin-top: 4px; }
.opt { border-radius: 14px; border: 1px solid rgba(241,236,226,.14); background: var(--panel); text-align: left; color: var(--ink); transition: border-color .2s, background .2s; }
.opt.pick { border-color: var(--gold); background: rgba(47,175,167,.1); }
.opt.right { border-color: var(--d); background: rgba(47,175,167,.18); }
.opt.wrong { border-color: var(--p); background: rgba(229,72,77,.12); animation: shake .35s; }
.explain { border-left: 3px solid var(--gold); background: rgba(47,175,167,.06); border-radius: 0 12px 12px 0; color: var(--ink-2); line-height: 1.45; }
.explain.show { animation: cardin .35s; }
/* photo pick */
.photos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #000; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.8)); text-align: left;; color: #FFFFFF; }   /* white: the ivory recolour had turned it dark on dark (29 Oct 2026) */
.ph.pick { border-color: var(--gold); }
.ph.pick::after { content: '✓'; position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ph.right { border-color: var(--d); }
.ph.wrong { border-color: var(--p); }
/* make (homework) */
.task { display: flex; gap: 14px; border-radius: 16px; border: 1px solid var(--panel-line); background: var(--panel); }
.task b { display: block; font-family: var(--serif); font-weight: 500; }
.task p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.upload { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.upload label { padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(47,175,167,.5); color: var(--gold); font-size: 14px; cursor: pointer; }
.upload input { display: none; }
.upload img { object-fit: cover; border-radius: 10px; }
.link { color: var(--gold); font-size: 14px; }
.hero { height: 34vh; min-height: 180px; margin: 0 -20px 14px; background: center/cover; position: relative; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero small { position: absolute; right: 26px; bottom: 26px; font-size: 10px; color: rgba(241,236,226,.6); }
.lines .line { font-family: var(--serif); font-size: 23px; line-height: 1.3; color: var(--ink); margin: 0 0 14px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; display: none; }
.lines .line.on { display: block; opacity: 1; transform: none; }
.lines .line em { font-size: 1.05em; }
.tapon { display: block; margin: 6px auto 0; padding: 10px 18px; border-radius: 999px; border: 1px dashed rgba(47,175,167,.5); background: none; color: var(--gold); font-size: 14px; animation: breathe 2s ease-in-out infinite; }
.more { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(47,175,167,.4); background: rgba(47,175,167,.08); color: var(--gold); font-size: 14px; }
.q { font-size: 18px; color: var(--ink); font-weight: 500; margin: 6px 0 12px; line-height: 1.35; }
.qimg { width: 100%; max-height: 28vh; object-fit: cover; border-radius: 16px; margin-bottom: 4px; }
.opt.dim { opacity: .45; }
.opt.tried { opacity: .55; }
.opts.row { flex-direction: row; flex-wrap: wrap; }
.opts.row .opt { flex: 1 1 40%; text-align: center; padding: 11px 8px; font-size: 15px; }
.explain { display: none; gap: 12px; align-items: flex-start; }
.explain.show { display: flex; }
.explain img { object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.explain p { margin: 0 0 6px; }
.explain p:last-child { margin: 0; }
.count { font-size: 13px; color: var(--ink-3); text-align: center; margin: 8px 0; }
/* book pages from Geometric Universe: paper on the dark */
.bookpage { display: block; width: 100%; padding: 0; border: 0; background: #fbf8f1; border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(47,175,167,.3); max-height: 46vh; }
.bookpage img { width: 100%; display: block; }
.bookpage span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(21,17,31,.9)); color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-align: left; }
/* pictures in answers, explanations, pop-ups */
.opts.pics .opt { display: flex; }
.opt .oi { display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.03); }
.opt .oi img { width: 100%; height: 100%; }
.opt .oi svg { width: 100%; height: 100%; }
.opts.row.pics .opt { flex-direction: column; gap: 4px; padding: 8px 4px; }
.opts.row.pics .oi { flex-basis: auto; }
.ex-art { display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.03); }
.ex-art img { width: 100%; height: 100%; object-fit: cover; }
.ex-art svg { width: 100%; height: 100%; }
.mt svg { width: 40px; height: 40px; flex: 0 0 auto; }
svg.art { display: block; }
svg.art .new { stroke-dasharray: 260; stroke-dashoffset: 260; animation: drawin .9s ease-out forwards; }
/* steps: an idea in small steps */
.art-stage { position: relative; aspect-ratio: 1; flex: 0 0 auto; min-height: 0; cursor: pointer; }
.art-stage.flat { background: #1E192D; }
.art-stage .frame { position: absolute; display: grid; place-items: center; animation: cardin .45s cubic-bezier(.2,.8,.2,1); transition: opacity .4s; }
.art-stage .frame.out { opacity: 0; }
.art-stage .frame svg { width: 100%; height: 100%; }
.stepnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.stepnav .sb { width: 46px; height: 40px; border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); color: var(--ink-2); font-size: 22px; }
.stepnav .sb.on { border-color: var(--gold); color: var(--gold); }
.stepnav .sb:disabled { opacity: .25; }
.sdots { display: flex; gap: 6px; }
.sdots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(241,236,226,.15); transition: background .3s; }
.sdots i.on { background: var(--gold); }
/* flip cards: hexagons that turn over */
/* flip cards: playing cards. Front: the clue, big. Back: the answer, on its photo when there is one */
.flips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.flips.n6, .flips.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flips.one { grid-template-columns: 1fr; }
.fl { border: 0; padding: 0; background: none; perspective: 1100px; min-height: 0; aspect-ratio: 4 / 5; }
.fl .in { display: block; position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.34,1.3,.64,1); transform-style: preserve-3d; }
.fl.on .in { transform: rotateY(180deg); }
.fl .front, .fl .back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fl .front { background: radial-gradient(circle at 50% 35%, rgba(47,175,167,.2), rgba(47,175,167,.04) 70%), var(--tapestry) 0 0/28px 48.5px, var(--bg-2); border: 1.5px solid rgba(47,175,167,.55); box-shadow: inset 0 0 0 5px var(--bg-2), inset 0 0 0 6px rgba(47,175,167,.25); }
.fl .front .fq { width: 30%; max-width: 64px; color: var(--gold); opacity: .8; }
.fl .front .fq .ic { width: 100%; height: auto; }
.fl .front .fa { width: 42%; max-width: 110px; aspect-ratio: 1; display: block; }
.fl .front .fa svg { width: 100%; height: 100%; }
.fl .front .ft { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); }
.fl .front .fturn { position: absolute; bottom: 12px; left: 0; right: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); opacity: .75; display: flex; align-items: center; justify-content: center; gap: 5px; }
.fl .back { transform: rotateY(180deg); background: #1E192D; border: 1.5px solid var(--right); color: var(--ink-2); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.4; }
.fl .back b { color: var(--ink); font-weight: 600; }
.fl .back.photo { justify-content: flex-end; padding: 0; background-color: #1E192D; background-size: cover; background-position: center; }
.fl .back.photo .bt { display: block; width: 100%; padding: 46px 14px 14px; text-align: left; color: var(--ink-2); background: linear-gradient(180deg, transparent, rgba(21,17,31,.9) 38%); }
.fl:hover .front { border-color: var(--gold); }
.fl .front { padding-bottom: 34px; }
.fl .front .ft { overflow-wrap: anywhere; }
/* sort & match & order */
.pool { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; min-height: 44px; }
.tok { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); font-size: 14.5px; color: var(--ink); transition: transform .15s, border-color .2s; }
.tok img { border-radius: 8px; object-fit: cover; margin: -2px 0 -2px -4px; }
.tok.sel { border-color: var(--gold); background: rgba(47,175,167,.15); transform: translateY(-3px); }
.tok.right { border-color: var(--d); background: rgba(47,175,167,.15); }
.tok.wrong { border-color: var(--p); background: rgba(229,72,77,.14); animation: shake .35s; }
.bins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bin { min-height: 120px; border-radius: 16px; border: 1.5px dashed rgba(47,175,167,.4); padding: 10px; background: rgba(47,175,167,.03); }
.bin b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--gold); margin-bottom: 8px; text-align: center; }
.bin .got { display: flex; flex-wrap: wrap; gap: 6px; }
.bin .tok { font-size: 13px; padding: 6px 9px; }
.match { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; }
.match .col { flex-direction: column; }
.mt { display: flex; align-items: center; border-radius: 14px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); text-align: left; color: var(--ink); transition: border-color .2s, background .2s, opacity .3s; }
.mt img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.mt.sel { border-color: var(--gold); background: rgba(47,175,167,.14); }
.mt.right { border-color: var(--d); background: rgba(47,175,167,.14); opacity: .75; }
.mt.wrong { border-color: var(--p); animation: shake .35s; }
.seq { margin: 4px 0 8px; padding-left: 26px; counter-reset: s; }
.seq li { padding: 8px 0; border-bottom: 1px solid rgba(241,236,226,.08); color: var(--ink); animation: cardin .35s; }
.seq li::marker { color: var(--gold); font-weight: 600; }
/* write */
textarea { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(47,175,167,.35); background: rgba(255,253,249,.04); color: var(--ink); font: 17px/1.45 var(--serif); resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold); }
/* guess the system */
.gs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 30vh; min-height: 170px; }
.gph { border-radius: 16px; background: center/cover; position: relative; overflow: hidden; }
.gph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-family: var(--serif); font-size: 20px; }
.gv { border-radius: 16px; border: 1px dashed rgba(47,175,167,.25); position: relative; overflow: hidden; }
.gv:empty::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 500 44px var(--serif); color: var(--ink-3); }
.go2 { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 14px; border: 1px solid var(--gold); background: rgba(47,175,167,.12); color: var(--gold); font-weight: 600; font-size: 16px; }
.tally { text-align: center; font-family: var(--serif); font-size: 26px; margin: 30px 0 14px; }
.tally b { font: 600 64px var(--sans); color: var(--gold); display: block; }
/* the homework card's extra link */
button.link { border: 0; background: none; padding: 0; margin-left: 12px; text-decoration: underline; }
.task .tt p { margin: 2px 0 6px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.lockmsg { color: var(--ink-3); font-style: italic; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(241,236,226,.08); margin-bottom: 8px; font-family: var(--serif); font-size: 18px; }
.note small { display: block; font: 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.outro { display: block; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.ssay { margin-top: 10px; font-family: var(--serif); font-size: 20px; line-height: 1.32; color: var(--ink); min-height: 80px; }
.ssay b { color: var(--gold); font-weight: 600; }
/* exact slide pieces */
.hero.live { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); -webkit-mask-image: none; mask-image: none; }
.art-stage.wide { aspect-ratio: 4 / 3; }
.art-stage > canvas, .art-stage > .scene { transition: opacity .45s; }
.art-stage.art-on > :not(.frame) { opacity: 0; pointer-events: none; }
.art-stage .frame svg.art { width: 100%; height: 100%; }
.stagebox.tall { min-height: 56vh; }
/* columns of the slide: photo above, model below, one column each (never one orbit for all) */
.cols { position: absolute; inset: 0; display: grid; gap: 6px; padding: 6px; }
.cols > div { position: relative; display: grid; grid-template-rows: 1fr 1fr auto; gap: 6px; min-height: 0; }
.cols .ph2 { background: center/cover; border-radius: 12px; min-height: 0; }
.cols .v3 { position: relative; min-height: 0; border-radius: 12px; background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); border: 1px solid rgba(47,175,167,.12); transition: opacity .6s; }
.cols .v3 canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.cols p { margin: 0; font-size: 12.5px; text-align: center; color: var(--ink-2); line-height: 1.25; }
.cols p b { color: var(--ink); font-weight: 500; }
.cols.hide3d .v3 { opacity: 0; }
.layer { position: absolute; inset: 0; transition: opacity .6s; }
.layer.off { opacity: 0; pointer-events: none; }
.layer > .ph2 { position: absolute; inset: 0; background: center/cover; border-radius: 16px; }
.layer .lcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; color: var(--ink); border-radius: 0 0 16px 16px; }
.defwall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transition: opacity .9s, filter .9s; }
.defwall div { background: center/cover; position: relative; }
.defwall div span { position: absolute; left: 6px; bottom: 4px; font-size: 10px; color: #fff; text-shadow: 0 1px 4px #000; }
.defwall.dim { opacity: .14; filter: blur(3px) saturate(.7); }
.deflines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px; text-align: center; }
.deflines > * { opacity: 0; transform: translateY(8px); transition: opacity .7s, transform .7s; margin: 4px 0; }
.deflines > .on { opacity: 1; transform: none; }
.deflines h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; margin: 0 0 10px; }
.deflines p { font-family: var(--serif); font-size: 25px; color: var(--ink); }
.deflines strong { color: var(--gold); font-weight: 500; }
.igc { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 6px; padding: 6px; transition: opacity .5s; }
.igc.off { opacity: 0; pointer-events: none; }
.igc .ph2 { background: center/cover; border-radius: 12px; }
.igc canvas { width: 100%; height: 100%; display: block; border-radius: 12px; background: #1E192D; }
.igc .verdict { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.igc .verdict b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; }
.igc .verdict.yes b { color: #2fafa7; }
.igc .verdict.no b { color: #ff8a8d; }
.igc .legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.igc .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.gx2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; height: 100%; align-content: center; }
.gx2 b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; color: var(--gold); margin-bottom: 4px; }
.gx2 span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.gx2 .verdict { grid-column: 1 / -1; font-size: 16px; color: var(--ink); }
.photo3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 100%; padding: 6px; }
.photo3 div { background: center/cover; border-radius: 12px; position: relative; }
.photo3 span { position: absolute; left: 6px; bottom: 6px; font-size: 12px; text-shadow: 0 1px 4px #000; }
.sysx { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.sysx > * { pointer-events: auto; }
.sysx .thumb { width: 74px; height: 74px; border-radius: 12px; background: center/cover; border: 1px solid rgba(47,175,167,.35); }
.art-stage .frame > div { width: 100%; height: 100%; }
.vid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(47,175,167,.25); }
.vid.vid-tall { aspect-ratio: 9 / 16; width: auto; height: min(70vh, 620px); max-width: 100%; margin: 0 auto; }   /* a YouTube Short: upright reel */
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.skipline { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.art-stage .frame { inset: 2%; }
.lines .line { font-size: clamp(18px, 2.7vh, 23px); margin-bottom: 8px; }
.opt { padding: 11px 14px; font-size: 15.5px; }
.opts { gap: 8px; }
.opt .oi { flex-basis: 46px; }
.explain { margin-top: 8px; padding: 10px 12px; font-size: 14.5px; }
.ex-art { flex-basis: 70px; }
.task { padding: 10px 12px; margin-bottom: 8px; }
.task .ico { flex-basis: 46px; }
.task b { font-size: 19px; }
.txt.clamp, .tt.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-t { align-self: flex-start; border: 0; background: none; color: var(--gold); font-size: 13px; padding: 0 0 6px; }
@media (min-width: 900px) and (orientation: landscape) {
  .lines .line { font-size: 24px; }
}
/* short phones: chips scroll sideways, cards and homework tighter, pictures stay */
@media (max-height: 760px) {
  .chips { margin-top: 8px; }
  .chip { flex: 0 0 auto; padding: 7px 12px; font-size: 14px; }
  .task { padding: 8px 10px; gap: 10px; margin-bottom: 6px; }
  .task b { font-size: 17px; }
  .task .tt p { font-size: 13px; margin-bottom: 3px; }
  .upload { margin-top: 4px; }
  .upload label { padding: 6px 10px; font-size: 13px; }
  .opts.row.pics .opt { padding: 4px; }
  .count { margin: 4px 0; }
}
/* bigger pictures in rows, answers and explanations */
.opt .oi { flex: 0 0 72px; height: 72px; border-radius: 12px; }
.opts.row.pics .oi { width: 72px; height: 60px; }
.ex-art { flex: 0 0 120px; height: 120px; border-radius: 12px; }
.tok img { width: 46px; height: 46px; }
.task .ico { flex: 0 0 64px; height: 64px; }
.task .ico svg { width: 100%; height: 100%; }
.upload img { width: 64px; height: 64px; }
.explain img { width: 120px; height: 120px; }
@media (max-height: 760px) {
  .opt .oi { flex-basis: 58px; height: 58px; }
  .ex-art { flex-basis: 90px; height: 90px; }
  .opts.row.pics .oi { width: 60px; height: 46px; }
  .mt img, .mt svg { width: 46px; height: 46px; }
  .mt { min-height: 54px; }
}
/* answers with pictures: columns, the picture on top, big */
.opts.pics.cols2 { grid-template-columns: 1fr 1fr; }
.opts.pics.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.opts.pics.cols1 { grid-template-columns: 1fr; }
.opts.pics .opt { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; text-align: center; }
.opts.pics .opt .oi { flex: 0 0 auto; width: 100%; height: clamp(64px, 11vh, 120px); }
.opts.row.pics { display: grid; grid-template-columns: repeat(3, 1fr); }
.opts.row.pics .opt .oi { width: 100%; height: clamp(54px, 9vh, 100px); }
/* homework tasks: in columns, photo on top */
.tasks.tcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tasks.tcols .task { flex-direction: column; padding: 6px; gap: 6px; margin: 0; }
.tasks.tcols .timg { height: clamp(80px, 16vh, 180px); border-radius: 10px; background: center/cover; }
.tasks.tcols .task b { font-size: 17px; }
.tasks.tcols .task .tt p { font-size: 12.5px; }
.tasks.tcols .upload label { font-size: 12px; padding: 6px 8px; }
.link.dl { display: inline-block; margin: 2px 10px 0 0; padding: 4px 10px; border: 1px solid rgba(47,175,167,.6); border-radius: 999px; text-decoration: none; }
.hero:not(.live) { background-size: contain; background-repeat: no-repeat; background-color: #1E192D; -webkit-mask-image: none; mask-image: none; border-radius: 0 0 22px 22px; }
.opt .oi img { object-fit: cover; }
/* homework card: everything on one line where it can */
.task .tt p { margin-bottom: 2px; }
.task > div:last-child { min-width: 0; }
.task .link, .task .upload { display: inline-flex; vertical-align: middle; margin: 4px 8px 0 0; }
.task .upload { margin-top: 4px; }
.task .upload label { padding: 5px 10px; }
/* ================================================================ 2026-10-15: picture answers are big square cards */
.opts.pics { display: grid; gap: 10px; }
.opts.pics.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.pics.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.pics .opt, .opts.row.pics .opt { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; text-align: center; aspect-ratio: 1; }
.opts.pics .opt .oi, .opts.row.pics .oi { flex: 1 1 0; width: auto; height: auto; min-height: 0; border-radius: 0; background: #1E192D; padding: 8%; }
.opts.pics .opt .oi:has(img) { padding: 0; }
.opts.pics .opt .oi img { object-fit: cover; }
.opts.pics .opt .ot { flex: 0 0 auto; padding: 8px 6px 9px; font-size: 15px; line-height: 1.2; }
@media (max-height: 760px) {
  .opts.pics .opt .ot { padding: 5px 4px 6px; font-size: 13.5px; }
}
/* sort tokens with photos: little square cards */
.tok:has(img) { flex-direction: column; gap: 4px; padding: 6px; width: 92px; font-size: 13px; text-align: center; }
.tok:has(img) img { width: 78px; height: 78px; margin: 0; border-radius: 9px; }
/* match: bigger pictures */
@media (min-width: 900px) and (orientation: landscape) {
  .opts.pics.cols3 { --ar: 3; }
  .opts.pics.cols2 { --ar: 1; }
  .card:has(> .gs) .opts.pics .opt .ot { font-size: 14px; padding: 6px; }
  .card:has(> .gs) .opts.pics { gap: 8px; }
}
@media (hover: hover) { .link:hover, button.link:hover { color: var(--gold-bright); } }
.more-t, .more, .hw-dl { color: var(--gold-light); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes breathe { 50% { opacity: .5; } }
@keyframes glint { 0%, 80%, 100% { filter: brightness(1); } 88% { filter: brightness(1.45); } }
@keyframes drawin { to { stroke-dashoffset: 0; } }
@media (max-width: 700px) {
  .flips.n6, .flips.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flips.n6 .fl, .flips.n5 .fl { aspect-ratio: 1; }
  .fl .front .ft { font-size: 19px; }
  .fl .back { font-size: 13.5px; padding: 12px; }
  .fl .back.photo .bt { padding: 36px 10px 10px; }
}
/* many chips (five or more): two tidy rows, every one in view */
.chips.rows2 { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.chips.rows2 .chip { padding-left: 6px; padding-right: 6px; text-align: center; line-height: 1.15; }   /* names wrap, never cut off (20 Oct 2026) */
.card .txt.after { margin-top: 12px; }
/* six or five cards: smaller words and pictures so every question fits its card */
.flips.n6 .fl .front, .flips.n5 .fl .front { gap: 6px; padding: 12px 10px 30px; }
.flips.n6 .fl .front .ft, .flips.n5 .fl .front .ft { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.15; }
.flips.n6 .fl .front .fa, .flips.n5 .fl .front .fa { width: 32%; max-width: 74px; }
.flips.n6 .fl .front .fturn, .flips.n5 .fl .front .fturn { bottom: 9px; font-size: 10px; }
.flips.n6 .fl .back, .flips.n5 .fl .back { font-size: clamp(13px, 1.3vw, 15.5px); padding: 12px; }
@media (max-width: 700px) {
  .flips.n6 .fl .front .ft, .flips.n5 .fl .front .ft { font-size: 15.5px; }
  .flips.n6 .fl .front .fa { width: 28%; }
}
/* match: big pictures, so you can see the stone and the shape */
.match { gap: 12px; }
.match .col { gap: 10px; }
.mt { min-height: 104px; padding: 8px 14px 8px 8px; font-size: 17px; gap: 14px; }
.mt img, .mt svg { width: 92px; height: 92px; border-radius: 12px; }
@media (max-width: 700px) {
  .mt { min-height: 70px; font-size: 14.5px; gap: 8px; }
  .mt img, .mt svg { width: 56px; height: 56px; }
}
/* short laptop screens: the match tiles a little tighter so the card fits without scrolling */
@media (min-width: 701px) and (max-height: 800px) { .mt { min-height: 84px; font-size: 16px; } .mt img, .mt svg { width: 74px; height: 74px; } .match .col { gap: 8px; } }
/* Swarovski verdict: the three photos stay, in a short row above the words */
.photo3.small { height: auto; aspect-ratio: 3 / 1.1; padding: 0 0 8px; }
.frame:has(.photo3.small) { display: flex; flex-direction: column; justify-content: center; }

/* compass constructions drawn step by step, as on the slides (lib/deck.css, which the game does not load; 16 Oct 2026) */
svg.compass { width: 100%; height: 100%; }
svg.compass .draw { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.4s ease, opacity 0s; }
svg.compass .draw.on { stroke-dashoffset: 0; opacity: 1; transition-delay: var(--d, 0s); }
svg.compass .fade.on, svg.compass .pop.on { transition-delay: var(--d, 0s); }
svg.compass .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
svg.compass .pop.on { transform: scale(1); }
svg.compass .fade { opacity: 0; transition: opacity 1.2s ease; }
svg.compass .fade.on { opacity: 1; }
svg.compass .gone { opacity: 0 !important; transition: opacity 1.4s ease !important; }
/* My work: the question, then what you wrote */
.note .note-q { margin: 2px 0 8px; font: 14px/1.45 var(--sans); color: var(--ink-2); }
.note .note-a { margin: 0; padding-left: 12px; border-left: 2px solid var(--gold); white-space: pre-wrap; }
/* the picture on a flip card shrinks with the card, so a short window never cuts it (or the words) */
.fl .front { container-type: size; }
.fl .front .fa, .fl .front .fq { max-width: min(110px, 52cqh); flex-shrink: 0; }
.flips.n6 .fl .front .fa, .flips.n5 .fl .front .fa { max-width: min(74px, 52cqh); }
/* three cards with long answers (World 2, Mission 5): one column on narrow phones, so every answer fits (2026-10-23) */
@media (max-width: 400px) { .flips.n3 { grid-template-columns: 1fr; } .card > .flips.n3 .fl, .flips.n3 .fl { aspect-ratio: auto; height: 172px; min-height: 0; } }
/* match: the two columns line up row by row, every picture the same square (Heike, 23 Oct 2026: "alignment can be better") */
.match { align-items: stretch; }
.match .col { display: grid; grid-auto-rows: 1fr; }
.match .mt { min-height: 0; }
.match .mt img { width: 76px; height: 76px; flex: 0 0 76px; aspect-ratio: 1; object-fit: cover; }
.match .mt.R { padding-left: 18px; }
@media (max-width: 599px) { .match .mt img { width: 48px; height: 48px; flex-basis: 48px; } }

/* a step that is a photo: fills the stage, credit in the corner */
.art-stage .frame.photo { inset: 0; }
.art-stage .frame.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.art-stage .frame.photo .pcredit { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: rgba(241,236,226,.75); background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 6px; }
/* order with pictures (the book's steps, 29 Oct 2026): the pictures to tap in a grid of equal tiles (two on phones,
   up to four side by side on wider screens), and above them the steps placed so far as a numbered list */
html body .pool.pics { display: grid; grid-template-columns: repeat(min(var(--n, 4), 4), minmax(0, 1fr)); gap: 10px; }
html body .pool.pics .tok { width: 100%; max-width: none; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; margin: 0; font-size: 15px; text-align: center; }
html body .pool.pics .tok img { width: 100%; height: 96px; margin: 0; border-radius: 8px; object-fit: contain; aspect-ratio: auto; }
.seq.pics { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.seq.pics:empty { display: none; }
.seq.pics li { counter-increment: s; display: grid; grid-template-columns: 28px 56px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 12px; border: 1px solid rgba(14,140,133,.45); border-radius: 12px; background: rgba(47,175,167,.1); font-size: 15px; }
.seq.pics li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--bg); font: 600 14px var(--sans); }
.seq.pics li img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
@media (max-width: 599px) { html body .pool.pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* words-only answers: one under the other, never 2 + 1 (Heike, 30 Oct 2026) */
html body .opts.row:not(.pics) { flex-direction: column; flex-wrap: nowrap; }
html body .opts.row:not(.pics) .opt { flex: none; text-align: left; padding: 12px 16px; }

/* matching: a made pair shows its colour and number on both sides, until Check (8 Nov 2026) */
.mt { position: relative; }
.mt.paired { border-color: var(--pc); box-shadow: inset 0 0 0 1.5px var(--pc); }
.mt.paired::after { content: attr(data-n); position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pc); color: #15111F; font: 700 12px/1 Outfit, sans-serif; }
.mt.right::after, .mt.wrong::after { display: none; }
.mt.wrong { opacity: .85; }

/* a drawing above a question (8 Nov 2026: the golden star) */
.qart { width: min(100%, 260px); margin: 0 auto 6px; }
.qart svg { width: 100%; height: auto; display: block; }

/* the Nature hunt: what you notice, under each photo task (8 Nov 2026) */
.hw-note { width: 100%; margin-top: 8px; min-height: 0; padding: 9px 11px; font: 15px/1.4 Outfit, system-ui, sans-serif; }

/* the photo's credit on a task picture (16 Nov 2026: free photos with CC BY need their name visible) */
.timg { position: relative; }
.timg .tcredit { position: absolute; left: 4px; right: 4px; bottom: 2px; font-size: 9px; line-height: 1.2; color: rgba(241,236,226,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8); text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* SVG films (anim-kit): on phones the stage is a square that leaves room for a three-line caption under it (re-review 18 Nov 2026: captions were cut off) */
@media (max-width: 760px) {
  html body .card > .visual:has(> .stagebox.film) { flex: 0 1 auto; min-height: 0; }
  html body .card > .visual > .stagebox.film { flex: 0 0 auto; width: min(100%, 46vh); aspect-ratio: 1 / 1; height: auto; min-height: 0; margin: 0 auto; }
  html body .card:has(.stagebox.film) > .say { font-size: 17px; line-height: 1.35; }
}

/* labs on phones: room for four lines of explanation is kept under the lab from the start, so the picture is measured
   (and then locked, cards.js lockH) a little smaller and the message never hides under the bottom bar (re-review 18 Nov 2026) */
@media (max-width: 760px) {
  html body .card:has(> .visual > .stagebox.ex) > .say { min-height: 104px; align-items: flex-start; }
}

/* World 4's one-line picture captions (class pcap) hide in the same small places as .cap */
@media (max-width: 760px) { html body :is(.opt .oi, .mt, .fl .front, .honey .hx) svg text.pcap { display: none; } }
/* a lab that waits for its first tap (18 Nov 2026) */
.stagebox .lab-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(21,17,31,.85); border: 1px solid rgba(47,175,167,.6); color: #F1ECE2; font: 500 14px Outfit, system-ui, sans-serif; white-space: nowrap; pointer-events: none; animation: lab-hint-in .4s ease both; }
@keyframes lab-hint-in { from { opacity: 0; transform: translate(-50%, 6px); } }
.stagebox:has(.lab-hint) { position: relative; }

/* the step-by-step sheet under a compass card (report 360, 19 Nov 2026) */
.card .draw-sheet { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin: 4px auto 0; font-size: 15px; }

/* order cards: a placed step can be tapped to take it back (21 Nov 2026, report 380) */
.tok[hidden] { display: none !important; }
#seq li { cursor: pointer; }
/* flip cards: a photo only on the FRONT, the title on a dark band at its foot; the back is always plain (Heike 26 Nov 2026, reports 412 + 424) */
html body .fl .front.photo { justify-content: flex-end; padding: 0; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #15111F !important; }
html body .fl .front.photo .ft { display: block; width: 100%; padding: 34px 10px 34px; color: #F1ECE2 !important; background: linear-gradient(180deg, transparent, rgba(21,17,31,.9) 42%); }
html body .fl .front.photo .fturn { color: #F1ECE2; opacity: .85; }
html body .fl .back small { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.3; opacity: .8; }

/* a picture above the steps of an order card (26 Nov 2026, report 443) */
.ord-art { max-width: 260px; margin: 4px auto 12px; }
.ord-art svg { display: block; width: 100%; height: auto; }

/* ---- engine (other courses): own video/audio files, link hover (Blueprint, 8 + 14 Nov 2026) */
.link:hover, button.link:hover { color: var(--gold-bright); }
.vid-own video { display: block; width: 100%; max-height: 62vh; border-radius: 14px; background: #000; }
.vid.vid-own { aspect-ratio: auto; display: flex; justify-content: center; }
.vid.vid-own video { width: auto; max-width: 100%; max-height: 70vh; height: auto; }
.aud-own { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid rgba(47,175,167,.25); background: rgba(47,175,167,.05); }
.aud-own .art, .aud-own img { width: min(220px, 50%); height: auto; }
.aud-own audio { width: 100%; }

/* journey/styles/hex.css */
/* Every hexagon in the journey, in one place: the honeycomb of missions on the map (.cell) and the hexagon
   walls you open in the cards (.honey .hx). Spacing between hexagons: HEX_GAP in hexgrid.js.
   Every hexagon has the same rim, drawn INSIDE its outline: --hex-rim (thicker when done: --hex-rim-done). */
:root { --hex-rim: 3px; --hex-rim-done: 4px; --hex-clip: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

/* ---- the map */
.cell { position: absolute; width: var(--w); height: calc(var(--w) * .866); padding: 0; border: 0; background: none; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.cell:active { transform: scale(.94); }
.cell::before, .cell .face, .cell .lab { position: absolute; inset: 0; clip-path: var(--hex-clip); }
.cell::before { content: ''; inset: 0; background: rgba(241,236,226,.14); }
.cell .face { inset: var(--hex-rim); background: #29223D center/cover; }
.cell .fa { position: absolute; inset: 8% 20% 30%; display: grid; place-items: center; opacity: .8; }
.cell .fa svg { width: 100%; height: 100%; }
.cell .face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55) 80%); }   /* photos keep a dark foot so the light names read on the ivory page */
.cell .lab { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6% 18% 0; text-align: center; }
.cell .lab i { font: 600 calc(var(--w) * .12) var(--sans); font-style: normal; width: calc(var(--w) * .22); height: calc(var(--w) * .22); display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(30,25,45,.7); color: #1E192D; margin-bottom: 3px; background: rgba(241,236,226,.35); }
.cell .lab b { font-family: Outfit, system-ui, sans-serif; font-weight: 700; font-size: calc(var(--w) * .118); line-height: 1.02; color: #F1ECE2; text-shadow: 0 1px 6px rgba(0,0,0,.75); }
.cell.locked .lab b { color: rgba(30,25,45,.8); }
.cell.done .lab i { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.cell.done::before, .cell.next::before { background: var(--gold); }
.cell.next { animation: pulse 2.2s ease-in-out infinite; }
.cell.ghost { pointer-events: none; }
.cell.ghost::before { background: rgba(241,236,226,.06); }
.cell.ghost::after { content: ''; position: absolute; inset: var(--hex-rim); clip-path: var(--hex-clip); background: var(--bg); }
.cell .musttag { position: absolute; z-index: 3; top: -2px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--bg); font: 600 9px var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.cell.must::before { background: var(--gold); }
/* done hexagons: lit and coloured; still-to-do ones quieter, so it's clear at a glance */
.cell .face { filter: saturate(.85) brightness(1.05); transition: filter .4s; }
.cell.next .face, .cell:hover .face { filter: none; }
.cell.done .face::after { background: linear-gradient(180deg, rgba(47,175,167,.28), rgba(120,86,20,.82) 75%); }
.cell.done::before { background: var(--gold-metal); }
.cell.done .lab b { color: #fff6dc; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.cell.done .lab i { box-shadow: 0 0 12px rgba(242,179,61,.9); }
.cell.ghost::before { background: rgba(241,236,226,.05); }
/* ================================================================ 2026-10-15: activity colours on the hexagon rims */
.cell[data-t] { --t: rgba(241,236,226,.14); }
.cell[data-t="make"], .types [data-t="make"] { --t: var(--act-construct); }
.cell[data-t="watch"], .types [data-t="watch"] { --t: var(--act-watch); }
.cell[data-t="explore"], .types [data-t="explore"] { --t: var(--act-explore); }
.cell[data-t="play"], .types [data-t="play"] { --t: var(--act-play); }
.cell[data-t="write"], .types [data-t="write"] { --t: var(--act-write); }
.cell[data-t]::before, .cell[data-t].next::before { inset: 0; background: var(--t); opacity: .75; }
.cell[data-t].done::before { background: var(--t); }
.cell[data-t].must::before { background: var(--t); opacity: 1; }
.cell.must .musttag { box-shadow: 0 0 0 2px var(--t); }
.cell .lab i .ic { width: 60%; height: 60%; vertical-align: middle; }
/* ================================================================ 2026-10-15: a pathway: the next hexagon in full colour, the rest faded */
.cell:not(.next):not(.done) .face { filter: grayscale(.85) brightness(.5); }
.cell:not(.next):not(.done)::before { opacity: .28 !important; }
.cell:not(.next):not(.done) .lab { opacity: .6; transition: opacity .3s; }
.cell:not(.next):not(.done):hover .face { filter: saturate(.8) brightness(.8); }
.cell:not(.next):not(.done):hover::before { opacity: .7 !important; }
.cell:not(.next):not(.done):hover .lab { opacity: 1; }
.cell.next { z-index: 2; }
.cell.next::before { opacity: 1 !important; filter: brightness(1.2); animation: nextglow 2.4s ease-in-out infinite; }

/* ---- hexagon walls in the cards */
/* hexagon wall: tiles you open, grown from the centre */
.honey { position: relative; width: 100%; margin: 8px 0 4px; }
.honey .hx { position: absolute; width: var(--w); height: calc(var(--w) * .866); border: 0; padding: 0; background: #1E192D center/cover; clip-path: var(--hex-clip); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: transform .2s cubic-bezier(.34,1.56,.64,1), filter .3s; }
.honey .hx::before { content: ''; position: absolute; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 85%); }
.honey .hx.drawn-tile { background: #1E192D; }
.honey .hx.drawn-tile::before { background: linear-gradient(180deg, transparent 55%, rgba(21,17,31,.8) 90%); }
.honey .hx.drawn-tile .hi { background-color: #1E192D; }
.honey .hx.drawn-tile { background: rgba(47,175,167,.55); }
.honey .hx .ta { position: absolute; inset: 10% 22% 22%; display: grid; place-items: center; }
.honey .hx .ta svg { width: 100%; height: 100%; }
.honey .hx .tl { position: relative; font-size: calc(var(--w) * .1); line-height: 1.1; padding: 0 18% 12%; color: #F1ECE2; text-shadow: 0 1px 5px rgba(0,0,0,.5); text-align: center; font-weight: 500; }
.honey .hx.drawn-tile .tl { color: var(--ink); text-shadow: none; }   /* drawings: names in the page's ink */
.honey .hx.centre { box-shadow: none; }
.honey .hx.centre .tl { color: #2FD0C5; }
.honey .hx:not(.seen) { animation: glint 3.4s ease-in-out infinite; }
.honey .hx:nth-child(2n):not(.seen) { animation-delay: 1.1s; }
.honey .hx:nth-child(3n):not(.seen) { animation-delay: 2.2s; }
.honey .hx.seen::after { content: '✓'; position: absolute; top: 9%; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.honey .hx:active { transform: scale(.93); }
@media (min-width: 900px) and (orientation: landscape) {
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips)) { display: flex; max-width: 760px; }
}
/* ticks drawn, not typed */
.ph.pick::after, .honey .hx.seen::after { content: ''; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315111f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/70% no-repeat; }
/* ================================================================ 2026-10-15: every hexagon tile has a frame, so pale or dark photos still read */
.honey .hx { background: rgba(47,175,167,.55); }
.honey .hx .hi { position: absolute; inset: var(--hex-rim); clip-path: var(--hex-clip); background: #1E192D center/cover; }
.honey .hx::before { inset: var(--hex-rim); clip-path: var(--hex-clip); z-index: 1; }
.honey .hx .ta, .honey .hx .tl { z-index: 2; }
.honey .hx.centre { background: var(--gold); }
.honey .hx.seen::after { z-index: 3; }
.honey .hx .tl { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85); }
/* an opened tile looks done, like a done mission on the map: thick gold frame, warm gold wash */
.honey .hx.seen { background: var(--gold-metal); }
.honey .hx.seen .hi, .honey .hx.seen::before { inset: var(--hex-rim-done); }
.honey .hx.seen::before { background: linear-gradient(180deg, rgba(47,175,167,.28), rgba(120,86,20,.82) 75%); }
.honey .hx.seen .tl { color: #fff6dc; }
.cell.locked .lab i { opacity: .5; }   /* not open yet: the missions go 1 to 19 in order (Heike, 17 Oct 2026) */
/* ================================================================ 2026-10-23: the design swap (Heike). DONE = a bright frame in its
   activity colour, the picture clear inside; NEXT = the solid gold fill, pulsing; not yet = dark and faded. */
.cell.done .face { inset: var(--hex-rim-done); filter: saturate(.9) brightness(.9); }
.cell.done .face::after { background: linear-gradient(180deg, color-mix(in srgb, var(--t, var(--gold)) 22%, transparent), color-mix(in srgb, var(--t, var(--gold)) 28%, rgba(21,17,31,.78)) 80%); }   /* a slight wash of its colour (Heike) */
.cell[data-t].done::before { background: var(--t); opacity: 1; filter: brightness(1.05); }
.cell.done .lab b { color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.85); }
.cell.done .lab i { box-shadow: none; }
.cell.next .face { inset: var(--hex-rim-done); filter: none; }
.cell.next .face::after { background: linear-gradient(180deg, rgba(232,190,90,.62), rgba(150,108,25,.94) 72%); }
.cell[data-t].next::before { background: var(--gold-metal, var(--gold)); opacity: 1 !important; }
.cell.next .lab b { color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.cell.next .lab i { background: #fff; color: #15111F; border-color: #fff; box-shadow: 0 0 14px rgba(255,255,255,.6); }

/* locked missions clearly darker, with a lock (5 Nov 2026, UX review) */
.cell.locked .face { filter: grayscale(.9) brightness(.32); }
.cell.locked .lab i svg { width: 14px; height: 14px; }
/* report 15 (Sascha, 8 Nov 2026): names on not-yet-open missions were black on black → pale and readable;
   on a computer a hexagon grows a little under the mouse so its name is easy to read */
.cell.locked .lab b { color: rgba(241,236,226,.68); text-shadow: 0 1px 5px rgba(0,0,0,.9); }
@media (hover: hover) and (pointer: fine) { .cell:hover { transform: scale(1.1); z-index: 5; } .cell:active { transform: scale(.97); } }

/* a long one-word name (Harmonograph) fits its hexagon (Heike 15 Nov 2026, report 146) */
.cell .lab b.long { letter-spacing: -.01em; }

/* hexagon names in Outfit bold: the serif was hard to read on the map (Heike 18 Nov 2026) */
.cell .lab b.long { font-size: calc(var(--w) * .092); }
/* names readable on phones (18 Nov 2026, second look: long names shrank to ~7 px): never under 11 px; a long word breaks over two lines */
.cell .lab { padding-left: 10%; padding-right: 10%; }
.cell .lab b, .cell .lab b.long { font-size: max(11px, calc(var(--w) * .118)); line-height: 1.05; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
.cell.locked .lab b { color: rgba(241,236,226,.82); }
/* the mission number always shows; done = a small check in the corner; a thin ring = cards done (18 Nov 2026, Heike) */
.cell .ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.cell .ring path { fill: none; stroke-width: 3.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cell .ring .rt { stroke: rgba(241,236,226,.16); }
.cell .ring .rp { stroke: #2FAFA7; }
.cell .ring .rp.full { stroke: #f2b33d; }
.cell .ck { position: absolute; z-index: 3; top: 4%; right: 17%; width: max(16px, calc(var(--w) * .2)); height: max(16px, calc(var(--w) * .2)); border-radius: 50%; display: grid; place-items: center; background: var(--gold, #c9a94a); color: #15111F; box-shadow: 0 0 0 2px rgba(21,17,31,.85); font-style: normal; }
.cell .ck svg, .cell .ck .ic { width: 64%; height: 64%; }
.cell.done .lab i { background: rgba(21,17,31,.55); color: #fff6dc; border-color: rgba(242,179,61,.7); box-shadow: none; }
.cell.done.next .lab i { background: #fff; color: #15111F; }
      /* every hexagon: map cells and hexagon walls */
/* journey/styles/board.css */
/* Drawing and exercises: compass board and tools, tiling test, class wall, the three classes and the big class view. */

/* the drawing board: dark paper, faint grid */
.stagebox.paper { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.035), transparent 70%), #1E192D; min-height: 0; aspect-ratio: 1; flex: 0 0 auto; touch-action: manipulation; }
.board svg { display: block; }
.board .drawn { stroke-dasharray: 700; stroke-dashoffset: 700; animation: drawin .7s ease-out forwards; }
.board .pulse-ring { animation: ringpulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.board.nope { animation: shake .35s; }
.board.revealed > svg { opacity: .35; transition: opacity 1.2s; }
.reveal3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s; }
.reveal3d.on { opacity: 1; }
.reveal3d canvas { width: 100% !important; height: 100% !important; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.tool { padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); font-size: 14.5px; color: var(--ink-2); }
.tool.on { border-color: var(--gold); color: var(--bg); background: var(--gold); font-weight: 600; }
.tool.ghost { margin-left: 0; }
.tools .tool[data-a=hint] { margin-left: auto; }
.tools .count { margin: 0 auto 0 0; font-size: 15px; color: var(--gold); }
.ctl { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ctl label { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.ctl label i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ctl input[type=range] { width: 100%; accent-color: var(--gold); }
.ctl .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ctl .row small { color: var(--ink-3); font-size: 12px; margin-right: 4px; }
.card > .stagebox.paper, .card > .art-stage { aspect-ratio: auto; flex: 1 1 0; min-height: 200px; }
.board svg { width: 100%; height: 100%; }
@media (max-height: 760px) {
  .ctl .row { flex-wrap: nowrap; overflow-x: auto; }
}
.visual > .stepnav, .visual > .tools { flex: 0 0 auto; }
.stagebox.ex > svg { width: 100%; height: 100%; display: block; touch-action: none; }
.tool.sw { width: 46px; height: 40px; padding: 0; display: grid; place-items: center; }
.tool.sw i { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); }
.tool.sw.on { background: rgba(47,175,167,.18); color: inherit; outline: 2px solid var(--gold); }
/* the slides' tiling test */
.tile-svg { position: absolute; inset: 0 0 64px; width: 100%; height: calc(100% - 64px); }
.tile-svg .tile { opacity: 0; transform: scale(.2); transform-origin: 0 0; transition: opacity .5s, transform .6s cubic-bezier(.3,1.4,.5,1); }
.tile-svg .tile.on { opacity: 1; transform: none; }
.tile-svg .tile-bg { opacity: 0; transition: opacity 1.2s; }
.tile-svg .tile-bg.on { opacity: 1; }
.tile-readout { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; }
.tl-eq strong { color: var(--gold); }
.tl-verdict { font-family: var(--serif); font-style: italic; font-size: 20px; }
.tl-verdict.ok { color: #2fafa7; }
.tl-verdict.no { color: #ff8a8d; }
/* the slides' class wall, fitted to a card */
.cw-box { position: absolute; inset: 0; overflow-y: auto; padding: 6px; }
.cw-row { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; }
.cw-sys { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); align-self: center; overflow: hidden; }
.cw-cell { border: 1px solid rgba(241,236,226,.08); border-radius: 8px; padding: 1px 1px 3px; text-align: center; cursor: pointer; transition: border-color .3s, background .3s; }
.cw-cell .cw-v { height: clamp(26px, 5vh, 60px); }
.cw-cell b { display: block; font-family: Outfit, system-ui, sans-serif; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1; color: var(--ink); }
.cw-cell small { display: none; }
.cw-cell.mine { box-shadow: 0 0 0 2px var(--gold); background: rgba(47,175,167,.15); }
.cw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
@media (min-width: 700px) {
  .cw-cell small { display: block; font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cw-cell b { font-size: 17px; }
  .cw-sys { font-size: 11px; }
  .cw-row { grid-template-columns: 96px repeat(7, minmax(0, 1fr)); }
}
/* ================================================================ 2026-10-15: 32 classes, just our three stones */
.c3-box { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 10px; }
.c3-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.c3 { display: flex; flex-direction: column; align-items: center; padding: 0 0 12px; border-radius: 18px; border: 1px solid rgba(241,236,226,.14); background: var(--panel); color: var(--ink); transition: border-color .3s, background .3s; }
.c3 .c3-v { width: 100%; }
.c3 b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(26px, 4vh, 44px); line-height: 1; }
.c3 span { font-size: 15px; margin-top: 4px; }
.c3 small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.c3.mine { border-color: var(--gold); background: rgba(47,175,167,.1); }
.c3-more { text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-3); margin: 0; }
/* the slides' big class view, inside the journey */
.cls-big { position: fixed; inset: 0; z-index: 80; background: rgba(30,25,45,.82); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; opacity: 0; transition: opacity .3s; }
.cls-big.open { opacity: 1; }
.cls-big-card { width: min(1180px, 100%); height: min(720px, 100%); display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: 28px; padding: 26px; border-radius: 24px; border: 1px solid var(--gold); background: #1E192D; }
.cls-big .viewport { position: relative; min-height: 0; border-radius: 18px; overflow: hidden; }
.cls-big .viewport canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.cls-big .viewport .hint { position: absolute; right: 12px; bottom: 10px; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); pointer-events: none; text-transform: uppercase; }
.cls-big-info { display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow-y: auto; }
.cls-big-sys { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cls-big-sym { font-family: var(--serif); font-style: italic; font-size: 76px; line-height: 1; margin: 4px 0 8px; }
.cls-big-info p { font-size: 16px; color: var(--ink-2); margin: 4px 0; }
.cls-big-info b { color: var(--ink); font-weight: 500; }
.cls-props { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 4px; }
.cls-props li { font-size: 16px; color: var(--ink-3); display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.cls-props li.sel { border-color: rgba(47,175,167,.55); background: rgba(47,175,167,.08); }
.cls-props li i { width: 14px; height: 14px; border-radius: 50%; background: rgba(241,236,226,.1); }
.cls-props li em { font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.cls-props li.on { color: var(--ink); }
.cls-props li.on i { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.cls-props li.on em { color: var(--gold); }
.cls-demo-cap { min-height: 52px; font-family: var(--serif); font-style: italic; font-size: 20px !important; line-height: 1.3; color: #ff9a9d !important; margin: 4px 0 10px !important; }
.cls-demo-cap.yes { color: #2fafa7 !important; }
.cls-big-foot { display: flex; align-items: center; gap: 16px; }
.cls-big-x { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); background: transparent; font-size: 15px; }
.cls-count { font-size: 14px; color: var(--ink-3); }
.cls-nav { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(47,175,167,.5); background: rgba(21,17,31,.7); color: var(--gold); font: 300 38px/1 var(--serif); padding-bottom: 6px; }
@media (max-width: 760px), (orientation: portrait) {
  .cls-big { padding: 10px; flex-wrap: wrap; align-content: center; }
  .cls-big-card { order: -1; flex: 1 0 100%; height: auto; max-height: calc(100dvh - 90px); grid-template-columns: 1fr; grid-template-rows: minmax(200px, 38dvh) auto; gap: 8px; padding: 14px; }
  .cls-big-sym { font-size: 48px; }
  .cls-big-sys { font-size: 11px; }
  .cls-props { margin: 8px 0 4px; }
  .cls-props li { padding: 6px 10px; font-size: 14.5px; }
  .cls-demo-cap { min-height: 44px; font-size: 17px !important; margin: 2px 0 8px !important; }
  .cls-nav { width: 46px; height: 46px; font-size: 32px; }
}
/* the finished template colours in */
.board .fillin { opacity: 0; animation: fillin .5s ease-out forwards; }
.pill .ic, .tool .ic, .link .ic, .hw-dl .ic, .more .ic, .go2 .ic { margin-right: 2px; }
@keyframes ringpulse { 50% { transform: scale(1.35); opacity: .5; } }
@keyframes fillin { to { opacity: 1; } }
.cls-big-card { position: relative; }
.cls-big-xtop { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.cls-big-xtop .ic { width: 20px; height: 20px; }
/* the book's blue marks: where the next edges end */
.board .mark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: markin .45s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes markin { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
/* guided boards: the tool in use is shown, not chosen */
.tools.auto .tool[data-t] { pointer-events: none; }
.tools.auto .tool[data-t]:not(.on) { opacity: .4; }
.c3-all { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(47,175,167,.5); background: rgba(47,175,167,.08); color: var(--gold-light); font-size: 14px; }
.c3-all:hover { background: rgba(47,175,167,.16); }
.c3 b, .cls-big-sym { padding-top: .12em; }
.c3-all .ic { width: 18px; height: 18px; flex: none; } .c3-all { flex: none; }
/* the three stones: the solids shrink on shorter screens so names, "29 more" and the bonus always fit */
.c3-box { justify-content: safe center; overflow-y: auto; }
.c3 .c3-v { aspect-ratio: auto; height: clamp(80px, calc(100dvh - 560px), 200px); }

/* labs (labs.js): sliders in the tools bar */
.lab-slider { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); font-size: 14.5px; color: var(--ink-2); }
.lab-slider input { flex: 1; accent-color: var(--gold); min-width: 0; }
.lab-slider b { min-width: 52px; text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
/* a finished drawing (16 Oct 2026): a green "Done" flag, the drawing tools step back, only zoom stays */
.stagebox.board.finished { box-shadow: inset 0 0 0 2px rgba(47,175,167,.55); }
.done-flag { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: var(--right); color: #15111F; font: 600 14px var(--sans); pointer-events: none; animation: doneflag .5s cubic-bezier(.2,1.4,.4,1); }
.done-flag .ic { width: 16px; height: 16px; }
@keyframes doneflag { from { opacity: 0; transform: scale(.6); } }
.tools.finished .tool[data-t], .tools.finished .tool[data-a=hint], .tools.finished .tool[data-a=undo] { display: none; }
.tools.finished .zoombar { margin-left: auto; }
/* switches under a 3D picture: each shape on or off (worlds.js saltControls) */
.ctl .toggles .tog { display: inline-flex; align-items: center; gap: 6px; }
.ctl .toggles .tog i { width: 10px; height: 10px; border-radius: 50%; margin: 0; opacity: .45; }
.ctl .toggles .tog.on i { opacity: 1; }
/* Week 1: the class card without the centre / squeeze / warm / light demos (17 Oct 2026) */
.cls-big.simple .cls-props, .cls-big.simple .cls-demo-cap { display: none; }
.c3-all small { font-size: 12px; opacity: .75; margin-left: 4px; white-space: nowrap; }   /* "5 of 32 seen · +3 each" */

/* 'Bigger' on every drawing and lab card: the card becomes one full screen of paper (Heike 26 Nov 2026: for all drawing cards, not page by page) */
/* the button sits on the paper's corner, so it costs the paper no room; dark pill + cream text on the cream paper and on dark */
.visual:has(> .vis-max) { position: relative; }
.visual > .vis-max { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(47,175,167,.7); background: rgba(21,17,31,.82); color: #F1ECE2; font: 600 14px var(--sans, Outfit, sans-serif); cursor: pointer; }
/* phones: slimmer tool buttons, so the paper gets the room (Heike 26 Nov 2026: a bigger drawing space for every drawing card) */
@media (max-width: 700px) {
  html body .card > .visual > .tools { gap: 6px; margin-top: 8px; }
  /* longer words than 'Bigger' (Größer, Plus grand, Más grande) cover the drawing's corner on a phone: the arrow alone (1 Dec 2026) */
  html:not([lang=en]) body .card:not(.drawmax) > .visual > .vis-max { padding: 5px 10px; }
  html:not([lang=en]) body .card:not(.drawmax) > .visual > .vis-max b { display: none; }
  html body .card > .visual > .tools .tool:not(.sw) { padding: 7px 11px; font-size: 14px; }
}
.visual > .vis-max span { color: #2FD0C5; }
html body .card.drawmax { position: fixed !important; inset: 0 !important; z-index: 60; max-width: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important; background: var(--bg, #15111F); display: flex !important; flex-direction: column !important; overflow: hidden !important; animation: none; }
html body .card.drawmax > :not(.visual, .say) { display: none !important; }
html body .card.drawmax > .visual { flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; max-height: none !important; width: 100% !important; }
html body .card.drawmax > .visual > .stagebox { flex: 1 1 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; width: 100% !important; }
html body .card.drawmax > .say { flex: 0 0 auto !important; min-height: 0 !important; margin: 6px 0 0 !important; }
html body .card.drawmax .vis-max { background: #2FAFA7; color: #15111F; border-color: #2FAFA7; }

/* journey/styles/player.css */
/* The mission player: top dots, the card frame, one-screen layout, desktop two columns, the bottom bar. */

/* ---------- the mission player */
.player { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.player.open { transform: none; }
.p-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.p-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(241,236,226,.15); background: none; font-size: 20px; color: var(--ink-2); }
.dots { flex: 1; display: flex; gap: 6px; }
.dots i { flex: 1; border-radius: 3px; background: rgba(241,236,226,.1); transition: background .4s; }
.dots i.on { background: var(--gold); }
.p-xp { font-size: 14px; color: var(--gold); min-width: 54px; text-align: right; }
.card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 4px 20px 0; max-width: 620px; width: 100%; margin: 0 auto; animation: cardin .45s cubic-bezier(.2,.8,.2,1); }
.card h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.08; }
.card .txt { color: var(--ink-2); margin: 0 0 12px; }
.card .txt b { color: var(--ink); font-weight: 500; }
.p-bottom { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); max-width: 620px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) {
  .card h2 { font-size: 38px; }
}
/* ================================================================ v2: richer cards */
.card { position: relative; padding-bottom: 12px; scrollbar-width: none; }
.card .txt { font-size: 16.5px; }
.say { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin-top: 10px; font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); min-height: 50px; }
.say > b { font: 600 13px var(--sans); color: var(--gold); white-space: nowrap; }   /* the counter on the right ("3 of 3") */
/* a bold word inside the message: same size as the sentence, only stronger and in the house colour (Heike 15 Nov 2026: "why are the fonts different sizes?") */
.say #say-t b { font: inherit; font-weight: 600; color: var(--gold); white-space: normal; }
.dots i.now { background: rgba(47,175,167,.5); }
/* free navigation: back, the main action, forward/skip */
.pbar { display: flex; gap: 10px; align-items: stretch; }
.pbar .go { flex: 1; }
.nav { flex: 0 0 54px; border-radius: 16px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); color: var(--ink-2); font-size: 26px; line-height: 1; }
.nav:disabled { opacity: .25; }
.skipnote { margin: 0 0 8px; min-height: 16px; font-size: 12px; text-align: center; }
/* a task just finished: Next glows until you press it */
.pbar .go.ready { animation: goready 1.6s ease-in-out infinite; }
@keyframes goready { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,201,76,.55); } 50% { box-shadow: 0 0 0 9px rgba(242,201,76,0); } }
.dots i { cursor: pointer; height: 7px; }
.dots i.skipped { background: rgba(229,72,77,.45); }
/* ================================================================ one screen: everything visible at once */
.player { height: 100dvh; }
.card { overflow-y: auto; }
.card > * { flex-shrink: 0; }
.card h2 { font-size: clamp(25px, 3.6vh, 34px); margin: 4px 0 6px; }
.card .txt { font-size: clamp(14.5px, 2vh, 17px); line-height: 1.4; margin-bottom: 8px; }
.card .txt p { margin: 0 0 6px; }
.card .kicker { margin-bottom: 2px; }
/* pictures take the room that is left, shrinking before anything else does, never disappearing */
.card > .stagebox, .card > .hero, .card > .qimg, .card > .honey, .card > .gs { flex: 1 1 0; min-height: 150px; }
.card > .hero { height: auto; min-height: 120px; }
.card > .qimg { max-height: none; height: auto; min-height: 90px; }
.card > .honey { margin: 4px 0 0; }
.card > .vid { flex: 0 1 auto; }
.p-bottom { padding-top: 8px; }
.skipnote { margin-bottom: 6px; }
/* tablet and desktop, landscape: the picture on the left, words and answers on the right */
@media (min-width: 900px) and (orientation: landscape) {
  .card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: stretch; padding-top: 10px; }
  .card > * { grid-column: 2; }
  .card > .stagebox, .card > .hero, .card > .qimg, .card > .honey, .card > .gs, .card > .vid, .card > .photos, .card > .flips, .card > .bookpage {
    grid-column: 1; grid-row: 1 / -1; min-height: 0; height: auto; margin: 0; }
  .card > .hero { -webkit-mask-image: none; mask-image: none; border-radius: 22px; }
  .card > .qimg { height: 100%; }
  .card > .vid { align-self: center; }
  .card > .photos { align-content: center; }
  .card > .flips { align-content: center; justify-content: center; grid-auto-rows: auto; }
  .card > .flips .fl { max-height: calc((min(700px, 100dvh - 210px) - 24px) / 2); justify-self: center; width: 100%; }   /* two rows always fit the card */
  .card > .flips.n6 .fl, .card > .flips.n5 .fl { max-height: calc((min(700px, 100dvh - 210px) - 24px) / 2); }
  .card h2 { font-size: 38px; }
  .card .txt { font-size: 17px; }
}
/* tablet portrait: one column, a little wider */
@media (min-width: 700px) and (orientation: portrait) {
  .card, .p-bottom { max-width: 760px; }
}
@media (max-height: 760px) {
  .card > .gs { min-height: 120px; }
}
/* the picture and its own controls stay together: arrows and tools always under the picture */
.card > .visual { display: flex; flex-direction: column; flex: 1 1 0; min-height: 200px; }
.visual > .stagebox { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
@media (min-width: 900px) and (orientation: landscape) {
  .card > .visual { grid-column: 1; grid-row: 1 / -1; min-height: 0; }
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual)) { display: flex; max-width: 760px; }
}
.card > .qimg { object-fit: contain; background: #1E192D; border-radius: 16px; }
/* desktop: picture answers take the big left side when the card has no other picture */
@media (min-width: 900px) and (orientation: landscape) {
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual)):has(> .opts.pics) { display: grid; max-width: 1240px; }
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual)) > .opts.pics { grid-column: 1; grid-row: 1 / -1; align-self: center; justify-self: center; width: min(100%, calc((100dvh - 230px) * var(--ar, 1))); margin: 0; gap: 14px; }
  .card > .opts.pics .opt .ot { font-size: 18px; padding: 12px 8px; }
}
.skipnote { color: var(--ink-2); }
@keyframes cardin { from { opacity: 0; transform: translateX(24px); } }
/* the close button sits top right */
.p-top .p-x { order: 3; margin-left: 4px; }

/* desktop, tidy: the card and its buttons are one block, centred on the screen.
   The words column is centred top to bottom beside the picture; the buttons sit centred right under the card. */
@media (min-width: 900px) and (orientation: landscape) {
  .player { justify-content: center; }
  .p-top { position: absolute; top: 0; left: 0; right: 0; }
  .card { flex: 0 0 auto; height: min(700px, calc(100dvh - 210px)); max-width: 1180px; column-gap: 48px; padding: 0 28px;
    grid-template-rows: 1fr repeat(14, auto) 1fr; }
  .card::before, .card::after { content: ''; grid-column: 2; }
  .card::before { grid-row: 1; } .card::after { grid-row: -2 / -1; }
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual)) { justify-content: center; }
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual))::before,
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual))::after { display: none; }
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual)):has(> .opts.pics)::before,
  .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .flips, > .visual)):has(> .opts.pics)::after { display: block; }
  .p-bottom { max-width: 1180px; padding: 18px 28px 0; }
  .p-bottom .pbar { max-width: 460px; margin: 0 auto; }
  .p-bottom .skipnote { text-align: center; }
}
/* smallest phones (sweep 9 Nov 2026): dots + Love it/Problem?/More + points + × were wider than 320px and pushed the × off screen */
.p-x { flex: 0 0 auto; } .dots { min-width: 0; }
@media (max-width: 360px) { .p-top { gap: 6px; padding-left: 10px; padding-right: 10px; } .p-xp { min-width: 0; } }
   /* layout last: it places the cards' pieces on the screen */
/* journey/styles/overlays.css */
/* Things that open on top: the modal, reward screen, toast, sparkles, hidden crystals. */

.gem { width: 18px; height: 18px; flex: 0 0 auto; }
/* reward */
.reward { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(30,25,45,.86); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.reward.open { opacity: 1; pointer-events: auto; }
.rw { width: min(420px, 90vw); text-align: center; }
.rw .xp { font: 600 54px var(--sans); color: var(--gold); }
.rw h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 4px 0; }
.rw p { color: var(--ink-2); margin: 0 0 14px; }
.rw .solid { width: 220px; height: 220px; margin: 0 auto; }
.badge { display: inline-block; margin: 6px 0 16px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.float { position: fixed; z-index: 70; font: 700 22px var(--sans); color: var(--gold); pointer-events: none; animation: floatup 1.1s ease-out forwards; }
.spark { position: fixed; z-index: 70; width: 10px; height: 10px; pointer-events: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.m-art { padding: 18px 18px 0; display: grid; place-items: center; }
.m-art svg { width: min(260px, 70%); height: auto; max-height: 30dvh; }
.m-art img { width: 100%; border-radius: 12px; }
/* ================================================================ modal: grows out of the tap like a burst */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(30,25,45,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.m-card { position: relative; width: min(520px, 100%); max-height: 88dvh; border-radius: 24px; background: #1E192D; border: 1px solid rgba(47,175,167,.35); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; display: flex; flex-direction: column;
  clip-path: circle(0% at 50% 50%); transform: scale(.88); transition: clip-path .45s cubic-bezier(.7,0,.84,0), transform .45s cubic-bezier(.7,0,.84,0); }
.modal.open .m-card { clip-path: circle(150% at 50% 50%); transform: none; transition: clip-path .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.34,1.56,.64,1); }
.m-body { overflow-y: auto; }
.m-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(47,175,167,.6); background: #15111F; color: var(--gold); font-size: 20px; }
.m-img { height: 34dvh; background: center/cover; }
.m-3d { height: 30dvh; background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); }
.m-book { background: #fbf8f1; max-height: 64dvh; overflow: auto; }
.m-book img { width: 100%; display: block; }
.m-text { padding: 18px 20px 22px; }
.m-text h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.08; margin: 0 0 10px; }
.m-text .txt { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.m-text .txt p { margin: 0 0 10px; }
.m-text .txt b { color: var(--ink); font-weight: 500; }
.m-text .credit { display: block; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.m-text .go { margin-top: 10px; }
.boom { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.boom .ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px solid var(--bc); animation: boomRing .62s cubic-bezier(.15,.8,.3,1) forwards; }
.boom .ring.in { border-width: 1px; animation: boomRingIn .5s ease-out forwards; }
.boom .sp { position: absolute; width: 5px; height: 5px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--bc); box-shadow: 0 0 10px var(--bc); animation: boomSpark .7s ease-out forwards; }
.toast { position: fixed; left: 50%; z-index: 95; width: min(460px, calc(100% - 32px)); padding: 12px 16px; border-radius: 14px; background: #2A1517; border: 1px solid rgba(229,72,77,.6); color: var(--ink); font-size: 15px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.good { background: #1E192D; border-color: rgba(47,175,167,.6); }
.toast.on { opacity: 1; }
.float.small { font-size: 15px; }
/* hidden crystals */
.hidden-gem { position: absolute; left: var(--gx); top: var(--gy); z-index: 4; width: 34px; height: 34px; padding: 6px; border: 0; background: none; opacity: .9; animation: gemglint 4s ease-in-out infinite; }
.hidden-gem .gem { width: 22px; height: 22px; }
.hidden-gem.found { opacity: 1; animation: none; }
.gemgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gemcard { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(168,119,10,.45); background: rgba(168,119,10,.07); font-size: 13.5px; color: var(--ink); text-align: left; }
.gemcard.empty { opacity: .35; border-style: dashed; }
.m-text .vid { margin-top: 4px; }
.sh-comb .cell .lab .gem { width: calc(var(--w) * .22); height: calc(var(--w) * .22); opacity: .95; }
.stagebox > canvas, .stagebox .v3 canvas, .reveal3d canvas, .m-3d canvas, .slot .v canvas, .gv canvas, .solid canvas, .hero.live canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stagebox, .m-3d, .gv, .hero.live, .solid { position: relative; }
/* photos that are the subject are shown whole (contain) on a dark mat; tiles and hexagons may stay cropped */
.m-img, .layer > .ph2, .igc .ph2, .photo3 div, .gph, .cols .ph2, .tasks.tcols .timg { background-size: contain !important; background-repeat: no-repeat; background-position: center; background-color: #1E192D; }
.m-img { height: 38dvh; }
.p-x .ic, .m-x .ic, .nav .ic, .sb .ic { width: 22px; height: 22px; vertical-align: middle; }
/* the welcome: the whole course as one picture */
.m-art.wide { padding: 18px 12px 0; }
@keyframes floatup { to { transform: translateY(-70px); opacity: 0; } }
@keyframes boomRing { 0% { transform: translate(-50%,-50%) scale(.15); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
@keyframes boomRingIn { 0% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; } 45% { opacity: .8; } 100% { transform: translate(-50%,-50%) scale(.1); opacity: 0; } }
@keyframes boomSpark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
@keyframes gemglint { 0%, 70%, 100% { opacity: .8; transform: scale(1) rotate(0); } 78% { opacity: 1; transform: scale(1.3) rotate(12deg); filter: drop-shadow(0 0 6px rgba(168,119,10,.6)); } 86% { opacity: .85; transform: scale(1); } }

/* the "well done" note: at the top, over the progress dots only — never over the card, its words or its buttons */
.toast { top: calc(64px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -12px); cursor: pointer; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.toast.on { transform: translate(-50%, 0); }
body:has(.player.open) .toast { top: calc(8px + env(safe-area-inset-top)); width: min(520px, calc(100% - 150px)); padding: 9px 14px; font-size: 14px; line-height: 1.35; }
@media (min-width: 900px) { body:has(.player.open) .toast { top: 10px; } }
@media (max-width: 899px) { body:has(.player.open) .toast { left: 12px; right: 118px; width: auto; transform: translateY(-12px); } body:has(.player.open) .toast.on { transform: none; } }
.m-art svg.pyrite-cell { width: min(320px, 86%); max-height: 42dvh; }
.m-art svg.dg-plot { width: min(440px, 96%); max-height: 40dvh; }
.restart-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.restart-choices .go.danger { background: none; border: 1px solid rgba(229,72,77,.6); color: #ff8a8d; }
.restart-choices .go.ghost { background: none; border: 1px solid rgba(241,236,226,.35); color: #F1ECE2; }
/* the message inside its picture: centred, in the lower third */
body:has(.player.open) .toast.in-pic { top: var(--ty); left: var(--tx); right: auto; width: var(--tw); transform: translate(-50%, -50%) scale(.96); }
body:has(.player.open) .toast.in-pic.on { transform: translate(-50%, -50%); }
/* the reward's own × (16 Oct 2026): back into the mission; "Back to the map" stays the main way out */
.rw-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; display: grid; place-items: center; background: rgba(21,17,31,.6); }
/* a finished mission: the step you are on is full gold with a light ring */
.dots i.on.now { background: var(--gold); box-shadow: 0 0 0 1.5px rgba(241,236,226,.55); }
/* the first hidden crystal: a small note under it, once (journey.js placeGem) */
.gem-tip { position: absolute; z-index: 5; left: var(--gx); top: calc(var(--gy) + 40px); width: 230px; max-width: calc(100vw - 48px); padding: 9px 12px; border-radius: 12px;
  border: 1px solid rgba(47,175,167,.6); background: var(--bg-2); color: var(--gold-light); font-size: 13.5px; line-height: 1.35; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: cardin .45s cubic-bezier(.2,.8,.2,1); transition: opacity .4s; pointer-events: none; }
.gem-tip.left { transform: translateX(calc(-100% + 34px)); }
.gem-tip.out { opacity: 0; }
/* our own dialogs (ask.js): the sign-in card, above everything */
.ask-pop, .si-pop.ask-pop { z-index: 300; }   /* above the window it was asked from (#modal 80); cover.css loads later and set 5 */
.si-card.ask { width: min(420px, 100%); text-align: left; }
.si-card.ask h2 { margin-top: 0; }
.ask-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.ask-btns .go { width: auto; min-width: 120px; padding: 12px 22px; }
.ask-btns .ask-no { padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(241,236,226,.2); background: none; color: var(--ink-2); font-size: 15px; }
.ask-btns .go.danger { background: #e5484d; color: #fff; }
/* an icon alone in a button sits in its exact centre: no text baseline pushing it down (Heike, 16 Oct 2026) */
.p-x, .m-x, .sb, .cv-x, .si-x, .cls-big-xtop { display: inline-grid; place-items: center; padding: 0; line-height: 0; }
.p-x .ic, .m-x .ic, .sb .ic, .cv-x .ic, .si-x .ic, .cls-big-xtop .ic { vertical-align: 0; margin: 0; }
/* a chevron's drawing leans to the side it points: nudge it back so it looks centred */
.sb .ic, .hw-go .ic { overflow: visible; }
/* a video on a page of its own: the whole screen, the video as big as fits, a Back button */
.vpage { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #15111F; opacity: 0; transition: opacity .25s; }
.vpage.open { opacity: 1; }
.vpage header { display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid rgba(47,175,167,.2); }
.vpage header b { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.vpage .vp-body { flex: 1; display: grid; place-items: center; padding: 16px; min-height: 0; }
.vpage .vid { width: min(100%, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; padding: 0; position: relative; }
.vpage .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
/* the week's slideshow (admin): as big as the screen allows */
.slpage header .pill:last-child { margin-left: auto; }
.slpage .vp-body { padding: 0; display: block; }
.slpage .vp-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
/* finishing free Nature: the six questions still waiting (9 Nov 2026) */
.m-text .txt ul.nextq { list-style: none; margin: 4px 0 14px; padding: 0; }
.m-text .txt ul.nextq li { padding: 8px 0; border-top: 1px solid rgba(47,175,167,.18); line-height: 1.4; }
.m-text .txt ul.nextq li:first-child { border-top: 0; }
.m-text .txt ul.nextq b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
/* small phones (sweep 9 Nov 2026): the mission card's button was below the fold (iPhone SE and smaller, landscape).
   The button now stays pinned to the bottom of the card while the text scrolls, and the picture gets smaller on short screens. */
.m-text #m-cta { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -18px 18px -4px #1E192D; }
@media (max-height: 700px) { .m-img { height: 26dvh; } .m-3d { height: 24dvh; } .m-text { padding: 14px 18px 16px; } .m-text h3 { font-size: 26px; } }
@media (max-height: 460px) { .m-img, .m-3d { height: 22dvh; } .m-card { max-height: 94dvh; } }
/* a finished world's overview (15 Nov 2026) */
.wo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wo-stat { border: 1px solid rgba(47,175,167,.35); border-radius: 14px; text-align: center; background: rgba(47,175,167,.06); }
.wo-stat b { display: block; font-weight: 600; color: var(--gold); }
.wo-stat span { display: block; color: var(--ink-2, rgba(241,236,226,.8)); }
.wo-k { margin: 10px 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.wo-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-badges span { padding: 5px 10px; border-radius: 999px; background: rgba(242,201,76,.14); border: 1px solid rgba(242,201,76,.45); font-size: 13.5px; }
.wo-made { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wo-made img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wo-board { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
/* finish screen: "Go to <next hexagon>" first, the map as a quiet second button (18 Nov 2026) */
.rw #rw-next { display: block; width: 100%; margin: 0 0 10px; }
.rw #rw-next[hidden] { display: none; }
.rw #rw-next b { font-weight: 700; }
.rw .go.quiet { display: block; width: 100%; background: transparent; color: var(--ink); border: 1px solid rgba(241,236,226,.3); box-shadow: none; }
/* the × never sits on the first line when the pop-up has no picture (18 Nov 2026, second look) */
#m-body > .m-text:first-child > :first-child { padding-right: 46px; }
/* the world-complete numbers with a small icon each (Heike 20 Nov 2026: "really little icons, a bit clearer") */
.wo-stat { display: flex; flex-direction: column; align-items: center; }
.wo-stat svg { fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wo-stat.wo-gem svg { stroke: #F2B33D; }
.wo-stat span { margin-top: 0; }
.wo-note { font-size: 14.5px; line-height: 1.45; color: var(--ink-2, rgba(241,236,226,.8)); }
.wo-stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* three numbers: one row, no empty gap */
#m-body .wo-board { padding: 0 !important; }
/* world complete, balanced (Heike 21 Nov 2026: "just say gems … balanced in the spacing … icons a little bigger") */
.wo-stats { gap: 12px; margin: 14px 0 18px; }
.wo-stat { justify-content: center; gap: 4px; padding: 16px 8px 14px; min-height: 128px; }
.wo-stat svg { width: 30px; height: 30px; stroke-width: 1.6; margin-bottom: 6px; }
.wo-stat b { font-size: 28px; line-height: 1; }
.wo-stats:has(> :nth-child(3):last-child) .wo-stat b { font-size: 26px; }
.wo-stat span { font-size: 13.5px; line-height: 1.2; }
.wo-note { margin: 0 0 4px; text-align: center; }
#m-body .wo-board { display: block; width: fit-content; margin: 14px auto 2px; }
.wo-note { text-wrap: balance; }
/* the photo credit sits on the picture, never under the sticky button (27 Nov 2026, Heike: report 452) */
.m-img { position: relative; }
.m-img .credit { position: absolute; right: 8px; bottom: 6px; max-width: 80%; font-size: 10px; line-height: 1.3; padding: 2px 7px; border-radius: 6px; background: rgba(21,17,31,.6); color: #F1ECE2; }

/* journey/styles/shelf.css */
/* The shelf: solids, hidden crystals, badges, your words and photos. */

.pill.shelf-btn { border-color: rgba(47,175,167,.45); }
/* shelf */
.shelf { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.shelf.open { transform: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.yours { padding: 12px 14px; border-radius: 14px; background: rgba(62,139,214,.1); border: 1px solid rgba(62,139,214,.35); font-family: var(--serif); font-size: 19px; margin-bottom: 12px; color: var(--ink); }
.yours small { display: block; font: 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #7fb3e6; margin-bottom: 4px; }
/* ================================================================ the shelf, in four tabs */
.shelf { overflow: hidden; display: flex; flex-direction: column; }
.sh-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: 1100px; width: 100%; margin: 0 auto; padding: 12px 16px 16px; }
.sh-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.sh-tabs button { border-radius: 14px; border: 1px solid rgba(241,236,226,.12); background: var(--panel); color: var(--ink-3); }
.sh-tabs button b { display: block; font: 600 18px var(--sans); color: var(--ink-2); }
.sh-tabs button.on { border-color: var(--gold); color: var(--gold); background: rgba(47,175,167,.1); }
.sh-tabs button.on b { color: var(--gold); }
.sh-pane { display: none; flex: 1; min-height: 0; overflow-y: auto; }
.sh-pane.on { display: flex; flex-direction: column; }
.sh-comb { position: relative; flex: 1; min-height: 260px; }
.sh-comb .cell .lab small { display: block; font-size: calc(var(--w) * .085); color: var(--ink-3); margin-top: 2px; }
.sh-comb .cell .lab b { font-size: calc(var(--w) * .11); }
.sh-comb .cell.ghostgem .face { filter: none; background: #1E192D; }
.sh-comb .cell.ghostgem::before { background: rgba(241,236,226,.1); }
.cell.medal.done .face { background: radial-gradient(circle at 40% 30%, #f6dd94, #c99a32 60%, #8a6517); }
.cell.medal.done .face::after { background: none; }
.cell.medal.done .lab b { color: #1E192D; text-shadow: none; }
.cell.medal.done .lab i { background: #1E192D; color: var(--gold-bright); border-color: #1E192D; }
.yours-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) {
  .yours-cols { grid-template-columns: 1fr 1fr; }
}
.gallery > p { grid-column: 1 / -1; }

/* the solids, hung like a gallery: each in its own lit frame, standing on a soft shadow, the name centred below */
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.slot { position: relative; overflow: hidden; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 10px 14px; text-align: center; border-radius: 18px;
  border: 1px solid rgba(47,175,167,.22); background: radial-gradient(ellipse 70% 45% at 50% 36%, rgba(47,175,167,.13), transparent 70%), var(--panel); }
.slot .v { position: absolute; inset: 6% 6% 30%; }
.slot::after { content: ''; position: absolute; left: 26%; right: 26%; bottom: 27%; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); pointer-events: none; }
.slot .nm { position: relative; font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--ink); }
.slot small { position: relative; display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
.slot.empty { cursor: pointer; border-style: dashed; border-color: rgba(241,236,226,.14); background: var(--panel); }
.slot.empty .nm { color: var(--ink-3); }
.slot .ghostsolid { position: absolute; inset: 14% 22% 36%; display: grid; place-items: center; opacity: .5; filter: grayscale(1); }
.slot .ghostsolid svg { width: 100%; height: 100%; }
@media (min-width: 760px) { .shelf-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; } .slot .nm { font-size: 22px; } }

/* ================================================================ the profile (was the shelf): you, the leaderboard, your collection */
.prof { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: 6px 0 20px; }
.prof-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.prof-head h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0; line-height: 1.1; }
.prof-head .kicker { margin: 2px 0 0; }
.prof-xp { text-align: right; } .prof-xp b { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold); font-weight: 500; } .prof-xp span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-metal); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.av .ic { width: 15px; height: 15px; }
.av.big { width: 64px; height: 64px; font-size: 24px; }
.prof-path { padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(47,175,167,.18); background: var(--panel); }
.prof-path .kicker { margin: 0 0 10px; } .prof-path svg { display: block; width: 100%; height: auto; } .prof-path p:last-child { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.prof-path .ok { color: #2fafa7; font-weight: 500; }
.prof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.prof-stats button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 16px; border: 1px solid rgba(241,236,226,.1); background: var(--panel); font-size: 12px; color: var(--ink-3); }
.prof-stats button:hover { border-color: rgba(47,175,167,.45); }
.prof-stats b { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; } .prof-stats small { font-size: 15px; color: var(--ink-3); }
.prof-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.prof-board { max-width: 760px; width: 100%; margin: 0 auto; padding: 6px 0 20px; }
@media (max-width: 600px) { .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prof-head h2 { font-size: 26px; } .prof-xp b { font-size: 36px; } .av.big { width: 52px; height: 52px; font-size: 20px; } }
/* six tabs: one row on desktop, two tidy rows of three on phones */
.sh-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* Dashboard · Leaderboard · Collection · My work */
@media (min-width: 900px) { .shelf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- the profile menu (journey.js profileMenu): one button on the right, a drop-down (16 Oct 2026) */
#sh-tabs { display: none !important; }
.pmenu { position: fixed; z-index: 120; top: 58px; right: 12px; width: min(290px, calc(100vw - 24px)); padding: 8px; border-radius: 18px; border: 1px solid rgba(47,175,167,.35);
  background: var(--bg-2); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: cardin .25s cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }   /* scrolls on small phones (Heike 21 Nov 2026) */
.pmenu .pm-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; }
.pmenu .pm-head .av { width: 40px; height: 40px; font-size: 15px; flex: none; }
.pmenu .pm-head div { display: flex; flex-direction: column; min-width: 0; }
.pmenu .pm-head b { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmenu .pm-head small { color: var(--gold); font-size: 13px; }
.pmenu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 500 15px var(--sans); text-align: left; }
.pmenu button:hover, .pmenu button:focus-visible { background: rgba(47,175,167,.1); }
.pmenu button .ic { flex: none; width: 20px; height: 20px; color: var(--gold); }
.pmenu .pm-sec { margin: 6px 12px 2px; font: 600 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.pmenu hr { border: 0; border-top: 1px solid rgba(241,236,226,.08); margin: 6px 4px; }
#shelf-btn[aria-expanded="true"] { border-color: var(--gold); }
/* the profile pages open under the top bar, which stays (logo = back to the map, the name = the menu) */
body:has(.shelf.open) > header.bar { z-index: 55; }
body:has(.shelf.open) .week-chip, body:has(.shelf.open) .wk-toggle { visibility: hidden; }
.shelf { top: 57px; }
.shelf > header.bar { position: static; background: none; backdrop-filter: none; border-bottom: 0; padding: 14px 18px 4px; }
.shelf > header.bar .brand { font-family: var(--serif); font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: default; }
html body .shelf > header.bar .brand { display: block; flex: 1; }

/* one account menu everywhere (2 Nov 2026): the members area's photo, icons and View as in the course menu */
.av.photo { padding: 0; overflow: hidden; }
.av.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pmenu button > svg:not(.ic) { width: 18px; height: 18px; flex: none; }
.pmenu .pm-viewas { padding: 6px 10px 8px; }
.pmenu .pm-viewas span { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.pmenu .pm-viewas div { display: flex; flex-wrap: wrap; gap: 6px; }
.pmenu .pm-viewas button { display: inline-block; width: auto; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--panel-line); font-size: 13px; }
.pmenu .pm-viewas button.on { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.pmenu .pm-viewas div button { min-height: 0; height: auto; line-height: 1.3; padding: 4px 11px; gap: 0; }
/* the language of the course (i18n.js, 4 Nov 2026): two pills at the top of the menu, like View as */
.pmenu .pm-lang { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; color: var(--gold); }
.pmenu .pm-lang svg { width: 18px; height: 18px; flex: none; }
.pmenu .pm-lang select { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--panel-line); background: var(--bg-2, #1E192D); color: var(--ink); font: inherit; font-size: 14px; }
.pmenu .pm-lang button { display: inline-block; width: auto; min-height: 0; height: auto; line-height: 1.3; gap: 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--panel-line); font-size: 13px; }
.pmenu .pm-lang button.on { background: var(--gold); color: var(--bg); border-color: var(--gold); }
/* the collection: seven small shelves, one per world, names readable on a phone (18 Nov 2026, second look) */
.sh-comb:has(.gworld) { min-height: 0; display: flex; flex-direction: column; gap: 18px; }
.gworld { display: flex; flex-direction: column; gap: 8px; }
.gw-k { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.gw-k span { color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.grow { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gtile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(241,236,226,.12); background: rgba(241,236,226,.04); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.gtile.done { border-color: rgba(47,175,167,.45); background: rgba(47,175,167,.08); }
.gtile.ghost { opacity: .7; }
.gpic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #1E192D center / cover no-repeat; display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.gpic svg { width: 22px; height: 22px; } .gpic .fa svg, .gpic > svg.art { width: 100%; height: 100%; }
.gtx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gtx b { font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.gtx small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtile.medal.done .gpic { color: var(--gold); }

/* journey/styles/cover.css */
/* The cover, signing in, the leaderboard. */

/* ================================================================ 2026-10-15: sign in + leaderboard */
.signin { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 30%, rgba(47,175,167,.12), transparent 60%), var(--bg); transition: opacity .4s; }
.signin.out { opacity: 0; pointer-events: none; }
.si-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: 24px; border: 1px solid rgba(47,175,167,.35); background: var(--panel); text-align: center; }
.si-card img { width: 56px; height: 56px; margin: 0 auto 4px; }
.si-card h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0; }
.si-card h2 em { color: var(--gold); }
.si-lead { color: var(--ink-2); margin: 0 0 8px; }
.si-card label { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.si-card input { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--bg-2); color: var(--ink); }
.si-card input:focus { outline: none; border-color: var(--gold); }
.si-err { min-height: 20px; margin: 0; color: #ff8a8d; font-size: 14px; }
.si-card .go { width: 100%; }
.lb { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.lb li { display: grid; grid-template-columns: 30px 1fr auto 60px; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(241,236,226,.04); }
.lb li i { font-style: normal; font-weight: 600; color: var(--ink-3); text-align: center; }
.lb li:nth-child(1) i { color: var(--gold-bright); }
.lb li:nth-child(2) i { color: #cfc8da; }
.lb li:nth-child(3) i { color: #d39a6a; }
.lb li b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb li span { font-size: 12.5px; color: var(--ink-3); }
.lb li em { font-style: normal; font-weight: 600; color: var(--gold); text-align: right; }
.lb li.me { background: rgba(47,175,167,.14); outline: 1px solid rgba(47,175,167,.5); }
.lb small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.lb-foot { font-size: 13px; color: var(--ink-3); }
.lb-foot .link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; font: inherit; cursor: pointer; }
@media (max-width: 420px) {
  .lb-word { display: none; }
}
.link, button.link, .lb-foot .link { color: var(--gold-light); }
.m-art.wide svg.course-map { width: 100%; max-height: none; height: auto; }
@media (max-width: 520px) {
  .bar .pill .lbl, .lb-word { display: none; }
}
/* ================================================================ 2026-10-15: the cover, before any of Week 1 */
.cover { position: fixed; inset: 0; z-index: 150; overflow-y: auto; background: radial-gradient(ellipse at 30% 20%, rgba(47,175,167,.10), transparent 55%), radial-gradient(ellipse at 50% 0%, rgba(47,175,167,.10), rgba(21,17,31,.97) 60%), var(--tapestry) 0 0/56px 97px, var(--bg); transition: opacity .45s; }
.cover.out { opacity: 0; pointer-events: none; }
.cv-in { min-height: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 20px 28px; display: flex; flex-direction: column; }
.cv-brand { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
/* the logo: white on dark, the colour drawing on light (Heike 21 Nov 2026: the white one vanished on the light cover) */
.cv-brand .lg-light { display: none; } html[data-theme=light] .cv-brand .lg-light { display: block; } html[data-theme=light] .cv-brand .lg-dark { display: none; }
.cv-brand img { width: 40px; height: 40px; }
.cv-brand i { color: var(--gold); font-style: normal; margin: 0 4px; }
.cv-main { flex: 1; display: flex; flex-direction: column; gap: 22px; justify-content: center; padding-top: 18px; }
.cv-text h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 9vw, 84px); line-height: 1; margin: 10px 0 12px; }
.cv-text .kicker { margin-bottom: 6px; }
.cv-q { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3.4vw, 28px); color: var(--ink-2); margin: 0 0 14px; }
.cv-video { max-width: 640px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.cv-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cv-map svg { width: 100%; height: auto; display: block; max-width: 720px; }
.cv-body { max-width: 640px; }
.cv-body p { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 10px; }
.cv-body b { color: var(--ink); font-weight: 500; }
.cv-body .cv-lead { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink); margin-bottom: 16px; }
.cv-book { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: rgba(255,253,249,.05); border: 1px solid var(--panel-line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.cv-book:hover { border-color: var(--gold); transform: translateY(-1px); }
.cv-book img { width: 64px; height: auto; flex: none; }
.cv-book span { display: flex; flex-direction: column; gap: 2px; }
.cv-book small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cv-book b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.cv-book i { font-style: normal; font-size: 14px; color: var(--ink-2); }
.cv-side .si-card { margin: 0 auto; }
.cv-side .si-card h2 { font-size: 30px; }
.cv-enter { padding: 22px 24px; }
@media (min-width: 900px) and (orientation: landscape) {
  .cv-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 400px); gap: 56px; }
  .cv-body p { font-size: 17px; }
}
/* phones: title and picture, then sign in, then the words; desktop: words left, sign-in right */
.cv-main > .cv-body { order: 3; }
/* desktop cover, balanced: title + picture left, words right, sign-in / button centred below */
@media (min-width: 900px) and (orientation: landscape) {
  .cv-main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .cv-main > .cv-text { grid-column: 1; }
  .cv-side .cv-enter { background: none; border: 0; padding: 0; }
  .cv-side .cv-enter .go { min-width: 280px; }
}
.cv-sub { font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); color: var(--ink); margin: 0 0 30px; letter-spacing: .01em; }   /* room before the video (Heike, 28 Oct 2026) */
.cv-q { font-size: clamp(17px, 2.6vw, 22px); }
.cv-x { position: fixed; top: 14px; right: 16px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(47,175,167,.6); background: rgba(21,17,31,.7); color: var(--gold); }
.cv-x .ic { width: 20px; height: 20px; }

/* the cover has one button; signing in opens as a pop-up over it */
.cv-enter .go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 260px; padding: 15px 28px; font-size: 17px; }
.cv-enter .go .ic { width: 20px; height: 20px; transform: scaleX(-1); }
.cv-side .cv-enter { background: none; border: 0; padding: 0; }
.si-pop { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 18px; background: rgba(30,25,45,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.si-pop.on { opacity: 1; }
.si-pop .si-card { position: relative; transform: translateY(14px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 80px rgba(0,0,0,.6); background: var(--bg-2); }
.si-pop.on .si-card { transform: none; }
.si-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(47,175,167,.5); background: none; color: var(--gold); }
.si-x .ic { width: 18px; height: 18px; }
/* sign in / register sits right below the text: on phones after the words, on desktop under the words column */
.cv-main > .cv-side { order: 4; }
.cv-side .cv-enter { text-align: left; }
@media (min-width: 900px) and (orientation: landscape) {
  .cv-main { grid-template-rows: auto auto; }
  .cv-main > .cv-body { grid-column: 2; grid-row: 1; }
  .cv-main > .cv-side { grid-column: 2; grid-row: 2; justify-self: start; width: auto; }
}
@media (max-width: 899px) { .cv-side .cv-enter .go { width: 100%; } }
/* desktop: the title and picture centred against the words and button, as one balanced block in the middle */
@media (min-width: 900px) and (orientation: landscape) {
  .cv-main { align-content: center; row-gap: 22px; }
  .cv-main > .cv-text { grid-row: 1 / 3; align-self: center; }
  .cv-main > .cv-body { align-self: end; }
  .cv-main > .cv-side { align-self: start; }
}
.lb li.out { opacity: .55; background: transparent; border: 1px dashed rgba(241,236,226,.18); margin-top: 6px; }   /* a coordinator's own line: plays along, never ranks */
.lb li.out i { color: var(--ink-3) !important; }
/* the welcome video in our own player (29 Oct 2026) */
.cv-video .vid { height: 100%; border: 0; border-radius: 0; }

/* journey/styles/layout.css */
/* One layout for every card (Heike, 16 Oct 2026: "the layout always follows the same grid").
   READ   kicker, title, the instruction, the question: on the left (on a phone: on top)
   DO     the one thing you work on (picture, drawing, model, honeycomb, photos, video): on the right
   RESULT what your doing gives back (counter, caption, pattern buttons, answers, the explanation): right under DO
   BAR    Back in the left corner; the right corner shows Skip while a step is open and Next, in the same place, once it is done.
   On a phone and an upright tablet the same four come one under the other, in that order: READ, DO, RESULT, BAR.
   "html body" lifts these rules over the older card rules in player.css and hex.css. */

/* ---------------------------------------------------------------- the bar */
html body .pbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
html body .pbar > * { grid-row: 1; }
html body .pbar #back { grid-column: 1; justify-self: start; }
/* the right corner holds one button: Skip while the step is open, then Next in its place (Heike, 16 Oct 2026) */
html body .pbar #fwd, html body .pbar #go { grid-column: 3; justify-self: end; }
html body .pbar #go { width: auto; min-width: 132px; height: 48px; padding: 0 26px; border-radius: 999px; font-size: 16.5px; }
/* Check belongs to the card: it sits in the middle, Skip stays in the corner beside it */
html body .pbar #go.check { grid-column: 2; justify-self: center; width: min(260px, calc(100vw - 250px)); min-width: 120px; }
html body .pbar .nav { flex: none; min-width: 0; height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid rgba(241,236,226,.16); background: none; color: var(--ink-2); font: 500 15px var(--sans); }
html body .pbar #fwd { padding: 0 10px 0 14px; border-color: rgba(47,175,167,.45); color: var(--gold); }
html body .pbar .nav .ic { width: 18px; height: 18px; }
html body .pbar #back:disabled, html body .pbar #fwd.gone { visibility: hidden; }
/* Next waits out of sight until the step is done: no grey "Finish the drawing" next to a slideshow's own arrows */
html body .pbar #go.wait { visibility: hidden; }
/* the homework line only takes room when it has something to say */
html body .p-bottom .skipnote:empty { display: none; }

/* ---------------------------------------------------------------- tablet and desktop, sideways: two columns */
@media (min-width: 900px) and (orientation: landscape) {
  /* the card uses the whole height between the dots and the buttons, and grows wider on big screens so the
     picture stays about square (Heike, 16 Oct 2026: "make more use of the height, especially on desktop") */
  html body .player { --cardw: clamp(1180px, calc((100dvh - 145px) * 1.7), 1560px); padding-top: 58px; }
  html body .card { height: min(1000px, calc(100dvh - 145px)); max-width: var(--cardw); }
  html body .p-bottom { max-width: var(--cardw); padding-top: 14px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  /* rows: a spacer, up to twelve READ lines, a spacer (the left column is centred against DO), then the RESULT lines */
  html body .card:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual) {
    display: grid; max-width: var(--cardw); justify-content: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: minmax(0, 1fr) repeat(12, auto) minmax(0, 1fr) repeat(6, auto); grid-auto-flow: row dense; row-gap: 0; }
  html body .card > *, html body .card::before, html body .card::after { grid-column: 1; }
  html body .card::before { display: block; content: ''; grid-row: 1; }
  html body .card::after { display: block; content: ''; grid-row: 14 / -1; }
  /* DO: the right column, all the height the results leave */
  html body .card > :is(.stagebox, .hero, .qimg, .honey, .gs, .vid, .photos, .bookpage, .visual) { grid-column: 2; grid-row: 1 / 15; min-height: 180px; height: auto; margin: 0; }
  html body .card > .vid { align-self: center; }
  /* a YouTube Short stays an upright reel in the wide two-column card too (15 Nov 2026) */
  html body .card > .vid.vid-tall { width: auto; height: min(70vh, 620px); max-width: 100%; justify-self: center; }
  /* a photo question: the photo fills its part of the column, whole, never under the answers */
  html body .card > .qimg { height: 100%; width: 100%; min-height: 0; object-fit: contain; }
  /* RESULT: right under DO, lined up with its left edge */
  html body .card:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual)
    > :is(.chips, .ctl, .cap, .say, .ssay, .explain, .count, .opts, .go2, .tally, .hwacts) { grid-column: 2; }
  html body .card > :is(.chips, .ctl) { justify-content: flex-start; margin-top: 12px; }
  html body .card > :is(.cap, .ssay) { text-align: left; margin-top: 8px; }
  html body .card > .say { margin-top: 8px; }
  html body .card > .opts { margin-top: 12px; }
  html body .card > .count { margin: 8px 0 0; }

  /* nothing to look at, only words and things to tap (story, quiz in words, sort, match, write, homework): one column, centred */
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics)) {
    display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics))::before,
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics))::after { display: none; }

  /* flip cards: title and text on top, the cards side by side underneath */
  html body .card:has(> .flips) { display: flex; flex-direction: column; justify-content: center; max-width: var(--cardw); }
  html body .card:has(> .flips)::before, html body .card:has(> .flips)::after { display: none; }
  html body .card > .flips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; align-content: start; }
  html body .card > .flips.n2 { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: start; }
  html body .card > .flips.n3, html body .card > .flips.n5, html body .card > .flips.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .card > .flips .fl { max-height: calc(100dvh - 380px); width: 100%; justify-self: stretch; }
  html body .card > .flips.n5 .fl, html body .card > .flips.n6 .fl { max-height: calc((100dvh - 370px) / 2); }

  /* the bar under a two-column card: Back under the left column, Check centred under the right one, Skip/Next in its corner */
  html body .p-bottom .pbar { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 48px; }
  html body .p-bottom .pbar #go, html body .p-bottom .pbar #fwd { grid-column: 2; }
  html body .p-bottom .pbar #go.check { width: min(280px, 60%); }
  /* under a one-column card: the bar as wide as the card */
  html body .player:has(.card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics))) .p-bottom .pbar { max-width: 760px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 10px; }
  html body .player:has(.card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics))) .p-bottom .pbar :is(#go, #fwd) { grid-column: 3; }
  html body .player:has(.card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics))) .p-bottom .pbar #go.check { grid-column: 2; width: 280px; }
  html body .player:has(.card > .flips) .p-bottom .pbar { max-width: none; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 10px; }
  html body .player:has(.card > .flips) .p-bottom .pbar :is(#go, #fwd) { grid-column: 3; }
  html body .player:has(.card > .flips) .p-bottom .pbar #go.check { grid-column: 2; width: 280px; }
}

/* ---------------------------------------------------------------- phone and upright tablet: one picture size
   Slideshows, pictures with buttons and story pictures are all the same height, whatever the words around them;
   the words go underneath and keep the room of their longest version (cards.js holdRoom). (Heike, 16 Oct 2026) */
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .card { --pic: clamp(220px, calc(100dvh - 410px), 720px); }
  /* the same height everywhere; only a card with too many words for one screen lets its picture give a little */
  html body .card > .visual:has(> .art-stage) { flex: 0 1 auto; min-height: 0; }
  html body .card > .visual > .art-stage { flex: 0 1 var(--pic); height: auto; min-height: 240px; }
  html body .card:has(> .chips, > .ctl) > .stagebox { flex: 0 1 var(--pic); height: auto; min-height: 240px; }
  html body .card > .hero { flex: 0 1 var(--pic); height: auto; min-height: 200px; }
}

/* three photos side by side: in a tall picture they stack, so each photo gets the width instead of a thin strip */
html body .art-stage .frame { container-type: size; }
@container (max-aspect-ratio: 1 / 1) {
  html body .photo3:not(.small) { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- a homework task on its own card (cards.js make, solo)
   the words on the left, the picture of what you make on the right, the links, your photo and the tick under it */
html body .card > .hwpic { display: grid; place-items: center; padding: 14px; border-radius: 22px; border: 1px solid var(--panel-line); background: var(--panel); }
html body .card > .hwpic > a { display: contents; }
html body .card > .hwpic :is(img, svg) { width: 100%; height: 100%; max-height: 100%; object-fit: contain; min-height: 0; }
html body .card > .hwpic img { border-radius: 6px; }
html body .card > .hwacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
html body .card > .hwacts .upload, html body .card > .hwacts .hw-tick { margin-top: 0; }
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .card > .hwpic { flex: 1 1 var(--pic); min-height: 220px; }
}

/* ---------------------------------------------------------------- picture answers: one standard (Heike, 16 Oct 2026)
   every picture the same shape, every text box in a row the same height (the longest one's), so no picture shrinks for a longer answer.
   Sideways tablet and desktop: two, three or four answers in one row across the card, under the question (and under the card's own picture). */
html body .card > .opts.pics { grid-auto-rows: auto; row-gap: 0; }
html body .card > .opts.pics .opt { display: grid; grid-row: span 2; grid-template-rows: subgrid; aspect-ratio: auto; gap: 0; padding: 0; margin-bottom: 10px; overflow: hidden; }
html body .card > .opts.pics .opt .oi { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 0; }
html body .card > .opts.pics .opt .oi :is(img, svg) { width: 100%; height: 100%; }
html body .card > .opts.pics .opt .ot { display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) and (orientation: landscape) {
  html body .card > .opts.pics { grid-column: 1 / -1; grid-row: auto; align-self: stretch; justify-self: stretch; width: 100% !important; max-width: none; margin-top: 14px; column-gap: 14px; justify-content: start; }
  /* every answer card is one third of the row wide, however many answers there are (Heike, 28 Oct 2026) */
  html body .card > .opts.pics:is(.n2, .n3, .n4, .n5, .n6) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .card > .opts.pics .opt .oi { aspect-ratio: 16 / 10; }
  html body .card:has(> .opts.pics):has(> .stagebox, > .hero, > .qimg) > :is(.stagebox, .hero, .qimg) { min-height: 160px; }
  /* no picture of its own: question on top, the answers under it, the explanation under them */
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips)):has(> .opts.pics) {
    display: flex; flex-direction: column; justify-content: center; max-width: var(--cardw); }
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips)):has(> .opts.pics)::before,
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips)):has(> .opts.pics)::after { display: none; }
  html body .card:not(:has(> .stagebox, > .hero, > .qimg, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips)):has(> .opts.pics) > .explain { max-width: 900px; }
}
@media not ((min-width: 900px) and (orientation: landscape)) {
  /* a quiz's live picture may give way to the answer's explanation, so the card stays one screen */
  html body .card > #qstage { min-height: 110px; }
}
/* a story's drawn picture (an SVG instead of a photo) */
html body .card > .hero.drawn { display: grid; place-items: center; padding: 18px; background: radial-gradient(closest-side, rgba(47,175,167,.08), transparent); -webkit-mask-image: none; mask-image: none; border-radius: 22px; }
html body .card > .hero.drawn svg { width: 100%; height: 100%; max-height: 100%; }

/* ---------------------------------------------------------------- captions on the left (Heike, 16 Oct 2026: "we never want to squish the slider")
   sideways tablet and desktop: what a picture says (a scene's caption, a slideshow's step text) sits under the title on the left,
   so the picture keeps the whole right column; only its own buttons stay under it */
@media (min-width: 900px) and (orientation: landscape) {
  html body .card:has(> .stagebox, > .visual) > :is(.cap, .ssay) { grid-column: 1; margin-top: 14px; text-align: left; }
  html body .card:has(> .stagebox, > .visual) > .ssay { font-size: 20px; }
}

/* Heike, 17 Oct 2026: no picture is ever cut. Every photo sits whole in its frame on the dark ground.
   Only the hexagon tiles keep their hexagon cut (tap one and the whole picture opens). */
html body :is(.hero, .gph, .cols .ph2, .layer > .ph2, .defwall div, .igc .ph2, .photo3 div, .sysx .thumb, .tasks.tcols .timg, .m-img, .fl .back.photo) { background-size: contain; background-repeat: no-repeat; background-color: #1E192D; }
html body .fl .back.photo { background-position: center top; }
html body :is(.ph img, .qimg, .explain img, .opt .oi img, .opts.pics .opt .oi img, .ex-art img, .tok img, .mt img, .gallery img, .upload img) { object-fit: contain; }
html body .opt .oi:has(img) { position: relative; background: #1E192D; }
html body .opt .oi img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* sort cards with photos: big square photos you can actually see (Heike, 28 Oct 2026); smaller once they sit in a box,
   and the boxes side by side so it all fits on one screen */
html body .pool .tok:has(img) { width: clamp(100px, 9.5vw, 132px); padding: 5px 5px 7px; font-size: 14px; }
html body .pool .tok:has(img) img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover !important; }
html body .bin .tok:has(img) { width: 84px; padding: 4px 4px 6px; font-size: 12px; }
html body .bin .tok:has(img) img { width: 74px; height: 74px; object-fit: cover !important; }
html body .card:has(.tok img) .bins { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* flip cards: the picture on the front fills the card, so you can read it (Heike, 28 Oct 2026) */
html body .fl .front .fa { width: 72%; max-width: min(220px, 60cqh); }
html body .flips:is(.n5, .n6, .n7) .fl .front .fa { width: 60%; max-width: min(140px, 52cqh); }

/* "tap the photos" cards: the photo fills its tile (Heike, 28 Oct 2026) */
html body .photos .ph img { object-fit: cover !important; }
html body .ph .verdict { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 99px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #1E192D; }
html body .ph .verdict.yes { background: #2fafa7; }
html body .ph .verdict.no { background: #e5484d; color: #fff; }
/* desktop: a narrower card, centred, so question, picture and answers sit together (18 Nov 2026, second look: "spreads across the whole width") */
@media (min-width: 900px) and (orientation: landscape) {
  html body .player { --cardw: clamp(940px, calc((100dvh - 145px) * 1.45), 1240px); }
  html body .card, html body .p-bottom { margin-left: auto; margin-right: auto; }
}

/* ---- engine: a YouTube Short stays an upright reel in the wide card too (15 Nov 2026) */
html body .card > .vid.vid-tall { width: auto; height: min(70vh, 620px); max-width: 100%; justify-self: center; }
/* the picture in an answer is always shown whole, never cropped; a picture made for the explanation stands big above its text
   (30 Nov 2026, Heike: reports 477 + 478: "make sure the images actually show answers and aren't cropped") */
html body .explain .ex-art img, html body .explain .ex-art img.fill { width: 100%; height: 100%; min-height: 0; box-sizing: border-box; object-fit: contain !important; }
html body .explain .ex-art:not(.big) { display: block; }
html body .explain.show:has(> .ex-art.big) { display: block; }
html body .explain .ex-art.big { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 10px; }
html body .explain .ex-art.big > svg { display: block; width: 100%; height: auto; max-height: 250px; }
html body .explain .ex-art.big > img { width: 100%; height: auto; max-height: 250px; }
  /* the one layout every card follows: read left, do right, results under it, buttons in the corners */
/* journey/styles/dash.css */
/* The student dashboard (profile "Dashboard" tab) and the homework ticks (15 Oct 2026).
   One header (name, rank, points), this week's homework task by task, the four weeks, the collection, your work.
   Phones first; the cards stay one column up to the profile's 760px. */

/* ---------- tabs: no numbers on them any more (the dashboard shows each number once) */
.sh-tabs b:empty, #sh-n-you, #sh-n-board, #sh-n-yours { display: none; }
.sh-seg { display: none; gap: 6px; justify-content: center; margin: 0 auto 12px; max-width: 760px; width: 100%; }
.sh-seg.on { display: flex; }
.sh-seg button { flex: 1; padding: 8px 6px; border-radius: 999px; border: 1px solid rgba(241,236,226,.12); background: var(--panel); color: var(--ink-2); font-size: 13px; line-height: 1.25; }
.sh-tabs button { white-space: nowrap; font-size: 12.5px; padding: 10px 2px; }
.sh-seg button.on { border-color: var(--gold); color: var(--ink); }
.sh-seg button b { color: var(--gold); font-weight: 600; margin-left: 2px; }

/* ---------- the cards */
.dash-card { padding: 16px 16px 14px; border-radius: 20px; border: 1px solid rgba(47,175,167,.18); background: var(--panel); }
.dash-card > .kicker { margin: 0 0 10px; }
.dash-card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; margin: 0; display: flex; align-items: center; gap: 8px; }
.dash-card h3 .ic { width: 22px; height: 22px; color: #2fafa7; }

/* this week: the homework */
.dash-week { border-color: rgba(47,175,167,.45); background: linear-gradient(160deg, rgba(47,175,167,.09), rgba(47,175,167,.02) 60%), var(--bg-2); }
.dash-due { margin: 4px 0 12px; color: var(--gold-light); font-size: 14px; }
.dash-bar { height: 6px; border-radius: 3px; background: rgba(241,236,226,.1); overflow: hidden; }
.dash-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width .6s; }
.dash-count { margin: 6px 0 10px; font-size: 13px; color: var(--ink-3); }
.dash-list { display: flex; flex-direction: column; gap: 8px; }
.hw-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 10px 8px 12px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(241,236,226,.1); background: rgba(0,0,0,.18); color: var(--ink); }
.hw-item:hover { border-color: rgba(47,175,167,.45); }
.hw-st { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(47,175,167,.6); display: grid; place-items: center; }
.hw-item.done .hw-st { background: var(--right); border-color: var(--right); color: #15111F; }
.hw-st .ic { width: 15px; height: 15px; }
.hw-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hw-tx b { font-weight: 500; font-size: 15.5px; }
.hw-item.done .hw-tx b { color: var(--ink-2); }
.hw-tx small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-item img { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.hw-cam { flex: 0 0 auto; color: var(--gold); display: grid; } .hw-cam .ic { width: 20px; height: 20px; }
.hw-go { flex: 0 0 auto; color: var(--ink-3); display: grid; } .hw-go .ic { width: 18px; height: 18px; }
.dash-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--gold); font-size: 14px; text-decoration: none; }
.dash-dl .ic { width: 18px; height: 18px; }

/* the four weeks */
.dash-weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dash-wk { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: rgba(0,0,0,.18); color: var(--ink-2); min-height: 58px; }
.dash-wk i { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; font: 500 15px var(--serif); font-style: normal; }
.dash-wk b { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); line-height: 1.15; }
.dash-wk small { font-size: 12px; color: var(--ink-3); }
.dash-wk small .ic { width: 12px; height: 12px; color: #2fafa7; vertical-align: -1px; }
.dash-wk.on { border-color: var(--gold); color: var(--gold); }
.dash-wk.locked { opacity: .55; }
@media (min-width: 640px) { .dash-weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the collection */
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash-tiles button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: rgba(0,0,0,.18); color: var(--ink-3); font-size: 12.5px; }
.dash-tiles button:hover { border-color: rgba(47,175,167,.45); }
.dash-tiles b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1; color: var(--ink); }
.dash-tiles b small { font-size: 15px; color: var(--ink-3); }

/* your work */
.dash-strip { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); text-align: left; }
.dash-strip img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(241,236,226,.1); }
.dash-notes { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-left: 4px; }
.dash-notes .ic { width: 16px; height: 16px; color: var(--gold); }
.dash-strip .hw-go { margin-left: auto; }
.dash-work .txt { margin: 0; font-size: 14px; }

/* ---------- the homework card: "Mark as done" on every task */
.hw-tick { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(47,175,167,.5);
  background: none; color: var(--gold-light); font-size: 13.5px; }
.hw-tick .ic { width: 15px; height: 15px; }
.hw-tick.on { border-color: var(--right); background: rgba(47,175,167,.16); color: #2fd0c5; }

/* the app card and the account row (bottom of the dashboard) */
.dash-app { display: flex; align-items: center; gap: 14px; border-color: rgba(47,175,167,.45); }
.dash-app img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; }
.dash-app div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-app b { font-weight: 500; font-size: 15.5px; }
.dash-app small { font-size: 12.5px; color: var(--ink-3); }
.dash-app .go { flex: 0 0 auto; width: auto; padding: 12px 20px; font-size: 15px; border-radius: 14px; }
.dash-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--ink); }
.dash-row:hover { border-color: rgba(47,175,167,.45); }
.dash-ico { flex: 0 0 26px; display: grid; place-items: center; color: var(--gold); } .dash-ico .ic { width: 22px; height: 22px; }
/* numbers in circles: lining figures, exactly centred (the serif's old-style figures sat low) (16 Oct 2026) */
.dash-wk i, .world .wn { font-family: var(--sans) !important; font-size: 14px !important; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.av { line-height: 1; }
html body :is(.hw-item img, .dash-strip img) { object-fit: contain; background: #1E192D; }   /* no picture is ever cut (17 Oct) */

/* Dr. Be's answers to your questions, under My progress (2 Nov 2026) */
.prof-answers { margin-top: 16px; padding: 16px 18px; }
.prof-answers .pa { padding: 12px 0; border-top: 1px solid var(--panel-line); }
.prof-answers .pa:first-of-type { border-top: 0; }
.prof-answers .pa-q { margin: 0 0 6px; font-style: italic; color: var(--ink-2); }
.prof-answers .pa-a { margin: 0 0 4px; color: var(--ink); line-height: 1.5; }
.prof-answers small { color: var(--ink-3); }

/* "Your certificate" (7 Nov 2026, from Crystals; COURSE.certificate): on the last reward screen and the dashboard */
.cert-line { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
a.pill.cert-go { padding: 10px 18px; font-size: 16px; font-weight: 600; color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
a.pill.cert-go:hover, a.pill.cert-go:focus-visible { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.cert-note { display: block; color: var(--ink-2); font-size: 13px; }
.dash-cert { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.dash-cert-row { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    /* the student dashboard (profile), key missions / practice, the certificate */
/* journey/styles/read.css */
/* Hello Geometry: bigger text everywhere (Heike, 27 Oct 2026: "the text is usually pretty small").
   Loaded last, so these sizes win over the shared card rules; phones keep a little less so the card still fits. */
html body .card .txt { font-size: 18.5px; line-height: 1.45; }
html body .card h2 { font-size: clamp(30px, 4.2vh, 40px); }
html body .lines .line { font-size: clamp(22px, 3.1vh, 27px); line-height: 1.32; margin-bottom: 12px; }
html body .q { font-size: 20.5px; line-height: 1.35; }
html body .opt { font-size: 17.5px; padding: 13px 16px; }
html body .opts.row .opt { font-size: 17px; }
html body .opts.pics .opt .ot { font-size: 16px; line-height: 1.25; }
html body .explain { font-size: 17.5px; line-height: 1.5; padding: 12px 16px; }
html body .cap { font-size: 21px; }
html body .say { font-size: 21px; }
html body .m-text .txt { font-size: 18.5px; line-height: 1.5; }
html body .m-text h3 { font-size: 32px; }
html body .tok, html body .mt span { font-size: 16.5px; }
html body .fl .ft, html body .fl .bt { font-size: 17.5px; line-height: 1.35; }
html body .toast { font-size: 17px; }

@media (max-width: 600px) {
  html body .card .txt { font-size: 17px; }
  html body .q { font-size: 18.5px; }
  html body .opt { font-size: 16.5px; padding: 11px 14px; }
  html body .explain { font-size: 16.5px; }
  html body .m-text .txt { font-size: 17px; }
}

/* the story card: a picture on top, the words big beside or under it */
html body .card > .hero + .kicker + h2 + .lines, html body .card > .hero ~ .lines { max-width: 760px; }

/* "Key words" and "In numbers" cards reuse flip; their backs hold a little more text */
html body .fl .bt { padding: 10px 12px; }

/* the Slides button is for courses taught live; Hello Geometry has none */
.hw-dl.hw-sl[hidden] { display: none !important; }

/* sort and match: photos big enough to see what they are */
html body .tok img { width: 64px; height: 64px; }
html body .bin .tok img { width: 44px; height: 44px; }
html body .mt img { width: 64px; height: 64px; }

/* phones: the 19-hexagon honeycomb gets the full width and the page scrolls (journey.js sizes it from the width there) */
@media (max-width: 600px) {
  main.wrap { height: auto; min-height: calc(100dvh - 57px); overflow: visible; }
  html body .comb { flex: 0 0 auto; margin: 8px 0 90px; }
  /* the seven-world map sizes itself from the height (fitH): keep the screen height there, or it gets 0 (28 Oct 2026) */
  body.on-map main.wrap { height: calc(100dvh - 57px); overflow: hidden; }
  /* (sweep 9 Nov 2026) base.css locks html + body, so the page never scrolled: a honeycomb taller than the phone was cut off
     (Crystal Geometry's 20 missions on every phone, the others on the smallest). The body scrolls now, except on the world map. */
  body:not(.on-map) { overflow-y: auto; overscroll-behavior-y: contain; }
}

/* medium windows (a browser side panel open, a tablet): Atomic Geometry's 4 weeks fit in one row and its honeycomb gets that height.
   Hello Geometry has 7 worlds and an "All worlds" button, so here they share one compact row and the honeycomb stays as big (Heike, 27 Oct 2026) */
@media (min-width: 601px) and (max-width: 899px), (min-width: 601px) and (orientation: portrait) {
  .worlds { grid-template-columns: repeat(7, 1fr) auto; gap: 5px; margin-bottom: 8px; }
  .world { padding: 5px 6px; }
  .world b { font-size: 13.5px; }
  .world > span { display: none; }
  .map-btn { margin: 0 0 6px; padding: 4px 12px; font-size: 13px; }
  .w-time { display: inline; margin-left: 8px; }
  .pr-text { display: inline; }
}

/* desktop: the left list holds 7 worlds (Atomic Geometry has 4), taller than a short window. It must never set the row's height,
   or the honeycomb is sized to it and its bottom is cut off by the window (Heike, 27 Oct 2026: "the window crop").
   The row is the window's height; the list gets smaller on short windows and scrolls if it still doesn't fit. */
@media (min-width: 900px) and (orientation: landscape) {
  main.wrap { grid-template-rows: minmax(0, 1fr); }
  .worlds { min-height: 0; max-height: 100%; overflow-y: auto; align-self: center; scrollbar-width: thin; }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 820px) {
  .worlds { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .world { padding: 7px 12px; row-gap: 0; }
  .world .wn { width: 28px; height: 28px; font-size: 15px; }
  .world b { font-size: 17px; }
  .world > span:last-child { display: none; }
  .world { grid-template-rows: auto; }
  .world .wc, .world .wc svg { height: 34px; width: 16px; }
  .world .wn { grid-row: 1; }   /* "Week 1": the number in the circle already says it */
}

/* match cards: drawn answers as big as photo answers */
html body .mt svg.art { width: 64px; height: 64px; flex: none; }

/* No serif for reading (Heike, 8 Nov 2026: "let's not have serif font ever… it's hard to read"): every sentence, caption, label and
   the words inside pictures are in Outfit, upright. Only the big card titles keep the serif. */
html body :is(.say, .ssay, .cap, .lines .line, .note, .outro, .deflines p, .deflines h3, .tally, .yours, .task b, .bin b, .fl .front .ft, .gph span,
  .txt, .explain, .m-text .txt, textarea, .tl-verdict, .c3-more, .cls-demo-cap, .igc .verdict b, .gx2 b, .slot .nm),
html body :is(.say, .ssay, .cap, .lines .line, .note, .outro, .deflines p, .txt, .explain, .m-text .txt, .fl .bt, .q, .opt) em,
html body :is(.card, .m-art, .modal, .m-text) svg text { font-family: Outfit, system-ui, sans-serif !important; font-style: normal !important; }
html body .lines .line { font-size: clamp(19px, 2.7vh, 23px); }
html body .say, html body .cap { font-size: 18.5px; line-height: 1.4; }
html body .ssay, html body .card:has(> .stagebox, > .visual) > .ssay { font-size: 19px; line-height: 1.4; }
html body :is(.say, .ssay, .lines .line, .txt) em { color: var(--gold); }
@media (max-width: 600px) {
  html body .lines .line { font-size: 18.5px; }
  html body .say, html body .cap { font-size: 17px; }
  html body .ssay, html body .card:has(> .stagebox, > .visual) > .ssay { font-size: 17.5px; }
}

/* turn-over cards: a calm plain front, no pattern behind the words (Heike, 8 Nov 2026: "hard to read the text on this background,
   can we generally improve this template") */
html body .fl .front { background: linear-gradient(180deg, rgba(47,175,167,.10), rgba(47,175,167,.03)), #1E192D; box-shadow: none; }
html body .fl .front .ft { color: #F1ECE2; font-weight: 500; }
html body .fl .back.photo .bt { background: rgba(21,17,31,.88); color: #F1ECE2; }

/* the line under the map title: plain and readable, and gone when a course has none (Heike, 8 Nov 2026) */
html body .map-wrap .lead { font-family: Outfit, system-ui, sans-serif; font-style: normal; font-size: 16px; color: var(--ink-2); }
html body .map-wrap .lead:empty { display: none; }

/* a photo's credit under a question's photo (8 Nov 2026) */
html body .qcredit { display: block; margin: -4px 0 6px; font-size: 11px; color: var(--ink-3); text-align: right; }
/* the points badge: see styles/points.css (12 Nov 2026) */
/* photo credits inside an answer's explanation (quiz options carry no credit line of their own; 18 Nov 2026) */
html body .explain .credit { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
    /* bigger text everywhere (27 Oct 2026) */
/* journey/styles/feedback.css */
/* the closing feedback page (Hello Geometry finale, 28 Oct 2026) */
.fb { display: grid; gap: 10px; margin-top: 6px; }
.fb-q { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
label.fb-q { display: grid; gap: 6px; }
.fb-q textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; color: var(--ink); background: rgba(241,236,226,.05); border: 1px solid rgba(241,236,226,.18); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.fb-q textarea:focus { outline: none; border-color: var(--gold); }
.fb-rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fb-rate button, .fb-yn button { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: rgba(241,236,226,.04); color: var(--ink); font: inherit; cursor: pointer; }
.fb-rate b { font-size: 22px; color: var(--gold); }
.fb-rate small { font-size: 11px; color: var(--ink-2); line-height: 1.2; text-align: center; }
.fb-rate button.on, .fb-yn button.on { background: var(--gold); border-color: var(--gold); color: #15111F; }
.fb-rate button.on b, .fb-rate button.on small { color: #15111F; }
.fb-worlds { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fb-worlds button { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; padding: 0; }
.fb-worlds button span { position: absolute; inset: auto 0 0; padding: 3px 2px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(21,17,31,.68); }   /* dark band: white on the ivory band could not be read (29 Oct 2026) */
.fb-worlds button.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(47,175,167,.35); }
@media (max-width: 560px) { .fb-worlds { grid-template-columns: repeat(4, 1fr); } }
.fb-tick { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: var(--ink-2); cursor: pointer; }
.fb-tick input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 2px; }
.fb-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* one question per card (the feedback form without c.ask, 7 Nov 2026) */
.fb-ta { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: rgba(241,236,226,.05); border: 1px solid rgba(241,236,226,.18); border-radius: 12px; padding: 12px 14px; resize: vertical; min-height: 120px; }
.fb-ta:focus { outline: none; border-color: var(--gold); }
 /* the feedback card(s) */
/* journey/styles/vplayer.css */
/* our own video player (vplayer.js, 29 Oct 2026): poster + play button, then our controls over a YouTube player without its own */
.hgv { position: relative; isolation: isolate; }
.hgv-cover { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: #15111F center / cover no-repeat; }
.hgv-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,17,31,0) 40%, rgba(21,17,31,.45)); }
.hgv-big { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--gold, #2FAFA7); color: #15111F;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s; }
.hgv-big svg { width: 34px; height: 34px; margin-left: 4px; }
.hgv-cover:hover .hgv-big, .hgv-cover:focus-visible .hgv-big { transform: scale(1.08); }
.hgv-cover:focus-visible { outline: 3px solid var(--gold, #2FAFA7); outline-offset: -3px; }
/* playing: the poster goes, it comes back on pause and at the end (YouTube's own pause and end screens stay hidden) */
.hgv.hgv-on .hgv-cover { opacity: 0; pointer-events: none; transition: opacity .3s; }
.hgv.hgv-on.hgv-wait .hgv-cover, .hgv.hgv-on.hgv-paused .hgv-cover { opacity: 1; pointer-events: auto; }
.hgv.hgv-paused .hgv-cover { bottom: 52px; height: auto; }   /* the controls stay usable under a paused poster */
.hgv.hgv-wait .hgv-big svg { animation: hgv-pulse 1s ease-in-out infinite; }
@keyframes hgv-pulse { 50% { opacity: .35; } }
.hgv-frame, .hgv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* the shield: every tap on the picture is ours (play / pause), none reaches YouTube's title or logo links */
.hgv-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.hgv-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 18px 10px 8px;
  background: linear-gradient(180deg, rgba(21,17,31,0), rgba(21,17,31,.78)); color: #FFFFFF; font: 600 13px/1 var(--sans, sans-serif); font-variant-numeric: tabular-nums;
  transition: opacity .3s; }
.hgv:not(.hgv-on) .hgv-bar { display: none; }
.hgv.hgv-idle:not(.hgv-paused) .hgv-bar { opacity: 0; pointer-events: none; }
.hgv-bar button { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; cursor: pointer; }
.hgv-bar button:hover, .hgv-bar button:focus-visible { background: rgba(255,255,255,.16); }
.hgv-bar svg { width: 22px; height: 22px; }
.hgv-t, .hgv-d { flex: none; min-width: 34px; text-align: center; color: #FFFFFF; }
.hgv-seek { --at: 0%; flex: 1; min-width: 40px; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hgv-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--hgv-accent, #2FAFA7) var(--at), rgba(255,255,255,.35) var(--at)); }
.hgv-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.hgv-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--hgv-accent, #2FAFA7); }
.hgv-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #FFFFFF; }
.hgv-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #FFFFFF; }
@media (max-width: 420px) { .hgv-d, .hgv-snd { display: none !important; } .hgv-bar { gap: 4px; padding-inline: 6px; } }
/* full screen */
.hgv:fullscreen { border-radius: 0; border: 0; background: #000; }
.hgv:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; }
.hgv.hgv-max { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; border: 0; background: #000; }
.hgv:fullscreen .hgv-cover, .hgv.hgv-max .hgv-cover { background-size: contain; }
.hgv.hgv-err :is(.hgv-cover, .hgv-shield, .hgv-bar) { display: none; }
/* the browser started the video without sound: a small hint, the first tap brings the sound (report 186/187, 16 Nov 2026) */
.hgv .hgv-hint { display: none; position: absolute; left: 12px; top: 12px; z-index: 4; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(21,17,31,.82); color: #F1ECE2; font: 600 14px/1 Outfit, sans-serif; pointer-events: none; }
.hgv .hgv-hint svg { width: 18px; height: 18px; }
.hgv.hgv-quiet:not(.hgv-paused):not(.hgv-wait) .hgv-hint { display: inline-flex; }
/* a Short (tall) in full screen fills the whole phone, upright (Heike 16 Nov 2026, report 197); beats the 70vh card rule */
html body .card > .vid.vid-tall.hgv:fullscreen, html body .vid.vid-tall.hgv.hgv-max, .vid.vid-tall.hgv:fullscreen { width: 100vw; height: 100dvh; max-width: none; aspect-ratio: auto; margin: 0; }
  /* our own video player around YouTube (29 Oct 2026) */
/* journey/styles/finale.css */
/* The end of the course: "Your journey" / congratulations page (finale.js, 29 Oct 2026). Built on the dashboard cards. */
.fin-hero { text-align: center; padding: 10px 8px 4px; }
.fin-seal { width: 120px; height: 120px; margin: 0 auto 6px; animation: fin-turn 60s linear infinite; }
.fin-seal svg { width: 100%; height: 100%; display: block; }
@keyframes fin-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fin-seal { animation: none; } }
.fin-hero .kicker { margin: 0; }
.fin-hero h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 7vw, 48px); line-height: 1.05; margin: 6px 0 10px; }
.fin-hero h2 em { color: var(--gold); }
.fin-lead { max-width: 560px; margin: 0 auto; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.fin .dash-card h3 { margin-bottom: 8px; }
.fin .dash-card > p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; }
/* points */
.fin-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.fin-big b { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; color: var(--gold); }
.fin-big span { font-size: 15px; color: var(--ink-2); }
.fin-tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fin-tally span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; border: 1px solid rgba(241,236,226,.1); font-size: 13px; color: var(--ink-3); text-align: center; }
.fin-tally b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); line-height: 1.1; }
.fin-tally small { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
/* world by world */
.fin-worlds { display: flex; flex-direction: column; gap: 8px; }
.fin-w { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.fin-w:hover { border-color: rgba(47,175,167,.45); }
.fin-w > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 14px var(--sans); font-style: normal; }
.fin-w.full > i { background: var(--gold); color: var(--bg); }
.fin-w > i .ic { width: 16px; height: 16px; }
.fin-w > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fin-w b { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.15; }
.fin-w small { font-size: 12.5px; color: var(--ink-3); }
.fin-w .dash-bar { margin-top: 3px; height: 4px; }
.fin-w > em { font-style: normal; font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.fin-w > em .ic { width: 15px; height: 15px; }
.fin-note { margin: 12px 0 0 !important; font-size: 14px !important; }
/* the final check */
.fin-score { min-height: 1.4em; font-size: 15px !important; }
.fin-score .ic { width: 16px; height: 16px; color: var(--gold); vertical-align: -2px; }
.fin-qs { display: flex; flex-direction: column; gap: 18px; }
.fin-q > p:first-child { margin: 0 0 8px; font-size: 16px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.fin-q > p:first-child small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 2px; }
.fin-as { display: flex; flex-direction: column; gap: 6px; }
.fin-as button { padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--bg-2); color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.fin-as button:hover:not(:disabled) { border-color: var(--gold); }
.fin-as button:disabled { cursor: default; opacity: .6; }
.fin-as button.right { opacity: 1; border-color: #2fafa7; background: rgba(47,175,167,.16); color: var(--ink); }
.fin-as button.wrong { opacity: 1; border-color: #e5484d; background: rgba(229,72,77,.1); color: var(--ink); }
.fin-why { display: none; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fin-q.answered .fin-why { display: block; }
/* feedback, book, next */
.fin-fb h3 .ic { color: #2fafa7; }
.fin .fin-go { background: var(--gold); border-color: var(--gold); color: var(--bg); padding: 9px 16px; font-size: 15px; text-decoration: none; }
.fin .fin-go:hover { filter: brightness(1.08); }
.fin .fin-go .ic { width: 16px; height: 16px; }
.fin-book { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: center; }
.fin-bk img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 8px 24px rgba(241,236,226,.18); }
@media (max-width: 599px) {
  .fin-book { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .fin-big b { font-size: 44px; }
}
.fin .fin-go .ic { color: inherit !important; stroke: currentColor; }

/* "Your certificate" under the congratulations (5 Nov 2026) */
.fin .fin-cert { margin: 18px auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fin .fin-cert small { font-size: 13px; color: var(--ink-2); }
   /* the end of the course: your journey, congratulations (29 Oct 2026) */
/* journey/styles/fit.css */
/* Photos always whole (Heike, 29 Oct 2026), set by fit.js: the photo is contained, its blurred copy fills the rest.
   Loaded after every card style, so it wins over their "cover". */
html body img.fit.fit.fit { object-fit: contain !important; background-position: center !important; background-size: cover !important; background-repeat: no-repeat !important; }
html body .fit.fit.fit:not(img) { background-size: contain, cover !important; background-position: center, center !important; background-repeat: no-repeat, no-repeat !important; }
/* book pages (hg-book-*): whole, on white paper */
html body .fit.fit.fit.paper { background-color: #FFFFFF !important; }
html body .fit.fit.fit.paper:not(img) { background-size: contain !important; background-repeat: no-repeat !important; }
.frame:has(> img.paper), .hero:has(.paper) { background: #FFFFFF; }
/* nearly the frame's shape: fill it (fit.js adds .fill; at most a sliver trimmed) */
html body img.fit.fit.fit.fill { object-fit: cover !important; }
html body .fit.fit.fit.fill:not(img) { background-size: cover, cover !important; }
/* people and towers keep their top (fit.js TOP) */
html body img.fit.fit.fit.keep-top { object-position: 50% 10%; }
html body .fit.fit.fit.fill.keep-top:not(img) { background-position: 50% 10%, center !important; }
/* a question's photo has no fixed frame: it takes its own shape, whole, no bands beside it */
html body img.qimg.fit.fit.fit { flex: none !important; width: auto; max-width: 100%; height: clamp(170px, 30vh, 300px); max-height: none; margin: 0 auto 6px; display: block; background: none !important; object-fit: contain !important; border-radius: 14px; }
/* a picture in a step frame keeps the frame's size: a tall one (a book symbol) used to grow past the frame and be cut */
html body .art-stage .frame.photo > img.fit { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* a book page as a story's picture: no fade at the bottom (it hid the lower part of the drawing) */
html body .hero.paper { -webkit-mask-image: none !important; mask-image: none !important; }
/* phones: the photos to sort ("Check: how many?") two in a row across the whole width, each filling its square
   (Heike, 4 Nov 2026: "we can hardly see the flowers, it's too small … bigger pictures"). Tap one after checking to see it whole. */
@media (max-width: 640px) {
  html body .pool:not(.pics):has(> .tok img) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html body .pool:not(.pics) > .tok:has(img) { width: 100%; max-width: none; padding: 6px 6px 9px; font-size: 15px; }
  html body .pool:not(.pics) > .tok:has(img) img.fit.fit.fit, html body .pool:not(.pics) > .tok:has(img) img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover !important; background: none !important; border-radius: 9px; }
}
/* phones: photos to sort sit in ONE row you swipe sideways, the boxes right under them, all on one screen
   (Heike, 15 Nov 2026, reports 84 + 94: "we need to swipe down first" / "don't let the scroll go behind… make it general").
   For every sort card with photos, in every course; the photos stay big (4 Nov). */
@media (max-width: 640px) {
  html body .card:has(.pool > .tok img) .pool:not(.pics) { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    gap: 10px; margin: 6px -16px 12px; padding: 2px 16px 8px; scrollbar-width: none; }
  html body .card:has(.pool > .tok img) .pool:not(.pics)::-webkit-scrollbar { display: none; }
  html body .card:has(.pool > .tok img) .pool:not(.pics) > .tok { flex: 0 0 44%; width: 44%; scroll-snap-align: start; }
  /* up to four photos: all side by side, nothing hidden off the edge (18 Nov 2026, second look: the 3rd and 4th tiles were cut off with no sign
     that the row scrolls); five or more keep the swipe row, with a soft fade at the right edge that says "there is more" */
  /* up to four photos: two per row, twice as big, names wrap inside the tile (Heike 26 Nov 2026, report 438: four in a row were too small, "Hippocampus" ran out of its box) */
  html body .card:has(.pool > .tok img) .pool:not(.pics):not(:has(> .tok:nth-child(5))) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; margin: 6px 0 12px; padding: 2px 0 8px; }
  html body .card:has(.pool > .tok img) .pool:not(.pics):not(:has(> .tok:nth-child(5))) > .tok { width: auto; min-width: 0; }
  html body .card:has(.pool > .tok img) .pool:not(.pics):not(:has(> .tok:nth-child(5))) > .tok img { max-height: 30vh; }
  html body .card:has(.pool > .tok img) .pool:not(.pics) > .tok { overflow-wrap: anywhere; hyphens: auto; }
  html body .card:has(.pool > .tok img) .pool:not(.pics):has(> .tok:nth-child(5)) { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  html body .card:has(.pool > .tok img) .bins { grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr)); gap: 6px; }
  html body .card:has(.pool > .tok img) .bin { min-height: 74px; padding: 6px 4px; border-radius: 12px; }
  html body .card:has(.pool > .tok img) .bin b { font-size: 16px; margin-bottom: 4px; }
  /* five or more boxes: three per row, so long names (Christianity, Islam…) never run into each other (Heike 18 Nov 2026, report 308: "not hardcoded, a better template") */
  html body .card:has(.pool > .tok img) .bins:has(> .bin:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .card:has(.pool > .tok img) .bin .got { justify-content: center; gap: 3px; }
  html body .card:has(.pool > .tok img) .bin .tok:has(img) { width: 34px; padding: 2px; font-size: 0; gap: 0; }
  html body .card:has(.pool > .tok img) .bin .tok:has(img) img { width: 28px; height: 28px; border-radius: 6px; }
}

/* words drawn faint in pictures and exercises are hard to read (Heike 15 Nov 2026, reports 145 + 159: "the text is very faint… and all similar formats"):
   every svg text drawn in cream at low opacity is lifted; lines and shapes keep their own colour */
html body :is(.stagebox, .visual, .art, .qart, .oi, .frame) svg text:is([fill^="rgba(241,236,226,.1"], [fill^="rgba(241,236,226,.2"], [fill^="rgba(241,236,226,.3"], [fill^="rgba(241,236,226,.4"], [fill^="rgba(241,236,226,.5"], [fill^="rgba(241, 236, 226, 0.3"], [fill^="rgba(241, 236, 226, 0.4"]) { fill: rgba(241,236,226,.82) !important; }
html body :is(.stagebox, .visual, .art, .qart, .oi, .frame) svg text[fill="#2FD0C5"] { fill: #2FD0C5; }
/* a card taller than the screen starts at its top: centred only while it fits (Sascha 15 Nov 2026, report 137: "cut off at the top on desktop") */
html body .player .card { justify-content: safe center !important; }
html body .card > .flips { align-content: safe center; }
/* an order step drawn as a picture (report 166): the drawing fills the place of a photo */
html body .tok .oart, html body .seq .oart { display: block; width: 100%; aspect-ratio: 1; }
html body .tok .oart svg, html body .seq .oart svg { width: 100%; height: 100%; display: block; background: #15111f; border-radius: 8px; }
/* turned-over cards are easy to read on phones (Heike 15 Nov 2026, report 173: "the text is very small… a global change"):
   the turned card takes the whole row, its words at reading size; the others stay two by two */
@media (max-width: 640px) {
  /* Heike 18 Nov 2026, report 358: keep the cards two by two when turned; the word stays on top of its back, the text readable */
  html body .flips .fl.on .back { font-size: 15px !important; line-height: 1.4; padding: 12px 10px !important; justify-content: safe center; overflow-y: auto; }
  html body .flips .fl.on .back.photo .bt { font-size: 14.5px; padding: 26px 10px 10px !important; }
}
/* matching cards: a short word or number on its own (√2, Φ, S) in readable size */
html body .match.big .mt.L:not(:has(img)) span { font-size: 20px; font-weight: 600; }
html body .match.big .mt span { font-size: 15.5px; }
/* a box name always stays inside its box, at every width and in every language (18 Nov 2026, report 308) */
html body .bin b { overflow-wrap: anywhere; hyphens: auto; }
/* exactly four boxes to sort into: two per row, so the names and the pictures have room (Heike 18 Nov 2026, report 325: "make the fields two per row … as a general") */
html body .card .bins:has(> .bin:nth-child(4)):not(:has(> .bin:nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* the card's word on its back too, so a turned card still says what it is (Heike 18 Nov 2026, report 358) */
html body .fl .back .bh { display: block; font-weight: 600; font-size: 14px; color: #2FD0C5; letter-spacing: .02em; margin-bottom: 4px; }
html body .fl .back.photo .bh { display: none; }
/* bigImg: a quiz whose picture IS the question gets more room (27 Nov 2026, Heike: report 451) */
@media (max-width: 899px) { html body img.qimg.big, html body img.qimg.big.fit.fit.fit { height: clamp(220px, 37vh, 460px); max-height: none; } }
      /* photos always whole, blurred copy round them (29 Oct 2026) */
/* journey/styles/reactions.css */
/* The three taps on every card (reactions.js, 2 Nov 2026): Love it · Problem? · More.
   13 Nov 2026 (Heike: "better at the bottom, like on Facebook, so it's easier to see"): one row with the words
   visible, right above Back / Next, where you finish reading. Quiet until pressed, then the house colour. */
.p-react { position: relative; display: flex; justify-content: center; gap: 8px; margin: 0 auto 8px; max-width: 460px; }
.p-react[hidden] { display: none; }
.p-react .rx { flex: 1 1 auto; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 10px; border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--ink-2);
  font: 500 14px/1.1 var(--sans); font-style: normal; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p-react .rx svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-react .rx svg .dot { fill: currentColor; }
.p-react .rx-w { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .p-react .rx:hover { color: var(--ink); background: var(--panel); } }
.p-react .rx:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.p-react .rx[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.p-react .rx-love[aria-pressed="true"] svg { fill: var(--gold); }

/* the words box opens upward, over the card, never off the bottom of the screen */
.p-react .rx-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30;
  width: min(340px, calc(100vw - 24px)); box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2, var(--bg)); border: 1px solid var(--panel-line); box-shadow: 0 -10px 30px rgba(0,0,0,.4); font-size: 14px; color: var(--ink); text-align: left; }
.p-react .rx-tip[hidden] { display: none; }
.p-react .rx-tip p { margin: 0 0 8px; } .p-react .rx-tip small { color: var(--ink-3); }
.p-react .rx-tip .rx-thanks { margin: 0; }
.p-react .rx-tip textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }   /* 16px: iPhone doesn't zoom in */
.p-react .rx-tip div { display: flex; gap: 10px; margin-top: 8px; }
.p-react .rx-tip button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.p-react .rx-tip .rx-send { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600; }

/* the ? box: three kinds (2 Nov 2026) — only used when the report sheet (report-fab.js) is missing */
.p-react .rx-tip .rx-kinds { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.p-react .rx-tip .rx-kinds .rx-kind { text-align: left; width: 100%; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.p-react .rx-tip .rx-kinds .rx-kind.on { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* small phones: a little tighter so all three words stay on one line */
@media (max-width: 400px) {
  .p-react { gap: 6px; margin-bottom: 6px; }
  .p-react .rx { gap: 4px; padding: 0 6px; font-size: 13px; }
  .p-react .rx svg { width: 17px; height: 17px; }
}
/* desktop: the row sits centred above Back / Next; the card gives up the row's height (44 + 8 px) so the buttons stay on screen */
@media (min-width: 900px) and (orientation: landscape) {
  .p-react { max-width: 420px; }
  html body .player:has(#p-react:not([hidden])) .card { height: min(1000px, calc(100dvh - 197px)); }
}

/* 14 Nov 2026 (Heike, report 77: "the three only as icons, the text as hover, in between the arrow back and the
   arrow front"): #p-react now sits inside the bottom bar. Phone + upright tablet: icons only (the word is the
   button's title and aria-label), between the Back arrow and Next/Skip; Back shows only its arrow.
   While a quiz shows its centred "Check" button, and on a computer, the row stays above the bar as before. */
html body .p-bottom .pbar > #p-react { grid-row: 1; grid-column: 1 / -1; margin: 0 auto; width: 100%; }
html body .p-bottom .pbar > :not(#p-react) { grid-row: 2; }
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .p-bottom .pbar:has(#go) { grid-template-columns: auto minmax(0, 1fr) auto; }
  html body .p-bottom .pbar:has(#go) > * { grid-row: 1; }
  html body .p-bottom .pbar:has(#go) > #p-react { grid-column: 2; width: auto; justify-self: center; gap: 6px; }
  html body .p-bottom .pbar:has(#go) > #p-react .rx { flex: none; width: 44px; min-height: 44px; height: 44px; padding: 0; }
  html body .p-bottom .pbar:has(#go) > #p-react .rx svg { width: 20px; height: 20px; }
  html body .p-bottom .pbar:has(#go) > #p-react .rx-w { display: none; }
  html body .p-bottom .pbar:has(#go) #back { width: 44px; padding: 0; justify-content: center; }
  html body .p-bottom .pbar:has(#go) #back span { display: none; }
  html body .p-bottom .pbar:has(#go) #go { min-width: 112px; padding: 0 22px; }
  html body .p-bottom .pbar:has(#go) #go.wait { display: none; }   /* hidden Next kept the room of its long waiting label */
  /* the words box opens over the card, the full width of the screen */
  html body .p-bottom .pbar:has(#go) > #p-react .rx-tip { position: fixed; left: 12px; right: 12px; width: auto; transform: none; bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  html body .p-bottom .pbar > #p-react { gap: 4px; }
  html body .p-bottom .pbar > #p-react .rx { width: 40px; }
}

/* 15 Nov 2026 (Heike: "less obvious, more like Facebook… it's too much big button"): no frames, no fill, small and grey,
   like Facebook's Like · Comment · Share. Only a pressed one takes the house colour. Still 40px+ to tap. */
html body .p-react .rx { flex: 0 0 auto; border: 0 !important; background: transparent !important; color: var(--ink-3, rgba(241,236,226,.55));
  min-height: 40px; padding: 0 8px; gap: 5px; font-size: 13.5px; font-weight: 500; }
html body .p-react .rx svg { width: 17px; height: 17px; }
html body .p-react { gap: 14px; margin-bottom: 2px; }
html body .p-react .rx[aria-pressed="true"] { color: var(--gold); }
@media (hover: hover) { html body .p-react .rx:hover { color: var(--ink); } }
/* between Back and Next (phones): just the three small icons */
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .p-bottom .pbar > #p-react { gap: 2px; }
  html body .p-bottom .pbar > #p-react .rx { width: 40px; min-height: 40px; height: 40px; }
  html body .p-bottom .pbar > #p-react .rx svg { width: 19px; height: 19px; }
}
/* 15 Nov 2026 (Heike: "still way too much text… you showed me a different version"): icons only on phones and tablets,
   also above a quiz's Check button; the word stays as the button's title / label */
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .p-react .rx-w { display: none; }
  html body .p-react .rx { width: 40px; padding: 0; justify-content: center; }
  html body .p-react .rx svg { width: 19px; height: 19px; }
}

/* 15 Nov 2026 (Heike, report 134: "why does it change the layout once all is added?"): ONE footer, also with a Check button.
   Check takes the place of Next (Back · ♡ ? + · Check); Skip steps aside while Check shows, so nothing jumps. */
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .p-bottom .pbar:has(#go.check:not(.wait)) > #fwd { display: none; }
}
/* Check stands where Next stands, the same size (overrides layout.css's centred Check on phones; 15 Nov 2026, report 134) */
@media not ((min-width: 900px) and (orientation: landscape)) {
  html body .player .p-bottom .pbar:has(#go) > #go.check { grid-column: 3; justify-self: end; width: auto; min-width: 112px; padding: 0 22px; }
}
 /* ♡ ? + on every card (2 Nov 2026) */
/* journey/styles/tabs.css */
/* the course's own tabs (journey.js CTABS, 2 Nov 2026): Map · My progress · Leaderboard · Collection · My work.
   In the top bar on a computer; a tab bar at the bottom on phones (above the progress pages, below the card player). */
header.bar .ctabs { display: flex; gap: 4px; align-items: center; margin: 0 auto; }
header.bar .brand { flex: none; }
.ctabs .ct { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.ctabs .ct svg { width: 18px; height: 18px; flex: none; }
.ctabs .ct:hover { color: var(--ink); background: var(--panel); }
.ctabs .ct.on { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.ctabs-phone { display: none; }
/* the old tabs inside the progress pages: the bar does that now */
#sh-tabs { display: none; }
/* narrower screens: first the course name next to the logo goes, then the tab words (the icons keep a tooltip) */
@media (max-width: 1180px) { header.bar .brand { display: none; } header.bar .ctabs .ct { padding: 8px 11px; font-size: 14px; } }
@media (max-width: 980px) { header.bar .ctabs .ct span { display: none; } header.bar .ctabs .ct { padding: 9px 12px; } }
@media (max-width: 640px) {
  header.bar .ctabs { display: none; }
  .ctabs-phone { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--panel-line); }
  body:has(.shelf.open) .ctabs-phone { z-index: 56; }
  .ctabs-phone .ct { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; border-radius: 12px; }
  .ctabs-phone .ct svg { width: 22px; height: 22px; }
  .xp-big { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .w-go { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  main.wrap { padding-bottom: 150px; }   /* room for the points badge above the tabs, so the last hexagons scroll clear of it (sweep 9 Nov 2026) */
  .shelf .sh-wrap { padding-bottom: 90px; }
}

/* the bell next to the photo (bell.js from the members area, 2 Nov 2026) */
header.bar #nb { margin-left: auto; }
header.bar #nb + #shelf-btn { margin-left: 8px; }
/* the order in the top bar: back · logo · name · tabs · bell · photo (the bell may be added before the tabs) */
header.bar > .ctabs { order: 1; }
header.bar > #nb { order: 2; margin-left: 0; }
header.bar > #shelf-btn { order: 3; }
@media (max-width: 640px) { header.bar > #nb { margin-left: auto; } }
header.bar:has(> #nb) > #nb { margin-left: auto; }
header.bar:has(> #nb) > #shelf-btn { margin-left: 8px; }

/* phones, whatever the system text size (Heike's Android, 2 Nov 2026: the progress page ran past the right edge):
   nothing in the progress pages may be wider than the screen; the name/points row shrinks and wraps */
.shelf, .shelf .sh-wrap, .shelf .sh-pane { max-width: 100vw; overflow-x: hidden; }
.shelf .sh-pane > *, .shelf .dash-card, .shelf .prof-head { min-width: 0; max-width: 100%; box-sizing: border-box; }
.prof-head { grid-template-columns: auto minmax(0, 1fr) auto; }
.prof-head > div { min-width: 0; }
.prof-head h2 { overflow-wrap: anywhere; }
.prof-head .kicker { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .prof-head { gap: 12px; }
  .prof-head .kicker { letter-spacing: .12em; }
  .prof-xp b { font-size: clamp(30px, 9vw, 40px); }
}
/* very narrow, or very large text: the points go under the name */
@media (max-width: 380px) {
  .prof-head { grid-template-columns: auto minmax(0, 1fr); }
  .prof-head .prof-xp { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}
.shelf [class*="grid"], .shelf .dash-wks { min-width: 0; }
/* "‹ My courses" is gone (Heike, 2 Nov 2026); its pill style would otherwise beat [hidden] */
#bar-home { display: none !important; }
/* the bottom tabs always fit: five equal parts, a word too long for its part ends in … */
.ctabs-phone .ct { min-width: 0; }
.ctabs-phone .ct span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { overflow: hidden; }
/* the seven world tiles: the words may wrap; very narrow screens: one tile per row */
.dash-wk { min-width: 0; grid-template-columns: 30px minmax(0, 1fr); }
.dash-wk b, .dash-wk small { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .dash-weeks { grid-template-columns: minmax(0, 1fr); } }

/* the course admin: tap a name on the leaderboard → that student's page (2 Nov 2026) */
.lb-all { display: inline-block; margin: 0 0 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 14px; text-decoration: none; }
.lb-admin li[data-who] { cursor: pointer; }
.lb-admin li[data-who]:hover, .lb-admin li[data-who]:active { background: var(--panel); }

/* phones (Heike, 4 Nov 2026: "too tight … no padding in the right … like a window in a window"): the progress pages scroll
   as one page. The scroll box reaches the screen edges, so its scrollbar sits at the edge and not on the cards; the side
   space and the room above the tab bar are inside it, so nothing is cut off at the right or above the tabs. */
@media (max-width: 640px) {
  .shelf .sh-wrap { padding: 8px 0 0; }
  .shelf .sh-tabs, .shelf .sh-seg { margin-left: 18px; margin-right: 18px; width: auto; }
  .shelf .sh-pane { padding: 4px 18px calc(96px + env(safe-area-inset-bottom)); }
  .shelf .prof-head .prof-xp { padding-right: 2px; }
}
/* Messages tab in the course tabs (8 Nov 2026): unread number like the members-area bar; the round chat button isn't needed here */
.ctabs .ct-msg { position: relative; }
.ctabs .ct-n { position: absolute; top: 2px; left: calc(50% + 3px); min-width: 18px; height: 18px; border-radius: 9px; background: #E5484D; color: #fff; font: 700 10.5px/18px Outfit, system-ui, sans-serif; font-style: normal; padding: 0 5px; text-align: center; }
header.bar .ctabs .ct-n { left: 22px; top: 0; }
.ctabs .ct-n[hidden] { display: none; }
.dc-btn { display: none !important; }
/* My work: the book's constructions to download (Heike 15 Nov 2026, report 129: "available inside the missions but also outside, so they can find it easily") */
      /* the course's own tabs (2 Nov 2026) */
/* journey/styles/course.css */
/* Crystal Geometry's own pieces (the engine's journey.css imports this): its world games and slide pieces */
/* journey/styles/world2.css */
/* World 2 · The Atom: the slide pieces (atom, models, periodic table, spin, orbitals, noble gases) sized for a game card.
   Kai's first draft (15 Oct 2026), brought to Heike's deck of 19 Oct 2026. */

/* the descent: Bohr picture, then the cloud */
.w2-atom { position: absolute; inset: 0; }
.w2-layer { position: absolute; inset: 0; transition: opacity 1s; }
.w2-layer.off { opacity: 0; pointer-events: none; }
.w2-layer .hint { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.bohr { width: 100%; height: 100%; }
.bohr .b-part, .bohr .b-shells { opacity: 0; transition: opacity .8s ease; }
.bohr .b-part.on, .bohr .b-shells.on { opacity: 1; }

/* the models: one lens at a time, big; the others wait off to the side */
.w2-models { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; }
.w2-models .m-col { grid-area: 1 / 1; width: min(100%, 440px); max-height: 100%; display: flex; flex-direction: column; border: 1px solid var(--gold); border-radius: 18px; padding: 12px 16px; background: var(--bg-2);
  opacity: 0; transform: translateX(40px) scale(.96); pointer-events: none; transition: opacity .5s, transform .5s; overflow-y: auto; }
.w2-models .m-col.seen { transform: translateX(-40px) scale(.96); }
.w2-models .m-col.on { opacity: 1; transform: none; pointer-events: auto; }
.w2-models .m-icon { width: 100%; height: clamp(70px, 14vh, 140px); flex: none; }
.w2-models .m-y { font: 600 14px var(--sans); color: var(--gold); letter-spacing: .1em; }
.w2-models h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); margin: 2px 0 4px; }
.w2-models p { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin: 0 0 8px; }
.w2-models .m-k { color: var(--gold-light); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.w2-models .m-r { color: var(--ink); } .w2-models .m-h { color: var(--ink-3); }
.w2-models b { color: var(--ink); font-weight: 500; }

/* the periodic table */
.w2-table { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.w2-counts { display: flex; gap: 6px; }
.w2-counts .cnt { flex: 1; border: 1px solid rgba(241,236,226,.1); border-radius: 10px; padding: 5px 8px; display: flex; flex-direction: column; opacity: .3; transition: .5s; }
.w2-counts .cnt b { font: 600 clamp(18px, 2.4vw, 28px) var(--sans); color: var(--c); line-height: 1.1; }
.w2-counts .cnt span { font-size: 11px; color: var(--ink); } .w2-counts .cnt i { font-size: 10px; color: var(--ink-3); font-style: normal; }
.w2-counts [data-b="s"] { --c: var(--s); } .w2-counts [data-b="p"] { --c: var(--p); } .w2-counts [data-b="d"] { --c: var(--d); } .w2-counts [data-b="f"] { --c: var(--f); }
.w2-counts .cnt.on { opacity: 1; border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.w2-table .ptable { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(18, 1fr); grid-template-rows: repeat(7, 1fr) 6px 1fr 1fr; gap: 2px; position: relative; }
.w2-table .pt { border-radius: 3px; border: 1px solid rgba(241,236,226,.08); background: rgba(241,236,226,.03); display: flex; align-items: center; justify-content: center; transition: background .5s, box-shadow .5s; min-width: 0; }
.w2-table .pt b { font: 500 clamp(6px, .85vw, 12px) var(--sans); color: var(--ink-3); }
.w2-table .pt-s { --c: var(--s); } .w2-table .pt-p { --c: var(--p); } .w2-table .pt-d { --c: var(--d); } .w2-table .pt-f { --c: var(--f); }
.w2-table .lit-s .pt-s, .w2-table .lit-p .pt-p, .w2-table .lit-d .pt-d, .w2-table .lit-f .pt-f { background: color-mix(in srgb, var(--c) 30%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.w2-table .lit-s .pt-s b, .w2-table .lit-p .pt-p b, .w2-table .lit-d .pt-d b, .w2-table .lit-f .pt-f b { color: var(--ink); }
.w2-table .show-noble .pt.g-noble { box-shadow: 0 0 0 2px var(--gold); z-index: 1; }
.w2-table .show-groups .pt.g-alkali { box-shadow: 0 0 0 2px var(--s); z-index: 1; } .w2-table .show-groups .pt.g-halogen { box-shadow: 0 0 0 2px var(--p); z-index: 1; }
.w2-table .pt.rad { background: repeating-linear-gradient(135deg, rgba(241,236,226,.03) 0 4px, transparent 4px 8px); border-color: rgba(241,236,226,.05); }
.w2-table .pt.rad b { color: #4d4a44; }

/* orbitals as shapes */
.w2-pyramid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.w2-pyramid .py-row { display: grid; grid-template-columns: minmax(70px, 18%) 1fr; align-items: center; }
.w2-pyramid .py-l { font-size: 11px; color: var(--ink-3); } .w2-pyramid .py-l b { display: block; font: 600 22px var(--sans); color: var(--c); }
.w2-pyramid .py-cells { display: flex; justify-content: center; gap: 5px; }
.w2-pyramid .orb { flex: 0 1 13%; aspect-ratio: 1.1; max-height: 15vh; border-radius: 9px; background: color-mix(in srgb, var(--c) 7%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }

/* flat first */
.w2-planes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 10px; }
.w2-planes .plane-c { display: flex; flex-direction: column; align-items: center; text-align: center; }
.w2-planes svg { width: 100%; height: auto; aspect-ratio: 1; }
.w2-planes b { font: 600 22px var(--sans); color: var(--c); }
.w2-planes span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); opacity: .3; transition: opacity .6s; }
.w2-planes .plane-c:has(.plane.drawn) span { opacity: 1; }
.plane .ps-shape { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
.plane .ps-tip { opacity: 0; transition: opacity .5s; } .plane .ps-lobes { transition: fill-opacity .8s; }
.plane.drawn .ps-shape { stroke-dashoffset: 0; } .plane.drawn .ps-tip { opacity: 1; } .plane.drawn .ps-lobes { fill-opacity: .18; }
@media (max-width: 700px) { .w2-planes { grid-template-columns: 1fr 1fr; } }

/* noble gases and the D block: a row of solids with names underneath */
.w2-row { position: absolute; inset: 0 0 46px; }
.w2-labels { position: absolute; left: 0; right: 0; bottom: 6px; height: 40px; }
.w2-labels .nl { position: absolute; transform: translateX(-50%); text-align: center; opacity: .25; transition: opacity .5s; white-space: nowrap; }
.w2-labels .nl.on { opacity: 1; }
.w2-labels .nl b { display: block; font: 600 16px var(--sans); color: var(--ink); } .w2-labels .nl span { font-size: 10.5px; color: var(--ink-3); }
@media (max-width: 700px) { .w2-labels .nl b { font-size: 12px; } .w2-labels .nl span { display: none; } }
@media (max-height: 800px) and (min-width: 701px) {
  .w2-models .m-col { width: min(100%, 560px); padding: 10px 14px; }
  .w2-models .m-icon { height: 56px; }
  .w2-models h3 { font-size: 24px; margin: 0 0 2px; }
  .w2-models p { font-size: 13px; line-height: 1.35; margin-bottom: 5px; }
}

/* ---- 19 Oct 2026 deck ---- */
/* the atom: charges drawn still */
.w2-atom { display: grid; place-items: center; }
.w2-atom .bohr { max-height: 100%; }

/* the table: numbers, rows (shells), families, then the stones lit */
.w2-table .pt { position: relative; flex-direction: column; line-height: 1; }
.w2-table .pt i { display: none; font: 500 clamp(5px, .6vw, 9px) var(--sans); font-style: normal; color: #f2b33d; }
.w2-table .nums .pt i { display: block; }
.w2-table .pt.walk { box-shadow: 0 0 0 2px #f2b33d, 0 0 14px rgba(242,179,61,.6); z-index: 1; }
.w2-table .pt.walk b { color: #fff; }
.w2-table .rows .pt.odd { background: rgba(242,179,61,.13); border-color: rgba(242,179,61,.32); }
.w2-table .rows .pt b, .w2-table .fams .pt b { color: var(--ink-2); }
.w2-table .fams .pt[style*="--fam"] { background: color-mix(in srgb, var(--fam) 30%, transparent); border-color: color-mix(in srgb, var(--fam) 70%, transparent); }
.w2-table .fams .pt[style*="--fam"] b { color: var(--ink); }
.w2-table .show-mine .pt { opacity: .25; }
.w2-table .show-mine .pt.mine { opacity: 1; box-shadow: 0 0 0 2px #fff; z-index: 1; }
.w2-table .show-mine .pt.mine b { color: #fff; }
.w2-table .num-card { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 12px; border: 1px solid rgba(242,179,61,.45); border-radius: 12px;
  background: rgba(20,17,13,.94); z-index: 2; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; pointer-events: none; min-width: 0; }
.w2-table .card-on .num-card { opacity: 1; transform: none; }
.w2-table .num-card > b { font: 600 clamp(26px, 5vw, 48px) var(--sans); color: #f2b33d; }
.w2-table .num-card div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.w2-table .num-card span { font-size: clamp(11px, 1.6vw, 16px); color: var(--ink-2); }
.w2-table .num-card .nc-name { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.w2-table .num-card em { font-style: normal; font-weight: 700; margin-left: 4px; }
.w2-table .num-card .nc-p em { color: #ff7b7f; } .w2-table .num-card .nc-e em { color: #7fb2ff; }
.w2-table .pt-chips { display: flex; flex-wrap: wrap; gap: 4px; flex-direction: row !important; }
.w2-table .pt-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 1px 6px; border-radius: 8px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.w2-table .pt-chip b { font: 600 clamp(11px, 1.8vw, 18px) var(--sans); color: var(--c); line-height: 1.15; }
.w2-table .pt-chip i { font: 9px var(--sans); font-style: normal; color: var(--ink-3); }
.w2-table .pt-chips.fam .pt-chip { flex-direction: row; } .w2-table .pt-chips.fam .pt-chip b { font-size: clamp(9px, 1.3vw, 13px); color: var(--ink); }
.w2-table .pt-xtal { position: relative; z-index: 3; pointer-events: none; }
.w2-table .pt-xc { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 4px 10px; border: 1px solid rgba(242,179,61,.45); border-radius: 12px;
  background: rgba(20,17,13,.95); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.w2-table .pt-xc.on { opacity: 1; visibility: visible; }
.w2-table .pt-xc img { height: 100%; width: 26%; object-fit: contain; background: #0b0a08; border-radius: 8px; flex: none; }   /* whole stone, never cropped */
.w2-table .pt-xv { height: 100%; width: 24%; flex: none; position: relative; overflow: hidden; }
.w2-table .pt-xv canvas { width: 100% !important; height: 100% !important; }
.w2-table .pt-xt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.w2-table .pt-xt .nc-name { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.w2-table .pt-xf { font: 500 clamp(11px, 1.8vw, 18px) var(--sans); color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.w2-table .pt-note { font-size: clamp(9px, 1.3vw, 13px); color: var(--ink-3); }
@media (max-width: 700px) { .w2-table .pt-xv { display: none; } }

/* spin: one column at a time on a narrow card */
.w2-spinbox { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; }
.w2-spin { width: 100%; height: 100%; }
.w2-spin .sp-g { opacity: 0; transition: opacity .6s; } .w2-spin .sp-g.on { opacity: 1; }
.w2-spin .flow { animation: w2-flow 1.6s linear infinite; } .w2-spin .flow.rev { animation-direction: reverse; }
@keyframes w2-flow { to { stroke-dashoffset: -24; } }

/* what a sphere allows: a string beside each row, then the orbitals */
.w2-pyramid .sh-heads { display: grid; grid-template-columns: 30% 1fr; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.w2-pyramid .sh-heads i { font-style: normal; } .w2-pyramid .hd-orb { display: none; } .w2-pyramid.orbitals .hd-orb { display: inline; } .w2-pyramid.orbitals .hd-ring { display: none; }
.w2-pyramid .py-row { grid-template-columns: 30% 1fr; }
.w2-pyramid .sm-str { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; padding-right: 6px; }
.w2-pyramid .sm-str svg { width: 100%; height: auto; display: block; }
.w2-pyramid .sm-str span { font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.w2-pyramid .py-rest { display: grid; grid-template-columns: minmax(44px, 16%) 1fr; align-items: center; }
.w2-pyramid .cw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 700px) { .w2-pyramid .sm-str span { display: none; } }

/* the compass tiles */
.w2-tiles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the noble gases: configurations under the names */
.w2-row.tall { bottom: 92px; }
.w2-labels.cfgs { height: 86px; }
.w2-labels .cfg { display: block; font: italic 11px var(--sans); color: var(--ink-2); white-space: nowrap; }
.w2-labels .obs { display: flex; gap: 3px; justify-content: center; margin-top: 2px; }
.w2-labels .ob { display: flex; align-items: center; gap: 1px; }
.w2-labels .ob small { font-size: 9px; color: var(--ink-3); margin-right: 1px; }
.w2-labels .ob i { font: 600 9px/1 'DejaVu Sans', system-ui, sans-serif; font-style: normal; color: var(--ink); width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; border: 1.2px solid; border-radius: 3px; letter-spacing: -1px; }
.w2-labels .ob-s i { border-color: #f2c94c; } .w2-labels .ob-p i { border-color: #e5484d; }
@media (max-width: 700px) { .w2-labels .cfg, .w2-labels .obs { display: none; } .w2-row.tall { bottom: 46px; } .w2-labels.cfgs { height: 40px; } }

/* ---- 20 Oct 2026: phones ---- */
/* flat first, 2 × 2: each drawing fits its half, so "a square" / "a hexagon" are never cut off */
@media (max-width: 700px) {
  .w2-planes { grid-template-rows: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .w2-planes .plane-c { min-height: 0; justify-content: center; }
  .w2-planes svg { flex: 0 1 auto; width: auto; max-width: 100%; height: auto; min-height: 0; max-height: calc(100% - 46px); }
}

/* the periodic table, full screen (20 Oct 2026): a button in its corner; an upright phone shows it sideways, like a video */
.w2-fsbtn { position: absolute; right: 8px; bottom: 8px; z-index: 4; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid rgba(242,179,61,.55); background: rgba(20,17,13,.9); color: #f2b33d; cursor: pointer; }
.w2-fsbtn.top { bottom: auto; top: 8px; right: auto; left: 8px; }   /* the hidden crystal sits top right */
.w2-fsbtn:hover { background: rgba(242,179,61,.16); }
.w2-fs { position: fixed; inset: 0; z-index: 400; background: var(--bg, #15111f); overflow: hidden; }
.w2-fs .w2-fsin { position: absolute; left: 0; top: 0; width: 100vw; height: 100dvh; display: flex; flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 64px calc(10px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); }
@media (orientation: portrait) {
  .w2-fs .w2-fsin { width: 100dvh; height: 100vw; transform-origin: 0 0; transform: translateX(100vw) rotate(90deg); padding: 12px 64px 10px 14px; }
}
.w2-fs .fs-target { position: relative; inset: auto; flex: 1; min-height: 0; width: auto; height: auto; max-height: none; margin: 0; padding: 0; border: 0; }
.w2-fs .w2-fsbtn { display: none; }
.w2-fs .fs-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(241,236,226,.25); background: rgba(20,17,13,.9); color: var(--ink, #f1ece2); cursor: pointer; }
.w2-fs .pt b { font-size: clamp(9px, 1.45vmax, 17px); }
.w2-fs .pt i { display: block; font-size: clamp(7px, .8vmax, 11px); }
.w2-fs .w2-counts .cnt b { font-size: clamp(14px, 2vmax, 26px); }
.w2-fs .w2-table .num-card > b { font-size: clamp(24px, 4vmax, 48px); }
.w2-fs .w2-table .num-card span, .w2-fs .w2-table .pt-xf { font-size: clamp(11px, 1.5vmax, 18px); }
.w2-fs .w2-table .pt-xv { display: block; }
.w2-fs .w2-table .pt-chip b { font-size: clamp(11px, 1.5vmax, 18px); }
.w2-fsbar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; padding-top: 8px; flex: none; }
.w2-fsbar p { margin: 0; font-family: var(--serif); font-size: clamp(14px, 1.7vmax, 19px); line-height: 1.3; color: var(--ink-2, #d8d2c6); }
.w2-fsbar .sb { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.w2-fsbar .sb.on { border-color: var(--gold); color: var(--gold); } .w2-fsbar .sb:disabled { opacity: .25; cursor: default; }

/* ---- 21 Oct 2026: the games (games2.js) ---- */
.stagebox.ex > svg.g2 { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; }
.stagebox.ex.nope { animation: shake .35s; }
.g2 .g2-pulse { animation: g2pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes g2pulse { 50% { opacity: .45; transform: scale(1.25); } }
.g2 .g2-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: g2draw .6s ease-out forwards; }
@keyframes g2draw { to { stroke-dashoffset: 0; } }
.g2 .g2-tip, .g2 .g2-box, .g2 .g2-ring.live { cursor: pointer; }
.g2 .g2-ring.live circle:first-child { stroke-opacity: .85; stroke-dasharray: 8 8; animation: g2spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes g2spin { to { transform: rotate(360deg); } }
.g2 .g2-box:hover rect { fill: rgba(241,236,226,.08); }
.g2 .g2-arrow { animation: g2drop .35s ease-out; }
@keyframes g2drop { from { transform: translateY(-40px); opacity: 0; } }
.g2 .g2-e { filter: drop-shadow(0 0 6px #7fb2ff); }
/* answers under the picture */
.tools .g2-pick { display: inline-flex; align-items: center; gap: 8px; }
.tools .g2-pick.has-art .pa { width: 34px; height: 34px; display: inline-grid; place-items: center; }
.tools .g2-pick .pa svg { width: 34px; height: 34px; }
.tools .g2-pick.right { border-color: var(--d); background: color-mix(in srgb, var(--d) 25%, transparent); color: var(--ink); }
.tools .g2-pick.wrong { opacity: .4; text-decoration: line-through; }
.tools .g2-next { margin-left: auto; }
.tools .g2-slide { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; font-size: 13px; color: var(--ink-3); }
.tools .g2-slide input { flex: 1; accent-color: var(--gold); height: 28px; }
.tools .g2-name { font: 500 22px var(--serif); color: var(--gold-light, #e8c977); min-width: 11ch; }
/* the table as a game board */
.stagebox.ex .w2-table .pt { cursor: pointer; }
.stagebox.ex .w2-table .pt:hover { outline: 1px solid var(--gold); z-index: 2; }
.w2-table .pt.g2-no { animation: shake .35s; background: rgba(229,72,77,.35) !important; }
.w2-table .pt.g2-yes, .w2-table .pt.g2-found { box-shadow: 0 0 0 2px var(--gold) !important; background: rgba(242,179,61,.4) !important; z-index: 3; }
.w2-table .pt.g2-found b, .w2-table .pt.g2-yes b { color: #fff !important; }
.stagebox.ex .w2-table .pt b { font-size: clamp(8px, 1vw, 14px); }
/* the sphere game: the string on top, the orbitals filling the rest */
.stagebox.g2-stack { display: flex; flex-direction: column; }
.g2-string { flex: 0 0 auto; padding: 8px 12px 0; } .g2-string svg { width: 100%; height: auto; max-height: 110px; display: block; }
.g2-orbs { flex: 1 1 0; min-height: 0; position: relative; } .g2-orbs canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* the four lenses, one big at a time */
.w2-lens { position: absolute; inset: 0; }
.w2-lens-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 14px; opacity: 0; transform: scale(.94); transition: opacity .5s, transform .5s; }
.w2-lens-v.on { opacity: 1; transform: none; }
.w2-lens-t { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; justify-content: center; }
.w2-lens-t b { font: 600 18px var(--sans); color: var(--gold); letter-spacing: .08em; }
.w2-lens-t span { font: 500 clamp(26px, 3vw, 40px) var(--serif); color: var(--ink); }
.w2-lens-t i { font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.w2-lens-i { flex: 1 1 0; min-height: 0; width: 100%; }
.cap .w2-hid { display: block; margin-top: 6px; color: var(--ink-3); }
/* the noble gases / D block in the game: only the ones shown so far get a name */
.w2-labels.focus .nl:not(.on) { visibility: hidden; }
.w2-labels.focus { overflow: hidden; }

/* 21 Oct 2026 evening: the flat shapes with their tilings behind (the deck's s-plane), and No gaps in space */
/* two by two, so each shape is big; the tiling stays inside its own square, clear of the label */
.w2-planes.tiled { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.w2-planes.tiled .plane-c { min-height: 0; justify-content: center; }
.w2-planes.tiled svg { overflow: hidden !important; flex: 0 1 auto; width: auto; max-width: 100%; height: auto; min-height: 0; max-height: calc(100% - 46px); }
.w2-planes.tiled .ps-tiles { opacity: .35; transition: opacity .8s; }
.w2-planes.tiled .plane.drawn .ps-tiles { opacity: 1; }
/* Mission 5: a stone outside and in (stoneLook) */
.w2-look { position: absolute; inset: 0; }
.w2-look-v { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s; }
.w2-look-v.on { opacity: 1; pointer-events: auto; }
/* Mission 15: the slide's parts list, along the bottom of the picture; tap one to switch it */
.w2-io { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; pointer-events: none; }
.w2-io .io { all: unset; pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(241,236,226,.16);
  background: rgba(21,17,31,.82); cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.w2-io .io.on { opacity: 1; border-color: var(--c, rgba(242,179,61,.6)); }
.w2-io .io i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.w2-io .io b { font: 500 13px var(--sans); color: var(--ink); }
.w2-io .io span { display: none; }
.w2-io .io em { font: inherit; color: inherit; font-style: normal; } .w2-io .io .sh { display: none; }
@media (max-width: 599px) { .w2-io { gap: 4px; bottom: 6px; } .w2-io .io { padding: 3px 8px; gap: 5px; } .w2-io .io b { font-size: 11.5px; } .w2-io .io .lg { display: none; } .w2-io .io .sh { display: inline; } }

/* M2 definition card (24 Oct 2026): the Bohr picture behind, four orbitals under the last line */
.defwall.adball { display: grid; grid-template-columns: 1fr; place-items: center; }
.defwall.adball svg { width: 82%; height: 82%; }
.deflines .ad-orbs { position: relative; display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.deflines .ad-orbs .orb { width: 74px; height: 70px; }

/* 24 Oct 2026: truncation and the Archimedean solids (Heike: "more interactive, more visual") */
/* the edges under the cut slider: one bar per kind of edge, by the two faces it joins; gold when all are equal */
.tools .g2-edges { flex: 1 1 100%; display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); }
.tools .g2-edges .er { display: grid; gap: 5px; }
.tools .g2-edges .er > div { display: flex; align-items: center; gap: 8px; }
.tools .g2-edges .ek { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.tools .g2-edges .ek i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.tools .g2-edges .eb { flex: 1; height: 8px; border-radius: 4px; background: rgba(241,236,226,.08); overflow: hidden; }
.tools .g2-edges .eb b { display: block; height: 100%; background: var(--ink-3); border-radius: 4px; transition: background .2s; }
.tools .g2-edges.eq .eb b { background: var(--gold); }
.tools .g2-edges em { font-style: normal; color: var(--gold-light, #e8c977); min-height: 1.2em; }
/* close the corner */
.tools .g2-corner { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.tools .g2-faces { display: flex; gap: 6px; flex-wrap: wrap; }
.tools .g2-faces .tool { display: inline-flex; align-items: center; gap: 6px; }
.tools .g2-count { display: inline-flex; align-items: center; gap: 8px; }
.tools .g2-count .tool { min-width: 40px; font-size: 20px; line-height: 1; }
.tools .g2-count b { font-weight: 500; color: var(--ink); min-width: 15ch; text-align: center; }
.tools .g2-five { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; }
.tools .g2-five span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); opacity: .35; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.tools .g2-five span svg { width: 28px; height: 28px; }
.tools .g2-five span i { font-style: normal; }
.tools .g2-five span.got { opacity: 1; filter: none; color: var(--ink); }
/* the corner code, in the sentence under the picture */
.g2-code { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; margin-right: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(242,179,61,.12); }
.g2-code b { margin-left: 6px; color: var(--gold-light, #e8c977); font-weight: 600; }
/* the thirteen: the picture with a tap spot on each solid */
.stagebox.g2-13box { display: grid; place-items: center; container-type: size; }
.g2-13 { position: relative; width: min(100%, calc(100cqh * 1200 / 771)); aspect-ratio: 1200 / 771; }
.g2-13 img { width: 100%; height: 100%; display: block; }
.g2-13 button { position: absolute; width: 19%; height: 30%; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; padding: 0; }
.g2-13 button:hover { border-color: rgba(242,179,61,.5); }
.g2-13 button.seen { border-color: rgba(241,236,226,.18); }
.g2-13 button.got { border-color: var(--gold); background: rgba(242,179,61,.12); }
.tools .g2-faces .tool.on svg polygon { stroke: #1a1508; fill: #1a1508; }
  /* World 2's slide pieces */
/* journey/styles/world3.css */
/* World 3 · Molecular Geometry: the deck's 3D pieces in a card (slides3.js) and the games (games3.js) */
.w3-one { position: absolute; inset: 0; }
.w3-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: 100%; height: 100%; }
.stagebox > .w3-row:first-child:last-child { position: absolute; inset: 0; }
.w3-cell { position: relative; min-height: 0; border-radius: 14px; background: rgba(241,236,226,.025); transition: opacity .5s; }
.w3-cell.dim { opacity: .3; }
.w3-v { position: absolute; inset: 0; }
.w3-lab { position: absolute; left: 10px; top: 6px; z-index: 2; font: 600 16px var(--sans); color: var(--ink); pointer-events: none; }
/* single, double, triple: two rows */
.stagebox:has(.w3-share) { display: flex; flex-direction: column; gap: 6px; }
.w3-share { position: relative !important; height: auto !important; flex: 1; transition: opacity .5s; }
.w3-share.low.dim { opacity: .3; }
/* atom + partner = molecule */
.w3-eq { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1.6fr; align-items: center; gap: 4px; }
.w3-eq .w3-cell { height: 100%; }
.w3-eq .w3-cell:nth-child(1), .w3-eq .w3-cell:nth-child(3) { height: 55%; }
.w3-op { font: 600 32px var(--sans); color: var(--gold); }
.w3-x { position: absolute; right: 8px; bottom: 6px; z-index: 2; font: 600 20px var(--sans); color: var(--gold); }
.w3-hidemol .w3-mol { opacity: 0; transition: opacity .6s; }
.w3-mol { transition: opacity .8s; }
/* the games */
.stagebox.ex > svg.g3 { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; }
.g3 .g3-box { cursor: pointer; }
.g3 .g3-box:hover rect { fill: rgba(241,236,226,.08); }
.g3 .g3-spot { cursor: pointer; }
.g3 .g3-open { animation: g3pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.g3 .g3-blink { animation: g3blink 1s ease-in-out infinite; }
@keyframes g3pulse { 50% { transform: scale(1.18); } }
@keyframes g3blink { 50% { opacity: .35; } }
.g3 .g3-cell { stroke-width: 2.5; stroke-linejoin: round; }
.g3 .g3-cell.gold { fill: rgba(242,179,61,.55); stroke: #f2b33d; }
.g3 .g3-cell.copy { fill: rgba(242,179,61,.18); stroke: #f2b33d; }
.g3 .g3-cell.in { animation: g3in .5s ease-out; transform-origin: 0 0; }
@keyframes g3in { from { opacity: 0; } }
.g3 .g3-hexline { fill: none; stroke: #f1ece2; stroke-width: 3; stroke-linejoin: round; animation: g3in .6s ease-out; }
.g3-fit { position: absolute; inset: 0; display: flex; flex-direction: column; }
.g3-fit .w3-one { position: relative; flex: 1; inset: auto; }
.g3-read { text-align: center; font: 500 18px var(--sans); color: var(--ink-2); padding: 6px; } .g3-read b { color: var(--ink); }
.tools .g3-slide { flex: 1; min-width: 160px; accent-color: #f2b33d; }
.art.photo-art { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
/* the small periodic table above a question */
.card > #qstage:has(.pt-art) { display: flex; align-items: center; justify-content: center; padding: 6px; }
#qstage .pt-art { width: 100%; max-height: 100%; }
.w3-lab.big { font-size: 34px; left: 16px; top: 10px; }
/* a single big view (mission 7): the cell fills the stage */
.w3-one > .w3-cell { position: absolute; inset: 0; }
/* mission 8: one molecule, dots and sticks above, orbitals below */
.w3-pair { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.w3-pair .w3-cell { height: 100%; }
.w3-sub { position: absolute; right: 12px; top: 10px; z-index: 2; font: 500 15px var(--sans); color: var(--gold); letter-spacing: .06em; pointer-events: none; }
/* mission 9: atom + partner on top, small; = ; the molecule big below, centred */
.w3-eq { grid-template-columns: 1fr auto 1fr !important; grid-template-rows: 32% auto 1fr; }
.w3-eq .w3-cell { height: 100% !important; }
.w3-eq > .w3-eqs { grid-column: 1 / -1; text-align: center; line-height: 1; }
.w3-eq > .w3-cell:last-child { grid-column: 1 / -1; }
.w3-lab.big small { font-size: 18px; color: var(--gold); font-weight: 500; margin-left: 6px; }
/* the colour gap game */
.g3-gap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 24px; }
.g3-spec { position: relative; height: 44px; border-radius: 10px; background: linear-gradient(90deg, #6a3df0, #2f6bff, #19b5c9, #2fbf5a, #d8d23a, #f39a2b, #e5332b, #a8201b); }
.g3-spec i { position: absolute; top: -6px; bottom: -6px; width: 14%; background: #15111f; border-radius: 6px; box-shadow: 0 0 0 2px #f2b33d; transition: left .15s; }
.g3-gap-out { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g3-swatch { width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 0 40px rgba(255,255,255,.12) inset, 0 0 0 2px rgba(241,236,226,.2); transition: background .2s; }
.g3-gap-read { margin: 0; font: 500 18px var(--sans); color: var(--ink-2); } .g3-gap-read b { color: var(--ink); }
.g3 .g3-cell-t { cursor: pointer; }
.g3-fit .w3-one { min-height: 0; } .g3-read { flex: none; }
/* share, give, pool: where the charge sits (the deck's s-hold, 31 Oct 2026) */
.w3-hold { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; }
.w3-hb { display: flex; flex-direction: column; min-height: 0; opacity: .12; transition: opacity .6s; border: 1px solid rgba(241,236,226,.12); border-radius: 14px; padding: 8px 10px; background: rgba(241,236,226,.025); }
.w3-hb.on { opacity: 1; }
.w3-hb h3 { margin: 0 0 2px; font-size: 18px; color: #f1ece2; } .w3-hb h3 small { font-size: 11px; color: #f2b33d; letter-spacing: .06em; text-transform: uppercase; margin-left: 4px; }
.w3-hb svg { flex: 1; min-height: 70px; width: 100%; overflow: visible; margin: 4px 0; }
.w3-hb p { margin: 0; font-size: 13px; line-height: 1.35; color: #c9c2b4; }
.w3-hb p span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #f2b33d; margin-top: 4px; }
.w3-hb .w4 { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(241,236,226,.12); color: #f1ece2; opacity: 0; transition: opacity .6s; }
.w3-hold.w4 .w4 { opacity: 1; }
.w3-hb-sum { position: absolute; left: 12px; right: 12px; bottom: 8px; text-align: center; font-size: 14px; color: #c9c2b4; opacity: 0; transition: opacity .6s; } .w3-hb-sum.on { opacity: 1; } .w3-hb-sum b { color: #f1ece2; font-weight: 500; }
@media (max-width: 700px) { .w3-hold { gap: 6px; padding: 6px; } .w3-hb { padding: 6px 8px; } .w3-hb svg { min-height: 26px; margin: 2px 0; } .w3-hb p { font-size: 11px; line-height: 1.3; } .w3-hb .w4 { margin-top: 4px; padding-top: 4px; } .w3-hb h3 { font-size: 15px; } }
/* very short phones: the four cards keep their height and the box scrolls (review 2 Dec 2026) */
@media (max-width: 700px) and (max-height: 720px) { .w3-hold { grid-template-rows: auto auto; overflow-y: auto; align-content: start; } .w3-hb { min-height: auto; } .w3-hb svg { flex: none; height: 30px; } }
  /* World 3's slide pieces and games */
/* journey/styles/world4.css */
/* World 4 · The Charge: the live slides in a window (slides4.js) and the games (games4.js) */
.w4-deck { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; background: #15111f; display: block; }
.hero.live .w4-deck { border-radius: 0; }
/* the slide window needs some height on its own */
.stagebox:has(.w4-deck) { min-height: 300px; }

/* slider rows in the tools */
.tools .g4-slide { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; font: 500 15px var(--sans); color: var(--ink-2); }
.tools .g4-slide input { flex: 1; accent-color: #f2b33d; }
.tools .tool.on { border-color: #f2b33d; color: var(--ink); }

/* build a ring: the deck's own ring fills the stage */
.g4-sq { position: absolute; inset: 0; }
.g4-sq svg.g3 { width: 100%; height: 100%; }

/* climb the ladder */
.g4-lad { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; padding: 18px; }
.g4-rung { display: flex; flex-direction: column; gap: 6px; }
.g4-rung small { font: 500 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.g4-rung b { font: italic 600 30px var(--serif); color: var(--gold); }
.g4-rung > span { color: var(--ink-2); font-size: 16px; }
.g4-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.g4-facts i { font-style: normal; font-size: 16px; padding: 6px 12px; border-radius: 10px; background: rgba(241,236,226,.05); }
.g4-facts i.y { color: var(--ink); border-left: 3px solid #f2b33d; }
.g4-facts i.n { color: var(--ink-2); border-left: 3px solid rgba(241,236,226,.2); }
.g4-lamps { display: flex; flex-direction: column; gap: 12px; }
.g4-lamp { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(241,236,226,.18); background: rgba(241,236,226,.03); color: var(--ink-2); font: 500 16px var(--sans); cursor: pointer; text-align: left; }
.g4-lamp i { width: 26px; height: 26px; border-radius: 50%; background: #29223d; flex: none; transition: background .3s, box-shadow .3s; }
.g4-lamp.on { color: var(--ink); border-color: #f2b33d; }
.g4-lamp.on i { background: #f2c94c; box-shadow: 0 0 18px #f2c94c; }

/* find the lone electron */
.g4-cfg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 18px; flex-wrap: wrap; }
.g4-el { display: flex; flex-direction: column; align-items: center; }
.g4-el b { font: 600 64px var(--serif); color: var(--d, #2fafa7); line-height: 1; }
.g4-el span { color: var(--ink-2); font-size: 15px; }
.g4-boxes { display: flex; gap: 26px; align-items: flex-end; }
.g4-boxes small { display: block; font: 500 13px var(--sans); letter-spacing: .1em; color: var(--ink-3); margin-bottom: 6px; }
.g4-boxes p { display: flex; gap: 6px; margin: 0; }
.g4-boxes button { width: 52px; height: 52px; border-radius: 10px; background: rgba(21,17,31,.9); color: var(--ink); font: 600 22px var(--sans); cursor: pointer; transition: transform .2s, background .3s; }
.g4-boxes button.d { border: 2px solid #2fafa7; }
.g4-boxes button.s { border: 2px solid #f2c94c; }
.g4-boxes button.right { background: rgba(242,179,61,.45); transform: scale(1.08); }
.g4-boxes button.wrong { animation: nope .4s; }

@media (max-width: 700px) {
  .g4-lad { grid-template-columns: 1fr; }
  .g4-boxes button { width: 40px; height: 40px; font-size: 18px; }
  .g4-el b { font-size: 46px; }
}

/* the lamps: the centre lamp sits a little apart (2026-11-07, as slide 7) */
.g4-lamp.g4-centre { margin-bottom: 8px; }

/* story games (games5.js, 8 Nov 2026): a labelled slider in the tool row */
.tools .g5-slide { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid rgba(241,236,226,.25); border-radius: 999px; color: var(--ink); font-size: 15px; }
.tools .g5-slide input { width: 130px; accent-color: var(--gold); }
.tools .g5-slide b { min-width: 74px; color: var(--gold); font-weight: 600; }
  /* World 4: the slide windows and games */
   /* the course's own pieces (its world games and slides) */
/* journey/styles/phone.css */
/* Phones (Heike, 29 Oct 2026): nothing stands three in a row on a phone. Every card that puts pictures,
   answers or tasks side by side stacks them here instead, one under the other, in ONE place for all cards.
   Loaded last, so it wins over every card's own columns. Two-up grids (2 × 2, the flip cards) stay. */
@media (max-width: 599px) {
  /* picture answers: stacked, one under the other, each picture big, the words under it (Heike, 8 Nov 2026: "these images should be
     stacked on phone because they are very small… make that the template for such exercises"; was two side by side since 29 Oct) */
  html body .card > .opts.pics { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; row-gap: 10px; }
  /* still stacked, but each answer is a wide strip, the picture beside its words, so all three answers and the question fit on one
     phone screen without scrolling (re-review 18 Nov 2026: students scrolled 450–690 px, the right answer of the course's very first
     card sat out of sight) */
  html body .card > .opts.pics .opt { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: row; align-items: center; aspect-ratio: auto; min-height: 0; margin: 0; text-align: left; }
  html body .card > .opts.pics .opt .oi { flex: 0 0 46%; width: 46%; height: clamp(108px, 15vh, 160px); aspect-ratio: auto; min-height: 0; padding: 4px; }   /* bigger answer pictures (Heike 21 Nov 2026, report 391: "pictures way bigger, hard to read") */
  html body .card > .opts.pics .opt .oi svg { width: 100%; height: 100%; }
  html body .card > .opts.pics .opt .ot { flex: 1 1 auto; justify-content: flex-start; text-align: left; padding: 8px 12px; font-size: 16.5px; line-height: 1.3; }
  html body .card:has(.opts.pics) img.qimg, html body .card:has(.opts.pics) img.qimg.fit.fit.fit { height: clamp(110px, 17vh, 160px); max-height: 17vh; }
  html body .card:has(.opts.pics) .qart svg { max-height: 19vh; }
  /* turn-over cards: the back's words never run off the top (Heike, 8 Nov 2026: "strangely cut off"): a bit taller, smaller words,
     and a long back scrolls inside the card instead of spilling over its edge */
  html body .flips .fl, html body .flips.n6 .fl, html body .flips.n5 .fl { aspect-ratio: 3 / 4; }
  html body .fl .bt { font-size: 14.5px; line-height: 1.35; }
  html body .fl .back { justify-content: safe center; overflow-y: auto; }
  html body .fl .back.photo { justify-content: safe flex-end; overflow-y: auto; }
  html body .fl .back.photo .bt { padding: 28px 10px 10px; }
  /* matching rows: long words wrap (and hyphenate) inside their tile instead of running out of it, also with the phone's bigger
     text setting (Heike, 8 Nov 2026: "Logarithmic spiral" overflowed); the small pictures give the words a little more room */
  html body .match .mt { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 6px; gap: 6px; }
  html body .match .mt span { min-width: 0; max-width: 100%; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; font-size: 15px; line-height: 1.25; }
  /* an answer that is only a word or a number (a guess: 90°, 1.618, ∞) needs no big picture tile (8 Nov 2026) */
  html body .card > .opts.pics .opt .oi.wo { height: 72px; }
  /* the caption inside an answer's drawing repeats the words beside it, and shrinks to unreadable on a phone */
  html body :is(.opt .oi, .mt, .fl .front, .honey .hx) svg text.cap { display: none; }
  /* matching: pictures you can see */
  html body .match:not(.big) .mt :is(img, svg) { width: 64px !important; height: 64px !important; flex: 0 0 64px !important; }
  /* match big: the picture above its name, as wide as the card (was 48px, smaller than normal) */
  html body .match.big .mt.L { flex-direction: column; align-items: stretch; text-align: center; }
  html body .match.big .mt.L :is(img, svg) { width: 100% !important; height: auto !important; aspect-ratio: 1; flex: 0 0 auto !important; }   /* svg too: Lewis formulas, 16 Nov 2026 */
  /* big matching: the right side a picture with its words under it too, so long words never get cut (Heike, 8 Nov 2026: spirals card) */
  html body .match.big .mt.R { flex-direction: column; align-items: stretch; text-align: center; }
  html body .match.big .mt.R :is(img, svg) { width: 100% !important; height: auto !important; aspect-ratio: 1; flex: 0 0 auto !important; }
  /* small print, a size up */
  html body .card .kicker { font-size: 13px; }
  html body .fturn { font-size: 12.5px; }
  /* photo picks: one wide photo under the other, the name big enough to read */
  .photos { grid-template-columns: 1fr !important; }
  .photos .ph { aspect-ratio: 16 / 9; }
  .photos .ph span { padding: 8px 10px; font-size: 15px; }
  /* tasks in columns: one under the other, each keeps its big picture on top */
  .tasks.tcols { grid-template-columns: 1fr !important; }
  .tasks.tcols .task .ico { flex: none; width: 100%; height: clamp(150px, 30vh, 260px); }
  /* match: the two columns share the width fairly; a long word ("Logarithmic") wraps instead of pushing past the screen */
  .match { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .match .mt { min-width: 0; overflow-wrap: break-word; gap: 8px; }
  .match .mt.R { padding-left: 10px; }
}
/* with picture answers, the question's own picture gets smaller so all three answers fit on the screen (Heike 21 Nov 2026, report 391) */
@media (max-width: 600px) { html body .card:has(> .opts.pics) > .qimg { max-height: 84px !important; width: auto !important; margin-top: 4px !important; margin-bottom: 4px !important; } }
@media (max-width: 640px) {
  /* the seventh card to turn, alone in its row, takes the whole row (1 Dec 2026) */
  html body .player .card > .flips > .fl:nth-child(7):last-child { grid-column: 1 / -1; aspect-ratio: auto; height: 260px; }
}
    /* phones: nothing three in a row, one place for every card (29 Oct 2026) — keep last */
/* journey/styles/quotes.css */
/* Quote gems and the Quote book (19 Nov 2026, Heike: quotes from famous people, collected like gems).
   Upright text only (no italics on dark, 12 Nov 2026). */
.quote-gem { position: absolute; left: var(--gx); top: var(--gy); z-index: 4; width: 34px; height: 34px; padding: 5px; border: 0; background: none; opacity: .92; cursor: pointer; animation: gemglint 4s ease-in-out 1s infinite; }
.quote-gem .qmark { width: 24px; height: 24px; display: block; }
.quote-gem.found { opacity: 1; animation: none; }
.q-text { margin: 4px 0 14px; padding: 0 0 0 14px; border-left: 3px solid var(--gold, #2FAFA7); font-family: var(--sans); font-style: normal; font-size: 19px; line-height: 1.5; color: var(--ink); }
.q-who { margin: 0 0 4px; font-size: 16px; }
.q-who b { color: var(--gold, #2FAFA7); font-weight: 600; }
.q-who span { color: var(--ink-3); margin-left: 4px; }
.q-src { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.q-share { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; }
#m-body .kicker .qmark { width: 16px; height: 16px; vertical-align: -3px; }
.qtile .gtx small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qtile .gpic { border-radius: 50%; }
.qtile .gpic .qmark { width: 26px; height: 26px; }
 /* quote gems + the Quote book (19 Nov 2026, from Hello Geometry) */
/* journey/styles/points.css */
/* POINTS BADGE — the one standard for every course (Heike, 12 Nov 2026: "we want global css on this"):
   just the number, small, no word "points" (8 Nov: "it takes too much space"); the hidden-gems count under it only when there is one */
html body .xp-big { min-width: 0; padding: 6px 12px; }
html body .xp-big b { font-family: Outfit, system-ui, sans-serif; font-weight: 600; font-size: 22px; margin-bottom: 0; }
html body .xp-big > span { display: none; }
html body .xp-big .xp-gems:empty, html body .xp-big .xp-streak:empty { display: none; }
html body .xp-big .xp-gems { margin-top: 4px; padding-top: 4px; font-family: Outfit, system-ui, sans-serif; font-size: 12.5px; }
@media (max-width: 520px) { html body .xp-big { padding: 5px 10px; } html body .xp-big b { font-size: 20px; } }

/* journey/styles/focus.css */
/* Focus mode + the calm map (20 Nov 2026, Heike: "too much going on, you don't know where to click"; "in the course
   they're really in the course"). PHONES ONLY for now (≤ 600px). The approved mock-up: ‹ Home · World N · Name ☰ · photo;
   title, crystal bar, missions, Hands-on centred; the map in the middle; Continue + the points counter at the bottom.
   Hexagons: done = full colour + turquoise tick · not yet = grey · the next one = turquoise glow + "You are here".
   focus.js builds the Home link, the world button and the course menu. Keep this file after phone.css / points.css. */

/* the course menu (a sheet from the bottom) — on every screen size */
.fc-menu { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; }
.fc-shade { position: absolute; inset: 0; background: rgba(21,17,31,.6); opacity: 0; transition: opacity .2s; }
.fc-sheet { position: relative; width: min(100%, 560px); max-height: 88svh; overflow: auto; background: var(--bg-2, #1E192D); border-radius: 22px 22px 0 0;
  padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.45); transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.fc-menu.open .fc-shade { opacity: 1; } .fc-menu.open .fc-sheet { transform: none; }
.fc-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(241,236,226,.25); margin: 0 auto 14px; }
.fc-k { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.fc-ws { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fc-w { padding: 8px 13px; border-radius: 99px; border: 1px solid rgba(241,236,226,.16); background: transparent; color: var(--ink); font: 500 14.5px var(--sans); cursor: pointer; }
.fc-w.on { border-color: var(--gold); color: var(--gold); } .fc-w.locked { color: var(--ink-3); opacity: .6; }
.fc-items { display: flex; flex-direction: column; }
.fc-item { display: flex; align-items: center; gap: 16px; padding: 13px 4px; border: 0; border-top: 1px solid rgba(241,236,226,.08); background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.fc-item i { width: 26px; display: grid; place-items: center; color: var(--gold); } .fc-item svg { width: 22px; height: 22px; }
.fc-item b { display: block; font: 500 17px var(--sans); } .fc-item small { display: block; margin-top: 2px; font: 400 13.5px var(--sans); color: var(--ink-3); }
.fc-home, .fc-pill { display: none; }

@media all {   /* phones and computers alike since 20 Nov 2026 (Heike: "3. please fix") */
  /* the top bar: ‹ Home · the world button · your photo */
  html.focus body > header.bar { gap: 8px !important; }
  html.focus body > header.bar > img, html.focus body > header.bar > .brand, html.focus body > header.bar > #nb,
  html.focus body > header.bar > .dvsfab-top, html.focus body > header.bar > .week-chip, html.focus body > header.bar > .bar-home,
  html.focus body > header.bar > .ctabs { display: none !important; }
  html.focus .fc-home { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 8px 4px; color: var(--ink-2); font: 500 15.5px var(--sans); text-decoration: none; }
  html.focus .fc-home svg { width: 18px; height: 18px; }
  html.focus .fc-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: 0 auto; padding: 8px 14px; border-radius: 99px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: transparent; color: var(--gold); font: 600 15px var(--sans); cursor: pointer; }
  html.focus .fc-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } html.focus .fc-pill svg { width: 16px; height: 16px; flex: none; }
  html.focus .fc-dot { position: absolute; top: 3px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; }

  /* no tab bar: everything it offered is in the course menu */
  html.focus nav.ctabs-phone { display: none !important; }

  /* the world page: one quiet column */
  html.focus #worlds, html.focus .map-btn, html.focus #w-kicker, html.focus .w-time, html.focus #hunt-chip, html.focus .home-foot { display: none !important; }
  html.focus .w-info { text-align: center; }
  html.focus #w-title { margin: 4px 0 10px !important; font-family: var(--sans) !important; font-weight: 600 !important; font-size: 26px !important; line-height: 1.15 !important; }
  html.focus #w-title em { font-family: var(--sans) !important; font-style: normal !important; font-weight: 600 !important; color: var(--gold); }
  html.focus .w-info { display: flex; flex-direction: column; }
  html.focus .w-info .w-progress { order: 2; margin: 0 !important; } html.focus .fc-hands { order: 3; } html.focus #w-title { order: 1; }
  html.focus .w-info .w-progress { display: flex !important; flex-direction: column !important; align-items: center !important; height: auto !important; width: 100%; }
  html.focus .w-crystal { width: 100% !important; max-width: 300px; margin: 0 auto; flex: none !important; }
  html.focus .w-progress .w-crystal svg { display: block; width: 100% !important; height: auto !important; }   /* the bar fills its 300 px, centred (Heike 21 Nov 2026: it was a small stub on the left) */
  html.focus .w-progress .pr-text { flex: none !important; width: 100%; justify-content: center !important; }
  html.focus .pr-text { justify-content: center; text-align: center; margin: 8px 0 0 !important; }
  html.focus .fc-hands { display: flex; justify-content: center; margin-top: 10px; }
  html.focus .fc-hands .hands-fab { position: static !important; transform: none !important; margin: 0 !important; padding: 6px 14px !important; font-size: 14px !important; box-shadow: none !important; }
  /* the map in the middle, room for the bottom row */
  html.focus main.wrap { display: flex; flex-direction: column; min-height: calc(100svh - 66px); padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important; }
  html.focus main.wrap > .comb { margin-top: auto !important; margin-bottom: auto !important; }

  /* the bottom row: Continue on the left, the points counter on the right, both the same height */
  html.focus #cont-chip { position: fixed !important; z-index: 31; left: 12px; right: 142px; bottom: calc(14px + env(safe-area-inset-bottom)); width: auto !important; min-height: 74px;
    margin: 0 !important; background: var(--gold) !important; border: 0 !important; color: var(--bg) !important; box-shadow: 0 6px 22px color-mix(in srgb, var(--gold) 35%, transparent) !important; }
  html.focus #cont-chip * { color: var(--bg) !important; } html.focus #cont-chip svg { stroke: var(--bg) !important; fill: var(--bg) !important; }
  html.focus .xp-big { right: 12px !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; width: auto; min-width: 106px !important; max-width: 150px; height: 74px; justify-content: center; padding: 6px 8px !important; }
  html.focus .xp-big b { font-size: 26px !important; margin-bottom: 2px !important; } html.focus .xp-big > span { display: none; }
  html.focus .xp-big .xp-gems { margin-top: 2px !important; padding-top: 3px !important; font-size: 12px !important; white-space: nowrap; }
  html.focus .xp-big .xp-gems .gl { font-size: 9.5px !important; letter-spacing: .06em !important; }
  html.focus .xp-big small, html.focus .xp-big .xp-streak { margin-top: 1px !important; font-size: 11px !important; }
  body:has(.player.open) #cont-chip, body:has(.shelf.open) #cont-chip, body:has(.cover) #cont-chip { display: none !important; }

  /* the seven-worlds overview: the world pictures sit on the ground colour (their own black is lifted), labels readable */
  html.focus #map .world-cell .face { background-color: var(--bg) !important; background-blend-mode: screen; filter: none !important; }
  html.focus #map .cell .lab small, html.focus #map .cell .lab small * { color: var(--ink-2) !important; }
  html.focus #map .cell.locked .face { opacity: .55; }
  /* the hexagons: three looks */
  html.focus #comb .cell .lab i, html.focus #comb .cell .musttag { display: none !important; }          /* no numbers */
  html.focus #comb .cell .ring { display: none !important; }
  html.focus #comb .cell::before, html.focus #comb .cell[data-t]::before, html.focus #comb .cell[data-t].must::before { background: rgba(241,236,226,.12) !important; opacity: 1 !important; filter: none !important; }
  /* done: the picture in full colour, a turquoise tick */
  html.focus #comb .cell.done .face { filter: none !important; }
  html.focus #comb .cell.done .face::after { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 90%) !important; }
  html.focus #comb .cell.done::before, html.focus #comb .cell[data-t].done::before { background: color-mix(in srgb, var(--gold) 50%, transparent) !important; }
  html.focus #comb .cell.done .ck { background: var(--gold) !important; color: var(--bg) !important; box-shadow: none !important; }
  html.focus #comb .cell.done .lab b { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.8) !important; }
  /* not done yet: grey, waiting */
  html.focus #comb .cell:not(.done):not(.next):not(.ghost) .face { filter: grayscale(1) brightness(.42) !important; }
  html.focus #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: rgba(241,236,226,.55) !important; text-shadow: none !important; font-weight: 500 !important; }
  /* the next one: turquoise rim, a glow, "You are here" */
  html.focus #comb .cell.next::before, html.focus #comb .cell[data-t].next::before { background: var(--gold) !important; }
  html.focus #comb .cell.next { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--gold) 70%, transparent)); }
  html.focus #comb .cell.next .face { filter: none !important; }
  html.focus #comb .cell.next .face::after { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.5) 90%) !important; }
  html.focus #comb .cell.next .lab[data-here]::after { content: attr(data-here); }
  html.focus #comb .cell.next .lab[data-here]::after { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px;
    background: var(--gold); color: var(--bg); font: 700 9.5px var(--sans); letter-spacing: .03em; white-space: nowrap; }
}
@media all {   /* phones and computers alike since 20 Nov 2026 (Heike: "3. please fix") */
  /* the current world on the overview: turquoise like "You are here", not the old gold (20 Nov 2026) */
  html.focus #map .cell.next::before { background: var(--gold) !important; filter: none !important; }
  html.focus #map .cell.next .face::after { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 90%) !important; }
  html.focus #map .cell.next .lab b { color: #fff !important; }
  /* "not yet" hexagons: faded into the ground, not black holes */
  html[data-theme=dark].focus #comb .cell:not(.done):not(.next):not(.ghost) .face { filter: grayscale(1) brightness(.6) !important; opacity: .6; }
}
/* computers (20 Nov 2026): the same calm page, as one centred column; the map may grow; the bottom row stays a row */
@media (min-width: 601px) {
  html.focus body > header.bar { padding-left: max(18px, calc(50vw - 560px)) !important; padding-right: max(18px, calc(50vw - 560px)) !important; }
  html.focus main.wrap { display: flex !important; flex-direction: column !important; max-width: 760px; margin: 0 auto !important; grid-template-columns: none !important; }
  html.focus .w-info { grid-column: auto !important; grid-row: auto !important; align-self: stretch !important; max-width: none !important; }
  html.focus main.wrap > .comb { grid-column: auto !important; grid-row: auto !important; width: 100% !important; }
  html.focus #cont-chip { left: 50% !important; right: auto !important; transform: translateX(calc(-50% - 64px)); width: min(520px, calc(100vw - 180px)) !important; }
  html.focus .xp-big { right: auto !important; left: calc(50% + min(260px, calc(50vw - 90px)) - 64px + 12px) !important; }
  html.focus #hands-chip.hands-fab { position: static !important; }
  body.on-map main.wrap { max-width: 900px; }
  html.focus .w-info { margin-bottom: 18px !important; }
  /* the map fills the room between the top and the bottom row (journey.js fitH on computers) */
  html.focus main.wrap > .comb { flex: none !important; height: calc(100svh - 66px - 108px - 230px) !important; min-height: 320px; margin: 0 !important; }
}

/* the 'video in English' line under each video (20 Nov 2026) */
.vid-lang { margin: 6px 0 0; font: 400 12.5px var(--sans); color: var(--ink-3); text-align: center; }

/* a photo on a write card shows big, under its button (20 Nov 2026) */
.card .upload:has(img) { flex-wrap: wrap; }
html body .card .upload img { flex: 1 1 100%; width: 100% !important; height: auto !important; max-height: 240px; object-fit: contain !important; border-radius: 12px; background: rgba(241,236,226,.04); }

/* sorted photos stay recognisable in their box (20 Nov 2026, report 374: "the images change format"): 56 px, not 28 */
@media (max-width: 600px) {
  html body .card:has(.pool > .tok img) .bin .tok:has(img) { width: 60px !important; padding: 2px !important; }
  html body .card:has(.pool > .tok img) .bin .tok:has(img) img { width: 56px !important; height: 56px !important; border-radius: 8px !important; object-fit: cover !important; }
  html body .card:has(.pool > .tok img) .bin .got { min-height: 60px; }
}

/* ---- engine: the key-mission row sits under the progress, like Hands-on (20 Nov 2026) */
html.focus .w-info .hw-row { order: 3; justify-content: center; margin: 10px auto 0 !important; }
html.focus .w-info .hw-row .hw-btn { padding: 6px 14px !important; }

/* phones: Continue is one slim line, the points beside it as high (Heike, 1 Dec 2026: "cleaner and slimmer") */
@media (max-width: 600px) {
  html.focus #cont-chip { min-height: 52px !important; height: 52px; padding: 0 16px !important; border-radius: 26px !important; gap: 9px !important; right: 144px; box-shadow: none !important; }
  html.focus #cont-chip small, html.focus #cont-chip .cc-m { display: none; }
  html.focus #cont-chip b { font-size: 16px; } html.focus #cont-chip > svg, html.focus #cont-chip > .ic { width: 18px; height: 18px; }
  html.focus .xp-big { height: 52px; min-width: 104px !important; padding: 3px 8px !important; border-radius: 26px; }
  html.focus .xp-big b { font-size: 19px !important; margin-bottom: 1px !important; } html.focus .xp-big .xp-gems { margin-top: 0 !important; padding-top: 1px !important; border-top: 0; font-size: 11.5px !important; }
  html.focus main.wrap { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
  /* focus mode + calm map (20 Nov 2026) */
/* journey/styles/theme.css */
/* GENERATED by styles/theme-gen.py — do not edit by hand (20 Nov 2026). */
html[data-theme=light] :is(.stagebox, .art-stage, .qart, .opt .oi, .fl .front, .mt:has(> svg), .vp, .hero:not(:has(> img)), .m-3d, .ex-art:not(:has(> img))) { --bg: #15111F; --bg-2: #1E192D; --ink: #F1ECE2; --ink-2: rgba(241,236,226,.8); --ink-3: rgba(241,236,226,.6); --panel: rgba(241,236,226,.06); --panel-line: rgba(47,175,167,.3); --gold: #2FAFA7; --gold-light: #2FAFA7; --gold-bright: #2FD0C5; --gold-deep: #0E8C85; color: var(--ink); }
/* light · brand.css */
html[data-theme=light] { --bg: #F1ECE2; --bg-2: #F1ECE2; --panel: rgba(255,253,249,.05); --panel-line: rgba(14,140,133,0.24); --ink: #2C1E4F; --ink-2: #2C1E4F; --ink-3: #B5ADC4; --gold: #0E8C85; --gold-light: #0E8C85; --gold-bright: #0E8C85; --gold-deep: #0E8C85; --yellow: #E0A82E; --red: #D9483F; --green: #3FA463; --blue: #3F78C9; --purple: #8E5BC9; --print-red: #e12e2c; --print-green: #357828; --act-write: #c99a06; --tapestry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%230e8c85' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M28 0 L56 16.2 L56 48.5 L28 64.7 L0 48.5 L0 16.2 Z M28 64.7 L28 97'/%3E%3C/g%3E%3C/svg%3E") }
/* light · base.css */
html[data-theme=light] body { background: radial-gradient(ellipse at 50% 0%, rgba(14,140,133,0.1) 0%, rgba(241,236,226,0.96) 60%), var(--tapestry) 0 0/56px 97px, var(--bg) }
html[data-theme=light] button { color: inherit }
html[data-theme=light] em { color: #0B6F69 }
html[data-theme=light] .bar { background: rgba(241,236,226,0.85); border-bottom: 1px solid rgba(14,140,133,0.12) }
html[data-theme=light] .pill b { color: #0B6F69 }
html[data-theme=light] .kicker { color: #0B6F69 }
html[data-theme=light] .ov::before { border-top: max(1.5px, .055em) solid currentColor }
html[data-theme=light] a { color: #0B6F69 }
@media (hover: hover) {
html[data-theme=light] a:hover { color: #0B6F69 }
}
html[data-theme=light] a.pill { color: var(--ink); border-color: rgba(14,140,133,0.45) }
html[data-theme=light] a.pill:hover { color: var(--ink); background: rgba(14,140,133,0.12) }
html[data-theme=light] .pill .ic { color: #0B6F69 }
/* light · home.css */
html[data-theme=light] .world { border-radius: 14px; border: 1px solid rgba(44,30,79,0.1); background: var(--panel); color: var(--ink-3) }
html[data-theme=light] .world.on { border-color: var(--gold); color: #0B6F69 }
html[data-theme=light] .progress-ring .track { border-radius: 3px; background: rgba(44,30,79,0.08) }
html[data-theme=light] .progress-ring b.ok { color: #0B6F69 }
html[data-theme=light] .hw-dl { border-radius: 14px; border: 1px solid rgba(14,140,133,0.5); color: #0B6F69 }
@media (min-width: 900px) and (orientation: landscape) {
html[data-theme=light] .worlds { border-right: 1px solid rgba(44,30,79,0.08) }
html[data-theme=light] .world .wn { border-radius: 50%; border: 1px solid currentColor }
html[data-theme=light] .world:not(.on):not(.locked):hover { border-color: rgba(14,140,133,0.5) }
}
html[data-theme=light] .ic.fill { fill: currentColor }
html[data-theme=light] .pr-text .ok { color: #0B6F69 }
html[data-theme=light] .crystal-progress .edges { fill: none; stroke: rgba(44,30,79,0.35) }
html[data-theme=light] .xp-big { border-radius: 20px; border: 1px solid rgba(14,140,133,0.45); background: rgba(241,236,226,0.92); box-shadow: 0 10px 28px rgba(44,30,79,0.14); color: var(--ink) }
html[data-theme=light] .xp-big b { color: #0B6F69 }
html[data-theme=light] .xp-big small { color: #0B6F69 }
html[data-theme=light] .flame { color: #f2a65a }
html[data-theme=light] .xp-big .xp-gems { border-top: 1px solid rgba(14,140,133,0.25); color: #f2c94c }
html[data-theme=light] .crystal-progress .seams { fill: none; stroke: rgba(44,30,79,0.16) }
html[data-theme=light] .w-time .ic { color: #0B6F69 }
html[data-theme=light] .world-cell .lab small { color: rgba(241,236,226,0.85) }
html[data-theme=light] .w-go { border: 0; border-radius: 999px; background: var(--gold); color: #F1ECE2; box-shadow: 0 12px 30px rgba(44,30,79,0.203) }
html[data-theme=light] .w-go .w-go-ic { border-radius: 50%; background: rgba(44,30,79,0.063) }
html[data-theme=light] .world-cell:not(.next) .lab small { color: rgba(44,30,79,0.88); text-shadow: 0 1px 5px rgba(44,30,79,0.383) }
html[data-theme=light] .hunt-chip { border-radius: 999px; border: 1px solid rgba(242,201,76,.55); background: rgba(242,201,76,.12); color: var(--ink) }
html[data-theme=light] .hunt-chip .ic { color: #f2c94c }
html[data-theme=light] .hunt-chip span { color: #f2c94c }
html[data-theme=light] .hunt-chip.done { border-color: var(--right); background: rgba(14,140,133,0.15) }
html[data-theme=light] .world .wok { color: #0B6F69 }
html[data-theme=light] .hands-chip { border-color: rgba(14,140,133,0.6); background: rgba(14,140,133,0.12) }
html[data-theme=light] .hands-chip .ic { color: #0B6F69 }
html[data-theme=light] .hands-chip span { color: #0B6F69 }
html[data-theme=light] #m-body .ho-lead { color: var(--ink-2, rgba(44,30,79,0.8)) }
html[data-theme=light] #m-body .ho-sheet { border-radius: 14px; border: 1px solid rgba(14,140,133,0.55); background: rgba(14,140,133,0.12); color: var(--ink, #2C1E4F) }
html[data-theme=light] #m-body .ho-sheet .ic { color: #0B6F69 }
html[data-theme=light] #m-body .ho-sheet small { color: rgba(44,30,79,0.7) }
html[data-theme=light] #m-body .ho-count { color: rgba(44,30,79,0.6) }
html[data-theme=light] #m-body .ho-item { border-radius: 14px; background: rgba(44,30,79,0.05); border: 1px solid rgba(44,30,79,0.1) }
html[data-theme=light] #m-body .ho-item.done { border-color: rgba(14,140,133,0.5) }
html[data-theme=light] #m-body .ho-pic { border-radius: 10px; background: rgba(44,30,79,0.08) center/cover no-repeat }
html[data-theme=light] #m-body .ho-pic .ic { color: #0B6F69 }
html[data-theme=light] #m-body .ho-txt b { color: var(--ink, #2C1E4F) }
html[data-theme=light] #m-body .ho-txt small { color: rgba(44,30,79,0.65) }
html[data-theme=light] #m-body .ho-txt .ok { color: #0B6F69 }
html[data-theme=light] #m-body .ho-open, html[data-theme=light] #m-body .ho-pdf { border-radius: 999px }
html[data-theme=light] #m-body .ho-open { background: #0E8C85; color: #F1ECE2; border: 0 }
html[data-theme=light] #m-body .ho-pdf { border: 1px solid rgba(14,140,133,0.55); color: #0B6F69 }
html[data-theme=light] #m-body .ho-lock { color: rgba(44,30,79,0.55) }
html[data-theme=light] .hands-fab { border-radius: 999px; border: 1px solid rgba(14,140,133,0.6); background: rgba(241,236,226,0.92); box-shadow: 0 10px 28px rgba(44,30,79,0.158); color: var(--ink, #2C1E4F) }
html[data-theme=light] .hands-fab .ic { color: #0B6F69 }
html[data-theme=light] .hands-fab span { color: #0B6F69 }
html[data-theme=light] .hands-fab:hover { border-color: #0E8C85 }
html[data-theme=light] .hands-fab:focus-visible { outline: 2px solid var(--ink, #2C1E4F) }
html[data-theme=light] #m-body .ho-pdf.pri { background: #0E8C85; color: #F1ECE2; border-color: #0E8C85 }
html[data-theme=light] #m-body .ho-open.sec { background: transparent; color: #0B6F69; border: 1px solid rgba(14,140,133,0.55) }
html[data-theme=light] .cont-chip { border-radius: 14px; border: 1px solid rgba(14,140,133,0.55); background: rgba(14,140,133,0.1); color: var(--ink) }
html[data-theme=light] .cont-chip > svg, html[data-theme=light] .cont-chip > .ic { color: #0B6F69 }
html[data-theme=light] .soon { border: 1px dashed rgba(44,30,79,0.15); border-radius: 18px; color: var(--ink-3) }
html[data-theme=light] .hw-btn { border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #F1ECE2; box-shadow: 0 6px 22px rgba(14,140,133,0.35) }
html[data-theme=light] .hw-btn.done { background: rgba(14,140,133,0.2); color: var(--ink); box-shadow: none; border: 1px solid var(--right) }
/* light · hex.css */
html[data-theme=light] .cell { border: 0; background: none }
html[data-theme=light] .cell::before { background: rgba(44,30,79,0.14) }
html[data-theme=light] .cell .face { background: #F1ECE2 center/cover }
html[data-theme=light] .cell .face::after { background: linear-gradient(180deg, rgba(44,30,79,0.023), rgba(44,30,79,0.248) 80%) }
html[data-theme=light] .cell .lab i { border-radius: 50%; border: 1px solid rgba(241,236,226,0.7); color: #F1ECE2; background: rgba(44,30,79,0.35) }
html[data-theme=light] .cell .lab b { color: #2C1E4F; text-shadow: 0 1px 6px rgba(44,30,79,0.338) }
html[data-theme=light] .cell.locked .lab b { color: rgba(241,236,226,0.8) }
html[data-theme=light] .cell.ghost::before { background: rgba(44,30,79,0.06) }
html[data-theme=light] .cell.done .face::after { background: linear-gradient(180deg, rgba(14,140,133,0.28), rgba(120,86,20,.82) 75%) }
html[data-theme=light] .cell.done .lab b { color: #fff6dc; text-shadow: 0 1px 6px rgba(44,30,79,0.315) }
html[data-theme=light] .cell.done .lab i { box-shadow: 0 0 12px rgba(242,179,61,.9) }
html[data-theme=light] .cell.ghost::before { background: rgba(44,30,79,0.05) }
html[data-theme=light] .cell[data-t] { --t: rgba(44,30,79,0.14) }
html[data-theme=light] .honey .hx { border: 0; background: #15111F center/cover }
html[data-theme=light] .honey .hx::before { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 85%) }
html[data-theme=light] .honey .hx.drawn-tile { background: #15111F }
html[data-theme=light] .honey .hx.drawn-tile::before { background: linear-gradient(180deg, transparent 55%, rgba(21,17,31,0.8) 90%) }
html[data-theme=light] .honey .hx.drawn-tile .hi { background-color: #15111F }
html[data-theme=light] .honey .hx.drawn-tile { background: rgba(47,175,167,0.55) }
html[data-theme=light] .honey .hx .tl { color: #F1ECE2; text-shadow: 0 1px 5px rgba(0,0,0,.5) }
html[data-theme=light] .honey .hx.drawn-tile .tl { color: var(--ink); text-shadow: none }
html[data-theme=light] .honey .hx.centre { box-shadow: none }
html[data-theme=light] .honey .hx.centre .tl { color: #2FAFA7 }
html[data-theme=light] .ph.pick::after { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1ece2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/70% no-repeat }
html[data-theme=light] .honey .hx.seen::after { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315111f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/70% no-repeat }
html[data-theme=light] .honey .hx { background: rgba(47,175,167,0.55) }
html[data-theme=light] .honey .hx .hi { background: #15111F center/cover }
html[data-theme=light] .honey .hx .tl { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85) }
html[data-theme=light] .honey .hx.seen::before { background: linear-gradient(180deg, rgba(47,175,167,0.28), rgba(120,86,20,.82) 75%) }
html[data-theme=light] .honey .hx.seen .tl { color: #fff6dc }
html[data-theme=light] .cell.done .face::after { background: linear-gradient(180deg, color-mix(in srgb, var(--t, var(--gold)) 22%, transparent), color-mix(in srgb, var(--t, var(--gold)) 28%, rgba(241,236,226,0.78)) 80%) }
html[data-theme=light] .cell.done .lab b { color: #2C1E4F; text-shadow: 0 1px 5px rgba(44,30,79,0.383) }
html[data-theme=light] .cell.done .lab i { box-shadow: none }
html[data-theme=light] .cell.next .face::after { background: linear-gradient(180deg, rgba(232,190,90,.62), rgba(150,108,25,.94) 72%) }
html[data-theme=light] .cell.next .lab b { color: #2C1E4F; text-shadow: 0 1px 6px rgba(44,30,79,0.315) }
html[data-theme=light] .cell.next .lab i { background: #fff; color: #F1ECE2; border-color: #2C1E4F; box-shadow: 0 0 14px rgba(44,30,79,0.6) }
html[data-theme=light] .cell.locked .lab b { color: rgba(44,30,79,0.68); text-shadow: 0 1px 5px rgba(44,30,79,0.405) }
html[data-theme=light] .cell.locked .lab b { color: rgba(44,30,79,0.82) }
html[data-theme=light] .cell .ring path { fill: none }
html[data-theme=light] .cell .ring .rt { stroke: rgba(44,30,79,0.16) }
html[data-theme=light] .cell .ring .rp { stroke: #0E8C85 }
html[data-theme=light] .cell .ring .rp.full { stroke: #f2b33d }
html[data-theme=light] .cell .ck { border-radius: 50%; background: var(--gold, #c9a94a); color: #F1ECE2; box-shadow: 0 0 0 2px rgba(241,236,226,0.85) }
html[data-theme=light] .cell.done .lab i { background: rgba(44,30,79,0.33); color: #fff6dc; border-color: rgba(242,179,61,.7); box-shadow: none }
html[data-theme=light] .cell.done.next .lab i { background: #fff; color: #F1ECE2 }
/* light · board.css */
html[data-theme=light] .stagebox.paper { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.035), transparent 70%), #15111F }
html[data-theme=light] .tool { border-radius: 12px; border: 1px solid rgba(44,30,79,0.16); background: var(--panel); color: var(--ink-2) }
html[data-theme=light] .tools .count { color: #0B6F69 }
html[data-theme=light] .tool.sw.on { background: rgba(14,140,133,0.18); color: inherit; outline: 2px solid var(--gold) }
html[data-theme=light] .tl-eq strong { color: #0B6F69 }
html[data-theme=light] .tl-verdict.ok { color: #0B6F69 }
html[data-theme=light] .tl-verdict.no { color: #ff8a8d }
html[data-theme=light] .cw-cell { border: 1px solid rgba(44,30,79,0.08); border-radius: 8px }
html[data-theme=light] .cw-cell.mine { box-shadow: 0 0 0 2px var(--gold); background: rgba(14,140,133,0.15) }
html[data-theme=light] .c3 { border-radius: 18px; border: 1px solid rgba(44,30,79,0.14); background: var(--panel); color: var(--ink) }
html[data-theme=light] .c3.mine { border-color: var(--gold); background: rgba(14,140,133,0.1) }
html[data-theme=light] .cls-big { background: rgba(241,236,226,0.82) }
html[data-theme=light] .cls-big-card { border-radius: 24px; border: 1px solid var(--gold); background: #F1ECE2 }
html[data-theme=light] .cls-big .viewport .hint { color: var(--ink-3) }
html[data-theme=light] .cls-big-sys { color: #0B6F69 }
html[data-theme=light] .cls-props li { color: var(--ink-3); border-radius: 12px; border: 1px solid transparent }
html[data-theme=light] .cls-props li.sel { border-color: rgba(14,140,133,0.55); background: rgba(14,140,133,0.08) }
html[data-theme=light] .cls-props li i { border-radius: 50%; background: rgba(44,30,79,0.1) }
html[data-theme=light] .cls-props li.on em { color: #0B6F69 }
html[data-theme=light] .cls-demo-cap { color: #ff9a9d !important }
html[data-theme=light] .cls-demo-cap.yes { color: #0B6F69 !important }
html[data-theme=light] .cls-big-x { border-radius: 999px; border: 1px solid var(--gold); color: #0B6F69; background: transparent }
html[data-theme=light] .cls-nav { border-radius: 50%; border: 1px solid rgba(14,140,133,0.5); background: rgba(241,236,226,0.7); color: #0B6F69 }
html[data-theme=light] .c3-all { border-radius: 999px; border: 1px solid rgba(14,140,133,0.5); background: rgba(14,140,133,0.08); color: #0B6F69 }
html[data-theme=light] .c3-all:hover { background: rgba(14,140,133,0.16) }
html[data-theme=light] .lab-slider { border-radius: 12px; border: 1px solid rgba(44,30,79,0.16); background: var(--panel); color: var(--ink-2) }
html[data-theme=light] .lab-slider b { color: #0B6F69 }
html[data-theme=light] .stagebox.board.finished { box-shadow: inset 0 0 0 2px rgba(47,175,167,0.55) }
html[data-theme=light] .done-flag { border-radius: 999px; background: var(--right); color: #F1ECE2 }
html[data-theme=light] .visual > .vis-max { border-radius: 999px; border: 1px solid rgba(47,175,167,0.7); background: rgba(21,17,31,0.82); color: #F1ECE2 }
html[data-theme=light] .visual > .vis-max span { color: #2FAFA7 }
html[data-theme=light] body .card.drawmax { background: var(--bg, #15111F) }
html[data-theme=light] body .card.drawmax .vis-max { background: #2FAFA7; color: #15111F; border-color: #2FAFA7 }
/* light · overlays.css */
html[data-theme=light] .reward { background: rgba(241,236,226,0.86) }
html[data-theme=light] .rw .xp { color: #0B6F69 }
html[data-theme=light] .badge { border-radius: 999px; border: 1px solid var(--gold); color: #0B6F69 }
html[data-theme=light] .float { color: #0B6F69 }
html[data-theme=light] .modal { background: rgba(241,236,226,0.72) }
html[data-theme=light] .m-card { border-radius: 24px; background: #F1ECE2; border: 1px solid rgba(14,140,133,0.35); box-shadow: 0 30px 80px rgba(44,30,79,0.27) }
html[data-theme=light] .m-x { border-radius: 50%; border: 1px solid rgba(14,140,133,0.6); background: #F1ECE2; color: #0B6F69 }
html[data-theme=light] .m-3d { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent) }
html[data-theme=light] .m-book { background: #fbf8f1 }
html[data-theme=light] .toast { border-radius: 14px; background: #F1ECE2; border: 1px solid rgba(229,72,77,.6); color: var(--ink) }
html[data-theme=light] .toast.good { background: #F1ECE2; border-color: rgba(14,140,133,0.6) }
html[data-theme=light] .hidden-gem { border: 0; background: none }
html[data-theme=light] .gemcard { border-radius: 14px; border: 1px solid rgba(168,119,10,.45); background: rgba(168,119,10,.07); color: var(--ink) }
html[data-theme=light] .m-img, html[data-theme=light] .layer > .ph2, html[data-theme=light] .igc .ph2, html[data-theme=light] .photo3 div, html[data-theme=light] .gph, html[data-theme=light] .cols .ph2, html[data-theme=light] .tasks.tcols .timg { background-color: #F1ECE2 }
html[data-theme=light] .toast { box-shadow: 0 10px 30px rgba(44,30,79,0.203) }
html[data-theme=light] .restart-choices .go.danger { background: none; border: 1px solid rgba(229,72,77,.6); color: #ff8a8d }
html[data-theme=light] .restart-choices .go.ghost { background: none; border: 1px solid rgba(44,30,79,0.35); color: #2C1E4F }
html[data-theme=light] .rw-x { background: rgba(241,236,226,0.6) }
html[data-theme=light] .dots i.on.now { background: var(--gold); box-shadow: 0 0 0 1.5px rgba(44,30,79,0.55) }
html[data-theme=light] .gem-tip { border-radius: 12px; border: 1px solid rgba(14,140,133,0.6); background: var(--bg-2); color: #0B6F69; box-shadow: 0 10px 30px rgba(44,30,79,0.225) }
html[data-theme=light] .ask-btns .ask-no { border-radius: 16px; border: 1px solid rgba(44,30,79,0.2); background: none; color: var(--ink-2) }
html[data-theme=light] .ask-btns .go.danger { background: #e5484d; color: #2C1E4F }
html[data-theme=light] .vpage { background: #F1ECE2 }
html[data-theme=light] .vpage header { border-bottom: 1px solid rgba(14,140,133,0.2) }
html[data-theme=light] .slpage .vp-body iframe { border: 0; background: rgba(44,30,79,0.45) }
html[data-theme=light] .m-text .txt ul.nextq li { border-top: 1px solid rgba(14,140,133,0.18) }
html[data-theme=light] .m-text .txt ul.nextq b { color: #0B6F69 }
html[data-theme=light] .m-text #m-cta { box-shadow: 0 -18px 18px -4px #F1ECE2 }
html[data-theme=light] .wo-stat { border: 1px solid rgba(14,140,133,0.35); border-radius: 14px; background: rgba(14,140,133,0.06) }
html[data-theme=light] .wo-stat b { color: #0B6F69 }
html[data-theme=light] .wo-stat span { color: var(--ink-2, rgba(44,30,79,0.8)) }
html[data-theme=light] .wo-k { color: #0B6F69 }
html[data-theme=light] .wo-badges span { border-radius: 999px; background: rgba(242,201,76,.14); border: 1px solid rgba(242,201,76,.45) }
html[data-theme=light] .wo-board { color: #0B6F69; background: none; border: 0 }
html[data-theme=light] .rw .go.quiet { background: transparent; color: var(--ink); border: 1px solid rgba(44,30,79,0.3); box-shadow: none }
html[data-theme=light] .wo-stat svg { fill: none; stroke: var(--gold) }
html[data-theme=light] .wo-stat.wo-gem svg { stroke: #F2B33D }
html[data-theme=light] .wo-note { color: var(--ink-2, rgba(44,30,79,0.8)) }
html[data-theme=light] .m-img .credit { border-radius: 6px; background: rgba(241,236,226,0.6); color: #2C1E4F }
/* light · shelf.css */
html[data-theme=light] .pill.shelf-btn { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .yours { border-radius: 14px; background: rgba(62,139,214,.1); border: 1px solid rgba(62,139,214,.35); color: var(--ink) }
html[data-theme=light] .yours small { color: #7fb3e6 }
html[data-theme=light] .sh-tabs button { border-radius: 14px; border: 1px solid rgba(44,30,79,0.12); background: var(--panel); color: var(--ink-3) }
html[data-theme=light] .sh-tabs button.on { border-color: var(--gold); color: #0B6F69; background: rgba(14,140,133,0.1) }
html[data-theme=light] .sh-tabs button.on b { color: #0B6F69 }
html[data-theme=light] .sh-comb .cell.ghostgem .face { background: #F1ECE2 }
html[data-theme=light] .sh-comb .cell.ghostgem::before { background: rgba(44,30,79,0.1) }
html[data-theme=light] .cell.medal.done .face { background: radial-gradient(circle at 40% 30%, #f6dd94, #c99a32 60%, #8a6517) }
html[data-theme=light] .cell.medal.done .face::after { background: none }
html[data-theme=light] .cell.medal.done .lab b { color: #F1ECE2; text-shadow: none }
html[data-theme=light] .cell.medal.done .lab i { background: #F1ECE2; color: #0B6F69; border-color: #F1ECE2 }
html[data-theme=light] .slot { border-radius: 18px; border: 1px solid rgba(14,140,133,0.22); background: radial-gradient(ellipse 70% 45% at 50% 36%, rgba(14,140,133,0.13), transparent 70%), var(--panel) }
html[data-theme=light] .slot::after { border-radius: 50%; background: radial-gradient(closest-side, rgba(44,30,79,0.248), transparent) }
html[data-theme=light] .slot.empty { border-style: dashed; border-color: rgba(44,30,79,0.14); background: var(--panel) }
html[data-theme=light] .prof-xp b { color: #0B6F69 }
html[data-theme=light] .prof-path { border-radius: 18px; border: 1px solid rgba(14,140,133,0.18); background: var(--panel) }
html[data-theme=light] .prof-path .ok { color: #0B6F69 }
html[data-theme=light] .prof-stats button { border-radius: 16px; border: 1px solid rgba(44,30,79,0.1); background: var(--panel); color: var(--ink-3) }
html[data-theme=light] .prof-stats button:hover { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .pmenu { border-radius: 18px; border: 1px solid rgba(14,140,133,0.35); background: var(--bg-2); box-shadow: 0 24px 60px rgba(44,30,79,0.27) }
html[data-theme=light] .pmenu .pm-head small { color: #0B6F69 }
html[data-theme=light] .pmenu button { border: 0; border-radius: 12px; background: none; color: var(--ink) }
html[data-theme=light] .pmenu button:hover, html[data-theme=light] .pmenu button:focus-visible { background: rgba(14,140,133,0.1) }
html[data-theme=light] .pmenu button .ic { color: #0B6F69 }
html[data-theme=light] .pmenu hr { border: 0; border-top: 1px solid rgba(44,30,79,0.08) }
html[data-theme=light] .shelf > header.bar { background: none; border-bottom: 0 }
html[data-theme=light] .shelf > header.bar .brand { color: var(--ink) }
html[data-theme=light] .pmenu .pm-lang { color: #0B6F69 }
html[data-theme=light] .pmenu .pm-lang select { border-radius: 10px; border: 1px solid var(--panel-line); background: var(--bg-2, #F1ECE2); color: var(--ink) }
html[data-theme=light] .gw-k { color: #0B6F69 }
html[data-theme=light] .gtile { border-radius: 12px; border: 1px solid rgba(44,30,79,0.12); background: rgba(44,30,79,0.04); color: var(--ink) }
html[data-theme=light] .gtile.done { border-color: rgba(14,140,133,0.45); background: rgba(14,140,133,0.08) }
html[data-theme=light] .gpic { border-radius: 10px; background: #F1ECE2 center / cover no-repeat; color: #0B6F69 }
html[data-theme=light] .gtile.medal.done .gpic { color: #0B6F69 }
/* light · cover.css */
html[data-theme=light] .signin { background: radial-gradient(circle at 50% 30%, rgba(14,140,133,0.12), transparent 60%), var(--bg) }
html[data-theme=light] .si-card { border-radius: 24px; border: 1px solid rgba(14,140,133,0.35); background: var(--panel) }
html[data-theme=light] .si-card h2 em { color: #0B6F69 }
html[data-theme=light] .si-card input { border-radius: 12px; border: 1px solid rgba(44,30,79,0.18); background: var(--bg-2); color: var(--ink) }
html[data-theme=light] .si-card input:focus { outline: none; border-color: var(--gold) }
html[data-theme=light] .si-err { color: #ff8a8d }
html[data-theme=light] .lb li { border-radius: 12px; background: rgba(44,30,79,0.04) }
html[data-theme=light] .lb li:nth-child(1) i { color: #0B6F69 }
html[data-theme=light] .lb li:nth-child(2) i { color: #2C1E4F }
html[data-theme=light] .lb li:nth-child(3) i { color: #d39a6a }
html[data-theme=light] .lb li em { color: #0B6F69 }
html[data-theme=light] .lb li.me { background: rgba(14,140,133,0.14); outline: 1px solid rgba(14,140,133,0.5) }
html[data-theme=light] .lb-foot .link { background: none; border: 0; color: #0B6F69 }
html[data-theme=light] .link, html[data-theme=light] button.link, html[data-theme=light] .lb-foot .link { color: #0B6F69 }
html[data-theme=light] .cover { background: radial-gradient(ellipse at 30% 20%, rgba(14,140,133,0.1), transparent 55%), radial-gradient(ellipse at 50% 0%, rgba(14,140,133,0.1), rgba(241,236,226,0.97) 60%), var(--tapestry) 0 0/56px 97px, var(--bg) }
html[data-theme=light] .cv-brand i { color: #0B6F69 }
html[data-theme=light] .cv-video { border-radius: 14px; background: rgba(44,30,79,0.45) }
html[data-theme=light] .cv-book { border-radius: 14px; background: rgba(255,253,249,.05); border: 1px solid var(--panel-line); color: var(--ink) }
html[data-theme=light] .cv-book small { color: #0B6F69 }
@media (min-width: 900px) and (orientation: landscape) {
html[data-theme=light] .cv-side .cv-enter { background: none; border: 0 }
}
html[data-theme=light] .cv-x { border-radius: 50%; border: 1px solid rgba(14,140,133,0.6); background: rgba(241,236,226,0.7); color: #0B6F69 }
html[data-theme=light] .cv-side .cv-enter { background: none; border: 0 }
html[data-theme=light] .si-pop { background: rgba(241,236,226,0.72) }
html[data-theme=light] .si-pop .si-card { box-shadow: 0 30px 80px rgba(44,30,79,0.27); background: var(--bg-2) }
html[data-theme=light] .si-x { border-radius: 50%; border: 1px solid rgba(14,140,133,0.5); background: none; color: #0B6F69 }
html[data-theme=light] .lb li.out { background: transparent; border: 1px dashed rgba(44,30,79,0.18) }
/* light · dash.css */
html[data-theme=light] .sh-seg button { border-radius: 999px; border: 1px solid rgba(44,30,79,0.12); background: var(--panel); color: var(--ink-2) }
html[data-theme=light] .sh-seg button b { color: #0B6F69 }
html[data-theme=light] .dash-card { border-radius: 20px; border: 1px solid rgba(14,140,133,0.18); background: var(--panel) }
html[data-theme=light] .dash-card h3 .ic { color: #0B6F69 }
html[data-theme=light] .dash-week { border-color: rgba(14,140,133,0.45); background: linear-gradient(160deg, rgba(14,140,133,0.09), rgba(14,140,133,0.02) 60%), var(--bg-2) }
html[data-theme=light] .dash-due { color: #0B6F69 }
html[data-theme=light] .dash-bar { border-radius: 3px; background: rgba(44,30,79,0.1) }
html[data-theme=light] .hw-item { border-radius: 14px; border: 1px solid rgba(44,30,79,0.1); background: rgba(44,30,79,0.081); color: var(--ink) }
html[data-theme=light] .hw-item:hover { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .hw-st { border-radius: 50%; border: 1.5px solid rgba(14,140,133,0.6) }
html[data-theme=light] .hw-item.done .hw-st { background: var(--right); border-color: var(--right); color: #F1ECE2 }
html[data-theme=light] .hw-cam { color: #0B6F69 }
html[data-theme=light] .dash-dl { color: #0B6F69 }
html[data-theme=light] .dash-wk { border-radius: 14px; border: 1px solid rgba(44,30,79,0.1); background: rgba(44,30,79,0.081); color: var(--ink-2) }
html[data-theme=light] .dash-wk i { border-radius: 50%; border: 1px solid currentColor }
html[data-theme=light] .dash-wk small .ic { color: #0B6F69 }
html[data-theme=light] .dash-wk.on { border-color: var(--gold); color: #0B6F69 }
html[data-theme=light] .dash-tiles button { border-radius: 14px; border: 1px solid rgba(44,30,79,0.1); background: rgba(44,30,79,0.081); color: var(--ink-3) }
html[data-theme=light] .dash-tiles button:hover { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .dash-strip { border: 0; background: none; color: var(--ink-2) }
html[data-theme=light] .dash-strip img { border-radius: 12px; border: 1px solid rgba(44,30,79,0.1) }
html[data-theme=light] .dash-notes .ic { color: #0B6F69 }
html[data-theme=light] .hw-tick { border-radius: 999px; border: 1px solid rgba(14,140,133,0.5); background: none; color: #0B6F69 }
html[data-theme=light] .hw-tick.on { border-color: var(--right); background: rgba(14,140,133,0.16); color: #0B6F69 }
html[data-theme=light] .dash-app { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .dash-row:hover { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .dash-ico { color: #0B6F69 }
html[data-theme=light] body :is(.hw-item img, .dash-strip img) { background: #F1ECE2 }
html[data-theme=light] a.pill.cert-go { color: #0B6F69; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent) }
html[data-theme=light] a.pill.cert-go:hover, html[data-theme=light] a.pill.cert-go:focus-visible { background: color-mix(in srgb, var(--gold) 18%, transparent); color: #0B6F69 }
html[data-theme=light] .dash-cert { border-color: color-mix(in srgb, var(--gold) 45%, transparent) }
/* light · tabs.css */
html[data-theme=light] .ctabs .ct { border: 0; border-radius: 999px; background: transparent; color: var(--ink-2) }
html[data-theme=light] .ctabs .ct.on { background: color-mix(in srgb, var(--gold) 14%, transparent); color: #0B6F69 }
@media (max-width: 640px) {
html[data-theme=light] .ctabs-phone { background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--panel-line) }
}
html[data-theme=light] .lb-all { border-radius: 999px; border: 1px solid var(--gold); color: #0B6F69 }
html[data-theme=light] .ctabs .ct-n { border-radius: 9px; background: #E5484D; color: #2C1E4F }
/* light · quotes.css */
html[data-theme=light] .quote-gem { border: 0; background: none }
html[data-theme=light] .q-text { border-left: 3px solid var(--gold, #0E8C85); color: var(--ink) }
html[data-theme=light] .q-who b { color: #0B6F69 }
/* light · points.css */

/* light · focus.css */
html[data-theme=light] .fc-shade { background: rgba(241,236,226,0.6) }
html[data-theme=light] .fc-sheet { background: var(--bg-2, #F1ECE2); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(44,30,79,0.203) }
html[data-theme=light] .fc-grip { border-radius: 4px; background: rgba(44,30,79,0.25) }
html[data-theme=light] .fc-w { border-radius: 99px; border: 1px solid rgba(44,30,79,0.16); background: transparent; color: var(--ink) }
html[data-theme=light] .fc-w.on { border-color: var(--gold); color: #0B6F69 }
html[data-theme=light] .fc-item { border: 0; border-top: 1px solid rgba(44,30,79,0.08); background: transparent; color: var(--ink) }
html[data-theme=light] .fc-item i { color: #0B6F69 }
@media all {
html[data-theme=light].focus .fc-home { color: var(--ink-2) }
html[data-theme=light].focus .fc-pill { border-radius: 99px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: transparent; color: #0B6F69 }
html[data-theme=light].focus .fc-dot { border-radius: 50%; background: #e5484d }
html[data-theme=light].focus #w-title em { color: #0B6F69 }
html[data-theme=light].focus .fc-hands .hands-fab { box-shadow: none !important }
html[data-theme=light].focus #cont-chip { background: var(--gold) !important; border: 0 !important; color: var(--bg) !important; box-shadow: 0 6px 22px color-mix(in srgb, var(--gold) 35%, transparent) !important }
html[data-theme=light].focus #map .world-cell .face { background-color: var(--bg) !important }
html[data-theme=light].focus #comb .cell::before, html[data-theme=light].focus #comb .cell[data-t]::before, html[data-theme=light].focus #comb .cell[data-t].must::before { background: rgba(44,30,79,0.12) !important }
html[data-theme=light].focus #comb .cell.done .face::after { background: linear-gradient(180deg, transparent 40%, rgba(44,30,79,0.248) 90%) !important }
html[data-theme=light].focus #comb .cell.done::before, html[data-theme=light].focus #comb .cell[data-t].done::before { background: color-mix(in srgb, var(--gold) 50%, transparent) !important }
html[data-theme=light].focus #comb .cell.done .ck { background: var(--gold) !important; color: var(--bg) !important; box-shadow: none !important }
html[data-theme=light].focus #comb .cell.done .lab b { color: #2C1E4F !important; text-shadow: 0 1px 6px rgba(44,30,79,0.36) !important }
html[data-theme=light].focus #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: rgba(44,30,79,0.55) !important; text-shadow: none !important }
html[data-theme=light].focus #comb .cell.next .face::after { background: linear-gradient(180deg, transparent 45%, rgba(44,30,79,0.225) 90%) !important }
}
@media all {
html[data-theme=light].focus #map .cell.next::before { background: var(--gold) !important }
html[data-theme=light].focus #map .cell.next .face::after { background: linear-gradient(180deg, transparent 40%, rgba(44,30,79,0.203) 90%) !important }
html[data-theme=light].focus #map .cell.next .lab b { color: #2C1E4F !important }
}
html[data-theme=light] body .card .upload img { border-radius: 12px; background: rgba(44,30,79,0.04) }
@media (max-width: 600px) {
html[data-theme=light].focus #cont-chip { border-radius: 26px !important; box-shadow: none !important }
}
/* light · cards.css */
html[data-theme=light] .stagebox { border-radius: 22px; background: radial-gradient(closest-side, rgba(255,255,255,.04), transparent); border: 1px solid rgba(47,175,167,0.1) }
html[data-theme=light] .stagebox .hint { color: var(--ink-3) }
html[data-theme=light] .chip { border-radius: 999px; border: 1px solid rgba(44,30,79,0.16); background: var(--panel); color: var(--ink-2) }
html[data-theme=light] .chip.on { border-color: var(--gold); color: var(--ink); background: rgba(14,140,133,0.12) }
html[data-theme=light] .opt { border-radius: 14px; border: 1px solid rgba(44,30,79,0.14); background: var(--panel); color: var(--ink) }
html[data-theme=light] .opt.pick { border-color: var(--gold); background: rgba(14,140,133,0.1) }
html[data-theme=light] .opt.right { border-color: var(--d); background: rgba(14,140,133,0.18) }
html[data-theme=light] .opt.wrong { border-color: var(--p); background: rgba(229,72,77,.12) }
html[data-theme=light] .explain { border-left: 3px solid var(--gold); background: rgba(14,140,133,0.06); border-radius: 0 12px 12px 0; color: var(--ink-2) }
html[data-theme=light] .ph { border-radius: 14px; border: 2px solid transparent; background: rgba(44,30,79,0.45) }
html[data-theme=light] .ph span { background: linear-gradient(transparent, rgba(44,30,79,0.36)); color: #2C1E4F }
html[data-theme=light] .upload label { border-radius: 12px; border: 1px dashed rgba(14,140,133,0.5); color: #0B6F69 }
html[data-theme=light] .link { color: #0B6F69 }
html[data-theme=light] .hero { background: center/cover; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent) }
html[data-theme=light] .hero small { color: rgba(241,236,226,.6) }
html[data-theme=light] .lines .line { color: var(--ink) }
html[data-theme=light] .tapon { border-radius: 999px; border: 1px dashed rgba(14,140,133,0.5); background: none; color: #0B6F69 }
html[data-theme=light] .more { border-radius: 999px; border: 1px solid rgba(14,140,133,0.4); background: rgba(14,140,133,0.08); color: #0B6F69 }
html[data-theme=light] .bookpage { border: 0; background: #fbf8f1; border-radius: 6px; box-shadow: 0 18px 40px rgba(44,30,79,0.225), 0 0 0 1px rgba(14,140,133,0.3) }
html[data-theme=light] .bookpage span { background: linear-gradient(transparent, rgba(241,236,226,0.9)); color: #0B6F69 }
html[data-theme=light] .opt .oi { border-radius: 10px; background: rgba(255,255,255,.03) }
html[data-theme=light] .ex-art { border-radius: 10px; background: rgba(255,255,255,.03) }
html[data-theme=light] .art-stage.flat { background: #15111F }
html[data-theme=light] .stepnav .sb { border-radius: 12px; border: 1px solid rgba(44,30,79,0.18); background: var(--panel); color: var(--ink-2) }
html[data-theme=light] .stepnav .sb.on { border-color: var(--gold); color: #0B6F69 }
html[data-theme=light] .sdots i { border-radius: 50%; background: rgba(44,30,79,0.15) }
html[data-theme=light] .fl { border: 0; background: none }
html[data-theme=light] .fl .front { background: radial-gradient(circle at 50% 35%, rgba(47,175,167,0.2), rgba(47,175,167,0.04) 70%), var(--tapestry) 0 0/28px 48.5px, var(--bg-2); border: 1.5px solid rgba(47,175,167,0.55); box-shadow: inset 0 0 0 5px var(--bg-2), inset 0 0 0 6px rgba(47,175,167,0.25) }
html[data-theme=light] .fl .back { background: #F1ECE2; border: 1.5px solid var(--right); color: var(--ink-2) }
html[data-theme=light] .fl .back.photo { background-color: #F1ECE2 }
html[data-theme=light] .fl .back.photo .bt { color: var(--ink-2); background: linear-gradient(180deg, transparent, rgba(241,236,226,0.9) 38%) }
html[data-theme=light] .tok { border-radius: 12px; border: 1px solid rgba(44,30,79,0.18); background: var(--panel); color: var(--ink) }
html[data-theme=light] .tok.sel { border-color: var(--gold); background: rgba(14,140,133,0.15) }
html[data-theme=light] .tok.right { border-color: var(--d); background: rgba(14,140,133,0.15) }
html[data-theme=light] .tok.wrong { border-color: var(--p); background: rgba(229,72,77,.14) }
html[data-theme=light] .bin { border-radius: 16px; border: 1.5px dashed rgba(14,140,133,0.4); background: rgba(14,140,133,0.03) }
html[data-theme=light] .bin b { color: #0B6F69 }
html[data-theme=light] .mt { border-radius: 14px; border: 1px solid rgba(44,30,79,0.16); background: var(--panel); color: var(--ink) }
html[data-theme=light] .mt.sel { border-color: var(--gold); background: rgba(14,140,133,0.14) }
html[data-theme=light] .mt.right { border-color: var(--d); background: rgba(14,140,133,0.14) }
html[data-theme=light] .seq li { border-bottom: 1px solid rgba(44,30,79,0.08); color: var(--ink) }
html[data-theme=light] .seq li::marker { color: #0B6F69 }
html[data-theme=light] textarea { border-radius: 14px; border: 1px solid rgba(14,140,133,0.35); background: rgba(255,253,249,.04); color: var(--ink) }
html[data-theme=light] textarea:focus { outline: none; border-color: var(--gold) }
html[data-theme=light] .gph span { background: linear-gradient(transparent, rgba(44,30,79,0.36)) }
html[data-theme=light] .gv { border-radius: 16px; border: 1px dashed rgba(14,140,133,0.25) }
html[data-theme=light] .go2 { border-radius: 14px; border: 1px solid var(--gold); background: rgba(14,140,133,0.12); color: #0B6F69 }
html[data-theme=light] .tally b { color: #0B6F69 }
html[data-theme=light] button.link { border: 0; background: none }
html[data-theme=light] .note { border-radius: 14px; background: var(--panel); border: 1px solid rgba(44,30,79,0.08) }
html[data-theme=light] .ssay b { color: #0B6F69 }
html[data-theme=light] .hero.live { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent) }
html[data-theme=light] .cols .v3 { border-radius: 12px; background: radial-gradient(closest-side, rgba(44,30,79,0.05), transparent); border: 1px solid rgba(14,140,133,0.12) }
html[data-theme=light] .layer .lcap { background: linear-gradient(transparent, rgba(44,30,79,0.383)); color: var(--ink); border-radius: 0 0 16px 16px }
html[data-theme=light] .defwall div span { color: #2C1E4F; text-shadow: 0 1px 4px rgba(44,30,79,0.45) }
html[data-theme=light] .deflines strong { color: #0B6F69 }
html[data-theme=light] .igc canvas { border-radius: 12px; background: #15111F }
html[data-theme=light] .igc .verdict.yes b { color: #0B6F69 }
html[data-theme=light] .igc .verdict.no b { color: #ff8a8d }
html[data-theme=light] .gx2 b { color: #0B6F69 }
html[data-theme=light] .photo3 span { text-shadow: 0 1px 4px rgba(44,30,79,0.45) }
html[data-theme=light] .sysx .thumb { border-radius: 12px; background: center/cover; border: 1px solid rgba(14,140,133,0.35) }
html[data-theme=light] .vid { border-radius: 16px; background: rgba(44,30,79,0.45); border: 1px solid rgba(14,140,133,0.25) }
html[data-theme=light] .more-t { border: 0; background: none; color: #0B6F69 }
html[data-theme=light] .link.dl { border: 1px solid rgba(14,140,133,0.6); border-radius: 999px }
html[data-theme=light] .hero:not(.live) { background-color: #15111F; border-radius: 0 0 22px 22px }
html[data-theme=light] .opts.pics .opt .oi, html[data-theme=light] .opts.row.pics .oi { border-radius: 0; background: #15111F }
@media (hover: hover) {
html[data-theme=light] .link:hover, html[data-theme=light] button.link:hover { color: #0B6F69 }
}
html[data-theme=light] .more-t, html[data-theme=light] .more, html[data-theme=light] .hw-dl { color: #0B6F69 }
html[data-theme=light] .art-stage .frame.photo img { border-radius: inherit }
html[data-theme=light] .art-stage .frame.photo .pcredit { color: rgba(241,236,226,.75); background: rgba(0,0,0,.45); border-radius: 6px }
html[data-theme=light] .seq.pics li { border: 1px solid rgba(14,140,133,0.45); border-radius: 12px; background: rgba(14,140,133,0.1) }
html[data-theme=light] .mt.paired::after { border-radius: 50%; background: var(--pc); color: #F1ECE2 }
html[data-theme=light] .timg .tcredit { color: rgba(44,30,79,0.75); text-shadow: 0 1px 2px rgba(44,30,79,0.36) }
html[data-theme=light] .stagebox .lab-hint { border-radius: 999px; background: rgba(21,17,31,0.85); border: 1px solid rgba(47,175,167,0.6); color: #F1ECE2 }
html[data-theme=light] body .fl .front.photo { background-color: #15111F !important }
html[data-theme=light] body .fl .front.photo .ft { color: #F1ECE2 !important; background: linear-gradient(180deg, transparent, rgba(21,17,31,0.9) 42%) }
html[data-theme=light] body .fl .front.photo .fturn { color: #F1ECE2 }
html[data-theme=light] .link:hover, html[data-theme=light] button.link:hover { color: #0B6F69 }
html[data-theme=light] .vid-own video { border-radius: 14px; background: rgba(44,30,79,0.45) }
html[data-theme=light] .aud-own { border-radius: 16px; border: 1px solid rgba(14,140,133,0.25); background: rgba(14,140,133,0.05) }
/* light · player.css */
html[data-theme=light] .p-x { border-radius: 50%; border: 1px solid rgba(44,30,79,0.15); background: none; color: var(--ink-2) }
html[data-theme=light] .dots i { border-radius: 3px; background: rgba(44,30,79,0.1) }
html[data-theme=light] .p-xp { color: #0B6F69 }
html[data-theme=light] .say > b { color: #0B6F69 }
html[data-theme=light] .say #say-t b { color: #0B6F69 }
html[data-theme=light] .dots i.now { background: rgba(14,140,133,0.5) }
html[data-theme=light] .nav { border-radius: 16px; border: 1px solid rgba(44,30,79,0.18); background: var(--panel); color: var(--ink-2) }
html[data-theme=light] .dots i.skipped { background: rgba(229,72,77,.45) }
@media (min-width: 900px) and (orientation: landscape) {
html[data-theme=light] .card > .hero { border-radius: 22px }
}
html[data-theme=light] .card > .qimg { background: #F1ECE2; border-radius: 16px }
/* light · layout.css */
html[data-theme=light] body .pbar .nav { border-radius: 999px; border: 1px solid rgba(44,30,79,0.16); background: none; color: var(--ink-2) }
html[data-theme=light] body .pbar #fwd { border-color: rgba(14,140,133,0.45); color: #0B6F69 }
html[data-theme=light] body .card > .hero.drawn { background: radial-gradient(closest-side, rgba(47,175,167,0.08), transparent); border-radius: 22px }
html[data-theme=light] body :is(.hero, .gph, .cols .ph2, .layer > .ph2, .defwall div, .igc .ph2, .photo3 div, .sysx .thumb, .tasks.tcols .timg, .m-img, .fl .back.photo) { background-color: #15111F }
html[data-theme=light] body .opt .oi:has(img) { background: #15111F }
html[data-theme=light] body .ph .verdict { border-radius: 99px; color: #F1ECE2 }
html[data-theme=light] body .ph .verdict.yes { background: #0E8C85 }
html[data-theme=light] body .ph .verdict.no { background: #e5484d; color: #2C1E4F }
/* light · read.css */
html[data-theme=light] body :is(.say, .ssay, .lines .line, .txt) em { color: #0B6F69 }
html[data-theme=light] body .fl .front { background: linear-gradient(180deg, rgba(47,175,167,0.1), rgba(47,175,167,0.03)), #15111F; box-shadow: none }
html[data-theme=light] body .fl .front .ft { color: #F1ECE2 }
html[data-theme=light] body .fl .back.photo .bt { background: rgba(241,236,226,0.88); color: #2C1E4F }
/* light · feedback.css */
html[data-theme=light] .fb-q textarea { color: var(--ink); background: rgba(44,30,79,0.05); border: 1px solid rgba(44,30,79,0.18); border-radius: 12px }
html[data-theme=light] .fb-q textarea:focus { outline: none; border-color: var(--gold) }
html[data-theme=light] .fb-rate button, html[data-theme=light] .fb-yn button { border-radius: 12px; border: 1px solid rgba(44,30,79,0.18); background: rgba(44,30,79,0.04); color: var(--ink) }
html[data-theme=light] .fb-rate b { color: #0B6F69 }
html[data-theme=light] .fb-rate button.on, html[data-theme=light] .fb-yn button.on { background: var(--gold); border-color: var(--gold); color: #F1ECE2 }
html[data-theme=light] .fb-rate button.on b, html[data-theme=light] .fb-rate button.on small { color: #F1ECE2 }
html[data-theme=light] .fb-worlds button { border-radius: 12px; border: 2px solid transparent }
html[data-theme=light] .fb-worlds button span { color: #2C1E4F; background: rgba(241,236,226,0.68) }
html[data-theme=light] .fb-worlds button.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(14,140,133,0.35) }
html[data-theme=light] .fb-tick input { accent-color: var(--gold) }
html[data-theme=light] .fb-ta { color: var(--ink); background: rgba(44,30,79,0.05); border: 1px solid rgba(44,30,79,0.18); border-radius: 12px }
html[data-theme=light] .fb-ta:focus { outline: none; border-color: var(--gold) }
/* light · vplayer.css */
html[data-theme=light] .hgv-cover { border: 0; background: #F1ECE2 center / cover no-repeat }
html[data-theme=light] .hgv-cover::before { background: linear-gradient(180deg, rgba(44,30,79,0) 40%, rgba(44,30,79,0.27)) }
html[data-theme=light] .hgv-big { border-radius: 50%; background: var(--gold, #0E8C85); color: #F1ECE2; box-shadow: 0 6px 24px rgba(44,30,79,0.158) }
html[data-theme=light] .hgv-cover:focus-visible { outline: 3px solid var(--gold, #0E8C85) }
html[data-theme=light] .hgv-bar { background: linear-gradient(180deg, rgba(44,30,79,0), rgba(241,236,226,0.78)); color: #2C1E4F }
html[data-theme=light] .hgv-bar button { border: 0; border-radius: 50%; background: transparent; color: #2C1E4F }
html[data-theme=light] .hgv-bar button:hover, html[data-theme=light] .hgv-bar button:focus-visible { background: rgba(44,30,79,0.16) }
html[data-theme=light] .hgv-t, html[data-theme=light] .hgv-d { color: #2C1E4F }
html[data-theme=light] .hgv-seek { background: transparent }
html[data-theme=light] .hgv-seek::-webkit-slider-runnable-track { border-radius: 2px; background: linear-gradient(90deg, var(--hgv-accent, #0E8C85) var(--at), rgba(44,30,79,0.35) var(--at)) }
html[data-theme=light] .hgv-seek::-moz-range-track { border-radius: 2px; background: rgba(44,30,79,0.35) }
html[data-theme=light] .hgv-seek::-moz-range-progress { border-radius: 2px; background: var(--hgv-accent, #0E8C85) }
html[data-theme=light] .hgv-seek::-webkit-slider-thumb { border: 0; border-radius: 50%; background: #FFFFFF }
html[data-theme=light] .hgv-seek::-moz-range-thumb { border: 0; border-radius: 50%; background: #FFFFFF }
html[data-theme=light] .hgv:fullscreen { border-radius: 0; border: 0; background: rgba(44,30,79,0.45) }
html[data-theme=light] .hgv.hgv-max { border-radius: 0; border: 0; background: rgba(44,30,79,0.45) }
html[data-theme=light] .hgv .hgv-hint { border-radius: 999px; background: rgba(241,236,226,0.82); color: #2C1E4F }
/* light · finale.css */
html[data-theme=light] .fin-hero h2 em { color: #0B6F69 }
html[data-theme=light] .fin-big b { color: #0B6F69 }
html[data-theme=light] .fin-tally span { border-radius: 14px; border: 1px solid rgba(44,30,79,0.1); color: var(--ink-3) }
html[data-theme=light] .fin-w { border-radius: 14px; border: 1px solid rgba(44,30,79,0.1); background: transparent; color: var(--ink) }
html[data-theme=light] .fin-w:hover { border-color: rgba(14,140,133,0.45) }
html[data-theme=light] .fin-w > i { border-radius: 50%; border: 1px solid var(--gold); color: #0B6F69 }
html[data-theme=light] .fin-w > em { color: #0B6F69 }
html[data-theme=light] .fin-score .ic { color: #0B6F69 }
html[data-theme=light] .fin-q > p:first-child small { color: #0B6F69 }
html[data-theme=light] .fin-as button { border-radius: 12px; border: 1px solid rgba(44,30,79,0.18); background: var(--bg-2); color: var(--ink) }
html[data-theme=light] .fin-as button.right { border-color: #0E8C85; background: rgba(14,140,133,0.16); color: var(--ink) }
html[data-theme=light] .fin-as button.wrong { border-color: #e5484d; background: rgba(229,72,77,.1); color: var(--ink) }
html[data-theme=light] .fin-why { color: var(--ink-2) }
html[data-theme=light] .fin-fb h3 .ic { color: #0B6F69 }
html[data-theme=light] .fin .fin-go { background: var(--gold); border-color: var(--gold); color: var(--bg) }
html[data-theme=light] .fin-bk img { border-radius: 6px; box-shadow: 0 8px 24px rgba(44,30,79,0.18) }
html[data-theme=light] .fin .fin-go .ic { color: inherit !important; stroke: currentColor }
/* light · fit.css */
html[data-theme=light] body .fit.fit.fit.paper { background-color: #FFFFFF !important }
html[data-theme=light] .frame:has(> img.paper) { background: #FFFFFF }
html[data-theme=light] .hero:has(.paper) { background: #FFFFFF }
html[data-theme=light] body img.qimg.fit.fit.fit { background: none !important; border-radius: 14px }
@media (max-width: 640px) {
html[data-theme=light] body .pool:not(.pics) > .tok:has(img) img.fit.fit.fit, html[data-theme=light] body .pool:not(.pics) > .tok:has(img) img { background: none !important; border-radius: 9px }
}
html[data-theme=light] body :is(.stagebox, .visual, .art, .qart, .oi, .frame) svg text:is([fill^="rgba(241,236,226,.1"], [fill^="rgba(241,236,226,.2"], [fill^="rgba(241,236,226,.3"], [fill^="rgba(241,236,226,.4"], [fill^="rgba(241,236,226,.5"], [fill^="rgba(241, 236, 226, 0.3"], [fill^="rgba(241, 236, 226, 0.4"]) { fill: rgba(241,236,226,.82) !important }
html[data-theme=light] body :is(.stagebox, .visual, .art, .qart, .oi, .frame) svg text[fill="#2FD0C5"] { fill: #2FAFA7 }
html[data-theme=light] body .tok .oart svg, html[data-theme=light] body .seq .oart svg { background: #F1ECE2; border-radius: 8px }
html[data-theme=light] body .fl .back .bh { color: #0B6F69 }
/* light · reactions.css */
html[data-theme=light] .p-react .rx { border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--ink-2) }
html[data-theme=light] .p-react .rx svg { fill: none; stroke: currentColor }
html[data-theme=light] .p-react .rx svg .dot { fill: currentColor }
html[data-theme=light] .p-react .rx[aria-pressed="true"] { color: #0B6F69; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent) }
html[data-theme=light] .p-react .rx-tip { border-radius: 12px; background: var(--bg-2, var(--bg)); border: 1px solid var(--panel-line); box-shadow: 0 -10px 30px rgba(44,30,79,0.18); color: var(--ink) }
html[data-theme=light] .p-react .rx-tip textarea { border-radius: 8px; border: 1px solid var(--panel-line); background: var(--bg); color: var(--ink) }
html[data-theme=light] .p-react .rx-tip button { border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--ink) }
html[data-theme=light] .p-react .rx-tip .rx-kinds .rx-kind.on { border-color: var(--gold); color: #0B6F69; background: color-mix(in srgb, var(--gold) 12%, transparent) }
html[data-theme=light] body .p-react .rx { border: 0 !important; background: transparent !important; color: var(--ink-3, rgba(44,30,79,0.55)) }
html[data-theme=light] body .p-react .rx[aria-pressed="true"] { color: #0B6F69 }
/* light · phone.css */

/* dark · brand.css */
html[data-theme=dark] { --bg: #15111F; --bg-2: #15111F; --panel: rgba(255,253,249,.05); --panel-line: rgba(47,175,167,0.24); --ink: #F1ECE2; --ink-2: #CFC8DA; --ink-3: #B5ADC4; --gold: #2FAFA7; --gold-light: #2FAFA7; --gold-bright: #2FAFA7; --gold-deep: #2FAFA7; --yellow: #E0A82E; --red: #D9483F; --green: #3FA463; --blue: #3F78C9; --purple: #8E5BC9; --print-red: #e12e2c; --print-green: #357828; --act-write: #c99a06; --tapestry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%232fafa7' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M28 0 L56 16.2 L56 48.5 L28 64.7 L0 48.5 L0 16.2 Z M28 64.7 L28 97'/%3E%3C/g%3E%3C/svg%3E") }
/* dark · base.css */
html[data-theme=dark] body { background: radial-gradient(ellipse at 50% 0%, rgba(47,175,167,0.1) 0%, rgba(21,17,31,0.96) 60%), var(--tapestry) 0 0/56px 97px, var(--bg) }
html[data-theme=dark] button { color: inherit }
html[data-theme=dark] .bar { background: rgba(21,17,31,0.85); border-bottom: 1px solid rgba(47,175,167,0.12) }
html[data-theme=dark] .ov::before { border-top: max(1.5px, .055em) solid currentColor }
html[data-theme=dark] a.pill { color: var(--ink); border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] a.pill:hover { color: var(--ink); background: rgba(47,175,167,0.12) }
/* dark · home.css */
html[data-theme=dark] .world { border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: var(--panel); color: var(--ink-3) }
html[data-theme=dark] .progress-ring .track { border-radius: 3px; background: rgba(241,236,226,.08) }
html[data-theme=dark] .progress-ring b.ok { color: #2FAFA7 }
html[data-theme=dark] .hw-dl { border-radius: 14px; border: 1px solid rgba(47,175,167,0.5); color: var(--gold) }
@media (min-width: 900px) and (orientation: landscape) {
html[data-theme=dark] .worlds { border-right: 1px solid rgba(241,236,226,.08) }
html[data-theme=dark] .world .wn { border-radius: 50%; border: 1px solid currentColor }
html[data-theme=dark] .world:not(.on):not(.locked):hover { border-color: rgba(47,175,167,0.5) }
}
html[data-theme=dark] .ic.fill { fill: currentColor }
html[data-theme=dark] .pr-text .ok { color: #2FAFA7 }
html[data-theme=dark] .crystal-progress .edges { fill: none; stroke: rgba(241,236,226,.35) }
html[data-theme=dark] .xp-big { border-radius: 20px; border: 1px solid rgba(47,175,167,0.45); background: rgba(21,17,31,0.92); box-shadow: 0 10px 28px rgba(241,236,226,.14); color: var(--ink) }
html[data-theme=dark] .flame { color: #f2a65a }
html[data-theme=dark] .xp-big .xp-gems { border-top: 1px solid rgba(47,175,167,0.25); color: #f2c94c }
html[data-theme=dark] .crystal-progress .seams { fill: none; stroke: rgba(241,236,226,.16) }
html[data-theme=dark] .world-cell .lab small { color: rgba(21,17,31,0.85) }
html[data-theme=dark] .w-go { border: 0; border-radius: 999px; background: var(--gold); color: #15111F; box-shadow: 0 12px 30px rgba(0,0,0,.45) }
html[data-theme=dark] .w-go .w-go-ic { border-radius: 50%; background: rgba(0,0,0,.14) }
html[data-theme=dark] .world-cell:not(.next) .lab small { color: rgba(241,236,226,.88); text-shadow: 0 1px 5px rgba(0,0,0,.85) }
html[data-theme=dark] .hunt-chip { border-radius: 999px; border: 1px solid rgba(242,201,76,.55); background: rgba(242,201,76,.12); color: var(--ink) }
html[data-theme=dark] .hunt-chip .ic { color: #f2c94c }
html[data-theme=dark] .hunt-chip span { color: #f2c94c }
html[data-theme=dark] .hunt-chip.done { border-color: var(--right); background: rgba(47,175,167,0.15) }
html[data-theme=dark] .world .wok { color: var(--gold, #2FAFA7) }
html[data-theme=dark] .hands-chip { border-color: rgba(47,175,167,0.6); background: rgba(47,175,167,0.12) }
html[data-theme=dark] .hands-chip .ic { color: #2FAFA7 }
html[data-theme=dark] .hands-chip span { color: #2FAFA7 }
html[data-theme=dark] #m-body .ho-lead { color: var(--ink-2, rgba(241,236,226,.8)) }
html[data-theme=dark] #m-body .ho-sheet { border-radius: 14px; border: 1px solid rgba(47,175,167,0.55); background: rgba(47,175,167,0.12); color: var(--ink, #F1ECE2) }
html[data-theme=dark] #m-body .ho-sheet .ic { color: #2FAFA7 }
html[data-theme=dark] #m-body .ho-sheet small { color: rgba(241,236,226,.7) }
html[data-theme=dark] #m-body .ho-count { color: rgba(241,236,226,.6) }
html[data-theme=dark] #m-body .ho-item { border-radius: 14px; background: rgba(241,236,226,.05); border: 1px solid rgba(241,236,226,.1) }
html[data-theme=dark] #m-body .ho-item.done { border-color: rgba(47,175,167,0.5) }
html[data-theme=dark] #m-body .ho-pic { border-radius: 10px; background: rgba(241,236,226,.08) center/cover no-repeat }
html[data-theme=dark] #m-body .ho-pic .ic { color: #2FAFA7 }
html[data-theme=dark] #m-body .ho-txt b { color: var(--ink, #F1ECE2) }
html[data-theme=dark] #m-body .ho-txt small { color: rgba(241,236,226,.65) }
html[data-theme=dark] #m-body .ho-txt .ok { color: #2FAFA7 }
html[data-theme=dark] #m-body .ho-open, html[data-theme=dark] #m-body .ho-pdf { border-radius: 999px }
html[data-theme=dark] #m-body .ho-open { background: #2FAFA7; color: #15111F; border: 0 }
html[data-theme=dark] #m-body .ho-pdf { border: 1px solid rgba(47,175,167,0.55); color: #2FAFA7 }
html[data-theme=dark] #m-body .ho-lock { color: rgba(241,236,226,.55) }
html[data-theme=dark] .hands-fab { border-radius: 999px; border: 1px solid rgba(47,175,167,0.6); background: rgba(21,17,31,0.92); box-shadow: 0 10px 28px rgba(0,0,0,.35); color: var(--ink, #F1ECE2) }
html[data-theme=dark] .hands-fab .ic { color: #2FAFA7 }
html[data-theme=dark] .hands-fab span { color: #2FAFA7 }
html[data-theme=dark] .hands-fab:hover { border-color: #2FAFA7 }
html[data-theme=dark] .hands-fab:focus-visible { outline: 2px solid var(--ink, #F1ECE2) }
html[data-theme=dark] #m-body .ho-pdf.pri { background: #2FAFA7; color: #15111F; border-color: #2FAFA7 }
html[data-theme=dark] #m-body .ho-open.sec { background: transparent; color: #2FAFA7; border: 1px solid rgba(47,175,167,0.55) }
html[data-theme=dark] .cont-chip { border-radius: 14px; border: 1px solid rgba(47,175,167,0.55); background: rgba(47,175,167,0.1); color: var(--ink) }
html[data-theme=dark] .cont-chip > svg, html[data-theme=dark] .cont-chip > .ic { color: var(--gold) }
html[data-theme=dark] .soon { border: 1px dashed rgba(241,236,226,.15); border-radius: 18px; color: var(--ink-3) }
html[data-theme=dark] .hw-btn { border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #15111F; box-shadow: 0 6px 22px rgba(47,175,167,0.35) }
html[data-theme=dark] .hw-btn.done { background: rgba(47,175,167,0.2); color: var(--ink); box-shadow: none; border: 1px solid var(--right) }
/* dark · hex.css */
html[data-theme=dark] .cell { border: 0; background: none }
html[data-theme=dark] .cell::before { background: rgba(241,236,226,.14) }
html[data-theme=dark] .cell .face { background: #15111F center/cover }
html[data-theme=dark] .cell .face::after { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55) 80%) }
html[data-theme=dark] .cell .lab i { border-radius: 50%; border: 1px solid rgba(21,17,31,0.7); color: #15111F; background: rgba(241,236,226,.35) }
html[data-theme=dark] .cell .lab b { color: #F1ECE2; text-shadow: 0 1px 6px rgba(0,0,0,.75) }
html[data-theme=dark] .cell.locked .lab b { color: rgba(21,17,31,0.8) }
html[data-theme=dark] .cell.ghost::before { background: rgba(241,236,226,.06) }
html[data-theme=dark] .cell.done .face::after { background: linear-gradient(180deg, rgba(47,175,167,0.28), rgba(120,86,20,.82) 75%) }
html[data-theme=dark] .cell.done .lab b { color: #fff6dc; text-shadow: 0 1px 6px rgba(0,0,0,.7) }
html[data-theme=dark] .cell.done .lab i { box-shadow: 0 0 12px rgba(242,179,61,.9) }
html[data-theme=dark] .cell.ghost::before { background: rgba(241,236,226,.05) }
html[data-theme=dark] .honey .hx { border: 0; background: #15111F center/cover }
html[data-theme=dark] .honey .hx::before { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 85%) }
html[data-theme=dark] .honey .hx.drawn-tile { background: #15111F }
html[data-theme=dark] .honey .hx.drawn-tile::before { background: linear-gradient(180deg, transparent 55%, rgba(21,17,31,0.8) 90%) }
html[data-theme=dark] .honey .hx.drawn-tile .hi { background-color: #15111F }
html[data-theme=dark] .honey .hx.drawn-tile { background: rgba(47,175,167,0.55) }
html[data-theme=dark] .honey .hx .tl { color: #F1ECE2; text-shadow: 0 1px 5px rgba(0,0,0,.5) }
html[data-theme=dark] .honey .hx.drawn-tile .tl { color: var(--ink); text-shadow: none }
html[data-theme=dark] .honey .hx.centre { box-shadow: none }
html[data-theme=dark] .honey .hx.centre .tl { color: #2FAFA7 }
html[data-theme=dark] .ph.pick::after, html[data-theme=dark] .honey .hx.seen::after { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315111f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/70% no-repeat }
html[data-theme=dark] .honey .hx { background: rgba(47,175,167,0.55) }
html[data-theme=dark] .honey .hx .hi { background: #15111F center/cover }
html[data-theme=dark] .honey .hx .tl { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85) }
html[data-theme=dark] .honey .hx.seen::before { background: linear-gradient(180deg, rgba(47,175,167,0.28), rgba(120,86,20,.82) 75%) }
html[data-theme=dark] .honey .hx.seen .tl { color: #fff6dc }
html[data-theme=dark] .cell.done .face::after { background: linear-gradient(180deg, color-mix(in srgb, var(--t, var(--gold)) 22%, transparent), color-mix(in srgb, var(--t, var(--gold)) 28%, rgba(21,17,31,0.78)) 80%) }
html[data-theme=dark] .cell.done .lab b { color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.85) }
html[data-theme=dark] .cell.done .lab i { box-shadow: none }
html[data-theme=dark] .cell.next .face::after { background: linear-gradient(180deg, rgba(232,190,90,.62), rgba(150,108,25,.94) 72%) }
html[data-theme=dark] .cell.next .lab b { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7) }
html[data-theme=dark] .cell.next .lab i { background: #fff; color: #15111F; border-color: #fff; box-shadow: 0 0 14px rgba(255,255,255,.6) }
html[data-theme=dark] .cell.locked .lab b { color: rgba(241,236,226,.68); text-shadow: 0 1px 5px rgba(0,0,0,.9) }
html[data-theme=dark] .cell.locked .lab b { color: rgba(241,236,226,.82) }
html[data-theme=dark] .cell .ring path { fill: none }
html[data-theme=dark] .cell .ring .rt { stroke: rgba(241,236,226,.16) }
html[data-theme=dark] .cell .ring .rp { stroke: #2FAFA7 }
html[data-theme=dark] .cell .ring .rp.full { stroke: #f2b33d }
html[data-theme=dark] .cell .ck { border-radius: 50%; background: var(--gold, #c9a94a); color: #15111F; box-shadow: 0 0 0 2px rgba(21,17,31,0.85) }
html[data-theme=dark] .cell.done .lab i { background: rgba(21,17,31,0.55); color: #fff6dc; border-color: rgba(242,179,61,.7); box-shadow: none }
html[data-theme=dark] .cell.done.next .lab i { background: #fff; color: #15111F }
/* dark · board.css */
html[data-theme=dark] .stagebox.paper { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.035), transparent 70%), #15111F }
html[data-theme=dark] .tool { border-radius: 12px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); color: var(--ink-2) }
html[data-theme=dark] .tool.sw.on { background: rgba(47,175,167,0.18); color: inherit; outline: 2px solid var(--gold) }
html[data-theme=dark] .tl-verdict.ok { color: #2FAFA7 }
html[data-theme=dark] .tl-verdict.no { color: #ff8a8d }
html[data-theme=dark] .cw-cell { border: 1px solid rgba(241,236,226,.08); border-radius: 8px }
html[data-theme=dark] .cw-cell.mine { box-shadow: 0 0 0 2px var(--gold); background: rgba(47,175,167,0.15) }
html[data-theme=dark] .c3 { border-radius: 18px; border: 1px solid rgba(241,236,226,.14); background: var(--panel); color: var(--ink) }
html[data-theme=dark] .c3.mine { border-color: var(--gold); background: rgba(47,175,167,0.1) }
html[data-theme=dark] .cls-big { background: rgba(21,17,31,0.82) }
html[data-theme=dark] .cls-big-card { border-radius: 24px; border: 1px solid var(--gold); background: #15111F }
html[data-theme=dark] .cls-big .viewport .hint { color: var(--ink-3) }
html[data-theme=dark] .cls-props li { color: var(--ink-3); border-radius: 12px; border: 1px solid transparent }
html[data-theme=dark] .cls-props li.sel { border-color: rgba(47,175,167,0.55); background: rgba(47,175,167,0.08) }
html[data-theme=dark] .cls-props li i { border-radius: 50%; background: rgba(241,236,226,.1) }
html[data-theme=dark] .cls-demo-cap { color: #ff9a9d !important }
html[data-theme=dark] .cls-demo-cap.yes { color: #2FAFA7 !important }
html[data-theme=dark] .cls-big-x { border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); background: transparent }
html[data-theme=dark] .cls-nav { border-radius: 50%; border: 1px solid rgba(47,175,167,0.5); background: rgba(21,17,31,0.7); color: var(--gold) }
html[data-theme=dark] .c3-all { border-radius: 999px; border: 1px solid rgba(47,175,167,0.5); background: rgba(47,175,167,0.08); color: var(--gold-light) }
html[data-theme=dark] .c3-all:hover { background: rgba(47,175,167,0.16) }
html[data-theme=dark] .lab-slider { border-radius: 12px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); color: var(--ink-2) }
html[data-theme=dark] .stagebox.board.finished { box-shadow: inset 0 0 0 2px rgba(47,175,167,0.55) }
html[data-theme=dark] .done-flag { border-radius: 999px; background: var(--right); color: #15111F }
html[data-theme=dark] .visual > .vis-max { border-radius: 999px; border: 1px solid rgba(47,175,167,0.7); background: rgba(21,17,31,0.82); color: #F1ECE2 }
html[data-theme=dark] .visual > .vis-max span { color: #2FAFA7 }
html[data-theme=dark] body .card.drawmax { background: var(--bg, #15111F) }
html[data-theme=dark] body .card.drawmax .vis-max { background: #2FAFA7; color: #15111F; border-color: #2FAFA7 }
/* dark · overlays.css */
html[data-theme=dark] .reward { background: rgba(21,17,31,0.86) }
html[data-theme=dark] .float { color: var(--gold) }
html[data-theme=dark] .modal { background: rgba(21,17,31,0.72) }
html[data-theme=dark] .m-card { border-radius: 24px; background: #15111F; border: 1px solid rgba(47,175,167,0.35); box-shadow: 0 30px 80px rgba(0,0,0,.6) }
html[data-theme=dark] .m-x { border-radius: 50%; border: 1px solid rgba(47,175,167,0.6); background: #15111F; color: var(--gold) }
html[data-theme=dark] .m-3d { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent) }
html[data-theme=dark] .m-book { background: #fbf8f1 }
html[data-theme=dark] .toast { border-radius: 14px; background: #15111F; border: 1px solid rgba(229,72,77,.6); color: var(--ink) }
html[data-theme=dark] .toast.good { background: #15111F; border-color: rgba(47,175,167,0.6) }
html[data-theme=dark] .hidden-gem { border: 0; background: none }
html[data-theme=dark] .gemcard { border-radius: 14px; border: 1px solid rgba(168,119,10,.45); background: rgba(168,119,10,.07); color: var(--ink) }
html[data-theme=dark] .m-img, html[data-theme=dark] .layer > .ph2, html[data-theme=dark] .igc .ph2, html[data-theme=dark] .photo3 div, html[data-theme=dark] .gph, html[data-theme=dark] .cols .ph2, html[data-theme=dark] .tasks.tcols .timg { background-color: #15111F }
html[data-theme=dark] .toast { box-shadow: 0 10px 30px rgba(0,0,0,.45) }
html[data-theme=dark] .restart-choices .go.danger { background: none; border: 1px solid rgba(229,72,77,.6); color: #ff8a8d }
html[data-theme=dark] .restart-choices .go.ghost { background: none; border: 1px solid rgba(241,236,226,.35); color: #F1ECE2 }
html[data-theme=dark] .rw-x { background: rgba(21,17,31,0.6) }
html[data-theme=dark] .dots i.on.now { background: var(--gold); box-shadow: 0 0 0 1.5px rgba(241,236,226,.55) }
html[data-theme=dark] .gem-tip { border-radius: 12px; border: 1px solid rgba(47,175,167,0.6); background: var(--bg-2); color: var(--gold-light); box-shadow: 0 10px 30px rgba(0,0,0,.5) }
html[data-theme=dark] .ask-btns .ask-no { border-radius: 16px; border: 1px solid rgba(241,236,226,.2); background: none; color: var(--ink-2) }
html[data-theme=dark] .ask-btns .go.danger { background: #e5484d; color: #fff }
html[data-theme=dark] .vpage { background: #15111F }
html[data-theme=dark] .vpage header { border-bottom: 1px solid rgba(47,175,167,0.2) }
html[data-theme=dark] .slpage .vp-body iframe { border: 0; background: #000 }
html[data-theme=dark] .m-text .txt ul.nextq li { border-top: 1px solid rgba(47,175,167,0.18) }
html[data-theme=dark] .m-text #m-cta { box-shadow: 0 -18px 18px -4px #15111F }
html[data-theme=dark] .wo-stat { border: 1px solid rgba(47,175,167,0.35); border-radius: 14px; background: rgba(47,175,167,0.06) }
html[data-theme=dark] .wo-stat span { color: var(--ink-2, rgba(241,236,226,.8)) }
html[data-theme=dark] .wo-badges span { border-radius: 999px; background: rgba(242,201,76,.14); border: 1px solid rgba(242,201,76,.45) }
html[data-theme=dark] .wo-board { color: var(--gold); background: none; border: 0 }
html[data-theme=dark] .rw .go.quiet { background: transparent; color: var(--ink); border: 1px solid rgba(241,236,226,.3); box-shadow: none }
html[data-theme=dark] .wo-stat svg { fill: none; stroke: var(--gold) }
html[data-theme=dark] .wo-stat.wo-gem svg { stroke: #F2B33D }
html[data-theme=dark] .wo-note { color: var(--ink-2, rgba(241,236,226,.8)) }
html[data-theme=dark] .m-img .credit { border-radius: 6px; background: rgba(21,17,31,0.6); color: #F1ECE2 }
/* dark · shelf.css */
html[data-theme=dark] .pill.shelf-btn { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] .yours { border-radius: 14px; background: rgba(62,139,214,.1); border: 1px solid rgba(62,139,214,.35); color: var(--ink) }
html[data-theme=dark] .yours small { color: #7fb3e6 }
html[data-theme=dark] .sh-tabs button { border-radius: 14px; border: 1px solid rgba(241,236,226,.12); background: var(--panel); color: var(--ink-3) }
html[data-theme=dark] .sh-tabs button.on { border-color: var(--gold); color: var(--gold); background: rgba(47,175,167,0.1) }
html[data-theme=dark] .sh-comb .cell.ghostgem .face { background: #15111F }
html[data-theme=dark] .sh-comb .cell.ghostgem::before { background: rgba(241,236,226,.1) }
html[data-theme=dark] .cell.medal.done .face { background: radial-gradient(circle at 40% 30%, #f6dd94, #c99a32 60%, #8a6517) }
html[data-theme=dark] .cell.medal.done .face::after { background: none }
html[data-theme=dark] .cell.medal.done .lab b { color: #15111F; text-shadow: none }
html[data-theme=dark] .cell.medal.done .lab i { background: #15111F; color: var(--gold-bright); border-color: #15111F }
html[data-theme=dark] .slot { border-radius: 18px; border: 1px solid rgba(47,175,167,0.22); background: radial-gradient(ellipse 70% 45% at 50% 36%, rgba(47,175,167,0.13), transparent 70%), var(--panel) }
html[data-theme=dark] .slot::after { border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent) }
html[data-theme=dark] .slot.empty { border-style: dashed; border-color: rgba(241,236,226,.14); background: var(--panel) }
html[data-theme=dark] .prof-path { border-radius: 18px; border: 1px solid rgba(47,175,167,0.18); background: var(--panel) }
html[data-theme=dark] .prof-path .ok { color: #2FAFA7 }
html[data-theme=dark] .prof-stats button { border-radius: 16px; border: 1px solid rgba(241,236,226,.1); background: var(--panel); color: var(--ink-3) }
html[data-theme=dark] .prof-stats button:hover { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] .pmenu { border-radius: 18px; border: 1px solid rgba(47,175,167,0.35); background: var(--bg-2); box-shadow: 0 24px 60px rgba(0,0,0,.6) }
html[data-theme=dark] .pmenu button { border: 0; border-radius: 12px; background: none; color: var(--ink) }
html[data-theme=dark] .pmenu button:hover, html[data-theme=dark] .pmenu button:focus-visible { background: rgba(47,175,167,0.1) }
html[data-theme=dark] .pmenu button .ic { color: var(--gold) }
html[data-theme=dark] .pmenu hr { border: 0; border-top: 1px solid rgba(241,236,226,.08) }
html[data-theme=dark] .shelf > header.bar { background: none; border-bottom: 0 }
html[data-theme=dark] .shelf > header.bar .brand { color: var(--ink) }
html[data-theme=dark] .pmenu .pm-lang select { border-radius: 10px; border: 1px solid var(--panel-line); background: var(--bg-2, #15111F); color: var(--ink) }
html[data-theme=dark] .gtile { border-radius: 12px; border: 1px solid rgba(241,236,226,.12); background: rgba(241,236,226,.04); color: var(--ink) }
html[data-theme=dark] .gtile.done { border-color: rgba(47,175,167,0.45); background: rgba(47,175,167,0.08) }
html[data-theme=dark] .gpic { border-radius: 10px; background: #15111F center / cover no-repeat; color: var(--gold) }
/* dark · cover.css */
html[data-theme=dark] .signin { background: radial-gradient(circle at 50% 30%, rgba(47,175,167,0.12), transparent 60%), var(--bg) }
html[data-theme=dark] .si-card { border-radius: 24px; border: 1px solid rgba(47,175,167,0.35); background: var(--panel) }
html[data-theme=dark] .si-card input { border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--bg-2); color: var(--ink) }
html[data-theme=dark] .si-card input:focus { outline: none; border-color: var(--gold) }
html[data-theme=dark] .si-err { color: #ff8a8d }
html[data-theme=dark] .lb li { border-radius: 12px; background: rgba(241,236,226,.04) }
html[data-theme=dark] .lb li:nth-child(2) i { color: #cfc8da }
html[data-theme=dark] .lb li:nth-child(3) i { color: #d39a6a }
html[data-theme=dark] .lb li.me { background: rgba(47,175,167,0.14); outline: 1px solid rgba(47,175,167,0.5) }
html[data-theme=dark] .lb-foot .link { background: none; border: 0; color: var(--gold) }
html[data-theme=dark] .cover { background: radial-gradient(ellipse at 30% 20%, rgba(47,175,167,0.1), transparent 55%), radial-gradient(ellipse at 50% 0%, rgba(47,175,167,0.1), rgba(21,17,31,0.97) 60%), var(--tapestry) 0 0/56px 97px, var(--bg) }
html[data-theme=dark] .cv-video { border-radius: 14px; background: #000 }
html[data-theme=dark] .cv-book { border-radius: 14px; background: rgba(255,253,249,.05); border: 1px solid var(--panel-line); color: var(--ink) }
@media (min-width: 900px) and (orientation: landscape) {
html[data-theme=dark] .cv-side .cv-enter { background: none; border: 0 }
}
html[data-theme=dark] .cv-x { border-radius: 50%; border: 1px solid rgba(47,175,167,0.6); background: rgba(21,17,31,0.7); color: var(--gold) }
html[data-theme=dark] .cv-side .cv-enter { background: none; border: 0 }
html[data-theme=dark] .si-pop { background: rgba(21,17,31,0.72) }
html[data-theme=dark] .si-pop .si-card { box-shadow: 0 30px 80px rgba(0,0,0,.6); background: var(--bg-2) }
html[data-theme=dark] .si-x { border-radius: 50%; border: 1px solid rgba(47,175,167,0.5); background: none; color: var(--gold) }
html[data-theme=dark] .lb li.out { background: transparent; border: 1px dashed rgba(241,236,226,.18) }
/* dark · dash.css */
html[data-theme=dark] .sh-seg button { border-radius: 999px; border: 1px solid rgba(241,236,226,.12); background: var(--panel); color: var(--ink-2) }
html[data-theme=dark] .dash-card { border-radius: 20px; border: 1px solid rgba(47,175,167,0.18); background: var(--panel) }
html[data-theme=dark] .dash-card h3 .ic { color: #2FAFA7 }
html[data-theme=dark] .dash-week { border-color: rgba(47,175,167,0.45); background: linear-gradient(160deg, rgba(47,175,167,0.09), rgba(47,175,167,0.02) 60%), var(--bg-2) }
html[data-theme=dark] .dash-bar { border-radius: 3px; background: rgba(241,236,226,.1) }
html[data-theme=dark] .hw-item { border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: rgba(0,0,0,.18); color: var(--ink) }
html[data-theme=dark] .hw-item:hover { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] .hw-st { border-radius: 50%; border: 1.5px solid rgba(47,175,167,0.6) }
html[data-theme=dark] .hw-item.done .hw-st { background: var(--right); border-color: var(--right); color: #15111F }
html[data-theme=dark] .dash-dl { color: var(--gold) }
html[data-theme=dark] .dash-wk { border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: rgba(0,0,0,.18); color: var(--ink-2) }
html[data-theme=dark] .dash-wk i { border-radius: 50%; border: 1px solid currentColor }
html[data-theme=dark] .dash-wk small .ic { color: #2FAFA7 }
html[data-theme=dark] .dash-tiles button { border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: rgba(0,0,0,.18); color: var(--ink-3) }
html[data-theme=dark] .dash-tiles button:hover { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] .dash-strip { border: 0; background: none; color: var(--ink-2) }
html[data-theme=dark] .dash-strip img { border-radius: 12px; border: 1px solid rgba(241,236,226,.1) }
html[data-theme=dark] .hw-tick { border-radius: 999px; border: 1px solid rgba(47,175,167,0.5); background: none; color: var(--gold-light) }
html[data-theme=dark] .hw-tick.on { border-color: var(--right); background: rgba(47,175,167,0.16); color: #2FAFA7 }
html[data-theme=dark] .dash-app { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] .dash-row:hover { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] body :is(.hw-item img, .dash-strip img) { background: #15111F }
html[data-theme=dark] a.pill.cert-go { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent) }
html[data-theme=dark] a.pill.cert-go:hover, html[data-theme=dark] a.pill.cert-go:focus-visible { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold) }
html[data-theme=dark] .dash-cert { border-color: color-mix(in srgb, var(--gold) 45%, transparent) }
/* dark · tabs.css */
html[data-theme=dark] .ctabs .ct { border: 0; border-radius: 999px; background: transparent; color: var(--ink-2) }
html[data-theme=dark] .ctabs .ct.on { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold) }
@media (max-width: 640px) {
html[data-theme=dark] .ctabs-phone { background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--panel-line) }
}
html[data-theme=dark] .lb-all { border-radius: 999px; border: 1px solid var(--gold); color: var(--gold) }
html[data-theme=dark] .ctabs .ct-n { border-radius: 9px; background: #E5484D; color: #fff }
/* dark · quotes.css */
html[data-theme=dark] .quote-gem { border: 0; background: none }
html[data-theme=dark] .q-text { border-left: 3px solid var(--gold, #2FAFA7); color: var(--ink) }
html[data-theme=dark] .q-who b { color: var(--gold, #2FAFA7) }
/* dark · points.css */

/* dark · focus.css */
html[data-theme=dark] .fc-shade { background: rgba(21,17,31,0.6) }
html[data-theme=dark] .fc-sheet { background: var(--bg-2, #15111F); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.45) }
html[data-theme=dark] .fc-grip { border-radius: 4px; background: rgba(241,236,226,.25) }
html[data-theme=dark] .fc-w { border-radius: 99px; border: 1px solid rgba(241,236,226,.16); background: transparent; color: var(--ink) }
html[data-theme=dark] .fc-item { border: 0; border-top: 1px solid rgba(241,236,226,.08); background: transparent; color: var(--ink) }
@media all {
html[data-theme=dark].focus .fc-home { color: var(--ink-2) }
html[data-theme=dark].focus .fc-pill { border-radius: 99px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: transparent; color: var(--gold) }
html[data-theme=dark].focus .fc-dot { border-radius: 50%; background: #e5484d }
html[data-theme=dark].focus .fc-hands .hands-fab { box-shadow: none !important }
html[data-theme=dark].focus #cont-chip { background: var(--gold) !important; border: 0 !important; color: var(--bg) !important; box-shadow: 0 6px 22px color-mix(in srgb, var(--gold) 35%, transparent) !important }
html[data-theme=dark].focus #map .world-cell .face { background-color: var(--bg) !important }
html[data-theme=dark].focus #comb .cell::before, html[data-theme=dark].focus #comb .cell[data-t]::before, html[data-theme=dark].focus #comb .cell[data-t].must::before { background: rgba(241,236,226,.12) !important }
html[data-theme=dark].focus #comb .cell.done .face::after { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 90%) !important }
html[data-theme=dark].focus #comb .cell.done::before, html[data-theme=dark].focus #comb .cell[data-t].done::before { background: color-mix(in srgb, var(--gold) 50%, transparent) !important }
html[data-theme=dark].focus #comb .cell.done .ck { background: var(--gold) !important; color: var(--bg) !important; box-shadow: none !important }
html[data-theme=dark].focus #comb .cell.done .lab b { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.8) !important }
html[data-theme=dark].focus #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: rgba(241,236,226,.55) !important; text-shadow: none !important }
html[data-theme=dark].focus #comb .cell.next .face::after { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.5) 90%) !important }
}
@media all {
html[data-theme=dark].focus #map .cell.next::before { background: var(--gold) !important }
html[data-theme=dark].focus #map .cell.next .face::after { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 90%) !important }
html[data-theme=dark].focus #map .cell.next .lab b { color: #fff !important }
}
html[data-theme=dark] body .card .upload img { border-radius: 12px; background: rgba(241,236,226,.04) }
@media (max-width: 600px) {
html[data-theme=dark].focus #cont-chip { border-radius: 26px !important; box-shadow: none !important }
}
/* dark · cards.css */
html[data-theme=dark] .stagebox { border-radius: 22px; background: radial-gradient(closest-side, rgba(255,255,255,.04), transparent); border: 1px solid rgba(47,175,167,0.1) }
html[data-theme=dark] .stagebox .hint { color: var(--ink-3) }
html[data-theme=dark] .chip { border-radius: 999px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); color: var(--ink-2) }
html[data-theme=dark] .chip.on { border-color: var(--gold); color: var(--ink); background: rgba(47,175,167,0.12) }
html[data-theme=dark] .opt { border-radius: 14px; border: 1px solid rgba(241,236,226,.14); background: var(--panel); color: var(--ink) }
html[data-theme=dark] .opt.pick { border-color: var(--gold); background: rgba(47,175,167,0.1) }
html[data-theme=dark] .opt.right { border-color: var(--d); background: rgba(47,175,167,0.18) }
html[data-theme=dark] .opt.wrong { border-color: var(--p); background: rgba(229,72,77,.12) }
html[data-theme=dark] .explain { border-left: 3px solid var(--gold); background: rgba(47,175,167,0.06); border-radius: 0 12px 12px 0; color: var(--ink-2) }
html[data-theme=dark] .ph { border-radius: 14px; border: 2px solid transparent; background: #000 }
html[data-theme=dark] .ph span { background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #FFFFFF }
html[data-theme=dark] .upload label { border-radius: 12px; border: 1px dashed rgba(47,175,167,0.5); color: var(--gold) }
html[data-theme=dark] .hero { background: center/cover; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent) }
html[data-theme=dark] .hero small { color: rgba(241,236,226,.6) }
html[data-theme=dark] .lines .line { color: var(--ink) }
html[data-theme=dark] .tapon { border-radius: 999px; border: 1px dashed rgba(47,175,167,0.5); background: none; color: var(--gold) }
html[data-theme=dark] .more { border-radius: 999px; border: 1px solid rgba(47,175,167,0.4); background: rgba(47,175,167,0.08); color: var(--gold) }
html[data-theme=dark] .bookpage { border: 0; background: #fbf8f1; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(47,175,167,0.3) }
html[data-theme=dark] .bookpage span { background: linear-gradient(transparent, rgba(21,17,31,0.9)); color: var(--gold) }
html[data-theme=dark] .opt .oi { border-radius: 10px; background: rgba(255,255,255,.03) }
html[data-theme=dark] .ex-art { border-radius: 10px; background: rgba(255,255,255,.03) }
html[data-theme=dark] .art-stage.flat { background: #15111F }
html[data-theme=dark] .stepnav .sb { border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); color: var(--ink-2) }
html[data-theme=dark] .sdots i { border-radius: 50%; background: rgba(241,236,226,.15) }
html[data-theme=dark] .fl { border: 0; background: none }
html[data-theme=dark] .fl .front { background: radial-gradient(circle at 50% 35%, rgba(47,175,167,0.2), rgba(47,175,167,0.04) 70%), var(--tapestry) 0 0/28px 48.5px, var(--bg-2); border: 1.5px solid rgba(47,175,167,0.55); box-shadow: inset 0 0 0 5px var(--bg-2), inset 0 0 0 6px rgba(47,175,167,0.25) }
html[data-theme=dark] .fl .back { background: #15111F; border: 1.5px solid var(--right); color: var(--ink-2) }
html[data-theme=dark] .fl .back.photo { background-color: #15111F }
html[data-theme=dark] .fl .back.photo .bt { color: var(--ink-2); background: linear-gradient(180deg, transparent, rgba(21,17,31,0.9) 38%) }
html[data-theme=dark] .tok { border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); color: var(--ink) }
html[data-theme=dark] .tok.sel { border-color: var(--gold); background: rgba(47,175,167,0.15) }
html[data-theme=dark] .tok.right { border-color: var(--d); background: rgba(47,175,167,0.15) }
html[data-theme=dark] .tok.wrong { border-color: var(--p); background: rgba(229,72,77,.14) }
html[data-theme=dark] .bin { border-radius: 16px; border: 1.5px dashed rgba(47,175,167,0.4); background: rgba(47,175,167,0.03) }
html[data-theme=dark] .mt { border-radius: 14px; border: 1px solid rgba(241,236,226,.16); background: var(--panel); color: var(--ink) }
html[data-theme=dark] .mt.sel { border-color: var(--gold); background: rgba(47,175,167,0.14) }
html[data-theme=dark] .mt.right { border-color: var(--d); background: rgba(47,175,167,0.14) }
html[data-theme=dark] .seq li { border-bottom: 1px solid rgba(241,236,226,.08); color: var(--ink) }
html[data-theme=dark] textarea { border-radius: 14px; border: 1px solid rgba(47,175,167,0.35); background: rgba(255,253,249,.04); color: var(--ink) }
html[data-theme=dark] textarea:focus { outline: none; border-color: var(--gold) }
html[data-theme=dark] .gph span { background: linear-gradient(transparent, rgba(0,0,0,.8)) }
html[data-theme=dark] .gv { border-radius: 16px; border: 1px dashed rgba(47,175,167,0.25) }
html[data-theme=dark] .go2 { border-radius: 14px; border: 1px solid var(--gold); background: rgba(47,175,167,0.12); color: var(--gold) }
html[data-theme=dark] button.link { border: 0; background: none }
html[data-theme=dark] .note { border-radius: 14px; background: var(--panel); border: 1px solid rgba(241,236,226,.08) }
html[data-theme=dark] .hero.live { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent) }
html[data-theme=dark] .cols .v3 { border-radius: 12px; background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); border: 1px solid rgba(47,175,167,0.12) }
html[data-theme=dark] .layer .lcap { background: linear-gradient(transparent, rgba(0,0,0,.85)); color: var(--ink); border-radius: 0 0 16px 16px }
html[data-theme=dark] .defwall div span { color: #fff; text-shadow: 0 1px 4px #000 }
html[data-theme=dark] .igc canvas { border-radius: 12px; background: #15111F }
html[data-theme=dark] .igc .verdict.yes b { color: #2FAFA7 }
html[data-theme=dark] .igc .verdict.no b { color: #ff8a8d }
html[data-theme=dark] .photo3 span { text-shadow: 0 1px 4px #000 }
html[data-theme=dark] .sysx .thumb { border-radius: 12px; background: center/cover; border: 1px solid rgba(47,175,167,0.35) }
html[data-theme=dark] .vid { border-radius: 16px; background: #000; border: 1px solid rgba(47,175,167,0.25) }
html[data-theme=dark] .more-t { border: 0; background: none; color: var(--gold) }
html[data-theme=dark] .link.dl { border: 1px solid rgba(47,175,167,0.6); border-radius: 999px }
html[data-theme=dark] .hero:not(.live) { background-color: #15111F; border-radius: 0 0 22px 22px }
html[data-theme=dark] .opts.pics .opt .oi, html[data-theme=dark] .opts.row.pics .oi { border-radius: 0; background: #15111F }
html[data-theme=dark] .art-stage .frame.photo img { border-radius: inherit }
html[data-theme=dark] .art-stage .frame.photo .pcredit { color: rgba(241,236,226,.75); background: rgba(0,0,0,.45); border-radius: 6px }
html[data-theme=dark] .seq.pics li { border: 1px solid rgba(47,175,167,0.45); border-radius: 12px; background: rgba(47,175,167,0.1) }
html[data-theme=dark] .mt.paired::after { border-radius: 50%; background: var(--pc); color: #15111F }
html[data-theme=dark] .timg .tcredit { color: rgba(241,236,226,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8) }
html[data-theme=dark] .stagebox .lab-hint { border-radius: 999px; background: rgba(21,17,31,0.85); border: 1px solid rgba(47,175,167,0.6); color: #F1ECE2 }
html[data-theme=dark] body .fl .front.photo { background-color: #15111F !important }
html[data-theme=dark] body .fl .front.photo .ft { color: #F1ECE2 !important; background: linear-gradient(180deg, transparent, rgba(21,17,31,0.9) 42%) }
html[data-theme=dark] body .fl .front.photo .fturn { color: #F1ECE2 }
html[data-theme=dark] .vid-own video { border-radius: 14px; background: #000 }
html[data-theme=dark] .aud-own { border-radius: 16px; border: 1px solid rgba(47,175,167,0.25); background: rgba(47,175,167,0.05) }
/* dark · player.css */
html[data-theme=dark] .p-x { border-radius: 50%; border: 1px solid rgba(241,236,226,.15); background: none; color: var(--ink-2) }
html[data-theme=dark] .dots i { border-radius: 3px; background: rgba(241,236,226,.1) }
html[data-theme=dark] .say #say-t b { color: var(--gold) }
html[data-theme=dark] .dots i.now { background: rgba(47,175,167,0.5) }
html[data-theme=dark] .nav { border-radius: 16px; border: 1px solid rgba(241,236,226,.18); background: var(--panel); color: var(--ink-2) }
html[data-theme=dark] .dots i.skipped { background: rgba(229,72,77,.45) }
@media (min-width: 900px) and (orientation: landscape) {
html[data-theme=dark] .card > .hero { border-radius: 22px }
}
html[data-theme=dark] .card > .qimg { background: #15111F; border-radius: 16px }
/* dark · layout.css */
html[data-theme=dark] body .pbar .nav { border-radius: 999px; border: 1px solid rgba(241,236,226,.16); background: none; color: var(--ink-2) }
html[data-theme=dark] body .pbar #fwd { border-color: rgba(47,175,167,0.45); color: var(--gold) }
html[data-theme=dark] body .card > .hero.drawn { background: radial-gradient(closest-side, rgba(47,175,167,0.08), transparent); border-radius: 22px }
html[data-theme=dark] body :is(.hero, .gph, .cols .ph2, .layer > .ph2, .defwall div, .igc .ph2, .photo3 div, .sysx .thumb, .tasks.tcols .timg, .m-img, .fl .back.photo) { background-color: #15111F }
html[data-theme=dark] body .opt .oi:has(img) { background: #15111F }
html[data-theme=dark] body .ph .verdict { border-radius: 99px; color: #15111F }
html[data-theme=dark] body .ph .verdict.yes { background: #2FAFA7 }
html[data-theme=dark] body .ph .verdict.no { background: #e5484d; color: #fff }
/* dark · read.css */
html[data-theme=dark] body .fl .front { background: linear-gradient(180deg, rgba(47,175,167,0.1), rgba(47,175,167,0.03)), #15111F; box-shadow: none }
html[data-theme=dark] body .fl .front .ft { color: #F1ECE2 }
html[data-theme=dark] body .fl .back.photo .bt { background: rgba(21,17,31,0.88); color: #F1ECE2 }
/* dark · feedback.css */
html[data-theme=dark] .fb-q textarea { color: var(--ink); background: rgba(241,236,226,.05); border: 1px solid rgba(241,236,226,.18); border-radius: 12px }
html[data-theme=dark] .fb-q textarea:focus { outline: none; border-color: var(--gold) }
html[data-theme=dark] .fb-rate button, html[data-theme=dark] .fb-yn button { border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: rgba(241,236,226,.04); color: var(--ink) }
html[data-theme=dark] .fb-rate button.on, html[data-theme=dark] .fb-yn button.on { background: var(--gold); border-color: var(--gold); color: #15111F }
html[data-theme=dark] .fb-rate button.on b, html[data-theme=dark] .fb-rate button.on small { color: #15111F }
html[data-theme=dark] .fb-worlds button { border-radius: 12px; border: 2px solid transparent }
html[data-theme=dark] .fb-worlds button span { color: #fff; background: rgba(21,17,31,0.68) }
html[data-theme=dark] .fb-worlds button.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(47,175,167,0.35) }
html[data-theme=dark] .fb-tick input { accent-color: var(--gold) }
html[data-theme=dark] .fb-ta { color: var(--ink); background: rgba(241,236,226,.05); border: 1px solid rgba(241,236,226,.18); border-radius: 12px }
html[data-theme=dark] .fb-ta:focus { outline: none; border-color: var(--gold) }
/* dark · vplayer.css */
html[data-theme=dark] .hgv-cover { border: 0; background: #15111F center / cover no-repeat }
html[data-theme=dark] .hgv-cover::before { background: linear-gradient(180deg, rgba(21,17,31,0) 40%, rgba(21,17,31,0.45)) }
html[data-theme=dark] .hgv-big { border-radius: 50%; background: var(--gold, #2FAFA7); color: #15111F; box-shadow: 0 6px 24px rgba(0,0,0,.35) }
html[data-theme=dark] .hgv-cover:focus-visible { outline: 3px solid var(--gold, #2FAFA7) }
html[data-theme=dark] .hgv-bar { background: linear-gradient(180deg, rgba(21,17,31,0), rgba(21,17,31,0.78)); color: #FFFFFF }
html[data-theme=dark] .hgv-bar button { border: 0; border-radius: 50%; background: transparent; color: #FFFFFF }
html[data-theme=dark] .hgv-bar button:hover, html[data-theme=dark] .hgv-bar button:focus-visible { background: rgba(255,255,255,.16) }
html[data-theme=dark] .hgv-t, html[data-theme=dark] .hgv-d { color: #FFFFFF }
html[data-theme=dark] .hgv-seek { background: transparent }
html[data-theme=dark] .hgv-seek::-webkit-slider-runnable-track { border-radius: 2px; background: linear-gradient(90deg, var(--hgv-accent, #2FAFA7) var(--at), rgba(255,255,255,.35) var(--at)) }
html[data-theme=dark] .hgv-seek::-moz-range-track { border-radius: 2px; background: rgba(255,255,255,.35) }
html[data-theme=dark] .hgv-seek::-moz-range-progress { border-radius: 2px; background: var(--hgv-accent, #2FAFA7) }
html[data-theme=dark] .hgv-seek::-webkit-slider-thumb { border: 0; border-radius: 50%; background: #FFFFFF }
html[data-theme=dark] .hgv-seek::-moz-range-thumb { border: 0; border-radius: 50%; background: #FFFFFF }
html[data-theme=dark] .hgv:fullscreen { border-radius: 0; border: 0; background: #000 }
html[data-theme=dark] .hgv.hgv-max { border-radius: 0; border: 0; background: #000 }
html[data-theme=dark] .hgv .hgv-hint { border-radius: 999px; background: rgba(21,17,31,0.82); color: #F1ECE2 }
/* dark · finale.css */
html[data-theme=dark] .fin-tally span { border-radius: 14px; border: 1px solid rgba(241,236,226,.1); color: var(--ink-3) }
html[data-theme=dark] .fin-w { border-radius: 14px; border: 1px solid rgba(241,236,226,.1); background: transparent; color: var(--ink) }
html[data-theme=dark] .fin-w:hover { border-color: rgba(47,175,167,0.45) }
html[data-theme=dark] .fin-as button { border-radius: 12px; border: 1px solid rgba(241,236,226,.18); background: var(--bg-2); color: var(--ink) }
html[data-theme=dark] .fin-as button.right { border-color: #2FAFA7; background: rgba(47,175,167,0.16); color: var(--ink) }
html[data-theme=dark] .fin-as button.wrong { border-color: #e5484d; background: rgba(229,72,77,.1); color: var(--ink) }
html[data-theme=dark] .fin-why { color: var(--ink-2) }
html[data-theme=dark] .fin-fb h3 .ic { color: #2FAFA7 }
html[data-theme=dark] .fin .fin-go { background: var(--gold); border-color: var(--gold); color: var(--bg) }
html[data-theme=dark] .fin-bk img { border-radius: 6px; box-shadow: 0 8px 24px rgba(241,236,226,.18) }
html[data-theme=dark] .fin .fin-go .ic { color: inherit !important; stroke: currentColor }
/* dark · fit.css */
html[data-theme=dark] body .fit.fit.fit.paper { background-color: #FFFFFF !important }
html[data-theme=dark] .frame:has(> img.paper), html[data-theme=dark] .hero:has(.paper) { background: #FFFFFF }
html[data-theme=dark] body img.qimg.fit.fit.fit { background: none !important; border-radius: 14px }
@media (max-width: 640px) {
html[data-theme=dark] body .pool:not(.pics) > .tok:has(img) img.fit.fit.fit, html[data-theme=dark] body .pool:not(.pics) > .tok:has(img) img { background: none !important; border-radius: 9px }
}
html[data-theme=dark] body :is(.stagebox, .visual, .art, .qart, .oi, .frame) svg text:is([fill^="rgba(241,236,226,.1"], [fill^="rgba(241,236,226,.2"], [fill^="rgba(241,236,226,.3"], [fill^="rgba(241,236,226,.4"], [fill^="rgba(241,236,226,.5"], [fill^="rgba(241, 236, 226, 0.3"], [fill^="rgba(241, 236, 226, 0.4"]) { fill: rgba(241,236,226,.82) !important }
html[data-theme=dark] body :is(.stagebox, .visual, .art, .qart, .oi, .frame) svg text[fill="#2FD0C5"] { fill: #2FAFA7 }
html[data-theme=dark] body .tok .oart svg, html[data-theme=dark] body .seq .oart svg { background: #15111F; border-radius: 8px }
html[data-theme=dark] body .fl .back .bh { color: #2FAFA7 }
/* dark · reactions.css */
html[data-theme=dark] .p-react .rx { border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--ink-2) }
html[data-theme=dark] .p-react .rx svg { fill: none; stroke: currentColor }
html[data-theme=dark] .p-react .rx svg .dot { fill: currentColor }
html[data-theme=dark] .p-react .rx[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent) }
html[data-theme=dark] .p-react .rx-tip { border-radius: 12px; background: var(--bg-2, var(--bg)); border: 1px solid var(--panel-line); box-shadow: 0 -10px 30px rgba(0,0,0,.4); color: var(--ink) }
html[data-theme=dark] .p-react .rx-tip textarea { border-radius: 8px; border: 1px solid var(--panel-line); background: var(--bg); color: var(--ink) }
html[data-theme=dark] .p-react .rx-tip button { border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--ink) }
html[data-theme=dark] .p-react .rx-tip .rx-kinds .rx-kind.on { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent) }
html[data-theme=dark] body .p-react .rx { border: 0 !important; background: transparent !important; color: var(--ink-3, rgba(241,236,226,.55)) }
/* dark · phone.css */

  /* light + dark, GENERATED by styles/theme-gen.py */
/* journey/styles/theme-fix.css */
/* Hand-made theme touches (20 Nov 2026), after the generated theme.css. Brand colours only. */
html[data-theme=light] { background: #F1ECE2 !important; --ink-2: #3E3833; --ink-3: #6B635A; color-scheme: light; }
html[data-theme=dark] { background: #15111F !important; color-scheme: dark; }
/* the missions in light mode are paper too (27 Nov 2026, Heike, report 445: "this is light theme, why is the background purple?").
   Only the slates (labs, boards, drawn pictures, videos) stay night paper: every drawing is in cream ink. */
html[data-theme=light] :is(.player, .reward) { background: #F1ECE2 !important; color: #2C1E4F; }
html[data-theme=light] :is(.stagebox, .art-stage, .qart, .opt .oi, .fl .front, .mt:has(> svg), .hero:not(:has(> img)), .ex-art:not(:has(> img))) { background-color: #15111F !important; --ink-2: rgba(241,236,226,.8); --ink-3: rgba(241,236,226,.6); }
html[data-theme=light] :is(.qart, .mt:has(> svg)) { border-radius: 14px; }
html[data-theme=light] .qart { padding: 8px; }
/* drawings in pop-ups (hidden gems, quotes) sit on the cream sheet itself: cream lines → violet ink, the dark outline round
   labels → a cream halo, turquoise → deep teal (report 446: 'From one root' and the outlined names were hard to read) */
html[data-theme=light] #m-body .m-art svg :is([fill="#F1ECE2"], [fill="#fff"], [fill="#FFF"], [fill="#ffffff"], [fill="white"]) { fill: #2C1E4F; }
html[data-theme=light] #m-body .m-art svg :is([stroke="#F1ECE2"], [stroke="#fff"], [stroke="white"]) { stroke: #2C1E4F; }
html[data-theme=light] #m-body .m-art svg [fill^="rgba(241,236,226"] { fill: rgba(44,30,79,.7); }
html[data-theme=light] #m-body .m-art svg [stroke^="rgba(241,236,226"] { stroke: rgba(44,30,79,.45); }
html[data-theme=light] #m-body .m-art svg :is([stroke="#15111F"], [stroke="#1E192D"]) { stroke: #F1ECE2; }
html[data-theme=light] #m-body .m-art svg :is([fill="#2FAFA7"], [fill="#2FD0C5"]) { fill: #0B6F69; }
html[data-theme=light] #m-body .m-art svg :is([stroke="#2FAFA7"], [stroke="#2FD0C5"]) { stroke: #0E8C85; }
/* the Theme row in the photo menu, under the language */
.pm-theme { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 14px; }   /* the word over the buttons when it does not fit (German, 21 Nov 2026) */
.pm-theme > span { font-size: 14px; color: var(--ink-2); }
.pm-theme > div { display: flex; gap: 4px; padding: 3px; border-radius: 99px; border: 1px solid var(--panel-line); }
.pm-theme button { padding: 5px 10px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
html .pmenu .pm-theme button.on, html[data-theme] .pmenu .pm-theme button.on { background: var(--gold) !important; color: #15111F !important; }
/* light: "not yet" hexagons and locked worlds are pale pencil sketches on the paper, not dark holes (20 Nov 2026) */
html[data-theme=light] .cell.locked .face, html[data-theme=light].focus .cell:not(.done):not(.next):not(.ghost) .face { filter: grayscale(1) brightness(1.15) contrast(.75) !important; opacity: .5; }
html[data-theme=light] .cell.locked .lab b, html[data-theme=light].focus .cell:not(.done):not(.next):not(.ghost) .lab b { color: #2C1E4F !important; text-shadow: none !important; }
html[data-theme=light] .cell.locked .face::after, html[data-theme=light].focus .cell:not(.done):not(.next):not(.ghost) .face::after { background: none !important; }
html[data-theme=light] .cell.locked .lab, html[data-theme=light] .cell.locked .lab * { color: #3E3833 !important; }
/* the new brand type (20 Nov 2026, Heike: "make sure the colours AND the fonts are the new brand style"):
   Outfit everywhere — the old Cormorant titles become Outfit — and no cursive anywhere (emphasis = upright + colour) */
:root, html[data-theme] { --serif: 'Outfit', system-ui, sans-serif !important; }
html body *, html body *::before, html body *::after { font-style: normal !important; }
html body :is(h1, h2, h3, .card h2, .card h3) { letter-spacing: -.005em; }
html body :is(h1, h2, h3) { text-wrap: balance; }
/* light: photos on the map stay clear, the names sit on a soft violet shade, in cream (20 Nov 2026, live check) */
html[data-theme=light].focus body #comb .cell:is(.done, .next) .face, html[data-theme=light].focus body #map .cell:not(.locked) .face { filter: none !important; opacity: 1 !important; }
html[data-theme=light].focus body #comb .cell:is(.done, .next) .face::after { background: linear-gradient(180deg, transparent 38%, rgba(44,30,79,.62) 92%) !important; }
html[data-theme=light].focus body #comb .cell:is(.done, .next) .lab b { color: #F1ECE2 !important; text-shadow: 0 1px 6px rgba(44,30,79,.85) !important; }
html[data-theme=light].focus body #map .cell:not(.locked) .face::after { background: linear-gradient(180deg, transparent 38%, rgba(44,30,79,.55) 92%) !important; }
html[data-theme=light].focus body #map .cell:not(.locked) .lab, html[data-theme=light].focus body #map .cell:not(.locked) .lab * { color: #F1ECE2 !important; }

/* light overview: the world pictures as they are (no lifting blend on paper), names cream on a violet shade (20 Nov 2026) */
html[data-theme=light].focus body #map .world-cell .face { background-blend-mode: normal !important; background-color: #2C1E4F !important; }
html[data-theme=light].focus body #map .world-cell.locked .face { filter: grayscale(1) brightness(1.15) contrast(.75) !important; opacity: .5 !important; background-color: transparent !important; }
html[data-theme=light].focus body #map .world-cell.locked .lab, html[data-theme=light].focus body #map .world-cell.locked .lab * { color: #3E3833 !important; text-shadow: none !important; }
html[data-theme=light].focus body #map .world-cell:not(.locked) .lab b { color: #F1ECE2 !important; text-shadow: 0 1px 6px rgba(44,30,79,.85) !important; }
html[data-theme=light].focus body #comb .cell:not(.done):not(.next):not(.ghost) .face { filter: grayscale(1) brightness(1.15) contrast(.75) !important; }
html[data-theme=dark] { --bg-2: #1E192D; }   /* panels and sheets, like the website (20 Nov 2026) */
/* dark text on every turquoise button, both themes (Heike 21 Nov 2026, report 379: "the turquoise buttons with the white font don't work, you need a darker font") */
html body .go:not(.danger):not(.ghost):not(.quiet), html body #go, html body #rw-go:not(.quiet), html body #rw-next:not(.quiet), html body .fin-go,
html body #cont-chip, html body .tool.on, html body .pmenu button.on, html body .fc-pill.on, html body .ho-open:not(.sec), html body .ho-pdf.pri,
html body .wo-board.btn, html body .cover .go, html body #m-cta, html body .m-cta { color: #15111F !important; }
html body #cont-chip * { color: inherit !important; }
html body .p-react .rx-tip .rx-send { background: #2FAFA7 !important; border-color: #2FAFA7 !important; color: #15111F !important; }   /* Send is the turquoise button it was meant to be */
/* gems count on the points badge: deep gold on the light ground, yellow was unreadable on cream (Heike 21 Nov 2026) */
html[data-theme=light] .xp-big .xp-gems { color: #7A5608 !important; }
html[data-theme=light] .xp-big .xp-gems .gl { opacity: 1 !important; color: #6B635A !important; }

/* the verdict at the start of every quiz answer (21 Nov 2026) */
html body .verdict { font-weight: 700; }
html body .verdict.v-ok { color: #2FAFA7; }
html body .verdict.v-no { color: #E8AFB4; }
/* a selected tool button is turquoise with dark text, in both themes: the themes' '.tool' panel colour used to win, so the forced
   dark text sat on the dark panel ("Show the lines", the mandala's 6 / 8 / 12; Heike 21 Nov 2026: "check all the fonts are on the right background") */
html body .tool.on { background: var(--gold) !important; border-color: var(--gold) !important; color: #15111F !important; }
html body .tool.on svg polygon { stroke: #15111F; }
/* light: the quiz verdict on paper, readable (27 Nov 2026, light missions) */
html[data-theme=light] body .verdict.v-ok { color: #0B6F69; }
html[data-theme=light] body .verdict.v-no { color: #A8322D; }
 /* hand-made theme touches — keep last */ /* the points badge, same in every course (12 Nov 2026) — keep last */
/* journey/styles/desktop.css */
/* Computers (29 Nov 2026, Heike: "on desktop really nice and big, like the original Atomic Geometry layout; don't change
   anything on the phone"; for every course on the engine). Three columns: the worlds · progress, title, Start, Hands-on ·
   the missions as big as the screen allows. Only wide AND landscape screens: phones and upright tablets never match.
   Keep LAST in journey.css (after theme-fix.css). The « button that folds the world list comes from the add-ons (acct.js); journey.js lets the hexagons grow. */
@media (min-width: 1000px) and (min-height: 520px) and (orientation: landscape) {
  html.focus body > header.bar { padding-left: 24px !important; padding-right: 24px !important; }
  html.focus body:not(.on-map) main.wrap { display: grid !important; grid-template-columns: 232px minmax(270px, 1fr) minmax(0, 2.15fr) !important; grid-template-rows: minmax(0, 1fr) !important;
    column-gap: clamp(20px, 2.4vw, 44px); max-width: 1760px !important; width: 100%; height: calc(100svh - 66px) !important; min-height: 0 !important; margin: 0 auto !important;
    padding: 10px 24px 14px !important; overflow: hidden; box-sizing: border-box; }

  /* left: the worlds, each with its small crystal */
  html.focus body:not(.on-map) #worlds { display: flex !important; flex-direction: column; gap: 7px; grid-column: 1; grid-row: 1; align-self: center; max-height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: none;
    margin: 0 !important; padding: 6px clamp(12px, 1.4vw, 24px) 6px 0 !important; border-right: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  html.focus #worlds::before { content: none !important; }
  html.focus #worlds .world { flex: none; display: grid; grid-template-columns: 30px 1fr 20px; column-gap: 11px; align-items: center; padding: 7px 12px; font: 400 13px/1.25 var(--sans); text-align: left; color: var(--ink-2); }
  html.focus #worlds .world .wn { display: grid; grid-row: 1 / 3; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font: 500 14px var(--sans); }
  html.focus #worlds .world b { font: 600 16.5px/1.15 var(--sans); white-space: normal; color: var(--ink); }
  html.focus #worlds .world > span:not(.wc) { grid-column: 2; }
  html.focus #worlds .world .wc { display: block; grid-column: 3; grid-row: 1 / 3; width: 20px; } html.focus #worlds .world .wc svg { display: block; width: 20px; height: 44px; }
  html.focus #worlds .world.on { border-color: var(--gold); } html.focus #worlds .world.on :is(.wn, span:not(.wc)) { color: var(--gold); }
  html.focus #worlds .world.locked { opacity: .62; }
  /* folded away (the « button of the member add-ons, body.weeks-slim): only the numbers, the missions get the room */
  html.focus body.weeks-slim:not(.on-map) main.wrap { grid-template-columns: 72px minmax(270px, 1fr) minmax(0, 2.5fr) !important; }
  html.focus body.weeks-slim:not(.on-map) #worlds { align-items: center; }
  html.focus body.weeks-slim #worlds .world { grid-template-columns: 30px; width: 48px; padding: 8px; justify-content: center; }
  html.focus body.weeks-slim #worlds .world > :not(.wn) { display: none !important; }

  /* middle: crystal, title, Start, Hands-on */
  html.focus body:not(.on-map) .w-info { grid-column: 2 !important; grid-row: 1 !important; align-self: center !important; align-items: stretch; text-align: left; margin: 0 !important; min-width: 0; }
  html.focus .w-info .w-progress { order: 0 !important; align-items: flex-start !important; margin: 0 0 22px !important; }
  html.focus .w-crystal { max-width: none !important; margin: 0 !important; }
  html.focus .pr-text { justify-content: flex-start !important; text-align: left !important; }
  html.focus .w-info #w-title { order: 1; margin: 0 0 20px !important; font-size: clamp(34px, 3.1vw, 54px) !important; line-height: 1.06 !important; text-align: left; }
  html.focus #cont-chip { position: static !important; order: 2; transform: none !important; left: auto !important; width: 100% !important; max-width: 460px; min-height: 66px; margin: 0 0 12px !important; padding: 12px 18px; box-sizing: border-box; border-radius: 16px; }
  html.focus #cont-chip b { font-size: 17px; white-space: normal; }
  html.focus .w-info .fc-hands { order: 3; justify-content: flex-start; margin: 0 0 10px; }
  html.focus .w-info .fc-hands .hands-fab { padding: 9px 16px !important; font-size: 15px !important; }
  html.focus .w-info .hw-row { order: 3; justify-content: flex-start; flex-wrap: wrap; margin: 0 0 10px !important; max-width: 460px; }
  html.focus .w-info .hw-row > :first-child { flex: 1 1 100%; } html.focus .w-info .hw-row > :not(:first-child) { min-height: 38px; padding: 6px 14px !important; }
  html.focus .w-info .soon { order: 4; max-width: 460px; text-align: left; }

  /* right: the missions fill everything that is left */
  html.focus body:not(.on-map) main.wrap > .comb { grid-column: 3 !important; grid-row: 1 !important; height: 100% !important; min-height: 0 !important; width: 100% !important; margin: 0 !important; align-self: stretch; }
  html.focus #comb .cell .lab b { font-size: max(15px, calc(var(--w) * .098)) !important; line-height: 1.15; }
  html.focus #comb .cell.next .lab[data-here]::after { font-size: 12.5px; padding: 4px 11px; bottom: 15%; }
  html.focus #comb .cell .ck { width: 26px; height: 26px; }
  html.focus .xp-big { left: auto !important; right: 20px !important; bottom: 16px !important; }
  /* the names of the missions still to come stay readable */
  html.focus body #comb .cell:not(.ghost), html.focus body #comb .cell .lab, html.focus body #comb .cell .lab b { opacity: 1 !important; }
  html[data-theme=dark].focus body #comb .cell:not(.done):not(.next):not(.ghost) .face { filter: grayscale(1) brightness(.6) !important; opacity: .75 !important; }
  html[data-theme=dark].focus body #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: rgba(241,236,226,.92) !important; text-shadow: 0 1px 6px rgba(0,0,0,.85) !important; }
  html[data-theme=light].focus body #comb .cell:not(.done):not(.next):not(.ghost) .face { opacity: .34 !important; }
  html[data-theme=light].focus body #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: #2C1E4F !important; font-weight: 600 !important; text-shadow: 0 0 6px #F1ECE2, 0 0 6px #F1ECE2, 0 0 10px #F1ECE2 !important; }

  /* the overview of all worlds: as big as the screen allows */
  html.focus body.on-map main.wrap { max-width: 1300px !important; height: calc(100svh - 66px) !important; min-height: 0 !important; padding: 8px 24px 12px !important; box-sizing: border-box; }
  html.focus body.on-map .map-wrap { padding-bottom: 6px; } html.focus body.on-map .map-wrap h1 { font-size: 40px; margin: 0 0 6px; }
}
 /* computers: three columns, big missions (29 Nov 2026) */
/* journey/styles/desktop-cards.css */
/* The games on a computer (30 Nov 2026, Heike: "the desktop version looks really f… up… we need to really fix this").
   ONE layout for every card, every course: the picture or game fills the right side, everything you read and press stands
   together on the left; a question has its picture on the left and question + answers together beside it; word games stand in
   the middle, bigger. One bottom row: Back · reactions · Check / Next. Wide landscape screens only: phones and upright tablets
   never match. Keep LAST in journey.css. */
@media (min-width: 1000px) and (min-height: 520px) and (orientation: landscape) {
  html body .player { --cardw: min(1480px, 100vw - 72px); --cardh: calc(100dvh - 146px); padding-top: 54px; justify-content: flex-start; }
  html body .player .card, html body .player:has(#p-react:not([hidden])) .card { height: var(--cardh); }
  html body .player .card { max-width: var(--cardw); padding: 6px 4px 6px; margin: 0 auto; }
  html body .player .p-top { padding: 12px 36px; }

  /* ---- the bottom row */
  html body .player .p-bottom { max-width: var(--cardw); padding: 10px 4px 0; margin: 0 auto; }
  html body .player .p-bottom .pbar.pbar { max-width: none !important; width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; column-gap: 18px; align-items: center; }
  html body .player .p-bottom .pbar.pbar > * { grid-row: 1 !important; }
  html body .player .p-bottom .pbar.pbar > #back { grid-column: 1 !important; justify-self: start; }
  html body .player .p-bottom .pbar.pbar > #p-react { grid-column: 2 !important; width: auto; margin: 0; }
  html body .player .p-bottom .pbar.pbar > :is(#fwd, #go) { grid-column: 3 !important; justify-self: end !important; }
  html body .player .p-bottom .pbar.pbar > #go.check { width: auto !important; min-width: 170px; }
  html body .player .p-bottom .pbar.pbar:has(#go.check:not(.wait)) > #fwd:not(.gone) { margin-right: 190px; }
  html body .player .p-bottom .pbar .nav { font-size: 16px; height: 48px; }

  /* ---- type: made for reading at arm's length */
  html body .player .card h2 { font-size: clamp(34px, 3vw, 46px); line-height: 1.1; margin: 4px 0 14px; text-wrap: balance; }
  html body .player .card :is(.txt, .q) { font-size: clamp(18.5px, 1.4vw, 22px); line-height: 1.45; }
  html body .player .card .lines .line { font-size: clamp(18.5px, 1.45vw, 22px); line-height: 1.45; margin-bottom: 12px; }
  html body .player .card > :is(.say, .ssay, .cap) { font-size: clamp(18.5px, 1.4vw, 21px) !important; line-height: 1.42; }
  html body .player .card .kicker { font-size: 13px; }

  /* ---- READ left, DO right, as big as the screen allows */
  html body .player .card:not(.drawmax):has(> .stagebox, > .hero, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual):not(:has(> .opts)) {
    display: grid; grid-template-columns: minmax(300px, .62fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) repeat(14, auto) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 0; justify-content: stretch; align-content: stretch; }
  html body .player .card:not(.drawmax):has(> .visual):not(:has(> .opts)) > .visual:has(> .stagebox) { display: contents; }
  html body .player .card:not(.drawmax):not(:has(> .opts)) > :is(.stagebox, .hero, .honey, .gs, .vid, .photos, .bookpage, .hwpic),
  html body .player .card:not(.drawmax):not(:has(> .opts)) > .visual > .stagebox { grid-column: 2 !important; grid-row: 1 / -1 !important; min-height: 0; height: auto; max-height: calc(var(--cardh) - 12px); margin: 0; align-self: stretch; width: 100%; max-width: none; }
  html body .player .card:not(.drawmax):not(:has(> .opts)) > .visual > .vis-max { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; position: relative; inset: auto; margin: 10px 10px 0 0; z-index: 4; }
  html body .player .card:has(> .stagebox, > .hero, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual):not(:has(> .opts)) > :is(.chips, .ctl, .cap, .say, .ssay, .explain, .count, .go2, .tally, .hwacts) { grid-column: 1 !important; text-align: left; }
  html body .player .card:not(.drawmax):not(:has(> .opts)) > .visual > :is(.tools, .stepnav) { grid-column: 1; order: 3; margin: 18px 0 0; justify-content: flex-start; }
  html body .player .card:not(.drawmax):not(:has(> .opts)) > :is(.chips, .ctl) { order: 3; margin: 18px 0 0; }
  html body .player .card:not(.drawmax) > .say { order: 2; margin-top: 16px; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); min-height: 4.4em; flex-direction: column; justify-content: flex-start; gap: 6px; }
  html body .player .card:not(.drawmax) > .say > b { font-size: 15px; }
  html body .player .card > .draw-sheet { order: 4; align-self: start; justify-self: start; margin: 16px 0 0; }
  html body .player .card > .count { order: 4; font-size: 16px; margin: 14px 0 0; }
  html body .player .card .tool { font-size: 15.5px; padding: 10px 16px; min-height: 44px; }
  html body .player .card .stepnav .sb { width: 54px; height: 46px; }
  /* the video and a Short keep their own shape */
  html body .player .card > .vid { align-self: center !important; aspect-ratio: 16 / 9; height: auto !important; }
  html body .player .card > .vid.vid-tall { aspect-ratio: 9 / 16; height: min(calc(var(--cardh) - 12px), 780px) !important; width: auto !important; justify-self: center; }
  html body .player .card > .photos { align-self: center !important; height: auto; }
  html body .player .card .hero { border-radius: 22px; }

  /* ---- a question: its picture left, question and answers together on the right, in the middle of the height */
  html body .player .card:has(> .opts):has(> .qimg, > .qart, > #qstage, > .stagebox, > .hero) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) repeat(14, auto) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 0; align-content: stretch; }
  html body .player .card:has(> .opts):has(> .qimg, > .qart, > #qstage, > .stagebox, > .hero) > * { grid-column: 2; }
  html body .player .card:has(> .opts):has(> .qimg, > .qart, > #qstage, > .stagebox, > .hero)::before { display: block; content: ''; grid-row: 1; grid-column: 2; }
  html body .player .card:has(> .opts):has(> .qimg, > .qart, > #qstage, > .stagebox, > .hero)::after { display: block; content: ''; grid-row: 16; grid-column: 2; }
  html body .player .card:has(> .opts) > :is(.qimg, .qart, #qstage, .stagebox, .hero), html body .player .card:has(> .opts) > img.qimg.fit.fit.fit { grid-column: 1 !important; grid-row: 1 / -1 !important; width: 100% !important; max-width: none; height: auto !important; min-height: 0; max-height: min(calc(var(--cardh) - 40px), 640px) !important; align-self: center !important; justify-self: center; margin: 0; object-fit: contain !important; }
  html body .player .card:has(> .opts) > :is(#qstage, .stagebox, .hero) { height: min(calc(var(--cardh) - 40px), 640px) !important; align-self: center; }
  html body .player .card:has(> .opts) > .qart > svg { width: 100%; height: auto; max-height: min(calc(var(--cardh) - 60px), 560px); display: block; }
  html body .player .card:has(> .opts) > .qcredit { grid-column: 1 !important; grid-row: 16 !important; align-self: end; justify-self: end; margin: 0; }
  html body .player .card > .opts .opt { font-size: clamp(17px, 1.3vw, 20px); min-height: 58px; padding: 14px 20px; }
  html body .player .card > .opts { gap: 12px; margin-top: 16px; }
  html body .player .card:has(> .opts) > .explain { grid-column: 2 !important; margin-top: 16px; }
  html body .player .card:has(> .opts):has(> .qimg, > .qart, > .stagebox, > .hero) > .opts.pics { grid-column: 2 !important; margin-top: 16px; }
  html body .player .card > .opts.pics .opt { padding: 0; }

  /* ---- words and things to tap: in the middle, wider and bigger */
  html body .player .card:not(:has(> .stagebox, > .hero, > .qimg, > .qart, > .honey, > .gs, > .vid, > .photos, > .bookpage, > .visual, > .flips, > .opts.pics)) { max-width: min(clamp(1040px, 64vw, 1240px), 100vw - 72px); justify-content: safe center; }
  html body .player .card:has(> .flips), html body .player .card:has(> .opts.pics):not(:has(> .qimg, > .qart, > .stagebox, > .hero)) { max-width: min(1240px, 100vw - 72px); justify-content: safe center; }
  html body .player .card > .flips .fl { max-height: calc(var(--cardh) - 180px); }
  html body .player .card > .flips:is(.n5, .n6) .fl { max-height: calc((var(--cardh) - 190px) / 2); }
  html body .player .card > .flips { gap: 20px; margin-top: 20px; }
  html body .player .card .match .mt span { font-size: 18px; }
  html body .player .card > .bins { gap: 14px; margin-top: 18px; }
  html body .player .card .bin { min-height: 128px; }
  /* three boxes stand in one row, not 2 + 1 */
  html body .player .card > .bins:has(> .bin:nth-child(3)):not(:has(> .bin:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .player .card .bin b { font-size: 18px; }
  html body .player .card:has(.tok img) .bins { grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr)); }
  html body .player .card .pool { justify-content: center; gap: 12px; }
  html body .player .card .tasks .task, html body .player .card .tasks { max-width: 100%; }

  html body .player .card:not(:has(> .qimg, > .qart, > .stagebox, > .hero)) > .opts.pics.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html body .player .card:has(> .qimg, > .qart, > .stagebox, > .hero) > .opts.pics.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* five lines or more: a wider words column and slightly smaller words, so a long story still fits one screen */
  html body .player .card.card:has(> .lines > .line:nth-child(5)):has(> .hero) { grid-template-columns: minmax(380px, .95fr) minmax(0, 1fr) !important; }
  html body .player .card > .lines:has(> .line:nth-child(5)) .line { font-size: clamp(16px, 1.2vw, 19.5px); margin-bottom: 9px; }
  html body .player .card > .flips:has(> .fl:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  html body .player .card > .flips:has(> .fl:nth-child(7)) .fl { max-height: calc((var(--cardh) - 190px) / 2); }
  /* pictures to put in order: all in one row (up to six), none left over in a second row */
  html body .player .card .pool.pics { grid-template-columns: repeat(min(var(--n, 4), 6), minmax(0, 1fr)); }
  html body .player .card .pool.pics .tok { font-size: 16px; }
  html body .player .card .pool.pics .tok img { height: auto; aspect-ratio: 4 / 3; }
  html body .player .card .tok:has(img) { font-size: 15.5px; }
  html body .player .card .pool:not(.pics) .tok:has(img) { width: clamp(112px, 9.4vw, 150px); }
  /* homework: one task fills the card, its picture beside the words */
  html body .player .card .tasks.tcols:not(:has(> .task:nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
  html body .player .card .tasks.tcols:not(:has(> .task:nth-child(2))) > .task:has(> :is(.timg, .ico)) { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; }
  html body .player .card .tasks.tcols:not(:has(> .task:nth-child(2))) > .task :is(.timg, .ico) { width: 100%; height: clamp(240px, 46vh, 460px); }
  html body .player .card .task b { font-size: 20px; }
  html body .player .card .task .tt p { font-size: 16.5px; line-height: 1.5; }
  html body .player .card .task :is(.upload label, textarea, button, .hw-dl, a) { font-size: 16px; }
  html body .player .card .task textarea { width: 100%; }
  /* the words under a drawing stay words, not a headline; a story's photo shows to its lower edge */
  html body .player .card .art-stage .frame svg.art text.cap { font-size: 12.5px; }
  html body .player .card > .hero { -webkit-mask-image: none !important; mask-image: none !important; }
  /* small print on photos */
  html body .player .card .photos .ph :is(small, span) { font-size: 15px; color: #fff !important; text-shadow: 0 1px 5px rgba(0,0,0,.85); }

  /* the first gem's note hangs under its own gem, never over the game */
  html body .player .card > .gem-tip { top: calc(var(--gy) + 42px) !important; }
  html body .player .card > .gem-tip ~ .gem-tip { top: calc(var(--gy) + 108px) !important; }
}

/* ---- questions with a drawing, and "guess from a photo" (layout sweep, 30 Nov 2026) ---- */
@media (min-width: 900px) and (orientation: landscape) {
  /* a question with a drawing uses the width like one with a photo (its column was a third of the screen) */
  html body .player .card:has(> .opts):has(> .qart) { max-width: min(1240px, 100vw - 72px); }
  html body .player .card:has(> .opts) > .qart { max-height: min(calc(var(--cardh) - 40px), 560px) !important; }
  /* guess from a photo: words left, photo + model right, the answers across below; the explanation never lies over the photo */
  html body .player .card:has(> .gs):has(> .opts) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important; grid-template-rows: repeat(8, auto) !important; align-content: safe center; column-gap: 32px; }
  html body .player .card:has(> .gs):has(> .opts)::before, html body .player .card:has(> .gs):has(> .opts)::after { display: none !important; }
  html body .player .card:has(> .gs) > * { grid-column: 1 !important; grid-row: auto !important; }
  html body .player .card:has(> .opts) > .gs { grid-column: 2 !important; grid-row: 1 / 8 !important; height: auto !important; min-height: 260px; align-self: stretch !important; }
  html body .player .card:has(> .gs) > .opts { grid-column: 1 / -1 !important; grid-row: 8 !important; margin-top: 18px; }
  html body .player .card:has(> .gs):has(> .opts) > .explain { grid-column: 1 !important; grid-row: auto !important; max-width: 100%; }
  html body .player .card:has(> .gs):has(> .opts) > .gs { min-height: 200px; }
  html body .player .card:has(> .gs) > .opts.pics .opt .oi { height: clamp(120px, 24vh, 220px); }
  /* a drawing + picture answers: the answers follow the question (they stood above the title) */
  html body .player .card:has(> .opts):has(> .qart) > .opts.pics { grid-row: auto !important; align-self: auto !important; }
}
 /* computers: the games (30 Nov 2026) */
/* journey/styles/everywhere.css */
/* Every screen, every course: the map's names and the cards' small things (from the layout sweep, 30 Nov 2026).
   Colours that differ in light and dark that belong to no generated rule stand here too. Loaded after the screen sizes' files. */

/* ---- the map ---- */
/* light: the two pills on the course page were black on black (phones, iPad) */
@media (max-width: 899px), (orientation: portrait) {
  html[data-theme=light] body .hw-row .hw-btn, html[data-theme=light] body .hw-row .hw-dl { background: rgba(255,253,249,.75) !important; border: 1px solid rgba(14,140,133,.5) !important; color: #0B6F69 !important; }
  html[data-theme=light] body .hw-row .hw-btn::after, html[data-theme=light] body .hw-row .hw-dl::after { color: #2C1E4F !important; }
  html[data-theme=light] body .hw-row :is(.hw-btn, .hw-dl) :is(.ic, svg) { color: #0B6F69 !important; }
}
/* the line under "Your key mission" on its turquoise button */
html body .hw-row .hw-btn small { opacity: 1; }
html[data-theme] .w-info .hw-row .hw-btn :is(b, small, span) { color: #15111F !important; }
/* the names of the missions still to come are readable on every screen (before: only on computers) */
html.focus body #comb .cell:not(.ghost), html.focus body #comb .cell .lab, html.focus body #comb .cell .lab b { opacity: 1 !important; }
html[data-theme=dark].focus body #comb .cell:not(.done):not(.next):not(.ghost) .face { filter: grayscale(1) brightness(.55) !important; opacity: .7 !important; }
html[data-theme=dark].focus body #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: rgba(241,236,226,.92) !important; text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.8) !important; }
html[data-theme=light].focus body #comb .cell:not(.done):not(.next):not(.ghost) .face { opacity: .34 !important; }
html[data-theme=light].focus body #comb .cell:not(.done):not(.next):not(.ghost) .lab b { color: #2C1E4F !important; font-weight: 600 !important; text-shadow: 0 0 5px #F1ECE2, 0 0 5px #F1ECE2, 0 0 9px #F1ECE2 !important; }
/* light: a mission with a drawing (no photo) keeps its night paper, so its name can be read */
html[data-theme=light].focus body #comb .cell:is(.done, .next) .face { background-color: #15111F !important; }
/* the worlds: names and counts clear over the bright shapes */
html.focus body #map .world-cell .lab b { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85) !important; }
html.focus body #map .world-cell .lab small, html.focus body #map .world-cell .lab small * { color: #F1ECE2 !important; font-size: max(10.5px, calc(var(--w) * .075)) !important; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.8) !important; }
html.focus body #map .world-cell .face::after { background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.45), transparent 62%) !important; }
/* the worlds' names at full strength (they were dimmed like closed missions) */
html body #map .cell .lab { opacity: 1 !important; }
html.focus body #map .world-cell.locked .lab { opacity: .85 !important; }
/* a finished mission's name is readable on a white flower too; the next mission's name stands clear of "You are here" */
html.focus body #comb .cell:is(.done, .next) .face::after { background: linear-gradient(180deg, transparent 28%, rgba(10,8,16,.5) 58%, rgba(10,8,16,.66) 92%) !important; }
html.focus body #comb .cell:is(.done, .next) .lab b { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 9px rgba(0,0,0,.9) !important; }
@media (max-width: 899px), (orientation: portrait) { html.focus #comb .cell.next .lab[data-here] { padding-bottom: 12%; } }

/* ---- the cards ---- */
/* a story never slides sideways (the picture is wider than the text on purpose) */
html body .player .card { overflow-x: clip; }
/* hexagon walls: every name readable, on photos and drawings, opened or not, light and dark */
html body .honey .hx .tl, html[data-theme] .honey .hx .tl, html[data-theme] .honey .hx:is(.centre, .drawn-tile, .seen) .tl { color: #F1ECE2 !important; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.9) !important; font-size: max(11.5px, calc(var(--w) * .1)); }
html body .honey .hx.drawn-tile .tl { text-shadow: 0 0 4px #15111F, 0 0 8px #15111F !important; }
html body .honey .hx:not(.drawn-tile)::before { background: linear-gradient(180deg, rgba(0,0,0,0) 34%, rgba(0,0,0,.72) 82%); }
/* the caption inside a tile's drawing repeats the tile's name */
html body :is(.honey .hx, .fl .front, .opt .oi) svg text.cap { display: none; }
/* what you wrote before: the little label in the light theme */
html[data-theme=light] .card .yours small { color: #2F5B8F !important; }
/* sorting photos on a phone: the row starts at the first photo, whole */
html body .card:has(.pool > .tok img) .pool:not(.pics) { scroll-padding-left: 16px; }
/* small print */
html body :is(.fl .fturn) { font-size: 12px; }
html body .player .card :is(small.qcredit, .pcredit, .hero ~ small, .credit, small.tcredit) { font-size: 11.5px; }
/* a sketch card waits with a hint you can read */
html body .card .sk-pad .hint, html body .card .sketch .hint, html body .card .stagebox .hint { color: rgba(241,236,226,.72) !important; font-family: Outfit, system-ui, sans-serif !important; }
/* tools that wait their turn: pale, still readable */
html body .card .tool[disabled], html body .card .tool:disabled { opacity: .62; }
/* three sorting boxes stand in one row, five in one row, on tablets and computers */
@media (min-width: 700px) {
  html body .player .card > .bins:has(> .bin:nth-child(3)):not(:has(> .bin:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body .player .card > .bins:has(> .bin:nth-child(5)):not(:has(> .bin:nth-child(6))) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
/* nothing hidden shows itself (the crystal quiz on a computer had "Next crystal" before the answer) */
html body .player .card [hidden] { display: none !important; }
/* a name written on a photo is cream with a shade, in both themes */
html body .player .card .gph span { color: #F1ECE2 !important; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.85); }
/* light: fields and labels among a lab's tools are ink on paper (some labs wrote cream on cream) */
html[data-theme=light] .card .tools :is(input:not([type=range]):not([type=color]), textarea) { color: #2C1E4F !important; background: #FFFDF9 !important; }
html[data-theme=light] .card .tools label, html[data-theme=light] .card .tools label > span { color: #2C1E4F !important; }
html body .card input[type=range] { accent-color: #2FAFA7; }
/* the caption inside the picture of an answer, too small to read on a phone: the words beside it say it */
html body .explain .ex-art:not(.big) svg text.cap { display: none; }
@media (max-width: 599px) { html body .explain .ex-art svg text.cap { display: none; } }
/* computer + iPad: the big picture of an answer stands beside its words, so the card needs no scrolling and its title stays */
@media (min-width: 700px) {
  html body .player .card .explain.show:has(> .ex-art.big) { display: flex; gap: 16px; align-items: center; max-width: 100%; }
  html body .explain.show > .ex-art.big { flex: 0 0 min(40%, 220px); width: auto; margin: 0; }
  html body .explain.show > .ex-art.big > :is(svg, img) { max-height: 190px; }
  html body .explain.show > .ex-art.big + div { flex: 1; min-width: 0; }
}
/* a card that goes on below: its last lines fade, so you see that you can scroll */
html body .player .card.more-below { -webkit-mask-image: linear-gradient(#000 calc(100% - 46px), rgba(0,0,0,.12)); mask-image: linear-gradient(#000 calc(100% - 46px), rgba(0,0,0,.12)); }
/* credits stay inside their picture */
html body .player .card :is(.hero, .frame) small, html body .player .card .hero ~ small { max-width: calc(100% - 16px); white-space: normal; }
/* dark words on white paper in a drawing: no dark edge round them (it filled the letters) */
html body svg text[fill="#15111F"][stroke="#15111F"] { stroke: none; }
 /* every screen, every course (30 Nov 2026) */
/* journey/styles/tablet.css */
/* iPad held upright: the phone's order, the tablet's size (from the layout sweep, 30 Nov 2026). iPad sideways uses the computer's layout (desktop-cards.css); the few things it needs on top are at the end. */
@media (min-width: 700px) and (orientation: portrait) {
  html body .player .card, html body .player .p-bottom { max-width: min(820px, 100vw - 72px); }
  html body .player .card h2 { font-size: clamp(36px, 5vw, 44px); line-height: 1.12; margin-bottom: 10px; }
  html body .player .card :is(.txt, .q), html body .player .card .lines .line { font-size: clamp(20px, 2.6vw, 23px); line-height: 1.45; }
  html body .player .card > :is(.say, .ssay, .cap, .explain), html body .player .card .explain { font-size: clamp(19px, 2.4vw, 22px) !important; line-height: 1.45; }
  html body .player .card .kicker { font-size: 13.5px; }
  html body .player .card > .opts:not(.pics) .opt { font-size: 20px; min-height: 64px; padding: 14px 20px; }
  html body .player .card > .opts.pics .opt .ot { font-size: 18px; }
  html body .player .card > .opts.pics.pics { gap: 16px; }
  html body .player .card > .opts.pics .opt .oi { min-height: 190px; }
  html body .player .card > img.qimg.fit.fit.fit, html body .player .card > .qimg { height: clamp(300px, 36vh, 480px) !important; max-height: none !important; }
  html body .player .card > .qart { height: clamp(300px, 36vh, 440px); width: auto; aspect-ratio: 1; max-height: none; margin-left: auto; margin-right: auto; }
  html body .player .card .qart svg { width: 100%; height: 100%; }
  /* four answer pictures under a question picture: everything on one page */
  html body .player .card:has(> .opts.pics.n4) > img.qimg.fit.fit.fit, html body .player .card:has(> .opts.pics.n4) > :is(.qimg, .qart) { height: clamp(200px, 22vh, 280px) !important; }
  html body .player .card:has(> .qimg) > .opts.pics.n4 .opt .oi { min-height: 130px; max-height: 17vh; }
  html body .player .card .match { gap: 12px; }
  html body .player .card .match .mt span { font-size: 19px; }
  html body .player .card .match .mt { min-height: 76px; }
  html body .player .card .match:not(.big) .mt :is(img, svg) { width: 84px !important; height: 84px !important; flex: 0 0 84px !important; }
  html body .player .card .pool { gap: 12px; }
  html body .player .card .pool .tok { font-size: 18px; padding: 12px 16px; }
  html body .player .card .pool:not(.pics) .tok:has(img) { width: 128px; padding: 6px 6px 9px; font-size: 16px; }
  html body .player .card .bins { gap: 14px; }
  html body .player .card .bin { min-height: 130px; }
  html body .player .card .bin b { font-size: 18px; }
  html body .player .card .fl .ft { font-size: 20px; }
  html body .player .card .fl .bt { font-size: 18px; line-height: 1.4; }
  html body .player .card .tool { font-size: 16px; padding: 10px 16px; min-height: 46px; }
  html body .player .card .stepnav .sb { width: 58px; height: 50px; }
  html body .player .card textarea { font-size: 20px; min-height: 180px; }
  html body .player .card .count { font-size: 16px; }
  html body .player .card .tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; width: 100%; }
  html body .player .card .tasks .task { max-width: 100%; width: 100%; }
  html body .player .card .tasks .task :is(.tt, p, li) { font-size: 18px; line-height: 1.45; }
  html body .player .card .tasks .task b { font-size: 20px; }
  html body .player .card .task :is(.upload label, textarea, button, .hw-dl, a) { font-size: 17px; }
  html body .player .p-bottom .pbar .nav { font-size: 17px; height: 54px; }
  html body .player .p-bottom .pbar .nav span { display: inline !important; }
  html body .modal .m-card { max-width: min(680px, 100vw - 80px); }
  html body .modal .m-body { font-size: 19px; }
  /* iPad upright: Back is a pill round its word (the word ran out of a round button) */
  html body .p-bottom .pbar:has(#go) #back { width: auto; min-width: 44px; padding: 0 20px 0 16px; }
  html body .p-bottom .pbar:has(#go) #back span { display: inline; }
  /* cards to turn over: the whole set on the screen */
  html body .card > .flips:is(.n5, .n6), html body .card > .flips:has(> .fl:nth-child(5)), html body .card > .flips.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .player .card > .flips:has(> .fl:nth-child(5)) .fl { aspect-ratio: 4 / 5; min-height: 0; height: auto; }
  html body .player .card > .flips:has(> .fl:nth-child(7)) .fl { max-height: calc((100dvh - 320px) / 3); }
  /* room for the words on the back; a long one scrolls inside its card, never over the edge */
  html body .player .card > .flips.n3 .fl { aspect-ratio: 5 / 9; min-height: 0; height: auto; max-height: none; }
  html body .player .card > .flips:is(.n5, .n6) .fl { aspect-ratio: 3 / 4; }
  html body .flips .fl .back { justify-content: safe center; overflow-y: auto; }
  /* a lab keeps room for two lines of words under it (the second line fell off the bottom) */
  html body .player .card:has(> .visual) > .say { min-height: 86px; align-items: flex-start; }
}
@media (min-width: 700px) and (orientation: landscape) {
  /* six pairs to match: the pictures are as tall as the screen allows, so the last pair is never under the edge */
  html body .player .card .match:has(.mt:nth-child(6)) .mt :is(img, svg) { --s: clamp(38px, calc((100dvh - 258px) / 6 - 28px), 76px); width: var(--s) !important; height: var(--s) !important; flex: 0 0 var(--s) !important; }
  /* the back of a card: a long text scrolls inside its card, never over the edge */
  html body .flips .fl .back { justify-content: safe center; overflow-y: auto; }
}
@media (min-width: 700px) and (orientation: landscape) and (max-height: 860px) {
  /* iPad sideways, small laptops: ten things to sort and six cards to turn stay on one screen */
  html body .player .card .bins .bin { min-height: 84px; }
  html body .player .card > .flips:is(.n5, .n6) .fl .back .bt { font-size: 16px; line-height: 1.32; padding: 4px 8px 6px; }
}
@media (min-width: 700px) {
  /* seven or eight small cards to turn have smaller words on the back */
  html body .player .card > .flips:has(> .fl:nth-child(7)) .fl .back .bt { font-size: 15px; line-height: 1.32; padding: 4px 4px 6px; }
  html body .player .card > .flips:has(> .fl:nth-child(7)) .fl .back { padding: 8px; }
}
@media (min-width: 700px) and (orientation: portrait) {
  /* iPad upright: the seventh card, alone in its row, takes the whole row */
  html body .player .card > .flips > .fl:nth-child(7):last-child { grid-column: 1 / -1; aspect-ratio: auto; height: 200px; }
}
 /* iPad upright */
/* journey/styles/frames.css */
/* ONE FORMAT FOR PICTURES, every course, every screen (Heike 1 Dec 2026: "a standard, that images have a certain format").
   3 wide : 2 high, the whole width of the card, the same corners. fit.js decides: the photo fills the frame, or, when too much
   would be cut (a tall tower, a long strip, a work of art), it stays whole on its own blurred copy. The zoom icon shows it whole.
   Change the shape here, in one place: */
:root { --frame: 3 / 2; --frame-round: 16px; }

/* ---- the zoom icon: one look on every picture and every game (zoom.js .zoomb, cards.js .vis-max) */
html body .card:not(.drawmax) > .visual > button.vis-max.vis-max { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(241,236,226,.35); background: rgba(21,17,31,.72); color: #F1ECE2; display: grid; place-items: center; cursor: zoom-in; }
html body .card:not(.drawmax) > .visual > button.vis-max svg { width: 22px; height: 22px; }
html body .card:not(.drawmax) > .visual > button.vis-max:hover { background: rgba(21,17,31,.9); border-color: #2FAFA7; }

/* ---- a question's picture */
html body .player .card > div.qimg.qimg.qimg { position: relative; display: block; flex: none !important; box-sizing: border-box; width: 100%; max-width: 100%; height: auto !important; min-height: 0; max-height: none !important; aspect-ratio: var(--frame); margin: 0 auto 8px; border-radius: var(--frame-round); overflow: hidden; background-color: #1E192D; background-position: center; background-size: contain; background-repeat: no-repeat; }
/* a small phone, and an iPad: as wide as it can be without pushing the answers off the page */
@media (max-width: 899px) { html body .player .card > div.qimg.qimg.qimg { width: min(100%, 31vh * 1.5); } }
/* the picture IS the question (bigImg): more room */
@media (max-width: 899px) { html body .player .card > div.qimg.big.qimg.qimg { width: min(100%, 40vh * 1.5); } }
/* answers with pictures of their own: a smaller one, the same shape */
@media (max-width: 899px) { html body .player .card:has(> .opts.pics) > div.qimg.qimg.qimg { width: min(100%, 25vh * 1.5) !important; margin-bottom: 6px !important; } }
@media (min-width: 900px) and (orientation: landscape) { html body .player .card:has(> .opts) > div.qimg.qimg.qimg { grid-column: 1 !important; grid-row: 1 / -1 !important; align-self: center !important; justify-self: center; width: 100% !important; margin: 0; } }
/* iPad upright: there is room, the whole width */
@media (min-width: 700px) and (orientation: portrait) { html body .player .card > div.qimg.qimg.qimg { width: min(100%, 40vh * 1.5); } html body .player .card:has(> .opts.pics) > div.qimg.qimg.qimg { width: min(100%, 27vh * 1.5) !important; max-height: none !important; } }
html body .player .card > div.qimg .pcredit { position: absolute; right: 8px; bottom: 6px; left: auto; max-width: calc(100% - 16px); z-index: 2; color: #F1ECE2; background: rgba(21,17,31,.66); padding: 2px 7px; border-radius: 7px; line-height: 1.3; }

/* ---- pictures in the answers */
html body .player .card > .opts.pics .opt .oi.oi:not(.wo) { aspect-ratio: var(--frame); }
@media (max-width: 640px) { html body .player .card > .opts.pics .opt .oi.oi:not(.wo) { flex: 0 0 50%; width: 50%; height: auto; } html body .player .card:has(> div.qimg) > .opts.pics .opt .oi.oi:not(.wo) { flex-basis: 40%; width: 40%; } }

/* ---- the picture that comes with the explanation */
html body .player .explain .ex-art:not(.big):has(> img) { flex: 0 0 138px; width: 138px; height: 92px; border-radius: 12px; }
html body .player .explain .ex-art.big:has(> img) { aspect-ratio: var(--frame); overflow: hidden; border-radius: 12px; }
html body .player .explain .ex-art.big > img { width: 100%; height: 100%; max-height: none; }
html body .player .card > div.qimg .pcredit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a long name: in full in the zoom */
html body .player .card .zoomb.zoomb, html body .player .card .zoomb.zoomb svg { color: #F1ECE2 !important; }
html body .player .card > .visual > button.vis-max.vis-max svg { color: #F1ECE2; }
 /* one format for pictures + the zoom icon (1 Dec 2026) — keep last */
