.daily-paper {
  --daily-grain: url("/assets/riddle-desk-paper.webp");
  --daily-ink: #162731;
  --daily-paper-color: #f8efdd;
  background: var(--daily-grain) center top / 670px auto repeat, var(--daily-paper-color);
  background-blend-mode: luminosity;
}
.daily-paper-hero { position: relative; }
.daily-paper-hero::after {
  position: absolute;
  inset: auto 0 -10px;
  height: 32px;
  background: var(--daily-grain) center / 420px auto, #7b8a5d;
  background-blend-mode: multiply;
  clip-path: polygon(0 68%, 4% 44%, 11% 54%, 16% 29%, 22% 52%, 31% 33%, 37% 47%, 43% 36%, 51% 51%, 59% 32%, 67% 45%, 73% 34%, 81% 45%, 92% 33%, 100% 45%, 100% 73%, 93% 61%, 82% 78%, 74% 67%, 66% 77%, 59% 66%, 52% 83%, 44% 67%, 37% 81%, 30% 66%, 22% 83%, 15% 66%, 10% 89%, 4% 74%, 0 93%);
  content: "";
  pointer-events: none;
}
.daily-paper-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; padding-block: 18px 30px; }
.daily-paper-copy { position: relative; z-index: 1; }
.daily-paper-copy h1 { margin: 0; color: var(--daily-ink); font: 700 clamp(2.95rem,6.5vw,6rem)/.92 var(--font-editorial); letter-spacing: -.058em; }
.daily-paper-copy h1::after { display: block; width: min(62%, 340px); height: 10px; margin: 13px 0 4px; border-top: 5px solid var(--brand-action); border-radius: 50%; transform: rotate(-3deg); content: ""; }
.daily-paper-copy p { margin: .25em 0 .8em; color: #38513e; font-weight: 650; }
.daily-paper-art { display: block; width: 100%; height: auto; max-height: 358px; object-fit: contain; }
.daily-paper-copy .btn { border-radius: 18px; }
.daily-paper-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.daily-paper-actions .btn { min-height: 44px; }
.daily-paper-actions .btn-secondary { background: #fff8e9; color: #264233; border-color: #416148; }
.daily-paper-actions [hidden] { display: none; }
.daily-paper #daily-route { padding-block: 29px 32px; scroll-margin-top: var(--header-h); }
.daily-paper-progress { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.daily-paper-progress strong { color: #35523d; font-size: .9rem; }
.daily-route-meter { position: relative; display: flex; align-items: center; justify-content: space-between; width: 80px; }
.daily-route-meter::before { position: absolute; inset: 50% 4px auto; height: 2px; background: #8c9477; content: ""; }
.daily-route-meter span { position: relative; width: 15px; height: 15px; border: 2px solid #7f886d; border-radius: 50%; background: #faf0db; }
.daily-route-meter .is-current { border-color: var(--brand-action); }
.daily-route-meter .is-complete { border-color: #4d6534; background: #4d6534; }
.daily-route-note { margin: 0 0 12px; }
.daily-route-note:empty { display: none; }
.daily-paper .daily-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,3vw,34px); }
:is(.daily-paper-card, .saved-paper-card) {
  position: relative;
  isolation: isolate;
  filter: drop-shadow(1px 3px 2px #68523855);
}
.daily-paper-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 13px 16px 20px;
}
:is(.daily-paper-card, .saved-paper-card)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/riddle-desk-paper.webp") center / 480px auto, var(--paper-card-color, #fff4db);
  background-blend-mode: soft-light;
  box-shadow: inset 0 0 20px #a67a3863;
  clip-path: polygon(3% 8%, 9% 3%, 21% 2%, 34% 4%, 45% 1%, 57% 2%, 69% 0, 80% 3%, 92% 2%, 98% 8%, 99% 19%, 98% 34%, 100% 46%, 98% 61%, 100% 75%, 98% 91%, 94% 96%, 83% 97%, 70% 100%, 58% 98%, 49% 99%, 40% 97%, 31% 100%, 20% 97%, 10% 98%, 3% 94%, 1% 85%, 2% 70%, 0 57%, 2% 40%, 1% 23%);
  content: "";
}
.daily-paper-card.is-current::before { background-color: #f9dfbd; box-shadow: inset 0 0 22px #b45e3866; }
.daily-paper-card:not(:last-child)::after {
  position: absolute;
  top: calc(50% - 7px);
  right: calc(-1 * clamp(7px, 1.5vw, 19px));
  width: 12px;
  height: 12px;
  border: solid #506838;
  border-width: 0 3px 3px 0;
  transform: rotate(-45deg);
  content: "";
}
.daily-paper-card:not(.is-complete) .daily-complete-stamp { display: none; }
.daily-complete-stamp {
  position: absolute;
  top: 10px;
  left: 11px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #4d6534;
  font-weight: 700;
}
.daily-paper-card > img { width: min(78%, 190px); height: auto; aspect-ratio: 6 / 5; object-fit: contain; }
.daily-card-copy { display: grid; justify-items: center; align-content: end; gap: 9px; text-align: center; }
.daily-card-copy h2 { min-height: 2.25em; margin: 0; font: 700 clamp(1.4rem,2.75vw,2.45rem)/1.08 var(--font-editorial); color: var(--daily-ink); }
.daily-card-copy .btn { min-height: 44px; gap: 9px; border-radius: 21px; }
.daily-card-copy .btn-secondary { background: #fff9eaba; border-color: #416148; color: #264233; }
.daily-card-save { position: absolute; top: 8px; right: 8px; min-width: 44px; height: 44px; background: #fff9e9; }
.daily-paper-return { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.daily-paper-return strong { color: #35523d; }
.daily-paper-return .weekly-activity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.daily-paper-return .week-day { display: grid; min-width: 20px; justify-items: center; font-size: .7rem; }
.daily-paper-return .week-day i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #d0c8b1; }
.daily-paper-return .week-day.is-active i { background: #4b684a; }
.daily-paper-return a.week-day {
  min-width: 36px;
  min-height: 44px;
  align-content: center;
  color: #284430;
  background: #f7ead1;
  border: 1px solid #7c7653;
  border-radius: 9px;
  text-decoration: none;
}
.daily-paper-return a.week-day:hover, .daily-paper-return a.week-day[aria-current] { background: #e8dbb9; }
@media(min-width: 741px) and (max-width: 1020px) {
  .daily-paper-layout { grid-template-columns: minmax(0,1fr) minmax(0,.93fr); padding-block: 28px 31px; }
  .daily-paper-copy > p, .daily-paper-progress { width: fit-content; padding: 5px 9px; border-radius: 7px; background: #fff3d8; }
  .daily-paper-copy h1 { font-size: clamp(2.65rem,6.3vw,4rem); }
}
@media(max-width: 740px) {
  .daily-paper-layout { grid-template-columns: 1fr; position: relative; padding-block: 23px 24px; }
  .daily-paper-copy h1 { font-size: clamp(1.9rem,9.6vw,3.8rem); max-width: 74%; }
  .daily-paper-layout:has([data-daily-date][hidden]) .daily-paper-copy h1 { max-width: 70%; }
  .daily-paper-art { position: absolute; right: 0; top: 8px; width: 34%; height: auto; }
  .daily-paper .daily-route-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .daily-paper-card { grid-template-columns: minmax(72px,.69fr) minmax(0,1fr); grid-template-rows: auto; align-items: center; justify-items: stretch; min-height: 137px; padding: 12px 16px; }
  .daily-paper-card > img { width: 100%; max-width: 143px; max-height: 118px; justify-self: center; }
  .daily-paper-card:not(:last-child)::after { top: auto; bottom: -17px; left: calc(50% - 6px); right: auto; transform: rotate(45deg); }
  .daily-card-copy { justify-items: start; text-align: left; padding-right: 34px; }
  .daily-card-copy h2 { min-height: 0; font-size: clamp(1.15rem,5.8vw,1.85rem); }
  .daily-card-copy .btn { padding-inline: 9px; font-size: .83rem; }
}

.saved-paper-page {
  --saved-paper: url("/assets/riddle-desk-paper.webp") center top / 670px auto;
  background: var(--saved-paper), #f8efdd;
  background-blend-mode: luminosity;
}
.saved-paper { position: relative; max-width: 1050px; padding-block: clamp(20px, 4vw, 56px); }
.saved-paper-title { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); margin-bottom: 20px; }
.saved-paper-title img { width: clamp(42px, 6vw, 76px); height: auto; flex: none; }
.saved-paper-title h1 { margin: 0; color: #152733; font: 700 clamp(2.2rem, 5.4vw, 5rem)/1 var(--font-editorial); letter-spacing: -.047em; }
.saved-paper-title h1::after { display: block; width: 69%; margin-top: 4px; height: 11px; border-top: 4px solid var(--brand-action); border-radius: 50%; transform: rotate(-2deg); content: ""; }
.saved-paper .active-route-card { margin: 0 0 20px; background: #f4ebd2; border-color: #ad9a70; }
.saved-paper-layout { display: grid; gap: 25px; align-items: start; }
.saved-paper-layout:has([data-progress-section]:not([hidden])) { grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); }
.saved-paper-layout h2, .saved-recent h2 { margin-block: 0 10px; font: 700 clamp(1.35rem, 3vw, 2.05rem)/1.08 var(--font-editorial); }
.saved-paper-card {
  display: grid;
  grid-template-columns: minmax(110px, min(27%, 264px)) minmax(0, 1fr) minmax(114px, .43fr);
  align-items: center;
  gap: 9px 14px;
  padding: 13px 16px;
  margin-bottom: 14px;
}
.saved-paper-card::before {
  clip-path: polygon(8px 12%, 21px 4%, 16% 2%, 29% 4%, 42% 1%, 55% 3%, 67% 1%, 82% 3%, calc(100% - 18px) 4%, calc(100% - 6px) 11%, 100% 25%, calc(100% - 5px) 44%, 100% 55%, calc(100% - 5px) 70%, 100% 88%, calc(100% - 16px) 96%, 84% 98%, 68% 97%, 51% 100%, 37% 98%, 23% 100%, 12% 97%, 17px 96%, 4px 91%, 7px 73%, 1px 60%, 6px 42%, 2px 25%);
}
.saved-paper-card img { display: block; width: 100%; height: auto; max-height: 162px; aspect-ratio: 5/3; object-fit: cover; border-radius: 8px 13px 10px 6px; }
.saved-paper-card .saved-paper-cutout { object-fit: contain; }
.saved-paper-card h3 { margin: 0 0 4px; font: 700 clamp(1.22rem, 2.65vw, 2.2rem)/1.07 var(--font-editorial); overflow-wrap: anywhere; }
.saved-paper-card-copy p { margin: 0; color: #465c43; font: 560 .88rem/1.45 var(--font-ui); }
.saved-paper-actions { display: grid; gap: 6px; }
.saved-paper-actions .btn { min-height: 44px; gap: 7px; padding: 6px 10px; border-radius: 15px; font-size: .88rem; }
.saved-paper-actions .btn .icon { width: 1.05em; height: 1.05em; }
.saved-paper-actions .btn-secondary { color: #2e4936; border-color: #56715a; background: #fff9ea; }
[data-progress-section] .saved-paper-card { grid-template-columns: 64px minmax(0,1fr); }
[data-progress-section] .saved-paper-actions { grid-column: 1/-1; }
[data-progress-section] .saved-paper-card h3 { font-size: clamp(1.12rem, 2.25vw, 1.56rem); }
.saved-paper-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; justify-content: center; min-height: 240px; }
.saved-paper-empty img { display: block; width: min(100%, 350px); height: auto; }
.saved-paper-empty p { margin: 0 0 12px; }
.saved-paper-empty .btn { min-height: 44px; }
.saved-recent { margin-top: 28px; }
.saved-recent .quick-list { max-width: 650px; }
.saved-paper-count { color: #415440; margin: 15px 0 0; }
.saved-paper-settings { margin-bottom: 0; }
.saved-paper-settings button { padding: 10px 0; background: none; border: 0; }
@media (min-width: 1250px) {
  .saved-paper::before {
    position: absolute;
    right: 100%;
    top: 195px;
    width: min(12vw, calc((100vw - 1050px) / 2 - 6px));
    aspect-ratio: 1.35;
    background: url("/assets/riddle-poppy-sprig.webp") center / contain no-repeat;
    content: "";
    pointer-events: none;
  }
}
@media (min-width: 601px) and (max-width: 1020px) {
  .saved-paper-card:nth-child(3n+1) { --paper-card-color: #ebedd0; }
  .saved-paper-card:nth-child(3n+2) { --paper-card-color: #fbe1ca; }
}
@media (max-width: 820px) {
  .saved-paper-layout:has([data-progress-section]:not([hidden])) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .saved-paper { min-height: calc(100svh - var(--header-h, 66px) - 62px); }
  .saved-paper-card { grid-template-columns: minmax(94px, .7fr) minmax(0, 1fr); }
  .saved-paper-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 7px; }
  .saved-paper-actions .btn { flex: 1 1 100px; }
  .saved-paper-empty { flex-direction: column; gap: 10px; text-align: center; }
  .saved-paper-empty img { width: min(82%, 320px); }
}
