/* The big screen for Jingle In, drawn to the design: a picture 1280 wide and 720
   tall. One --u is one pixel of that picture, scaled with the rest of the big
   screen (see --vw in tv.css), so every number below is the design's own. */

:root {
  --u: calc(var(--vw) * .078125);
  --round: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --plain: 'Nunito', system-ui, sans-serif;
}

/* While a Jingle In screen is up it has the whole window: its own top line, a flat night sky, no snow. */
body.jingle-on { background: #0b1c38; }
body.jingle-on #snow, body.jingle-on #bar, body.jingle-on #progress { display: none; }
body.jingle-on .stage { inset: 0; padding: 0; text-align: left; }

.bell { width: 1em; height: 1em; vertical-align: -.12em; }
.ji { display: block; width: 100%; height: 100%; }

/* ---------- a cookie ---------- */

.cookie {
  position: relative; flex: none;
  width: calc(80 * var(--u)); height: calc(80 * var(--u));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--round); font-weight: 700; font-size: calc(26 * var(--u)); line-height: 1; color: #fff8ea;
}
.cookie.long { font-size: calc(23 * var(--u)); }
/* The picture has room around the cookie for its shadow, so it is drawn a little bigger than its box. */
.cookie img, .cpic img { position: absolute; left: -11%; top: -11%; width: 122%; height: 122%; max-width: none; pointer-events: none; }
/* The number, written like white icing: a dark edge behind it keeps it readable on the baked surface. */
.cookie span { position: relative; z-index: 1; margin-top: -5%; text-shadow: 0 .07em .06em rgba(40, 18, 4, .55); }
.cookie span::before { content: attr(data-n); position: absolute; left: 0; top: 0; z-index: -1; -webkit-text-stroke: .22em #4a2812; text-shadow: none; }
.cpic { position: relative; display: block; flex: none; }

/* ---------- the frame every screen shares ---------- */

.jf {
  width: calc(1280 * var(--u)); height: calc(720 * var(--u)); padding: calc(28 * var(--u)) calc(32 * var(--u));
  display: flex; flex-direction: column; gap: calc(18 * var(--u));
  color: #f5f9ff; font-family: var(--plain); line-height: normal; text-align: left;
}
.jf.tight { gap: calc(16 * var(--u)); }

.jtop { position: relative; flex: none; height: calc(48 * var(--u)); display: flex; align-items: center; justify-content: space-between; }
.jlogo { display: flex; align-items: center; gap: calc(12 * var(--u)); color: #ffc94d; font-family: var(--round); font-weight: 700; font-size: calc(36 * var(--u)); line-height: 1; }
.jlogo .ji { width: calc(36 * var(--u)); height: calc(36 * var(--u)); }
/* The middle label sits on the true middle of the screen, whatever the widths of the title and the code. */
.jpill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: calc(8 * var(--u)) calc(22 * var(--u)); border-radius: 999px; background: #1e3357; color: #f5f9ff; font-family: var(--round); font-weight: 600; font-size: calc(22 * var(--u)); }
.jpill.gold { background: #ffc94d; color: #2a1a10; }
.jjoin { font-size: calc(18 * var(--u)); font-weight: 700; color: #a9bcd9; }
.jjoin span { color: #f5f9ff; letter-spacing: calc(3 * var(--u)); }

/* The game fills the screen from side to side; the players are a row along the bottom (.jcards). */
.jleft { flex: none; width: calc(820 * var(--u)); min-height: 0; display: flex; flex-direction: column; }
.jleft.jwhole { flex: 1; width: auto; }
.jtraycol { gap: calc(10 * var(--u)); }
.jcluecol { gap: calc(16 * var(--u)); }

/* ---------- the players ---------- */

.jscore {
  display: flex; flex-direction: column; gap: calc(6 * var(--u)); min-width: 0;
  padding: calc(14 * var(--u)) calc(20 * var(--u)); border-radius: calc(18 * var(--u));
  background: #1e3357; border: calc(3 * var(--u)) solid #1e3357;
}
.jsrow { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); }
.jname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--round); font-weight: 600; font-size: calc(26 * var(--u)); }
.jpts { flex: none; font-family: var(--round); font-weight: 700; font-size: calc(30 * var(--u)); color: #ffc94d; }
.jpts.neg { color: #ff9aa5; }
.jtag { font-size: calc(16 * var(--u)); font-weight: 800; color: #a9bcd9; }
.jstat { flex: none; font-size: calc(17 * var(--u)); font-weight: 800; color: #a9bcd9; }
.jscore.gold { border-color: #ffc94d; }
.jscore.gold .jtag { color: #ffc94d; }
.jscore.green { border-color: #8fe3b4; }
.jscore.green .jtag, .jscore.green .jstat { color: #8fe3b4; }
.jscore.red { border-color: #ff9aa5; }
.jscore.red .jtag { color: #ff9aa5; }
.jscore.dim { opacity: .5; }

/* The players in a line along the bottom, on the screens with no right-hand side. */
.jcards { flex: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: calc(16 * var(--u)); }
.jcards .jscore { padding: calc(14 * var(--u)) calc(22 * var(--u)); }
.jcards.wide .jscore { padding: calc(16 * var(--u)) calc(22 * var(--u)); }
.jcards.thin .jscore { padding: calc(12 * var(--u)) calc(22 * var(--u)); }
.jfootline { flex: none; text-align: center; font-size: calc(20 * var(--u)); font-weight: 800; color: #ffc94d; }
.jfootline.quiet { font-size: calc(19 * var(--u)); color: #a9bcd9; }

/* ---------- the tray ---------- */

.jtitles { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(12 * var(--u)); padding: 0 calc(21 * var(--u)); }
.jtitle {
  height: calc(52 * var(--u)); display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 calc(8 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff1cf; color: #2a1a10;
  font-family: var(--round); font-weight: 600; font-size: calc(18 * var(--u)); line-height: 1.1;
}
.jtray {
  flex: 1; min-height: 0; padding: calc(18 * var(--u)); border-radius: calc(28 * var(--u));
  background: #26395c; border: calc(3 * var(--u)) solid #3d5580;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: calc(12 * var(--u));
}
.jcell { display: flex; align-items: center; justify-content: center; }
/* With the players along the bottom the tray is wider and a little lower: its cookies are a touch smaller
   and sit closer, so five rows still have air between them. The titles keep in line with the columns. */
.jtray.low { padding: calc(14 * var(--u)); gap: calc(8 * var(--u)); }
.jtray.low .cookie { width: calc(74 * var(--u)); height: calc(74 * var(--u)); font-size: calc(24 * var(--u)); }
.jtray.low .cookie.long { font-size: calc(21 * var(--u)); }
.jtitles.low { padding: 0 calc(17 * var(--u)); gap: calc(8 * var(--u)); }
.jtitles.low .jtitle { font-size: calc(20 * var(--u)); }

/* ---------- a clue ---------- */

/* The panel turns over, top edge towards you, to show the answer on its back. */
.jflip { flex: 1; min-height: 0; perspective: calc(1800 * var(--u)); border-radius: calc(28 * var(--u)); }
/* Right and wrong: a ring that flashes round the card. It is on the frame, which does not turn. */
.jflip.ring-red { animation: jringred .5s ease-out; }
.jflip.ring-green { animation: jringgreen .7s ease-out; }
@keyframes jringred { 0%, 60% { box-shadow: 0 0 0 calc(10 * var(--u)) #ff4757, 0 0 calc(44 * var(--u)) rgba(255, 71, 87, .6); } 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); } }
@keyframes jringgreen { 0%, 60% { box-shadow: 0 0 0 calc(10 * var(--u)) #2ecc71, 0 0 calc(44 * var(--u)) rgba(46, 204, 113, .6); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.jturn { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.35, .1, .2, 1); }
.jflip.turned .jturn { transform: rotateX(180deg); }
.jface { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.jback { transform: rotateX(180deg); }
@media (prefers-reduced-motion: reduce) { .jturn { transition: none; } }

.jcard {
  display: flex; flex-direction: column; gap: calc(26 * var(--u));
  padding: calc(34 * var(--u)) calc(40 * var(--u)); border-radius: calc(28 * var(--u)); background: #fff1cf; color: #2a1a10;
}
.jcard.golden { padding: calc(30 * var(--u)) calc(36 * var(--u)); border: calc(6 * var(--u)) solid #ffc94d; }
.jcardhead { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: calc(20 * var(--u)); }
/* A player's ten seconds: a dial in the middle of the card's top line, draining as the seconds go. */
.jdial { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(6 * var(--u)) calc(30 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)); border-radius: 999px; background: #0c1c3a; color: #fff; }
.jdial[hidden] { display: none; }
.jdring { position: relative; flex: none; width: calc(76 * var(--u)); height: calc(76 * var(--u)); display: flex; align-items: center; justify-content: center; }
.jdname { font-family: var(--round); font-weight: 700; font-size: calc(36 * var(--u)); line-height: 1; color: #ffc94d; white-space: nowrap; max-width: calc(360 * var(--u)); overflow: hidden; text-overflow: ellipsis; }
.jdial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.jdial circle { fill: none; stroke-width: 8; }
.jdial .jdtrack { stroke: #26395c; }
.jdial .jdleft { stroke: #ffc94d; stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.jdial b { position: relative; font-family: var(--round); font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1; }
.jdial.low .jdleft { stroke: #ff5a6e; }
.jdial.low b { color: #ff9aa5; }
.jcat { display: flex; align-items: center; gap: calc(14 * var(--u)); font-family: var(--round); font-weight: 600; font-size: calc(26 * var(--u)); }
.jgoldtag { padding: calc(4 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: #2a1a10; color: #ffc94d; font-size: calc(18 * var(--u)); white-space: nowrap; }
.jval { flex: none; display: flex; align-items: center; gap: calc(12 * var(--u)); font-family: var(--round); font-weight: 700; font-size: calc(30 * var(--u)); }
.jval .cpic { width: calc(52 * var(--u)); height: calc(52 * var(--u)); }
.jtext { flex: 1; min-height: 0; display: flex; align-items: center; font-family: var(--round); font-weight: 600; font-size: calc(52 * var(--u)); line-height: 1.15; }
.jtext span { display: block; }

/* A clue that is looked at, not read out. The box measures itself, so the drawing fills whatever room the
   card has on any screen. */
.jtext.look { container-type: size; justify-content: center; }
.jtext.look > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* (The older rule ".jtext span { display: block }" outranks a bare class, so every rule here names the box.) */
/* Emoji that sound out the answer: as large as the row allows, a plus between the groups. */
.jtext.look .jemoji { display: flex; align-items: center; justify-content: center; gap: 3.2cqw; font-size: min(52cqh, calc(74cqw / var(--n))); line-height: 1.1; font-weight: 400; }
.jtext.look .jemoji b { display: block; line-height: 1.15; font-weight: 400; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; white-space: nowrap; }
.jtext.look .jemoji i { display: block; line-height: 1; font-style: normal; font-family: var(--round); font-weight: 700; font-size: .42em; color: #8a6a44; }
/* A board of guesses, in the colours everybody knows from Wordle (Darren, 2026-11-26: "use the same colour
   conventions as wordle"): green is the right spot, yellow the wrong spot, grey not in the word. */
.jtext.look .jtiles { display: flex; align-items: center; justify-content: center; height: 100%; --t: min(calc((100cqh - (var(--rows) - 1) * 1.8cqh) / var(--rows)), 9cqw); }
.jtext.look .jtboard { display: flex; flex-direction: column; gap: 1.8cqh; }
.jtext.look .jtrow { display: flex; gap: 1.8cqh; }
.jtext.look .jtile { box-sizing: border-box; width: var(--t); height: var(--t); display: grid; place-items: center; border-radius: calc(var(--t) * .12); font-family: var(--round); font-weight: 700; font-size: calc(var(--t) * .62); line-height: 1; text-transform: uppercase; color: #fff; }
.jtext.look .jtile.m2 { background: #6aaa64; }
.jtext.look .jtile.m1 { background: #c9b458; }
.jtext.look .jtile.m0 { background: #787c7e; }
.jtext.look .jtile.blank { background: #fff; border: calc(var(--t) * .04) solid #d3d6da; }

/* The back of the panel: the answer, written straight onto the cream like the clue was (no dark box: Darren, 2026-11-25). */
.janswerbox { flex: 1; min-height: 0; display: flex; align-items: center; }
.jansin { display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.jlabel { font-size: calc(15 * var(--u)); font-weight: 800; letter-spacing: calc(1.5 * var(--u)); text-transform: uppercase; color: #6b4a2a; }
.janswer { font-family: var(--round); font-weight: 700; font-size: calc(64 * var(--u)); line-height: 1.1; }

/* The strip under the clue. */
.jbanner { flex: none; display: flex; align-items: center; gap: calc(18 * var(--u)); padding: calc(18 * var(--u)) calc(26 * var(--u)); border-radius: calc(22 * var(--u)); }
.jbicon { flex: none; display: flex; width: calc(46 * var(--u)); height: calc(46 * var(--u)); }
.jbtext { min-width: 0; display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.jbt { font-family: var(--round); font-weight: 700; font-size: calc(34 * var(--u)); line-height: 1.1; }
.jbs { font-size: calc(18 * var(--u)); font-weight: 700; }
.jbanner.quiet { background: #1e3357; border: calc(3 * var(--u)) solid #1e3357; }
.jbanner.quiet .jbicon, .jbanner.quiet .jbs { color: #a9bcd9; }
.jbanner.in { background: #1e3357; border: calc(3 * var(--u)) solid #ffc94d; }
.jbanner.in .jbicon, .jbanner.in .jbt { color: #ffc94d; }
.jbanner.in .jbs { color: #a9bcd9; }
.jbanner.open { background: #ffc94d; border: calc(3 * var(--u)) solid #ffc94d; color: #2a1a10; }
.jbanner.right { background: #157a48; color: #fff; }
.jbanner.wrong { background: #c81f33; color: #fff; }
.jbanner.open .jbs, .jbanner.right .jbs, .jbanner.wrong .jbs { font-weight: 800; }

/* ---------- the golden cookie is found ---------- */

.jgoldbox {
  align-items: center; justify-content: center; gap: calc(18 * var(--u)); text-align: center;
  padding: calc(30 * var(--u)) calc(40 * var(--u)); border-radius: calc(28 * var(--u)); border: calc(4 * var(--u)) solid #ffc94d;
}
.jgoldpic .cpic { width: calc(190 * var(--u)); height: calc(190 * var(--u)); }
.jgoldtitle { font-family: var(--round); font-weight: 700; font-size: calc(64 * var(--u)); line-height: 1; color: #ffc94d; }
.jgoldline { font-family: var(--round); font-weight: 600; font-size: calc(28 * var(--u)); }
.jgoldnote { font-size: calc(21 * var(--u)); font-weight: 700; line-height: 1.35; color: #a9bcd9; }

/* ---------- between the batches ---------- */

.jmid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(14 * var(--u)); text-align: center; }
.jeyebrow { font-size: calc(20 * var(--u)); font-weight: 800; letter-spacing: calc(2 * var(--u)); text-transform: uppercase; color: #a9bcd9; }
.jhuge { font-family: var(--round); font-weight: 700; font-size: calc(112 * var(--u)); line-height: 1; color: #ffc94d; }
.jsub { font-family: var(--round); font-weight: 600; font-size: calc(34 * var(--u)); }

/* ---------- the last cookie ---------- */

.jlastmid { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: calc(44 * var(--u)); }
.jlastpic .cpic { width: calc(210 * var(--u)); height: calc(210 * var(--u)); }
.jlastcol { display: flex; flex-direction: column; gap: calc(14 * var(--u)); max-width: calc(760 * var(--u)); }
.jlasttitle { font-family: var(--round); font-weight: 700; font-size: calc(96 * var(--u)); line-height: 1; color: #ffc94d; }
.jcatrow { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.jcatlabel { font-size: calc(18 * var(--u)); font-weight: 800; letter-spacing: calc(1.5 * var(--u)); text-transform: uppercase; color: #a9bcd9; }
.jcatchip { padding: calc(8 * var(--u)) calc(22 * var(--u)); border-radius: calc(14 * var(--u)); background: #fff1cf; color: #2a1a10; font-family: var(--round); font-weight: 600; font-size: calc(28 * var(--u)); }
.jlastline { font-family: var(--round); font-weight: 600; font-size: calc(28 * var(--u)); line-height: 1.2; }

.jlastcard {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(18 * var(--u));
  padding: calc(30 * var(--u)) calc(44 * var(--u)); border-radius: calc(28 * var(--u)); background: #fff1cf; color: #2a1a10;
}
.jlastcard .jtext { font-size: calc(56 * var(--u)); }
.jbar { flex: none; padding: calc(14 * var(--u)) calc(26 * var(--u)); border-radius: calc(20 * var(--u)); background: #ffc94d; color: #2a1a10; font-family: var(--round); font-weight: 700; font-size: calc(28 * var(--u)); text-align: center; }
.jbar.quiet { background: #1e3357; color: #f5f9ff; }

/* The reveal: the clue and its answer along the top, then one line per player. */
.jstrip { flex: none; display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u)); padding: calc(18 * var(--u)) calc(32 * var(--u)); border-radius: calc(24 * var(--u)); background: #fff1cf; color: #2a1a10; }
.jstripclue { max-width: calc(660 * var(--u)); font-family: var(--round); font-weight: 600; font-size: calc(24 * var(--u)); line-height: 1.2; }
.jstripans { flex: none; max-width: calc(520 * var(--u)); display: flex; flex-direction: column; gap: calc(2 * var(--u)); text-align: right; }
.jstripans .jlabel { font-size: calc(14 * var(--u)); color: #6b4a2a; }
.jstripanswer { font-family: var(--round); font-weight: 700; font-size: calc(44 * var(--u)); line-height: 1.05; }
.jstripanswer.long { font-size: calc(34 * var(--u)); }
.jstripanswer.longer { font-size: calc(26 * var(--u)); }

.jrows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.jrow2 {
  flex: 1; min-height: 0; max-height: calc(101 * var(--u));
  display: grid; grid-template-columns: calc(170 * var(--u)) minmax(0, 1fr) calc(56 * var(--u)) calc(190 * var(--u)) calc(200 * var(--u)); align-items: center; gap: calc(20 * var(--u));
  padding: 0 calc(26 * var(--u)); border-radius: calc(18 * var(--u)); background: #1e3357;
}
.jrow2.wait { grid-template-columns: calc(170 * var(--u)) minmax(0, 1fr) calc(200 * var(--u)); background: none; border: calc(3 * var(--u)) dashed #4b648f; }
.jrname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--round); font-weight: 600; font-size: calc(30 * var(--u)); }
.jrsaid { overflow: hidden; font-family: var(--round); font-weight: 600; font-size: calc(28 * var(--u)); color: #f5f9ff; overflow-wrap: anywhere; }
.jrsaid.long { font-size: calc(20 * var(--u)); line-height: 1.15; max-height: 2.3em; }
.jrnote { font-size: calc(20 * var(--u)); font-weight: 800; color: #a9bcd9; }
.jrmark { width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.jrmark .ji { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.jrow2.ok .jrmark { background: #157a48; }
.jrow2.no .jrmark { background: #c81f33; }
.jrchg { text-align: right; font-family: var(--round); font-weight: 700; font-size: calc(28 * var(--u)); }
.jrow2.ok .jrchg { color: #8fe3b4; }
.jrow2.no .jrchg { color: #ff9aa5; }
.jrtot { text-align: right; font-family: var(--round); font-weight: 700; font-size: calc(34 * var(--u)); color: #ffc94d; }
.jrtot.neg { color: #ff9aa5; }

/* ---------- how to play ---------- */

.jintrowrap { flex: 1; min-height: 0; display: grid; place-items: center; text-align: center; line-height: 1.25; }
.jintro .steps b, .jintro .goal { font-family: var(--round); font-weight: 700; }
.jintro .icon { height: calc(6 * var(--vw)); display: flex; align-items: center; justify-content: center; }
.jintro .icon .cookie { width: calc(72 * var(--u)); height: calc(72 * var(--u)); }
.jintro .icon.gold { color: var(--gold); }
.jintro .icon.gold .ji { width: calc(5.6 * var(--vw)); height: calc(5.6 * var(--vw)); }
.jintro .icon.q { font-family: var(--round); font-size: calc(5.6 * var(--vw)); font-weight: 700; color: #8fe3b4; }
.jintro .goal { font-size: calc(2 * var(--vw)); margin-top: calc(2.4 * var(--vw)); }

/* Jingle In's landing page is the shared one, in the same colours as every other game's (Darren, 2026-11-25). */



/* A category being introduced: its name on a cream card, and under it what it means for the answers. */
.jcatintro { gap: calc(24 * var(--u)); }
.jcatname { max-width: calc(1120 * var(--u)); padding: calc(20 * var(--u)) calc(48 * var(--u)); border-radius: calc(28 * var(--u)); background: #fff1cf; color: #2a1a10; font-family: var(--round); font-weight: 700; font-size: calc(96 * var(--u)); line-height: 1.05; animation: jcatin .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.jcatname.long { font-size: calc(70 * var(--u)); }
.jcatabout { max-width: calc(1000 * var(--u)); font-family: var(--round); font-weight: 600; font-size: calc(40 * var(--u)); line-height: 1.2; color: #f5f9ff; animation: jcatin .45s .3s both; }
.jcatseen { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(12 * var(--u)); }
.jcatseen span { min-width: 0; padding: calc(12 * var(--u)) calc(10 * var(--u)); border-radius: calc(14 * var(--u)); background: #1e3357; color: #a9bcd9; font-family: var(--round); font-weight: 600; font-size: calc(19 * var(--u)); line-height: 1.15; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcatseen span.now { background: #ffc94d; color: #2a1a10; }
.jcatseen span.later { background: #13233f; color: #5d6c8c; }
.jlastabout { font-size: calc(22 * var(--u)); font-weight: 800; line-height: 1.3; color: #f5f9ff; }
@keyframes jcatin { from { opacity: 0; transform: translateY(calc(26 * var(--u))) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jcatname, .jcatabout { animation: none; } }

/* The clue screen, laid out like the last cookie's clue (Darren, 2026-11-26): the clue is the main thing,
   one line under it says what is happening, and the players sit along the bottom. */
.jcard.wide { padding: calc(30 * var(--u)) calc(44 * var(--u)); gap: calc(18 * var(--u)); }
.jcard.wide .jtext { font-size: calc(56 * var(--u)); }
.jcard.wide.golden { padding: calc(26 * var(--u)) calc(40 * var(--u)); }
.jbar { border: calc(3 * var(--u)) solid transparent; line-height: 1.2; }
.jbar.in { background: #1e3357; border-color: #ffc94d; color: #ffc94d; }
.jbar.right { background: #157a48; color: #ffffff; }
.jbar.wrong { background: #c81f33; color: #ffffff; }
.jscore.gold .jstat { color: #ffc94d; }

/* How to play: what kind of game it is, over the three steps (Darren, 2026-11-30). */
.jintro .jkind { margin: 0 0 calc(18 * var(--u)); text-align: center; font-family: var(--round, 'Fredoka', sans-serif); font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1.1; color: #ffc94d; }
/* The bonuses a right answer won, under the answer. */
.jbonus { font-family: var(--round, 'Fredoka', sans-serif); font-weight: 700; font-size: calc(30 * var(--u)); line-height: 1.2; color: #b5651d; }
.jbonus:empty { display: none; }
