* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root { --ink: #3a2a22; --paper: #FFF9EC; --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Varela Round", "Nunito", system-ui, sans-serif; }
html, body { height: 100%; overflow: hidden; background: #70D4F1; font-family: var(--font); color: var(--ink); overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

#bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
#bar > * { pointer-events: auto; }
.round { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid var(--ink); display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(58,42,34,.25); transition: transform .12s; flex: none; }
.round:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(58,42,34,.25); }
.round svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.right { display: flex; gap: 8px; }

@keyframes pulse { 50% { box-shadow: 0 3px 0 rgba(58,42,34,.25), 0 0 0 6px rgba(255,120,90,.35); } }

#tray { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: calc(100vw - 140px); }
#slots { max-width: 100%; flex-wrap: wrap; justify-content: center; display: flex; gap: 8px; padding: 6px 8px; background: rgba(255,255,255,.88); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 3px 0 rgba(58,42,34,.25); }
.slot { width: 54px; height: 54px; border-radius: 15px; background: #FFF3D6; border: 2px solid rgba(58,42,34,.25); display: grid; place-items: center; touch-action: none; cursor: grab; transition: transform .12s; }
.slot canvas { pointer-events: none; width: 100% !important; height: 100% !important; display: block; }
.slot { overflow: hidden; padding: 1px; }
.slot.armed { background: #FFE08A; border-color: var(--ink); transform: translateY(-6px) scale(1.06); }
.slot.used { background: transparent; border-style: dashed; cursor: default; }
#trayNote { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(40,30,20,.55); letter-spacing: .02em; }
#ghost { position: fixed; pointer-events: none; z-index: 30; transform: translate(-50%, -70%) scale(1.15); filter: drop-shadow(0 6px 4px rgba(0,0,0,.2)); }

#tag { position: fixed; z-index: 5; transform: translate(-50%, -100%); background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 4px 10px; font-size: 13px; font-weight: 700;
  white-space: nowrap; pointer-events: auto; cursor: pointer; box-shadow: 0 2px 0 rgba(58,42,34,.2); }
#tag small { font-weight: 500; opacity: .75; font-size: 12px; }
#hint { position: fixed; left: 50%; bottom: calc(112px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(58,42,34,.85); color: #fff; padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; pointer-events: none; white-space: nowrap; }

#card { position: fixed; z-index: 20; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 20px; padding: 14px 16px 12px; box-shadow: 0 5px 0 rgba(58,42,34,.22); animation: drop .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }
#card h2 { font-size: 16px; margin-bottom: 6px; }
#cardBody { font-size: 14px; line-height: 1.45; }
#cardBody p { margin: 5px 0; }
.cardBtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cardBtns button { border: 2px solid var(--ink); border-radius: 14px; padding: 5px 14px; font-weight: 700; font-size: 13px; background: #fff; }
#cardOk { background: #FFD166; }

#diary { position: fixed; inset: 0; z-index: 40; }
#diary[hidden], #card[hidden], #tag[hidden], #hint[hidden] { display: none; }




#home { position: fixed; left: 12px; top: max(10px, env(safe-area-inset-top)); z-index: 3; font-size: 12px; font-weight: 800; color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(40,30,20,.5); opacity: .85; }




.slot.bao { background: #FFE3EC; }
.slot.bao.used { background: transparent; }
#slots .sep { width: 2px; align-self: stretch; margin: 6px 0; background: rgba(58,42,34,.18); border-radius: 2px; }
@media (max-width: 430px) { #slots { gap: 5px; padding: 5px 6px; } .slot { width: 49px; height: 49px; border-radius: 13px; } }




#baoCard { position: fixed; inset: 0; z-index: 45; background: rgba(40,30,50,.35); display: grid; place-items: center; padding: 16px; }
#baoCard[hidden], #photoView[hidden] { display: none; }
.bc { width: min(360px, 100%); background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 14px 18px 14px; text-align: center; box-shadow: 0 6px 0 rgba(58,42,34,.22); animation: drop .35s cubic-bezier(.3,1.4,.5,1); }
#bcPic { width: 160px; height: 140px; display: block; margin: -2px auto 0; }
.bc h2 { font-size: 20px; margin: 2px 0 4px; }
#bcAbout { font-size: 14px; line-height: 1.4; opacity: .85; margin-bottom: 10px; }
.bcName { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; font-size: 14px; }
.bcName input { font: inherit; font-weight: 700; font-size: 17px; width: 11em; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; text-align: center; color: var(--ink); }
#bcSwatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 2px; }
#bcSwatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(58,42,34,.45); padding: 0; }
#bcSwatches button.on { border-color: var(--ink); box-shadow: 0 0 0 3px #FFD166; }
#bcErr { min-height: 18px; font-size: 13px; color: #C0392B; font-weight: 700; margin-top: 4px; }
.bc .cardBtns { justify-content: center; }
#bcOk { background: #FFD166; }
#bcOk:disabled { opacity: .4; cursor: default; }
#photoView { position: fixed; inset: 0; z-index: 60; background: rgba(20,14,10,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); touch-action: none; }
#pvImg { max-width: 100%; max-height: calc(100% - 64px); border: 6px solid #fff; border-radius: 4px; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .2s ease; }
.pvBar { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(100%, 720px); margin-top: 12px; color: #fff; font-size: 14px; font-weight: 700; }
.pvBtns { display: flex; gap: 8px; }
.pvBar button { border: 2px solid #fff; color: #fff; background: transparent; border-radius: 14px; padding: 6px 14px; font-weight: 700; }
.pvBar button.sure { background: #E8604C; border-color: #E8604C; }
#pvClose { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
#pvClose svg { display: block; }

#plans { position: fixed; z-index: 4; left: 12px; top: max(12px, env(safe-area-inset-top)); max-width: calc(100vw - 140px); display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px;
  background: rgba(255,255,255,.92); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 3px 0 rgba(58,42,34,.25); font-size: 12.5px; font-weight: 700; text-align: left; }
#plans .ic { flex: none; width: 22px; height: 22px; }
#plans .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#plans .tx small { font-weight: 600; opacity: .7; }
#plans .bar { display: block; height: 4px; border-radius: 3px; background: #EADFCB; margin-top: 3px; overflow: hidden; }
#plans .bar i { display: block; height: 100%; background: #7CC96B; }
#plans.ask { background: #FFF1C2; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-2deg); } 90% { transform: rotate(2deg); } 95% { transform: rotate(-1deg); } }
#plansCard { position: fixed; inset: 0; z-index: 45; background: rgba(40,30,50,.35); display: grid; place-items: center; padding: 16px; }
#plansCard[hidden] { display: none; }
.pc { text-align: left; width: min(400px, 100%); }
.pc h2 { font-size: 18px; margin-bottom: 8px; }
.pc .now { background: #fff; border: 2px solid rgba(58,42,34,.25); border-radius: 14px; padding: 10px 12px; }
.pc .now b { font-size: 16px; }
.pc .now span { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }
.pc .bar { height: 10px; border-radius: 6px; background: #EADFCB; margin: 8px 0 4px; overflow: hidden; border: 1.5px solid rgba(58,42,34,.3); }
.pc .bar i { display: block; height: 100%; background: #7CC96B; }
.pc .now small { font-size: 12.5px; font-weight: 700; }
.pc h3 { font-size: 14px; margin: 14px 0 8px; }
.pc .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc .opts button { text-align: left; border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 9px 10px; font-weight: 800; font-size: 14px; line-height: 1.25; }
.pc .opts button small { display: block; font-weight: 500; font-size: 12px; opacity: .75; margin-top: 3px; }
.pc .opts button.on { background: #FFE08A; box-shadow: 0 0 0 3px #FFD166; }
.pc .note { font-size: 12.5px; opacity: .8; margin-top: 10px; line-height: 1.4; }

/* ---------- the workshop ---------- */
.ws-banner { position: fixed; z-index: 70; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 50px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px;
  background: #3a2a22; color: #FFD166; border-radius: 16px; font-size: 12px; font-weight: 700; box-shadow: 0 3px 0 rgba(0,0,0,.2); white-space: nowrap; }
.ws-banner button { border: 1.5px solid #FFD166; color: #FFD166; background: transparent; border-radius: 12px; padding: 2px 10px; font-weight: 700; font-size: 12px; }
.ws-door { position: fixed; inset: 0; z-index: 75; background: rgba(40,30,50,.45); display: grid; place-items: center; padding: 16px; }
.ws-door .bc { text-align: left; } .ws-door p { font-size: 14px; line-height: 1.45; margin: 4px 0 10px; }
.ws-stack { flex-direction: column; align-items: stretch; } .ws-stack button { width: 100%; }
.ws-panel { position: fixed; z-index: 66; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100vw); max-height: 62vh; overflow-y: auto; background: #2f2620; color: #FCEFD8;
  border: 2px solid #FFD166; border-bottom: none; border-radius: 18px 18px 0 0; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); font-size: 13px; -webkit-overflow-scrolling: touch; }
.ws-panel[hidden] { display: none; }
.ws-panel .g-head { position: sticky; top: 0; background: #2f2620; display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; z-index: 1; }
.ws-panel .g-head b { color: #FFD166; font-size: 15px; } .ws-panel .g-head span { flex: 1; opacity: .8; }
.ws-panel button { border: 1.5px solid #FCEFD8; background: transparent; color: #FCEFD8; border-radius: 10px; padding: 4px 9px; font-weight: 700; font-size: 12.5px; }
.ws-panel button.on { background: #FFD166; color: #3a2a22; border-color: #FFD166; }
.ws-panel button:disabled { opacity: .35; }
.ws-panel .g-x { width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.ws-panel details { border-top: 1px solid rgba(255,255,255,.12); padding: 6px 0; }
.ws-panel summary { font-weight: 800; color: #FFD166; cursor: pointer; padding: 3px 0; }
.ws-panel .g-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; flex-wrap: wrap; } .ws-panel .g-row > span { min-width: 44px; opacity: .75; }
.ws-panel .g-grid { display: grid; gap: 6px; margin: 6px 0; } .ws-panel .g-items { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.ws-panel .g-items button { padding: 3px; background: #FFF3D6; border-color: transparent; border-radius: 10px; display: grid; place-items: center; }
.ws-panel .g-baos { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
.ws-panel .g-baos button { padding: 3px 2px; background: #FFE3EC; color: #3a2a22; border-color: transparent; display: grid; justify-items: center; gap: 1px; }
.ws-panel .g-baos small { font-size: 10.5px; font-weight: 700; }
.ws-panel .g-foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; justify-content: space-between; }

.slot { flex: none; }


/* long cards (an update after many versions) scroll instead of running off the screen */
#card { max-height: calc(100vh - 32px - env(safe-area-inset-top)); overflow-y: auto; -webkit-overflow-scrolling: touch; }





#plans { max-width: calc(100vw - 92px); }

#bSettings { position: fixed; z-index: 4; right: 12px; top: max(12px, env(safe-area-inset-top)); width: 40px; height: 40px; }
#bSettings svg { width: 24px; height: 24px; }
#bSettings .dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #E8604C; border: 1.5px solid #fff; display: none; }
#bSettings.new .dot { display: block; } #bSettings.new { animation: nudge 2.4s ease-in-out infinite; }
#settings { position: fixed; inset: 0; z-index: 45; background: rgba(40,30,50,.35); display: grid; place-items: center; padding: 16px; }
#settings[hidden] { display: none; }
.st { text-align: left; width: min(380px, 100%); }
.st h2 { font-size: 19px; margin-bottom: 6px; }
.st h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #B5654A; margin: 14px 0 4px; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; font-weight: 700; }
.st-row + .st-row { border-top: 1px dashed rgba(58,42,34,.2); }
.st-row button:not(.spk), .st-btns button { border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 5px 12px; font-weight: 700; font-size: 13px; }
#stUpdate.new { background: #FFD166; }
#stVersion { font-weight: 600; font-size: 13.5px; opacity: .8; }
.st-note { font-size: 13px; line-height: 1.4; opacity: .85; }
.st-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.st-row .vol { flex: 1; min-width: 0; margin: 0 4px; accent-color: #7CC96B; height: 28px; cursor: pointer; }
.st-row .vol.off { opacity: .45; }
.st-row:has(.vol) > span { width: 7.2em; flex: none; }
.spk { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: #fff; padding: 0; display: grid; place-items: center; cursor: pointer; }
.spk svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spk .body { fill: #FFF3D6; } .spk .off { display: none; }
.spk[aria-pressed="true"] { background: #E9E0D0; } .spk[aria-pressed="true"] .on { display: none; } .spk[aria-pressed="true"] .off { display: inline; }


/* ---------- the diary: a spiral notebook lying on a wooden table ---------- */
@font-face { font-family: 'Patrick Hand'; src: url(fonts/PatrickHand-latin.woff2) format('woff2'); font-display: swap; }
body.diaryOpen #plans, body.diaryOpen #bSettings { z-index: 41; }
#bDiary { position: relative; }
#bDiary .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #D9614C; border: 2px solid #fff; display: none; }
#bDiary.new .dot { display: block; }
.table { position: absolute; left: 0; right: 0; bottom: 0; top: calc(max(12px, env(safe-area-inset-top)) + 58px); overflow: hidden;
  background: repeating-linear-gradient(to bottom, #B47E58 0 116px, #A26E4B 116px 119px); border-top: 3px solid #3A2E2A; box-shadow: 0 -6px 18px rgba(0,0,0,.25); animation: tableIn .25s ease-out; }
@keyframes tableIn { from { transform: translateY(36px); opacity: 0; } }
.closeHint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(4px + env(safe-area-inset-bottom)); margin: 0; padding: 8px 18px; min-height: 40px; background: none; border: none; font: inherit; font-size: 14px; font-weight: 800; color: #F6E7D6; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(246,231,214,.5); text-underline-offset: 4px; z-index: 5; }
.prop { position: absolute; pointer-events: none; }
.prop.stain { width: 120px; right: -10px; bottom: 20px; }
.prop.pencil { width: 120px; left: -26px; bottom: 30px; transform: rotate(-24deg); }
.prop.mug { width: 110px; right: 10px; top: 24px; }

.nb { --tilt: -1.5deg; position: absolute; left: 50%; top: 26px; bottom: 50px; width: min(540px, calc(100% - 30px)); transform: translateX(-50%) rotate(var(--tilt));
  transition: transform .35s ease; font-family: 'Patrick Hand', 'Comic Sans MS', cursive; color: #3A2E2A; perspective: 1600px; }
.nb[hidden], .cover[hidden], .picker[hidden] { display: none; }
.rings { position: absolute; left: 24px; right: 24px; top: -12px; display: flex; justify-content: space-between; z-index: 4; pointer-events: none; }
.rings i { width: 9px; height: 22px; box-sizing: border-box; border: 2.5px solid #3A2E2A; border-radius: 6px; background: #D9D2C4; }
.sheet { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  background: #FFF9EA; border: 2.5px solid #3A2E2A; border-radius: 6px; box-shadow: 5px 6px 0 #7B4E36, 0 16px 30px rgba(0,0,0,.28); scrollbar-width: thin; scrollbar-color: #D5C2A8 transparent; }
.pg { position: relative; min-height: 100%; box-sizing: border-box; padding: 26px 14px 34px 0; font-size: 17px; line-height: 26px;
  background: linear-gradient(90deg, transparent 52px, #EDB7AA 52px 54px, transparent 54px), repeating-linear-gradient(to bottom, transparent 0 25px, #D5E0E8 25px 26px); }
.pgHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-left: 60px; min-height: 52px; }
.dayBtn { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; flex: none; }
.dayBtn h2 { margin: 0; font-weight: 400; font-size: 30px; line-height: 52px; }
.dayBtn:hover h2 { text-decoration: underline wavy #D5C2A8 1.5px; text-underline-offset: 6px; }
.pgHead .meta { font-size: 15px; color: #8A6A58; text-align: right; line-height: 20px; }
.hlRow { padding-left: 60px; height: 26px; }
.hl { display: inline-block; background: #F6E27A; padding: 0 8px; border-radius: 3px; transform: rotate(-2deg); font-size: 19px; letter-spacing: 1px; line-height: 24px; }
.row { display: grid; grid-template-columns: 54px 1fr; align-items: start; min-height: 52px; }
.row .mg { display: flex; justify-content: center; padding-top: 1px; }
.row .mg .dd { max-width: 40px; height: auto; }
.row p { margin: 0 0 0 6px; overflow-wrap: anywhere; }
.row p.empty { color: #8A6A58; }
.nm { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.nm.live { cursor: pointer; }
.tapeins { display: flex; flex-wrap: wrap; gap: 18px 20px; padding: 22px 6px 6px 66px; }
.polaroid { position: relative; width: 116px; padding: 6px 6px 20px; background: #fff; border: 1.5px solid #BFB3A6; box-shadow: 0 3px 6px rgba(0,0,0,.15); transform: rotate(var(--r)); cursor: pointer; }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid .tape { position: absolute; left: 50%; top: -9px; width: 44px; height: 16px; margin-left: -22px; background: rgba(241,230,184,.88); transform: rotate(-6deg); }
.bigRow { padding: 20px 8px 0 62px; }
.bigRow .big { display: block; width: min(100%, 300px); height: auto; }
.pgNav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0 54px; }
.pgNav button { font: inherit; font-size: 19px; color: #8A5A3E; background: none; border: none; min-height: 44px; padding: 0 10px; cursor: pointer; }
.ribbon { position: absolute; right: 54px; bottom: -44px; width: 44px; height: 56px; padding: 0; border: none; background: none; cursor: pointer; z-index: 3; display: flex; justify-content: center; }
.ribbon i { width: 16px; height: 100%; background: #D9614C; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); transition: transform .2s; transform-origin: top; }
.ribbon:hover i { transform: scaleY(1.06); }
/* a page turning: it lifts from the bottom and flips up over the rings */
.flip { position: absolute; inset: 0; z-index: 2; transform-origin: 50% 0; transform-style: preserve-3d; pointer-events: none; }
.flip .face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #FFF9EA; border: 2.5px solid #3A2E2A; border-radius: 6px; }
.flip .face.back { transform: rotateX(180deg); background: linear-gradient(#E9DDC6, #FFF9EA 70%); }
.flip.up { animation: flipUp .46s cubic-bezier(.45,.05,.55,.95) forwards; }
.flip.down { animation: flipDown .46s cubic-bezier(.45,.05,.55,.95) forwards; }
@keyframes flipUp { from { transform: rotateX(0deg); } to { transform: rotateX(178deg); } }
@keyframes flipDown { from { transform: rotateX(178deg); } to { transform: rotateX(0deg); } }
@media (prefers-reduced-motion: reduce) { .flip.up, .flip.down { animation-duration: .01s; } }

/* the notebook closed, when there is a new page to read */
.cover { position: absolute; inset: 0; display: grid; place-items: center; }
.closed { position: relative; width: 250px; height: 330px; padding: 0; margin-top: -40px; border: 2.5px solid #3A2E2A; border-radius: 8px; background: #C07F62; cursor: pointer;
  box-shadow: 5px 6px 0 #7B4E36, 0 16px 30px rgba(0,0,0,.3); transform: rotate(-4deg); font-family: 'Patrick Hand', cursive; color: #3A2E2A; }
.closed .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: #A9674C; border-right: 2.5px solid #3A2E2A; border-radius: 6px 0 0 6px; }
.closed .band { position: absolute; right: 26px; top: -3px; bottom: -3px; width: 10px; background: #3A2E2A; }
.closed .label { position: absolute; left: 46px; top: 54px; width: 150px; box-sizing: border-box; padding: 12px 8px 14px; background: #FFF9EA; border: 2.5px solid #3A2E2A; border-radius: 10px; transform: rotate(2deg); display: flex; flex-direction: column; align-items: center; }
.closed .label b { font-weight: 400; font-size: 27px; line-height: 30px; overflow-wrap: anywhere; }
.closed .label small { font-size: 14px; color: #8A6A58; margin-top: 2px; }
.closed .coverBao { position: absolute; left: 80px; top: 200px; }
.closed .sticky { position: absolute; right: -32px; top: 60px; width: 64px; height: 42px; box-sizing: border-box; background: #F6E27A; border: 2px solid #3A2E2A; border-radius: 4px;
  font-size: 15px; line-height: 15px; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; transform: rotate(8deg); animation: stickyNudge 2.4s ease-in-out infinite; }
@keyframes stickyNudge { 0%, 70%, 100% { transform: rotate(8deg); } 80% { transform: rotate(13deg) translateX(3px); } 90% { transform: rotate(5deg); } }
.closed .cribbon { position: absolute; left: 160px; bottom: -36px; width: 14px; height: 40px; background: #D9614C; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.tapRead { position: absolute; left: 0; right: 0; bottom: 56px; margin: 0; text-align: center; font-family: 'Patrick Hand', cursive; font-size: 21px; color: #FFF3E3; pointer-events: none; }

/* every day so far, as a little calendar */
.picker { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(40,30,50,.25); }
.pk { width: min(340px, 100%); max-height: 78%; overflow-y: auto; box-sizing: border-box; padding: 0 14px 12px; background: #FFF9EA; border: 2.5px solid #3A2E2A; border-radius: 10px;
  box-shadow: 4px 5px 0 #7B4E36; font-family: 'Patrick Hand', cursive; color: #3A2E2A; transform: rotate(-1deg); overscroll-behavior: contain; }
.pkHead { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 0 6px; background: #FFF9EA; font-size: 20px; }
.pkHead button { font: inherit; font-size: 17px; color: #8A5A3E; background: #F6E27A; border: 2px solid #3A2E2A; border-radius: 12px; padding: 2px 10px; cursor: pointer; }
.pkMonth h3 { font-weight: 400; font-size: 18px; margin: 10px 0 4px; color: #8A5A3E; }
.pkGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.pkGrid > * { height: 40px; line-height: 40px; font-size: 16px; border-radius: 50%; }
.pkGrid span { color: #C9BBAA; }
.pkGrid button { position: relative; font: inherit; font-size: 18px; color: #3A2E2A; border: none; background: none; padding: 0; cursor: pointer; }
.pkGrid button:hover { background: #F3E7D0; }
.pkGrid .today { background: #F6E27A; }
.pkGrid .cur { box-shadow: inset 0 0 0 2px #D9614C; }
.pkGrid .ph::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #D9614C; }


/* ---------- a new community: choosing the narrator ---------- */
#narr { position: fixed; inset: 0; z-index: 46; background: rgba(40,30,50,.28); display: grid; place-items: center; padding: 16px; }
#narr[hidden] { display: none; }
.narrCard { width: min(460px, 100%); }
.narrSub { font-size: 14px; line-height: 1.4; opacity: .8; margin: 0 0 12px; }
.narrPick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.narrOpt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(58,42,34,.18); transition: transform .12s; font: inherit; color: inherit; }
.narrOpt:hover, .narrOpt:focus-visible { transform: translateY(-2px) rotate(-1deg); }
.narrOpt:active { transform: translateY(1px); }
.narrOpt b { font-size: 18px; }
.narrOpt .about { font-size: 12.5px; line-height: 1.35; opacity: .85; }
.narrOpt .sample { margin-top: 4px; font-family: 'Patrick Hand', cursive; font-size: 16px; line-height: 1.25; color: #6B4A3A; background: #FFF9EA; border-radius: 10px; padding: 6px 8px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 19px, #D5E0E8 19px 20px); }
