/* ---------- today's wall ---------- */
.wallpage { display: flex; flex-direction: column; height: calc(100vh - var(--bar)); min-height: 560px; }
.wallhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 32px; padding: 14px var(--gutter) 12px; }
.wallhead .back { margin-bottom: 6px; }
.wall-title { font-size: clamp(32px, 4.6vw, 64px); }
.wallhead .page-sub { font-size: clamp(20px, 1.8vw, 26px); }
.wallhead__r { text-align: right; display: grid; gap: 2px; max-width: 46ch; }
.wallhead__r p { margin: 0; }
.wallhead__stats { font-weight: 600; }
.wallhead__clock { color: var(--muted); font-size: 14px; }
.wallhead__local { font-size: 13px; background: #FFF3C4; border-radius: 8px; padding: 4px 8px; margin-top: 4px !important; text-align: left; }
.board-wrap { position: relative; flex: 1; min-height: 0; margin: 0 var(--gutter) 12px; }
.viewport {
  position: absolute; inset: 0; overflow: hidden; border-radius: 22px; background-color: #F7F8FB;
  background-image: radial-gradient(circle, #D3D8E3 1.2px, transparent 1.6px); background-size: 26px 26px;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); touch-action: none; cursor: grab; outline: none;
}
.viewport:active { cursor: grabbing; }
.viewport.is-drawing { cursor: crosshair; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; background-image: var(--noise); box-shadow: 0 0 0 calc(3px / var(--k, 1)) rgba(36, 78, 231, .25), 0 calc(20px / var(--k, 1)) calc(60px / var(--k, 1)) rgba(16, 30, 90, .12); border-radius: 10px; }
.prompt-card { position: absolute; left: 50%; top: 40px; transform: translateX(-50%) rotate(-1.2deg); background: var(--cobalt); color: #fff; padding: 22px 40px 26px; border-radius: 6px; text-align: center; box-shadow: 8px 10px 0 rgba(0, 0, 0, .12); pointer-events: none; min-width: 520px; }
.prompt-card span { display: block; font-family: var(--font-hand); font-weight: 700; font-size: 34px; color: var(--yellow); }
.prompt-card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 1.05; max-width: 900px; }
.draft { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 900000; overflow: visible; }
.empty-hint { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-3deg); pointer-events: none; text-align: center; }
.empty-hint p { font-family: var(--font-hand); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--muted); margin: 0; }

.wi { position: absolute; transform-origin: 50% 50%; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.wi img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.wi.is-new { animation: stick .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stick { from { opacity: 0; scale: 1.25; } }
.wi.is-mine { cursor: move; }
.wi.is-active { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .22)); }
.wi:focus-visible { outline: calc(3px / var(--k, 1)) dashed var(--cobalt); outline-offset: calc(6px / var(--k, 1)); }
.wi--note { background: var(--paper, #FFE45C); padding: 34px 22px 22px; box-shadow: 2px 10px 14px -8px rgba(0, 0, 0, .35); display: flex; align-items: center; }
.wi--note.is-dark { color: #fff; }
.wi--note .tape { position: absolute; left: 50%; top: -14px; width: 96px; height: 32px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.wi__text { margin: 0; font-family: var(--font-hand); font-weight: 700; line-height: 1.05; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; width: 100%; max-height: 100%; }
.wi--whisper { background: var(--paper, #fff); padding: 14px 18px 14px 64px; display: flex; align-items: center; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .3); clip-path: polygon(0 4%, 6% 0, 14% 5%, 25% 0, 40% 4%, 55% 0, 70% 5%, 85% 0, 100% 4%, 98% 50%, 100% 96%, 86% 100%, 70% 95%, 55% 100%, 40% 96%, 25% 100%, 10% 95%, 0 100%, 2% 50%); }
.wi--whisper .wi__text { font-family: var(--font-body); font-weight: 500; font-size: 24px; line-height: 1.2; font-style: italic; }
.wi__psst { position: absolute; left: 16px; top: 50%; transform: translateY(-50%) rotate(-8deg); font-family: var(--font-hand); font-weight: 700; color: var(--red); font-size: 26px; }
.wi--image { background: #fff; padding: 12px 12px 34px; box-shadow: 4px 12px 18px -8px rgba(0, 0, 0, .35); }
.wi--image img { object-fit: cover; }
.wi--strip { filter: drop-shadow(4px 12px 10px rgba(0, 0, 0, .25)); }
.wi--sticker, .wi--medal { filter: drop-shadow(2px 6px 4px rgba(0, 0, 0, .18)); }
.wi--drawing svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wi__h { position: absolute; inset: 0; pointer-events: none; display: none; }
.wi.is-mine:hover .wi__h, .wi.is-mine:focus .wi__h, .wi.is-mine:focus-within .wi__h, .wi.is-mine.is-active .wi__h { display: block; }
@media (hover: none) { .wi.is-mine .wi__h { display: block; } }
.hd { position: absolute; width: calc(34px / var(--k, 1)); height: calc(34px / var(--k, 1)); border-radius: 50%; background: #fff; border: calc(2px / var(--k, 1)) solid #000; display: grid; place-items: center; padding: 0; color: #000; pointer-events: auto; transform: translate(-50%, -50%); }
.hd svg { width: 50%; height: 50%; }
.hd--del { left: 0; top: 0; background: var(--red); border-color: var(--red); color: #fff; }
.hd--rot { left: 100%; top: 0; cursor: grab; }
.hd--size { left: 100%; top: 100%; cursor: nwse-resize; }
.wi__flag { position: absolute; right: 0; top: 0; transform: translate(40%, -40%); width: calc(34px / var(--k, 1)); height: calc(34px / var(--k, 1)); border-radius: 50%; border: calc(1.5px / var(--k, 1)) solid #000; background: #fff; padding: 0; display: none; place-items: center; }
.wi__flag svg { width: 50%; height: 50%; }
.wi:hover .wi__flag, .wi:focus .wi__flag, .wi:focus-within .wi__flag { display: grid; }

.zoombar { position: absolute; right: 14px; top: 14px; display: grid; gap: 6px; z-index: 5; }
.dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; padding: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.tool { display: grid; justify-items: center; gap: 3px; min-width: 66px; padding: 6px 8px 5px; border: 0; background: transparent; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tool:hover { background: var(--soft); }
.tool:hover .tool__ic { transform: translateY(-3px) rotate(-6deg); }
.tool__ic { width: 34px; height: 30px; border-radius: 6px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); background-repeat: no-repeat; background-position: center; }
.tool__ic--note { background: #FFE45C; box-shadow: 2px 3px 0 rgba(0, 0, 0, .2); transform: rotate(-4deg); }
.tool__ic--whisper { background: #fff; border: 1.5px solid #000; height: 18px; margin: 6px 0; clip-path: polygon(0 10%, 20% 0, 40% 10%, 60% 0, 80% 10%, 100% 0, 100% 90%, 80% 100%, 60% 90%, 40% 100%, 20% 90%, 0 100%); }
.tool__ic--draw { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'><path d='M3 22c6-12 10 8 16-4s8 6 12-2' fill='none' stroke='%23244EE7' stroke-width='4' stroke-linecap='round'/></svg>"); }
.tool__ic--sticker { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'><path d='M17 2l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z' fill='%23FFD84A' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.tool__ic--image { background: var(--sky); border: 3px solid #fff; box-shadow: 0 0 0 1.5px #000; background-image: linear-gradient(135deg, transparent 55%, #244EE7 55%); }
.tool__ic--strip { width: 16px; background: #fff; box-shadow: 0 0 0 1.5px #000; background-image: linear-gradient(#FFB8D9 0 20%, #fff 20% 26%, #FFB8D9 26% 46%, #fff 46% 52%, #FFB8D9 52% 72%, #fff 72% 78%, #FFB8D9 78%); }
.tool__ic--medal { border-radius: 50%; width: 28px; height: 28px; background: var(--yellow); box-shadow: 0 0 0 2px #000; }
.tool--medal { background: #FFF3C4; }
.drawbar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 7; width: max-content; max-width: calc(100% - 24px); }
.drawbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; }
.drawbar__btns { display: flex; gap: 6px; }
.dayover { position: absolute; inset: auto 16px 16px 16px; z-index: 8; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px; }
.dayover p { margin: 0; }
.paper-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pp { width: 40px; height: 40px; border-radius: 6px; border: 0; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2); padding: 0; transform: rotate(-3deg); }
.pp[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2), 0 0 0 2px #fff, 0 0 0 4px #000; transform: rotate(0); }
.tray--big { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.wallpage.is-archive .viewport { box-shadow: 6px 6px 0 var(--muted); border-color: var(--muted); }
@media (max-width: 700px) {
  .wallpage { height: auto; min-height: 0; }
  .board-wrap { height: 72vh; min-height: 440px; margin: 0 10px 12px; }
  .wallhead__r { text-align: left; }
  .viewport { border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .dock { left: 8px; right: 8px; transform: none; max-width: none; justify-content: space-between; gap: 0; padding: 5px 4px; border-radius: 16px; }
  .tool { min-width: 0; flex: 1 1 0; padding: 5px 1px 4px; font-size: 10.5px; }
  .tool__ic { width: 28px; height: 24px; }
  .tool__ic--strip { width: 13px; }
  .tool__ic--medal { width: 22px; height: 22px; }
  .wall-title { font-size: 36px; }
  .prompt-card { min-width: 0; width: max-content; max-width: 1100px; }
  .zoombar { gap: 4px; }
  .wallhead { padding-top: 10px; }
  .wallhead__r { gap: 0; }
  .zoombar { right: 10px; top: 10px; }
  .zoombar .iconbtn { width: 38px; height: 38px; }
}

/* ---------- time capsule ---------- */
.cap-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
}
.cap-nav h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 40px); margin: 0 8px; min-width: 7.5em; }
.cap-nav select { width: auto; }
.cap-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cap-wd { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cap-day { position: relative; aspect-ratio: 3 / 2.6; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.cap-day:hover, a.cap-day:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 4px 6px 0 var(--ink); border-color: var(--ink); }
.cap-day__n { position: absolute; left: 8px; top: 6px; z-index: 2; font-family: var(--font-display); font-size: 18px; line-height: 1; background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 2px 5px; }
.cap-day canvas { width: 100%; height: 100%; display: block; }
.cap-day__c { position: absolute; right: 6px; bottom: 5px; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 99px; padding: 1px 7px; }
.cap-day--empty { background: transparent; border-style: dashed; }
.cap-day--quiet { display: grid; place-items: center; }
.cap-day--quiet span.q { font-family: var(--font-hand); color: var(--muted); font-size: 18px; }
.cap-day--today { border: 2.5px solid var(--cobalt); box-shadow: 4px 4px 0 var(--cobalt); }
.cap-day--today .cap-day__c { background: var(--cobalt); }
.cap-day--future { opacity: .45; }
.cap-legend { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.cap-daynav { display: flex; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  .cap-grid { gap: 4px; }
  .cap-day { border-radius: 8px; aspect-ratio: 1; }
  .cap-day__n { font-size: 13px; left: 3px; top: 3px; padding: 1px 3px; }
  .cap-day__c { font-size: 10px; right: 3px; bottom: 3px; padding: 0 5px; }
  .cap-day--quiet span.q { display: none; }
  .cap-wd { font-size: 11px; }
}
@media (max-width: 700px) {
  .cap-nav { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; }
  .cap-nav h2 { margin: 0; min-width: 0; text-align: center; font-size: 19px; white-space: nowrap; }
  .cap-today { display: none; }
  .cap-nav select { grid-row: 2; width: 100%; }
  .cap-nav #cap-m { grid-column: 1 / 3; }
  .cap-nav #cap-y { grid-column: 3 / 4; width: auto; min-width: 88px; justify-self: end; }
  .cap-nav .btn { grid-column: 1 / -1; justify-self: start; }
