@font-face { font-family: 'MaruBuri'; font-weight: 400; font-display: swap;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff2) format('woff2'); }
@font-face { font-family: 'MaruBuri'; font-weight: 600; font-display: swap;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-SemiBold.woff2) format('woff2'); }

:root {
  --cream: #f2e9d7;
  --dim: rgba(242, 233, 215, .64);
  --faint: rgba(242, 233, 215, .36);
  --gold: #e3bd70;
  --btn: #efe2c9;
  --btn-ink: #24170e;
  --ink: #2a2118;           /* 포스트잇 위 펜 색 */
  --serif: 'MaruBuri', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --hand: 'Nanum Pen Script', 'MaruBuri', cursive;
  --nw: min(84vw, 340px);   /* 포스트잇 한 변 */
  --safe-b: max(16px, env(safe-area-inset-bottom));
}

[data-paper="butter"] { --paper: #f7e07c; --paper-2: #ecd067; --paper-b: #efd571; }
[data-paper="peach"]  { --paper: #f8c6a0; --paper-2: #edb48b; --paper-b: #f1bb93; }
[data-paper="pink"]   { --paper: #f5b7c3; --paper-2: #e9a2b0; --paper-b: #eeacb9; }
[data-paper="mint"]   { --paper: #c0e3c9; --paper-2: #a9d4b5; --paper-b: #b3dabd; }
[data-paper="sky"]    { --paper: #bad7ee; --paper-2: #a3c6e2; --paper-b: #accde7; }
[data-paper="lilac"]  { --paper: #d7c8ee; --paper-2: #c4b2e2; --paper-b: #ccbce8; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--cream); overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; word-break: keep-all; overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

#tree { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; opacity: 0; }
#shade { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.62), rgba(0,0,0,.86)); opacity: 0; pointer-events: none; }
#grain { position: fixed; inset: -50%; pointer-events: none; opacity: .05; background-image: var(--noise); z-index: 50;
  animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ---------------------------------------------------------------- 버튼 */
.btn { display: block; width: 100%; height: 56px; border-radius: 14px; background: var(--btn); color: var(--btn-ink);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 30px -12px rgba(255, 200, 120, .35);
  transition: transform .12s, opacity .2s, background .2s; }
.btn::after { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .18; mix-blend-mode: multiply; pointer-events: none; }
.btn:active { transform: scale(.985); }
.btn:disabled { background: rgba(242, 233, 215, .16); color: rgba(242, 233, 215, .45); box-shadow: none; cursor: default; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(242, 233, 215, .28); }
.link { color: var(--dim); font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; padding: 10px 12px; }

/* ---------------------------------------------------------------- 홈 */
.home-ui { position: fixed; left: 0; right: 0; text-align: center; opacity: 0; pointer-events: none; z-index: 5; }
#homeTop { top: max(26px, env(safe-area-inset-top)); padding: 0 24px; }
.count { margin: 0; font: 400 23px/1.35 var(--serif); letter-spacing: -.01em; color: var(--cream); }
.count b { font-weight: 600; font-size: 30px; color: #f6deb0; margin-right: 2px; font-variant-numeric: tabular-nums; }
#homeBottom { bottom: var(--safe-b); padding: 0 20px; }
#homeBottom .btn { max-width: 360px; margin: 0 auto; pointer-events: auto; }
.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); transition: opacity .6s; }
body.step-home .home-ui { pointer-events: none; }
body.step-home #homeBottom .btn { pointer-events: auto; }

/* 장식 이름표 (트리에서 누르면) */
.tag { position: fixed; left: 0; top: 0; z-index: 6; padding: 9px 14px 8px 22px; background: #e8d9bb; color: #3a2a1b;
  border-radius: 3px 8px 8px 3px; font: 22px/1 var(--hand); white-space: nowrap; pointer-events: none; opacity: 0;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7); display: flex; flex-direction: column; gap: 2px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.tag i { position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #2a1d12; opacity: .55; }
.tag .t-date { font-size: 16px; opacity: .6; }

/* ---------------------------------------------------------------- 화면 공통 */
.screen { position: fixed; inset: 0; z-index: 10; visibility: hidden; opacity: 0; }
.topbar { position: absolute; left: 0; right: 0; top: max(10px, env(safe-area-inset-top)); height: 48px; display: flex; align-items: center; padding: 0 8px; }
.back { width: 44px; height: 44px; display: grid; place-items: center; }
.back svg { width: 22px; height: 22px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step { margin-left: auto; margin-right: 12px; font-size: 12.5px; letter-spacing: .06em; color: var(--faint); }
.s-title { position: absolute; left: 24px; right: 24px; top: calc(max(10px, env(safe-area-inset-top)) + 56px); margin: 0;
  text-align: center; font: 400 clamp(17px, 5.1vw, 19px)/1.45 var(--serif); color: var(--cream); text-wrap: balance; }
.bar { position: absolute; left: 20px; right: 20px; bottom: var(--safe-b); max-width: 400px; margin: 0 auto; }

/* ---------------------------------------------------------------- 필수 편지 안내 */
.notice-wrap { position: absolute; left: 0; right: 0; top: calc(max(10px, env(safe-area-inset-top)) + 54px); bottom: calc(var(--safe-b) + 70px);
  display: flex; flex-direction: column; justify-content: center; padding: 6px 20px 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.notice { position: relative; width: 100%; max-width: 400px; margin: auto; padding: clamp(18px, 3.2vh, 26px) 22px clamp(16px, 2.6vh, 22px);
  background: #6c1a1f; background-image: radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .07), rgba(0, 0, 0, 0) 60%), linear-gradient(to bottom, #721c21, #5f161b);
  color: #a6df98; border-radius: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 24px 40px -18px rgba(0, 0, 0, .9); }
.notice::before { /* 바느질 테두리 */
  content: ''; position: absolute; inset: 7px; border: 1.5px dashed rgba(166, 223, 152, .34); border-radius: 3px; pointer-events: none; }
.nt-eyebrow { margin: 0; font: 600 12px/1 var(--sans); letter-spacing: .32em; color: #8fd47f; text-align: center; }
.nt-title { margin: 8px 0 clamp(10px, 1.8vh, 16px); font: 600 clamp(20px, 6vw, 23px)/1.3 var(--serif); color: #b9eeab; text-align: center; letter-spacing: -.01em; }
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-list li { display: grid; grid-template-columns: 5.4em 1.4em 1fr; align-items: baseline; padding: clamp(5px, 1vh, 8px) 2px;
  border-top: 1px solid rgba(166, 223, 152, .16); font-size: clamp(15px, 4.3vw, 16.5px); line-height: 1.35; }
.nt-list li:first-child { border-top: 0; }
.nt-list b { font-weight: 700; color: #c6f2b9; }
.nt-list i { font-style: normal; color: rgba(166, 223, 152, .6); text-align: center; }
.nt-list span { color: #a3dd94; }
.nt-elg { margin: clamp(8px, 1.4vh, 12px) 0 0; padding: 9px 12px; border-radius: 4px; background: rgba(0, 0, 0, .18); font-size: 13.5px; line-height: 1.5; color: #a3dd94; text-align: center; }
.nt-elg b { margin-right: 6px; letter-spacing: .08em; color: #c6f2b9; }
.nt-foot { margin: clamp(12px, 2vh, 16px) 0 0; font-size: clamp(14px, 4vw, 15px); line-height: 1.6; color: #b9eeab; text-align: center; }

/* ---------------------------------------------------------------- 포스트잇 */
.note { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 104px); width: var(--nw); height: var(--nw);
  margin-left: calc(var(--nw) / -2); background: var(--paper); color: var(--ink); padding: 20px 20px 14px 22px;
  display: flex; flex-direction: column; border-radius: 1px 1px 3px 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 22px 34px -18px rgba(0, 0, 0, .85);
  background-image: linear-gradient(to bottom, rgba(0,0,0,.035), rgba(0,0,0,0) 22%), linear-gradient(160deg, rgba(255,255,255,0) 60%, rgba(255,255,255,.18) 100%); }
.note::before { /* 아래쪽이 살짝 들려 생긴 그림자 */
  content: ''; position: absolute; left: 6%; right: 2%; bottom: 0; height: 18px; z-index: -1;
  box-shadow: 0 14px 16px -6px rgba(0, 0, 0, .55); border-radius: 50%; transform: rotate(-1.2deg); }
.grain-paper::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--noise); opacity: .13; mix-blend-mode: multiply; border-radius: inherit; }
.n-to { display: flex; align-items: baseline; gap: 8px; font: 28px/1.2 var(--hand); }
.lbl { font: 26px/1 var(--hand); opacity: .55; }
.to-pick { font: 30px/1.15 var(--hand); color: var(--ink); border-bottom: 1.5px dashed rgba(42, 33, 24, .35); padding: 0 2px; text-align: left; }
.to-pick.empty { color: rgba(42, 33, 24, .45); }
.to-pick .wr { display: inline-block; }
.n-body { --lh: 32px; position: relative; flex: 1; min-height: 0; margin-top: 12px; font: 26px/var(--lh) var(--hand); overflow: hidden; }
#text { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; resize: none; background: transparent;
  color: var(--ink); font: inherit; line-height: var(--lh); word-break: keep-all; overflow-y: auto; }
#text::placeholder { color: rgba(42, 33, 24, .36); }
#text:disabled { opacity: .5; }
.n-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; }
.counter { font-size: 11.5px; color: rgba(42, 33, 24, .45); font-variant-numeric: tabular-nums; padding-bottom: 6px; }
.n-from { display: flex; align-items: baseline; gap: 6px; }
.n-from input { width: 5.6em; font: 28px/1.1 var(--hand); color: var(--ink); background: transparent; border: 0; outline: 0;
  border-bottom: 1.5px dashed rgba(42, 33, 24, .35); border-radius: 0; padding: 0 2px; text-align: center; }
.n-from input::placeholder { color: rgba(42, 33, 24, .36); }
.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 포스트잇 묶음 */
.pads { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; padding: 0 16px;
  bottom: calc(var(--safe-b) + 84px); }
.pad { position: relative; width: 46px; height: 46px; }
.pad span { position: absolute; inset: 0; background: var(--paper); border-radius: 1px;
  box-shadow: 0 1px 0 var(--paper-2), 0 2px 0 var(--paper-b), 0 3px 0 var(--paper-2), 0 4px 0 var(--paper-b), 0 5px 0 var(--paper-2), 0 12px 16px -6px rgba(0,0,0,.8); }
.pad[aria-checked="true"]::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cream); }
.pads.big { gap: 22px; flex-wrap: wrap; bottom: auto; top: 44%; padding: 0 30px; max-width: 340px; margin: 0 auto; }
.pads.big .pad { width: 72px; height: 72px; }

/* 받는 사람 고르기 */
.sheet { position: fixed; inset: 0; z-index: 30; visibility: hidden; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; max-height: 78dvh; display: flex; flex-direction: column;
  background: #f4eee2; color: #2a2118; border-radius: 18px 18px 0 0; padding: 0 20px var(--safe-b); max-width: 560px; margin: 0 auto; height: 78vh; height: 78dvh; }
.grab { width: 100%; height: 26px; position: relative; flex: none; }
.grab::after { content: ''; position: absolute; left: 50%; top: 10px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(42, 33, 24, .2); }
.sheet h3 { margin: 0 0 12px; font: 400 20px var(--serif); }
.roles { display: flex; gap: 6px; margin: 0 -20px 8px; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.roles::-webkit-scrollbar { display: none; }
.roles button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14.5px; color: #6c6152; box-shadow: inset 0 0 0 1px rgba(42,33,24,.16); }
.roles button[aria-pressed="true"] { background: #2a2118; color: #f4eee2; box-shadow: none; }
#search { width: 100%; height: 44px; font: 16px var(--sans); color: #2a2118; border: 0; border-bottom: 1px solid rgba(42,33,24,.14);
  background: transparent; outline: none; -webkit-appearance: none; border-radius: 0; padding: 0 2px; }
#search:focus { border-bottom-color: #2a2118; }
.people { flex: 1; overflow-y: auto; margin: 4px -6px 0; padding: 0 6px 12px; -webkit-overflow-scrolling: touch; min-height: 200px; }
.grp { margin: 16px 0 2px; font-size: 12.5px; color: #8a7f70; letter-spacing: .04em; }
.person { display: flex; align-items: baseline; width: 100%; padding: 13px 2px; border-bottom: 1px solid rgba(42,33,24,.08); font: 400 18px var(--serif); text-align: left; }
.person .role { margin-left: 8px; font: 14px var(--sans); color: #8a7f70; }
.person .n { margin-left: auto; font: 13px var(--sans); color: #a99d8c; }
.person:active { background: rgba(42,33,24,.05); }
.empty { padding: 30px 2px; color: #8a7f70; font-size: 15px; }

/* ---------------------------------------------------------------- 접기 */
.fold { position: fixed; z-index: 12; perspective: 1300px; visibility: hidden; pointer-events: none; }
.fold, .fold .fh, .fold .fq { transform-style: preserve-3d; }
.fh { position: absolute; top: 0; width: 50%; height: 100%; }
.fh.L { left: 0; }
.fh.R { left: 50%; transform-origin: 0 50%; }
.fq { position: absolute; left: 0; width: 100%; height: 50%; }
.fq.T { top: 0; }
.fq.B { top: 50%; transform-origin: 50% 0; }
.ff, .fb { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--paper); }
.fb { background: var(--paper-2); }
.fh.R .fb { transform: rotateY(180deg); }
.fh.L .fq.B .fb { transform: rotateX(180deg); }
.ff .snap { position: absolute; }
.ff .snap .note { position: absolute; left: 0; top: 0; margin: 0; box-shadow: none; }
.ff .snap .note::before { display: none; }
.fshade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.fb .addr { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 24px/1.15 var(--hand); color: var(--ink); padding: 0 8px; }
.fb .addr small { display: block; font-size: 18px; opacity: .55; }

.mini { position: fixed; z-index: 11; width: 50px; height: 50px; background: var(--paper-2, #ecd067); visibility: hidden; pointer-events: none;
  box-shadow: 0 10px 16px -8px rgba(0,0,0,.8); }

/* ---------------------------------------------------------------- 장식 고르기 */
.orn-grid { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 104px); width: min(92vw, 420px); margin-left: calc(min(92vw, 420px) / -2);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; }
.orn { display: flex; flex-direction: column; align-items: center; padding: 6px 0 8px; border-radius: 14px; }
.orn svg { width: 100%; max-width: min(116px, 14vh, 14dvh); height: auto; display: block; }
.orn span { margin-top: 2px; font-size: 13.5px; color: var(--dim); }
.orn:active { background: rgba(242, 233, 215, .06); }

/* ---------------------------------------------------------------- 색칠 */
.paint-wrap { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 96px); width: min(78vw, 46vh, 340px); aspect-ratio: 1; transform: translateX(-50%); }
.paint-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; touch-action: manipulation; }
.paint-wrap .rg { cursor: pointer; }
.tools { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 176px); display: flex; justify-content: center; gap: 6px; }
.tools button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13.5px; color: var(--dim); }
.tools button:active { background: rgba(242, 233, 215, .08); }
.tools svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#dice svg circle { fill: currentColor; stroke: none; }
.palette { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 76px); transform: translateX(-50%); width: min(92vw, 400px);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 8px; justify-items: center; }
.sw { width: 40px; height: 40px; position: relative; }
.sw i { position: absolute; inset: 4px; background: var(--c); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,.18), inset 0 2px 2px rgba(255,255,255,.25); transition: transform .15s; }
.sw:nth-child(3n) i { border-radius: 54% 46% 52% 48% / 46% 56% 44% 54%; }
.sw:nth-child(4n+1) i { border-radius: 50% 50% 44% 56% / 52% 48% 52% 48%; }
.sw[aria-checked="true"]::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 2px var(--cream); }
.sw[aria-checked="true"] i { transform: scale(.86); }

/* ---------------------------------------------------------------- 걸기 */
.place-ui { position: fixed; inset: 0; z-index: 8; pointer-events: none; visibility: hidden; }
.place-top { position: absolute; left: 0; right: 0; top: max(22px, env(safe-area-inset-top)); text-align: center; padding: 0 24px; }
.place-top .step { margin: 0 0 8px; }
.place-top h2 { margin: 0; font: 400 clamp(21px, 6.4vw, 24px)/1.35 var(--serif); text-wrap: balance; }
.place-top .sub { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--dim); }
.place-bottom { position: absolute; left: 0; right: 0; bottom: var(--safe-b); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.holding { width: 92px; height: 92px; animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 0; }
.holding img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
@keyframes bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.place-bottom .link { pointer-events: auto; }
.fly-img { position: fixed; left: 0; top: 0; width: 92px; height: 92px; z-index: 9; pointer-events: none; visibility: hidden; transform-origin: 50% 0; }

/* ---------------------------------------------------------------- 끝 */
.done { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 26px 22px var(--safe-b); text-align: center; visibility: hidden;
  background: linear-gradient(to top, rgba(0,0,0,.92) 55%, rgba(0,0,0,0)); }
.done-title { margin: 0 auto 20px; max-width: 420px; font: 400 clamp(19px, 5.8vw, 22px)/1.45 var(--serif); text-wrap: balance; }
.done-btns { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }

/* 휴대폰을 가로로 눕히면 */
#rotate { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #000; color: var(--dim); font-size: 15px; text-align: center; }
#rotate svg { width: 46px; height: 46px; fill: none; stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: tilt 2.4s ease-in-out infinite; }
@keyframes tilt { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0deg); } }
html.turn #rotate { display: flex; }

#toast { position: fixed; left: 50%; top: calc(max(16px, env(safe-area-inset-top)) + 4px); transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 40px); background: rgba(242, 233, 215, .95); color: #24170e; font-size: 14.5px; line-height: 1.5;
  padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; text-align: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }

@media (min-width: 760px) {
  :root { --nw: 360px; }
  .count { font-size: 26px; }
  .count b { font-size: 34px; }
}
/* 화면이 낮은 폰 (키보드가 올라와도 바뀌지 않게 JS에서 html.short를 붙인다) */
html.short { --nw: min(80vw, 300px); }
html.short .notice-wrap { top: calc(max(10px, env(safe-area-inset-top)) + 48px); bottom: calc(var(--safe-b) + 66px); }
html.short .notice { padding: 15px 18px 14px; }
html.short .nt-title { margin: 5px 0 8px; font-size: 20px; }
html.short .nt-list li { padding: 4px 2px; font-size: 14.5px; }
html.short .nt-elg { margin-top: 7px; padding: 7px 10px; font-size: 12.5px; }
html.short .nt-foot { margin-top: 9px; font-size: 13.5px; line-height: 1.5; }
html.short .tools { bottom: calc(var(--safe-b) + 168px); }
@media (prefers-reduced-motion: reduce) {
  #grain { animation: none; }
  .holding { animation: none; }
}
.from-s { display: inline-block; min-width: 5.6em; font: 28px/1.1 var(--hand); text-align: center; border-bottom: 1.5px dashed rgba(42, 33, 24, .35); padding: 0 2px; }
.tools svg.spin { animation: spin .55s cubic-bezier(.2,.8,.3,1); }
@keyframes spin { to { transform: rotate(360deg); } }
