.pack-sheet { margin: 0 0 2rem; padding-top: 0.5rem; }
.sheet-art { display: block; width: min(100%, 40rem); max-width: 40rem; height: auto; margin: 0.75rem 0 1rem; background: #fff; }
ol.clues, ul.clues { margin: 0.3rem 0 1rem; padding-left: 1.4rem; }
.draw-box { height: 32rem; border: 2px solid currentColor; border-radius: 0.6rem; margin: 1rem 0 2rem; }
.more { font-weight: 750; }
header.site .links a { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.btn.ghost { background: #fff; color: inherit; border: 1px solid #cbd5e1; }
.ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.8rem; margin: 1rem 0 1.4rem; }
.age-card { display: grid; gap: 0.2rem; text-align: left; padding: 1rem 1.1rem; background: #fff; color: inherit; border: 2px solid #cbd5e1; border-radius: 0.8rem; font: inherit; cursor: pointer; box-shadow: 0 2px 4px -1px rgba(20,33,61,.06); }
.age-card:hover { border-color: #0ea5e9; }
.age-card[aria-pressed="true"] { border-color: #14213d; box-shadow: 0 8px 16px -4px rgba(20,33,61,.18); outline: 3px solid #f59e0b; outline-offset: 2px; }
.age-range { font-size: 1.5rem; font-weight: 800; }
.age-name { font-weight: 700; }
.age-lines { font-size: 0.9rem; opacity: 0.75; }
.band-prompt { padding: 1.4rem; border: 2px dashed #f59e0b; border-radius: 0.8rem; background: #fff; }
.band-panel[hidden], .band-prompt[hidden] { display: none; }
.shelf-title { margin: 1.8rem 0 0.6rem; }
.card-art { position: relative; }
.badge-state, .badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: #14213d; color: #fff; font-size: 0.8rem; font-weight: 700; }
.card-art .badge-state { position: absolute; top: 0.6rem; right: 0.6rem; }
.badge-state.on, .badge.on, .badge-state.free { background: #15803d; }
.badge.lock { background: #fef3c7; color: #92400e; }
.badge.band-3 { background: #f59e0b; color: #14213d; } .badge.band-6 { background: #0ea5e9; color: #fff; } .badge.band-9 { background: #14213d; color: #fff; } .badge.band-18 { background: #3f6212; color: #fff; }
.crumbs { font-size: 0.92rem; margin-bottom: 0.8rem; }
.sale-grid { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.cal-sale { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); }
.preview-key { margin: 0.55rem 0 0; font-weight: 750; }
.sheet-frame { position: relative; margin: 0; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 8px 16px -4px rgba(20,33,61,.1); aspect-ratio: 1 / 1.294; overflow: hidden; }
.sheet-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stamp { position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.15rem 0.6rem; border: 2px solid #0ea5e9; color: #0ea5e9; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 0.3rem; background: rgba(255,255,255,.85); }
.includes { padding-left: 1.2rem; line-height: 1.7; }
.price-line b { font-size: 2rem; margin-right: 0.5rem; }
.buy { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.cut { border-top: 2px dashed #f59e0b; padding-top: 1.2rem; margin-top: 2.4rem; }
.film { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.film-item { margin: 0; font-size: 0.9rem; }
.thumb { aspect-ratio: 1 / 1.294; background: #fff; border: 1px solid #e2e8f0; overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.blur img, .thumb.blur .big-word { filter: blur(3px); }
.owned-list { line-height: 2; }
.restore { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0.6rem 0; }
.restore label { flex-basis: 100%; font-weight: 700; }
.restore input { flex: 1 1 18rem; padding: 0.6rem 0.7rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; }
.search { display: flex; align-items: center; gap: 0.4rem; margin: 0.6rem 0; }
.search input { padding: 0.5rem 0.7rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; min-width: 16rem; }
.big-word { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800; margin: 0.2rem 0 0.6rem; line-height: 1; }
.big-word.small { font-size: 1.6rem; }
.word-trace { width: min(100%, 40rem); }
.write-line { border-bottom: 2px solid currentColor; height: 2.6rem; margin: 0.4rem 0; max-width: 40rem; }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 0.6rem; }
table.cal th, table.cal td { border: 1px solid currentColor; text-align: left; vertical-align: top; padding: 0.2rem 0.35rem; height: 2.6rem; }
.cal-page .sheet-art { max-height: 26rem; width: auto; margin-inline: auto; margin-block: 0.25rem 0.5rem; }
table.cal td { height: 3.1rem; position: relative; }
table.cal th { text-align: center; font-size: 0.85rem; padding: 0.15rem; }
.dn { font-weight: 700; font-size: 0.95rem; }
.hol { position: absolute; left: 0.25rem; right: 0.1rem; bottom: 0.1rem; font-size: 0.62rem; line-height: 1.05; color: #b45309; font-weight: 700; }
table.habit-table td { height: 3rem; }
td.habit { width: 28%; }
.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem 1.2rem; }
.mini h3 { margin: 0 0 0.2rem; font-size: 1rem; }
table.mini-cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.72rem; }
table.mini-cal th, table.mini-cal td { text-align: center; padding: 0.12rem 0; border: 1px solid #e2e8f0; height: 1.25rem; }
.bday-list, .log-list { list-style: none; padding: 0; margin: 0.6rem 0; }
.bday-list li { display: grid; grid-template-columns: 9rem 1fr; align-items: end; gap: 0.6rem; margin: 0.35rem 0; }
.bday-list .write-line, .log-list .write-line { display: block; margin: 0; }
.log-list li { margin: 0.5rem 0; }
.date-line { display: inline-block; width: 9rem; border-bottom: 2px solid currentColor; margin: 0 0.6rem; }
.date-line.short { width: 5rem; }
.gap-list { padding-left: 1.4rem; margin: 0.6rem 0; }
.gap-list li { margin: 0.9rem 0; }
.gap-word { display: inline-block; min-width: 10rem; font-weight: 800; letter-spacing: 0.15em; font-size: 1.25rem; margin-right: 1rem; }
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.6rem 0; }
.cg { position: relative; aspect-ratio: 3 / 4; border: 2px solid #475569; background: #fff; overflow: hidden; }
.cg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg::after, .cg.blank { background-image: linear-gradient(#94a3b8 1px, transparent 1px), linear-gradient(90deg, #94a3b8 1px, transparent 1px); background-size: calc(100% / var(--cols)) calc(100% / var(--rows)); }
.cg::after { content: ""; position: absolute; inset: 0; }
.half-box { position: relative; aspect-ratio: 3 / 4; width: min(100%, 36rem); border: 2px dashed #475569; overflow: hidden; background: #fff; }
.half-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 50% 0 0); }
.half-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed #94a3b8; }
.draw-box.short { height: 22rem; }
.draw-box.tiny { height: 5rem; }
.story-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.6rem 0; }
.story-plan div { border: 2px solid currentColor; border-radius: 0.5rem; height: 7rem; padding: 0.4rem; }
.certificate { border: 8px double #b45309; border-radius: 0.6rem; padding: 2.2rem 1.6rem; text-align: center; margin: 1rem 0; }
.certificate h2 { font-size: 2.2rem; margin: 0.4rem 0 1rem; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.match ol { padding-left: 1.4rem; } .match li { margin: 1rem 0; min-height: 2.4rem; }
.cover { text-align: center; padding: 3rem 0; }
.if-locked[hidden], .if-owned[hidden] { display: none; }
@media (max-width: 760px) { .ages { grid-template-columns: 1fr; } .sale-grid { grid-template-columns: 1fr; } }
@media print {
  .no-print, .announce, header.site, footer.site, .crumbs { display: none !important; }
  .pack-sheet, .answer-block { break-before: page; break-inside: avoid; page-break-inside: avoid; }
  .sheet-art, .draw-box { width: auto; max-width: 100%; }
  .pack-sheet .sheet-art { max-height: 8in; object-fit: contain; margin-inline: auto; }
  .pack-sheet:has(p) .sheet-art { max-height: 7.2in; }
  .answer-block .sheet-art { max-height: 4.15in; }
  .draw-box { height: 8.5in; width: 100%; }
  .cal-page .sheet-art { max-height: 4.3in; }
  table.cal td { height: 0.62in; }
  .draw-box.short { height: 5in; } .draw-box.tiny { height: 0.8in; }
}
