/* Little Shopkeeper – game styles (DESIGN §8, §10). Kit ui.css + tika.css come first. */

/* ================================================================ tokens & shell */
:root { --tap: 3.1rem; --wood: #C98952; --wood-2: #A86A38; --cream: #FFF0CC; }
@media (max-height: 460px) { :root { --tap: 48px; } }
body.ls-body { background: #FFE6BF; }
.ls-shell { background: linear-gradient(180deg, #FFE6BF 0%, #FFF3D9 100%); }
.ls-top { gap: .5rem; padding-top: max(.45rem, env(safe-area-inset-top)); padding-bottom: .35rem; background: #FFE6BF; border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 rgba(36, 38, 59, .12); }
.ls-top-left, .ls-top-right, .ls-top-lock { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.ls-top-mid { display: flex; align-items: center; gap: .55rem; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.ls-title { font-size: 1.2rem; }
.ls-allgames { min-height: var(--tap); padding: .3em .9em; font-size: 1rem; gap: .35em; }
.ls-chip { min-height: 2.4rem; font-size: 1.02rem; }
.ls-chip b { font-variant-numeric: tabular-nums; }
.ls-money .mini-coin { width: 1.35em; height: 1.35em; }
.ls-lock { position: relative; }
.ls-lock .ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.ls-main { position: relative; overflow: hidden; }
.ls-boot { margin: auto; font-weight: 900; font-size: 1.3rem; color: var(--ink-2); }
.scr { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; }
@media (max-width: 600px) { .ls-title { display: none; } .ls-allgames span:last-child { display: none; } }

/* ================================================================ board */
.board-host { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
.board { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.board .tk-bubble { font-size: 23px; line-height: 1.32; padding: 14px 20px; border-width: 4px; border-radius: 26px; box-shadow: 0 6px 0 var(--ink); overflow: visible; }
.board .tk-bubble::after { width: 22px; height: 22px; border-width: 4px; }
.board .tk-bubble.tk-tail-left::after { left: -14px; margin-top: -11px; border-left-width: 4px; border-bottom-width: 4px; }
.board .tk-bubble.tk-tail-bottom-left::after { bottom: -14px; }

/* buttons inside the board (logical px) */
.bbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 76px; padding: 8px 28px; font: inherit; font-size: 27px; font-weight: 900; line-height: 1.05; letter-spacing: .01em;
  color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink);
  cursor: pointer; white-space: nowrap; transition: transform .08s ease, box-shadow .08s ease, filter .2s;
}
.bbtn:active, .bbtn.is-pressed { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.bbtn[disabled] { opacity: .45; pointer-events: none; }
.bbtn svg { width: 34px; height: 34px; flex: 0 0 auto; }
.bbtn-go { background: var(--go); color: #fff; text-shadow: 0 2px 0 rgba(36, 38, 59, .35); }
.bbtn-sun { background: var(--sun); }
.bbtn-sky { background: var(--sky); color: #fff; text-shadow: 0 2px 0 rgba(36, 38, 59, .35); }
.bbtn-soft { background: var(--sky-soft); }
.bbtn-pink { background: var(--pink); }
.bbtn-tomato { background: var(--tomato); color: #fff; }
.bbtn-grape { background: var(--grape); color: #fff; text-shadow: 0 2px 0 rgba(36, 38, 59, .35); }
.bbtn-cream { background: var(--cream); }
.bbtn-big { min-height: 96px; font-size: 38px; padding: 10px 46px; border-radius: 28px; box-shadow: 0 8px 0 var(--ink); }
.bbtn-big svg { width: 44px; height: 44px; }
.rbtn { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; padding: 0; background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); cursor: pointer; flex: 0 0 auto; }
.rbtn svg { width: 56%; height: 56%; }
.rbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.rbtn.rb-sun { background: var(--sun); }
.rbtn.rb-glow { animation: rb-glow 1.1s ease-in-out infinite; }
@keyframes rb-glow { 50% { box-shadow: 0 5px 0 var(--ink), 0 0 0 10px rgba(255, 197, 61, .6); } }

/* ================================================================ art states */
.c-eyes-happy { display: none; }
.is-happy .c-eyes-happy { display: inline; }
.is-happy .c-eyes-open { display: none; }
.art-cust .c-eyes-open, .art-piggy .c-eyes-open { animation: blink 5.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.lights .bulb { animation: twinkle 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.27s); }
@keyframes twinkle { 50% { opacity: .45; } }
.cat-z { animation: zz 2.4s ease-in-out infinite; }
@keyframes zz { 50% { transform: translateY(-3px); opacity: .5; } }
.water { animation: water 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes water { 50% { transform: scaleY(.92); } }

/* ================================================================ title */
.t-bg, .t-bg svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.t-shop svg, .t-cust svg, .t-logo svg { display: block; width: 100%; height: 100%; }
.t-col { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; }
.t-head, .t-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; z-index: 2; }
.t-mid { display: flex; align-items: flex-end; justify-content: flex-start; }
.t-shop { height: 100%; max-height: 440px; aspect-ratio: 180 / 220; flex: 0 1 auto; min-width: 0; }
.t-tika { width: 170px; height: 200px; margin-left: -40px; flex: 0 0 auto; }
.t-tika .tika { width: 100%; height: 100%; }
.t-bubble { position: absolute; max-width: 420px; z-index: 4; }
.t-cust { position: absolute; cursor: pointer; z-index: 1; }
.t-logo { width: 460px; height: 221px; }
.t-sub { white-space: nowrap; font-size: 34px; font-weight: 1000; color: #fff; text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 6px 0 var(--ink); background: var(--tomato); border: 4px solid var(--ink); border-radius: 18px; padding: 2px 28px 8px; box-shadow: 0 6px 0 var(--ink); transform: rotate(-2deg); margin-top: -6px; }
.t-tag { text-align: center; font-size: 22px; font-weight: 900; background: rgba(255, 255, 255, .9); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 16px; max-width: 470px; }
.t-free { white-space: nowrap; text-align: center; font-size: 19px; font-weight: 900; color: var(--ink-2); background: rgba(255, 251, 241, .86); border-radius: 12px; padding: 4px 12px; }

.t-board[data-mode="land"] .t-col { padding: 0 16px 0 470px; justify-content: center; gap: 26px; }
.t-board[data-mode="land"] .t-mid { position: absolute; left: 24px; bottom: 30px; width: 460px; height: min(440px, calc(100% - 70px)); }
.t-board[data-mode="land"] .t-bubble { left: 22px; top: 18px; }
.t-board[data-mode="land"] .t-cust1 { left: 4px; bottom: 0; width: 130px; height: 156px; }
.t-board[data-mode="land"] .t-cust2 { right: 4px; bottom: 0; width: 140px; height: 168px; }

.t-board[data-mode="wide"] .t-col { padding: 0 150px 0 380px; justify-content: center; gap: 12px; }
.t-board[data-mode="wide"] .t-head { gap: 6px; }
.t-board[data-mode="wide"] .t-logo { width: 360px; height: 173px; }
.t-board[data-mode="wide"] .t-sub { font-size: 28px; }
.t-board[data-mode="wide"] .t-tag { display: none; }
.t-board[data-mode="wide"] .t-foot { gap: 8px; }
.t-board[data-mode="wide"] .t-free { font-size: 17px; }
.t-board[data-mode="wide"] .t-mid { position: absolute; left: 24px; bottom: 14px; width: 380px; height: calc(100% - 40px); }
.t-board[data-mode="wide"] .t-tika { width: 130px; height: 152px; margin-left: -50px; }
.t-board[data-mode="wide"] .t-bubble { display: none; }
.t-board[data-mode="wide"] .t-cust1 { right: 6px; bottom: 0; width: 130px; height: 156px; }
.t-board[data-mode="wide"] .t-cust2 { display: none; }

.t-board[data-mode="port"] .t-col { justify-content: space-between; padding: 14px 0 34px; }
.t-board[data-mode="port"] .t-head { gap: 8px; }
.t-board[data-mode="port"] .t-logo { width: 420px; height: 202px; }
.t-board[data-mode="port"] .t-sub { font-size: 30px; }
.t-board[data-mode="port"] .t-tag { font-size: 21px; max-width: 500px; }
.t-board[data-mode="port"] .t-mid { flex: 1 1 auto; min-height: 0; width: 100%; padding: 14px 20px 12px; max-height: 520px; }
.t-board[data-mode="port"] .t-tika { width: 150px; height: 176px; margin-left: -46px; }
.t-board[data-mode="port"] .t-bubble { display: none; }
.t-board[data-mode="port"] .t-foot { gap: 10px; }
.t-board[data-mode="port"] .t-free { font-size: 18px; }
.t-board[data-mode="port"] .t-cust1 { left: 4px; bottom: 0; width: 110px; height: 132px; }
.t-board[data-mode="port"] .t-cust2 { right: 4px; bottom: 0; width: 110px; height: 132px; }

.t-cust1 { animation: peek 4s ease-in-out infinite; }
.t-cust2 { animation: peek 4.6s ease-in-out infinite reverse; }
@keyframes peek { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }


/* ================================================================ menu screens: Tika + panel */
.ps-bg, .ps-bg > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ps-talk { position: absolute; z-index: 3; display: flex; }
.ps-tika { flex: 0 0 auto; }
.ps-tika .tika { width: 100%; height: 100%; }
.ps-bubble { position: relative; }
.ps-panel { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 22px; background: rgba(255, 251, 241, .95); border: 4px solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 var(--ink); }
.ps-h { margin: 0; font-size: 40px; font-weight: 1000; line-height: 1.1; text-align: center; }
.board[data-mode="land"] .ps-talk { left: 18px; top: 18px; bottom: 18px; width: 270px; flex-direction: column; align-items: center; gap: 26px; }
.board[data-mode="land"] .ps-tika { width: 190px; height: 220px; }
.board[data-mode="land"] .ps-bubble { width: 262px; }
.board[data-mode="land"] .ps-panel { left: 304px; right: 22px; top: 22px; bottom: 26px; }
.board[data-mode="wide"] .ps-talk { left: 10px; top: 8px; bottom: 8px; width: 230px; flex-direction: column; align-items: center; gap: 14px; }
.board[data-mode="wide"] .ps-tika { width: 112px; height: 130px; }
.board[data-mode="wide"] .ps-bubble { width: 226px; font-size: 20px; padding: 10px 14px; }
.board[data-mode="wide"] .ps-panel { left: 252px; right: 10px; top: 10px; bottom: 16px; padding: 12px 16px; gap: 10px; }
.board[data-mode="wide"] .ps-h { font-size: 32px; }
.board[data-mode="port"] .ps-talk { left: 14px; right: 14px; top: 12px; height: 176px; flex-direction: row; align-items: center; gap: 24px; }
.board[data-mode="port"] .ps-tika { width: 140px; height: 165px; }
.board[data-mode="port"] .ps-bubble { flex: 1 1 auto; min-width: 0; }
.board[data-mode="port"] .ps-panel { left: 14px; right: 14px; top: 204px; bottom: 18px; }

/* profiles */
.pr-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.pr-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 190px; height: 230px; padding: 12px; font: inherit; background: #fff; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 7px 0 var(--ink); cursor: pointer; }
.pr-card:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.pr-face { width: 132px; height: 132px; background: var(--sky-soft); border: 4px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pr-face svg { width: 112px; height: 112px; }
.pr-age { position: absolute; top: 10px; right: 10px; min-width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 1000; background: var(--sun); border: 4px solid var(--ink); border-radius: 50%; }
.pr-stars { display: inline-flex; align-items: center; gap: 6px; font-size: 28px; font-weight: 1000; }
.pr-stars svg { width: 32px; height: 32px; color: var(--sun-deep); }
.pr-add { background: var(--go-soft); border-style: dashed; }
.pr-add > svg { width: 80px; height: 80px; }
.pr-add-l { font-size: 28px; font-weight: 1000; }
.pr-avatars { max-width: 640px; }
.pr-av { width: 170px; height: 170px; padding: 10px; background: #fff; border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 7px 0 var(--ink); cursor: pointer; }
.pr-av svg { width: 100%; height: 100%; }
.pr-av:active, .pr-av.is-picked { transform: translateY(5px) scale(1.04); box-shadow: 0 2px 0 var(--ink); background: var(--sun); }
.board[data-mode="wide"] .pr-av { width: 104px; height: 104px; padding: 6px; }
.board[data-mode="wide"] .pr-avatars { max-width: none; flex-wrap: nowrap; gap: 12px; }
.board[data-mode="wide"] .pr-card { width: 150px; height: 196px; }
.board[data-mode="wide"] .pr-face { width: 104px; height: 104px; }
.board[data-mode="wide"] .pr-face svg { width: 88px; height: 88px; }
.board[data-mode="wide"] .pr-grid { gap: 14px; }
.board[data-mode="port"] .pr-avatars { max-width: 480px; }
.board[data-mode="port"] .pr-av { width: 140px; height: 140px; }

/* age */
.ag-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ag-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; padding: 30px 8px 14px; font: inherit; background: #FFF6E3; border: 4px solid var(--ink); border-radius: 18px 18px 26px 26px; box-shadow: 0 7px 0 var(--ink); cursor: pointer; }
.ag-card:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.ag-card.is-cur { background: var(--sun); }
.ag-hole { position: absolute; top: 9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; }
.ag-num { font-size: 60px; font-weight: 1000; line-height: 1; }
.ag-grade { display: none; font-size: 17px; font-weight: 900; text-align: center; line-height: 1.1; min-height: 38px; }
.ag-grid.show-grade .ag-grade { display: block; }
.ag-grid.show-grade .ag-num { font-size: 40px; }
.ag-coins { display: grid; grid-template-columns: repeat(5, 20px); gap: 3px 2px; justify-content: center; min-height: 43px; }
.ag-coin { width: 20px; height: 20px; opacity: .55; filter: grayscale(.3); transition: opacity .2s, transform .2s; }
.ag-coin svg { width: 100%; height: 100%; }
.ag-coin.lit { opacity: 1; filter: none; transform: scale(1.15); }
.ag-chip { min-height: 64px; padding: 6px 22px; font: inherit; font-size: 22px; font-weight: 900; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.ag-chip[aria-pressed="true"] { background: var(--sun); }
.board[data-mode="wide"] .ag-card { width: 104px; padding-top: 26px; }
.board[data-mode="wide"] .ag-num { font-size: 46px; }
.board[data-mode="wide"] .ag-coins { grid-template-columns: repeat(5, 16px); gap: 2px; min-height: 34px; }
.board[data-mode="wide"] .ag-coin { width: 16px; height: 16px; }
.board[data-mode="wide"] .ag-grid { gap: 12px; }
.board[data-mode="wide"] .ag-chip { min-height: 50px; font-size: 20px; }
.board[data-mode="port"] .ag-grid { max-width: 480px; }
.board[data-mode="port"] .ag-card { width: 140px; }

/* intro */
.in-board .ps-panel { padding: 16px; gap: 14px; }
.in-stage { position: relative; flex: 1 1 auto; width: 100%; min-height: 0; border: 4px solid var(--ink); border-radius: 24px; overflow: hidden; background: #BCE4FF; }
.in-pic { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.in-pic > svg.art-square { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.in-row { position: absolute; left: 3%; right: 3%; bottom: 8%; display: flex; justify-content: space-between; align-items: flex-end; }
.in-row .in-fac { width: 18.5%; aspect-ratio: 180 / 220; }
.in-fac svg, .in-keys svg, .in-piggy svg, .in-cloud svg, .in-fountain svg { width: 100%; height: 100%; display: block; }
.in-fountain { display: none; }
.in-big { position: absolute; left: 8%; bottom: 6%; height: 80%; aspect-ratio: 180 / 220; }
.in-keys { position: absolute; right: 12%; top: 16%; width: 30%; aspect-ratio: 1; animation: keys 1.6s ease-in-out infinite; }
@keyframes keys { 50% { rotate: 10deg; } }
.in-piggy { position: absolute; left: 6%; bottom: 8%; width: 42%; aspect-ratio: 120 / 100; }
.in-coins { position: absolute; left: 6%; right: 52%; bottom: 3%; display: flex; justify-content: space-around; }
.in-coins span { width: 15%; aspect-ratio: 1; display: block; }
.in-coins svg { width: 100%; height: 100%; }
.in-cloud { position: absolute; right: 5%; top: 6%; width: 46%; aspect-ratio: 200 / 160; }
.in-cloud-d { position: absolute; left: 22%; top: 14%; width: 56%; aspect-ratio: 160 / 140; }
.in-cloud-d svg { width: 100%; height: 100%; }
.in-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 14px; }
.in-dots > i { width: 22px; height: 22px; border-width: 4px; }
.board[data-mode="port"] .in-row { flex-wrap: wrap; justify-content: center; gap: 2%; bottom: 4%; }
.board[data-mode="port"] .in-row .in-fac { width: 30%; }

/* square */
.sq-board { --fw: 160px; }
.sq-grid { position: absolute; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px 14px; }
.sq-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--fw); }
.sq-shop { display: block; width: var(--fw); height: calc(var(--fw) * 1.222); padding: 0; background: none; border: 0; cursor: pointer; filter: drop-shadow(0 6px 0 rgba(36, 38, 59, .25)); transition: transform .12s; }
.sq-shop svg { width: 100%; height: 100%; display: block; }
.sq-shop:active { transform: translateY(4px) scale(.98); }
.sq-dots { display: flex; gap: 5px; padding: 4px 8px; background: rgba(255, 255, 255, .9); border: 3px solid var(--ink); border-radius: 999px; }
.sq-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.sq-dots i.done { background: var(--sun); }
.sq-dream { position: relative; width: calc(var(--fw) * .66); height: calc(var(--fw) * .58); padding: 0; background: none; border: 0; cursor: pointer; }
.sq-dream > span { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; }
.sq-dream svg { width: 100%; height: 100%; display: block; }
.sq-dream-ghost { filter: grayscale(1); opacity: .35; }
.sq-dream-fill { clip-path: inset(calc(100% - var(--f)) 0 0 0); }
.sq-dream.is-done .sq-dream-ghost { display: none; }
.sq-dream.is-done { animation: dream-bob 2.4s ease-in-out infinite; }
@keyframes dream-bob { 50% { translate: 0 -5px; } }
.sq-here { position: absolute; top: -34px; left: 50%; width: 44px; height: 44px; margin-left: -22px; color: var(--tomato); background: #fff; border: 3px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: here 1s ease-in-out infinite; z-index: 3; }
.sq-here svg { width: 30px; height: 30px; transform: rotate(90deg); }
@keyframes here { 50% { translate: 0 8px; } }
.sq-tika { position: absolute; z-index: 3; }
.sq-tika .tika { width: 100%; height: 100%; }
.sq-bubble { position: absolute; z-index: 4; }
.sq-btns { position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; }
.sq-me { width: 84px; height: 84px; padding: 6px; background: var(--sky-soft); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.sq-me svg { width: 100%; height: 100%; }
.board[data-mode="land"] .sq-grid { left: 10px; right: 10px; top: 36px; }
.board[data-mode="land"] .sq-tika { left: 18px; bottom: 14px; width: 128px; height: 150px; }
.board[data-mode="land"] .sq-bubble { left: 168px; bottom: 40px; max-width: 360px; }
.board[data-mode="land"] .sq-btns { right: 18px; bottom: 26px; }
.board[data-mode="wide"] .sq-grid { left: 150px; right: 6px; top: 12px; gap: 4px 8px; }
.board[data-mode="wide"] .sq-tika { left: 14px; top: 8px; width: 112px; height: 130px; }
.board[data-mode="wide"] .sq-bubble { display: none; }
.board[data-mode="wide"] .sq-btns { left: 8px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 8px; width: 136px; }
.board[data-mode="wide"] .sq-btns .bbtn { min-height: 64px; font-size: 21px; padding: 4px 10px; }
.board[data-mode="wide"] .sq-me { display: none; }
.board[data-mode="port"] .sq-grid { left: 8px; right: 8px; top: 40px; gap: 14px 12px; }
.board[data-mode="port"] .sq-tika { left: 14px; bottom: 120px; width: 120px; height: 140px; }
.board[data-mode="port"] .sq-bubble { left: 150px; right: 16px; bottom: 140px; }
.board[data-mode="port"] .sq-btns { left: 14px; right: 14px; bottom: 18px; justify-content: space-between; }

/* badges */
.bd-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: .4rem 0; }
.bd-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; font: inherit; font-size: .78rem; font-weight: 900; line-height: 1.1; background: #fff; border: 3px solid var(--ink); border-radius: 14px; cursor: pointer; min-height: 48px; }
.bd-cell svg { width: 3.4rem; height: 4rem; }
.bd-cell.is-off { color: var(--ink-3); background: #F4F4F6; }
.bd-modal { width: min(40rem, 100%); }
.bd-new svg { width: 7rem; height: 8.4rem; margin: 0 auto; display: block; }
@media (max-width: 560px) { .bd-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-height: 460px) { .bd-grid { grid-template-columns: repeat(5, 1fr); } .bd-cell svg { width: 2.4rem; height: 2.8rem; } .bd-cell { font-size: .7rem; } .bd-modal .tk-modal-title { font-size: 1.2rem; } }


/* ================================================================ day layout */
.day-board { display: grid; gap: 12px; padding: 12px; }
.day-board[data-mode="land"] { grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 212px; grid-template-areas: "talk scene" "talk tray"; }
.day-board[data-mode="land"][data-tray="none"] { grid-template-rows: minmax(0, 1fr) 0; }
.day-board[data-mode="land"][data-tray="answer"] { grid-template-rows: minmax(0, 1fr) 128px; }
.day-board[data-mode="land"][data-tray="tall"] { grid-template-rows: minmax(0, 1fr) 300px; }
.day-board[data-mode="port"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 140px minmax(0, 1fr) 272px; grid-template-areas: "talk" "scene" "tray"; }
.day-board[data-mode="port"][data-tray="none"] { grid-template-rows: 140px minmax(0, 1fr) 0; }
.day-board[data-mode="port"][data-tray="answer"] { grid-template-rows: 140px minmax(0, 1fr) 132px; }
.day-board[data-mode="port"][data-tray="tall"] { grid-template-rows: 140px minmax(0, 1fr) 360px; }
.day-board[data-mode="wide"] { grid-template-columns: 150px minmax(0, 1fr) 330px; grid-template-rows: minmax(0, 1fr); grid-template-areas: "talk scene tray"; padding: 8px 10px; gap: 10px; }
.day-board[data-mode="wide"][data-tray="none"] { grid-template-columns: 150px minmax(0, 1fr) 0; }
.day-board[data-mode="wide"][data-tray="answer"] { grid-template-columns: 150px minmax(0, 1fr) 250px; }
.day-board[data-mode="wide"][data-tray="tall"] { grid-template-columns: 150px minmax(0, 1fr) 380px; }
.dy-talk { grid-area: talk; position: relative; display: flex; min-width: 0; min-height: 0; }
.dy-tika { flex: 0 0 auto; }
.dy-tika .tika { width: 100%; height: 100%; }
.dy-bubble { position: relative; min-width: 0; min-height: 0; font-size: 22px; }
.dy-tbtns { display: flex; gap: 12px; flex: 0 0 auto; justify-content: center; }
.day-board[data-mode="land"] .dy-talk { flex-direction: column; align-items: stretch; gap: 22px; }
.day-board[data-mode="land"] .dy-tika { width: 150px; height: 176px; align-self: center; }
.day-board[data-mode="land"] .dy-bubble { flex: 0 1 auto; max-height: calc(100% - 290px); }
.day-board[data-mode="land"] .dy-tbtns { margin-top: auto; }
.day-board[data-mode="port"] .dy-talk { flex-direction: row; align-items: center; gap: 22px; }
.day-board[data-mode="port"] .dy-tika { width: 112px; height: 132px; }
.day-board[data-mode="port"] .dy-bubble { flex: 1 1 auto; max-height: 132px; }
.day-board[data-mode="port"] .dy-tbtns { flex-direction: column; gap: 10px; }
.day-board[data-mode="port"] .dy-tbtns .rbtn { width: 64px; height: 64px; }
.day-board[data-mode="wide"] .dy-talk { flex-direction: column; align-items: stretch; gap: 16px; }
.day-board[data-mode="wide"] .dy-tika { width: 92px; height: 108px; align-self: center; }
.day-board[data-mode="wide"] .dy-bubble { flex: 0 1 auto; font-size: 18px; padding: 10px 12px; max-height: calc(100% - 196px); }
.day-board[data-mode="wide"] .dy-tbtns .rbtn { width: 66px; height: 66px; }
.dy-scene { grid-area: scene; position: relative; min-width: 0; min-height: 0; border-radius: 26px; }
.dy-tray { grid-area: tray; position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dy-block { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; }
/* top-bar day path */
.dp-path { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; }
.dp-dot { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.dp-dot svg { width: 100%; height: 100%; }
.dp-dot.dp-morning, .dp-dot.dp-errand, .dp-dot.dp-evening { width: 26px; height: 26px; border: 0; background: none; opacity: .45; }
.dp-dot.done { background: var(--go); }
.dp-dot.dp-morning.done, .dp-dot.dp-errand.done, .dp-dot.dp-evening.done { background: none; opacity: 1; }
.dp-dot.now { background: var(--sun); transform: scale(1.25); opacity: 1; }
.dp-dot.dp-morning.now, .dp-dot.dp-errand.now, .dp-dot.dp-evening.now { background: none; transform: scale(1.15); }
@media (max-width: 700px) { .dp-path { display: none; } }
/* phase card */
.dy-phase { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 50px; background: #FFF6E3; border: 5px solid var(--ink); border-radius: 34px; box-shadow: 0 9px 0 var(--ink); animation: ph-in .45s var(--ease-pop) both; }
.dy-phase b { font-size: 56px; font-weight: 1000; }
.dy-ph-ico svg { width: 120px; height: 120px; display: block; }
.dy-phase.out { animation: ph-out .22s ease both; }
.dy-ph-evening { background: #2B2F6B; color: #FFF4B8; }
@keyframes ph-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.85); } }
@keyframes ph-out { to { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
/* day summary */
.dy-sum { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 26px; background: #FFF6E3; border: 5px solid var(--ink); border-radius: 34px; box-shadow: 0 9px 0 var(--ink); z-index: 5; }
.dy-sum h2 { margin: 0; font-size: 40px; font-weight: 1000; }
.dy-sum-stars { display: flex; gap: 8px; }
.dy-sum-stars svg { width: 76px; height: 76px; animation: tk-star-in .5s var(--ease-pop) both; }
.dy-sum-stars .st1 { animation-delay: .18s; transform: translateY(-10px); }
.dy-sum-stars .st2 { animation-delay: .36s; }
.dy-sum-bonus { font-size: 24px; font-weight: 1000; color: var(--sun-deep); }
.dy-sum-rows { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.dy-sum-rows div { display: flex; justify-content: space-between; align-items: center; font-size: 25px; padding: 6px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.dy-sum-rows b { font-size: 28px; font-variant-numeric: tabular-nums; }
.dy-sum-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.day-board[data-mode="wide"] .dy-sum { padding: 12px 18px; gap: 6px; }
.day-board[data-mode="wide"] .dy-sum h2 { font-size: 30px; }
.day-board[data-mode="wide"] .dy-sum-stars svg { width: 52px; height: 52px; }
.day-board[data-mode="wide"] .dy-sum-rows div { font-size: 20px; padding: 3px 12px; }
.day-board[data-mode="wide"] .dy-sum-rows b { font-size: 22px; }
.day-board[data-mode="wide"] .dy-sum .bbtn { min-height: 64px; font-size: 22px; }

/* ================================================================ money pieces */
.mp { position: relative; display: inline-block; flex: 0 0 auto; touch-action: none; }
.mp svg { display: block; width: 100%; height: 100%; }
.mp.is-coin { width: 64px; height: 64px; }
.mp.is-note { width: 112px; height: 63px; }
.mp.is-coin.mp-1 { width: 54px; height: 54px; }
.mp.is-coin.mp-2 { width: 58px; height: 58px; }
.mp.is-coin.mp-5 { width: 60px; height: 60px; }
.mp.is-coin.mp-20 { width: 68px; height: 68px; }
.mp-fly { display: block; }
/* drawer */
.drawer { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px 12px; background: #8E5B33; border: 4px solid var(--ink); border-radius: 22px; box-shadow: inset 0 6px 0 rgba(0, 0, 0, .18), 0 6px 0 var(--ink); max-width: 100%; }
.dr-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dr-comp { position: relative; display: flex; align-items: center; justify-content: center; background: #F2E3C8; border: 3px solid var(--ink); border-radius: 14px; box-shadow: inset 0 5px 0 rgba(36, 38, 59, .12); }
.dr-comp.is-coin { width: 86px; height: 86px; border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; }
.dr-comp.is-note { width: 128px; height: 84px; }
.dr-under { position: absolute; opacity: .55; pointer-events: none; }
.dr-comp.is-coin .dr-under { width: 60px; height: 60px; transform: translate(6px, 6px) rotate(-12deg); }
.dr-comp.is-note .dr-under { width: 108px; height: 61px; transform: translate(4px, 5px) rotate(-3deg); }
.dr-under svg { width: 100%; height: 100%; }
.dr-src { cursor: grab; }
.dr-src.tk-dragging { z-index: 1000; }
.dr-comp.is-glow { animation: glow 1s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--sun), 0 0 0 12px rgba(255, 197, 61, .4); } }
.dr-comp.got { background: var(--go-soft); }
.drawer.is-stash .dr-src { pointer-events: none; }
.drawer.is-stash .dr-comp { background: #FFF6E3; }
.drawer.is-stash .dr-comp.tk-drop-ok { background: var(--sun-soft); }
.day-board[data-mode="port"] .dr-comp.is-coin { width: 92px; height: 92px; }
.day-board[data-mode="port"] .dr-comp.is-note { width: 132px; height: 86px; }
.day-board[data-mode="port"] .drawer { padding: 8px; gap: 8px; }
.day-board[data-mode="wide"] .drawer { padding: 8px; gap: 6px; }
.day-board[data-mode="wide"] .dr-row { gap: 6px; }
.day-board[data-mode="wide"] .dr-comp.is-coin { width: 74px; height: 74px; }
.day-board[data-mode="wide"] .dr-comp.is-note { width: 98px; height: 70px; }
.day-board[data-mode="wide"] .dr-comp.is-note .mp { width: 90px; height: 51px; }
.day-board[data-mode="wide"] .dr-comp.is-note .dr-under { width: 86px; height: 48px; }
.day-board[data-mode="wide"] .dr-comp.is-coin .mp { width: 54px; height: 54px; }
.day-board[data-mode="wide"] .dr-comp.is-coin .dr-under { width: 50px; height: 50px; }
/* keypad */
.keypad { display: flex; align-items: stretch; gap: 14px; padding: 10px; background: #FFF0CC; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.kp-disp { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 170px; padding: 0 16px; background: #2E5C46; color: #B8FFD6; border: 4px solid var(--ink); border-radius: 14px; font-size: 44px; font-weight: 1000; font-variant-numeric: tabular-nums; }
.kp-unit { font-size: 22px; opacity: .8; }
.keypad.is-empty .kp-val::after { content: "_"; animation: blinkc 1s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.kp-keys { display: grid; grid-template-columns: repeat(6, 78px); grid-auto-rows: 74px; gap: 8px; }
.kp-key { font: inherit; font-size: 34px; font-weight: 1000; background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kp-key svg { width: 36px; height: 36px; }
.kp-key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.kp-key.kp-ok { background: var(--go); color: #fff; }
.kp-key.kp-back { background: #FFE1DC; }
.kp-key[disabled] { opacity: .5; }
.keypad.kp-ok-f .kp-disp { background: #17A565; }
.keypad.kp-no-f { animation: kpno .4s ease; }
@keyframes kpno { 30% { translate: -8px 0; } 60% { translate: 8px 0; } }
.keypad.kp-full .kp-disp { animation: kpno .3s ease; }
.day-board[data-mode="port"] .keypad { flex-direction: column; }
.day-board[data-mode="port"] .kp-disp { min-height: 64px; }
.day-board[data-mode="port"] .kp-keys { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 76px; }
.day-board[data-mode="wide"] .keypad { flex-direction: column; padding: 8px; gap: 8px; }
.day-board[data-mode="wide"] .kp-disp { min-height: 56px; font-size: 36px; }
.day-board[data-mode="wide"] .kp-keys { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 58px; gap: 6px; }
.day-board[data-mode="wide"] .kp-key { font-size: 28px; }

/* ================================================================ checkout scene */
.ck { position: absolute; top: 0; right: 0; bottom: 0; left: 0; --C: 160px; --S: 100px; --F: 60px; --ch: 300px; --cw: 250px; --good: 84px; }
.ck-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; background: #FFF3D9; }
.ck-bg > svg { width: 100%; height: 100%; display: block; }
.ck-cust { position: absolute; left: 50%; bottom: calc(var(--C) - 48px); width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); z-index: 2; pointer-events: none; }
.ck-cust svg { width: 100%; height: 100%; display: block; }
.ck-cust.enter { animation: cust-in .65s cubic-bezier(.3, 1.3, .5, 1) both; }
.ck-cust.leave { animation: cust-out .6s ease-in both; }
@keyframes cust-in { from { transform: translateX(70%) translateY(16px); opacity: 0; } 60% { transform: translateX(-3%) translateY(-6px); opacity: 1; } }
@keyframes cust-out { to { transform: translateX(80%) translateY(10px); opacity: 0; } }
.ck-cust:not(.enter):not(.leave) svg { animation: cust-breathe 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cust-breathe { 50% { transform: scaleY(1.015) translateY(-2px); } }
.ck-cust.c-is-mrvko { width: calc(var(--cw) * .45); height: calc(var(--ch) * .45); margin-left: calc(var(--cw) * -.1); bottom: calc(var(--C) - 22px); z-index: 4; }
.ck-cust.c-is-dugica { bottom: calc(var(--C) - 30px); height: calc(var(--ch) + 30px); }
.ck-cbubble { position: absolute; left: 3%; top: 14px; max-width: 36%; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); animation: tk-pop-in .35s var(--ease-pop) both; }
.ck-cbubble::after { content: ""; position: absolute; right: -16px; top: 26px; border: 10px solid transparent; border-left: 14px solid var(--ink); }
.ck-li { position: relative; width: 56px; height: 56px; display: inline-flex; }
.ck-li svg { width: 100%; height: 100%; }
.ck-li b { position: absolute; right: -8px; bottom: -6px; font-size: 20px; font-weight: 1000; background: var(--sun); border: 2.5px solid var(--ink); border-radius: 10px; padding: 0 5px; }
.ck-arrow { font-size: 34px; align-self: center; }
.ck-li.ck-coins { width: auto; gap: 2px; }
.ck-li.ck-coins svg { width: 40px; height: 40px; }
.ck-cbubble .ck-li:has(.art-note) { width: 92px; }
/* counter */
.ck-counter { position: absolute; left: 0; right: 0; bottom: 0; height: var(--C); z-index: 3; }
.ck-surface { position: absolute; left: 0; right: 0; top: 0; height: var(--S); display: flex; align-items: flex-end; background: linear-gradient(180deg, #E8B47E 0%, #DDA46A 100%); border: 4px solid var(--ink); border-radius: 14px 14px 0 0; padding: 0 8px 6px; }
.ck-front { position: absolute; left: 0; right: 0; bottom: 0; height: var(--F); background: #A86A38; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 26px 26px; display: flex; align-items: center; justify-content: center; }
.has-counter .ck-surface { background: linear-gradient(180deg, #FFF0CC 0%, #F2DDB0 100%); }
.has-counter .ck-front { background: repeating-linear-gradient(90deg, #2A6EE5 0 34px, #FFF6E3 34px 68px); }
.ck-left, .ck-center, .ck-right { position: relative; height: 100%; display: flex; align-items: flex-end; }
.ck-left { width: 28%; gap: 6px; }
.ck-center { flex: 1 1 auto; justify-content: center; gap: 8px; min-width: 0; }
.ck-right { width: 24%; justify-content: flex-end; }
.ck-bag { width: 64px; height: 72px; flex: 0 0 auto; margin-bottom: 2px; }
.ck-bag svg, .ck-scanner svg, .ck-till > svg { width: 100%; height: 100%; display: block; }
.ck-scanner { flex: 1 1 auto; max-width: 150px; height: 74px; margin-bottom: 4px; border-radius: 16px; }
.ck-scanner.flash .laser { animation: laser .35s ease 2; }
@keyframes laser { 50% { stroke: #fff; stroke-width: 7; } }
.ck-scanner.glow, .ck-scanner.tk-drop-ok { box-shadow: 0 0 0 6px var(--sun); }
.ck-goods { display: flex; align-items: flex-end; justify-content: center; gap: 8px; min-width: 0; }
.ck-good { position: relative; width: var(--good); height: var(--good); flex: 0 1 auto; display: flex; align-items: flex-end; justify-content: center; }
.ck-good-art { width: 100%; height: 100%; }
.ck-good-art svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 0 rgba(36, 38, 59, .25)); }
.ck-good.pop { animation: tk-pop-in .4s var(--ease-pop) both; }
.ck-tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font-size: 18px; font-weight: 1000; padding: 0 7px; background: #FFF6E3; border: 2.5px solid var(--ink); border-radius: 8px; }
.ck-qty { position: absolute; right: -6px; top: -6px; font-size: 20px; font-weight: 1000; background: var(--sun); border: 2.5px solid var(--ink); border-radius: 10px; padding: 0 5px; }
.ck-good.scanned { visibility: hidden; }
.ck-mat { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 60%; }
.ck-mat:empty { display: none; }
.ck-mat .mp { transform: rotate(-6deg); }
.ck-mat .mp.big { width: 132px; height: 74px; }
.ck-paw { position: relative; display: none; width: 210px; height: calc(var(--S) - 6px); flex: 0 0 auto; align-items: flex-end; justify-content: center; border-radius: 20px; }
.ck-paw.is-open { display: flex; }
.ck-paw-art { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; }
.ck-paw-art svg { width: 100%; height: 100%; display: block; }
.ck-paw-items { position: relative; display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: center; gap: 0 2px; padding: 0 16px 10px; max-height: 100%; }
.ck-paw-items .mp.is-coin { width: 50px; height: 50px; margin: 0 -6px; }
.ck-paw-items .mp.is-note { width: 88px; height: 50px; margin: 0 -10px -8px; }
.ck-paw.tk-drop-ok { box-shadow: 0 0 0 5px rgba(255, 197, 61, .7); }
.ck-paw.ok .ck-paw-art { filter: drop-shadow(0 0 10px #17A565); }
.ck-till { position: relative; width: min(100%, 190px); height: calc(var(--S) + 70px); margin-bottom: -2px; }
.ck-disp { position: absolute; left: 25%; right: 25%; top: 11.5%; height: 24%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 1000; color: #B8FFD6; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ck-disp.is-idle { font-size: 11px; letter-spacing: .05em; }
.ck-disp.is-ask { color: #FFE07A; animation: blinkc 1s steps(1) infinite; }
.ck-cat { position: absolute; right: -6px; bottom: calc(var(--S) - 8px); width: 96px; height: 75px; padding: 0; background: none; border: 0; cursor: pointer; z-index: 2; }
.ck-cat svg { width: 100%; height: 100%; display: block; }
.ck-tape { position: absolute; right: 3%; bottom: calc(var(--C) + 54px); width: 24%; max-height: calc(100% - var(--C) - 70px); z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; }
.tp-paper { background: #fff; border: 3px solid var(--ink); border-radius: 6px 6px 0 0; padding: 6px 10px 8px; box-shadow: 4px 4px 0 rgba(36, 38, 59, .18); font-variant-numeric: tabular-nums; }
.tp-row { display: flex; align-items: center; gap: 6px; font-size: 22px; line-height: 1.25; border-bottom: 2px dashed #D9D2C3; }
.tp-ico { width: 30px; height: 30px; flex: 0 0 auto; }
.tp-ico svg { width: 100%; height: 100%; }
.tp-q { font-size: 16px; color: var(--ink-2); flex: 1 1 auto; }
.tp-row b { margin-left: auto; font-weight: 1000; }
.tp-sum { display: flex; justify-content: space-between; font-size: 26px; font-weight: 1000; padding-top: 4px; }
.tp-sum b { color: var(--tomato); }
.ck-tape.is-help .tp-row b, .ck-tape.is-help .tp-sum b { letter-spacing: .12em; }
.ck-tape.is-help .tp-paper { box-shadow: 0 0 0 5px var(--sun); }
.ck-tape.receipt { animation: receipt .9s ease-in both; }
@keyframes receipt { 0% { transform: none; } 60% { transform: translateY(-8px) rotate(2deg); } 100% { transform: translateY(-30px) rotate(6deg); opacity: 0; } }
/* count-up track on the counter front */
.ck-track { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; max-width: 98%; overflow: hidden; padding: 4px 10px; background: #FFF6E3; border: 3px solid var(--ink); border-radius: 999px; font-variant-numeric: tabular-nums; }
.tr-n { font-size: 22px; font-weight: 1000; padding: 0 8px; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; }
.tr-n.tr-start { background: var(--sky-soft); }
.tr-n.tr-goal { background: var(--go-soft); }
.tr-n.tr-next { background: var(--sun); border-style: dashed; }
.tr-n.over { background: var(--orange-soft); color: var(--tomato); }
.tr-s { font-size: 17px; font-weight: 1000; color: var(--go); }
.tr-s.tr-hint { color: var(--sun-deep); }
.tr-dots { font-weight: 1000; color: var(--ink-3); }
.ck-purse { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 2px; max-width: 220px; padding: 8px 10px; background: #FFE29B; border: 3px solid var(--ink); border-radius: 18px; }
.ck-purse .mp.is-coin { width: 46px; height: 46px; }
.ck-purse .mp.is-note { width: 82px; height: 46px; }
.ck-purse.show-sum::after { content: "= " attr(data-sum); position: absolute; top: -26px; right: 6px; font-size: 22px; font-weight: 1000; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: 0 8px; }
.ck-backshelf { position: absolute; left: 4px; bottom: calc(100% + 6px); width: 160px; height: 96px; background: rgba(255, 255, 255, .6); border: 4px dashed var(--ink); border-radius: 16px; display: flex; align-items: flex-end; justify-content: center; }
.ck-backshelf::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 10px; background: var(--wood); border: 3px solid var(--ink); border-radius: 4px; }
.ck-backshelf .ck-good { width: 70px; height: 70px; margin-bottom: 14px; }
.ck-backshelf.done { border-color: transparent; background: none; }
.ck[data-mode="port"] .ck-left { width: 30%; }
.ck[data-mode="port"] .ck-right { width: 22%; }
.ck[data-mode="port"] .ck-scanner { height: 60px; }
.ck[data-mode="port"] .ck-bag { width: 52px; height: 60px; }
.ck[data-mode="port"] .ck-paw { width: 180px; }
.ck[data-mode="port"] .ck-tape { width: 30%; }
.ck[data-mode="port"] .ck-cbubble { max-width: 40%; }
.ck[data-mode="wide"] .ck-cbubble { max-width: 34%; padding: 6px 8px; }
.ck[data-mode="wide"] .ck-li { width: 44px; height: 44px; }
.ck[data-mode="wide"] .ck-bag { width: 50px; height: 56px; }
.ck[data-mode="wide"] .ck-scanner { height: 56px; }
.ck[data-mode="wide"] .ck-paw { width: 170px; }
.ck[data-mode="wide"] .ck-tape { width: 28%; }
.ck[data-mode="wide"] .tp-row { font-size: 19px; }
.door-open .door-leaf { transform: scaleX(.86); transform-box: fill-box; transform-origin: 100% 50%; transition: transform .25s; }
/* answer buttons in the tray */
.ans-row { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ans-row .bbtn svg { width: 54px; height: 46px; }
.day-board[data-mode="wide"] .ans-row { flex-direction: column; gap: 14px; }
.day-board[data-mode="wide"] .ans-row .bbtn { font-size: 22px; min-height: 72px; padding: 6px 14px; width: 230px; }
/* ghost feather */
.ghost-feather { position: fixed; left: 0; top: 0; width: 64px; height: 64px; z-index: 8600; pointer-events: none; opacity: 0; transition: opacity .2s; filter: drop-shadow(0 4px 0 rgba(36, 38, 59, .3)); }
.ghost-feather.is-on { opacity: 1; }
.ghost-feather svg { width: 100%; height: 100%; display: block; transition: transform .15s; transform-origin: 10px 58px; }
.ghost-feather.is-down svg { transform: scale(.88) rotate(-8deg); }
.ghost-feather.is-tap svg { animation: ftap .26s ease; }
@keyframes ftap { 50% { transform: scale(.8); } }


/* ================================================================ shelves (morning) */
.sh { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sh-bg > svg { filter: saturate(.85) brightness(1.03); }
.sh-unit { position: absolute; left: 3%; right: 3%; top: 4%; bottom: 4%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; background: rgba(255, 246, 227, .93); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); }
.sh-tags .sh-unit { flex-direction: row; align-items: stretch; }
.sh-note { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 rgba(36, 38, 59, .2); transform: rotate(-1.5deg); flex: 0 0 auto; min-width: 0; }
.sh-note-h { font-size: 24px; font-weight: 1000; text-align: center; border-bottom: 3px dashed #D9D2C3; }
.sh-note-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 2px 6px; font: inherit; background: none; border: 0; border-radius: 10px; cursor: pointer; text-align: left; }
.sh-note-row:active { background: var(--sun-soft); }
.sh-ni { width: 46px; height: 46px; flex: 0 0 auto; }
.sh-ni svg { width: 100%; height: 100%; }
.sh-np { font-size: 26px; font-weight: 1000; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-note-row.is-words .sh-np { font-size: 19px; white-space: normal; line-height: 1.1; max-width: 170px; }
.sh-shelf { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 0 14px 0; flex: 1 1 auto; position: relative; min-width: 0; }
.sh-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 52px; height: 14px; background: var(--wood); border: 3px solid var(--ink); border-radius: 4px; z-index: 0; }
.sh-slot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sh-good { width: 86px; height: 86px; display: block; }
.sh-good svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 0 rgba(36, 38, 59, .22)); }
.sh-slot .sh-good { margin-bottom: 14px; }
.sh-holder { width: 104px; height: 48px; border: 3px dashed var(--ink-3); border-radius: 10px; background: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
.sh-slot.done .sh-holder { border-color: transparent; background: none; }
.sh-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 92px; padding: 2px 26px 2px 12px; font-size: 24px; font-weight: 1000; white-space: nowrap; font-variant-numeric: tabular-nums; background: #FFF6E3; border: 3px solid var(--ink); border-radius: 10px 22px 22px 10px; box-shadow: 0 4px 0 var(--ink); position: relative; }
.sh-tag::before { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.sh-tag.tk-draggable { min-height: 60px; min-width: 112px; font-size: 27px; padding-right: 26px; }
.sh-tagbox { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; padding: 12px; background: #A86A38; border: 4px solid var(--ink); border-radius: 20px; }
.sh-tag.fade { opacity: .35; }
.sh-arrow { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 1000; }
.sh-arrow svg { width: 120px; height: 24px; }
.sh-shelf-order { gap: 12px; }
.sh-shelf-order::after { bottom: -6px; }
.sh-oslot { position: relative; z-index: 1; width: 128px; height: 150px; border: 3px dashed var(--ink-3); border-radius: 14px; display: flex; align-items: flex-end; justify-content: center; background: rgba(255, 255, 255, .55); }
.sh-onum { position: absolute; left: 6px; top: 4px; font-size: 22px; font-weight: 1000; color: var(--ink-2); }
.sh-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; }
.sh-item .sh-good { width: 78px; height: 78px; }
.sh-item .sh-tag { min-height: 38px; font-size: 21px; min-width: 80px; }
.sh-crate { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: flex-end; padding: 8px 14px; min-height: 150px; min-width: 200px; background: repeating-linear-gradient(0deg, #D9A066 0 30px, #C98952 30px 34px); border: 4px solid var(--ink); border-radius: 14px; }
.sh-shelf-cmp { gap: 26px; }
.sh-shelf-cmp::after { display: none; }
.sh-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 18px; font: inherit; background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); cursor: pointer; min-width: 150px; }
.sh-card:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.sh-card .sh-good { width: 104px; height: 104px; }
.sh-card.is-group .sh-good { width: 60px; height: 60px; margin: 0 -8px; }
.sh-cgoods { display: flex; justify-content: center; }
.sh-card.ok { background: var(--go-soft); border-color: var(--go); }
.sh-card.no { animation: kpno .4s ease; }
.sh-card.show-total::after { content: "= " attr(data-total) " din"; position: absolute; top: -18px; right: -10px; font-size: 20px; font-weight: 1000; background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 0 8px; }
.sh-qdots > i { width: 20px; height: 20px; }
.sh-salestage { display: flex; justify-content: center; align-items: center; flex: 1 1 auto; }
.sh-salecard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sh-sign { font-size: 34px; font-weight: 1000; color: #fff; background: var(--tomato); border: 4px solid var(--ink); border-radius: 16px; padding: 4px 22px; transform: rotate(-3deg); box-shadow: 0 5px 0 var(--ink); }
.sh-salecard .sh-good.big { width: auto; height: 120px; display: flex; }
.sh-salecard .sh-good.big svg { width: 120px; height: 120px; }
.sh-tags2 { display: flex; gap: 18px; align-items: center; }
.sh-oldtag, .sh-newtag { font-size: 30px; font-weight: 1000; padding: 4px 16px; background: #FFF6E3; border: 3px solid var(--ink); border-radius: 12px; font-variant-numeric: tabular-nums; }
.sh-oldtag.crossed { text-decoration: line-through; text-decoration-color: var(--tomato); text-decoration-thickness: 4px; opacity: .7; }
.sh-newtag { background: #fff; border-style: dashed; color: var(--ink-3); }
.sh-newtag.printed { border-style: solid; color: var(--ink); background: var(--sun); animation: tk-pop-in .4s var(--ease-pop); }
.sh-help { font-size: 26px; font-weight: 1000; color: var(--sky); min-height: 34px; }
.sh[data-mode] .sh-unit { }
.day-board[data-mode="wide"] .sh-good, .day-board[data-mode="wide"] .sh-card .sh-good { width: 64px; height: 64px; }
.day-board[data-mode="wide"] .sh-holder { width: 92px; height: 42px; }
.day-board[data-mode="wide"] .sh-tag.tk-draggable { min-height: 54px; min-width: 96px; font-size: 22px; }
.day-board[data-mode="wide"] .sh-tagbox { gap: 8px; padding: 8px; }
.day-board[data-mode="wide"] .sh-unit { gap: 8px; padding: 8px; }
.day-board[data-mode="wide"] .sh-note-row { min-height: 44px; }
.day-board[data-mode="wide"] .sh-ni { width: 36px; height: 36px; }
.day-board[data-mode="wide"] .sh-np { font-size: 20px; }
.day-board[data-mode="wide"] .sh-oslot { width: 96px; height: 120px; }
.day-board[data-mode="wide"] .sh-item .sh-good { width: 56px; height: 56px; }
.day-board[data-mode="wide"] .sh-crate { min-height: 120px; gap: 4px; padding: 6px; }
.day-board[data-mode="wide"] .sh-item .sh-tag { font-size: 18px; min-height: 32px; min-width: 70px; }
.day-board[data-mode="port"] .sh-tags .sh-unit { flex-direction: column; }
.day-board[data-mode="port"] .sh-note { flex-direction: row; flex-wrap: wrap; justify-content: center; transform: none; }
.day-board[data-mode="port"] .sh-note-h { display: none; }
.day-board[data-mode="port"] .sh-good { width: 72px; height: 72px; }
.day-board[data-mode="port"] .sh-holder { width: 96px; }
.day-board[data-mode="port"] .sh-shelf { gap: 6px; padding: 0 4px; }
.day-board[data-mode="port"] .sh-oslot { width: 104px; height: 138px; }
.day-board[data-mode="port"] .sh-shelf-order { flex-wrap: wrap; align-content: center; }
.day-board[data-mode="port"] .sh-item .sh-good { width: 64px; height: 64px; }
.day-board[data-mode="port"] .sh-shelf-cmp { flex-wrap: wrap; gap: 14px; }
.day-board[data-mode="port"] .sh-card { min-width: 130px; padding: 10px; }
.day-board[data-mode="port"] .sh-card .sh-good { width: 84px; height: 84px; }

/* ================================================================ errands */
.er { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.er-bg > svg { width: 100%; height: 100%; }
.er-van { position: absolute; left: 2%; bottom: 4%; width: 44%; max-width: 330px; aspect-ratio: 260 / 160; }
.er-van svg, .er-bane svg { width: 100%; height: 100%; display: block; }
.er-bane { position: absolute; left: 47%; bottom: 0; width: 23%; max-width: 190px; aspect-ratio: 200 / 240; }
.er-table { position: absolute; right: 2%; bottom: 3%; width: 30%; min-height: 110px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px; background: #D9A066; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.er-table.tk-drop-ok { box-shadow: 0 6px 0 var(--ink), 0 0 0 6px var(--sun); }
.er-table-items { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0 2px; min-height: 64px; }
.er-table-items .mp.is-coin { width: 54px; height: 54px; margin: 0 -4px; }
.er-table-items .mp.is-note { width: 96px; height: 54px; margin: 0 -6px; }
.er-note { position: absolute; right: 3%; top: 4%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 rgba(36, 38, 59, .2); transform: rotate(2deg); max-width: 44%; }
.er-note-goods { display: flex; gap: 6px; }
.er-ng { position: relative; width: 60px; height: 60px; }
.er-ng svg { width: 100%; height: 100%; }
.er-ng b { position: absolute; right: -8px; bottom: -6px; font-size: 18px; background: var(--sun); border: 2.5px solid var(--ink); border-radius: 9px; padding: 0 4px; }
.er-note-lines { font-size: 19px; font-weight: 900; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.er-note-lines i { font-style: normal; color: var(--ink-3); }
.er-note-price { font-size: 34px; font-weight: 1000; color: var(--tomato); white-space: nowrap; }
.er-sum { position: absolute; right: 4%; bottom: calc(3% + 140px); font-size: 26px; font-weight: 900; background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 12px; }
.wallet { display: flex; align-items: center; justify-content: center; padding: 10px 14px; background: #8E5B33; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); max-width: 100%; }
.wl-in { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; min-height: 70px; min-width: 120px; }
.wallet.is-tika { background: #6A44D6; }
.drawer.is-purse { background: #6A44D6; }
.er-est-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 22px; background: #FFF6E3; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink); }
.er-est-goods { position: relative; display: flex; gap: 14px; }
.er-eg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.er-eg svg { width: 76px; height: 76px; }
.er-eg b { font-size: 24px; font-weight: 1000; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 0 8px; white-space: nowrap; }
.er-est-purse { font-size: 28px; font-weight: 900; } .er-est-purse b { color: var(--go); }
.er-est-card.show-sum .er-est-goods::after { content: attr(data-sum); position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-size: 24px; font-weight: 1000; color: var(--tomato); white-space: nowrap; }
.er-clip { position: absolute; left: 2%; top: 3%; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: #fff; border: 3px solid var(--ink); border-top: 12px solid #8E5B33; border-radius: 12px; box-shadow: 4px 4px 0 rgba(36, 38, 59, .2); z-index: 2; }
.er-clip-h { font-size: 22px; font-weight: 1000; text-align: center; }
.er-li { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 1000; }
.er-mark { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--ink); border-radius: 8px; font-size: 18px; }
.need-mark { background: var(--go-soft); color: var(--go); }
.want-mark { background: var(--pink-soft); color: var(--tomato); }
.er-ico { width: 44px; height: 44px; } .er-ico svg { width: 100%; height: 100%; }
.er-li.got { opacity: .45; text-decoration: line-through; }
.er-crates { position: absolute; right: 2%; bottom: 3%; left: 30%; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: flex-end; z-index: 2; }
.er-crate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px 8px; background: repeating-linear-gradient(0deg, #D9A066 0 26px, #C98952 26px 30px); border: 3px solid var(--ink); border-radius: 12px; }
.er-crate.is-need { box-shadow: 0 0 0 5px var(--go); }
.er-good { width: 72px; height: 72px; } .er-good svg { width: 100%; height: 100%; }
.er-crate .sh-tag { min-height: 36px; font-size: 20px; min-width: 76px; }
.er-list .er-van { opacity: .9; width: 30%; left: 1%; bottom: auto; top: 46%; }
.er-basket { position: relative; width: 260px; height: 170px; display: flex; align-items: flex-end; justify-content: center; }
.er-basket-art { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.er-basket-art svg { width: 100%; height: 100%; }
.er-basket-items { position: relative; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 0; padding: 0 30px 22px; max-width: 100%; }
.er-bi { width: 58px; height: 58px; padding: 0; margin: 0 -4px; background: none; border: 0; cursor: pointer; }
.er-bi svg { width: 100%; height: 100%; }
.er-side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 260px; }
.er-meter { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.er-m-row { display: flex; justify-content: space-between; font-size: 22px; } .er-m-row b { font-weight: 1000; } .er-m-row b.neg { color: var(--tomato); }
.er-bar { height: 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--go-soft); overflow: hidden; }
.er-bar i { display: block; height: 100%; background: var(--sun); border-right: 3px solid var(--ink); transition: width .3s; }
.er-bar.over i { background: var(--tomato); }
.er-ask { display: flex; gap: 12px; justify-content: center; }
.er-yn { min-width: 110px; }
.dy-tray .er-basket + .er-side { margin-left: 18px; }
.day-board[data-mode="port"] .er-crates { left: 2%; top: 46%; bottom: 2%; }
.day-board[data-mode="port"] .er-list .er-van { display: none; }
.day-board[data-mode="port"] .er-clip { flex-direction: row; flex-wrap: wrap; left: 2%; right: 2%; justify-content: center; }
.day-board[data-mode="port"] .er-clip-h { display: none; }
.day-board[data-mode="port"] .dy-tray:has(.er-basket) { flex-direction: row; gap: 10px; }
.day-board[data-mode="port"] .er-basket { width: 230px; }
.day-board[data-mode="port"] .er-side { min-width: 230px; }
.day-board[data-mode="port"] .er-bane { left: auto; right: 30%; }
.day-board[data-mode="port"] .er-van { width: 52%; top: 22%; bottom: auto; }
.day-board[data-mode="port"] .er-table { width: 54%; }
.day-board[data-mode="port"] .er-note { left: 3%; right: auto; max-width: 60%; }
.day-board[data-mode="wide"] .dy-tray:has(.er-basket) { flex-direction: column; gap: 8px; }
.day-board[data-mode="wide"] .er-basket { width: 220px; height: 130px; }
.day-board[data-mode="wide"] .er-basket-art { height: 90px; }
.day-board[data-mode="wide"] .er-side { min-width: 0; width: 300px; flex-direction: row; align-items: center; }
.day-board[data-mode="wide"] .er-meter { flex: 1 1 auto; padding: 4px 8px; }
.day-board[data-mode="wide"] .er-m-row { font-size: 17px; }
.day-board[data-mode="wide"] .er-good { width: 54px; height: 54px; }
.day-board[data-mode="wide"] .er-crates { left: 28%; gap: 6px; }
.day-board[data-mode="wide"] .er-clip { padding: 6px 8px; } .day-board[data-mode="wide"] .er-ico { width: 34px; height: 34px; }
.day-board[data-mode="wide"] .er-note-price { font-size: 26px; } .day-board[data-mode="wide"] .er-ng { width: 46px; height: 46px; }
.day-board[data-mode="wide"] .er-est-card { padding: 10px 14px; gap: 6px; } .day-board[data-mode="wide"] .er-eg svg { width: 56px; height: 56px; }

/* ================================================================ evening */
.ck.is-evening .ck-bg > svg { filter: brightness(.86) saturate(.9); }
.ck-scanner.off { opacity: .5; }
.ev-pile { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0 2px; max-width: 100%; padding-bottom: 6px; }
.ev-pile .mp { rotate: var(--r); margin: 0 -6px -10px; }
.ev-pile .mp.is-coin { width: 58px; height: 58px; }
.ev-pile .mp.is-note { width: 100px; height: 56px; }
.ev-boxes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: stretch; }
.ev-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 104px; min-height: 120px; padding: 6px 8px 8px; background: #F2E3C8; border: 4px solid var(--ink); border-radius: 16px; }
.ev-box.is-note { min-width: 130px; }
.ev-lbl { width: 46px; height: 46px; opacity: .8; } .ev-box.is-note .ev-lbl { width: 76px; height: 43px; }
.ev-lbl svg { width: 100%; height: 100%; }
.ev-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; max-width: 150px; }
.ev-in .mp.is-coin { width: 36px; height: 36px; margin: 0 -5px -6px; }
.ev-in .mp.is-note { width: 66px; height: 37px; margin: 0 -10px -12px; }
.ev-sub { font-size: 17px; font-weight: 1000; color: var(--sky); white-space: nowrap; }
.ev-boxes.small .ev-box { min-height: 80px; min-width: 70px; padding: 4px; }
.ev-boxes.small .ev-lbl { width: 32px; height: 32px; } .ev-boxes.small .ev-box.is-note .ev-lbl { width: 54px; height: 30px; }
.ev-boxes.small .ev-sub { font-size: 14px; }
.dy-tray:has(.keypad) { gap: 12px; }
.ev-tiles { display: flex; gap: 16px; }
.ev-tile { min-width: 120px; min-height: 84px; font: inherit; font-size: 40px; font-weight: 1000; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.ev-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.dy-tray.ev-with-tiles { flex-direction: column; gap: 10px; }
.dy-tray.ev-with-tiles .ev-boxes { transform: scale(.8); margin: -14px 0; }
.day-board[data-mode="land"] .dy-tray:has(.keypad):has(.ev-boxes) .ev-boxes { max-width: 220px; }
.day-board[data-mode="port"] .dy-tray:has(.keypad):has(.ev-boxes) { flex-direction: column; }
.day-board[data-mode="wide"] .dy-tray:has(.keypad):has(.ev-boxes) .ev-boxes { display: none; }
.day-board[data-mode="wide"] .ev-box { min-width: 80px; min-height: 96px; } .day-board[data-mode="wide"] .ev-tiles { flex-direction: column; gap: 8px; } .day-board[data-mode="wide"] .ev-tile { min-height: 64px; font-size: 32px; }
.sv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sv-bg { background: linear-gradient(180deg, #2B2F6B 0%, #6B6FC4 70%, #F7B98A 100%) !important; }
.sv-pig { position: absolute; left: 6%; bottom: 8%; width: 42%; max-width: 330px; aspect-ratio: 120 / 100; border-radius: 30px; }
.sv-pig svg { width: 100%; height: 100%; display: block; }
.sv-pig.tk-drop-ok { box-shadow: 0 0 0 6px var(--sun); }
.sv-pig.gulp { animation: gulp .35s ease; }
@keyframes gulp { 40% { transform: scale(1.08, .94); } }
.sv-card { position: absolute; right: 4%; top: 6%; bottom: 6%; width: 40%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; background: #FFF6E3; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); }
.sv-dream { width: 70%; aspect-ratio: 160 / 140; } .sv-dream svg { width: 100%; height: 100%; }
.sv-dname { font-size: 22px; font-weight: 1000; text-align: center; line-height: 1.1; }
.sv-thermo { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-height: 0; }
.sv-bar { position: relative; width: 34px; height: 100%; min-height: 70px; background: #fff; border: 4px solid var(--ink); border-radius: 999px; overflow: hidden; }
.sv-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, #EC4A3D, #FF9636); transition: height .5s var(--ease-pop); }
.sv-nums { display: flex; flex-direction: column; font-size: 20px; font-weight: 900; } .sv-nums b { font-size: 30px; font-weight: 1000; }
.sv-mat { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; flex: 1 1 auto; min-height: 90px; padding: 10px; background: #C98952; border: 4px solid var(--ink); border-radius: 20px; }
.sv-right { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin-left: 12px; }
.sv-wallet { display: flex; flex-direction: column; align-items: center; min-width: 210px; min-height: 120px; padding: 6px; background: #8E5B33; border: 4px solid var(--ink); border-radius: 18px; color: #fff; }
.sv-wl-h { font-size: 20px; font-weight: 1000; }
.sv-wl-in { display: flex; flex-wrap: wrap; justify-content: center; }
.sv-wl-in .mp.is-coin { width: 40px; height: 40px; margin: 0 -4px; } .sv-wl-in .mp.is-note { width: 70px; height: 39px; margin: 0 -8px; }
.sv-plan { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sv-plan-row { display: flex; justify-content: space-between; font-size: 20px; } .sv-plan-row b { font-weight: 1000; }
.sv-days { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.sv-day { display: flex; flex-direction: column; align-items: center; padding: 2px 4px; border: 2.5px solid var(--ink); border-radius: 8px; background: #fff; font-size: 13px; }
.sv-day i { font-style: normal; font-weight: 1000; font-size: 16px; } .sv-day.reach { background: var(--go-soft); }
.day-board[data-mode="port"] .dy-tray:has(.sv-mat) { flex-direction: column; gap: 10px; }
.day-board[data-mode="port"] .sv-right { flex-direction: row; margin: 0; }
.day-board[data-mode="port"] .sv-mat { width: 100%; }
.day-board[data-mode="wide"] .dy-tray:has(.sv-mat) { flex-direction: column; gap: 8px; }
.day-board[data-mode="wide"] .sv-right { flex-direction: row; margin: 0; } .day-board[data-mode="wide"] .sv-wallet { min-width: 170px; min-height: 90px; }
.day-board[data-mode="wide"] .sv-mat .mp.is-coin { width: 52px; height: 52px; } .day-board[data-mode="wide"] .sv-mat .mp.is-note { width: 90px; height: 51px; }

/* ================================================================ shop screen */
.sp-panel { flex-direction: row; align-items: stretch; gap: 20px; }
.sp-left { flex: 0 0 34%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.sp-facade { width: 100%; max-height: 100%; aspect-ratio: 180 / 220; }
.sp-facade svg { width: 100%; height: 100%; display: block; }
.sp-right { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: stretch; min-width: 0; }
.sp-cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sp-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80px; font: inherit; background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.sp-dn { font-size: 30px; font-weight: 1000; line-height: 1; }
.sp-ds { display: flex; } .sp-ds svg { width: 16px; height: 16px; color: var(--sun-deep); }
.sp-day.done { background: var(--go-soft); }
.sp-day.next { background: var(--sun); animation: tk-call 2.4s ease-in-out infinite; }
.sp-day.locked { background: #ECEDF3; color: var(--ink-3); box-shadow: 0 3px 0 var(--ink-3); border-color: var(--ink-3); }
.sp-dl svg { width: 20px; height: 20px; }
.sp-open { align-self: center; }
.sp-dream { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 4px solid var(--ink); border-radius: 20px; cursor: pointer; flex-wrap: wrap; }
.sp-dream.is-ready { background: var(--sun-soft); box-shadow: 0 0 0 6px var(--sun); }
.sp-dpic { width: 116px; aspect-ratio: 160 / 140; flex: 0 0 auto; } .sp-dpic svg { width: 100%; height: 100%; }
.sp-goldsign { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 1000; font-size: 18px; text-align: center; background: #FFD45C; border: 4px solid var(--ink); border-radius: 14px; }
.sp-goldsign.big { font-size: 34px; padding: 20px; }
.sp-dinfo { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-dname { font-size: 23px; font-weight: 1000; }
.sp-thermo { display: flex; align-items: center; gap: 8px; }
.sp-pig { width: 52px; height: 44px; flex: 0 0 auto; } .sp-pig svg { width: 100%; height: 100%; }
.sp-bar { flex: 1 1 auto; height: 24px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #EC4A3D, #FF9636); border-right: 3px solid var(--ink); }
.sp-dnums { font-size: 20px; font-weight: 900; } .sp-dnums b { font-size: 24px; }
.sp-make { margin-left: auto; }
.sp-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-wallet .ls-money { font-size: 26px; min-height: 56px; padding: 4px 18px; cursor: pointer; }
.sp-cine { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(36, 38, 59, .55); color: #fff; }
.sp-cine b { font-size: 46px; font-weight: 1000; text-shadow: 0 4px 0 var(--ink); }
.sp-cine-pic { width: 360px; max-width: 70%; aspect-ratio: 160 / 140; animation: cine 1.2s var(--ease-pop) both; background: #FFF6E3; border: 5px solid var(--ink); border-radius: 30px; padding: 14px; }
.sp-cine-pic svg { width: 100%; height: 100%; }
@keyframes cine { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.board[data-mode="port"] .sp-panel { flex-direction: column; }
.board[data-mode="port"] .sp-left { flex: 1 1 auto; min-height: 0; max-height: 36%; }
.board[data-mode="port"] .sp-facade { width: auto; height: 100%; }
.board[data-mode="port"] .sp-right { flex: 0 0 auto; }
.board[data-mode="wide"] .sp-panel { gap: 10px; }
.board[data-mode="wide"] .sp-left { flex-basis: 26%; }
.board[data-mode="wide"] .sp-right { gap: 8px; }
.board[data-mode="wide"] .sp-day { min-height: 60px; }
.board[data-mode="wide"] .sp-dn { font-size: 24px; }
.board[data-mode="wide"] .sp-open { min-height: 70px; font-size: 28px; padding: 4px 24px; }
.board[data-mode="wide"] .sp-dream { padding: 4px 10px; } .board[data-mode="wide"] .sp-dpic { width: 70px; }
.board[data-mode="wide"] .sp-dname { font-size: 18px; } .board[data-mode="wide"] .sp-dnums { font-size: 16px; }
.board[data-mode="wide"] .sp-wallet .bbtn { min-height: 60px; font-size: 22px; }

/* ================================================================ workshop */
.ws-panel { flex-direction: row; align-items: stretch; gap: 18px; }
.ws-left { position: relative; flex: 0 0 34%; display: flex; align-items: center; justify-content: center; }
.ws-preview { width: 100%; aspect-ratio: 180 / 220; } .ws-preview svg { width: 100%; height: 100%; display: block; }
.ws-zubko { position: absolute; right: -16px; bottom: -10px; width: 40%; aspect-ratio: 200 / 240; } .ws-zubko svg { width: 100%; height: 100%; }
.ws-zubko.hammer { animation: hammer .22s ease-in-out 4; transform-origin: 50% 100%; }
@keyframes hammer { 50% { transform: rotate(-8deg) translateY(4px); } }
.ws-right { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ws-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; font: inherit; background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; min-height: 120px; }
.ws-card.own { background: var(--go-soft); }
.ws-ic { width: 64px; height: 48px; display: inline-flex; } .ws-ic svg { width: 100%; height: 100%; }
.ws-nm { font-size: 17px; font-weight: 900; text-align: center; line-height: 1.1; }
.ws-pr { font-size: 20px; font-weight: 1000; white-space: nowrap; } .ws-pr svg { width: 26px; height: 26px; color: var(--go); }
.ws-detail { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ws-dh { display: flex; align-items: center; gap: 12px; font-size: 28px; }
.ws-choices, .ws-names { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ws-color { width: 76px; height: 64px; border: 4px solid var(--ink); border-radius: 14px; background: repeating-linear-gradient(90deg, var(--a) 0 16px, var(--b) 16px 32px); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.ws-color.on, .ws-name.on { outline: 5px solid var(--sun); outline-offset: 3px; }
.ws-name { min-height: 60px; padding: 4px 16px; font: inherit; font-size: 22px; font-weight: 900; background: #fff; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.ws-btns { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ws-short { font-size: 24px; font-weight: 1000; color: var(--tomato); padding: 8px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.ws-table { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 150px; padding: 10px; background: #D9A066; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.ws-table.tk-drop-ok { box-shadow: 0 6px 0 var(--ink), 0 0 0 6px var(--sun); }
.ws-need { font-size: 28px; font-weight: 1000; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 0 12px; }
.ws-table-in { display: flex; flex-wrap: wrap; justify-content: center; }
.ws-wallet { width: 100%; display: flex; justify-content: center; }
.board[data-mode="port"] .ws-panel { flex-direction: column; } .board[data-mode="port"] .ws-left { flex: 1 1 auto; min-height: 0; max-height: 32%; } .board[data-mode="port"] .ws-preview { height: 100%; width: auto; }
.board[data-mode="wide"] .ws-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .board[data-mode="wide"] .ws-card { min-height: 92px; padding: 4px; } .board[data-mode="wide"] .ws-ic { width: 48px; height: 36px; } .board[data-mode="wide"] .ws-nm { font-size: 14px; }
.board[data-mode="wide"] .ws-left { flex-basis: 24%; } .board[data-mode="wide"] .ws-table { min-height: 100px; }

/* ================================================================ neighbours */
.nb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 100%; }
.nb-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; font: inherit; background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; min-height: 120px; }
.nb-pic { width: 100%; aspect-ratio: 200 / 210; overflow: hidden; } .nb-pic svg { width: 100%; height: auto; display: block; }
.nb-name { font-size: 18px; font-weight: 1000; }
.nb-hearts { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 1000; } .nb-hearts svg { width: 22px; height: 22px; color: var(--tomato); } .nb-hearts i { font-style: normal; }
.nb-card.unmet .nb-pic { filter: grayscale(1) brightness(1.5) contrast(.4); }
.board[data-mode="port"] .nb-grid { grid-template-columns: repeat(3, 1fr); }
.board[data-mode="wide"] .nb-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; } .board[data-mode="wide"] .nb-card { min-height: 0; padding: 3px; } .board[data-mode="wide"] .nb-pic { aspect-ratio: 200 / 150; } .board[data-mode="wide"] .nb-name, .board[data-mode="wide"] .nb-hearts { font-size: 14px; }

/* ================================================================ parents */
.par { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: .6rem; padding: .7rem clamp(.7rem, 3vw, 2rem) 1rem; background: var(--paper); }
.par-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.par-tab { min-height: 48px; cursor: pointer; font-size: 1rem; }
.par-tab[aria-selected="true"] { background: var(--sun); }
.par-body { flex: 1 1 auto; min-height: 0; background: #fff; border: var(--line) solid var(--ink); border-radius: var(--r); padding: .8rem 1.1rem; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.par-body h2 { font-size: 1.2rem; margin: .7rem 0 .3rem; font-weight: 900; } .par-body h2:first-child { margin-top: 0; }
.par-body ul { margin: .2rem 0; padding-left: 1.2rem; } .par-body li { margin: .2rem 0; }
.par-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .5rem 0; border-bottom: 2px dashed #E6E2D6; }
.par-row .lbl { min-width: 9rem; font-weight: 900; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.seg button { min-height: 48px; padding: .3rem .9rem; font-weight: 900; background: #fff; border: 3px solid var(--ink); border-radius: 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--sun); }
.par-profiles { display: flex; gap: .6rem; margin-bottom: .4rem; }
.pic-btn { width: 56px; height: 56px; padding: 4px; background: #fff; border: 3px solid var(--ink); border-radius: 50%; cursor: pointer; }
.pic-btn[aria-pressed="true"] { background: var(--sun); }
.par-danger { display: flex; gap: .6rem; flex-wrap: wrap; }
.par-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.par-table th, .par-table td { border-bottom: 2px solid #E6E2D6; padding: .35rem .4rem; text-align: left; }
.par-stats { margin-top: .6rem; }

/* ================================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .t-cust1, html:not([data-motion="full"]) .t-cust2, html:not([data-motion="full"]) .lights .bulb,
  html:not([data-motion="full"]) .cat-z, html:not([data-motion="full"]) .water, html:not([data-motion="full"]) .art-cust .c-eyes-open { animation: none !important; }
}
html[data-motion="reduce"] .t-cust1, html[data-motion="reduce"] .t-cust2, html[data-motion="reduce"] .lights .bulb,
html[data-motion="reduce"] .cat-z, html[data-motion="reduce"] .water, html[data-motion="reduce"] .art-cust .c-eyes-open { animation: none !important; }

.drawer[data-notes="5"] .dr-comp.is-note, .drawer[data-notes="6"] .dr-comp.is-note, .drawer[data-notes="7"] .dr-comp.is-note { width: 100px; height: 76px; }
.drawer[data-notes="5"] .dr-comp.is-note .mp, .drawer[data-notes="6"] .dr-comp.is-note .mp, .drawer[data-notes="7"] .dr-comp.is-note .mp { width: 90px; height: 51px; }
.drawer[data-notes="5"] .dr-comp.is-note .dr-under, .drawer[data-notes="6"] .dr-comp.is-note .dr-under, .drawer[data-notes="7"] .dr-comp.is-note .dr-under { width: 86px; height: 48px; }
.drawer[data-n="9"] .dr-comp.is-coin, .drawer[data-n="10"] .dr-comp.is-coin { width: 78px; height: 78px; }
.ev-in .mp.is-coin { margin-bottom: -16px; } .ev-in .mp.is-note { margin-bottom: -22px; }
.ev-box { max-height: 196px; }
.ev-boxes.on-counter { flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; }
.ev-boxes.on-counter .ev-box { min-height: 0; min-width: 0; padding: 2px 4px; }
.ev-boxes.on-counter .ev-in { display: none; }
.ev-boxes.on-counter .ev-box::after { content: attr(data-n); font-size: 18px; font-weight: 1000; }
/* wide phones: compact drawers (up to 10 kinds in the right column) */
.day-board[data-mode="wide"] .dr-row { gap: 4px; }
.day-board[data-mode="wide"] .drawer { gap: 4px; padding: 6px; }
.day-board[data-mode="wide"] .drawer[data-n="7"] .dr-comp.is-coin, .day-board[data-mode="wide"] .drawer[data-n="9"] .dr-comp.is-coin, .day-board[data-mode="wide"] .drawer[data-n="10"] .dr-comp.is-coin { width: 60px; height: 60px; }
.day-board[data-mode="wide"] .drawer[data-n="7"] .dr-comp.is-coin .mp, .day-board[data-mode="wide"] .drawer[data-n="9"] .dr-comp.is-coin .mp, .day-board[data-mode="wide"] .drawer[data-n="10"] .dr-comp.is-coin .mp { width: 48px; height: 48px; }
.day-board[data-mode="wide"] .drawer[data-n="9"] .dr-comp.is-note, .day-board[data-mode="wide"] .drawer[data-n="10"] .dr-comp.is-note { width: 96px; height: 58px; }
.day-board[data-mode="wide"] .drawer[data-n="9"] .dr-comp.is-note .mp, .day-board[data-mode="wide"] .drawer[data-n="10"] .dr-comp.is-note .mp { width: 84px; height: 47px; }
.day-board[data-mode="wide"] .drawer[data-n="9"] .dr-comp.is-note .dr-under, .day-board[data-mode="wide"] .drawer[data-n="10"] .dr-comp.is-note .dr-under { width: 80px; height: 45px; }
.day-board[data-mode="wide"] .dr-notes { max-width: 310px; }
.ck[data-mode="wide"] .ck-tape { width: 34%; }
.ck[data-mode="wide"] .tp-q { font-size: 13px; }
.day-board[data-mode="port"] .ans-row { gap: 12px; flex-wrap: nowrap; }
.day-board[data-mode="port"] .ans-row .bbtn { font-size: 22px; padding: 6px 12px; min-height: 84px; }
.day-board[data-mode="port"] .ans-row .bbtn svg { width: 40px; height: 36px; }
.day-board[data-mode="wide"] .er-side { flex-direction: column; width: 100%; align-items: stretch; }
.day-board[data-mode="wide"] .er-side .bbtn { min-height: 60px; font-size: 22px; }
.day-board[data-mode="wide"] .dy-tray:has(.er-basket) .er-basket { height: 110px; }
.day-board[data-mode="wide"] .er-ask .bbtn { min-width: 0; flex: 1 1 0; }
.ev-boxes.on-counter { flex-wrap: wrap; justify-content: center; }
.ck[data-mode="port"] .ev-boxes.on-counter .ev-box { min-width: 0; }
.ck[data-mode="port"] .ev-boxes.on-counter .ev-lbl { width: 30px; height: 30px; }
.ck[data-mode="port"] .ev-boxes.on-counter .ev-box.is-note .ev-lbl { width: 50px; height: 28px; }

.board[data-mode="land"] .sq-btns .bbtn { font-size: 23px; min-height: 70px; padding: 6px 16px; }
.board[data-mode="land"] .sq-bubble { max-width: 330px; }
.ws-zubko { right: -6px; bottom: 0; width: 44%; }
/* calm motion for everything the game animates itself */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .ck-cust.enter, html:not([data-motion="full"]) .ck-cust.leave, html:not([data-motion="full"]) .ck-cust svg,
  html:not([data-motion="full"]) .sp-day.next, html:not([data-motion="full"]) .sq-here, html:not([data-motion="full"]) .sq-dream.is-done,
  html:not([data-motion="full"]) .in-keys, html:not([data-motion="full"]) .ws-zubko.hammer, html:not([data-motion="full"]) .dy-phase,
  html:not([data-motion="full"]) .sp-cine-pic, html:not([data-motion="full"]) .ck-tape.receipt, html:not([data-motion="full"]) .sv-pig.gulp,
  html:not([data-motion="full"]) .dr-comp.is-glow, html:not([data-motion="full"]) .ck-good.pop, html:not([data-motion="full"]) .rbtn.rb-glow { animation: none !important; }
}
html[data-motion="reduce"] .ck-cust.enter, html[data-motion="reduce"] .ck-cust.leave, html[data-motion="reduce"] .ck-cust svg,
html[data-motion="reduce"] .sp-day.next, html[data-motion="reduce"] .sq-here, html[data-motion="reduce"] .sq-dream.is-done,
html[data-motion="reduce"] .in-keys, html[data-motion="reduce"] .ws-zubko.hammer, html[data-motion="reduce"] .dy-phase,
html[data-motion="reduce"] .sp-cine-pic, html[data-motion="reduce"] .ck-tape.receipt, html[data-motion="reduce"] .sv-pig.gulp,
html[data-motion="reduce"] .dr-comp.is-glow, html[data-motion="reduce"] .ck-good.pop, html[data-motion="reduce"] .rbtn.rb-glow { animation: none !important; }
html[data-motion="reduce"] .dr-comp.is-glow, html[data-motion="reduce"] .rbtn.rb-glow { box-shadow: 0 0 0 6px var(--sun); }

.ck-paw-items .mp.is-note { width: 100px; height: 57px; }
.ck-paw-items .mp.is-coin { width: 56px; height: 56px; }
.day-board[data-mode="wide"] .sh-note-row { min-height: 54px; }
.drawer[data-notes="6"] .dr-comp.is-note, .drawer[data-notes="7"] .dr-comp.is-note { width: 94px; }
.drawer[data-notes="6"] .dr-notes, .drawer[data-notes="7"] .dr-notes { gap: 6px; }
.ev-box { max-height: 176px; }
.ev-in { max-height: 110px; }
.ev-pile { padding: 0 14px 6px; }
.board[data-mode="port"] .nb-grid { grid-template-columns: repeat(4, 1fr); }
.board[data-mode="port"] .nb-pic { aspect-ratio: 200 / 160; }
@media (max-width: 820px) { .dp-path { display: none; } }
.ck-goods { gap: 22px; }
.ck-good { flex: 0 0 auto; }
.ck-tag { font-size: 16px; padding: 0 5px; }
.ck-disp.is-idle { font-size: 26px; }
.day-board[data-mode="port"] .dy-tika { margin-left: 18px; }
.ck-paw-items .mp.is-note { width: 112px; height: 63px; margin: 0 -14px -8px; }
.ck-info { display: flex; align-items: center; gap: 8px; padding: 4px 14px; background: #FFF6E3; border: 3px solid var(--ink); border-radius: 999px; font-size: 18px; font-weight: 900; white-space: nowrap; }
.ck-info b { font-size: 24px; font-weight: 1000; font-variant-numeric: tabular-nums; margin-right: 6px; }
.ls-top-mid .ls-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* touch targets ≥ 48 px on screen at every viewport (smallest board scale ≈ 0.70) */
.kp-key { min-height: 72px; min-width: 70px; }
.day-board[data-mode="port"] .kp-keys { grid-auto-rows: 74px; }
.day-board[data-mode="port"] .kp-key { min-width: 0; }
.day-board[data-mode="wide"] .kp-keys { grid-auto-rows: 62px; grid-template-columns: repeat(3, 72px); }
.day-board[data-mode="wide"] .kp-key { min-height: 62px; }
.sh-note-row, .day-board[data-mode="wide"] .sh-note-row { min-height: 72px; }
.day-board[data-mode="port"] .sh-note-row { min-height: 70px; min-width: 70px; }
.ck-paw-items .mp.is-coin, .er-table-items .mp.is-coin, .ws-table-in .mp.is-coin { width: 70px; height: 70px; margin: 0 -8px; }
.er-table-items .mp.is-note, .ws-table-in .mp.is-note { width: 112px; height: 63px; }
.day-board[data-mode="wide"] .drawer .dr-comp.is-note { width: 104px; height: 64px; }
.day-board[data-mode="wide"] .drawer .dr-comp.is-note .mp { width: 100px; height: 57px; }
.day-board[data-mode="wide"] .drawer .dr-comp.is-note .dr-under { width: 94px; height: 53px; }
.day-board[data-mode="wide"] .dr-notes { max-width: 322px; }

.ghost-feather { visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.ghost-feather.is-on { visibility: visible; transition: opacity .2s; }
.day-board[data-mode="wide"] .drawer[data-n] .dr-comp.is-note { width: 104px; height: 64px; }
.day-board[data-mode="wide"] .drawer[data-n] .dr-comp.is-note .mp { width: 100px; height: 57px; }
.day-board[data-mode="wide"] .drawer[data-n] .dr-comp.is-note .dr-under { width: 94px; height: 53px; }
.day-board[data-mode="port"] .drawer[data-n] .dr-comp.is-coin .mp { width: 72px; height: 72px; }
.day-board[data-mode="port"] .drawer[data-n] .dr-comp.is-coin .dr-under { width: 66px; height: 66px; }
.day-board[data-mode="wide"] .sh-tags .sh-note { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; transform: none; }
.day-board[data-mode="wide"] .sh-tags .sh-note-h { display: none; }
.day-board[data-mode="wide"] .sh-note-row { min-height: 58px; }
.day-board[data-mode="wide"] .sh-tags .sh-unit { gap: 10px; }
.day-board[data-mode="port"] .keypad { width: 100%; }
.day-board[data-mode="port"] .kp-key { min-width: 72px; }
.day-board[data-mode="port"] .kp-keys { grid-template-columns: repeat(6, minmax(72px, 1fr)); }
.day-board[data-mode="port"] .sv-mat .mp.is-coin { width: 72px; height: 72px; }
.day-board[data-mode="port"] .sv-mat .mp.is-note { width: 112px; height: 63px; }
.day-board[data-mode="port"] .drawer[data-n] .dr-comp.is-note { width: 122px; height: 80px; }
.day-board[data-mode="port"] .drawer[data-n] .dr-comp.is-note .mp { width: 112px; height: 63px; }
.day-board[data-mode="port"] .drawer[data-n] .dr-comp.is-note .dr-under { width: 106px; height: 60px; }
