/* Kuru's classroom wall: the day screen (desk.js), the first run (welcome.js), sign-in, About (about.js) and the Chrome
   side panel. Loaded after learn.css. Everything is paper: flat colour with grain and fibres, hand-cut corners, a tight
   contact shadow and a soft one. Paper pieces move on twos (12 updates a second); buttons keep their smooth press.
   The side panel is about 400 px wide and any height: .ds, .wl, .si and .ab always fill it, and whatever is left over
   goes to something that can grow (the diary's ruled page, the picture of the question, the hills). */

.learn {
  --ds-cut: 22px 26px 21px 25px / 25px 21px 26px 22px;
  --ds-cut-sm: 12px 14px 11px 13px / 13px 11px 14px 12px;
  --ds-kraft: url(/assets/art/textures/kraft-tile.webp);
  --ds-kraft-ink: #57391A;
  --ds-chalk: #FFF9EA;
  --ds-chalk-sun: #FFE7A0;
  --ds-slate: #2A5F50;
  --ds-rule: #D3E0F6;
  --ds-margin: #F0908A;
  --ds-sh: 0 1px 1.5px rgba(90, 42, 0, .30), 0 12px 22px -14px rgba(90, 42, 0, .50);
  --ds-sh-sm: 0 1px 1px rgba(90, 42, 0, .26), 0 5px 9px -6px rgba(90, 42, 0, .40);
  --ds-light: inset 0 1px 0 rgba(255, 255, 255, .70), inset 0 -1px 0 rgba(90, 42, 0, .06);
}

/* learn.css's arch: 999px radii were scaled down with the bottom ones, so the bottom corners came out square */
.lx-stage { border-radius: 50% 50% 13% 13% / 40% 40% 10.4% 10.4%; }
.lx-stage--sm { border-radius: 50% 50% 16% 16% / 40% 40% 12.8% 12.8%; }
.lx-me svg { flex: none; }
.lx-lang button { position: relative; }
.lx-lang button::after { content: ""; position: absolute; inset: -3px 0; } /* a 44 px target */
.lx-answer__h:has(+ .lx-pad) { max-width: 420px; margin-inline: auto; }
/* the picture of a question sits on squared exercise paper, so any room around it is the page, not a gap */
.lx-visual { background-color: var(--lx-white); background-image: linear-gradient(#EDF3FC 1px, transparent 1px), linear-gradient(90deg, #EDF3FC 1px, transparent 1px); background-size: 18px 18px; background-position: -1px -1px; }

.ds-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ds { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 640px; margin: 0 auto; padding: 14px var(--lx-g) 30px; overflow-x: clip; }
.ds-out { width: 18px; height: 18px; flex: none; }

/* ---------- the chalkboard: Kuru the teacher, the hello, today's tally */
.ds-board { position: relative; margin-top: 10px; }
.ds-board__frame { position: relative; padding: 8px; border-radius: 15px 17px 14px 16px / 16px 14px 17px 15px; background: #C99C62 var(--ds-kraft) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(70, 35, 0, .3), 0 1px 1.5px rgba(70, 35, 0, .4), 0 16px 26px -16px rgba(70, 35, 0, .6); }
.ds-board__slate { position: relative; display: grid; align-content: center; min-height: 138px; padding: 12px 128px 12px 16px; border-radius: 8px; background: var(--ds-slate) url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--ds-chalk);
  box-shadow: inset 0 2px 7px rgba(0, 25, 18, .55), inset 0 0 0 1px rgba(0, 25, 18, .28); overflow: hidden; }
/* chalk dust: an old sum, wiped */
.ds-sum { position: absolute; right: 34px; top: 4px; font: 700 21px/1 var(--font-display); color: rgba(255, 255, 255, .09); rotate: -5deg; white-space: nowrap; pointer-events: none; }
.ds-board__slate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 46% at 72% 10%, rgba(255, 255, 255, .09), transparent 70%), radial-gradient(40% 60% at 12% 100%, rgba(255, 255, 255, .07), transparent 70%); }
.ds-board__hi { position: relative; z-index: 1; font: 800 25px/1.12 var(--font-display); letter-spacing: -.005em; color: var(--ds-chalk-sun); text-wrap: balance; }
.ds-board__line { position: relative; z-index: 1; margin-top: 3px; font: 600 17px/1.3 var(--font-display); color: var(--ds-chalk); text-wrap: pretty; }
.ds-board__count { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 700 18px/1 var(--font-display); color: var(--ds-chalk); }
.ds-board__count b { font-size: 25px; font-weight: 800; color: var(--ds-chalk-sun); }
.ds-tally { width: 118px; height: 28px; flex: none; overflow: visible; -webkit-mask: url(/assets/art/ui-r3/ink-tile.webp) 0 0 / 150px 150px; mask: url(/assets/art/ui-r3/ink-tile.webp) 0 0 / 150px 150px; }
.ds-tally path { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3.4; stroke-linecap: round; }
.ds-tally path.is-on { stroke: var(--ds-chalk); }
.ds-tally path.is-new { animation: ds-chalk .34s steps(1, end) calc(.5s + var(--i) * .17s) both; }
@keyframes ds-chalk { 0% { opacity: .2; } 33% { opacity: .6; } 66%, 100% { opacity: 1; } }
/* the ledge, with two stubs of chalk on it */
.ds-board__ledge { position: absolute; left: 22px; right: 22px; bottom: -3px; height: 9px; border-radius: 3px 3px 5px 5px; background: #A97B43 var(--ds-kraft) 0 0 / 512px 512px; background-blend-mode: multiply; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 5px -2px rgba(70, 35, 0, .55); }
.ds-board__ledge i { position: absolute; bottom: 8px; left: 16px; width: 24px; height: 7px; border-radius: 2px 3px 3px 2px; background: var(--ds-chalk); box-shadow: 0 1px 1px rgba(0, 0, 0, .35); rotate: -2deg; }
.ds-board__ledge i + i { left: 48px; width: 15px; background: #FFC9C2; rotate: 3deg; }
/* Kuru stands in front of the board; his clip frame has wide clear margins, so it may run off the edge */
.ds-board__kuru { position: absolute; right: 6px; bottom: -6px; width: 124px; height: 148px; cursor: pointer; }
.ds-board__kuru .kuru { top: auto; }

/* ---------- the stamp card: today's 10 */
.ds-card { position: relative; padding: 13px 14px 17px; border-radius: var(--ds-cut); background: var(--kraft) var(--ds-kraft) 0 0 / 512px 512px; color: var(--ink); box-shadow: var(--ds-light), var(--ds-sh); }
.ds-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-card__h { font-size: 27px; line-height: 1.1; }
.ds-card__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 8px; font: 700 15.5px/1.3 var(--font-body); color: var(--ds-kraft-ink); }
.ds-chip { position: relative; display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 6px 0 0; border: 0; border-radius: var(--pill); background: var(--sky); color: var(--blue-deep); box-shadow: 0 2px 0 rgba(26, 53, 160, .28); }
.ds-chip svg { width: 15px; height: 15px; flex: none; }
.ds-chip .lx-chip-std { min-height: 30px; padding: 0 2px 0 11px; background: none; font-size: 14.5px; white-space: nowrap; }
.ds-chip::after { content: ""; position: absolute; inset: -7px 0; } /* a 44 px target */
.ds-chip:active { translate: 0 1px; box-shadow: 0 1px 0 rgba(26, 53, 160, .28); }
.ds-card__stamps { position: relative; container-type: inline-size; padding: 9px; border-radius: 12px 14px 11px 13px; background: #FFF7E7 url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; box-shadow: inset 0 0 0 1.5px rgba(87, 57, 26, .26), inset 0 2px 5px -2px rgba(87, 57, 26, .3); }
.ds-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 7px; }
.ds-slot { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .92; border-radius: 5px; background: rgba(233, 200, 147, .28); outline: 1.5px dashed rgba(87, 57, 26, .42); outline-offset: -1px; }
.ds-slot__n { position: absolute; left: 5px; top: 4px; font: 800 13px/1 var(--font-display); color: var(--ds-kraft-ink); }
.ds-slot .lx-sign { width: auto; height: auto; margin-top: 9px; background: none; border-radius: 0; font-size: clamp(17px, 5.4cqw, 26px); color: rgba(87, 57, 26, .72); box-shadow: none; }
.ds-slot .lx-sign svg { width: clamp(22px, 6.5cqw, 30px); height: clamp(22px, 6.5cqw, 30px); }
.ds-slot.is-now { background: var(--card); outline: 2.5px solid var(--blue); outline-offset: -1px; box-shadow: 0 0 0 4px rgba(35, 70, 198, .14); animation: ds-now 1.6s steps(1, end) infinite; }
.ds-slot.is-now .ds-slot__n { color: var(--blue); }
.ds-slot.is-now .lx-sign { color: var(--blue); }
@keyframes ds-now { 0%, 100% { rotate: 0deg; } 12.5% { rotate: -1.4deg; } 25% { rotate: .8deg; } 37.5% { rotate: 0deg; } }
/* a stamp: perforated, with the paper's white border, the topic's sign, and stars or a leaf */
.ds-slot.is-done { background: none; outline: 0; }
.ds-slot.is-done::before { content: ""; position: absolute; inset: 1px; rotate: var(--turn, 0deg); box-shadow: 0 1px 1.5px rgba(90, 42, 0, .4), 0 5px 7px -3px rgba(90, 42, 0, .45); }
.ds-stamp { --r: 2.3px; position: absolute; inset: -1px; display: grid; justify-items: center; align-content: center; gap: 1px; background: #FFFDF8; rotate: var(--turn, 0deg); color: var(--pic-ink);
  -webkit-mask: radial-gradient(var(--r), #0000 96%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask: radial-gradient(var(--r), #0000 96%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.ds-stamp::before { content: ""; position: absolute; inset: 4.5px; border-radius: 1px; background: var(--pic); box-shadow: inset 0 0 0 1px rgba(30, 42, 90, .14); }
.ds-stamp--gold { --pic: linear-gradient(#FFE596, #FFC93A); --pic-ink: #5A3A06; }
.ds-stamp--star { --pic: linear-gradient(#DCE9FF, #B9D4FF); --pic-ink: var(--blue-deep); }
.ds-stamp--leaf { --pic: linear-gradient(#DCF5E5, #B5E6C8); --pic-ink: #1F6B3A; }
.ds-stamp .lx-sign { position: relative; width: auto; height: auto; margin: 0; background: none; border-radius: 0; font-size: clamp(16px, 5.2cqw, 26px); color: inherit; }
.ds-stamp .lx-sign svg { width: clamp(20px, 6cqw, 30px); height: clamp(20px, 6cqw, 30px); }
.ds-stamp__marks { position: relative; display: flex; gap: 0; }
.ds-stamp__marks svg { width: clamp(11px, 3.3cqw, 17px); height: clamp(11px, 3.3cqw, 17px); fill: currentColor; }
.ds-pm { position: absolute; right: -7px; bottom: -6px; width: clamp(36px, 10.6cqw, 56px); height: clamp(25px, 7.3cqw, 38px); color: rgba(30, 42, 90, .44); rotate: -14deg; overflow: visible; pointer-events: none; font-family: var(--font-body); }
.ds-slot:nth-child(even) .ds-pm { right: auto; left: -7px; bottom: auto; top: -4px; rotate: 11deg; }
.ds-slot.is-new .ds-stamp { animation: ds-land 500ms steps(1, end) calc(.25s + var(--i) * .17s) both; }
.ds-slot.is-new::before, .ds-slot.is-new .ds-pm { animation: ds-after 1ms linear calc(.6s + var(--i) * .17s) both; }
@keyframes ds-land {
  0% { opacity: 0; transform: translateY(-18px) scale(1.7) rotate(8deg); }
  16.67% { opacity: 1; transform: translateY(-8px) scale(1.34) rotate(4deg); }
  33.33% { transform: scale(.92) rotate(-1deg); }
  50% { transform: scale(1.05); }
  66.67% { transform: scale(.98); }
  83.33%, 100% { opacity: 1; transform: none; }
}
@keyframes ds-after { from { opacity: 0; } to { opacity: 1; } }
.ds-card__go { display: grid; gap: 10px; margin-top: 13px; justify-items: stretch; }
.ds-card__go .lx-key { width: 100%; min-height: 56px; }
.ds-card__go .lx-link { justify-self: center; color: var(--blue-deep); }
.ds-card .tag--sample { flex: none; }
/* all ten: a rubber stamp across the card, in ink */
.ds-rubber { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg; padding: .13em .5em .17em; border: 4px solid currentColor; border-radius: .22em; background: rgba(255, 253, 248, .84); font-size: 34px; line-height: 1; color: #17663A; white-space: nowrap; pointer-events: none;
  -webkit-mask: url(/assets/art/ui-r3/ink-tile.webp) 0 0 / 210px 210px; mask: url(/assets/art/ui-r3/ink-tile.webp) 0 0 / 210px 210px; }
.ds-rubber b { font: 800 1em/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- stars and streak: two paper tickets */
.ds-stats { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; }
.ds-stat { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; align-content: center; min-height: 72px; padding: 8px 10px; border-radius: var(--ds-cut-sm); background: var(--c) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; box-shadow: var(--ds-light), var(--ds-sh-sm); }
.ds-stat--stars { --c: var(--lemon); rotate: -.5deg; }
.ds-stat--sun { --c: var(--sky); rotate: .4deg; }
.ds-stat__i { grid-row: span 2; align-self: center; }
.ds-stat__i svg { width: 32px; height: 32px; display: block; }
.ds-stat__big { display: flex; align-items: center; gap: 6px; min-width: 0; font: 700 15px/1.1 var(--font-body); color: var(--ink); }
.ds-stat__big b { font: 800 27px/1 var(--font-display); }
.ds-stat__big--words { line-height: 1.2; }
.ds-stat__more { margin-top: 2px; font: 700 15px/1.2 var(--font-body); color: #5A3A06; }
.ds-week { display: flex; gap: 4px; margin-top: 5px; }
.ds-week li { width: 15px; height: 15px; border-radius: 50%; background: rgba(30, 42, 90, .11); box-shadow: inset 0 0 0 1.5px rgba(30, 42, 90, .2); }
.ds-week li.is-done { background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun-deep); }
.ds-week li.is-today { outline: 2px solid var(--blue); outline-offset: 1px; }
.ds-stat__best { position: absolute; right: 8px; top: -9px; padding: 2px 8px; border-radius: var(--pill); background: var(--card); font: 800 13px/1.25 var(--font-body); color: var(--lx-warm); box-shadow: var(--ds-sh-sm); }

/* ---------- Tomorrow: a page from the school diary; its rules run on for as long as there is room */
.ds-diary { position: relative; display: flex; flex: 1 1 auto; min-height: 176px; }
.ds-diary::before { content: ""; position: absolute; inset: 4px -2px -5px 4px; border-radius: 6px 12px 12px 6px; background: #FBEFD9; box-shadow: var(--ds-sh-sm); rotate: .7deg; }
.ds-diary__page { --line: 29px; position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 7px 12px 8px 46px; border-radius: 5px 13px 13px 5px; color: var(--ink); box-shadow: var(--ds-light), var(--ds-sh-sm);
  background-color: #FFFDF8;
  background-image: linear-gradient(90deg, transparent 37px, var(--ds-margin) 37px 38.5px, transparent 38.5px), linear-gradient(transparent calc(var(--line) - 1.2px), var(--ds-rule) calc(var(--line) - 1.2px));
  background-size: 100% 100%, 100% var(--line); background-position: 0 0, 0 7px; }
.ds-diary__hole { position: absolute; left: 12px; top: 26px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper-deep); box-shadow: inset 0 1.5px 2px rgba(90, 42, 0, .45), 0 .5px 0 rgba(255, 255, 255, .9); }
.ds-diary__hole + .ds-diary__hole { top: auto; bottom: 26px; }
.ds-diary__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.ds-diary__h { font-size: 24px; line-height: var(--line); }
.ds-diary__sub { grid-column: 1 / -1; font: 700 15px/var(--line) var(--font-body); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-diary__list { display: grid; }
.ds-diary__list li { position: relative; }
.ds-diary__list img { position: absolute; left: -34px; top: 1px; width: 26px; height: 26px; }
.ds-diary__list p { font: 400 16.5px/var(--line) var(--font-body); color: var(--ink); }
.ds-diary__list b { font-weight: 800; color: var(--lx-warm); }
.ds-diary__empty { font: 600 16.5px/var(--line) var(--font-body); color: var(--ink-2); }
.ds-diary__from { align-self: flex-end; display: flex; align-items: baseline; gap: 4px; margin-top: auto; padding-top: 2px; font: 700 15px/calc(var(--line) - 2px) var(--font-body); color: var(--ink-2); rotate: -1.5deg; }
.ds-diary__from .brandword { font-size: 19px; color: var(--blue); }

/* ---------- tickets */
.ds-tickets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; filter: drop-shadow(0 1px 1px rgba(90, 42, 0, .3)) drop-shadow(0 6px 7px rgba(90, 42, 0, .16)); }
.ds-tickets--one { grid-template-columns: minmax(0, 1fr); }
.ds-ticket { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 72px; padding: 8px 10px 8px 14px; border: 0; color: var(--ink); text-align: left; text-decoration: none; background: var(--c) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
  border-radius: 10px; transition: transform .12s var(--ease-settle); }
.ds-ticket--game { --c: var(--mint); }
.ds-ticket--chapter { --c: var(--pink); }
.ds-ticket::after { content: ""; position: absolute; inset: 4px 7px; border: 1.5px dashed rgba(30, 42, 90, .2); border-radius: 7px; pointer-events: none; }
.ds-ticket__art { display: grid; place-items: center; width: 40px; }
.ds-ticket__art img { width: 100%; height: auto; }
.ds-ticket__w { display: grid; gap: 1px; min-width: 0; }
.ds-ticket__w b { font: 800 16px/1.14 var(--font-display); }
.ds-ticket__w span { font: 700 15px/1.16 var(--font-body); color: var(--ink-2); }
.ds-ticket > svg { position: absolute; right: 12px; top: 10px; color: var(--ink-2); width: 16px; height: 16px; }
.ds-ticket:hover { transform: translateY(-2px); }
.ds-ticket:active { transform: translateY(1px); }
.ds-ticket:focus-visible { outline: 0; }
.ds-ticket:focus-visible::after { border: 3px solid var(--blue); }

/* ---------- the side panel's foot */
.ds-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 calc(-1 * var(--ds-pad, 14px)); min-height: 52px; padding: 4px var(--ds-pad, 14px); background: var(--kraft) var(--ds-kraft) 0 0 / 512px 512px; box-shadow: 0 -1px 0 rgba(87, 57, 26, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ds-foot__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 800 17px/1.1 var(--font-display); color: var(--blue-deep); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
.ds-foot__about { min-height: 44px; padding: 0 6px; border: 0; background: none; font: 800 15px/1.1 var(--font-body); color: var(--ds-kraft-ink); text-decoration: underline; text-underline-offset: .18em; }

.ds-date--short { display: none; }
@media (max-width: 520px) { .ds-date { display: none; } .ds-date--short { display: inline; } }

/* ---------- tablets and desktops: a wall, not a column */
@media (min-width: 600px) {
  .ds-board__slate { min-height: 176px; padding: 16px 190px 16px 24px; }
  .ds-sum { right: 210px; top: 10px; }
  .ds-board__hi { font-size: 33px; }
  .ds-board__line { font-size: 20px; }
  .ds-board__kuru { right: 14px; bottom: -8px; width: 150px; height: 179px; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .ds { max-width: 720px; }
}
@media (min-width: 900px) {
  .ds { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "board board" "card stats" "card diary" "chapters chapters" "tickets install"; gap: 20px 26px; padding-top: 30px; padding-bottom: 56px; }
  .ds-board { grid-area: board; margin-top: 30px; }
  .ds-board__slate { min-height: 208px; padding: 22px 300px 22px 32px; }
  .ds-sum { right: 330px; top: 14px; font-size: 30px; }
  .ds-board__hi { font-size: 42px; }
  .ds-board__line { font-size: 24px; margin-top: 4px; }
  .ds-board__count { margin-top: 12px; font-size: 24px; gap: 14px; }
  .ds-board__count b { font-size: 34px; }
  .ds-tally { width: 176px; height: 42px; }
  .ds-board__ledge { height: 12px; left: 44px; right: 44px; }
  .ds-board__ledge i { width: 34px; height: 9px; left: 26px; bottom: 11px; } .ds-board__ledge i + i { left: 70px; width: 20px; }
  .ds-board__kuru { right: 24px; bottom: -10px; width: 176px; height: 210px; }
  .ds:not(:has(.lx-install)) .ds-tickets { grid-column: 1 / -1; }
  .ds-tickets--one .ds-ticket { min-height: 100%; padding: 14px 20px 14px 22px; gap: 16px; }
  .ds-tickets--one .ds-ticket__art { width: 84px; }
  .ds-tickets--one .ds-ticket__w b { font-size: 24px; }
  .ds-tickets--one .ds-ticket__w span { font-size: 16.5px; }
  .ds-tickets--one .ds-ticket > svg { top: 50%; right: 20px; translate: 0 -50%; width: 22px; height: 22px; }
  .ds-card { grid-area: card; padding: 18px 20px 22px; align-self: start; }
  .ds-card__h { font-size: 34px; }
  .ds-card__stamps { padding: 12px; }
  .ds-stamps { gap: 11px 10px; }
  .ds-slot__n { font-size: 14.5px; left: 7px; top: 6px; }
  .ds-stamp { --r: 2.8px; }
  .ds-card__go { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ds-card__go .lx-key { min-height: 60px; }
  .ds-rubber { font-size: 46px; }
  .ds-stats { grid-area: stats; }
  .ds-diary { grid-area: diary; min-height: 240px; }
  .ds .lx-chapters { grid-area: chapters; }
  .ds .lx-chapters__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ds-tickets { grid-area: tickets; }
  .ds .lx-install { grid-area: install; grid-column: auto; align-self: stretch; }
  .ds .lx-install__go { grid-column: 2; justify-self: start; }
  .ds-card--soon { grid-area: auto; grid-column: 1 / -1; }
}
@media (min-width: 1000px) { .ds .lx-chapters__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Tamil: rounder letters need a little more room */
.is-ta .ds-board__hi { line-height: 1.3; font-size: 23px; }
.is-ta .ds-board__line { line-height: 1.45; font-size: 16.5px; }
.is-ta .ds-card__h { line-height: 1.3; font-size: 24px; }
.is-ta .ds-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.is-ta .ds-stat { grid-template-columns: 26px minmax(0, 1fr); column-gap: 6px; }
.is-ta .ds-stat__i svg { width: 26px; height: 26px; }
.is-ta .ds-stat__big { flex-wrap: wrap; gap: 0 6px; }
.is-ta .ds-stat__big, .is-ta .ds-stat__more, .is-ta .ds-ticket__w span { line-height: 1.32; }
.is-ta .ds-tickets:not(.ds-tickets--one) .ds-ticket { gap: 5px; padding-left: 12px; padding-right: 6px; }
.is-ta .ds-tickets:not(.ds-tickets--one) .ds-ticket__art { width: 30px; }
.is-ta .ds-ticket__w b { line-height: 1.3; font-size: 15.5px; }
.is-ta .ds-diary__h { font-size: 22px; }
.is-ta .ds-diary__list p { font-size: 16px; }
@media (min-width: 900px) { .is-ta .ds-board__hi { font-size: 38px; } .is-ta .ds-board__line { font-size: 22px; } .is-ta .ds-card__h { font-size: 30px; } }

/* ---------- the first run: three short pictures */
.wl { --wl-c: var(--sky); flex: 1 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
.wl--ten { --wl-c: #FFEDB5; }
.wl--sign { --wl-c: var(--mint); }
.wl-scene { position: relative; flex: 1 1 auto; min-height: 268px; overflow: hidden; background: var(--wl-c) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; }
.wl-stage { position: absolute; inset: 0; container-type: size; }
.wl-hills { position: absolute; left: 0; bottom: 16px; width: 100%; height: 42cqh; display: block; }
.wl-hill { stroke: rgba(255, 255, 255, .42); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wl-hill--far { fill: #A9DBA0; }
.wl-hill--near { fill: #7CC48A; }
.wl-grain { position: absolute; inset: 0; background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.wl--ten .wl-hill--far { fill: #FFD76A; } .wl--ten .wl-hill--near { fill: #FFBE4D; }
.wl--sign .wl-hill--far { fill: #8FD6AE; } .wl--sign .wl-hill--near { fill: #5BB36C; }
.wl-cloud { position: absolute; width: 96px; height: 30px; border-radius: 30px; background: #FFFDF8; box-shadow: 0 1px 1px rgba(30, 60, 120, .22), 0 7px 10px -6px rgba(30, 60, 120, .3); }
.wl-cloud::before, .wl-cloud::after { content: ""; position: absolute; bottom: 8px; border-radius: 50%; background: inherit; }
.wl-cloud::before { left: 14px; width: 40px; height: 40px; } .wl-cloud::after { left: 44px; width: 30px; height: 30px; }
.wl-cloud--a { right: 5%; top: 7cqh; animation: wl-drift 7s steps(14) infinite alternate; }
.wl-cloud--b { left: 3%; top: 40cqh; scale: .72; animation: wl-drift 9s steps(18) infinite alternate-reverse; }
.wl-cloud--c { left: 42%; top: 2cqh; scale: .54; animation: wl-drift 11s steps(22) infinite alternate; }
@keyframes wl-drift { to { translate: 16px 0; } }
.wl-sun { position: absolute; left: 6%; top: 4cqh; width: min(26cqw, 118px); height: auto; animation: wl-spin 2.4s steps(4) infinite alternate; }
@keyframes wl-spin { from { rotate: -3deg; } to { rotate: 3deg; } }
.wl-kuru { position: absolute; left: 50%; bottom: 3cqh; width: min(100cqw, 84cqh); aspect-ratio: 560 / 618; translate: -50% 0; }
.wl-kuru .kuru { top: auto; }

.wl--ten .wl-kuru { --kw: min(64cqw, 56cqh); left: auto; right: 3cqw; translate: none; width: var(--kw); bottom: 5cqh; }
.wl-card { --u: min(2.7cqw, 1.52cqh); position: absolute; left: 6cqw; top: 6cqh; width: 88cqw; max-width: 520px; padding: calc(var(--u) * 1.3); border-radius: var(--ds-cut-sm); background: var(--kraft) var(--ds-kraft) 0 0 / 512px 512px; box-shadow: var(--ds-light), var(--ds-sh); rotate: -2deg; animation: wl-drop 500ms steps(1, end) both; }
.wl-card__h { font: 800 calc(var(--u) * 2.1)/1.1 var(--font-display); color: var(--ink); }
.wl-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(var(--u) * .7); margin-top: calc(var(--u) * .8); padding: calc(var(--u) * .8); border-radius: 8px; background: #FFF7E7; box-shadow: inset 0 0 0 1.5px rgba(87, 57, 26, .26); }
.wl-slot, .wl-stamp { display: grid; place-items: center; aspect-ratio: 1 / 1.05; font: 800 calc(var(--u) * 1.7)/1 var(--font-display); }
.wl-slot { border-radius: 4px; outline: 1.5px dashed rgba(87, 57, 26, .42); outline-offset: -1px; color: var(--ds-kraft-ink); }
.wl-stamp { --r: 2.2px; position: relative; grid-auto-rows: auto; align-content: center; gap: 1px; color: var(--pic-ink); background: var(--pic); box-shadow: inset 0 0 0 3.5px #FFFDF8; rotate: calc((var(--i) - 1.5) * 2deg); animation: ds-land 500ms steps(1, end) calc(.5s + var(--i) * .3s) both;
  -webkit-mask: radial-gradient(var(--r), #0000 96%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask: radial-gradient(var(--r), #0000 96%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.wl-stamp svg { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); fill: currentColor; }
.wl-stamp--gold { --pic: linear-gradient(#FFE596, #FFC93A); --pic-ink: #5A3A06; }
.wl-stamp--star { --pic: linear-gradient(#DCE9FF, #B9D4FF); --pic-ink: var(--blue-deep); }
.wl-stamp--leaf { --pic: linear-gradient(#DCF5E5, #B5E6C8); --pic-ink: #1F6B3A; }
.wl-slip { --u: min(2.7cqw, 1.52cqh); position: absolute; left: 6cqw; bottom: 19cqh; max-width: 54cqw; padding: calc(var(--u) * .8) calc(var(--u) * 1.1); border-radius: 4px 12px 10px 4px; background: var(--lx-hint); font: 700 max(15px, calc(var(--u) * 1.5))/1.3 var(--font-body); color: #2E2105; box-shadow: var(--ds-sh-sm); rotate: 2deg; animation: wl-drop 500ms steps(1, end) 1.7s both; }
.wl-slip b { display: block; font-size: .86em; color: var(--lx-warm); }
/* the sum on a slate, when the panel is tall enough for it */
.wl-sum { --u: min(2.7cqw, 1.52cqh); position: absolute; left: 6cqw; top: calc(6cqh + var(--u) * 21); display: none; padding: calc(var(--u) * .9) calc(var(--u) * 1.8); border: 6px solid #C99C62; border-radius: 10px; background: var(--ds-slate) url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; background-blend-mode: multiply; font: 800 calc(var(--u) * 3.1)/1 var(--font-display); color: var(--ds-chalk); box-shadow: var(--ds-sh); rotate: -2deg; animation: wl-drop 500ms steps(1, end) 1.2s both; }
@container (min-height: 470px) { .wl-sum { display: block; } }
.wl--sign .wl-kuru { --kw: min(66cqw, 62cqh); left: auto; right: 3cqw; translate: none; width: var(--kw); bottom: 2cqh; }
.wl-tag { --u: min(2.7cqw, 1.52cqh); position: absolute; left: 7cqw; top: 8cqh; display: grid; justify-items: start; gap: 2px; padding: calc(var(--u) * 1.1) calc(var(--u) * 2) calc(var(--u) * 1.1) calc(var(--u) * 3.4); background: var(--kraft) var(--ds-kraft) 0 0 / 512px 512px; color: var(--ink);
  clip-path: polygon(calc(var(--u) * 1.7) 0, 100% 0, 100% 100%, calc(var(--u) * 1.7) 100%, 0 50%); rotate: -3deg; animation: wl-drop 500ms steps(1, end) both; }
.wl-tag::before { content: ""; position: absolute; left: calc(var(--u) * 1.6); top: 50%; width: calc(var(--u) * 1); height: calc(var(--u) * 1); margin-top: calc(var(--u) * -.5); border-radius: 50%; background: var(--wl-c); box-shadow: inset 0 1px 2px rgba(70, 35, 0, .5); }
.wl-tag__k { font: 800 max(14px, calc(var(--u) * 1.2))/1.1 var(--font-body); color: var(--ds-kraft-ink); }
.wl-tag b { font: 800 calc(var(--u) * 3)/1 var(--font-display); letter-spacing: .05em; }
.wl-tag .tag { margin-top: 3px; }
.wl-pics { --u: min(2.7cqw, 1.52cqh); position: absolute; left: 7cqw; top: calc(8cqh + var(--u) * 12.4); display: flex; gap: calc(var(--u) * 1.1); }
.wl-pics li { display: grid; place-items: center; width: calc(var(--u) * 7.4); aspect-ratio: 1; border-radius: 12px; background: var(--card); box-shadow: var(--ds-light), var(--ds-sh); animation: wl-drop 500ms steps(1, end) calc(.5s + var(--i) * .34s) both; }
.wl-pics li:nth-child(2) { translate: 0 -6%; rotate: 2deg; } .wl-pics li:nth-child(3) { rotate: -2deg; }
.wl-pics img { width: 78%; height: auto; }
/* a short panel: one row of stamps, set at a size that still reads */
@container (max-height: 420px) {
  .wl-card, .wl-tag, .wl-pics, .wl-slip, .wl-sum { --u: 7.6px; }
  .wl-card { top: 5cqh; width: 74cqw; }
  .wl-stamps li:nth-child(n + 6) { display: none; }
  .wl-pics { top: calc(8cqh + var(--u) * 11.6); }
}
@keyframes wl-drop {
  0% { opacity: 0; transform: translateY(-22px) scale(1.06); }
  16.67% { opacity: 1; transform: translateY(-11px); }
  33.33% { transform: translateY(2px) scale(.99); }
  50% { transform: translateY(-2px); }
  66.67% { transform: translateY(1px); }
  83.33%, 100% { opacity: 1; transform: none; }
}
.wl-sheet { position: relative; z-index: 2; margin-top: -18px; padding: 14px 18px 14px; border-radius: 22px 26px 0 0 / 20px 22px 0 0; background: var(--paper) url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; box-shadow: 0 -1px 1.5px rgba(90, 42, 0, .22), 0 -12px 22px -14px rgba(90, 42, 0, .4); }
.wl-step { font: 800 15px/1.2 var(--font-body); color: var(--ink-2); }
.wl-h { margin-top: 2px; font-size: 29px; line-height: 1.12; }
.wl-p { margin-top: 6px; font: 400 17.5px/1.42 var(--font-body); color: var(--ink); }
.wl-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }
.wl-skip { justify-self: start; padding-left: 0; color: var(--blue-deep); }
.wl-dots { display: flex; gap: 7px; }
.wl-dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(30, 42, 90, .18); }
.wl-dots li.is-on { background: var(--blue); }
.wl-next { justify-self: end; min-height: 52px; padding: 0 24px; font-size: 19px; white-space: nowrap; }
.is-ta .wl-h { font-size: 25px; line-height: 1.3; }
.is-ta .wl-p { font-size: 16.5px; line-height: 1.6; }

/* ---------- sign-in in the side panel: the same hills, with Kuru keeping the child company */
.si { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; gap: 0; width: 100%; max-width: none; margin: 0; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); padding: 0; background: var(--sky) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; }
.si__sheet { position: relative; z-index: 2; display: grid; gap: 10px; padding: 16px 16px 16px; border-radius: 0 0 24px 22px / 0 0 22px 20px; background: var(--paper) url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; box-shadow: 0 1px 1.5px rgba(90, 42, 0, .25), 0 14px 22px -14px rgba(30, 60, 120, .45); }
.si__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.si__top .si__p { font-size: 15px; text-align: right; }
.si__h { font-size: 28px; line-height: 1.12; }
.si__form { gap: 8px; }
.si__err:empty { min-height: 0; margin-top: -4px; }
.si__code { min-height: 60px; font-size: 28px; }
.si__scene { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.si--code .si__scene { min-height: 190px; }
.si__scene .wl-hills { bottom: 0; height: 58cqh; }
.si__scene .wl-hill--far { fill: #A9DBA0; } .si__scene .wl-hill--near { fill: #7CC48A; }
.si__kuru { position: absolute; right: 5cqw; bottom: 3cqh; width: auto; height: min(92cqh, 74cqw); }
.si__bubble { position: absolute; left: 14px; top: 16px; max-width: 54cqw; padding: 10px 13px; border-radius: 16px; background: var(--card); font: 700 16px/1.3 var(--font-display); color: var(--ink); box-shadow: var(--ds-sh-sm); }
.si__bubble::after { content: ""; position: absolute; right: -8px; bottom: 16px; width: 18px; height: 18px; background: inherit; rotate: 45deg; clip-path: polygon(50% 50%, 100% 0, 100% 100%); }
.si__kids { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; }
.si__kid { min-height: 104px; }
.si__slots li { width: 58px; height: 58px; }
.si__animals { gap: 9px; }
.si__animal { aspect-ratio: 1.2 / 1; }
.si__animal img { width: auto; height: 78%; }
.si__me img { width: 44px; height: 44px; }
.is-ta .si__h { font-size: 25px; line-height: 1.3; }
.is-ta .si__bubble { line-height: 1.5; font-size: 15.5px; }

/* ---------- About Kuru: in the panel, and on the options page */
.ab { flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto; padding: 14px 14px 18px; }
.ab-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; overflow: hidden; border-radius: var(--ds-cut); background: var(--sky) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; box-shadow: var(--ds-light), var(--ds-sh); }
.ab-head__w { position: relative; grid-column: 1; grid-row: 1; padding: 14px 4px 12px 16px; }
.ab-head__art { position: absolute; inset: 0; pointer-events: none; }
.ab-head__art .wl-hills { bottom: 0; height: 34cqh; }
.ab-head__art img { position: absolute; right: 8px; bottom: 6px; width: 96px; height: auto; }
.ab-h { font-size: 29px; line-height: 1.1; }
.ab-lead { margin-top: 5px; font: 400 17px/1.4 var(--font-body); color: var(--ink); }
.ab-ver { margin-top: 6px; font: 700 15px/1.3 var(--font-body); color: var(--ink-2); }
.ab-by .brandword { font-size: 17px; color: var(--ink); }
.ab-card { flex: 1 1 auto; display: flex; flex-direction: column; padding: 13px 16px 15px; border-radius: var(--ds-cut); background: var(--card) url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; box-shadow: var(--ds-light), var(--ds-sh-sm); }
.ab-card--keep { background: var(--mint) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; }
.ab-card__h { font-size: 21px; line-height: 1.15; }
.ab-perms, .ab-keep { flex: 1; display: grid; align-content: space-evenly; gap: 9px; margin-top: 9px; }
.ab-perms li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; }
.ab-perms svg { width: 32px; height: 32px; }
.ab-perms b { display: block; font: 800 16.5px/1.25 var(--font-display); }
.ab-perms p, .ab-keep p { font: 400 16.5px/1.34 var(--font-body); color: var(--ink); }
.ab-keep li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.ab-keep svg { width: 20px; height: 20px; margin-top: 2px; color: #1F6B3A; }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 2px 4px; }
.ab-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 800 16.5px/1.1 var(--font-body); color: var(--blue-deep); text-underline-offset: .18em; text-decoration-thickness: 2px; }
.ab-again { align-self: flex-start; padding-left: 4px; margin-top: -6px; }
.is-ta .ab-h { font-size: 26px; line-height: 1.3; }
.is-ta .ab-lead, .is-ta .ab-perms p, .is-ta .ab-keep p { line-height: 1.55; font-size: 16px; }

/* the options page: a wider sheet, the head a scene of its own */
.ab-page .lx-main { display: flex; flex-direction: column; }
@media (min-width: 860px) {
  .ab-page .ab { max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 20px 24px; padding: 24px 28px 28px; }
  .ab-page .ab-head { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 320px; min-height: 296px; align-items: center; }
  .ab-page .ab-head__w { padding: 30px 12px 30px 36px; }
  .ab-page .ab-h { font-size: 48px; }
  .ab-page .ab-lead { max-width: 34em; margin-top: 10px; font-size: 21px; line-height: 1.42; }
  .ab-page .ab-ver { margin-top: 12px; font-size: 16.5px; }
  .ab-page .ab-head__art img { right: 56px; bottom: 10px; width: 196px; }
  .ab-page .ab-head__art .wl-hills { height: 46cqh; }
  .ab-page .ab-card { padding: 22px 26px 26px; }
  .ab-page .ab-card__h { font-size: 27px; }
  .ab-page .ab-perms, .ab-page .ab-keep { gap: 14px; margin-top: 14px; }
  .ab-page .ab-perms p, .ab-page .ab-keep p { font-size: 18px; }
  .ab-page .ab-perms b { font-size: 19px; }
  .ab-page .ab-perms li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .ab-page .ab-perms svg { width: 44px; height: 44px; }
  .ab-page .ab-links { grid-column: 1 / -1; gap: 6px 28px; }
}

/* ---------- the side panel: the bar, and every screen fills the height it gets */
.lx-bar__grow { flex: 1; }
.is-panel { --lx-g: 14px; --ds-pad: 14px; }
.is-panel .lx-bar { min-height: 56px; padding: 6px var(--lx-g); }
.is-panel .lx-me img { width: 36px; height: 36px; }
.is-panel .lx-me { min-height: 44px; }
.is-panel .lx-icon { width: 44px; height: 44px; }
.is-panel .lx-main { display: flex; flex-direction: column; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
.is-panel .ds { flex: 1 0 auto; max-width: none; gap: 10px; padding: 8px var(--ds-pad) 0; }
.is-panel .ds-board { margin-top: 6px; }
.is-panel .ds-board__slate { min-height: 124px; padding-block: 9px; }
.is-panel .ds-card { padding-top: 10px; padding-bottom: 15px; }
.is-panel .ds-card__go { margin-top: 10px; }
.is-panel .ds-diary { min-height: 160px; }
.is-panel .ds-ticket { min-height: 68px; }
.is-panel .ds-stat { min-height: 68px; }
/* a question: the picture takes the room, the answers stay near the bottom */
.is-panel .lx-q { flex: 1 0 auto; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: none; padding: 8px var(--lx-g) 14px; }
.is-panel .lx-q__kuru { flex: none; }
.is-panel .lx-stage--sm { width: clamp(70px, 11vh, 118px); }
.is-panel .lx-q__main { flex: 1 0 auto; display: flex; }
.is-panel .lx-card { flex: 1; display: flex; flex-direction: column; padding: 12px; min-width: 0; }
.is-panel .lx-visual { flex: 1 1 auto; min-height: 108px; padding: 8px; }
.is-panel .lx-visual .v { max-height: clamp(96px, 26vh, 300px); }
.is-panel .lx-q__h { margin-top: 12px; font-size: 22px; }
.is-panel .lx-bubble--q { margin-bottom: 10px; padding: 9px 13px; font-size: 16.5px; }
.is-panel .lx-choice { min-height: clamp(76px, 10vh, 112px); }
.is-panel .lx-help { margin-top: 12px; }
.is-panel .lx-pill { min-height: 46px; padding: 0 15px; font-size: 16px; }
.is-panel .lx-hints { flex: none; }
/* below 960 px tall the number pad folds into two rows, so the hint stays in view; the keyboard works too */
@media (max-height: 960px) {
  .is-panel .lx-pad__keys { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .is-panel .lx-padkey { min-height: 46px; border-radius: 14px; font-size: 23px; }
  .is-panel .lx-padkey svg { width: 26px; height: 22px; }
  .is-panel .lx-pad { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; max-width: none; width: 100%; }
  .is-panel .lx-pad__show { grid-column: 1; grid-row: 1; min-height: 52px; font-size: 32px; }
  .is-panel .lx-pad__check { grid-column: 2; grid-row: 1; width: auto; min-height: 52px; padding: 0 22px; font-size: 18px; }
  .is-panel .lx-pad__keys { grid-column: 1 / -1; grid-row: 2; }
}
/* a short panel: everything a little closer */
@media (max-height: 760px) {
  .is-panel .lx-answer__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .is-panel .lx-stage--sm { width: 62px; }
  .is-panel .lx-bubble--q { margin-bottom: 6px; }
  .is-panel .lx-q { padding-top: 6px; gap: 8px; }
  .is-panel .lx-visual { min-height: 84px; }
  .is-panel .lx-visual .v { max-height: 96px; }
  .is-panel .lx-q__h { margin-top: 8px; font-size: 20.5px; line-height: 1.24; }
  .is-panel .lx-help { margin-top: 8px; }
  .is-panel .lx-pill { min-height: 44px; }
}
.is-panel .lx-done { flex: 1 0 auto; width: 100%; max-width: none; padding: 14px var(--lx-g) 16px; align-content: start; }
.is-panel .lx-done__go { margin-top: auto; }
/* the chapters in a sheet */
.lx-sheet .lx-chapters { padding: 0; background: none; box-shadow: none; }
.lx-sheet .lx-chapters::after { display: none; }
.lx-sheet .lx-chapters__h { display: none; }
.lx-sheet .lx-chapters__sub { margin-top: 0; }
.lx-sheet .lx-chapters__list { grid-template-columns: minmax(0, 1fr); }

/* ---------- phones */
@media (max-width: 360px) {
  .ds-board__slate { padding-right: 104px; }
  .ds-board__hi { font-size: 22px; }
  .ds-board__line { font-size: 16px; }
  .ds-board__kuru { right: 4px; width: 116px; height: 138px; }
  .ds-stats { grid-template-columns: minmax(0, 1fr); }
  .ds-tickets { grid-template-columns: minmax(0, 1fr); }
  .ds-tally { width: 100px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-slot.is-now, .ds-tally path.is-new, .ds-slot.is-new .ds-stamp, .ds-slot.is-new::before, .ds-slot.is-new .ds-pm, .wl-cloud, .wl-sun, .wl-card, .wl-stamp, .wl-slip, .wl-tag, .wl-pics li { animation: none; }
  .ds-ticket { transition: none; }
}

/* ---------- Kuru's payment tag and the renew card (desk.js billTag / renewCard; billing.js has the rules) */
.ds-bill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; }
.ds-bill__tag { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 13px; border-radius: 6px 12px 7px 11px; background: var(--lemon); color: var(--ink-on-sun); font: 800 15px/1.2 var(--font-body);
  box-shadow: var(--ds-sh-sm); rotate: -.6deg; }
.ds-bill--active .ds-bill__tag { background: var(--mint); color: #1F6B3A; }
.ds-bill--expired .ds-bill__tag, .ds-bill--locked .ds-bill__tag { background: var(--pink); color: #8A2440; }
.ds-bill__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 800 15.5px/1.2 var(--font-body); color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.ds-bill__go .ds-out { width: 16px; height: 16px; }
.ds-renew { display: grid; gap: 12px; }
.ds-renew__msg { margin: 0; font: 600 17.5px/1.5 var(--font-body); color: var(--ink); max-width: 46ch; }
.ds-renew__y { margin: 0; font: 800 16px/1.4 var(--font-body); color: var(--ink-2); }
.is-ta .ds-renew__msg { line-height: 1.7; }
