@font-face {
  font-family: Mori;
  src: url("../../../assets/fonts/PPMori-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Maru;
  src: url("../../../assets/fonts/GT-Maru-Black.woff2") format("woff2");
  font-display: swap;
}
:root { color-scheme: light; color: #101010; background: #dcec66; font: 16px/1.5 Mori, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #f3a9c5; color: #172c45; }
wwo-frame { --wwo-surface: #f2f1e8; --wwo-ink: #101010; --wwo-muted: #414139; --wwo-rule: #101010; }
main { overflow: clip; }
.desk { min-height: 510px; position: relative; max-width: 1440px; margin: auto; padding: 52px 5vw 44px; }
.intro { position: relative; z-index: 2; width: 46%; }
h1 { font: clamp(3.4rem, 7vw, 6rem)/1 Maru, sans-serif; margin: 0 0 20px; letter-spacing: -.04em; }
.invitation { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.25; margin: 0 0 32px; }
label { display: block; margin-bottom: 8px; }
.entry { display: flex; flex-wrap: wrap; gap: 8px; }
input, button { font: inherit; border: 1px solid #172c45; border-radius: 3px; min-height: 46px; }
input { background: #f7f8ee; color: #172c45; padding: 10px 12px; width: min(100%, 260px); min-width: 0; caret-color: #994266; }
input::placeholder { color: #576479; opacity: 1; }
button { padding: 10px 16px; background: #f7f8ee; color: #172c45; cursor: pointer; }
#make { background: #172c45; color: #fff; }
button:hover:not(:disabled) { background: #f3bed2; color: #172c45; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #91305b; outline-offset: 5px; }
[hidden] { display: none !important; }
#scope { font-size: .85rem; line-height: 1.5; margin: 16px 0 0; }
#preview { position: absolute; inset: 0 0 0 49%; pointer-events: none; }
.sample { position: absolute; width: 245px; border: 3px solid #101010; }
.sample img { display: block; width: 100%; aspect-ratio: 1; }
.sample span { display: none; }
.sample-a { top: 32px; left: 0; transform: rotate(-12deg); }
.sample-b { top: 106px; left: 43%; transform: rotate(14deg); }
.sample-c { top: 198px; left: 10%; transform: rotate(-3deg); }
.preview-note { position: absolute; bottom: 22px; right: 7%; font-size: .85rem; transform: rotate(5deg); }
.collection { border-top: 1px solid #70899f; padding: 20px 5vw 36px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#status { margin: 0; overflow-wrap: anywhere; max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.actions { align-items: flex-start; }
.save-next { position: relative; }
#save-hint { position: absolute; top: 100%; right: 0; width: 235px; padding-top: 32px; margin: 8px 0 0; font-size: .95rem; line-height: 1.35; transform: rotate(-3deg); color: #101010; }
#save-hint svg { position: absolute; width: 80px; height: 52px; top: -12px; right: 8px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.save-next:has(button:disabled) #save-hint { display: none; }
.collection:has(#save-collage:not(:disabled)) #board { margin-top: 110px; }
@media (max-width: 900px) {
  .collection:has(#save-collage:not(:disabled)) .toolbar { padding-bottom: 108px; }
  .collection:has(#save-collage:not(:disabled)) #board { margin-top: 32px; }
  #save-hint { width: 220px; }
}
@media (max-width: 600px) {
  .save-next { width: 220px; }
  #save-hint { left: 0; right: auto; }
  #save-hint svg { right: 45px; }
}
.detail { font-size: .85rem; max-width: 80ch; margin: 10px 0 0; color: #3b536b; }
#board { position: relative; margin-top: 32px; isolation: isolate; }
#board:empty { display: none; }
.photo { position: absolute; margin: 0; transform: rotate(var(--turn)); transform-origin: center; }
.photo a { display: block; color: #101010; border: 3px solid #101010; text-decoration: none; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.photo:hover, .photo:focus-within { z-index: 2; }
.photo a:hover figcaption { text-decoration: underline; text-underline-offset: 3px; }
.photo a:focus-visible { outline-offset: 2px; }
.cropping .photo { pointer-events: none; }
#crop-frame { position: absolute; z-index: 5; border: 6px solid #101010; outline: 2px solid white; box-shadow: 0 0 0 20000px #0007; cursor: move; touch-action: none; }
#crop-tools { position: fixed; z-index: 10; bottom: 12px; left: 5vw; right: 5vw; padding: 12px; border: 3px solid #101010; background: #f2f1e8; max-height: 40vh; overflow: auto; }
#crop-tools p { margin: 0 0 8px; }
#crop-tools label { display: inline; }
#crop-size { width: 160px; padding: 0; vertical-align: middle; accent-color: #101010; }
.crop-corner { position: absolute; right: -6px; bottom: -6px; width: 48px; height: 48px; padding: 0; border: 3px solid #101010; border-radius: 0; background: #f2f1e8; font-size: 1.7rem; cursor: nwse-resize; touch-action: none; }
#crop-tools select { font: inherit; min-height: 46px; margin: 0 8px 8px; max-width: 100%; }
#export-status:empty { display: none; }
dialog { width: min(620px, 94vw); max-height: 92dvh; overflow: auto; border: 4px solid #101010; background: #f2f1e8; color: #101010; }
dialog::backdrop { background: #000b; }
dialog h2 { font-family: Maru, sans-serif; }
#saved-image { display: block; width: 100%; height: auto; }
dialog a { display: inline-block; color: #101010; padding: 12px 8px; text-underline-offset: 4px; }
.missing { display: grid; align-content: center; padding: 20px; font-size: .9rem; background: #f2f1e8; overflow-wrap: anywhere; }
.colophon { border-top: 1px solid #70899f; margin: 0 5vw; padding: 22px 0 30px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.colophon p { margin: 0; }
.colophon p + p { font-size: .8rem; max-width: 75ch; }
.no-script { padding: 24px 5vw; }
main[data-started] .desk { min-height: 0; padding-block: 24px; }
main[data-started] .intro { width: 100%; display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); column-gap: 30px; }
main[data-started] h1 { font-size: 3rem; grid-row: 1 / 3; }
main[data-started] .invitation { display: none; }
main[data-started] form, main[data-started] #scope { grid-column: 2; }
@media (max-width: 900px) {
  .sample { width: 190px; }
  .sample-b { left: 35%; top: 130px; }
  .sample-c { top: 240px; }
  .preview-note { bottom: 2px; right: 12%; }
  .desk { min-height: 530px; }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .desk { padding: 30px 24px 0; }
  .intro { width: 100%; }
  h1 { font-size: 3.8rem; margin-bottom: 14px; }
  .invitation { margin-bottom: 24px; }
  .invitation br { display: none; }
  .entry input { width: 100%; }
  #preview { position: relative; inset: auto; height: 340px; margin: 32px -8px 0; }
  .sample { width: 47%; }
  .sample-a { top: 10px; left: 3%; }
  .sample-b { top: 55px; left: 50%; }
  .sample-c { top: 120px; left: 15%; }
  .preview-note { bottom: 0; right: 0; font-size: .75rem; }
  .collection { padding: 20px 24px 36px; }
  #board { margin-top: 28px; }
  .colophon { margin: 0 24px; grid-template-columns: 1fr; gap: 12px; }
  main[data-started] .intro { display: block; }
  main[data-started] h1 { margin-bottom: 24px; }
}
