/* ---------- tokens ---------- */
:root {
  --cream: #fff7ee;
  --paper: #ffffff;
  --ink: #3b2e3a;
  --muted: #8a7a88;
  --line: #f0e3d8;
  --peach: #39ff9a;      /* accent (bright green) */
  --peach-deep: #1ef58a; /* accent, stronger */
  --mint: #9fd8cb;
  --butter: #ffd97d;
  --lilac: #c7b8ea;
  --sky: #a9d6f5;
  --rose: #f7c8d4;
  --shadow: 0 10px 30px rgba(59, 46, 58, 0.10);
  --radius: 0;
  --blue: #2457e6;
  --font-head: "Fredoka", "Nunito", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blue);
  min-height: 100dvh;
  line-height: 1.45;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin: 0 0 1em; }
a { color: var(--peach-deep); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.muted { color: var(--muted); font-weight: 400; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 700; }
.hint { color: var(--muted); font-size: 0.9rem; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.2rem; max-width: 980px; margin: 0 auto;
}
.topbar, .wall-head { color: #fff; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px rgba(57,255,154,0.3); }
.progress { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.progress li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s; }
.progress li.done { background: var(--mint); }
.progress li.current { background: var(--peach); transform: scale(1.35); }

main#app { max-width: 620px; margin: 0 auto; padding: 0 1rem 4rem; }
main#app.wide { max-width: 980px; }

.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid rgba(255,255,255,0.7);
}
.step { animation: rise 0.45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero { text-align: center; padding-top: 1.5rem; }
.hero .actions { justify-content: center; }
.hero .actions .spacer { display: none; }
.hero .emoji { font-size: 3.5rem; line-height: 1; margin-bottom: 0.5rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin: 1rem 0 0.35rem; font-size: 0.95rem; }
input[type="text"], input[type="search"], input[type="password"], textarea, select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 0; border: 2px solid var(--line);
  background: #fffdfa; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--peach); box-shadow: 0 0 0 4px rgba(57,255,154,0.25); }
textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem; border-radius: 0; border: 2px solid transparent; cursor: pointer;
  font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
  background: #f4ebe3; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { background: var(--peach-deep); color: #0b1f4d; }
.btn.ghost { background: rgba(255,255,255,0.92); border-color: var(--line); }
.btn.small { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.icon { width: 44px; height: 44px; padding: 0; border-radius: 0; font-size: 1.15rem; }
.btn.icon.active { background: var(--ink); color: #fff; }
.actions { display: flex; gap: 0.75rem; justify-content: space-between; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.error { color: #c0392b; font-weight: 700; margin-top: 0.75rem; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 0.75rem 1.2rem; border-radius: 0; opacity: 0;
  transition: all 0.3s; pointer-events: none; z-index: 50; font-weight: 700; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- step 2: name options ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.option {
  border: 2px solid var(--line); background: #fffdfa; border-radius: 0; padding: 1.1rem 0.75rem;
  font-family: var(--font-head); font-size: 1.3rem; cursor: pointer; transition: all 0.15s; position: relative;
}
.option:hover { border-color: var(--lilac); transform: translateY(-2px); }
.option.selected { border-color: var(--peach-deep); background: #fff1ea; box-shadow: none; }
.option.selected::after { content: "✓"; position: absolute; top: 8px; right: 12px; color: var(--peach-deep); font-size: 0.9rem; font-weight: 900; }
.option.other input { margin-top: 0.4rem; font-family: var(--font-body); font-size: 1rem; padding: 0.55rem 0.8rem; }

/* ---------- step 3: face builder ---------- */
.builder { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .builder { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }

/* On phones the canvas stays pinned at the top while you scroll the parts list below it. */
@media (max-width: 819px) {
  .stage-wrap { position: sticky; top: 0; z-index: 5; background: var(--blue); margin: 0 -1rem; padding: 0.5rem 1rem 0.6rem; box-shadow: 0 10px 16px -12px rgba(59,46,58,0.25); }
  .stage { max-width: min(100%, 46vh); margin: 0 auto; }
  .stage-tools { justify-content: center; }
  .hair-tools { justify-content: center; }
}
.stage {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff8ef, #ffe9d6); box-shadow: var(--shadow); touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.stage.draw-mode canvas { cursor: crosshair; }
.stage .empty-hint {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted);
  padding: 2rem; pointer-events: none; font-weight: 700; z-index: 2;
}
.stage-tools { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; align-items: center; }
.stage-tools .group { display: flex; gap: 0.4rem; background: rgba(255,255,255,0.8); padding: 0.35rem; border-radius: 0; }

.panel { display: flex; flex-direction: column; gap: 0.75rem; }
.tabs { display: flex; gap: 0.5rem; }
.tab { flex: 1; padding: 0.7rem; border-radius: 0; border: 2px solid var(--line); background: #fffdfa; cursor: pointer; font-weight: 800; }
.tab.active { border-color: var(--lilac); background: #f4f0fc; }
.photo-wrap { position: relative; border-radius: 0; overflow: hidden; background: #eee; touch-action: pan-y; }
.photo-wrap.snipping { touch-action: none; cursor: crosshair; }
.photo-wrap img { width: 100%; height: auto; display: block; pointer-events: none; }
.photo-wrap .snip-box { position: absolute; border: 2px dashed #fff; background: rgba(246,165,140,0.35); box-shadow: 0 0 0 9999px rgba(59,46,58,0.35); display: none; pointer-events: none; }
.photo-wrap .feature-box { position: absolute; border: 2px solid rgba(255,255,255,0.9); background: rgba(199,184,234,0.25); border-radius: 0; cursor: pointer; transition: background 0.15s; padding: 0; }
.photo-wrap .feature-box:hover { background: rgba(199,184,234,0.5); }
.photo-wrap .feature-box span { position: absolute; left: 4px; top: 2px; font-size: 0.7rem; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.photo-wrap.snipping .feature-box { pointer-events: none; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem 0.4rem 0.4rem; border-radius: 0;
  border: 2px solid var(--line); background: #fffdfa; cursor: pointer; font-weight: 800; font-size: 0.9rem;
}
.chip:hover { border-color: var(--mint); }
.chip .thumb { width: 30px; height: 30px; border-radius: 50%; background-repeat: no-repeat; background-color: #eee; }
.chip.snip { border-style: dashed; padding-left: 0.8rem; }
.chip.snip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.hair-tools { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); cursor: pointer; padding: 0; }
.swatch.active { box-shadow: 0 0 0 3px var(--ink); }
.hair-tools input[type="range"] { width: 110px; }

/* ---------- step 4: music ---------- */
.seg { display: flex; background: #f4ebe3; border-radius: 0; padding: 4px; gap: 4px; margin: 0.5rem 0 1rem; }
.seg button { flex: 1; border: 0; background: transparent; padding: 0.6rem 0.8rem; border-radius: 0; font-weight: 800; cursor: pointer; }
.seg button.active { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.search-row { position: relative; }
.search-row .spinner { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--peach-deep); border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.search-row.loading .spinner { display: block; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.song-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.song-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 0; background: #fffdfa; border: 2px solid var(--line); }
.song-list li img { width: 48px; height: 48px; border-radius: 0; object-fit: cover; flex: none; background: #eee; }
.song-list li .meta { flex: 1; min-width: 0; }
.song-list li .meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-list li .meta span { color: var(--muted); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.song-list li .play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f4ebe3; cursor: pointer; flex: none; font-size: 0.9rem; }
.song-list li .play.playing { background: var(--ink); color: #fff; }
.song-list.compact li { border: 0; padding: 0.25rem 0; background: transparent; }
.song-list.compact li img { width: 36px; height: 36px; }
.chosen h3 { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 1.15rem; }
.chosen h3 .count { font-size: 0.8rem; background: var(--butter); border-radius: 0; padding: 0.1rem 0.6rem; font-family: var(--font-body); }
.spotify-note { display: flex; align-items: center; gap: 0.5rem; background: #e9f8ef; color: #1d6b3a; border-radius: 0; padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 700; margin-top: 1rem; }
details.manual { margin-top: 0.75rem; }
details.manual summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }

/* ---------- step 5: message & sign ---------- */
.sigpad { width: 100%; aspect-ratio: 5 / 2; background: #fffdfa; border: 2px dashed var(--line); border-radius: 0; touch-action: none; display: block; cursor: crosshair; overflow: hidden; position: relative; }
.sigpad canvas { display: block; width: 100% !important; height: 100% !important; }
.sig-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
.prompts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; margin-bottom: 0.75rem; }
.prompts button { border: 0; background: #f4ebe3; border-radius: 0; padding: 0.3rem 0.7rem; font-size: 0.8rem; cursor: pointer; font-weight: 700; }

/* ---------- done / share / wall ---------- */
.summary { text-align: center; }
.face-img { width: min(100%, 320px); margin: 0.75rem auto; border-radius: 0; box-shadow: var(--shadow); }
.sig-img { max-height: 90px; width: auto; margin: 0.5rem auto 0; }
.big-guess { font-size: 1.3rem; }
.big-guess strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--peach-deep); }
blockquote { margin: 1rem 0; padding: 1rem 1.2rem; background: #fff7ee; border-radius: 0; font-style: italic; border-left: 4px solid var(--butter); }
.share-page { padding: 1rem; }
.share-card { max-width: 560px; margin: 1rem auto; text-align: center; }
.share-card .btn { margin: 0.5rem 0.25rem 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 0; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.8; } }

.wall { max-width: 1100px; margin: 0 auto; padding: 0 1rem 4rem; }
.wall-head { text-align: center; padding: 1rem 0 1.5rem; }
.tally { display: grid; gap: 0.5rem; margin: 1rem 0; }
.tally .row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 0.75rem; align-items: center; font-weight: 800; }
.tally .bar { height: 18px; border-radius: 0; background: #f4ebe3; overflow: hidden; }
.tally .bar i { display: block; height: 100%; border-radius: 0; background: linear-gradient(90deg, var(--mint), var(--sky)); transition: width 0.6s; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.guest-card { display: flex; flex-direction: column; gap: 0.5rem; }
.guest-card .face-img { width: 100%; margin: 0; }
.guest-card h3 { margin: 0.4rem 0 0; }
.guest-card .guess { color: var(--peach-deep); font-weight: 800; }
.guest-card blockquote { margin: 0.4rem 0; font-size: 0.95rem; }
.guest-card .sig-img { margin: 0; max-height: 60px; }
.playlist-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

/* ---------- setup page ---------- */
.setup { max-width: 900px; margin: 0 auto; padding: 0 1rem 4rem; display: grid; gap: 1rem; }
.setup .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .setup .row2 { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-direction: column; gap: 0.3rem; }
.feature-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: #fffdfa; border: 2px solid var(--line); border-radius: 0; padding: 0.4rem 0.7rem; font-size: 0.9rem; }
.feature-list li button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; }
.entry-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.entry-row img { width: 40px; height: 40px; border-radius: 0; object-fit: cover; background: #eee; }
.entry-row .meta { flex: 1; min-width: 0; }
.ok { color: #1d6b3a; font-weight: 800; }
.warn { color: #a05a00; font-weight: 800; }
code { background: #f4ebe3; padding: 0.1rem 0.4rem; border-radius: 0; font-size: 0.9em; }

/* ---------- flat blue theme: no white containers, white text ---------- */
body { color: #fff; }
a { color: var(--butter); }
.muted, .hint, .eyebrow, details.manual summary { color: rgba(255,255,255,0.75); }
.error { color: #ffb4a8; }
.card { background: transparent; box-shadow: none; border: 0; }
.share-card, .guest-card, .wall .card, .setup .card { border: 1px solid rgba(255,255,255,0.35); }

input[type="text"], input[type="search"], input[type="password"], textarea, select {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.6); }
input:focus, textarea:focus, select:focus { border-color: #fff; box-shadow: none; }
select option { color: var(--ink); }

.btn { background: rgba(255,255,255,0.15); color: #fff; }
.btn.primary { background: var(--peach-deep); color: #0b1f4d; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn.icon.active { background: #fff; color: var(--ink); }
.stage-tools .group { background: rgba(255,255,255,0.15); }

.option { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.option:hover { border-color: #fff; }
.option.selected { background: rgba(255,255,255,0.15); border-color: #fff; box-shadow: none; }
.option.selected::after { color: #fff; }

.tab { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.tab.active { background: rgba(255,255,255,0.2); border-color: #fff; }
.chip { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.chip:hover { border-color: #fff; }
.chip.snip.active { background: #fff; color: var(--ink); border-color: #fff; }

.seg { background: rgba(255,255,255,0.15); }
.seg button { color: #fff; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: none; }
.song-list li { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.song-list li .meta span { color: rgba(255,255,255,0.75); }
.song-list li .play { background: rgba(255,255,255,0.2); color: #fff; }
.song-list li .play.playing { background: #fff; color: var(--ink); }
.chosen h3 .count { color: var(--ink); }
.spotify-note { background: rgba(255,255,255,0.15); color: #fff; }

.prompts button { background: rgba(255,255,255,0.15); color: #fff; }
.sigpad { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
blockquote { background: rgba(255,255,255,0.12); color: #fff; }
.big-guess strong, .guest-card .guess { color: var(--butter); }
.tally .bar { background: rgba(255,255,255,0.2); }

.feature-list li { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.feature-list li button { color: #fff; }
.entry-row { border-bottom-color: rgba(255,255,255,0.25); }
.ok { color: var(--mint); }
.warn { color: var(--butter); }
code { background: rgba(255,255,255,0.15); }

/* ---------- feature tiles (drag onto the canvas) ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: 92px; padding: 0.5rem 0.25rem;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.35); color: #fff; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.tile:hover { border-color: #fff; background: rgba(255,255,255,0.16); }
.tile:active { cursor: grabbing; }
.tile .thumb { display: block; border-radius: 50%; background-repeat: no-repeat; background-color: #eee; box-shadow: 0 0 0 2px rgba(255,255,255,0.6); }
.tile .tile-label { font-size: 0.75rem; font-weight: 800; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; border-radius: 50%; background-repeat: no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.tiles .chip.snip { align-self: center; }

/* ---------- line icons ---------- */
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; flex: none; }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn.icon .ico { width: 22px; height: 22px; }
.song-list li .play { display: inline-flex; align-items: center; justify-content: center; }
.song-list li .play .ico { width: 16px; height: 16px; }
.hero-icons { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-bottom: 0.75rem; animation: bob 3s ease-in-out infinite; }
.hero-icons .ico { width: 64px; height: 64px; stroke-width: 1.6; }
.hero-icons .callipers { width: 64px; height: 64px; transform: rotate(135deg); }
.hero-icons .emoji { font-size: 56px; line-height: 1; animation: none; }
.skin-tools { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.swatch.none { background: linear-gradient(135deg, transparent 44%, #1ef58a 44%, #1ef58a 56%, transparent 56%), rgba(255,255,255,0.15); }
@media (max-width: 819px) { .skin-tools { justify-content: center; } }

.tile .thumb.square { border-radius: 0; background-color: transparent; box-shadow: none; }

/* ---------- live Spotify playlist ---------- */
.spotify-embed { display: block; width: 100%; height: 352px; border: 0; margin-top: 0.75rem; }
.playlist-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; text-align: left; }
.playlist-card h3 { margin: 0 0 0.25rem; }

/* ---------- polaroid cards ---------- */
.polaroid {
  --tilt: 0deg;
  background: #fff; color: var(--ink); padding: 14px 14px 18px; width: 100%;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.15);
  transform: rotate(var(--tilt)); transition: transform 0.25s;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); z-index: 2; position: relative; }
.polaroid .photo { aspect-ratio: 1; background: #f3ede6; overflow: hidden; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .photo .blank { width: 100%; height: 100%; display: grid; place-items: center; font-family: 'Caveat', cursive; font-size: 2.4rem; color: #b9ab9f; padding: 1rem; text-align: center; }
.polaroid .caption { font-family: 'Caveat', cursive; text-align: center; margin-top: 14px; line-height: 1.15; }
.polaroid .who { font-size: 1.85rem; font-weight: 700; }
.polaroid .guess { font-size: 1.5rem; color: #1a3fb0; }
.polaroid .note { font-size: 1.3rem; color: #4a3f48; text-align: left; margin: 0.6rem 0 0; white-space: pre-wrap; }
.polaroid .sig { display: block; max-height: 64px; width: auto; margin: 0.5rem auto 0; filter: invert(1); }
.polaroid .songs { font-size: 1.1rem; color: #6b5f69; margin: 0.5rem 0 0; }
.polaroid .open { display: inline-block; margin-top: 0.5rem; font-size: 1.15rem; color: #1a3fb0; }
.polaroid-wrap { max-width: 360px; margin: 1.25rem auto; }
.wall .grid { gap: 2rem; padding: 1rem 0.5rem; }
.share-card { border: 0; }

.polaroid .byline { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 0.9rem; }
.polaroid .byline .who { font-size: 1.6rem; font-weight: 700; text-align: left; line-height: 1.05; }
.polaroid .byline .sig { margin: 0; max-height: 56px; max-width: 45%; }
.polaroid .byline .sig { max-height: 72px; max-width: 48%; }
