/* tweet.css: Home Tweet Home, the daily word-stacking game (thelaglobe.com/tweet).

   Layout: one fixed screen, nothing scrolls. Phone: the sky and the tower on top, the letters and one big button
   under the thumb. Computer: the tower fills the left, the letters and the score sit in a panel on the right.
   One look on purpose (the clay island at sunset, blue clay blocks, one yellow, one coral bird), so there is no
   dark version. The scene itself is drawn in tweet.js; this file is the screen around it.

   Type: Lilita One for the game's own big letters (SIL Open Font License, served from /fonts with its licence,
   fonts/OFL-lilitaone.txt), and the paper's own Inter for everything else (fonts.css). Nothing is asked of Google. */
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lilita-one-v17-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --sky-1: #a9c3ff; --sky-2: #cfd8ff; --sky-3: #ece4ff; --sky-4: #ffe6d6;
  --ink: #232a66; --ink-soft: #5a6199; --paper: #fff6e6; --line: #eedfc4;
  --light: #ffffff; --light-lip: #b3bfea;
  --mid: #a9bcff; --mid-lip: #6880d8;
  --heavy: #2c3680; --heavy-lip: #121742;
  --sun: #ffc83a; --sun-lip: #d39200; --sun-ink: #3d2a00;
  --bad: #d93a4a; --ground: #3b4692; --deck-ink: var(--ink); --deck-soft: var(--ink-soft);
  /* v4 clay: cream pieces pressed out of clay, lit from above */
  --cream: #fff6e6; --cream-deep: #f6e7cc;
  --clay-up: inset 0 2px 1px rgba(255, 255, 255, .9), inset 0 -4px 7px rgba(170, 128, 84, .22), 0 4px 9px rgba(90, 60, 110, .2);
  --clay-sun: inset 0 3px 3px rgba(255, 250, 215, .85), inset 0 -6px 10px rgba(205, 120, 0, .38), 0 5px 11px rgba(160, 96, 10, .28);
  --display: 'Lilita One', ui-rounded, 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gut-l: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
html, body { height: 100%; }
[hidden] { display: none !important; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow: hidden; position: fixed; inset: 0; background: linear-gradient(180deg, #8fa9f0 0%, #cfaee6 45%, #ffc9b0 62%, #8fe0da 63%, #3fc2c4 100%) fixed; color: var(--ink);
  font-family: var(--text); font-weight: 800; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; padding: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

#app { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "stage" "deck"; }

/* ---- the top line: the 8 hands, the stars and the score ---- */
#top { grid-area: top; display: flex; align-items: center; gap: 10px; padding-block: 10px 4px; padding-left: var(--gut-l); padding-right: var(--gut-r); position: relative; z-index: 3; }
.logo { font-family: var(--display); font-size: 19px; letter-spacing: .6px; line-height: 1; white-space: nowrap; display: none; }
#app.s-tut .logo { display: block; }
#pips { display: flex; gap: 4px; margin-right: auto; }
.pip { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 250, 240, .75); box-shadow: inset 0 1px 2px rgba(35, 42, 102, .22); }
.pip.done { background: var(--ink); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .3); }
.pip.now { background: var(--sun); box-shadow: inset 0 -2px 3px rgba(200, 120, 0, .5), inset 0 1px 1px rgba(255, 255, 230, .9), 0 0 0 3px rgba(255, 214, 90, .45); }
.pip.gone { background: none; box-shadow: inset 0 0 0 2px var(--bad); }
.pip.skip { background: none; box-shadow: inset 0 0 0 2px rgba(35, 42, 102, .35); }
#tally { display: flex; align-items: center; gap: 8px; }
#tStars { display: flex; align-items: center; gap: 3px; font-family: var(--display); font-size: 19px; line-height: 1; padding: 6px 9px 6px 7px; background: var(--cream); border-radius: 99px; box-shadow: var(--clay-up); font-variant-numeric: tabular-nums; }
#tStars svg { width: 19px; height: 19px; fill: var(--sun); stroke: var(--sun-lip); stroke-width: 1.4; }
#tStars small { font: 800 12px/1 var(--text); color: var(--ink-soft); }
#tStars.bump svg { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
#score { min-width: 44px; text-align: center; font-family: var(--display); font-size: 21px; line-height: 1; padding: 6px 10px; background: var(--cream); border-radius: 99px; box-shadow: var(--clay-up); font-variant-numeric: tabular-nums; }
#mute { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); box-shadow: var(--clay-up); display: grid; place-items: center; }
#mute svg { width: 19px; height: 19px; }
#mute.off .wave { display: none; }
#music { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); box-shadow: var(--clay-up); display: grid; place-items: center; }
#music svg { width: 19px; height: 19px; }
#music.off { color: var(--ink-soft); }
#music.off svg { opacity: .55; }
#music:not(.off) { background: var(--sun); box-shadow: var(--clay-sun); color: var(--sun-ink); }
#mute:not(.off) .cross { display: none; }
#skip { margin-left: auto; font-size: 15px; padding: 8px 15px; border-radius: 99px; background: var(--paper); box-shadow: var(--clay-up); white-space: nowrap; }

/* ---- the sky, where the tower is drawn ---- */
#stage { grid-column: 1; grid-row: 1 / 3; position: relative; min-height: 0; }   /* the sky runs up behind the top line */
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#card { position: absolute; z-index: 4; top: 60px; left: var(--gut-l); right: var(--gut-r); margin-inline: auto; max-width: 430px; background: var(--paper); border-radius: 24px; padding: 16px 18px 18px;
  text-align: center; box-shadow: inset 0 3px 2px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(170, 128, 84, .2), 0 12px 28px rgba(70, 44, 100, .24); animation: cardIn .26s cubic-bezier(.2, 1.3, .4, 1); }
#cBig { font-family: var(--display); font-size: clamp(27px, 7.6vw, 36px); line-height: 1.08; text-wrap: balance; }
#cSmall { font-size: clamp(17px, 4.6vw, 20px); color: var(--ink-soft); margin-top: 5px; min-height: 1.2em; text-wrap: balance; }
#cSmall:empty { display: none; }
#cBtn { margin: 12px auto 0; min-width: 160px; }

/* ---- the letters and the buttons: they sit in the ground on a phone ---- */
#deckBg { grid-area: deck; background: var(--cream); border-radius: 28px 28px 0 0; box-shadow: 0 -5px 16px rgba(60, 40, 90, .16), inset 0 3px 2px rgba(255, 255, 255, .9); position: relative; z-index: 1; }
#deck { grid-area: deck; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding-block: 6px 14px; padding-left: var(--gut-l); padding-right: var(--gut-r); width: 100%; max-width: 520px; margin-inline: auto; box-sizing: border-box; color: var(--deck-ink); }
#status { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 26px; font-size: 16px; line-height: 1.15; text-align: center; }
#sText b { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .4px; }
#sText .eq { color: var(--deck-soft); }
#sText.soft { color: var(--deck-soft); }
#sText em { font-style: normal; color: #c06f00; }
#skipHand { font-size: 13px; color: var(--deck-soft); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; white-space: nowrap; }
#rack { display: flex; justify-content: center; gap: 6px; min-height: 50px; }
.tile { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1; max-width: 50px; border-radius: 13px; font-family: var(--display); font-size: clamp(26px, 7.8vw, 33px); line-height: 1; display: grid; place-items: center; padding-bottom: 4px; box-sizing: border-box;
  background: var(--clay1) center / 100% 100% no-repeat; color: #fff; text-shadow: var(--lx, 0) 2px 0 rgba(10, 40, 100, .32); filter: drop-shadow(calc(var(--lx, 0) * 1.2) 3px 3px rgba(60, 50, 110, .28)); transition: transform .08s, opacity .12s; text-transform: uppercase; }
.tile.w2 { background-image: var(--clay2); }
.tile.w4 { background-image: var(--clay4); text-shadow: var(--lx, 0) 2px 0 rgba(0, 0, 20, .45); }
.tile i { position: absolute; right: 6px; bottom: 7px; font: 900 10px/1 var(--text); font-style: normal; color: rgba(255, 255, 255, .8); text-shadow: none; }
.tile:active { transform: translateY(3px); }
.tile.used { opacity: .22; transform: translateY(4px); filter: none; }
.tile.deal { animation: deal .28s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.tile.hint { animation: hint 1s ease-in-out infinite; }
#btns { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 10px; }
.btn { height: 54px; border-radius: 99px; background: var(--cream); color: var(--ink); box-shadow: var(--clay-up); display: grid; place-items: center; font-family: var(--display); font-size: 22px; letter-spacing: .6px; transition: transform .08s, box-shadow .08s, background .12s; }
.btn svg { width: 24px; height: 24px; }
.btn:active:not(:disabled) { transform: translateY(2px) scale(.98); }
.btn.go { background: #ffc931; color: var(--ink); box-shadow: var(--clay-sun); padding-inline: 22px; font-size: 25px; }
.btn.go:active:not(:disabled) { box-shadow: var(--clay-sun); }
.btn.go:disabled { background: #f6dc9c; color: rgba(35, 42, 102, .5); box-shadow: inset 0 2px 2px rgba(255, 252, 235, .8), inset 0 -4px 8px rgba(190, 140, 60, .22), 0 3px 7px rgba(120, 90, 40, .14); cursor: default; }
.btn.go.ready { animation: ready .34s cubic-bezier(.2, 1.6, .4, 1); }
.btn.go.wait { animation: nudge 1.3s ease-in-out infinite; }
.btn:disabled:not(.go) { color: rgba(35, 42, 102, .35); cursor: default; }
.btn.quiet { display: flex; align-items: center; justify-content: center; font-family: var(--text); font-weight: 900; font-size: 16px; letter-spacing: 0; }
.btn small { font: 800 12px/1 var(--text); opacity: .7; margin-left: 5px; }

/* ---- the side panel: only on a computer ---- */
#side { grid-area: side; display: none; }

/* ---- the title ---- */
.full { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding-left: var(--gut-l); padding-right: var(--gut-r); }
#title { background: linear-gradient(180deg, #8daeed 0%, #c4b3ea 42%, #f4b8c8 78%, #ffd2ae 100%); text-align: center; }
.tWrap { display: grid; justify-items: center; gap: 12px; width: 100%; max-width: 440px; }
.tag { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); }
#tArt { width: min(560px, 94vw, 58vh); aspect-ratio: 35 / 32; display: block; max-width: 100%; }
#title h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 7.6vw, 34px); line-height: 1.12; text-wrap: balance; }
#title h1 span { display: block; color: var(--ink-soft); }
#tDay { font-size: 15px; color: var(--ink-soft); }
#play { width: min(280px, 100%); height: 62px; font-size: 28px; }
#how { width: min(280px, 100%); height: 46px; }
#tCredit { font-size: 12px; line-height: 1.4; color: var(--ink-soft); max-width: 300px; font-weight: 700; }

/* ---- the end ---- */
#end { background: rgba(70, 44, 100, .34); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .25s both; }
.sheet { width: 100%; max-width: 400px; box-sizing: border-box; background: var(--paper); border-radius: 28px; padding: 18px 20px 16px; text-align: center; display: grid; gap: 8px; justify-items: center;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(170, 128, 84, .2), 0 16px 40px rgba(70, 44, 100, .3); animation: cardIn .3s cubic-bezier(.2, 1.3, .4, 1) both; }
#eKick { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); }
#eHead { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; }
#eSub { font-size: 16px; color: var(--ink-soft); margin-top: -2px; text-wrap: balance; }
#eStars { display: flex; gap: 3px; }
#eStars svg { width: 30px; height: 30px; fill: #eadcc0; }
#eStars svg.on { fill: var(--sun); stroke: var(--sun-lip); stroke-width: 1.2; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
#eScore { font-family: var(--display); font-size: 58px; line-height: .95; font-variant-numeric: tabular-nums; }
#eScore small { display: block; font: 800 13px/1.3 var(--text); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); }
#eLines { width: 100%; margin: 0; display: grid; gap: 0; font-size: 15px; border-top: 2px solid var(--line); }
#eLines div { display: flex; justify-content: space-between; padding: 5px 2px; border-bottom: 2px solid var(--line); }
#eLines dt { color: var(--ink-soft); } #eLines dd { margin: 0; font-variant-numeric: tabular-nums; }
#eLines .lost dd { color: var(--bad); }
#eRow { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
#eTower { flex: none; width: 150px; height: 168px; display: block; max-width: 100%; }
#eBest { font-size: 14px; line-height: 1.35; color: var(--ink-soft); text-align: left; max-width: 160px; }
#eBest b { color: var(--ink); }
#share { width: 100%; }
#again { width: 100%; height: 46px; background: var(--cream-deep); }
#eFoot { margin: 0; font-size: 13px; color: var(--ink-soft); }
#shareText { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* ---- the end card's site parts (2026-12-03): your place today, the day's board, the way back, the email box ---- */
#end { overflow-y: auto; overscroll-behavior: contain; align-content: safe center; padding-block: 14px; }
.sheet { margin-block: auto; }
#share { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; }
#share span { white-space: nowrap; }
#share img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 3px rgba(60, 40, 90, .3); }
#share svg { width: 22px; height: 22px; flex: none; }
#eBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
#eBtns .btn { height: 46px; font-size: 15px; }
#eGames { text-decoration: none; background: var(--cream-deep); }
#again { width: auto; }
#eRank { font-size: 15px; color: var(--ink); background: #fff1c9; border-radius: 99px; padding: 6px 14px; }
#eChips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.eChip { font: 800 14px/1 var(--text); color: var(--ink); padding: 9px 14px; border-radius: 99px; background: var(--cream-deep); }
#eNl:empty { display: none; }
#eNl { width: 100%; text-align: left; }
#eMore { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding-left: var(--gut-l); padding-right: var(--gut-r); background: rgba(70, 44, 100, .38); }
#eMore[hidden] { display: none; }
#eMore .mBox { width: 100%; max-width: 380px; max-height: calc(100% - 40px); overflow-y: auto; box-sizing: border-box; background: var(--paper); border-radius: 24px; padding: 16px 18px 18px; box-shadow: 0 16px 40px rgba(70, 44, 100, .3); }
.mHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mHead b { font-family: var(--display); font-weight: 400; font-size: 26px; }
#mClose { width: 36px; height: 36px; border-radius: 50%; background: var(--cream-deep); font-size: 24px; line-height: 1; }
#bCount, #bNote, #bYou { font-size: 14px; color: var(--ink-soft); margin: 6px 0; }
#bRows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
#bRows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 15px; }
#bRows li:nth-child(odd) { background: rgba(238, 223, 196, .45); }
#bRows li.you { background: #fff1c9; }
#bRows .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bRows .pt { font-family: var(--display); font-weight: 400; font-size: 18px; font-variant-numeric: tabular-nums; }
#bJoin { display: flex; gap: 8px; margin-top: 10px; }
#bName { flex: 1; min-width: 0; font: 700 16px/1 var(--text); padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
#bAdd { font: 800 15px/1 var(--text); padding: 0 14px; border-radius: 12px; background: var(--sun); box-shadow: var(--clay-sun); }
#tToday { font-size: 15px; color: var(--ink); min-height: 1.2em; }
#tToday:empty { display: none; }
#tLevel { display: inline-block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--cream); box-shadow: var(--clay-up); margin-left: 6px; vertical-align: 1px; }
#tCredit a { color: inherit; }

@keyframes pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes cardIn { 0% { transform: translateY(12px) scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes deal { 0% { transform: translateY(22px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes hint { 0%, 100% { transform: none; } 50% { transform: translateY(-7px); box-shadow: 0 5px 0 var(--sun-lip), 0 0 0 4px var(--sun); } }
@keyframes ready { 0% { transform: scale(.94); } 100% { transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.045); } }

/* in the lesson nothing shows that has not been taught yet */
#app.s-tut #pips, #app.s-tut #tally { display: none; }
#app.s-tut #skipHand, #app.s-tut #shuffle, #app.goal #deck > * { visibility: hidden; }
#app.s-title #top, #app.s-title #deck, #app.s-title #deckBg, #app.s-title::before, #app.s-title #stage, #app.s-title #side { visibility: hidden; }

/* a short phone: tighten the deck so the tower keeps its room */
@media (max-height: 640px) {
  #top { padding-block: 6px 2px; } #deck { gap: 6px; padding-bottom: 8px; } .btn { height: 46px; } .tile { max-width: 44px; }
  .tWrap { gap: 8px; } #tArt { width: min(250px, 70vw); } #play { height: 52px; }
  .sheet { padding: 12px 18px; gap: 5px; } #eTower { height: 116px; width: 110px; } #eScore { font-size: 46px; } #eStars svg { width: 26px; height: 26px; } #eHead { font-size: 29px; }
}

/* ---- a computer: the tower on the left, a panel on the right ---- */
@media (min-width: 900px) and (min-height: 520px) {
  :root { --deck-ink: var(--ink); --deck-soft: var(--ink-soft); }
  #app { grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "stage top" "stage deck" "stage side"; }
  #app::before { content: ""; grid-column: 2; grid-row: 1 / -1; background: var(--cream); border-radius: 30px 0 0 30px; box-shadow: -6px 0 18px rgba(60, 40, 90, .16), inset 3px 0 2px rgba(255, 255, 255, .9); }
  #deckBg { display: none; }
  .logo { display: block; }


  #top, #deck, #side { position: relative; padding-left: 34px; padding-right: max(34px, env(safe-area-inset-right, 0px)); }
  #top { padding-top: 30px; padding-bottom: 6px; flex-wrap: wrap; row-gap: 18px; }
  .logo { font-size: 30px; flex: 1 0 60%; }
  #stage { grid-column: 1; grid-row: 1 / -1; }
  #pips { gap: 6px; } .pip { width: 16px; height: 16px; }
  #tStars { font-size: 23px; } #tStars svg { width: 24px; height: 24px; } #score { font-size: 26px; }
  #mute { position: absolute; right: 34px; top: 26px; }
  #music { position: absolute; right: 80px; top: 26px; }
  #eRow { flex-direction: column; gap: 6px; } #eTower { width: 100%; height: 270px; } #eBest { max-width: none; text-align: center; }
  #app.s-tut #skip { position: absolute; right: 128px; top: 28px; }
  #deck { max-width: none; gap: 16px; padding-top: 26px; padding-bottom: 8px; }
  #status { min-height: 34px; font-size: 18px; justify-content: flex-start; text-align: left; } #sText b { font-size: 24px; } #sText em { color: #b87800; } #skipHand { margin-left: auto; font-size: 14px; }
  #rack { gap: 8px; justify-content: flex-start; min-height: 60px; } .tile { max-width: 56px; font-size: 36px; border-radius: 15px; } .tile i { font-size: 11px; right: 7px; bottom: 8px; }
  #btns { grid-template-columns: 58px minmax(0, 1fr) 58px; } .btn { height: 58px; }
  #side { display: grid; align-content: start; gap: 16px; padding-top: 18px; padding-bottom: 26px; min-height: 0; overflow: hidden; font-size: 15px; }
  #side h3 { margin: 0 0 7px; font: 900 12px/1 var(--text); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
  #keys { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0; font-weight: 700; }
  #keys kbd { font: 900 12px/1 var(--text); background: #fff; border-radius: 6px; padding: 3px 6px; box-shadow: 0 2px 0 rgba(35, 42, 102, .2); color: var(--ink); }
  #legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; line-height: 1.3; }
  #legend li { display: flex; align-items: center; gap: 10px; }
  #legend .chip { flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding-bottom: 3px; box-sizing: border-box; font: 400 18px/1 var(--display); color: #fff; background: var(--clay1) center / 100% 100% no-repeat; text-shadow: var(--lx, 0) 1px 0 rgba(10, 40, 100, .3); }
  #legend .chip.w2 { background-image: var(--clay2); } #legend .chip.w4 { background-image: var(--clay4); }
  #legend .chip.st { background: none; padding: 0; } #legend .chip.st svg { width: 28px; height: 28px; fill: var(--sun); stroke: var(--sun-lip); stroke-width: 1.3; }
  #legend span { color: var(--ink-soft); font-weight: 700; } #legend b { color: var(--ink); }
  #mine { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-variant-numeric: tabular-nums; }
  #mine li { display: flex; justify-content: space-between; gap: 8px; font-family: var(--display); font-size: 17px; letter-spacing: .4px; }
  #mine li span { font: 800 14px/1.5 var(--text); color: var(--ink-soft); } #mine li.gone { color: var(--bad); text-decoration: line-through; } #mine li.gone span { color: var(--bad); text-decoration: none; }
  #mine:empty::before { content: "Your words will stack up here."; grid-column: 1 / -1; color: var(--ink-soft); font: 700 14px/1.4 var(--text); }
  #card { top: 26px; max-width: 480px; } #cBig { font-size: 38px; } #cSmall { font-size: 21px; }
  #app.s-tut #side { visibility: hidden; }
  /* the end takes the panel, so the tower stays in view */
  #end { position: relative; inset: auto; grid-column: 2; grid-row: 1 / -1; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 18px 34px; min-height: 0; }
  #eMore { grid-column: 1 / -1; grid-row: 1 / -1; position: absolute; }
  .sheet { box-shadow: none; background: none; padding: 0; max-width: 360px; gap: 12px; animation-name: fade; }
  #eHead { font-size: 42px; } #eScore { font-size: 76px; } #eStars svg { width: 38px; height: 38px; }
  #title .tWrap { gap: 14px; max-width: 640px; } #tArt { width: min(600px, 60vh); } #title h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; } }
