/* The four scenes (the first screen of each page) and the surfaces their details sit on.
   Food: plates on a walnut table. Water: the glass filling. Money: the road trip. Journal: the notebook. */

/* ---------- Shared ---------- */
.scene { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; color: var(--imp-text); }
.sc-head { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 54px) 22px 0; }
.sc-kicker { font: 800 12px var(--imp-font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--imp-accent); }
.sc-big { font: 800 clamp(58px, 17vw, 78px)/1 var(--imp-font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums lining-nums; margin-top: 6px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.sc-big.is-over { color: var(--imp-danger); }
.sc-sub { font: 700 15px/1.35 var(--imp-font-body); color: var(--imp-muted); margin-top: 4px; }
.sc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sc-bar { height: 8px; border-radius: 5px; background: rgba(242, 236, 220, .16); margin-top: 12px; overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 5px; background: var(--imp-good); transition: width .8s var(--imp-ease); }
.sc-bar.is-over i { background: var(--imp-warn); }

.sc-acts { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 46px); display: flex; gap: 10px; }
.sc-btn { flex: 1; height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 18px; font: 800 16px var(--imp-font-head); white-space: nowrap;
  color: var(--imp-text); background: rgba(10, 20, 15, .62); border: 1px solid rgba(242, 236, 220, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .12s, opacity .2s; }
.sc-btn .imp-icon { width: 20px; height: 20px; }
.sc-btn[data-menu] { flex: 0 0 58px; padding: 0; }
.sc-btn--main { flex: 1.4; background: var(--imp-accent); color: var(--imp-on-accent); border-color: transparent; box-shadow: 0 6px 20px rgba(232, 176, 74, .28); }
.sc-btn--ghost { height: 44px; background: rgba(10, 20, 15, .35); font-size: 14px; }
.sc-btn.is-done { color: var(--imp-good); }
.sc-btn:disabled { opacity: .38; }
.sc-btn:not(:disabled):active { transform: scale(.96); }
.sc-btn:focus-visible { outline: 3px solid var(--imp-text); outline-offset: 2px; }

.sc-more { position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 8px); display: flex; justify-content: center; align-items: center; gap: 4px;
  font: 800 12px var(--imp-font-head); letter-spacing: .06em; text-transform: uppercase; color: rgba(242, 236, 220, .6); pointer-events: none; }
.sc-more__chev { width: 16px; height: 16px; transform: rotate(90deg); animation: sc-bob 1.8s ease-in-out infinite; }
@keyframes sc-bob { 50% { transform: rotate(90deg) translateX(3px); } }

/* ---------- Food: the table ---------- */
.pg--food { background: #3a2414; }
.sc-food, .paper-desk, .pg--food .pg-details {
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 9px, rgba(255, 255, 255, .03) 9px 11px, transparent 11px 23px),
    repeating-linear-gradient(90deg, #5e3a21 0 78px, #54331c 78px 80px, #634026 80px 158px, #4f301a 158px 160px), #5e3a21; }
.paper-desk { min-height: 100svh; }
.sc-food .sc-head { padding-bottom: 18px; background: linear-gradient(180deg, rgba(13, 24, 19, .92), rgba(13, 24, 19, .72) 72%, rgba(13, 24, 19, 0)); }
.sc-shaker { flex: none; display: grid; justify-items: center; gap: 2px; margin-bottom: 2px; }
.sc-shaker svg { width: 44px; height: 74px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.sc-shaker__fill { transition: y .8s var(--imp-ease), height .8s var(--imp-ease); }
.sc-shaker span { font: 800 15px var(--imp-font-display); font-variant-numeric: tabular-nums; }
.sc-shaker small { font: 700 11px var(--imp-font-body); color: var(--imp-muted); }

.sc-table { position: absolute; z-index: 2; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 206px); bottom: calc(env(safe-area-inset-bottom) + 166px);
  padding: 14px 14px 10px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 6px 10px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.sc-table::-webkit-scrollbar { display: none; }
.sc-plate { display: grid; justify-items: center; align-content: start; gap: 2px; animation: sc-serve .6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 50ms); -webkit-touch-callout: none; }
.sc-plate:active .sc-plate__wrap { transform: scale(.95); }
@keyframes sc-serve { from { transform: translateY(40px) scale(.8); opacity: 0; } }
.sc-plate__wrap { position: relative; width: 100%; max-width: 150px; aspect-ratio: 1; transition: transform .15s; }
.sc-plate__dish { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .45)); }
.sc-plate__emo { position: absolute; inset: 0; display: grid; place-items: center; font: clamp(48px, 14vw, 64px)/1 var(--imp-font-emoji); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); }
.sc-tag { max-width: 100%; background: rgba(13, 24, 19, .8); border-radius: 10px; padding: 4px 10px; text-align: center; font: 800 13px/1.25 var(--imp-font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tag small { display: block; font-weight: 600; color: var(--imp-muted); font-size: 11.5px; }
.sc-plate--next { align-self: stretch; }
.sc-next { width: 84%; max-width: 128px; aspect-ratio: 1; margin-top: 8%; display: grid; place-items: center; text-align: center; padding: 10px; border-radius: 50%;
  border: 2px dashed rgba(242, 236, 220, .4); font: 800 14px var(--imp-font-head); color: rgba(242, 236, 220, .85); }
.sc-foot { position: absolute; z-index: 6; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 114px); }
.sc-fries { display: flex; align-items: flex-end; gap: 3px; padding: 6px 10px 6px 8px; border-radius: 14px; background: rgba(13, 24, 19, .78); }
.sc-fries span { margin-left: 6px; text-align: left; font: 800 13px/1.15 var(--imp-font-head); }
.sc-fries small { display: block; font: 600 11px var(--imp-font-body); color: var(--imp-muted); }
.sc-carton { width: 24px; height: 32px; transition: opacity .3s, filter .3s; }
.sc-carton.is-off { opacity: .32; filter: grayscale(1); }

/* Food details: paper cards on the table, taped down */
.pg--food .pg-details .imp-panel, .paper-desk .imp-panel { position: relative; border: 0; box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .6) inset; }
.pg--food .pg-details > .imp-panel:nth-child(odd) { transform: rotate(-.35deg); }
.pg--food .pg-details > .imp-panel:nth-child(even) { transform: rotate(.3deg); }
.pg--food .pg-details > .imp-panel::before { content: ''; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; transform: translateX(-50%) rotate(-2deg); background: rgba(232, 214, 160, .62); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); pointer-events: none; }
.food-sub .food-nav, .food-sub .food-nav h2 { color: #f2ecdc; }
.food-sub .food-nav { background: rgba(13, 24, 19, .82); border-radius: 14px; padding: 4px 8px; }

/* ---------- Water: the glass ---------- */
.pg--water { background: #072421; }
.sc-water { background: radial-gradient(120% 60% at 50% 0%, #17362b, #0d1813 70%); }
.wt-fill { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #3fbfae, #1d8f82 35%, #0f5f57 75%, #072421); transition: height 1.4s cubic-bezier(.3, .1, .2, 1); }
.wt-wave { position: absolute; left: 0; width: 200%; height: 30px; top: -29px; fill: #3fbfae; animation: wt-wave 7s linear infinite; }
.wt-wave--back { top: -36px; fill: #2a9d8f; opacity: .6; animation-duration: 11s; animation-direction: reverse; }
@keyframes wt-wave { to { transform: translateX(-50%); } }
.wt-bubs { position: absolute; inset: 0; overflow: hidden; }
.wt-bub { position: absolute; left: var(--x); bottom: -20px; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 60%); animation: wt-rise var(--t) linear infinite; animation-delay: var(--d); }
@keyframes wt-rise { 0% { bottom: -20px; opacity: 0; transform: translateX(0); } 12% { opacity: .85; } 50% { transform: translateX(8px); } 100% { bottom: 100%; opacity: 0; transform: translateX(-4px); } }
.wt-mark { position: absolute; z-index: 3; left: 0; right: 0; border-top: 2px dashed rgba(242, 236, 220, .5); transition: bottom 1.4s cubic-bezier(.3, .1, .2, 1); pointer-events: none; }
.wt-mark span { position: absolute; right: 12px; top: -24px; font: 800 11px var(--imp-font-head); letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(13, 24, 19, .7); color: var(--imp-text); }
.wt-mark--goal { border-top-color: var(--imp-accent); }
.wt-mark--goal span { color: var(--imp-accent); }
.sc-water .sc-kicker { color: var(--imp-water); }
.sc-water .sc-sub { color: rgba(242, 236, 220, .78); }
.sc-water.is-full .sc-big { color: var(--imp-accent); }
.sc-water.is-full .wt-fill { box-shadow: 0 -20px 60px rgba(232, 176, 74, .25); }
.wt-acts { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 46px); display: grid; gap: 8px; }
.wt-row { display: flex; gap: 8px; }
.wt-row .sc-btn { background: rgba(7, 36, 33, .55); }
.wt-row .sc-btn--main { background: var(--imp-accent); }
.wt-row--sm .sc-btn { height: 44px; }
.wt-row--sm .sc-btn[data-menu] { flex: 0 0 52px; }

/* Water details: frosted glass over deep water */
.pg--water .pg-details { background: linear-gradient(180deg, #072421, #06201d 60%, #051a17); }
.imp-panel.glass { background: rgba(94, 234, 212, .06); border: 1px solid rgba(94, 234, 212, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass .imp-panel__title { color: var(--imp-water); }
.wt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; padding-bottom: 6px; }
.wt-glass { display: grid; justify-items: center; gap: 4px; font: 700 11px var(--imp-font-body); color: var(--imp-muted); }
.wt-glass b { font: 800 13px var(--imp-font-display); color: var(--imp-text); font-variant-numeric: tabular-nums; }
.wt-glass__cup { position: relative; width: 30px; height: 46px; border: 2px solid rgba(242, 236, 220, .4); border-top: 0; border-radius: 3px 3px 9px 9px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); background: rgba(255, 255, 255, .03); }
.wt-glass__cup i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #5eead4, #0f766e); }
.wt-glass.is-min .wt-glass__cup i { background: linear-gradient(180deg, #b6f0e4, #2a9d8f); }
.wt-glass.is-full .wt-glass__cup { border-color: var(--imp-accent); }
.wt-glass.is-full b { color: var(--imp-accent); }
.wt-glass.is-today span:last-child { color: var(--imp-water); font-weight: 900; }
.wt-glass.is-future { opacity: .4; }
.wt-goals { display: grid; }
.wt-goal { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(94, 234, 212, .12); font: 600 15px var(--imp-font-body); }
.wt-goal:last-child { border-bottom: 0; }
.wt-goal b { font: 800 16px var(--imp-font-display); }
.wt-note { font: 600 13px/1.45 var(--imp-font-body); color: var(--imp-muted); margin-top: 8px; }

/* ---------- Money: the road ---------- */
.pg--money { background: #1d2124; }
.sc-money { --g: calc(env(safe-area-inset-bottom) + 190px); background: linear-gradient(180deg, #0d1813 0%, #183428 30%, #4c6b48 52%, #c99a4a 68%, #f0c97c 76%); }
.rd-sun { position: absolute; left: 60%; bottom: calc(var(--g) + 120px); width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #f3d08a 45%, rgba(232, 176, 74, 0) 70%); }
.rd-world { position: absolute; left: 0; top: 0; bottom: 0; width: 2200px; will-change: transform; transition: transform 1.6s cubic-bezier(.35, .1, .25, 1); }
.rd-layer { position: absolute; left: 0; right: 0; background-repeat: repeat-x; }
.rd-far { bottom: calc(var(--g) + 128px); height: 150px; background-size: 620px 150px; }
.rd-near { bottom: calc(var(--g) + 104px); height: 120px; background-size: 420px 120px; }
.rd-trees { bottom: calc(var(--g) + 104px); height: 60px; background-size: 240px 60px; }
.rd-ground { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--g) - 16px); background: linear-gradient(180deg, #2d4a2f, #172a1c 60%, #12211a); }
.rd-gravel { position: absolute; left: 0; right: 0; bottom: calc(var(--g) - 16px); height: 16px; background: linear-gradient(180deg, #5c5f4d, #2d4a2f); }
.rd-road { position: absolute; left: 0; right: 0; bottom: var(--g); height: 104px; background: linear-gradient(180deg, #4f6a3a 0 8px, #8c8466 8px 13px, #3a3d42 13px, #2b2d31 100%); }
.rd-edge { position: absolute; left: 0; right: 0; height: 4px; background: #e9e5da; opacity: .9; }
.rd-edge--top { top: 16px; }
.rd-edge--bot { bottom: 4px; }
.rd-lane { position: absolute; left: 0; right: 0; top: 56px; height: 5px; background: repeating-linear-gradient(90deg, #e8b04a 0 46px, transparent 46px 86px); }
.rd-sign { position: absolute; bottom: calc(var(--g) + 104px); transform: translateX(-50%); display: grid; justify-items: center; }
.rd-sign b { display: block; background: #1f6b45; color: #f2ecdc; border: 3px solid #f2ecdc; border-radius: 8px; padding: 5px 10px; font: 800 14px var(--imp-font-head); white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; }
.rd-sign i { display: block; width: 5px; height: 40px; background: linear-gradient(90deg, #9aa0a6, #5f656b); }
.rd-sign--goal b { background: var(--imp-accent); color: #14261f; border-color: #fff3c4; font: 800 16px var(--imp-font-display); padding: 7px 12px; }
.rd-bikewrap { position: absolute; z-index: 4; left: 31%; bottom: calc(var(--g) + 18px); width: min(56vw, 220px); transform: translateX(-50%); }
.rd-bikewrap svg { width: 100%; display: block; overflow: visible; }
.rd-body { transform-origin: 50% 100%; }
.is-riding .rd-body { animation: rd-bump .18s ease-in-out infinite alternate; }
@keyframes rd-bump { to { transform: translateY(-1.5px); } }
.rd-spin { transform-box: fill-box; transform-origin: center; }
.is-riding .rd-spin { animation: rd-spin .18s linear infinite; }
.is-riding.is-back .rd-spin { animation-direction: reverse; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
.rd-puff { position: absolute; z-index: 5; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: none; filter: blur(1px);
  background: radial-gradient(circle, rgba(236, 234, 226, 1), rgba(210, 208, 200, .5) 45%, rgba(200, 198, 190, 0) 72%); }
.sc-money .sc-sub { color: rgba(242, 236, 220, .85); }
.rd-trip { position: absolute; z-index: 5; left: 20px; right: 20px; bottom: calc(env(safe-area-inset-bottom) + 116px); padding: 10px 12px 8px; border-radius: 14px; background: rgba(10, 20, 15, .45); }
.rd-trip__bar { position: relative; height: 10px; border-radius: 6px; background: rgba(242, 236, 220, .16); }
.rd-trip__done { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--imp-accent); transition: width 1.6s cubic-bezier(.35, .1, .25, 1); }
.rd-trip__tick { position: absolute; top: -3px; width: 3px; height: 16px; margin-left: -1.5px; background: #f2ecdc; border-radius: 2px; }
.rd-trip__lb { display: flex; justify-content: space-between; margin-top: 6px; font: 800 12px var(--imp-font-head); color: rgba(242, 236, 220, .8); font-variant-numeric: tabular-nums; }

/* Money details: the road keeps going; panels are highway signs */
.pg--money .pg-details.roadside, .money-sub {
  background: repeating-linear-gradient(180deg, rgba(232, 176, 74, .55) 0 38px, transparent 38px 78px) center top / 6px 100% no-repeat, linear-gradient(180deg, #24272b, #1d2124); }
.money-sub { min-height: 100svh; }
.roadside .imp-panel { background: #1a4a33; border: 3px solid #e9e3d0; border-radius: 14px; box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 14px 26px rgba(0, 0, 0, .3); }
.roadside .imp-panel__title { font: 800 17px var(--imp-font-display); text-transform: none; letter-spacing: 0; color: #f2ecdc; }
.roadside .imp-panel__meta { color: rgba(242, 236, 220, .75); }
.roadside { --imp-divider: rgba(242, 236, 220, .14); --imp-sunken: rgba(0, 0, 0, .22); --imp-muted: #b9c6b4; }

/* ---------- Journal: the notebook ---------- */
.pg--journal { background: #1b130c; }
.sc-journal { background: radial-gradient(ellipse 120% 70% at 50% 40%, #3b2a1b, #1b130c 75%); }
.bk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bk-day { font-size: clamp(34px, 10vw, 44px); }
.bk-pg { font: 800 13px var(--imp-font-head); color: var(--imp-muted); white-space: nowrap; padding-bottom: 6px; }
.bk-wrap { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 128px); bottom: calc(env(safe-area-inset-bottom) + 120px); left: 10px; right: 12px; perspective: 2000px; }
.bk-cover { position: absolute; inset: 0; border-radius: 6px 16px 16px 6px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 40%), radial-gradient(circle at 80% 90%, rgba(0, 0, 0, .35), transparent 50%), #1f4a35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bk-cover::after { content: ''; position: absolute; inset: 7px; border: 2px dashed rgba(232, 176, 74, .45); border-radius: 4px 12px 12px 4px; }
.bk-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, #12301f, #2a5a40 60%, #17392a); z-index: 60; }
.bk-stack { position: absolute; top: 12px; bottom: 12px; left: 20px; right: 10px; border-radius: 2px 8px 8px 2px;
  box-shadow: 1px 1px 0 #e2d9c3, 2px 2px 0 #cfc5ad, 3px 3px 0 #e2d9c3, 4px 4px 0 #cfc5ad, 5px 5px 0 #e2d9c3, 6px 6px 0 #bfb59c; }
.bk-leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.5, .05, .25, 1); }
.bk-leaf.is-flipped { transform: rotateY(-179deg); }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 8px 8px 2px; overflow: hidden; display: flex; flex-direction: column; padding: 14px 16px 12px 52px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0) 26px), linear-gradient(90deg, transparent 40px, #e5a3a3 40px, #e5a3a3 42px, transparent 42px), #f6efdd; color: #22305e; }
.bk-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); opacity: 0; transition: opacity 1s; pointer-events: none; }
.bk-leaf.is-flipped .bk-face::after { opacity: 1; }
.bk-back { transform: rotateY(180deg); background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30px), #ece3cd; }
.bk-date { font: 800 20px/1.1 var(--imp-font-display); color: #2f5a3c; min-height: 52px; padding: 6px 90px 0 0; }
.bk-lined { flex: 1; position: relative; min-height: 0; overflow-y: auto; scrollbar-width: none; background: repeating-linear-gradient(180deg, transparent 0 29px, #b7cbe0 29px 30px); background-attachment: local; }
.bk-lined::-webkit-scrollbar { display: none; }
.bk-input, .bk-text { display: block; width: 100%; min-height: 100%; margin: 0; padding: 0 0 0 2px; border: 0; background: transparent; resize: none; outline: none; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 500 17px/30px var(--imp-font-hand); color: #22305e; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bk-input { height: 100%; -webkit-user-select: text; user-select: text; }
.bk-input::placeholder { color: rgba(34, 48, 94, .4); }
.bk-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #5b5140; font: 800 12px var(--imp-font-head); }
.bk-foot .jr-count { display: inline-flex; align-items: center; gap: 6px; color: #5b5140; }
.bk-foot .jr-count .imp-icon { width: 15px; height: 15px; color: #2f7a3d; }
.bk-foot .jr-count.is-on { color: #2f7a3d; }
.bk-ink { flex: 1; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .1); position: relative; }
.bk-ink i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #22305e; transition: width .3s; }
.bk-ink b { position: absolute; top: -4px; width: 2px; height: 14px; background: #2f5a3c; }
.bk-stamp { position: absolute; right: 12px; top: 10px; font: 900 15px/1 var(--imp-font-head); letter-spacing: .1em; padding: 7px 10px; border: 3px solid; border-radius: 6px; text-align: center;
  transform: rotate(-12deg) scale(1.6); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; pointer-events: none; mix-blend-mode: multiply; }
.bk-stamp small { display: block; font-size: 10px; letter-spacing: .06em; margin-top: 2px; }
.bk-stamp.is-on { opacity: .85; transform: rotate(-12deg) scale(1); }
.bk-stamp--min { color: #b45309; }
.bk-stamp--full { color: #15803d; }
.bk-ribbon { position: absolute; right: 60px; bottom: -16px; width: 16px; height: 30px; z-index: 55; pointer-events: none; background: linear-gradient(90deg, #a87a26, #e8b04a 50%, #a87a26);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); box-shadow: 2px 0 4px rgba(0, 0, 0, .3); }
.bk-band { position: absolute; right: 1px; top: -2px; bottom: -2px; width: 7px; background: #121212; border-radius: 3px; z-index: 56; box-shadow: 1px 0 3px rgba(0, 0, 0, .5); pointer-events: none; }
.bk-acts .sc-btn { background: rgba(255, 255, 255, .1); }

/* Journal details: index cards on the desk */
.pg--journal .pg-details { background: radial-gradient(ellipse 120% 40% at 50% 0%, #2a1e13, #1b130c 70%); }
.pg--journal .pg-details .imp-panel { border: 0; border-radius: 6px; box-shadow: 0 10px 22px rgba(0, 0, 0, .5);
  background: linear-gradient(180deg, transparent 0 46px, #e5a3a3 46px 48px, transparent 48px), #f6efdd; }
.pg--journal .pg-details .jr-text { line-height: 28px; padding-top: 0; background: repeating-linear-gradient(180deg, transparent 0 27px, #cad7e6 27px 28px); background-attachment: local; }
.pg--journal .pg-details .imp-panel__title { font: 800 17px var(--imp-font-display); text-transform: none; letter-spacing: 0; color: #2f5a3c; }
.jr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; padding: 8px 0 4px; }
.jr-stats b { display: block; font: 800 26px var(--imp-font-display); color: #1f2a22; font-variant-numeric: tabular-nums; }
.jr-stats span { font: 700 12px var(--imp-font-body); color: var(--imp-muted); }
.pg--journal .jr-text { font-family: var(--imp-font-hand); color: #22305e; }

/* ---------- Emoji: picker, button on forms, rows ---------- */
.emo-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding-bottom: 2px; }
.emo-tabs::-webkit-scrollbar { display: none; }
.emo-tab { flex: none; height: 34px; padding: 0 12px; border-radius: 17px; border: 1.5px solid var(--imp-frame); font: 700 13px var(--imp-font-head); }
.emo-tab.is-on { background: var(--imp-accent); color: var(--imp-on-accent); border-color: var(--imp-accent); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.emo-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font: 28px/1 var(--imp-font-emoji); }
.emo-cell:active { transform: scale(.9); }
.emo-cell.is-on { background: var(--imp-accent-dim); box-shadow: inset 0 0 0 2px var(--imp-accent); }
.emo-field { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.emo-btn { display: grid; justify-items: center; gap: 2px; }
.emo-btn span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 30px/1 var(--imp-font-emoji);
  background: radial-gradient(circle, #fbfaf7 0 58%, #e7e2d9 59% 63%, #f4f1ec 64%); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.emo-btn small { font: 700 11px var(--imp-font-head); color: var(--imp-muted); }
.emo-btn:not(.is-set) span { filter: grayscale(.7); opacity: .8; }
.food-emo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 22px/1 var(--imp-font-emoji); border-radius: 50%; background: radial-gradient(circle, #fbfaf7 0 58%, #e7e2d9 59% 63%, #f4f1ec 64%); }

@media (prefers-reduced-motion: reduce) {
  .sc-plate, .wt-wave, .wt-bub, .sc-more__chev { animation: none; }
  .wt-fill, .wt-mark, .rd-world, .rd-trip__done, .bk-leaf, .bk-stamp, .sc-bar i { transition: none; }
  .is-riding .rd-body, .is-riding .rd-spin { animation: none; }
}
