/* Each look composes the same personal material into a different little place. */
body[data-style] {
  --look-title: Georgia, "Times New Roman", serif;
  --look-label: "Courier New", monospace;
  --panel-width: 46%;
  --panel-left: 0%;
  --panel-top: 0px;
  --frame-radius: 0px;
  --frame-border: 4px;
  --frame-padding: 7px 7px 20px;
  --frame-shadow: 5px 5px 0 var(--accent), 8px 8px 0 var(--ink);
  --frame-one-x: 57%; --frame-one-y: 8%; --frame-one-w: 28%; --frame-one-h: 220px; --frame-one-r: -8deg;
  --frame-two-x: 78%; --frame-two-y: 38%; --frame-two-w: 17%; --frame-two-h: 240px; --frame-two-r: 7deg;
  --frame-three-x: 53%; --frame-three-y: 51%; --frame-three-w: 22%; --frame-three-h: 200px; --frame-three-r: -6deg;
  --frame-four-x: 72%; --frame-four-y: 76%; --frame-four-w: 21%; --frame-four-h: 170px; --frame-four-r: 5deg;
}
body[data-style] .gift-header { border-bottom: 3px dotted var(--accent); box-shadow: 0 3px 0 var(--ink); }
body[data-style] .wordmark { font-family: var(--look-label); font-size: clamp(.85rem, 2vw, 1.35rem); }
body[data-style] .window { outline-width: 2px; background: var(--paper); }
body[data-style] .window-bar { font-family: var(--look-label); font-size: .78rem; letter-spacing: .02em; }
body[data-style] .delivery {
  position: relative; display: block; width: min(1320px, calc(100% - 48px));
  min-height: 780px; margin: 0 auto; padding: 70px 26px 80px;
}
body[data-style] .opener-window {
  position: relative; z-index: 2; width: var(--panel-width); margin: var(--panel-top) 0 0 var(--panel-left);
  background: var(--paper);
}
body[data-style] .opener { padding: 37px 24px 31px; }
body[data-style] .opener h1 { font-family: var(--look-title); font-size: clamp(2.2rem, 5.8vw, 5.7rem); line-height: .98; }
body[data-style] .to-label { font-family: var(--look-label); }
body[data-style] .opener-line { max-width: 27em; }
body[data-style] .opener-line::before { width: 74px; height: 5px; }
body[data-style] .parcel img { width: 122px; }
body[data-style] .big-button { min-height: 49px; font-family: var(--look-label); }
body[data-style] .keepsakes { display: block; position: absolute; z-index: 1; inset: 0; pointer-events: none; }
body[data-style] :where(.keepsakes) .keepsake {
  position: absolute; margin: 0; border: var(--frame-border) solid var(--glint);
  border-radius: var(--frame-radius); padding: var(--frame-padding); background: #fffaf0;
  box-shadow: var(--frame-shadow); transform: rotate(var(--frame-r)); overflow: visible;
}
body[data-style] .keepsake img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: #fffaf0; filter: none; }
body[data-style] .keepsakes .keepsake:nth-child(1) { left: var(--frame-one-x); top: var(--frame-one-y); width: var(--frame-one-w); height: var(--frame-one-h); --frame-r: var(--frame-one-r); }
body[data-style] .keepsakes .keepsake:nth-child(2) { left: var(--frame-two-x); top: var(--frame-two-y); width: var(--frame-two-w); height: var(--frame-two-h); --frame-r: var(--frame-two-r); }
body[data-style] .keepsakes .keepsake:nth-child(3) { left: var(--frame-three-x); top: var(--frame-three-y); width: var(--frame-three-w); height: var(--frame-three-h); --frame-r: var(--frame-three-r); }
body[data-style] .keepsakes .keepsake:nth-child(4) { left: var(--frame-four-x); top: var(--frame-four-y); width: var(--frame-four-w); height: var(--frame-four-h); --frame-r: var(--frame-four-r); }
body[data-style] #opener-photos { display: none; }
body[data-style] .v2-opener-photos { display: none; }
body[data-style] .wallpaper { display: grid; grid-template-columns: 54% 46%; grid-auto-rows: minmax(320px, 52vh); gap: 3px; align-content: start; }
body[data-style] .wallpaper img { width: 100%; height: 100%; min-width: 0; aspect-ratio: auto; object-fit: contain; border: 0; background: var(--deep); }
body[data-style] .wallpaper[data-count="1"] { display: block; }
body[data-style] .wallpaper[data-count="1"] img { width: 100%; height: 100%; object-fit: contain; }
body[data-style] .wallpaper[data-count="2"] { grid-template-columns: 58% 42%; grid-auto-rows: 100vh; }
body[data-style] .stickers { z-index: 1; }
body[data-style] .sticker { width: min(var(--size), 90px); }
body[data-style] .sticker-icon { font-size: min(calc(var(--size) * .6), 47px); }
body[data-style].gift-opened .delivery { display: block; min-height: 550px; padding-block: 42px 32px; }
body[data-style] .delivered-state { padding: 24px; text-align: center; }
body[data-style] .delivered-state h2 { margin: 0 0 8px; font-family: var(--look-title); font-size: clamp(1.7rem, 3vw, 2.7rem); overflow-wrap: anywhere; }
body[data-style] .delivered-state p { font-size: .9rem; line-height: 1.5; }
body[data-style] .delivered-state .big-button { margin: 8px 0; }
body[data-style] .bonus-box {
  position: relative; z-index: 2; width: min(960px, calc(100% - 40px)); margin: 20px auto 35px;
  padding: 21px; color: var(--accent); background: var(--deep); border: 3px dashed var(--glint);
  box-shadow: 0 0 0 3px var(--bar), 6px 6px 0 var(--ink);
}
body[data-style] .bonus-box h2 { margin: 0 0 17px; font: 800 clamp(1.5rem, 3vw, 2.4rem)/1.05 var(--look-title); }
body[data-style] .bonus-grid, body[data-style] .bonus-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
body[data-style] .bonus-card { min-width: 0; border: 2px solid var(--glint); background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--bar); font-family: var(--look-label); }
body[data-style] .bonus-card img { filter: none; }
body[data-style] .album { width: min(1100px, calc(100% - 40px)); margin-top: 24px; background: var(--deep); }
body[data-style] .album .window-bar { padding-block: 9px; }
body[data-style] .album-body { background: var(--deep); }
body[data-style] .photo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 20px; }
body[data-style] .photo-grid figure { padding: 8px 8px 18px; border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--glint); }
body[data-style] .photo-grid img { aspect-ratio: 4 / 3; background: #fffaf0; filter: none; }
body[data-style] .letter { margin-top: 36px; background: var(--paper); }
body[data-style] .album-sender { color: var(--paper); }

/* Personal web: a lopsided homepage, a pinned guestbook, and a ring of prints. */
body[data-style="dial-up"] {
  --panel-width: 45%;
  --panel-left: 0%;
  --frame-one-x: 49%;
  --frame-one-y: 5%;
  --frame-one-w: 28%;
  --frame-one-h: 215px;
  --frame-one-r: -9deg;
  --frame-two-x: 78%;
  --frame-two-y: 12%;
  --frame-two-w: 18%;
  --frame-two-h: 250px;
  --frame-two-r: 8deg;
  --frame-three-x: 53%;
  --frame-three-y: 55%;
  --frame-three-w: 27%;
  --frame-three-h: 205px;
  --frame-three-r: -7deg;
  --frame-four-x: 81%;
  --frame-four-y: 57%;
  --frame-four-w: 18%;
  --frame-four-h: 235px;
  --frame-four-r: 9deg;
}
body[data-style="dial-up"] .wallpaper img { object-fit: cover; object-position: center 40%; }
body[data-style="dial-up"] .opener { text-align: left; }
body[data-style="dial-up"] .opener-line::before { margin-left: 0; }
body[data-style="dial-up"] .parcel { position: absolute; right: 15px; top: 56px; margin: 0; }
body[data-style="dial-up"] .parcel img { width: 57px; }
body[data-style="dial-up"] .parcel-star { display: none; }
body[data-style="dial-up"] .opener h1 { max-width: 88%; }
body[data-style="dial-up"] .opener-from { margin-bottom: 22px; }
body[data-style="dial-up"] .opener-line { margin: 24px 0; }
body[data-style="dial-up"] .window-bar { background: linear-gradient(90deg, #2400df, #4c15f1); }
body[data-style="dial-up"] .photo-grid figure:nth-child(3n + 1) { transform: rotate(-1deg); }
body[data-style="guestbook"] {
  --panel-width: 49%;
  --panel-left: 25%;
  --look-title: Georgia, serif;
  --frame-one-x: 1%;
  --frame-one-y: 9%;
  --frame-one-w: 21%;
  --frame-one-h: 230px;
  --frame-one-r: -4deg;
  --frame-two-x: 77%;
  --frame-two-y: 13%;
  --frame-two-w: 21%;
  --frame-two-h: 170px;
  --frame-two-r: 5deg;
  --frame-three-x: 3%;
  --frame-three-y: 55%;
  --frame-three-w: 20%;
  --frame-three-h: 185px;
  --frame-three-r: 3deg;
  --frame-four-x: 78%;
  --frame-four-y: 57%;
  --frame-four-w: 20%;
  --frame-four-h: 220px;
  --frame-four-r: -4deg;
}
body[data-style="guestbook"] .opener-window { border-left: 17px double var(--ink); background: repeating-linear-gradient(0deg, var(--paper) 0 31px, #bdcbd552 31px 32px); }
body[data-style="guestbook"] .keepsake::before { content: ""; position: absolute; top: -10px; left: calc(50% - 8px); width: 16px; height: 16px; background: var(--glint); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 2px 3px #1b153055; }
body[data-style="guestbook"] .album-body { background: repeating-linear-gradient(0deg, var(--paper) 0 31px, #bdcbd552 31px 32px); }
body[data-style="guestbook"] .photo-grid { gap: 27px; }
body[data-style="guestbook"] .bonus-box { border-style: solid; border-left-width: 17px; background: var(--paper); color: var(--ink); }
body[data-style="webring"] {
  --panel-width: 44%;
  --panel-left: 28%;
  --frame-radius: 50%;
  --frame-padding: 10px;
  --frame-one-x: 4%;
  --frame-one-y: 1%;
  --frame-one-w: 25%;
  --frame-one-h: 225px;
  --frame-one-r: -12deg;
  --frame-two-x: 72%;
  --frame-two-y: 4%;
  --frame-two-w: 24%;
  --frame-two-h: 210px;
  --frame-two-r: 12deg;
  --frame-three-x: 7%;
  --frame-three-y: 58%;
  --frame-three-w: 24%;
  --frame-three-h: 220px;
  --frame-three-r: 8deg;
  --frame-four-x: 71%;
  --frame-four-y: 60%;
  --frame-four-w: 25%;
  --frame-four-h: 225px;
  --frame-four-r: -10deg;
}
body[data-style="webring"] .delivery::before { content: ""; position: absolute; inset: 10% 10% 9%; border: 6px dotted var(--accent); border-radius: 50%; opacity: .85; }
body[data-style="webring"] .opener-window { border-radius: 40px 40px 5px 5px; overflow: hidden; }
body[data-style="webring"] .photo-grid figure { border-radius: 25% 25% 3px 3px; padding-top: 16px; }
body[data-style="webring"] .bonus-card { border-radius: 35px; }

/* Print shop: tape, contact proofs, and perforated strips. */
body[data-family="print"] { --look-label: "Courier New", monospace; --frame-border: 2px; --frame-shadow: 4px 6px 0 #281d244d; }
body[data-family="print"] .wallpaper { gap: 13px; padding: 13px; }
body[data-family="print"] .window { outline: 1px solid var(--ink); }
body[data-style="scrapbook"] {
  --panel-width: 44%;
  --panel-left: 4%;
  --panel-top: 30px;
  --frame-one-x: 53%;
  --frame-one-y: 4%;
  --frame-one-w: 21%;
  --frame-one-h: 270px;
  --frame-one-r: -13deg;
  --frame-two-x: 71%;
  --frame-two-y: 19%;
  --frame-two-w: 26%;
  --frame-two-h: 190px;
  --frame-two-r: 10deg;
  --frame-three-x: 51%;
  --frame-three-y: 60%;
  --frame-three-w: 24%;
  --frame-three-h: 210px;
  --frame-three-r: 4deg;
  --frame-four-x: 76%;
  --frame-four-y: 57%;
  --frame-four-w: 19%;
  --frame-four-h: 230px;
  --frame-four-r: -7deg;
}
body[data-style="scrapbook"] .keepsake::before, body[data-style="scrapbook"] .keepsake::after { content: ""; position: absolute; top: -11px; width: 56px; height: 22px; background: #ffe69bd9; border: 1px solid #d8bc7b; transform: rotate(-7deg); z-index: 1; }
body[data-style="scrapbook"] .keepsake::before { left: 5%; }
body[data-style="scrapbook"] .keepsake::after { right: 5%; transform: rotate(12deg); }
body[data-style="scrapbook"] .opener-window { border-style: dashed; box-shadow: 7px 8px 0 var(--deep); }
body[data-style="scrapbook"] .photo-grid figure:nth-child(odd) { rotate: -2deg; }
body[data-style="scrapbook"] .photo-grid figure:nth-child(even) { rotate: 2deg; }
body[data-style="scrapbook"] .bonus-box { background: var(--paper); color: var(--ink); border-style: dotted; }
body[data-style="contact-sheet"] {
  --panel-width: 42%;
  --panel-left: 0%;
  --panel-top: 24px;
  --frame-one-x: 47%;
  --frame-one-y: 4%;
  --frame-one-w: 32%;
  --frame-one-h: 300px;
  --frame-one-r: 0deg;
  --frame-two-x: 81%;
  --frame-two-y: 7%;
  --frame-two-w: 16%;
  --frame-two-h: 190px;
  --frame-two-r: 0deg;
  --frame-three-x: 49%;
  --frame-three-y: 53%;
  --frame-three-w: 21%;
  --frame-three-h: 180px;
  --frame-three-r: 0deg;
  --frame-four-x: 73%;
  --frame-four-y: 56%;
  --frame-four-w: 23%;
  --frame-four-h: 210px;
  --frame-four-r: 0deg;
}
body[data-style="contact-sheet"] .keepsake { border-color: var(--accent); background: var(--deep); padding-bottom: 24px; }
body[data-style="contact-sheet"] .keepsake::after { position: absolute; bottom: 3px; right: 7px; color: var(--accent); font: 700 12px var(--look-label); }
body[data-style="contact-sheet"] .keepsake:nth-child(1)::after { content: "01"; }
body[data-style="contact-sheet"] .keepsake:nth-child(2)::after { content: "02"; }
body[data-style="contact-sheet"] .keepsake:nth-child(3)::after { content: "03"; }
body[data-style="contact-sheet"] .keepsake:nth-child(4)::after { content: "04"; }
body[data-style="contact-sheet"] .album-body { counter-reset: proof; }
body[data-style="contact-sheet"] .photo-grid figure { position: relative; padding-bottom: 26px; box-shadow: none; }
body[data-style="contact-sheet"] .photo-grid figure::after { counter-increment: proof; content: counter(proof, decimal-leading-zero); position: absolute; bottom: 5px; right: 8px; color: var(--ink); font: 700 11px var(--look-label); }
body[data-style="film-strip"] {
  --panel-width: 45%;
  --panel-left: 4%;
  --panel-top: 95px;
  --frame-one-x: 54%;
  --frame-one-y: 6%;
  --frame-one-w: 42%;
  --frame-one-h: 185px;
  --frame-one-r: -4deg;
  --frame-two-x: 56%;
  --frame-two-y: 33%;
  --frame-two-w: 38%;
  --frame-two-h: 175px;
  --frame-two-r: 4deg;
  --frame-three-x: 52%;
  --frame-three-y: 60%;
  --frame-three-w: 43%;
  --frame-three-h: 185px;
  --frame-three-r: -3deg;
  --frame-four-x: 5%;
  --frame-four-y: 84%;
  --frame-four-w: 38%;
  --frame-four-h: 150px;
  --frame-four-r: 2deg;
}
body[data-style="film-strip"] .keepsake { border: 14px solid #201b19; border-inline-width: 21px; padding: 0; box-shadow: 4px 5px 0 var(--glint); }
body[data-style="film-strip"] .keepsake::before, body[data-style="film-strip"] .keepsake::after { content: ""; position: absolute; inset-block: -8px; width: 8px; background: repeating-linear-gradient(0deg, #f8d9ac 0 9px, transparent 9px 20px); }
body[data-style="film-strip"] .keepsake::before { left: -15px; }
body[data-style="film-strip"] .keepsake::after { right: -15px; }
body[data-style="film-strip"] .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 17px 14px; background: #1d1917; border-block: 11px dashed var(--paper); }
body[data-style="film-strip"] .photo-grid figure { border: 0; box-shadow: none; }

/* Arcade cabinets have shelves, rails, or a handheld enclosure. */
body[data-family="arcade"] { --look-title: Impact, "Arial Black", sans-serif; --look-label: "Courier New", monospace; }
body[data-family="arcade"] .opener h1 { letter-spacing: .015em; }
body[data-family="arcade"] .window-bar { border-block: 4px double var(--accent); }
body[data-family="arcade"] .bonus-box { border-style: solid; border-width: 7px; }
body[data-style="prize-counter"] {
  --panel-width: 43%;
  --panel-left: 2%;
  --panel-top: 18px;
  --frame-one-x: 52%;
  --frame-one-y: 8%;
  --frame-one-w: 20%;
  --frame-one-h: 210px;
  --frame-one-r: -2deg;
  --frame-two-x: 75%;
  --frame-two-y: 14%;
  --frame-two-w: 21%;
  --frame-two-h: 170px;
  --frame-two-r: 3deg;
  --frame-three-x: 52%;
  --frame-three-y: 52%;
  --frame-three-w: 20%;
  --frame-three-h: 210px;
  --frame-three-r: 2deg;
  --frame-four-x: 75%;
  --frame-four-y: 57%;
  --frame-four-w: 21%;
  --frame-four-h: 170px;
  --frame-four-r: -2deg;
}
body[data-style="prize-counter"] .keepsakes::before, body[data-style="prize-counter"] .keepsakes::after { content: ""; position: absolute; left: 50%; right: 1%; height: 18px; background: repeating-linear-gradient(90deg, var(--accent) 0 19px, var(--glint) 19px 38px); border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--bar); }
body[data-style="prize-counter"] .keepsakes::before { top: 43%; }
body[data-style="prize-counter"] .keepsakes::after { top: 87%; }
body[data-style="prize-counter"] .keepsake { border-width: 6px; }
body[data-style="prize-counter"] .opener-window { border-width: 7px; border-radius: 15px 15px 0 0; }
body[data-style="prize-counter"] .photo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); border-bottom: 15px ridge var(--accent); padding-bottom: 16px; }
body[data-style="pinball-hall"] {
  --panel-width: 43%;
  --panel-left: 28%;
  --panel-top: 55px;
  --frame-one-x: 1%;
  --frame-one-y: 6%;
  --frame-one-w: 23%;
  --frame-one-h: 240px;
  --frame-one-r: -16deg;
  --frame-two-x: 74%;
  --frame-two-y: 2%;
  --frame-two-w: 23%;
  --frame-two-h: 185px;
  --frame-two-r: 15deg;
  --frame-three-x: 5%;
  --frame-three-y: 59%;
  --frame-three-w: 24%;
  --frame-three-h: 210px;
  --frame-three-r: 15deg;
  --frame-four-x: 73%;
  --frame-four-y: 57%;
  --frame-four-w: 23%;
  --frame-four-h: 240px;
  --frame-four-r: -13deg;
  --frame-radius: 22px;
}
body[data-style="pinball-hall"] .delivery::before { content: ""; position: absolute; inset: 5% 4%; border: 8px solid var(--glint); border-radius: 36% 36% 8% 8%; box-shadow: inset 0 0 0 5px var(--accent), 0 0 0 4px var(--bar); transform: skewY(-3deg); }
body[data-style="pinball-hall"] .opener-window { box-shadow: 9px 9px 0 var(--glint), -5px -5px 0 var(--accent); }
body[data-style="pinball-hall"] .photo-grid figure { border-radius: 15px; }
body[data-style="pocket-game"] {
  --panel-width: 39%;
  --panel-left: 21%;
  --panel-top: 0px;
  --frame-one-x: 66%;
  --frame-one-y: 4%;
  --frame-one-w: 26%;
  --frame-one-h: 235px;
  --frame-one-r: 5deg;
  --frame-two-x: 69%;
  --frame-two-y: 40%;
  --frame-two-w: 25%;
  --frame-two-h: 160px;
  --frame-two-r: -5deg;
  --frame-three-x: 64%;
  --frame-three-y: 65%;
  --frame-three-w: 25%;
  --frame-three-h: 180px;
  --frame-three-r: 4deg;
  --frame-four-x: 1%;
  --frame-four-y: 55%;
  --frame-four-w: 16%;
  --frame-four-h: 200px;
  --frame-four-r: -7deg;
}
body[data-style="pocket-game"] .opener-window { border: 13px solid #bbbfb0; border-bottom-width: 75px; border-radius: 18px 18px 54px 18px; box-shadow: 8px 8px 0 var(--ink); outline: 3px solid var(--ink); }
body[data-style="pocket-game"] .opener-window::after { content: ""; position: absolute; bottom: -54px; right: 24px; width: 19px; height: 19px; border-radius: 50%; background: var(--glint); box-shadow: -32px 11px 0 var(--glint); border: 2px solid var(--ink); }
body[data-style="pocket-game"] .opener { padding-inline: 13px; background: #eef4d8; }
body[data-style="pocket-game"] .opener h1 { font-family: var(--look-label); font-size: clamp(2.1rem, 4vw, 4rem); }
body[data-style="pocket-game"] .photo-grid figure { border: 6px solid #bbc1ad; border-radius: 4px 4px 22px 4px; }

/* Nightlife: a mirror-ball diagonal, a cassette sleeve, and diner booths. */
body[data-family="nightlife"] .window-bar { letter-spacing: .09em; }
body[data-style="disco"] {
  --panel-width: 46%;
  --panel-left: 28%;
  --panel-top: 33px;
  --frame-one-x: 2%;
  --frame-one-y: 4%;
  --frame-one-w: 24%;
  --frame-one-h: 240px;
  --frame-one-r: -15deg;
  --frame-two-x: 76%;
  --frame-two-y: 26%;
  --frame-two-w: 22%;
  --frame-two-h: 170px;
  --frame-two-r: 15deg;
  --frame-three-x: 3%;
  --frame-three-y: 53%;
  --frame-three-w: 24%;
  --frame-three-h: 225px;
  --frame-three-r: -15deg;
  --frame-four-x: 76%;
  --frame-four-y: 64%;
  --frame-four-w: 22%;
  --frame-four-h: 185px;
  --frame-four-r: 15deg;
}
body[data-style="disco"] .delivery::before { content: ""; position: absolute; top: 2%; left: 43%; width: 88px; height: 88px; border-radius: 50%; background: repeating-conic-gradient(#fff7cd 0deg 15deg, #9b93ad 15deg 30deg); border: 3px solid var(--accent); box-shadow: 0 0 35px #ffd44d80; }
body[data-style="disco"] .keepsake { border: 5px double var(--accent); box-shadow: 5px 5px 0 var(--glint); }
body[data-style="disco"] .album .window-bar { border-bottom: 5px dotted var(--accent); }
body[data-style="disco"] .photo-grid figure:nth-child(even) { translate: 0 10px; }
body[data-style="mixtape"] {
  --panel-width: 48%;
  --panel-left: 2%;
  --panel-top: 70px;
  --frame-one-x: 54%;
  --frame-one-y: 11%;
  --frame-one-w: 42%;
  --frame-one-h: 210px;
  --frame-one-r: 2deg;
  --frame-two-x: 57%;
  --frame-two-y: 44%;
  --frame-two-w: 18%;
  --frame-two-h: 230px;
  --frame-two-r: -3deg;
  --frame-three-x: 77%;
  --frame-three-y: 47%;
  --frame-three-w: 19%;
  --frame-three-h: 210px;
  --frame-three-r: 5deg;
  --frame-four-x: 12%;
  --frame-four-y: 82%;
  --frame-four-w: 29%;
  --frame-four-h: 140px;
  --frame-four-r: -4deg;
}
body[data-style="mixtape"] .opener-window { border: 9px solid #efcfa1; border-inline-width: 18px; box-shadow: 9px 9px 0 var(--ink), inset 0 0 0 2px var(--glint); }
body[data-style="mixtape"] .keepsake { background: repeating-linear-gradient(90deg, #f4debb 0 13px, #dfbf9155 13px 14px); border-color: var(--accent-two); }
body[data-style="mixtape"] .keepsake:nth-child(1) { border-bottom: 27px double var(--ink); }
body[data-style="mixtape"] .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; }
body[data-style="mixtape"] .bonus-box { background: #f4debb; color: var(--ink); border: 9px solid var(--ink); border-radius: 17px; }
body[data-style="neon-diner"] {
  --panel-width: 43%;
  --panel-left: 3%;
  --panel-top: 20px;
  --look-title: Impact, "Arial Black", sans-serif;
  --frame-one-x: 53%;
  --frame-one-y: 7%;
  --frame-one-w: 42%;
  --frame-one-h: 190px;
  --frame-one-r: 0deg;
  --frame-two-x: 54%;
  --frame-two-y: 40%;
  --frame-two-w: 20%;
  --frame-two-h: 230px;
  --frame-two-r: 0deg;
  --frame-three-x: 77%;
  --frame-three-y: 40%;
  --frame-three-w: 20%;
  --frame-three-h: 230px;
  --frame-three-r: 0deg;
  --frame-four-x: 55%;
  --frame-four-y: 77%;
  --frame-four-w: 40%;
  --frame-four-h: 130px;
  --frame-four-r: 0deg;
}
body[data-style="neon-diner"] .opener-window { border: 7px double var(--accent-two); border-radius: 19px; box-shadow: 0 0 0 3px var(--ink), 0 0 19px var(--glint); overflow: hidden; }
body[data-style="neon-diner"] .window-bar { border-bottom: 5px dotted var(--accent); }
body[data-style="neon-diner"] .keepsake { border: 6px solid #f0d9ad; border-bottom-width: 23px; border-radius: 14px 14px 0 0; box-shadow: 0 6px 0 var(--bar), 5px 8px 0 var(--ink); }
body[data-style="neon-diner"] .photo-grid figure { border-bottom: 10px solid var(--glint); border-radius: 8px; }
body[data-style="neon-diner"] .bonus-box { border: 8px double var(--accent-two); border-radius: 18px; }

/* Candy shop: awnings, soda bubbles, and tied cake-box tiers. */
body[data-family="candy"] .opener h1 { font-family: Georgia, serif; font-style: italic; }
body[data-style="candy-shop"] {
  --panel-width: 45%;
  --panel-left: 28%;
  --panel-top: 50px;
  --frame-one-x: 2%;
  --frame-one-y: 14%;
  --frame-one-w: 23%;
  --frame-one-h: 220px;
  --frame-one-r: -3deg;
  --frame-two-x: 76%;
  --frame-two-y: 15%;
  --frame-two-w: 22%;
  --frame-two-h: 215px;
  --frame-two-r: 3deg;
  --frame-three-x: 3%;
  --frame-three-y: 60%;
  --frame-three-w: 23%;
  --frame-three-h: 180px;
  --frame-three-r: 3deg;
  --frame-four-x: 76%;
  --frame-four-y: 60%;
  --frame-four-w: 22%;
  --frame-four-h: 185px;
  --frame-four-r: -3deg;
  --frame-radius: 48px 48px 0 0;
}
body[data-style="candy-shop"] .delivery::before { content: ""; position: absolute; top: 20px; left: 3%; right: 3%; height: 60px; border: 3px solid var(--ink); border-radius: 6px 6px 22px 22px; background: repeating-linear-gradient(90deg, var(--paper) 0 37px, var(--glint) 37px 74px); box-shadow: 0 8px 0 var(--bar); }
body[data-style="candy-shop"] .opener-window { border-radius: 26px 26px 0 0; overflow: hidden; }
body[data-style="candy-shop"] .keepsake { border-width: 6px; }
body[data-style="candy-shop"] .photo-grid figure { border-radius: 30px 30px 3px 3px; border-color: var(--accent-two); }
body[data-style="candy-shop"] .bonus-box { background: repeating-linear-gradient(-45deg, var(--paper) 0 12px, #ffd3ed 12px 24px); color: var(--ink); border: 5px solid var(--bar); }
body[data-style="soda-pop"] {
  --panel-width: 42%;
  --panel-left: 6%;
  --panel-top: 33px;
  --frame-one-x: 54%;
  --frame-one-y: 5%;
  --frame-one-w: 19%;
  --frame-one-h: 300px;
  --frame-one-r: -7deg;
  --frame-two-x: 77%;
  --frame-two-y: 20%;
  --frame-two-w: 19%;
  --frame-two-h: 300px;
  --frame-two-r: 7deg;
  --frame-three-x: 54%;
  --frame-three-y: 62%;
  --frame-three-w: 23%;
  --frame-three-h: 175px;
  --frame-three-r: 4deg;
  --frame-four-x: 80%;
  --frame-four-y: 66%;
  --frame-four-w: 16%;
  --frame-four-h: 220px;
  --frame-four-r: -6deg;
  --frame-radius: 40px;
}
body[data-style="soda-pop"] .delivery::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 7% 17%, transparent 0 18px, var(--accent-two) 19px 22px, transparent 23px), radial-gradient(circle at 90% 9%, transparent 0 28px, var(--accent) 29px 33px, transparent 34px), radial-gradient(circle at 48% 76%, transparent 0 20px, var(--glint) 21px 24px, transparent 25px); }
body[data-style="soda-pop"] .opener-window { border-radius: 35px 35px 18px 18px; border-width: 5px; overflow: hidden; }
body[data-style="soda-pop"] .keepsake { border-top: 14px double var(--glint); border-bottom-width: 12px; }
body[data-style="soda-pop"] .photo-grid figure { border-radius: 24px; }
body[data-style="soda-pop"] .bonus-card { border-radius: 23px; }
body[data-style="cake-box"] {
  --panel-width: 45%;
  --panel-left: 4%;
  --panel-top: 30px;
  --frame-one-x: 59%;
  --frame-one-y: 7%;
  --frame-one-w: 28%;
  --frame-one-h: 170px;
  --frame-one-r: 0deg;
  --frame-two-x: 55%;
  --frame-two-y: 34%;
  --frame-two-w: 37%;
  --frame-two-h: 185px;
  --frame-two-r: 0deg;
  --frame-three-x: 51%;
  --frame-three-y: 64%;
  --frame-three-w: 45%;
  --frame-three-h: 170px;
  --frame-three-r: 0deg;
  --frame-four-x: 9%;
  --frame-four-y: 81%;
  --frame-four-w: 26%;
  --frame-four-h: 130px;
  --frame-four-r: -4deg;
}
body[data-style="cake-box"] .keepsake { border-color: var(--accent-two); border-block: 10px solid var(--glint); box-shadow: 0 5px 0 var(--paper), 5px 8px 0 var(--ink); }
body[data-style="cake-box"] .keepsake::after { content: ""; position: absolute; left: 47%; top: -12px; bottom: -12px; width: 13px; background: #f1a9c63b; border-inline: 1px solid #bd719a80; pointer-events: none; }
body[data-style="cake-box"] .opener-window { border: 5px double var(--bar); outline: 5px solid var(--accent-two); }
body[data-style="cake-box"] .bonus-box { border: 5px solid var(--glint); outline: 5px solid var(--accent-two); border-radius: 8px; background: var(--paper); color: var(--ink); }
body[data-style="cake-box"] .photo-grid figure { border-block: 7px solid var(--glint); }

/* Midnight: ghost windows, lunar orbits, and chunky television screens. */
body[data-family="midnight"] .wallpaper { gap: 8px; }
body[data-family="midnight"] .bonus-box { border-style: double; border-width: 7px; }
body[data-style="haunted-desktop"] {
  --panel-width: 46%;
  --panel-left: 5%;
  --panel-top: 35px;
  --frame-one-x: 59%;
  --frame-one-y: 3%;
  --frame-one-w: 28%;
  --frame-one-h: 220px;
  --frame-one-r: -6deg;
  --frame-two-x: 71%;
  --frame-two-y: 28%;
  --frame-two-w: 26%;
  --frame-two-h: 245px;
  --frame-two-r: 5deg;
  --frame-three-x: 54%;
  --frame-three-y: 57%;
  --frame-three-w: 29%;
  --frame-three-h: 210px;
  --frame-three-r: -4deg;
  --frame-four-x: 80%;
  --frame-four-y: 71%;
  --frame-four-w: 16%;
  --frame-four-h: 170px;
  --frame-four-r: 7deg;
}
body[data-style="haunted-desktop"] .keepsake { border: 3px solid var(--accent); border-top: 23px solid var(--bar); padding: 6px; box-shadow: 5px 5px 0 var(--glint), 8px 8px 0 var(--ink); }
body[data-style="haunted-desktop"] .keepsake::before { content: ""; position: absolute; right: 4px; top: -17px; width: 7px; height: 7px; background: var(--paper); box-shadow: -11px 0 var(--paper); }
body[data-style="haunted-desktop"] .opener-window { box-shadow: 8px 8px 0 var(--glint), 13px 13px 0 var(--deep); }
body[data-style="haunted-desktop"] .photo-grid figure { border-top: 15px solid var(--bar); }
body[data-style="moon-mail"] {
  --panel-width: 42%;
  --panel-left: 29%;
  --panel-top: 75px;
  --frame-one-x: 2%;
  --frame-one-y: 2%;
  --frame-one-w: 23%;
  --frame-one-h: 230px;
  --frame-one-r: -15deg;
  --frame-two-x: 71%;
  --frame-two-y: 7%;
  --frame-two-w: 24%;
  --frame-two-h: 180px;
  --frame-two-r: 14deg;
  --frame-three-x: 6%;
  --frame-three-y: 62%;
  --frame-three-w: 24%;
  --frame-three-h: 200px;
  --frame-three-r: 12deg;
  --frame-four-x: 71%;
  --frame-four-y: 60%;
  --frame-four-w: 23%;
  --frame-four-h: 225px;
  --frame-four-r: -10deg;
  --frame-radius: 50%;
}
body[data-style="moon-mail"] .delivery::before { content: ""; position: absolute; inset: 9% 8% 7%; border: 3px dashed var(--accent-two); border-radius: 50%; rotate: -14deg; box-shadow: 0 0 0 20px #24296d48; }
body[data-style="moon-mail"] .opener-window { border-radius: 45px 45px 5px 5px; overflow: hidden; }
body[data-style="moon-mail"] .keepsake { border: 6px double var(--accent); padding: 12px; }
body[data-style="moon-mail"] .photo-grid figure { border-radius: 25% 25% 3px 3px; }
body[data-style="moon-mail"] .bonus-card { border-radius: 30px; }
body[data-style="after-hours-tv"] {
  --panel-width: 45%;
  --panel-left: 3%;
  --panel-top: 40px;
  --look-title: "Courier New", monospace;
  --frame-one-x: 56%;
  --frame-one-y: 4%;
  --frame-one-w: 39%;
  --frame-one-h: 210px;
  --frame-one-r: -3deg;
  --frame-two-x: 53%;
  --frame-two-y: 39%;
  --frame-two-w: 27%;
  --frame-two-h: 190px;
  --frame-two-r: 3deg;
  --frame-three-x: 74%;
  --frame-three-y: 64%;
  --frame-three-w: 24%;
  --frame-three-h: 170px;
  --frame-three-r: -4deg;
  --frame-four-x: 52%;
  --frame-four-y: 73%;
  --frame-four-w: 20%;
  --frame-four-h: 145px;
  --frame-four-r: 4deg;
}
body[data-style="after-hours-tv"] .keepsake { border: 11px solid #545764; border-right-width: 28px; border-radius: 19px; padding: 3px; box-shadow: 5px 7px 0 #101b18; }
body[data-style="after-hours-tv"] .keepsake img { border-radius: 10px; }
body[data-style="after-hours-tv"] .keepsake::after { content: ""; position: absolute; right: -20px; top: 19px; width: 10px; height: 10px; border: 2px solid #262837; border-radius: 50%; background: var(--accent); box-shadow: 0 21px 0 var(--glint); }
body[data-style="after-hours-tv"] .opener-window { border: 10px solid #545764; border-bottom-width: 22px; border-radius: 25px; overflow: hidden; }
body[data-style="after-hours-tv"] .photo-grid figure { border: 9px solid #545764; border-radius: 14px; padding: 5px; }

/* Post office: labels, striped postcards, and a wall of individual compartments. */
body[data-family="post"] { --look-label: "Courier New", monospace; }
body[data-family="post"] .opener h1 { font-family: Impact, "Arial Black", sans-serif; letter-spacing: .015em; }
body[data-style="wrong-delivery"] {
  --panel-width: 44%;
  --panel-left: 3%;
  --panel-top: 70px;
  --frame-one-x: 53%;
  --frame-one-y: 5%;
  --frame-one-w: 27%;
  --frame-one-h: 195px;
  --frame-one-r: -12deg;
  --frame-two-x: 78%;
  --frame-two-y: 28%;
  --frame-two-w: 19%;
  --frame-two-h: 245px;
  --frame-two-r: 11deg;
  --frame-three-x: 51%;
  --frame-three-y: 57%;
  --frame-three-w: 27%;
  --frame-three-h: 200px;
  --frame-three-r: -7deg;
  --frame-four-x: 79%;
  --frame-four-y: 72%;
  --frame-four-w: 18%;
  --frame-four-h: 150px;
  --frame-four-r: 8deg;
}
body[data-style="wrong-delivery"] .keepsake { border: 6px dashed var(--bar); background: #d6b683; padding: 9px; }
body[data-style="wrong-delivery"] .opener-window { border: 7px solid #b99563; outline: 2px dashed var(--ink); box-shadow: 8px 8px 0 var(--accent); }
body[data-style="wrong-delivery"] .window-bar { border-block: 4px dashed var(--ink); }
body[data-style="wrong-delivery"] .photo-grid figure { border: 5px dashed var(--bar); }
body[data-style="wrong-delivery"] .bonus-box { background: #d6b683; color: var(--ink); border: 7px dashed var(--ink); }
body[data-style="air-mail"] {
  --panel-width: 45%;
  --panel-left: 3%;
  --panel-top: 55px;
  --frame-one-x: 53%;
  --frame-one-y: 2%;
  --frame-one-w: 38%;
  --frame-one-h: 180px;
  --frame-one-r: -9deg;
  --frame-two-x: 57%;
  --frame-two-y: 32%;
  --frame-two-w: 26%;
  --frame-two-h: 230px;
  --frame-two-r: 7deg;
  --frame-three-x: 74%;
  --frame-three-y: 65%;
  --frame-three-w: 24%;
  --frame-three-h: 180px;
  --frame-three-r: -7deg;
  --frame-four-x: 49%;
  --frame-four-y: 73%;
  --frame-four-w: 22%;
  --frame-four-h: 150px;
  --frame-four-r: 5deg;
}
body[data-style="air-mail"] .keepsake { border: 9px solid transparent; background: linear-gradient(#fffaf0, #fffaf0) padding-box, repeating-linear-gradient(-45deg, #ce5262 0 12px, #fffaf0 12px 22px, #2b6086 22px 34px, #fffaf0 34px 44px) border-box; }
body[data-style="air-mail"] .opener-window { border: 9px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, repeating-linear-gradient(-45deg, #ce5262 0 12px, #fffaf0 12px 22px, #2b6086 22px 34px, #fffaf0 34px 44px) border-box; }
body[data-style="air-mail"] .photo-grid figure { border-color: #2b6086; border-bottom: 9px dashed #ce5262; }
body[data-style="air-mail"] .bonus-box { border: 7px dashed var(--accent-two); }
body[data-style="parcel-locker"] {
  --panel-width: 38%;
  --panel-left: 29%;
  --panel-top: 80px;
  --look-title: Impact, "Arial Black", sans-serif;
  --frame-one-x: 1%;
  --frame-one-y: 4%;
  --frame-one-w: 25%;
  --frame-one-h: 290px;
  --frame-one-r: 0deg;
  --frame-two-x: 71%;
  --frame-two-y: 4%;
  --frame-two-w: 28%;
  --frame-two-h: 170px;
  --frame-two-r: 0deg;
  --frame-three-x: 1%;
  --frame-three-y: 50%;
  --frame-three-w: 25%;
  --frame-three-h: 240px;
  --frame-three-r: 0deg;
  --frame-four-x: 71%;
  --frame-four-y: 37%;
  --frame-four-w: 28%;
  --frame-four-h: 300px;
  --frame-four-r: 0deg;
  --frame-padding: 12px 15px 24px;
  --frame-shadow: 4px 4px 0 #122b3b;
}
body[data-style="parcel-locker"] .delivery { background: #243e51bd; border: 10px solid #182c3c; margin-top: 28px; padding-inline: 20px; }
body[data-style="parcel-locker"] .opener-window { border: 10px solid var(--bar); outline: 3px solid var(--ink); box-shadow: 5px 5px 0 #112835; }
body[data-style="parcel-locker"] .window-bar { background: var(--ink); color: var(--paper); border: 0; }
body[data-style="parcel-locker"] .keepsake { border: 12px solid #dca243; background: #f7c967; box-shadow: inset 0 0 0 2px #b5812a, 4px 4px 0 #142c3c; }
body[data-style="parcel-locker"] .keepsake::after { content: ""; position: absolute; right: -8px; top: 45%; width: 5px; height: 32px; border-radius: 3px; background: #3b5665; border: 1px solid #142b3a; }
body[data-style="parcel-locker"] .wallpaper { grid-template-columns: 29% 42% 29%; gap: 11px; padding: 14px; background: #172f40; }
body[data-style="parcel-locker"] .wallpaper img { border: 8px solid #39576a; }
body[data-style="parcel-locker"] .wallpaper img:nth-child(2) { grid-row: span 2; }
body[data-style="parcel-locker"] .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body[data-style="parcel-locker"] .photo-grid figure { border: 9px solid #dca243; background: #fff6df; box-shadow: 4px 4px 0 #102d3b; }
body[data-style="parcel-locker"] .bonus-box { border: 9px solid var(--bar); background: #243e51; }
body[data-style="parcel-locker"] .bonus-card { border: 5px solid #dca243; }

/* Flower shop: a loose bouquet, glass panes, and printed seed envelopes. */
body[data-family="flowers"] .bonus-box { background: var(--paper); color: var(--ink); }
body[data-family="flowers"] .opener h1 { font-family: Georgia, serif; font-style: italic; }
body[data-style="flower-stand"] {
  --panel-width: 44%;
  --panel-left: 3%;
  --panel-top: 33px;
  --frame-one-x: 60%;
  --frame-one-y: 2%;
  --frame-one-w: 22%;
  --frame-one-h: 250px;
  --frame-one-r: -12deg;
  --frame-two-x: 77%;
  --frame-two-y: 27%;
  --frame-two-w: 20%;
  --frame-two-h: 235px;
  --frame-two-r: 14deg;
  --frame-three-x: 50%;
  --frame-three-y: 50%;
  --frame-three-w: 25%;
  --frame-three-h: 190px;
  --frame-three-r: -15deg;
  --frame-four-x: 72%;
  --frame-four-y: 67%;
  --frame-four-w: 23%;
  --frame-four-h: 195px;
  --frame-four-r: 9deg;
}
body[data-style="flower-stand"] .keepsakes::before { content: ""; position: absolute; left: 60%; top: 27%; width: 30%; height: 64%; clip-path: polygon(0 0, 100% 0, 66% 100%, 43% 100%); background: repeating-linear-gradient(65deg, #a4d391 0 12px, #d5e5b0 12px 24px); border-bottom: 18px solid var(--glint); rotate: 8deg; }
body[data-style="flower-stand"] .opener-window { border-top: 12px solid var(--bar); border-bottom: 10px solid var(--accent-two); }
body[data-style="flower-stand"] .photo-grid figure { border-bottom: 11px solid var(--accent-two); }
body[data-style="flower-stand"] .bonus-box { border: 6px dotted var(--glint); }
body[data-style="greenhouse"] {
  --panel-width: 40%;
  --panel-left: 30%;
  --panel-top: 30px;
  --frame-one-x: 2%;
  --frame-one-y: 5%;
  --frame-one-w: 24%;
  --frame-one-h: 300px;
  --frame-one-r: 0deg;
  --frame-two-x: 74%;
  --frame-two-y: 5%;
  --frame-two-w: 24%;
  --frame-two-h: 300px;
  --frame-two-r: 0deg;
  --frame-three-x: 3%;
  --frame-three-y: 57%;
  --frame-three-w: 23%;
  --frame-three-h: 210px;
  --frame-three-r: 0deg;
  --frame-four-x: 74%;
  --frame-four-y: 57%;
  --frame-four-w: 23%;
  --frame-four-h: 210px;
  --frame-four-r: 0deg;
}
body[data-style="greenhouse"] .delivery::before { content: ""; position: absolute; inset: 0 0 1%; border: 8px double var(--accent-two); border-top: 35px solid var(--bar); border-radius: 28% 28% 0 0; box-shadow: inset 0 0 0 5px var(--ink); }
body[data-style="greenhouse"] .keepsake { padding: 4px; border: 8px double var(--bar); box-shadow: 4px 4px 0 var(--accent-two); }
body[data-style="greenhouse"] .opener-window { border: 6px double var(--bar); border-radius: 30px 30px 0 0; overflow: hidden; }
body[data-style="greenhouse"] .wallpaper { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px; background: #1d433d; }
body[data-style="greenhouse"] .wallpaper img { border: 4px solid #9ccdb6; }
body[data-style="greenhouse"] .photo-grid figure { border: 5px double var(--bar); box-shadow: 3px 3px 0 var(--accent-two); }
body[data-style="seed-packet"] {
  --panel-width: 44%;
  --panel-left: 5%;
  --panel-top: 20px;
  --frame-one-x: 56%;
  --frame-one-y: 7%;
  --frame-one-w: 22%;
  --frame-one-h: 270px;
  --frame-one-r: -8deg;
  --frame-two-x: 78%;
  --frame-two-y: 28%;
  --frame-two-w: 20%;
  --frame-two-h: 190px;
  --frame-two-r: 8deg;
  --frame-three-x: 52%;
  --frame-three-y: 56%;
  --frame-three-w: 23%;
  --frame-three-h: 220px;
  --frame-three-r: 4deg;
  --frame-four-x: 77%;
  --frame-four-y: 67%;
  --frame-four-w: 20%;
  --frame-four-h: 190px;
  --frame-four-r: -6deg;
}
body[data-style="seed-packet"] .opener-window { border: 8px double var(--bar); outline: 5px solid var(--accent); }
body[data-style="seed-packet"] .opener h1 { font-family: Impact, "Arial Black", sans-serif; font-style: normal; text-transform: uppercase; }
body[data-style="seed-packet"] .keepsake { border: 7px solid var(--paper); outline: 2px solid var(--ink); border-top: 26px solid var(--bar); padding: 7px; background: var(--paper); }
body[data-style="seed-packet"] .keepsake::after { content: ""; position: absolute; bottom: 3px; left: 7px; right: 7px; height: 7px; background: repeating-linear-gradient(90deg, var(--bar) 0 5px, transparent 5px 9px); }
body[data-style="seed-packet"] .photo-grid figure { border-top: 18px solid var(--bar); }
body[data-style="seed-packet"] .bonus-box { border: 8px double var(--bar); }

/* Sparse photo sets keep one clear print instead of empty framing positions. */
@media (min-width: 900px) {
  body[data-style] .keepsakes[data-count="1"] .keepsake { left: 64%; top: 21%; width: 29%; height: 330px; transform: rotate(6deg); }
  body[data-style="guestbook"] .keepsakes[data-count="1"] .keepsake, body[data-style="webring"] .keepsakes[data-count="1"] .keepsake, body[data-style="pinball-hall"] .keepsakes[data-count="1"] .keepsake, body[data-style="disco"] .keepsakes[data-count="1"] .keepsake, body[data-style="candy-shop"] .keepsakes[data-count="1"] .keepsake, body[data-style="moon-mail"] .keepsakes[data-count="1"] .keepsake, body[data-style="greenhouse"] .keepsakes[data-count="1"] .keepsake { left: 2%; top: 20%; width: 23%; height: 270px; }
  body[data-style="parcel-locker"] .keepsakes[data-count="1"] .keepsake { left: 72%; top: 11%; width: 26%; height: 430px; transform: none; }
  body[data-style] .keepsakes[data-count="2"] .keepsake:nth-child(2) { top: 55%; }
  body[data-style="parcel-locker"] .keepsakes[data-count="2"] .keepsake:nth-child(2) { top: 56%; height: 210px; }
}

/* Phones have their own framed strip below the gift, with the same visual voice. */
@media (max-width: 899px) {
  body[data-style] .delivery { width: calc(100% - 30px); min-height: 0; padding: 35px 0 26px; display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  body[data-style] .opener-window { width: 100%; max-width: 620px; margin: 0 auto; order: 1; }
  body[data-style] .keepsakes { display: none; }
  body[data-style] .v2-opener-photos { display: flex; order: 2; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; padding: 0 8px 10px; margin: 0; }
  body[data-style] .v2-opener-photos:empty { display: none; }
  body[data-style] :where(.v2-opener-photos) .keepsake { position: relative; width: clamp(100px, 27vw, 180px); height: clamp(115px, 31vw, 200px); border-width: 3px; border-radius: min(var(--frame-radius), 25px); padding: 5px 5px 13px; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--accent), 5px 5px 0 var(--ink); }
  body[data-style] .v2-opener-photos .keepsake:nth-child(2) { transform: rotate(6deg); border-color: var(--accent-two); }
  body[data-style] .v2-opener-photos .keepsake:nth-child(3) { transform: rotate(-3deg); }
  body[data-style] .opener { padding: 25px 17px; }
  body[data-style] .opener h1 { font-size: clamp(2.3rem, 10vw, 4.4rem); }
  body[data-style] .opener-line { font-size: 1.04rem; }
  body[data-style] .parcel img { width: 95px; }
  body[data-style] .sticker { width: min(var(--size), 57px); }
  body[data-style] .sticker-icon { font-size: min(calc(var(--size) * .6), 32px); }
  body[data-style] .delivery::before { inset: 0; border-width: 3px; }
  body[data-style].gift-opened .delivery { display: flex; min-height: 0; padding-block: 28px 8px; }
  body[data-style] .wallpaper { grid-template-columns: 60% 40%; grid-auto-rows: minmax(240px, 47vh); }
  body[data-style] .wallpaper[data-count="2"] { grid-auto-rows: 100vh; }
  body[data-style] .bonus-box { width: calc(100% - 32px); padding: 17px 13px; margin-block: 18px 29px; }
  body[data-style] .album { width: calc(100% - 32px); }
  body[data-style] .album-body { padding: 15px 11px; }
  body[data-style] .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  body[data-style] .photo-grid figure { padding: 5px 5px 13px; min-width: 0; }
  body[data-style] .photo-grid figcaption { font-size: .72rem; }
  body[data-style="dial-up"] .opener { text-align: left; padding-top: 31px; }
  body[data-style="dial-up"] .opener h1 { max-width: 90%; }
  body[data-style="dial-up"] .parcel { top: 54px; right: 12px; }
  body[data-style="dial-up"] .parcel img { width: 43px; }
  body[data-style="dial-up"] .v2-opener-photos { justify-content: flex-end; padding-right: 10px; }
  body[data-style="guestbook"] .v2-opener-photos { justify-content: space-around; }
  body[data-style="webring"] .v2-opener-photos .keepsake { border-radius: 50%; width: 124px; height: 124px; padding: 9px; }
  body[data-style="scrapbook"] .v2-opener-photos .keepsake { width: 123px; height: 150px; }
  body[data-style="contact-sheet"] .v2-opener-photos { gap: 9px; }
  body[data-style="contact-sheet"] .v2-opener-photos .keepsake { transform: none; background: var(--deep); padding-bottom: 21px; }
  body[data-style="film-strip"] .v2-opener-photos { flex-direction: column; gap: 12px; }
  body[data-style="film-strip"] .v2-opener-photos .keepsake { width: 88%; height: 114px; border: 12px solid #201b19; border-inline-width: 22px; padding: 0; transform: rotate(-3deg); }
  body[data-style="prize-counter"] .v2-opener-photos { border-bottom: 10px ridge var(--accent); padding-bottom: 15px; }
  body[data-style="pinball-hall"] .delivery::before { display: none; }
  body[data-style="pinball-hall"] .v2-opener-photos .keepsake { border-radius: 18px; transform: rotate(-10deg); }
  body[data-style="pocket-game"] .opener-window { width: calc(100% - 10px); border-width: 8px; border-bottom-width: 52px; border-radius: 13px 13px 35px 13px; }
  body[data-style="pocket-game"] .opener-window::after { bottom: -38px; width: 14px; height: 14px; }
  body[data-style="disco"] .delivery::before { display: none; }
  body[data-style="disco"] .v2-opener-photos .keepsake { transform: rotate(-10deg); border: 5px double var(--accent); }
  body[data-style="mixtape"] .opener-window { border-inline-width: 10px; }
  body[data-style="mixtape"] .v2-opener-photos .keepsake { width: 42%; height: 132px; }
  body[data-style="neon-diner"] .v2-opener-photos { gap: 10px; }
  body[data-style="neon-diner"] .v2-opener-photos .keepsake { transform: none; border-radius: 13px 13px 0 0; }
  body[data-style="candy-shop"] .delivery { padding-top: 69px; }
  body[data-style="candy-shop"] .delivery::before { display: block; inset: 9px 0 auto; height: 43px; border-width: 3px; }
  body[data-style="candy-shop"] .v2-opener-photos .keepsake { border-radius: 30px 30px 0 0; }
  body[data-style="soda-pop"] .v2-opener-photos .keepsake { width: 106px; height: 160px; border-radius: 24px; }
  body[data-style="cake-box"] .v2-opener-photos { flex-direction: column; gap: 10px; }
  body[data-style="cake-box"] .v2-opener-photos .keepsake { width: 65%; height: 103px; transform: none; border-block-width: 7px; }
  body[data-style="cake-box"] .v2-opener-photos .keepsake:nth-child(2) { width: 85%; }
  body[data-style="haunted-desktop"] .v2-opener-photos .keepsake { border-top-width: 19px; }
  body[data-style="moon-mail"] .delivery::before { display: none; }
  body[data-style="moon-mail"] .v2-opener-photos .keepsake { border-radius: 50%; width: 127px; height: 127px; padding: 10px; }
  body[data-style="after-hours-tv"] .opener-window { border-width: 7px; border-bottom-width: 15px; border-radius: 15px; }
  body[data-style="after-hours-tv"] .v2-opener-photos { flex-direction: column; gap: 14px; }
  body[data-style="after-hours-tv"] .v2-opener-photos .keepsake { width: 76%; height: 130px; border: 8px solid #545764; border-right-width: 27px; border-radius: 13px; padding: 3px; transform: rotate(-3deg); }
  body[data-style="wrong-delivery"] .v2-opener-photos .keepsake { border: 5px dashed var(--bar); }
  body[data-style="air-mail"] .v2-opener-photos .keepsake { border-width: 7px; }
  body[data-style="parcel-locker"] .delivery { border-width: 7px; margin-top: 18px; padding-inline: 10px; padding-bottom: 21px; }
  body[data-style="parcel-locker"] .opener-window { border-width: 7px; }
  body[data-style="parcel-locker"] .v2-opener-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-inline: 0; }
  body[data-style="parcel-locker"] .v2-opener-photos .keepsake { width: 100%; height: 157px; transform: none; border: 8px solid #dca243; padding: 5px 8px 16px; }
  body[data-style="parcel-locker"] .v2-opener-photos .keepsake:nth-child(2) { height: 120px; align-self: start; }
  body[data-style="parcel-locker"] .wallpaper { grid-template-columns: 43% 57%; gap: 7px; padding: 7px; }
  body[data-style="parcel-locker"] .wallpaper img:nth-child(2) { grid-row: auto; }
  body[data-style="flower-stand"] .v2-opener-photos .keepsake { transform: rotate(-13deg); }
  body[data-style="greenhouse"] .delivery::before { display: none; }
  body[data-style="greenhouse"] .v2-opener-photos { padding: 9px; border: 5px double var(--accent-two); }
  body[data-style="greenhouse"] .v2-opener-photos .keepsake { transform: none; border: 5px double var(--bar); padding: 3px; }
  body[data-style="greenhouse"] .wallpaper { grid-template-columns: 50% 50%; padding: 5px; }
  body[data-style="seed-packet"] .v2-opener-photos .keepsake { border-top-width: 20px; }
}
@media (max-width: 370px) {
  body[data-style] .delivery { width: calc(100% - 24px); }
  body[data-style] .opener { padding-inline: 13px; }
  body[data-style] .photo-grid { grid-template-columns: 1fr; }
  body[data-style] .bonus-grid, body[data-style] .bonus-buttons { grid-template-columns: 1fr; }
  body[data-style] .v2-opener-photos .keepsake { width: 105px; height: 120px; }
  body[data-style="film-strip"] .v2-opener-photos .keepsake, body[data-style="cake-box"] .v2-opener-photos .keepsake, body[data-style="after-hours-tv"] .v2-opener-photos .keepsake { width: 82%; height: 112px; }
}

body[data-style] .delivered-album { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 5px; padding: 7px 12px; color: var(--accent-ink); background: var(--accent); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 .8rem/1.2 var(--look-label); text-decoration: none; }
@media (max-width: 899px) {
  body[data-style].gift-opened .delivery { padding-block: 18px 8px; gap: 15px; }
  body[data-style].gift-opened .delivered-state { padding: 14px 13px; }
  body[data-style].gift-opened .delivered-state h2 { margin-bottom: 5px; font-size: 1.65rem; }
  body[data-style].gift-opened .delivered-state p { margin-block: 6px; }
  body[data-style].gift-opened .v2-opener-photos { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px; padding: 0 5px 7px; border: 0; }
  body[data-style].gift-opened .v2-opener-photos .keepsake { width: 28%; height: 96px; flex: 0 1 28%; max-width: 120px; padding: 4px 4px 10px; border-width: 3px; border-radius: 0; transform: rotate(-4deg); }
  body[data-style].gift-opened .v2-opener-photos .keepsake:nth-child(2) { width: 28%; height: 96px; transform: rotate(4deg); }
  body[data-style].gift-opened .v2-opener-photos .keepsake::before, body[data-style].gift-opened .v2-opener-photos .keepsake::after { display: none; }
  body[data-style].gift-opened .bonus-box { margin-top: 10px; margin-bottom: 22px; padding: 14px 12px; }
  body[data-style].gift-opened .bonus-box .bonus-heading { font-size: 1.45rem; margin-bottom: 12px; }
  body[data-style].gift-opened .bonus-box .bonus-wrapper { min-height: 112px; padding: 8px 5px; }
  body[data-style].gift-opened .bonus-box .bonus-wrapped-art { width: 42px; height: 42px; }
}
