/* PuzzleNook web — one visual system with the reveal videos and carousels.
   Layout concept: the "sandwich" from the video frame — Harbor header band,
   Paper ground with marigold-rimmed cards, Marigold footer band. */
:root {
  --paper: #F7F2E9;        /* page ground */
  --paper-2: #EFE7DA;      /* sunken ground */
  --card: #FFFDF9;         /* card surface */
  --cell: #FFFFFF;         /* crossword cell */
  --gapcell: #DCD5CA;      /* interior notch (paper + 25% taupe) */
  --ink: #241F1A;          /* text + grid lines */
  --ink-2: #4A4239;        /* secondary text */
  --taupe: #6F6555;        /* muted text: brand taupe #8A7F6C darkened to 5:1 on paper for small text */
  --mari-text: #A5680F;    /* marigold for small text on light grounds (4.6:1) */
  --line: rgba(36,31,26,.14);
  --marigold: #E29B2B;     /* accent, CTAs, the nook cell */
  --marigold-hi: #F0AE47;  /* marigold on dark */
  --marigold-soft: #FBE7C4;/* active-word tint */
  --marigold-mid: #F5C978; /* selected cell */
  --on-marigold: #241F1A;
  --harbor: #1F6F78;       /* secondary accent, links */
  --harbor-deep: #144C53;
  --harbor-2: #2C8480;
  --espresso: #18140F;
  --good: #1F6F78;
  --bad: #B8432F;
  --shadow: 0 22px 44px -22px rgba(36,31,26,.42), 0 2px 0 rgba(226,155,43,.18) inset;
  --shadow-sm: 0 8px 20px -12px rgba(36,31,26,.35);
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r-card: 26px;
  --r-cell: 9px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #18140F; --paper-2: #120F0B; --card: #221C16; --cell: #2B241D; --gapcell: #3A3129;
    --ink: #F3ECE0; --ink-2: #CFC4B3; --taupe: #A89C86; --line: rgba(243,236,224,.14);
    --marigold: #F0AE47; --mari-text: #F0AE47; --marigold-hi: #F0AE47; --marigold-soft: #4A3A22; --marigold-mid: #8A6424;
    --on-marigold: #18140F; --harbor: #4FA6A6; --good: #4FA6A6; --bad: #E07A62;
    --shadow: 0 22px 44px -22px rgba(0,0,0,.8), 0 1px 0 rgba(240,174,71,.14) inset;
    --shadow-sm: 0 8px 20px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #18140F; --paper-2: #120F0B; --card: #221C16; --cell: #2B241D; --gapcell: #3A3129;
  --ink: #F3ECE0; --ink-2: #CFC4B3; --taupe: #A89C86; --line: rgba(243,236,224,.14);
  --marigold: #F0AE47; --mari-text: #F0AE47; --marigold-hi: #F0AE47; --marigold-soft: #4A3A22; --marigold-mid: #8A6424;
  --on-marigold: #18140F; --harbor: #4FA6A6; --good: #4FA6A6; --bad: #E07A62;
  --shadow: 0 22px 44px -22px rgba(0,0,0,.8), 0 1px 0 rgba(240,174,71,.14) inset;
  --shadow-sm: 0 8px 20px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--harbor); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--harbor); }
.muted { color: var(--taupe); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- pattern layers (same as video header/footer) ---------- */
.grid-light { background-image:
  repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 44px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 44px); }
.grid-dark { background-image:
  repeating-linear-gradient(0deg, rgba(36,31,26,.09) 0 2px, transparent 2px 44px),
  repeating-linear-gradient(90deg, rgba(36,31,26,.09) 0 2px, transparent 2px 44px); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: linear-gradient(135deg, #144C53 0%, #1F6F78 55%, #2C8480 100%);
  color: #F7F2E9; box-shadow: 0 6px 18px -10px rgba(20,76,83,.7);
}
.site-head .grid-layer { position: absolute; inset: 0; pointer-events: none; }
.head-row { position: relative; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #F7F2E9; text-decoration: none; }
.brand .word { font-family: var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: .01em; }
.brand .word b { color: #F0AE47; font-weight: 700; }
.logo { width: 34px; height: 34px; flex: none; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a {
  color: rgba(247,242,233,.86); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
}
.main-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(24,20,15,.35); color: #F0AE47; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.streak-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #18140F; color: #F0AE47; font-family: var(--f-mono); font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid rgba(240,174,71,.4);
}
.streak-chip svg { width: 16px; height: 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; background: rgba(255,255,255,.1); color: #F7F2E9;
}
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .main-nav { display: none; }
  .brand .word { font-size: 22px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 24px -18px rgba(36,31,26,.5);
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 2px; padding: 4px 0; text-decoration: none;
    color: var(--taupe); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--harbor); }
  .tabbar a[aria-current="page"] svg { color: var(--marigold); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.playing .tabbar { display: none; }
  body.playing { padding-bottom: 0; }
}

/* ---------- footer ---------- */
.site-foot {
  position: relative; margin-top: 72px; color: #241F1A;
  background: linear-gradient(135deg, #C9821F 0%, #E29B2B 50%, #F0AE47 100%);
}
.foot-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.site-foot .brand { color: #241F1A; }
.site-foot .brand .word b { color: #F7F2E9; }
.foot-tag { font-weight: 700; font-size: 18px; margin-top: 10px; }
.foot-handle { font-family: var(--f-mono); font-size: 14px; opacity: .8; margin-top: 4px; }
.foot-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 10px; opacity: .75; }
.foot-col a { display: block; color: #241F1A; text-decoration: none; font-weight: 700; padding: 3px 0; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { position: relative; border-top: 1px solid rgba(36,31,26,.2); padding-block: 14px 22px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 760px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-inner > :first-child { grid-column: 1 / -1; }
  .site-foot { margin-top: 48px; }
}

/* ---------- buttons, pills, pips ---------- */
.btn {
  --bg: var(--marigold); --fg: var(--on-marigold);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(201,130,31,.9), inset 0 -3px 0 rgba(36,31,26,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 4px 10px -8px rgba(201,130,31,.9); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--marigold); }
.btn-dark { --bg: var(--espresso); --fg: #F0AE47; box-shadow: 0 10px 22px -14px rgba(0,0,0,.8); }
.on-band .btn-ghost { --fg: #F7F2E9; box-shadow: inset 0 0 0 2px rgba(247,242,233,.4); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: #18140F; color: #F0AE47; font-family: var(--f-mono); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(240,174,71,.4); white-space: nowrap;
}
.pill.solved { border-color: rgba(240,174,71,.95); box-shadow: 0 0 0 5px rgba(240,174,71,.16); }
.pips { display: inline-flex; gap: 7px; align-items: center; }
.pip { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--pip, var(--marigold)); }
.pip.on { background: var(--pip, var(--marigold)); }
.on-band .pip { --pip: #F0AE47; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }

/* ---------- cards ---------- */
.card {
  background: var(--card); border-radius: var(--r-card); border: 1.5px solid rgba(226,155,43,.5);
  box-shadow: var(--shadow);
}
.panel { background: var(--card); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- home: hero band ---------- */
.hero {
  position: relative; color: #F7F2E9; overflow: hidden;
  background: linear-gradient(135deg, #144C53 0%, #1F6F78 55%, #2C8480 100%);
  padding-block: 40px 96px;
}
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.hero .grid-layer { position: absolute; inset: 0; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 900; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; font-weight: 600; color: #F0AE47; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: rgba(247,242,233,.9); margin-top: 18px; max-width: 34ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: rgba(247,242,233,.8); }
.hero .proof b { color: #F0AE47; font-weight: 600; }
@media (max-width: 860px) {
  .hero { padding-block: 28px 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
}

/* today card (used in hero + play intro) */
.today-card { color: var(--ink); padding: 26px 26px 22px; display: grid; gap: 16px; justify-items: center; text-align: center; text-decoration: none; transition: transform .2s ease; }
a.today-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.today-card .t-week { font-family: var(--f-mono); font-weight: 600; letter-spacing: .2em; font-size: 13px; color: var(--harbor); text-transform: uppercase; }
.today-card .t-day { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 5vw, 56px); line-height: 1; text-transform: uppercase; }
.today-card .t-sub { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 20px; color: var(--ink-2); margin-top: -8px; }
.today-card .mini-shape { margin: 4px 0; }
.today-card .t-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* mini shape preview (spoiler-free grid shape) */
.shape { display: grid; gap: 4px; }
.shape i { width: var(--s, 26px); height: var(--s, 26px); border-radius: 6px; display: block; }
.shape i.l { background: var(--cell); box-shadow: inset 0 0 0 2px var(--ink); }
.shape i.g { background: var(--gapcell); }
.shape i.o { visibility: hidden; }
.shape.filled i.l { background: var(--marigold); box-shadow: inset 0 0 0 2px var(--marigold-hi); }

/* ---------- sections ---------- */
.section { padding-block: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; }
.section-head p { color: var(--ink-2); max-width: 52ch; margin-top: 8px; }
.lift { margin-top: -64px; position: relative; z-index: 2; }

/* week strip */
.week-strip { padding: 22px; }
.week-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.week-top h3 { font-size: 26px; font-weight: 900; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 12px 10px 12px; min-height: 124px;
  border-radius: 16px; background: var(--paper); text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--line); transition: transform .15s ease, border-color .15s ease;
}
.day:hover { transform: translateY(-2px); border-color: var(--marigold); }
.day .d-name { font-family: var(--f-mono); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.day .d-sub { font-weight: 700; font-size: 14px; line-height: 1.25; }
.day .pips { gap: 3px; margin-top: auto; }
.day .pip { width: 7px; height: 7px; border-width: 1.5px; }
.day .d-state { font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.day.solved { background: var(--marigold-soft); border-color: var(--marigold); }
.day.solved .d-state { color: var(--ink); }
.day.today { background: var(--espresso); color: #F7F2E9; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(226,155,43,.35); }
.day.today .d-name { color: #F0AE47; }
.day.today .pip { --pip: #F0AE47; }
.day.locked { opacity: .55; pointer-events: none; background: transparent; border-style: dashed; }
.day .check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--marigold); color: var(--on-marigold); display: grid; place-items: center; }
.day .check svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .days { grid-template-columns: repeat(7, minmax(88px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .days .day { scroll-snap-align: start; }
  .week-strip { padding: 16px; }
}

/* feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 24px; display: grid; gap: 10px; align-content: start; }
.feat h3 { font-size: 23px; font-weight: 700; }
.feat p { color: var(--ink-2); }
.feat .viz { min-height: 86px; display: flex; align-items: flex-end; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ramp viz */
.ramp { display: flex; align-items: end; gap: 6px; height: 70px; }
.ramp span { width: 22px; border-radius: 6px 6px 3px 3px; background: var(--marigold); opacity: .35; }
.ramp span:nth-child(n+5) { opacity: .7; }
.ramp span:last-child { opacity: 1; }

/* ---------- books ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.book { padding: 20px; display: grid; gap: 14px; align-content: start; }
.book h3 { font-size: 21px; font-weight: 700; }
.book .meta { color: var(--taupe); font-size: 14px; font-family: var(--f-mono); }
.book p.desc { color: var(--ink-2); font-size: 15.5px; }
.book .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 960px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .books { grid-template-columns: 1fr; } }

/* CSS-rendered covers (same system as KDP covers: Large Print = ink ground + harbor) */
.cover {
  position: relative; aspect-ratio: 8.5 / 11; max-width: 100%; border-radius: 6px 12px 12px 6px; overflow: hidden;
  display: grid; align-content: space-between; padding: 9% 9% 7%;
  box-shadow: 0 18px 30px -18px rgba(24,20,15,.8), inset 6px 0 0 rgba(0,0,0,.18);
  font-family: var(--f-display); color: #F7F2E9;
}
.cover.lp { background: linear-gradient(160deg, #2A241E, #18140F); }
.cover.std { background: linear-gradient(150deg, #F0AE47, #E29B2B 60%, #C9821F); color: #241F1A; }
.cover.desk { background: linear-gradient(150deg, #1F6F78, #144C53); }
.cover .c-top { font-family: var(--f-mono); font-size: clamp(9px, 1.1vw, 12px); letter-spacing: .2em; text-transform: uppercase; color: #4FA6A6; }
.cover.std .c-top { color: #144C53; }
.cover.desk .c-top { color: #F0AE47; }
.cover .c-title { font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; }
.cover .c-sub { font-family: var(--f-body); font-weight: 800; font-size: clamp(12px, 1.3vw, 15px); letter-spacing: .08em; text-transform: uppercase; color: #4FA6A6; margin-top: 8px; }
.cover.std .c-sub { color: #144C53; }
.cover.desk .c-sub { color: #F0AE47; }
.cover .c-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 70%; justify-self: center; opacity: .95; }
.cover .c-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(247,242,233,.1); display: grid; place-items: center; font-family: var(--f-body); font-weight: 800; font-style: normal; font-size: clamp(8px, .95vw, 12px); color: rgba(247,242,233,.85); }
.cover.lp .c-grid i.hl { background: #1F6F78; color: #F7F2E9; }
.cover.std .c-grid i { background: rgba(36,31,26,.12); color: #241F1A; }
.cover.std .c-grid i.hl { background: #F7F2E9; }
.cover.desk .c-grid i.hl { background: #E29B2B; color: #241F1A; }
.cover .c-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: clamp(11px, 1.2vw, 14px); }
.cover .c-brand svg { width: 18px; height: 18px; }
.ribbon { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: #E29B2B; color: #241F1A; font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .12em; padding: 4px 40px; text-transform: uppercase; }

/* email capture */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 30px; align-items: center; overflow: hidden; position: relative; }
.signup h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; }
.signup p { color: var(--ink-2); margin-top: 10px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 17px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 4px rgba(226,155,43,.2); }
label.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.fine { font-size: 13px; color: var(--taupe); margin-top: 10px; }
.form-ok { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--good); }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- play page ---------- */
.play-head { position: relative; color: #F7F2E9; background: linear-gradient(135deg, #144C53 0%, #1F6F78 55%, #2C8480 100%); padding-block: 22px 70px; text-align: center; overflow: hidden; }
.play-head .grid-layer { position: absolute; inset: 0; }
.play-head > .wrap { position: relative; display: grid; justify-items: center; gap: 6px; }
.play-head .ph-week { font-family: var(--f-mono); font-weight: 600; letter-spacing: .22em; font-size: 14px; color: #F0AE47; text-transform: uppercase; }
.play-head h1 { font-weight: 900; font-size: clamp(42px, 7vw, 76px); text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.play-head .ph-sub { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 20px; opacity: .92; }
.play-head .ph-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.play-head .ph-no { font-family: var(--f-mono); font-size: 13px; opacity: .8; letter-spacing: .08em; }
.play-body { margin-top: -46px; position: relative; z-index: 3; }
.game { display: grid; grid-template-columns: minmax(0, auto) minmax(260px, 360px); gap: 28px; padding: 28px; align-items: start; justify-content: center; }
.game-main { display: grid; gap: 16px; justify-items: center; min-width: 0; }
.toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; }
.toolbar .left, .toolbar .right { display: flex; gap: 8px; align-items: center; }
.timer { font-family: var(--f-mono); font-weight: 600; font-size: 17px; background: var(--espresso); color: #F0AE47; padding: 7px 16px; border-radius: 999px; min-width: 90px; text-align: center; border: 1px solid rgba(240,174,71,.4); }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); }
.tool-btn:hover { border-color: var(--marigold); }
.tool-btn svg { width: 16px; height: 16px; }

.clue-bar {
  width: 100%; display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 6px; border-radius: 16px;
  background: var(--marigold-soft); border: 1.5px solid var(--marigold);
}
.clue-bar .cb-text { flex: 1; display: flex; gap: 12px; align-items: baseline; cursor: pointer; padding: 6px 4px; min-width: 0; }
.clue-bar .cb-num { font-family: var(--f-mono); font-weight: 600; color: var(--harbor); font-size: 16px; white-space: nowrap; }
.clue-bar .cb-clue { font-weight: 700; font-size: 18px; line-height: 1.3; }
.clue-bar button { width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; color: var(--ink); flex: none; }
.clue-bar button:hover { background: rgba(226,155,43,.25); }
.clue-bar button svg { width: 20px; height: 20px; }

.xw-wrap { position: relative; }
.xw {
  --cell: clamp(46px, calc((100vw - 2 * var(--gutter) - 56px) / var(--cols)), 78px);
  display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-auto-rows: var(--cell); gap: 5px;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.xc { position: relative; border-radius: var(--r-cell); }
.xc.o { visibility: hidden; }
.xc.g { background: var(--gapcell); }
.xc.l {
  background: var(--cell); box-shadow: inset 0 0 0 2.5px var(--ink), 0 3px 0 rgba(36,31,26,.07); cursor: pointer;
  display: grid; place-items: center; transition: background .12s ease;
}
.xc.l.inword { background: var(--marigold-soft); }
.xc.l.sel { background: var(--marigold-mid); box-shadow: inset 0 0 0 3px var(--marigold), 0 0 0 4px rgba(226,155,43,.28); }
.xc .n { position: absolute; top: 3px; left: 6px; font-family: var(--f-mono); font-weight: 600; font-size: calc(var(--cell) * .24); color: var(--mari-text); line-height: 1; }
.xc.l.sel .n, .xc.l.inword .n { color: #9A6414; }
:root[data-theme="dark"] .xc.l.sel .n, :root[data-theme="dark"] .xc.l.inword .n { color: #F0AE47; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xc.l.sel .n, :root:not([data-theme="light"]) .xc.l.inword .n { color: #F0AE47; } }
.xc .ch { font-weight: 800; font-size: calc(var(--cell) * .5); line-height: 1; text-transform: uppercase; }
.xc .ch.pop { animation: pop .22s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.xc.wrong::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 3px; background: var(--bad); transform: rotate(-35deg); border-radius: 2px; }
.xc.revealed::before { content: ""; position: absolute; right: 4px; top: 4px; width: 0; height: 0; border-top: 10px solid var(--harbor); border-left: 10px solid transparent; }
.xc.checked-ok .ch { color: var(--harbor); }
.xw.solved .xc.l { animation: flipgold .5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes flipgold {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); background: var(--cell); }
  51% { background: var(--marigold); box-shadow: inset 0 0 0 2.5px var(--marigold-hi); }
  100% { transform: rotateX(0); background: var(--marigold); box-shadow: inset 0 0 0 2.5px var(--marigold-hi); color: var(--on-marigold); }
}
.xw.solved .xc .n { color: var(--on-marigold); opacity: .6; }

/* ready overlay */
.ready {
  position: absolute; inset: -10px; border-radius: 22px; z-index: 4; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--card) 72%, transparent); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.ready .r-in { display: grid; gap: 14px; justify-items: center; padding: 16px; }
.ready h2 { font-size: 30px; font-weight: 900; }
.ready p { color: var(--ink-2); max-width: 28ch; }

/* clue lists */
.clues { display: grid; gap: 22px; align-content: start; }
.clues h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--harbor); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.clue { display: flex; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; line-height: 1.35; border: 0; background: transparent; width: 100%; text-align: left; font-size: 16.5px; }
.clue:hover { background: var(--paper-2); }
.clue .cn { font-family: var(--f-mono); font-weight: 600; color: var(--mari-text); min-width: 22px; }
.clue .ct { font-weight: 600; }
.clue.active { background: var(--marigold-soft); }
.clue.cross { box-shadow: inset 3px 0 0 var(--marigold); }
.clue.done .ct { color: var(--taupe); text-decoration: line-through; text-decoration-color: rgba(138,127,108,.6); }

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .clues { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .clues { grid-template-columns: 1fr; }
  .play-head { padding-block: 16px 60px; }
  .play-head h1 { font-size: 44px; }
  .game { padding: 14px; border-radius: 22px; }
  .clue-bar .cb-clue { font-size: 16.5px; }
}

/* on-screen keyboard */
.kb { display: none; width: 100%; gap: 7px; }
.kb .row { display: flex; gap: 5px; justify-content: center; }
.kb button {
  flex: 1 1 0; max-width: 46px; height: 54px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--paper-2); color: var(--ink); font-weight: 800; font-size: 18px;
  box-shadow: inset 0 -2px 0 rgba(36,31,26,.12);
}
.kb button:active { background: var(--marigold-mid); }
.kb button.wide { max-width: 72px; flex: 1.5 1 0; font-size: 13px; }
.kb button svg { width: 20px; height: 20px; }
body.touch .kb { display: grid; }
body.touch .play-page .clues { display: none; }
body.touch .play-page .clues.show { display: grid; }

/* ---------- modal / sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(24,20,15,.55); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100% - 24px); overflow: auto; padding: 28px; position: relative; animation: rise .28s cubic-bezier(.2,1.2,.4,1); }
@keyframes rise { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.modal .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal .x svg { width: 18px; height: 18px; }
.modal h2 { font-size: 34px; font-weight: 900; }
.win-top { display: grid; justify-items: center; text-align: center; gap: 10px; }
.win-time { font-family: var(--f-mono); font-weight: 600; font-size: 60px; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.win-sub { color: var(--ink-2); }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; text-align: center; }
.stat b { display: block; font-family: var(--f-mono); font-size: 26px; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--taupe); font-weight: 700; }
.share-box { display: grid; gap: 10px; margin-top: 20px; }
.share-preview { font-family: var(--f-mono); font-size: 14px; white-space: pre; background: var(--paper-2); border-radius: 14px; padding: 12px 14px; overflow-x: auto; line-height: 1.35; }
.countdown { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--espresso); color: #F7F2E9; margin-top: 18px; }
.countdown .mono { color: #F0AE47; font-size: 22px; font-weight: 600; }
.upsell { display: grid; grid-template-columns: 82px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--marigold); }
.upsell .cover { padding: 10%; }
.upsell .cover .c-title { font-size: 12px; }
.upsell .cover .c-top, .upsell .cover .c-sub, .upsell .cover .c-brand { display: none; }
.upsell .cover .c-grid { gap: 2px; width: 80%; }
.upsell .cover .c-grid i { font-size: 0; border-radius: 1.5px; }
.upsell b { display: block; font-size: 16px; }
.upsell p { font-size: 14.5px; color: var(--ink-2); }

/* toast */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--espresso); color: #F7F2E9; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); animation: rise .25s ease; border: 1px solid rgba(240,174,71,.4); max-width: calc(100vw - 32px); }
@media (max-width: 760px) { .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } body.playing .toasts { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }

/* menu popover */
.menu { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; display: grid; }
.menu button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.menu button:hover { background: var(--paper-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.menu .hint { font-family: var(--f-mono); color: var(--taupe); font-size: 12px; }

/* challenge banner */
.challenge { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--espresso); color: #F7F2E9; width: 100%; }
.challenge b { color: #F0AE47; font-family: var(--f-mono); }
.challenge svg { width: 22px; height: 22px; flex: none; color: #F0AE47; }

/* ---------- archive ---------- */
.page-head { padding-block: 34px 0; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 900; }
.page-head p { color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.arch-week { padding: 22px; margin-top: 22px; }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-top: 26px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--f-mono); font-size: 34px; font-weight: 600; line-height: 1.05; }
.kpi span { font-size: 13.5px; font-weight: 700; color: var(--taupe); }
.kpi.hot { background: var(--espresso); color: #F7F2E9; border-color: var(--espresso); }
.kpi.hot b { color: #F0AE47; }
.kpi.hot span { color: rgba(247,242,233,.7); }
.box { padding: 22px; }
.box h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { font-family: var(--f-mono); font-size: 11px; text-align: center; color: var(--taupe); font-weight: 600; }
.cal i { aspect-ratio: 1; border-radius: 6px; background: var(--paper-2); display: block; position: relative; }
.cal i.s { background: var(--marigold); }
.cal i.a { background: var(--marigold-mid); }
.cal i.t { box-shadow: inset 0 0 0 2px var(--harbor); }
.cal i.f { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 64px 1fr 34px; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 13px; }
.bar .track { height: 22px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.bar .fill { height: 100%; background: var(--harbor); border-radius: 6px; min-width: 4px; }
.bar.me .fill { background: var(--marigold); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px 10px; border-radius: 16px; border: 1.5px solid var(--line); }
.badge .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--taupe); }
.badge .ico svg { width: 26px; height: 26px; }
.badge b { font-size: 14px; }
.badge span { font-size: 12px; color: var(--taupe); }
.badge.got { border-color: var(--marigold); }
.badge.got .ico { background: var(--marigold); color: var(--on-marigold); }
.hist { width: 100%; border-collapse: collapse; font-size: 15px; }
.hist th { text-align: left; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); padding: 8px; border-bottom: 1px solid var(--line); }
.hist td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.hist td.mono { text-align: right; }
.profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: var(--marigold); color: var(--on-marigold); display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 30px; flex: none; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi b { font-size: 28px; } }

/* ---------- leaderboard ---------- */
.lb-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.lb-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.lb-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.lb { width: 100%; border-collapse: collapse; }
.lb td, .lb th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.lb th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.lb td.rank { font-family: var(--f-mono); font-weight: 600; width: 44px; }
.lb td.val { font-family: var(--f-mono); font-weight: 600; text-align: right; }
.lb tr.me td { background: var(--marigold-soft); }
.lb tr.me td:first-child { border-radius: 12px 0 0 12px; }
.lb tr.me td:last-child { border-radius: 0 12px 12px 0; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--marigold); color: var(--on-marigold); font-size: 13px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); font-size: 14px; color: var(--ink-2); }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--harbor); }

/* ---------- word search ---------- */
.ws-layout { display: grid; grid-template-columns: minmax(0, auto) 280px; gap: 28px; padding: 26px; justify-content: center; align-items: start; }
.ws { --n: 12; --c: clamp(24px, calc((100vw - 2 * var(--gutter) - 48px) / var(--n)), 44px); display: grid; grid-template-columns: repeat(var(--n), var(--c)); grid-auto-rows: var(--c); position: relative; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 14px; background: var(--cell); box-shadow: inset 0 0 0 2px var(--ink); padding: 6px; }
.ws span { display: grid; place-items: center; font-weight: 800; font-size: calc(var(--c) * .52); position: relative; z-index: 1; cursor: pointer; }
.ws svg.ws-lines { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); z-index: 0; pointer-events: none; overflow: visible; }
.ws-words { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.ws-words li { list-style: none; font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.ws-words li.found { color: var(--taupe); text-decoration: line-through; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.ws-words ul { margin: 0; padding: 0; display: contents; }
@media (max-width: 860px) { .ws-layout { grid-template-columns: 1fr; padding: 16px; } .ws-words { grid-template-columns: repeat(3, 1fr); } }

/* ---------- prose (about/privacy) ---------- */
.prose { max-width: 68ch; display: grid; gap: 16px; }
.prose h2 { font-size: 28px; font-weight: 700; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 18px; }
.faq details p { margin-top: 8px; color: var(--ink-2); }

.demo-flag { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 25; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--espresso); color: #F0AE47; padding: 5px 10px; border-radius: 999px; opacity: .85; }
@media (max-width: 760px) { .demo-flag { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}

/* hide clues until the clock starts, so every timed solve starts fair */
.game.prestart .clue-bar, .game.prestart .clues { filter: blur(6px); pointer-events: none; user-select: none; }

/* phone play mode: compact header, keyboard docked to the bottom like a native app */
@media (max-width: 760px) {
  body.playing .site-foot { display: none; }
  body.playing .play-head { padding-block: 10px 50px; }
  body.playing .play-head h1 { font-size: 34px; }
  body.playing .play-head .ph-sub { font-size: 16px; }
  body.playing .play-head .ph-week { font-size: 12px; }
  body.playing .play-head .ph-row { margin-top: 2px; }
  body.playing .play-body { margin-top: -40px; }
}
body.touch.playing .kb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -12px 24px -18px rgba(36,31,26,.5);
}
body.touch.playing .kb.off { display: none; }
body.touch.playing .play-page { padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 760px) {
  body.playing .play-head .ph-sub, body.playing .play-head .ph-row { display: none; }
  body.playing .play-head h1 { font-size: 30px; }
  body.playing .play-head { padding-block: 8px 46px; }
}
body.touch.playing .kb button { height: 48px; }

/* about page layout */
.about-grid{margin-top:26px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:32px;align-items:start}
@media (max-width:820px){.about-grid{grid-template-columns:minmax(0,1fr);gap:20px}.about-grid>:last-child{order:-1}}

/* inline field messages (display-name check) */
.field-msg{margin:6px 0 0;font-size:.85rem;color:var(--taupe)}
.field-msg.err{color:var(--bad);font-weight:600}
.input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--bad)}

/* ---------- today's two rounds (home hero, Round 2 CTA) ---------- */
.today-wrap { min-width: 0; }
.rounds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.round { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--card); box-shadow: var(--shadow-sm); border: 2px solid transparent; min-width: 0; }
.round.next { border-color: var(--marigold); }
.round .r-t { display: grid; min-width: 0; line-height: 1.2; }
.round .r-t b { font-size: 15px; } .round .r-t span { font-size: 13px; color: var(--taupe); }
.round.done .r-n { background: var(--harbor); color: #fff; }
.r-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono);
  font-weight: 600; background: var(--marigold); color: var(--on-marigold); }
.r2-card { display: flex; gap: 12px; align-items: center; width: 100%; max-width: 460px; padding: 12px 14px; border-radius: 18px;
  text-decoration: none; color: var(--ink); background: var(--marigold-soft); border: 2px solid var(--marigold); text-align: left; }
.r2-card .r-t { display: grid; flex: 1; min-width: 0; gap: 2px; } .r2-card .r-t b { font-size: 16px; }
.r2-card .r-t .eyebrow { font-size: 11px; }
.r2-card .btn { pointer-events: none; }
.r2-card .btn svg { width: 16px; height: 16px; margin: 0 -2px 0 4px; }
.r2dot { position: absolute; right: 36px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--harbor); color: #fff; display: grid; place-items: center; }
.r2dot svg { width: 11px; height: 11px; }
.day:not(.solved) .r2dot { right: 10px; }
.tag svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 380px) { .round { padding: 9px 10px; gap: 8px; } .round .r-t b { font-size: 14px; } }

/* 2026-09-30: small phones (360px) — let the Round 2 book pill wrap and keep the
   word-search column, word list and Round 1 note inside the card instead of sizing
   to their one-line width (overflowed on long-word days, e.g. Forest Wednesday). */
.ws-layout .toolbar { justify-self: stretch; }
.ws-layout > div:first-child { grid-template-columns: minmax(0, 1fr); width: 100%; }
@media (max-width: 860px) { .ws-layout { grid-template-columns: minmax(0, 1fr); } }
.ws-layout > aside { grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (max-width: 400px) {
  .ws-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill { white-space: normal; text-align: center; justify-content: center; letter-spacing: .08em; }
}
