/* fluff.css — Race Fluff (thelaglobe.com/fluff), the daily word race with a sheep.
   One look on purpose (owner, 2026-12-02): a calm sunny meadow, big stone letter tiles, and Fluff, small at the side.
   The meadow behind the board is a soft (blurred) copy of the same picture, so the letters are all there is to look at.
   every .css file is served immutable (_headers): bump ?v= in fluff.html with every change here (v=2: the reveal; v=3: Fluff painted). */
:root {
  color-scheme: light;
  --green-d: #1f4315; --green: #2f6b22; --green-l: #58a534; --cream: #fff6dd; --ink: #4a2c12; --ink-soft: #7a5a3a;
  --gold: #ffd23f; --gold-l: #ffe98a; --gold-d: #d99a00; --pill: rgba(27, 66, 44, .84); --line: rgba(255, 246, 221, .34);
  --coral: #ff6b5e; --mint: #8dea7a; --lilac: #c9b8ff; --wool: #fffaf0;
  /* the meadow, as its phone-sized WebP copies (scripts/image_sizes.py makes them from images/fluff/) */
  --art-tall: url(/images/derived/fluff__fluff-meadow-900.webp); --art-tall-soft: url(/images/derived/fluff__fluff-meadow-soft-540.webp);
  --art-wide: url(/images/derived/fluff__fluff-meadow-wide-1600.webp); --art-wide-soft: url(/images/derived/fluff__fluff-meadow-wide-soft-1280.webp);
  --gl: max(14px, env(safe-area-inset-left, 0px)); --gr: max(14px, env(safe-area-inset-right, 0px));
  --f: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --daisy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='12' cy='5' rx='3.2' ry='4.6'/%3E%3Cellipse cx='12' cy='19' rx='3.2' ry='4.6'/%3E%3Cellipse cx='5' cy='12' rx='4.6' ry='3.2'/%3E%3Cellipse cx='19' cy='12' rx='4.6' ry='3.2'/%3E%3Cellipse cx='7' cy='7' rx='3.2' ry='4.4' transform='rotate(-45 7 7)'/%3E%3Cellipse cx='17' cy='7' rx='3.2' ry='4.4' transform='rotate(45 17 7)'/%3E%3Cellipse cx='7' cy='17' rx='3.2' ry='4.4' transform='rotate(45 7 17)'/%3E%3Cellipse cx='17' cy='17' rx='3.2' ry='4.4' transform='rotate(-45 17 17)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='4' fill='%23ffc928'/%3E%3C/svg%3E");
  --buttercup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ffd23f'%3E%3Cellipse cx='12' cy='5' rx='3.2' ry='4.6'/%3E%3Cellipse cx='12' cy='19' rx='3.2' ry='4.6'/%3E%3Cellipse cx='5' cy='12' rx='4.6' ry='3.2'/%3E%3Cellipse cx='19' cy='12' rx='4.6' ry='3.2'/%3E%3Cellipse cx='7' cy='7' rx='3.2' ry='4.4' transform='rotate(-45 7 7)'/%3E%3Cellipse cx='17' cy='7' rx='3.2' ry='4.4' transform='rotate(45 17 7)'/%3E%3Cellipse cx='7' cy='17' rx='3.2' ry='4.4' transform='rotate(45 7 17)'/%3E%3Cellipse cx='17' cy='17' rx='3.2' ry='4.4' transform='rotate(-45 17 17)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='4' fill='%23e88a00'/%3E%3C/svg%3E");
  --tuft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff6e0'%3E%3Ccircle cx='8' cy='9' r='5'/%3E%3Ccircle cx='15' cy='8' r='5.5'/%3E%3Ccircle cx='18' cy='14' r='4.5'/%3E%3Ccircle cx='12' cy='16' r='5.5'/%3E%3Ccircle cx='6' cy='14.5' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
}
/* ONE SCREEN, NO ZOOM (the house rule for a game on a phone, 2026-12-02): the game is a fixed box the size of the
   window, the page under it cannot scroll, and no double tap zooms anything. */
html { touch-action: manipulation; background: var(--green); }
html, body { margin: 0; height: 100%; }
body { background: var(--green); color: var(--cream); font-family: var(--f); font-size: 16px; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
@media (max-width: 959px) { body { position: fixed; inset: 0; overflow: hidden; } }
button { font-family: var(--f); cursor: pointer; touch-action: manipulation; color: inherit; }
[hidden] { display: none !important; }

#app { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); -webkit-user-select: none; user-select: none; touch-action: manipulation; background: var(--green);
  --n: 4; --top: 54px; --sc: 44px; --wd: 54px; --ft: 30px; --stmin: 104px; --gap: clamp(5px, 1.9vw, 9px);
  --tst: clamp(84px, calc(100dvh - 620px), 150px); --tcard: 178px;
  --b: min(calc(100vw - 28px), calc(100dvh - var(--top) - var(--sc) - var(--wd) - var(--ft) - var(--stmin) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 26px), 540px);
  --bb: var(--b);                                    /* the board itself: the full size in a race, smaller for the lesson's 3x3 */
  --t: calc((var(--bb) - (var(--n) - 1) * var(--gap)) / var(--n)); }
#app.s-tut { --bb: min(calc(100vw - 120px), calc(100dvh - var(--top) - var(--sc) - var(--wd) - var(--tst) - var(--tcard) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 30px), 320px); }
#sky, #soft { position: absolute; inset: 0; background-size: cover; background-position: 50% 22%; }
#sky { background-image: var(--art-tall); }
#soft { background-image: linear-gradient(rgba(20, 54, 16, .16), rgba(20, 54, 16, .3) 55%, rgba(20, 54, 16, .56)), var(--art-tall-soft); opacity: 0; transition: opacity .5s ease; }
#app.s-race #soft, #app.s-tut #soft, #app.s-count #soft, #app.s-over #soft, #app.s-reveal #soft { opacity: 1; }
#app > section, #app > header, #word, #foot { position: relative; z-index: 2; }
#app .lift { z-index: 14; }

/* ---- the top bar: the name, the clock, the sound button ---- */
#top { height: var(--top); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gr) 0 var(--gl); background: linear-gradient(#2c6420, #24551b); box-shadow: 0 3px 0 rgba(13, 40, 8, .35); }
.logo { font-weight: 700; font-size: 29px; letter-spacing: 1.5px; color: var(--cream); text-shadow: 0 3px 0 rgba(13, 40, 8, .55); line-height: 1; }
#clock { position: absolute; left: 50%; top: 5px; width: calc(var(--top) + 18px); height: calc(var(--top) + 18px); margin-left: calc((var(--top) + 18px) / -2); border-radius: 50%; display: grid; place-items: center; z-index: 3;
  background: conic-gradient(var(--gold) calc(var(--p, 1) * 360deg), #e9dcb6 0); box-shadow: 0 4px 0 rgba(13, 40, 8, .4), 0 8px 16px rgba(13, 40, 8, .3); }
#clock::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--cream); }
#clockT { position: relative; font-weight: 700; font-size: 23px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
#clock.hot { background: conic-gradient(var(--coral) calc(var(--p, 1) * 360deg), #f3c9c2 0); animation: beat 1s ease-in-out infinite; }
#clock.hot #clockT { color: #b3261a; }
#clock.idle { opacity: .55; }
#dayTag { display: none; }
#mute { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); display: grid; place-items: center; padding: 0; box-shadow: 0 3px 0 rgba(13, 40, 8, .45); }
#mute svg { width: 22px; height: 22px; }
#app.cover #top { background: none; box-shadow: none; z-index: 35; } #app.cover .logo, #app.cover #clock, #app.cover #dayTag { visibility: hidden; }

/* ---- the two scores ---- */
#score { height: var(--sc); flex: none; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--gr) 0 var(--gl); box-sizing: border-box; }
.who { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 9px; border-radius: 14px; background: var(--pill); border: 1.5px solid var(--line); box-shadow: 0 3px 0 rgba(13, 40, 8, .3); transition: transform .2s, box-shadow .2s, border-color .2s; }
.who b { font-weight: 700; font-size: 14px; letter-spacing: 1px; color: var(--cream); }
.who span { font-weight: 700; font-size: 23px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; min-width: 1ch; text-align: right; }
.who.lead { border-color: var(--gold); box-shadow: 0 3px 0 rgba(13, 40, 8, .3), 0 0 0 3px rgba(255, 210, 63, .35); }
.who.bump span { animation: bump .38s cubic-bezier(.2, 1.7, .4, 1); }
.ico { width: 22px; height: 22px; flex: none; background-size: contain; background-repeat: no-repeat; background-position: center; }
.ico.daisy, #garden i { background-image: var(--daisy); }
.ico.wool, #garden i.tuft { background-image: var(--tuft); }

/* ---- the stage: Fluff, small, at the side ---- */
#stage { flex: 1 1 0; min-height: 0; display: flex; justify-content: flex-end; align-items: flex-end; padding: 0 var(--gr) 0 var(--gl); }
.list { display: none; }
/* your side of the meadow: a daisy comes up for every word you find (a buttercup for a long one); wool gathers at Fluff's feet */
#garden { position: absolute; left: var(--gl); right: var(--gr); top: 0; bottom: 0; pointer-events: none; }
#garden i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); background-size: contain; background-repeat: no-repeat; filter: drop-shadow(0 2px 1px rgba(13, 40, 8, .4)); animation: sprout .55s cubic-bezier(.2, 1.7, .4, 1) both; }
#garden i.gold { background-image: var(--buttercup); }
#garden.still i { animation: none; }
#fluffBox { position: relative; height: min(100%, 212px); aspect-ratio: 1; flex: none; margin-bottom: -6px; pointer-events: none; }
#fluff { position: absolute; inset: 0; }
#bubble { position: absolute; right: 86%; bottom: 46%; white-space: nowrap; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 19px; line-height: 1; padding: 9px 13px 10px; border-radius: 16px 16px 4px 16px; box-shadow: 0 4px 0 rgba(13, 40, 8, .32); transform-origin: 100% 100%; z-index: 3; }
#bubble.pop { animation: pop .34s cubic-bezier(.2, 1.7, .4, 1); }
#bubble.out { opacity: 0; transform: scale(.7) translateY(6px); transition: opacity .25s, transform .25s; }

/* ---- the word you are making, and what it earned ---- */
#word { height: var(--wd); flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; }
#word > span, #word > b { display: inline-block; }
#wText { min-width: 54px; max-width: calc(100vw - 110px); box-sizing: border-box; height: 42px; line-height: 42px; padding: 0 20px; border-radius: 21px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 25px; letter-spacing: 1.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 0 rgba(13, 40, 8, .32); opacity: 0; transform: scale(.9); transition: opacity .12s, transform .12s; }
#word.has #wText { opacity: 1; transform: none; }
#word.say #wText { font-size: 19px; letter-spacing: .2px; }
#word.good #wText { background: #eaffd6; } #word.bad #wText { background: #ffe1dc; animation: wobble .36s ease-out; } #word.meh #wText { background: #efe9da; }
#wPts { font-weight: 700; font-size: 27px; color: #fff; text-shadow: 0 3px 0 rgba(13, 40, 8, .5); min-width: 0; }
#word.good #wPts { animation: rise-pts .7s ease-out both; color: var(--mint); }

/* ---- the board: big stone tiles ---- */
#boardWrap { flex: none; display: flex; justify-content: center; }
#board { position: relative; width: var(--bb); height: var(--bb); touch-action: none; outline: none; -webkit-touch-callout: none; }
#board::before { content: ""; position: absolute; inset: -9px; border-radius: 26px; background: rgba(24, 62, 18, .42); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(13, 40, 8, .3); }
.tiles, .letters { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr); gap: var(--gap); }
.letters { pointer-events: none; z-index: 3; }
.tile { border-radius: 24%; background: radial-gradient(130% 130% at 28% 18%, #f8f3e6 0%, #e4dbc8 48%, #cdc1a8 100%);
  box-shadow: 0 calc(var(--t) * .075) 0 #a09378, 0 calc(var(--t) * .13) calc(var(--t) * .13) rgba(13, 40, 8, .4), inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -4px 7px rgba(120, 104, 70, .22);
  transition: transform .09s ease-out, box-shadow .12s, background-color .12s; will-change: transform; }
.lt { display: grid; place-items: center; font-weight: 700; font-size: calc(var(--t) * .56); line-height: 1; color: var(--ink); text-shadow: 0 1.5px 0 rgba(255, 255, 255, .55); transition: transform .09s ease-out; will-change: transform; }
.lt.qu { font-size: calc(var(--t) * .44); letter-spacing: -1px; }
.tile.on { background: radial-gradient(130% 130% at 28% 18%, #fffbd0 0%, #ffe25e 46%, #ffbe1c 100%);
  box-shadow: 0 calc(var(--t) * .075) 0 #c98a00, 0 0 0 calc(var(--t) * .05) rgba(255, 226, 94, .55), 0 0 calc(var(--t) * .34) calc(var(--t) * .06) rgba(255, 204, 46, .8), inset 0 2px 0 rgba(255, 255, 255, .85);
  transform: translateY(calc(var(--t) * -.03)) scale(1.05); }
.lt.on { transform: translateY(calc(var(--t) * -.03)) scale(1.08); }
.tile.good { animation: tile-good .5s cubic-bezier(.2, 1.6, .4, 1); } .lt.good { animation: lt-good .5s cubic-bezier(.2, 1.6, .4, 1); }
.tile.bad { animation: wobble .36s ease-out; background: radial-gradient(130% 130% at 28% 18%, #ffeae6 0%, #f6c3ba 50%, #e3a195 100%); } .lt.bad { animation: wobble .36s ease-out; }
.tile.his { animation: tile-his .9s ease-out; }
.tile.guide { box-shadow: 0 calc(var(--t) * .075) 0 #a09378, 0 0 0 calc(var(--t) * .055) rgba(255, 226, 94, .95), 0 0 calc(var(--t) * .3) rgba(255, 204, 46, .7), inset 0 2px 0 rgba(255, 255, 255, .8); animation: guide 1.5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .16s); }
.tile.in, .lt.in { animation: breeze .62s cubic-bezier(.2, 1.25, .4, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
#board.off .tile { filter: saturate(.7) brightness(.95); }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.trail polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail .glow { stroke: rgba(255, 196, 30, .55); } .trail .core { stroke: #fff3b0; }
#finger { position: absolute; left: 0; top: 0; width: calc(var(--t) * .62); height: calc(var(--t) * .62); margin: calc(var(--t) * .1) 0 0 calc(var(--t) * -.1); z-index: 6; pointer-events: none; opacity: 0; transition: opacity .25s; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); }
#finger.show { opacity: 1; }

#foot { height: var(--ft); flex: none; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: var(--cream); text-shadow: 0 2px 0 rgba(13, 40, 8, .5); }
#fType { display: none; }

/* ---- lessons: everything but the thing being taught goes soft and dim, and one big card waits for a tap ---- */
#scrim { position: absolute; inset: 0; z-index: 10; background: rgba(13, 38, 10, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#card { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 20; box-sizing: border-box; background: var(--cream); color: var(--ink); border-radius: 26px; padding: 18px 18px 16px; text-align: center; box-shadow: 0 7px 0 rgba(13, 40, 8, .4), 0 18px 40px rgba(13, 40, 8, .4); animation: rise .3s cubic-bezier(.2, 1.3, .4, 1); }
#cBig { font-weight: 700; font-size: clamp(26px, 7.6vw, 38px); line-height: 1.1; color: var(--ink); text-wrap: balance; }
#cSmall { font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--ink-soft); padding-top: 7px; text-wrap: balance; }
#cSmall:empty { display: none; }
.go { display: block; width: 100%; height: 60px; margin-top: 14px; border: 0; border-radius: 20px; background: linear-gradient(#ffe066, #ffc21f); color: var(--ink); font-weight: 700; font-size: 23px; letter-spacing: 1px; box-shadow: 0 6px 0 var(--gold-d), 0 12px 18px rgba(13, 40, 8, .28); transition: transform .06s; }
.go:active, .go.down { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold-d); }
.go.quiet { background: rgba(255, 246, 221, .16); color: var(--cream); box-shadow: 0 5px 0 rgba(13, 40, 8, .35); border: 1.5px solid var(--line); }
#card .go.wait { animation: beat 1.2s ease-in-out infinite; }
#app.s-tut #boardWrap { flex: 1 1 0; min-height: 0; align-items: flex-start; padding-top: 10px; }
#app.s-tut #stage { flex: none; height: var(--tst); }
#skip { position: absolute; right: 2px; top: -34px; height: 28px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: rgba(20, 52, 16, .7); color: var(--cream); font-weight: 600; font-size: 14px; }
#app.s-tut #foot { display: none; }
#app.s-tut #clock { opacity: .5; }
#count { position: absolute; inset: 0; z-index: 25; box-sizing: border-box; display: flex; justify-content: center; align-items: flex-end; line-height: 1.2; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ft) + var(--b) / 2 - .6em); font-weight: 700; font-size: min(46vw, 230px); color: var(--cream); text-shadow: 0 10px 0 rgba(13, 40, 8, .5), 0 0 60px rgba(255, 255, 255, .5); pointer-events: none; }
#count.tick { animation: count .8s cubic-bezier(.2, 1.4, .4, 1) both; }
#count.word { font-size: min(24vw, 130px); }

/* ---- the reveal (the cancel rule, 2026-12-03): the two lists side by side, the words both found crossed out for both,
   then the final scores. It covers the race for a few seconds; a tap anywhere skips it. The lesson shows it tiny. ---- */
#rev { position: absolute; inset: 0; z-index: 18; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; cursor: pointer;
  padding: calc(env(safe-area-inset-top, 0px) + 62px) var(--gr) calc(env(safe-area-inset-bottom, 0px) + 10px) var(--gl);
  background: rgba(16, 44, 12, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s ease-out; }
#rvSay { flex: none; min-height: 2.3em; display: grid; place-items: center; font-weight: 700; font-size: clamp(24px, 7.2vw, 32px); line-height: 1.12; text-align: center; color: var(--cream); text-shadow: 0 3px 0 rgba(13, 40, 8, .5); text-wrap: balance; }
#rvSay.pop { animation: pop .34s cubic-bezier(.2, 1.7, .4, 1); }
#rvCols { flex: 1 1 0; min-height: 0; width: 100%; max-width: 860px; display: flex; gap: 10px; margin-top: 10px; }
.rvCol { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rvHead { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; border-radius: 16px; background: var(--pill); border: 2px solid var(--line); transition: background-color .25s, border-color .25s; }
.rvHead b { font-weight: 700; font-size: 14px; letter-spacing: 1.4px; color: var(--cream); }
.rvHead span { font-weight: 700; font-size: 32px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.rvHead.bump span { animation: bump .32s cubic-bezier(.2, 1.7, .4, 1); }
.rvHead.won { background: linear-gradient(#ffe066, #ffc21f); border-color: #fff3b0; box-shadow: 0 5px 0 var(--gold-d); }
.rvHead.won b, .rvHead.won span { color: var(--ink); }
.rvCol ol { flex: 1 1 auto; min-height: 0; list-style: none; margin: 4px -6px 0; padding: 6px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.rvCol li { position: relative; font-weight: 700; font-size: 14.5px; line-height: 1; letter-spacing: .6px; padding: 6px 8px 7px; border-radius: 9px; background: var(--cream); color: var(--ink); white-space: nowrap;
  animation: pop .3s cubic-bezier(.2, 1.7, .4, 1) both; animation-delay: calc(var(--k, 0) * 26ms); transition: background-color .25s, color .25s, box-shadow .25s; }
.rvCol li i { font-style: normal; font-weight: 600; opacity: .6; margin-left: 4px; }
.rvCol.him li { background: #fff; box-shadow: inset 0 0 0 2px #e3d6ad; }
.rvCol li::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--coral); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s ease-out; }
.rvCol li.cut { background: rgba(255, 246, 221, .2); color: rgba(255, 246, 221, .78); box-shadow: none; }
.rvCol li.cut::after { transform: scaleX(1); }
.rvCol li.keep { background: linear-gradient(#ffe98a, #ffd23f); box-shadow: 0 0 0 2px #fff3b0, 0 0 14px rgba(255, 210, 63, .85); animation: keep .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--k, 0) * 45ms); }
#rev.many .rvCol li { font-size: 12.5px; padding: 5px 6px 6px; letter-spacing: .3px; } #rev.many .rvCol li i { display: none; } #rev.many .rvCol ol { gap: 5px; }
#rvFoot { flex: none; position: relative; width: 100%; max-width: 860px; display: flex; justify-content: center; }
#rvFluff { position: relative; width: clamp(78px, 21dvh, 184px); aspect-ratio: 1; pointer-events: none; }
#rvSkip { position: absolute; right: 0; bottom: 4px; height: 36px; padding: 0 15px; border-radius: 99px; border: 1.5px solid var(--line); background: rgba(255, 246, 221, .14); color: var(--cream); font-weight: 600; font-size: 15px; }
/* in the lesson: only the two short lists, big, over the lesson's own blur, with room for the card under them */
#rev.lesson { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; cursor: default; animation: none;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--top) + 34px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tcard) + 30px); }
#rev.lesson #rvSay, #rev.lesson #rvFoot { display: none; }
#rev.lesson #rvCols { flex: none; max-width: 420px; box-sizing: border-box; padding: 12px 12px 8px; border-radius: 24px; background: rgba(16, 44, 12, .72); }
#rev.lesson .rvCol li { font-size: 20px; padding: 9px 12px 10px; border-radius: 12px; }
#rev.lesson .rvCol ol { gap: 8px; -webkit-mask-image: none; mask-image: none; overflow: visible; }

/* ---- the title and the end: the meadow, sharp ---- */
.full { position: absolute; inset: 0; z-index: 30; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gr) calc(env(safe-area-inset-bottom, 0px) + 16px) var(--gl);
  background-color: var(--green); background-image: linear-gradient(rgba(31, 67, 21, 0) 40%, rgba(31, 67, 21, .8) 62%, var(--green-d) 80%), var(--art-tall); background-size: cover; background-position: 50% 0; }
.side { display: contents; }
#title .big { font-weight: 700; font-size: clamp(70px, 24vw, 104px); line-height: .96; letter-spacing: 1px; color: var(--cream); text-shadow: 0 6px 0 rgba(140, 104, 40, .5), 0 12px 22px rgba(30, 60, 100, .35); margin-top: 26px; }
.pill { margin-top: 6px; font-weight: 700; font-size: 17px; letter-spacing: 2px; color: var(--ink); background: linear-gradient(#ffe066, #ffc21f); padding: 6px 16px 7px; border-radius: 99px; box-shadow: 0 4px 0 var(--gold-d); }
#tFluff, #eFluff { flex: 1 1 0; min-height: 120px; width: 100%; max-width: 380px; position: relative; }
#tFluff > .fl, #eFluff > .fl { max-height: 340px; }
#title h2 { margin: 6px 0 0; font-weight: 700; font-size: clamp(27px, 8vw, 36px); line-height: 1.1; text-align: center; color: var(--cream); text-shadow: 0 3px 0 rgba(13, 40, 8, .5); text-wrap: balance; }
#title p { margin: 7px 0 0; font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--lilac); text-align: center; }
#tToday { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--cream); padding: 6px 14px 7px; border-radius: 99px; }
#title .go, #end .go { max-width: 420px; flex: none; }
#play { height: 68px; font-size: 30px; letter-spacing: 2px; }
#tType { display: none; }
#tCredit { margin-top: 12px; font-weight: 500; font-size: 12.5px; line-height: 1.35; color: var(--cream); opacity: .82; text-align: center; }
#tCredit a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

#end { justify-content: flex-start; }
@media (max-width: 899px), (max-height: 559px) {
  #end .side { display: flex; position: relative; flex: 1 1 0; min-height: 96px; max-height: 250px; width: 100%; max-width: 420px; margin-top: 26px; }
  #eFluff { flex: none; width: 62%; height: 100%; min-height: 0; max-width: none; }
}
#eSay { position: absolute; left: 60%; right: 0; top: 20%; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.15; padding: 9px 13px 10px; border-radius: 16px 16px 16px 4px; box-shadow: 0 4px 0 rgba(13, 40, 8, .32); transform: rotate(3deg); z-index: 2; }
#eSay:empty { display: none; }
#eKick { font-weight: 700; font-size: 13px; letter-spacing: 2.4px; color: var(--gold-l); text-align: center; text-shadow: 0 2px 0 rgba(13, 40, 8, .5); }
#end h2 { margin: 2px 0 0; font-weight: 700; font-size: clamp(36px, 10.6vw, 48px); line-height: 1.05; text-align: center; color: var(--cream); text-shadow: 0 4px 0 rgba(13, 40, 8, .5); }
#eDuel { display: flex; gap: 10px; width: 100%; max-width: 420px; margin-top: 10px; }
.duel { flex: 1 1 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-radius: 18px; background: var(--pill); border: 2px solid var(--line); }
.duel b { font-weight: 700; font-size: 15px; letter-spacing: 1.4px; color: var(--cream); }
.duel span { font-weight: 700; font-size: 38px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.duel.won { background: linear-gradient(#ffe066, #ffc21f); border-color: #fff3b0; box-shadow: 0 5px 0 var(--gold-d); }
.duel.won b, .duel.won span { color: var(--ink); }
#eSub { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--cream); text-align: center; padding-top: 10px; text-wrap: balance; }
#eSub b { color: var(--gold-l); letter-spacing: .6px; }
#share { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; }
#share svg { width: 24px; height: 24px; flex: none; }
#eThumb { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; object-fit: cover; box-sizing: border-box; border-radius: 10px; border: 2px solid rgba(74, 44, 18, .35); }
#eBtns { display: flex; gap: 8px; width: 100%; max-width: 420px; flex: none; }
#eBtns .go { flex: 1 1 0; min-width: 0; height: 50px; margin-top: 10px; font-size: 17px; letter-spacing: 0; display: grid; place-items: center; align-content: center; text-decoration: none; box-sizing: border-box; padding: 0 6px; line-height: 1.05; }
#again small { font-size: 12px; font-weight: 600; opacity: .8; }
#eRank { margin-top: 10px; font-weight: 700; font-size: 16px; color: var(--ink); background: var(--cream); padding: 6px 14px 7px; border-radius: 99px; }
#eChips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.eChip { height: 34px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--line); background: rgba(255, 246, 221, .14); color: var(--cream); font-weight: 600; font-size: 14.5px; }
#eFoot { padding-top: 9px; font-weight: 500; font-size: 14px; color: var(--cream); opacity: .9; text-align: center; font-variant-numeric: tabular-nums; }
#eNl { width: 100%; max-width: 420px; margin-top: 10px; padding: 10px 12px; box-sizing: border-box; border-radius: 16px; background: rgba(20, 52, 16, .78); border: 1.5px solid var(--line);
  --ge-ink: var(--cream); --ge-field: rgba(255, 255, 255, .12); --ge-field-ink: var(--cream); --ge-line: rgba(255, 246, 221, .34); --ge-btn: var(--gold); --ge-btn-ink: var(--ink); }
#eNl:empty { display: none; }
#eNl .ge-nl-mail::placeholder { color: rgba(255, 246, 221, .6); }

/* ---- the small sheet: today's top scores, or the words you missed ---- */
#eMore { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-height: calc(100% - 90px); z-index: 36; box-sizing: border-box; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 12px 16px 16px; box-shadow: 0 0 0 100vmax rgba(13, 38, 10, .62), 0 16px 44px rgba(13, 40, 8, .5); animation: rise .28s cubic-bezier(.2, 1.3, .4, 1); }
.mHead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; flex: none; }
.mHead b { font-weight: 700; font-size: 22px; }
#mClose { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #efe5c6; color: var(--ink); font-size: 26px; line-height: 1; padding: 0; }
#mBoard, #mMissed { overflow-y: auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#bCount, #xLine { margin: 0 0 6px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
#bRows { list-style: none; margin: 0; padding: 0; }
#bRows li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-weight: 600; font-size: 17px; }
#bRows li:nth-child(odd) { background: rgba(74, 44, 18, .06); }
#bRows li.you { background: var(--gold-l); box-shadow: inset 0 0 0 2px var(--gold-d); }
#bRows .rk { width: 30px; text-align: center; font-weight: 700; flex: none; } #bRows .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #bRows .pt { font-weight: 700; font-variant-numeric: tabular-nums; }
#bYou { margin: 8px 0 0; font-weight: 700; font-size: 16px; }
#bJoin { display: flex; gap: 8px; margin-top: 10px; }
#bName { flex: 1 1 auto; min-width: 0; height: 44px; border-radius: 12px; border: 2px solid rgba(74, 44, 18, .3); background: #fff; color: var(--ink); padding: 0 12px; font: 600 16px var(--f); -webkit-user-select: text; user-select: text; }
#bAdd { flex: none; height: 44px; border-radius: 12px; border: 0; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 15px; padding: 0 14px; }
#bNote, #xRare { margin: 8px 0 0; font-weight: 500; font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
.xHead { margin: 10px 0 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.xList { display: flex; flex-wrap: wrap; gap: 6px; }
.xList span { font-weight: 700; font-size: 15px; letter-spacing: .8px; padding: 5px 10px 6px; border-radius: 10px; background: #efe5c6; }
.xList span.his { background: #fff; box-shadow: inset 0 0 0 2px #e3d6ad; }
.xList span.long { background: var(--gold-l); }
.xList span.cut { background: #ece6d6; color: rgba(74, 44, 18, .62); text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2.5px; }

#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ================= FLUFF, painted, and moved by the page =================
   One picture per pose (fluff.js, POSES), every one on the same 800x960 canvas with his hooves on one line, so a change
   of pose never moves him. The page gives him life: a slow breath, a lean toward the tile you are on, a squash as he
   munches, a hop when he wins, a sigh when he loses. A patch of closed lids blinks over the idle pose. On the title
   his raised arm, a layer of its own tucked behind him, turns at the shoulder. Slow and smooth on purpose: nothing
   here twitches. The lean uses the `rotate` property, so it adds to whatever the mood's own animation is doing. */
.fl { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 5 / 6; transform: translateX(-50%); pointer-events: none; }
.fl .f-all { position: absolute; inset: 0; transform-origin: 50% 97%; animation: f-breathe 3.6s ease-in-out infinite; rotate: calc(var(--lx, 0) * .4deg); transition: rotate .5s ease-out; }
.fl img, .fl .f-hi, .fl .f-hi svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.fl img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.fl .f-pose, .fl .f-arm, .fl .f-lid, .fl .f-hi { opacity: 0; }
.fl .f-pose.on { opacity: 1; }
.fl .f-shadow { position: absolute; left: 13%; right: 13%; bottom: -.6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 44, 9, .46), rgba(16, 44, 9, 0)); transform-origin: 50% 50%; }
/* the blink: the closed lids sit exactly over the two lenses of the idle pose, for a blink every few seconds */
.fl .f-lid { left: 30.5%; top: 23.75%; width: 40.5%; height: 15.83%; }
.fl[data-pose="idle"] .f-lid { animation: f-blink 4.7s infinite; }
/* the wave: the arm turns about the shoulder, behind him; three little dashes say hello */
.fl[data-pose="wave"] .f-arm { opacity: 1; transform-origin: 76.62% 46.25%; animation: f-wave .58s ease-in-out infinite alternate; }
.fl[data-pose="wave"] .f-hi { opacity: 1; transform-origin: 86% 31%; animation: f-hi 1.16s ease-in-out infinite; }
.fl.wave .f-all { animation: f-sway 2.6s ease-in-out infinite; }
/* smug: he is ahead, and sways. worried: you are ahead, and he frets. */
.fl.smug .f-all { animation: f-sway 3.8s ease-in-out infinite; }
.fl.worry .f-all { animation: f-fret 1.5s ease-in-out infinite; }
/* sad: he lost, and sighs. happy: he won, and hops. */
.fl.sad .f-all { animation: f-sigh 4.6s ease-in-out infinite; }
.fl.happy .f-all { animation: f-hop .68s cubic-bezier(.3, 0, .4, 1) infinite; } .fl.happy .f-shadow { animation: f-hop-shadow .68s cubic-bezier(.3, 0, .4, 1) infinite; }
/* chew: he just ate a word. Four soft squashes. */
.fl.chew .f-all { animation: f-munch .3s ease-in-out 4 alternate; }

@keyframes f-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.992, 1.016); } }
@keyframes f-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.6deg); } }
@keyframes f-fret { 0%, 100% { transform: rotate(-1deg) scale(1, 1); } 50% { transform: rotate(1deg) scale(.99, 1.012); } }
@keyframes f-sigh { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .982); } }
@keyframes f-hop { 0%, 100% { transform: translateY(0) scale(1.04, .96); } 45% { transform: translateY(-7%) scale(.98, 1.03); } }
@keyframes f-hop-shadow { 0%, 100% { transform: scaleX(.92); opacity: .9; } 45% { transform: scaleX(.68); opacity: .5; } }
@keyframes f-munch { 0% { transform: scale(1, 1); } 100% { transform: scale(1.045, .95); } }
@keyframes f-blink { 0%, 93%, 100% { opacity: 0; } 94.5%, 97.5% { opacity: 1; } }
@keyframes f-wave { 0% { transform: rotate(-5deg); } 100% { transform: rotate(15deg); } }
@keyframes f-hi { 0%, 100% { opacity: .15; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.05); } }

@keyframes sprout { 0% { transform: scale(0) rotate(-80deg); } 100% { transform: scale(1) rotate(var(--r, 0deg)); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { 0% { transform: translateY(26px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wobble { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes rise-pts { 0% { transform: translateY(8px) scale(.6); opacity: 0; } 30% { transform: translateY(0) scale(1.25); opacity: 1; } 100% { transform: translateY(-4px) scale(1); opacity: 1; } }
@keyframes tile-good { 0% { transform: scale(1.05); background-color: #fff; } 40% { transform: scale(1.16) translateY(-5%); filter: brightness(1.12); } 100% { transform: none; filter: none; } }
@keyframes lt-good { 0% { transform: scale(1.08); } 40% { transform: scale(1.3) translateY(-6%); } 100% { transform: none; } }
@keyframes tile-his { 0% { filter: none; } 25% { filter: brightness(1.22) saturate(.4); transform: scale(.94); } 100% { filter: none; transform: none; } }
@keyframes guide { 0%, 100% { transform: none; } 50% { transform: translateY(-4%) scale(1.05); } }
@keyframes breeze { 0% { transform: translate(-70%, -26%) rotate(-16deg) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes fade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes keep { 0% { transform: scale(1); } 45% { transform: scale(1.2) rotate(-2deg); } 100% { transform: scale(1); } }
@keyframes count { 0% { transform: scale(.3); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fl .f-all, .fl .f-shadow, .fl .f-arm, .fl .f-hi, .fl .f-lid, .tile.guide, #clock.hot, #card .go.wait { animation: none !important; }
  .tile.in, .lt.in { animation-duration: .01s; }
  #rev, .rvCol li, .rvCol li.keep { animation: none; }
}

/* ---- a small phone (375 x 667): the end screen tightens so the email box still fits on the one screen ---- */
@media (max-height: 700px) and (max-width: 899px) {
  #end.full { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  #end .side { margin-top: 6px; min-height: 84px; }
  #end #share { height: 52px; margin-top: 10px; font-size: 21px; } #eThumb { width: 38px; height: 38px; }
  #eBtns .go { height: 44px; margin-top: 8px; } #eRank { margin-top: 7px; font-size: 15px; padding: 5px 12px 6px; }
  #eChips { padding-top: 7px; } .eChip { height: 31px; } #eFoot { padding-top: 5px; font-size: 13px; } #eNl { margin-top: 7px; padding: 8px 10px; }
  #eDuel { margin-top: 7px; } .duel { padding: 6px 14px; } .duel span { font-size: 33px; } #eSub { padding-top: 7px; font-size: 16px; }
}
/* ---- a short phone (an iPhone SE with the browser's bars showing): everything a size smaller ---- */
@media (max-height: 640px) and (max-width: 899px) {
  #app { --top: 46px; --sc: 38px; --wd: 44px; --ft: 22px; --stmin: 70px; --tst: 70px; --tcard: 152px; }
  .logo { font-size: 25px; } #clockT { font-size: 20px; } #clock { top: 3px; } #mute { width: 38px; height: 38px; }
  .who { height: 32px; } .who span { font-size: 20px; } #wText { height: 36px; line-height: 36px; font-size: 22px; } #foot { font-size: 13px; }
  #bubble { font-size: 16px; padding: 7px 10px 8px; }
  #rev { padding-top: calc(env(safe-area-inset-top, 0px) + 52px); } #rvSay { font-size: clamp(21px, 6.4vw, 27px); } .rvHead span { font-size: 27px; } .rvHead { padding: 5px 12px; } #rvCols { margin-top: 6px; }
  #card { padding: 12px 16px 12px; } #cBig { font-size: clamp(24px, 7vw, 32px); } #cSmall { font-size: 17px; padding-top: 4px; } .go { height: 50px; margin-top: 10px; font-size: 20px; }
  #title .big { margin-top: 14px; font-size: clamp(60px, 20vw, 84px); } #title h2 { font-size: clamp(24px, 7vw, 30px); } #title p { font-size: 16px; margin-top: 4px; } #tToday { margin-top: 8px; } #play { height: 58px; font-size: 26px; } #tCredit { margin-top: 8px; font-size: 11.5px; } #tFluff { min-height: 80px; } #how { height: 42px; margin-top: 8px; font-size: 17px; }
  #end h2 { font-size: clamp(30px, 9vw, 38px); } .duel span { font-size: 30px; } .duel { padding: 6px 14px; } #eSub { font-size: 15px; padding-top: 7px; } #eBtns .go { height: 44px; } #eChips { padding-top: 7px; } .eChip { height: 30px; font-size: 13.5px; } #eFoot { padding-top: 6px; font-size: 13px; }
}
@media (max-width: 359px) { .who b { font-size: 12px; } .who { padding: 0 10px 0 7px; gap: 5px; } #eBtns .go { font-size: 15px; } }

/* ================= A COMPUTER (from 900 x 560). Below that nothing here applies and the phone layout is exactly as it is. =================
   The meadow fills the window (its own wide picture). THE MIDDLE: the two scores, the word, the board, big. LEFT: the words you
   have found. RIGHT: Fluff, bigger, with the words he ate under him. You can type: letters, then Enter. */
@media (min-width: 900px) and (min-height: 560px) {
  #app { --top: 68px; --sc: 56px; --wd: 70px; --ft: 40px; --gap: 10px; --colw: clamp(210px, 22vw, 330px);
    --b: min(calc(100dvh - var(--top) - var(--sc) - var(--wd) - var(--ft) - 56px), calc(100vw - 2 * var(--colw) - 150px), 640px);
    display: grid; grid-template-columns: minmax(0, 1fr) var(--colw) var(--b) var(--colw) minmax(0, 1fr); column-gap: 34px;
    grid-template-rows: var(--top) minmax(8px, 1fr) var(--sc) var(--wd) calc(var(--b) * .36) calc(var(--b) * .64) var(--ft) minmax(8px, 1.3fr); padding: 0; }
  #sky { background-image: var(--art-wide); background-position: 50% 30%; }
  #soft { background-image: linear-gradient(rgba(20, 54, 16, .12), rgba(20, 54, 16, .22) 55%, rgba(20, 54, 16, .46)), var(--art-wide-soft); background-position: 50% 30%; }
  #top { grid-column: 1 / -1; grid-row: 1; padding: 0 28px; }
  .logo { font-size: 38px; letter-spacing: 2px; }
  #clock { top: 8px; } #clockT { font-size: 28px; }
  #dayTag { display: block; margin-left: auto; margin-right: 14px; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--cream); padding: 6px 14px 7px; border-radius: 99px; }
  #mute { width: 46px; height: 46px; }
  #score { grid-column: 3; grid-row: 3; padding: 0; align-items: center; }
  .who { height: 44px; padding: 0 18px 0 12px; border-radius: 16px; } .who b { font-size: 16px; } .who span { font-size: 28px; } .ico { width: 26px; height: 26px; }
  #word { grid-column: 3; grid-row: 4; align-items: flex-start; } #wText { height: 50px; line-height: 50px; font-size: 30px; padding: 0 26px; border-radius: 25px; max-width: calc(var(--b) - 90px); } #wPts { font-size: 32px; }
  #boardWrap { grid-column: 3; grid-row: 5 / 7; } #board::before { inset: -14px; border-radius: 34px; }
  #foot { grid-column: 3; grid-row: 7; align-items: flex-end; font-size: 16px; gap: 18px; padding-top: 6px; } #fType { display: inline; opacity: .85; }
  #stage { display: contents; }
  #garden { display: none; }
  .list { display: flex; flex-direction: column; position: relative; z-index: 2; box-sizing: border-box; min-height: 0; padding: 14px 16px 16px; border-radius: 24px; background: rgba(24, 62, 18, .5); border: 1.5px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 12px 30px rgba(13, 40, 8, .25); }
  .list h3 { margin: 0 0 8px; font-weight: 700; font-size: 17px; letter-spacing: 1px; color: var(--cream); display: flex; justify-content: space-between; }
  .list h3 span { color: var(--gold-l); }
  .list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow: hidden; min-height: 0; flex: 1 1 auto; }
  .list li { font-weight: 700; font-size: 15px; letter-spacing: .8px; padding: 4px 9px 5px; border-radius: 9px; background: var(--cream); color: var(--ink); animation: pop .3s cubic-bezier(.2, 1.7, .4, 1); }
  .list li i { font-style: normal; font-weight: 600; opacity: .6; margin-left: 5px; }
  .list.his li { background: #fff; box-shadow: inset 0 0 0 2px #e3d6ad; }
  /* a word Fluff has found, as the race shows it: a tuft of wool, the same for every word (which word waits for the reveal) */
  .list.his li.hid { width: 32px; height: 27px; padding: 0; background: rgba(255, 246, 221, .16) var(--tuft) 50% 50% / 20px no-repeat; box-shadow: inset 0 0 0 1.5px var(--line); }
  .list p { flex: none; margin: 8px 0 0; font-weight: 600; font-size: 14px; color: var(--cream); opacity: .85; }
  #mine { grid-column: 2; grid-row: 3 / 7; }
  #his { grid-column: 4; grid-row: 6; }
  #fluffBox { grid-column: 4; grid-row: 2 / 6; height: auto; aspect-ratio: auto; margin: 0; align-self: stretch; z-index: 2; }
  #fluff { inset: auto 0 0 0; height: min(100%, var(--colw)); }
  #bubble { right: auto; left: 2%; bottom: calc(min(100%, var(--colw)) - 16px); font-size: 23px; padding: 11px 16px 12px; border-radius: 20px 20px 20px 5px; transform-origin: 0 100%; }
  #app.s-tut { --bb: min(calc(var(--b) * .6), 330px); } #app.s-tut #boardWrap { flex: none; padding-top: 0; align-items: flex-start; } #app.s-tut #stage { height: auto; } #app.s-tut .list { visibility: hidden; }
  #scrim { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  #card { position: relative; grid-column: 3; grid-row: 6 / 8; left: auto; right: auto; bottom: auto; align-self: end; width: min(var(--b), 520px); justify-self: center; padding: 22px 24px 20px; }
  #cBig { font-size: 40px; } #cSmall { font-size: 22px; }
  #count { font-size: 240px; align-items: center; padding-bottom: 0; padding-top: calc(var(--top) + var(--sc) + var(--wd) - var(--ft)); }
  #rev { padding: 84px 40px 22px; } #rvSay { font-size: 42px; } #rvCols { gap: 28px; margin-top: 18px; }
  .rvHead { padding: 10px 22px; border-radius: 20px; } .rvHead b { font-size: 17px; } .rvHead span { font-size: 44px; }
  .rvCol ol { gap: 8px; margin-top: 8px; } .rvCol li { font-size: 18px; padding: 8px 12px 9px; border-radius: 11px; }
  #rev.many .rvCol li { font-size: 16px; padding: 7px 10px 8px; } #rev.many .rvCol li i { display: inline; }
  #rvFluff { width: clamp(110px, 21dvh, 190px); } #rvSkip { height: 42px; padding: 0 20px; font-size: 17px; bottom: 10px; }
  #rev.lesson { padding-top: calc(var(--top) + 60px); padding-bottom: 0; } #rev.lesson #rvCols { max-width: 520px; } #rev.lesson .rvCol li { font-size: 24px; padding: 10px 15px 11px; }
  .full { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 480px) minmax(0, .3fr); column-gap: 40px; grid-auto-rows: auto; align-content: center; justify-items: center; padding: 30px 40px;
    background-image: linear-gradient(90deg, rgba(31, 67, 21, 0) 34%, rgba(31, 67, 21, .7) 58%, rgba(31, 67, 21, .9) 100%), var(--art-wide); background-position: 30% 40%; }
  .side { display: flex; grid-column: 1; grid-row: 1 / span 12; align-self: stretch; justify-self: stretch; align-items: flex-end; justify-content: center; position: relative; min-height: 0; }
  #tFluff, #eFluff { flex: none; width: 100%; max-width: none; height: min(78dvh, 620px); max-height: none; }
  #tFluff > .fl, #eFluff > .fl { max-height: none; }
  #title > :not(.side), #end > :not(.side) { grid-column: 2; }
  #title .big { font-size: 132px; margin-top: 0; } .pill { font-size: 20px; padding: 7px 20px 8px; }
  #title h2 { font-size: 42px; margin-top: 18px; } #title p { font-size: 22px; } #tToday { margin-top: 18px; font-size: 16px; }
  #title .go, #end .go { max-width: 440px; } #play { height: 74px; font-size: 32px; margin-top: 22px; }
  #tType { display: block; margin-top: 16px; font-weight: 600; font-size: 16px; color: var(--cream); } #tCredit { font-size: 13.5px; }
  #eSay { position: absolute; left: auto; top: 3%; right: 0; max-width: 250px; font-size: 22px; padding: 12px 18px 13px; border-radius: 22px 22px 22px 6px; }
  #eKick { font-size: 15px; } #end h2 { font-size: 62px; } .duel span { font-size: 50px; } .duel { padding: 12px 22px; } #eDuel { max-width: 440px; margin-top: 16px; gap: 14px; }
  #eSub { font-size: 20px; padding-top: 14px; } #eBtns { max-width: 440px; } #eBtns .go { height: 54px; font-size: 18px; } .eChip { height: 38px; font-size: 16px; } #eFoot { font-size: 15px; } #eNl { max-width: 440px; }
  #share { margin-top: 20px; }
  #eMore { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; max-height: min(640px, 86dvh); transform: translate(-50%, -50%); animation: none; padding: 16px 20px 20px; }
  .go:hover, .eChip:hover, #mute:hover { filter: brightness(1.06); }
}
/* a short computer window: the side panels narrow, the card tucks in */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 700px) {
  #app { --top: 58px; --sc: 48px; --wd: 60px; --ft: 30px; }
  .logo { font-size: 32px; } #clock { top: 5px; } #clockT { font-size: 24px; } #wText { height: 44px; line-height: 44px; font-size: 26px; }
  #title .big { font-size: 104px; } #title h2 { font-size: 34px; margin-top: 10px; } #play { height: 64px; margin-top: 16px; } #end h2 { font-size: 48px; } .duel span { font-size: 40px; } #share { margin-top: 14px; }
  #cBig { font-size: 34px; } #cSmall { font-size: 19px; } #card { padding: 16px 20px 14px; }
}
