/* THE LEARNING WING — felt classroom at Idea Academy */
:root {
  --lw-read: "Andika", "Inter", system-ui, sans-serif;  /* early-reader letterforms: single-story a and g */
  --lw-wall: #efe4cc;
  --lw-board: #2f5b3e;
  --lw-tile: #fbf6ea;
  --lw-vowel: #c8402f;
  --lw-dg: #f2b82b;
  --lw-felt-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='5'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .22 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
html, body { min-height: 100%; }
body { margin: 0; background: var(--cb-walnut); color: var(--cb-ink); font-family: var(--cb-body); }
[hidden] { display: none !important; }
button { font: inherit; }

/* ---------- 1. arrival on the stitched page ---------- */
.lw-arrive { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: var(--cb-walnut); }
.lw-arrive-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
  transform-origin: 30% 46%; transition: opacity 1.2s ease, transform 2.2s cubic-bezier(.45,0,.2,1); }
.lw-arrive-art .fin { opacity: 0; }
.lw-arrive.colored .fin { opacity: 1; }
.lw-arrive.zoom img { transform: scale(2.6); }
.lw-arrive.zoom { animation: lw-fadeout .7s ease 1.7s forwards; }
@keyframes lw-fadeout { to { opacity: 0; visibility: hidden; } }
.lw-arrive-card { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 32px)); }
.lw-arrive.colored .lw-arrive-card { opacity: 0; transition: opacity .4s; pointer-events: none; }
.lw-lede { margin: 0 0 16px; font-size: 1.02rem; }

/* ---------- 2. the felt classroom ---------- */
.lw-room { min-height: 100vh; min-height: 100dvh; position: relative;
  background:
    var(--lw-felt-noise),
    linear-gradient(to bottom, transparent calc(100% - 120px), #13284f calc(100% - 120px)),
    var(--lw-wall);
  padding-bottom: 120px; }
.lw-room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 112px; height: 0; border-top: 2.5px dashed rgba(242,184,43,.7); pointer-events: none; }
.lw-top { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 16px 10px 16px;
  background: linear-gradient(to bottom, rgba(239,228,204,.97), rgba(239,228,204,.85)); }
.lw-top-gap { flex: 1; }
.lw-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cb-navy); color: var(--cb-ivory); text-decoration: none; font: 600 .9rem/1 var(--cb-body); box-shadow: inset 0 0 0 3px var(--cb-navy), inset 0 0 0 4.5px rgba(242,184,43,.55); }
.lw-pill[aria-pressed="false"] { background: #6a5842; box-shadow: none; }
.lw-pill:focus-visible, .lw-hear:focus-visible { outline: 3px solid var(--cb-teal); outline-offset: 2px; }
.lw-bunting { height: 34px; margin: 0 0 6px;
  background:
    linear-gradient(to bottom, #b9841c 0 2px, transparent 2px),
    conic-gradient(from 150deg at 50% 0, transparent 0 0, var(--cb-navy) 0 60deg, transparent 0) 0 2px / 56px 32px repeat-x,
    conic-gradient(from 150deg at 50% 0, var(--cb-gold) 0 60deg, transparent 0) 28px 2px / 56px 32px repeat-x;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.15)); }
.lw-main { max-width: 1040px; margin: 0 auto; padding: 0 16px 24px; outline: none; }

/* Ms. Green speaks */
.lw-guide { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: start; margin: 4px 0 18px; }
.lw-face { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 1.7rem/1 var(--cb-display); color: var(--cb-gold);
  background: radial-gradient(circle at 40% 30%, #3e7a55, #1f4a33); box-shadow: inset 0 0 0 3px rgba(242,184,43,.45), 0 6px 12px -6px rgba(0,0,0,.5); }
.lw-say { position: relative; background: #fffdf7; border-radius: 18px 18px 18px 4px; padding: 14px 16px 12px; box-shadow: 0 8px 18px -12px rgba(0,0,0,.6);
  border: 2px dashed rgba(185,132,28,.45); }
.lw-who { display: block; font: 600 .72rem/1.2 var(--cb-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cb-gold-thread); margin-bottom: 4px; }
.lw-say p { margin: 0 0 8px; font: 1.18rem/1.4 var(--lw-read); color: var(--cb-ink); }
.lw-hear { border: 0; background: rgba(32,184,208,.14); color: #14606c; border-radius: 999px; padding: 8px 12px; min-height: 40px; cursor: pointer; font: 600 .86rem/1 var(--cb-body); }

/* felt panels */
.lw-panel { background: var(--cb-felt); border-radius: 16px; padding: 18px; box-shadow: var(--cb-shadow); position: relative; margin-bottom: 18px;
  background-image: var(--lw-felt-noise); }
.lw-panel::before { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(185,132,28,.55); border-radius: 11px; pointer-events: none; }
.lw-panel h2 { font: 600 clamp(1.5rem, 3vw, 2rem)/1.05 var(--cb-display); color: var(--cb-navy); margin: 2px 0 4px; }
.lw-panel .sub { margin: 0 0 14px; color: var(--cb-ink-soft); font-size: .95rem; }
.lw-ican { background: rgba(7,26,61,.06); border-radius: 10px; padding: 10px 12px; font-size: .95rem; margin: 0 0 16px; }
.lw-ican strong { color: var(--cb-navy); }

/* hallway doors */
.lw-hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.lw-door { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 190px; padding: 16px 14px 14px; border-radius: 70px 70px 10px 10px;
  background: #8a5a34 var(--lw-felt-noise); color: var(--cb-ivory); text-align: center; border: 0; font: inherit; box-shadow: inset 0 0 0 5px #6c4223, 0 10px 18px -12px rgba(0,0,0,.7); }
.lw-door::before { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(248,243,231,.5); border-radius: 62px 62px 6px 6px; pointer-events: none; }
.lw-door .sign { font: 600 1.25rem/1.1 var(--cb-display); color: #fff7e2; margin-top: 18px; }
.lw-door .what { font-size: .82rem; opacity: .92; }
.lw-door .tag { justify-self: center; font: 600 .72rem/1 var(--cb-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.25); }
.lw-door .knob { position: absolute; right: 20px; top: 54%; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--cb-gold) 45%, #8a5f0e); }
button.lw-door { cursor: pointer; background-color: #2e6b6f; box-shadow: inset 0 0 0 5px #1f5458, 0 0 0 3px var(--cb-gold), 0 12px 22px -10px rgba(0,0,0,.7); }
button.lw-door .tag { background: var(--cb-gold); color: var(--cb-navy); }
button.lw-door:hover { transform: translateY(-2px); }
button.lw-door:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 4px; }
.lw-door.soon { filter: saturate(.55); opacity: .9; }
.lw-band { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.lw-band h3 { margin: 0; font: 600 1.35rem/1.1 var(--cb-display); color: var(--cb-navy); }
.lw-band span { font-size: .85rem; color: var(--cb-ink-soft); }

.lw-cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lw-cta { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid rgba(7,26,61,.2);
  background: #fffdf7; cursor: pointer; color: var(--cb-ink); text-decoration: none; min-height: 72px; font: inherit; }
.lw-cta:hover { border-color: var(--cb-navy); }
.lw-cta:focus-visible { outline: 3px solid var(--cb-teal); outline-offset: 2px; }
.lw-cta .ic { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(242,184,43,.25); }
.lw-cta b { display: block; color: var(--cb-navy); font-size: 1rem; }
.lw-cta small { color: var(--cb-ink-soft); font-size: .84rem; }

/* letter tiles */
.lw-tile { display: inline-grid; place-items: center; min-width: 64px; height: 72px; padding: 0 12px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 2.4rem/1 var(--lw-read); color: var(--cb-navy); background: var(--lw-tile) var(--lw-felt-noise);
  box-shadow: inset 0 0 0 2px rgba(7,26,61,.12), 0 5px 0 #d8c9a8, 0 8px 12px -6px rgba(0,0,0,.5); position: relative; transition: transform .15s; }
.lw-tile::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(7,26,61,.22); border-radius: 8px; pointer-events: none; }
.lw-tile.v { color: var(--lw-vowel); }
.lw-tile.dg { background-color: #fde7a6; color: var(--cb-navy); box-shadow: inset 0 0 0 2px rgba(185,132,28,.6), 0 5px 0 #c99a2e, 0 8px 12px -6px rgba(0,0,0,.5); }
.lw-tile:active { transform: translateY(3px); }
.lw-tile:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 3px; }
.lw-tile[disabled] { opacity: .45; cursor: default; }

/* digraph picker in the Digraph Room */
.lw-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lw-sound { position: relative; display: grid; gap: 8px; justify-items: center; padding: 18px 10px 14px; border-radius: 16px; border: 2px solid rgba(7,26,61,.18); background: #fffdf7; cursor: pointer; font: inherit; color: var(--cb-ink); }
.lw-sound:hover { border-color: var(--cb-navy); }
.lw-sound:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 3px; }
.lw-sound .big { font: 700 3rem/1 var(--lw-read); color: var(--cb-navy); background: #fde7a6; border-radius: 12px; padding: 6px 14px; box-shadow: inset 0 0 0 2px rgba(185,132,28,.6); }
.lw-sound .ex { font-size: .88rem; color: var(--cb-ink-soft); }
.lw-sound .state { font: 600 .72rem/1 var(--cb-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cb-ink-soft); }
.lw-sound.next { border-color: var(--cb-gold-thread); box-shadow: 0 0 0 3px rgba(242,184,43,.5); }
.lw-sound.next .state { color: var(--cb-gold-thread); }
.lw-sound .badge-mini { position: absolute; top: -10px; right: -8px; }

/* lesson steps */
.lw-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; }
.lw-steps li { font: 600 .8rem/1 var(--cb-body); padding: 8px 12px; border-radius: 999px; background: rgba(7,26,61,.07); color: var(--cb-ink-soft); }
.lw-steps li.on { background: var(--cb-navy); color: var(--cb-ivory); }
.lw-steps li.done { background: rgba(242,184,43,.3); color: #6b4a0c; }

/* I do: two letters hold hands */
.lw-join { display: flex; justify-content: center; align-items: center; gap: 60px; min-height: 150px; margin: 6px 0 10px; transition: gap .7s cubic-bezier(.5,0,.2,1.3); }
.lw-join .lw-tile { width: 96px; height: 112px; font-size: 3.8rem; cursor: default; }
.lw-join .lw-tile::before { content: ""; position: absolute; top: 14px; left: 50%; width: 30px; height: 6px; margin-left: -15px;
  background: radial-gradient(circle 3px at 6px 3px, #2a1b12 98%, transparent) , radial-gradient(circle 3px at 24px 3px, #2a1b12 98%, transparent); }
.lw-join.joined { gap: 0; }
.lw-join.joined .lw-tile { background-color: #fde7a6; box-shadow: inset 0 0 0 2px rgba(185,132,28,.6), 0 5px 0 #c99a2e, 0 10px 16px -8px rgba(0,0,0,.5); }
.lw-join.joined .lw-tile:first-child { border-radius: 12px 0 0 12px; }
.lw-join.joined .lw-tile:last-child { border-radius: 0 12px 12px 0; }
.lw-join .hands { width: 0; height: 6px; background: var(--cb-gold-thread); transition: width .5s; }
.lw-tipbox { background: rgba(32,184,208,.1); border-radius: 12px; padding: 10px 14px; font: 1.08rem/1.4 var(--lw-read); margin: 0 0 14px; }
.lw-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.lw-card { display: grid; justify-items: center; gap: 6px; padding: 12px 10px; border-radius: 14px; border: 2px solid rgba(7,26,61,.15); background: #fffdf7; cursor: pointer; font: inherit; color: var(--cb-ink); }
.lw-card:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 3px; }
.lw-card .lw-pic { width: 92px; height: 92px; }
.lw-word { font: 700 2rem/1 var(--lw-read); color: var(--cb-navy); letter-spacing: .02em; }
.lw-word .hl { color: #9a6a06; text-decoration: underline; text-decoration-color: var(--cb-gold); text-decoration-thickness: 5px; text-underline-offset: 6px; }

/* We do: listen and tap */
.lw-listen { display: grid; justify-items: center; gap: 16px; margin: 6px 0 12px; }
.lw-ear { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cb-teal-felt); color: #fff; font: 600 1.1rem/1 var(--cb-body); box-shadow: 0 6px 0 #1f4a4c; }
.lw-ear:active { transform: translateY(3px); box-shadow: 0 3px 0 #1f4a4c; }
.lw-ear:focus-visible { outline: 4px solid var(--cb-gold); outline-offset: 3px; }
.lw-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 620px; }
.lw-choice { min-height: 96px; border-radius: 16px; border: 3px solid rgba(7,26,61,.18); background: #fffdf7; cursor: pointer; font: 700 2.2rem/1 var(--lw-read); color: var(--cb-navy); }
.lw-choice:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 3px; }
.lw-choice.right { border-color: var(--cb-gold-thread); background: #fde7a6; animation: lw-pop .5s; }
.lw-choice.nope { opacity: .4; animation: lw-wiggle .4s; }
@keyframes lw-pop { 50% { transform: scale(1.06); } }
@keyframes lw-wiggle { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lw-count { font: 600 .8rem/1 var(--cb-body); color: var(--cb-ink-soft); letter-spacing: .06em; text-transform: uppercase; }

/* You do: sound boxes */
.lw-build { display: grid; justify-items: center; gap: 14px; }
.lw-build .lw-pic { width: 120px; height: 120px; }
.lw-boxes { display: flex; gap: 10px; justify-content: center; }
.lw-box { width: 86px; height: 96px; border-radius: 12px; border: 3px dashed rgba(7,26,61,.35); background: rgba(255,253,247,.7); display: grid; place-items: center; cursor: pointer;
  font: 700 2.4rem/1 var(--lw-read); color: var(--cb-navy); }
.lw-box.filled { border-style: solid; background: var(--lw-tile); }
.lw-box.filled.dg { background: #fde7a6; }
.lw-box.v { color: var(--lw-vowel); }
.lw-box.right { border-color: var(--cb-gold-thread); box-shadow: 0 0 0 4px rgba(242,184,43,.45); }
.lw-box.fix { border-color: var(--cb-teal); animation: lw-wiggle .4s; }
.lw-box:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 3px; }
.lw-bank { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 640px; }

/* Read it: decodable book */
.lw-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: #fffaf0 var(--lw-felt-noise); border-radius: 10px 16px 16px 10px; overflow: hidden;
  box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.35), 0 14px 26px -16px rgba(0,0,0,.7); border-left: 10px solid var(--cb-navy); margin-bottom: 14px; min-height: 260px; }
.lw-book .art { display: grid; place-items: center; background: rgba(46,107,111,.12); padding: 16px; border-right: 2px dashed rgba(185,132,28,.5); }
.lw-book .art .lw-pic { width: min(200px, 100%); height: auto; aspect-ratio: 1; }
.lw-book .words { display: flex; flex-wrap: wrap; align-content: center; gap: 4px 12px; padding: 22px 20px; }
.lw-w { position: relative; border: 0; background: none; padding: 16px 4px 4px; border-radius: 8px; cursor: pointer; font: 700 clamp(1.8rem, 4.2vw, 2.5rem)/1.1 var(--lw-read); color: var(--cb-ink); }
.lw-w:hover, .lw-w.say { background: rgba(242,184,43,.22); }
.lw-w:focus-visible { outline: 3px solid var(--cb-teal); outline-offset: 2px; }
.lw-w .hl { color: #9a6a06; text-decoration: underline; text-decoration-color: var(--cb-gold); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.lw-w.heart::before { content: "♥"; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: .9rem; color: #c8402f; }
.lw-book-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lw-pg { font: 600 .82rem/1 var(--cb-body); color: var(--cb-ink-soft); }
.lw-key { font-size: .86rem; color: var(--cb-ink-soft); margin: 0 0 12px; }
.lw-key b { color: #c8402f; }

/* badge */
.lw-badge { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 12px; position: relative;
  background: radial-gradient(circle at 38% 30%, #3e7a55, #1f4a33 70%) ; box-shadow: 0 0 0 6px var(--cb-gold), 0 0 0 9px #8a5f0e, 0 16px 26px -12px rgba(0,0,0,.7);
  font: 700 3.6rem/1 var(--lw-read); color: #fde7a6; animation: lw-stamp .7s cubic-bezier(.3,1.6,.5,1); }
.lw-badge::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2.5px dashed rgba(253,231,166,.7); }
.lw-badge.mini { width: 40px; height: 40px; font-size: 1rem; box-shadow: 0 0 0 3px var(--cb-gold); animation: none; margin: 0; }
.lw-badge.mini::after { inset: 4px; border-width: 1.5px; }
@keyframes lw-stamp { 0% { transform: scale(1.8) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lw-center { text-align: center; }
.lw-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 10px 0 0; }

/* Free Play: Word Workshop */
.lw-mat { display: flex; gap: 10px; justify-content: center; min-height: 112px; align-items: center; padding: 14px; border-radius: 14px; background: var(--lw-board) var(--lw-felt-noise);
  box-shadow: inset 0 0 0 6px #6c4223, inset 0 0 0 9px #8a5a34; margin: 0 0 12px; flex-wrap: wrap; }
.lw-mat .empty { color: rgba(248,243,231,.75); font: 1.2rem/1.2 var(--lw-read); text-align: center; }
.lw-mat .lw-tile { cursor: default; }
.lw-result { min-height: 132px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 0 0 12px; }
.lw-result .lw-pic { width: 110px; height: 110px; }
.lw-rows { display: grid; gap: 10px; justify-items: center; margin: 0 0 14px; }
.lw-rows .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lw-rows .lw-tile { min-width: 52px; height: 58px; font-size: 1.9rem; }
.lw-jar { display: flex; flex-wrap: wrap; gap: 8px; }
.lw-jar button { border: 0; border-radius: 999px; padding: 8px 14px; background: #fde7a6; font: 700 1.2rem/1 var(--lw-read); color: var(--cb-navy); cursor: pointer; min-height: 44px; }
.lw-jar button:focus-visible { outline: 3px solid var(--cb-teal); outline-offset: 2px; }

/* shelf */
.lw-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 14px 10px 22px; border-radius: 10px;
  background: linear-gradient(to bottom, transparent calc(100% - 18px), #6c4223 calc(100% - 18px)); }
.lw-cover { display: grid; gap: 6px; justify-items: center; padding: 12px 10px; border-radius: 4px 10px 10px 4px; border: 0; border-left: 8px solid var(--cb-navy); cursor: pointer;
  background: #fffaf0 var(--lw-felt-noise); box-shadow: 0 10px 16px -10px rgba(0,0,0,.7); font: inherit; color: var(--cb-ink); text-align: center; }
.lw-cover:focus-visible { outline: 4px solid var(--cb-teal); outline-offset: 3px; }
.lw-cover .lw-pic { width: 80px; height: 80px; }
.lw-cover b { font: 700 1.05rem/1.15 var(--lw-read); color: var(--cb-navy); }
.lw-cover small { font: 600 .72rem/1 var(--cb-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cb-gold-thread); }

.lw-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lw-end { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.lw-end a, .lw-end button { justify-content: center; text-align: center; }

.lw-grownups { max-width: 1008px; margin: 24px auto 40px; font-size: .95rem; }
@media (max-width: 1040px) { .lw-grownups { margin-left: 16px; margin-right: 16px; } }
.lw-grownups summary { cursor: pointer; font-weight: 600; color: var(--cb-navy); min-height: 32px; }
.lw-grownups h2 { font: 600 1.25rem/1.15 var(--cb-display); color: var(--cb-navy); margin: 14px 0 6px; }
.lw-grownups ul { padding-left: 1.1em; }

@media (max-width: 700px) {
  .lw-guide { grid-template-columns: 48px minmax(0,1fr); }
  .lw-face { width: 48px; height: 48px; font-size: 1.3rem; }
  .lw-say p { font-size: 1.06rem; }
  .lw-choices { grid-template-columns: minmax(0, 1fr); max-width: 320px; }
  .lw-choice { min-height: 72px; }
  .lw-book { grid-template-columns: minmax(0, 1fr); }
  .lw-book .art { border-right: 0; border-bottom: 2px dashed rgba(185,132,28,.5); }
  .lw-book .art .lw-pic { width: 140px; }
  .lw-box { width: 72px; height: 84px; font-size: 2rem; }
  .lw-join { gap: 30px; }
  .lw-join .lw-tile { width: 80px; height: 96px; font-size: 3.2rem; }
  .lw-hall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw-door { min-height: 168px; }
  .lw-rows .lw-tile { min-width: 46px; height: 52px; font-size: 1.6rem; padding: 0 8px; }
  .lw-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lw-top .lw-pill { padding: 0 12px; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lw-arrive.zoom { visibility: hidden; }
}

/* engine dock, tucked into the top bar */
.lw-top .cb-dock { position: static; padding: 0; gap: 6px; z-index: auto; }
.lw-top .cb-dock button { width: 46px; height: 46px; box-shadow: 0 3px 8px -3px rgba(0,0,0,.5); }
.lw-top .cb-dock .lbl { display: none; }
.lw-top .cb-dock .count { top: -4px; right: -4px; }
@media (max-width: 420px) { .lw-top { gap: 6px; padding-left: 10px; padding-right: 10px; } .lw-top .cb-dock button { width: 42px; height: 42px; } #voice-toggle span { display: none; } }

.lw-fb { min-height: 1.4em; margin: 0; text-align: center; font: 1.05rem/1.35 var(--lw-read); color: var(--cb-ink); max-width: 620px; }
.lw-fb:empty { display: none; }
.lw-fb b { color: #2f5b3e; font-family: var(--cb-body); font-size: .85rem; letter-spacing: .04em; }
.lw-tok { white-space: nowrap; font: 700 clamp(1.8rem, 4.2vw, 2.5rem)/1.1 var(--lw-read); }
.lw-card .lw-pic { width: 110px; height: 110px; }
.lw-pill { white-space: nowrap; }
.lw-door .knob { top: auto; bottom: 52px; }
@media (max-width: 480px) {
  #back-label { display: none; }
  #back::after { content: "Back"; }
  #voice-toggle span { display: none; }
  .lw-top .cb-dock button { width: 40px; height: 40px; }
  .lw-top { gap: 6px; }
  .lw-end .cb-btn { padding: 12px 16px; }
}
