/* Send a Cracker: the app's layout and controls. Tokens in base.css; the table, crackers, crowns,
   slips and toys are art.css's. Mobile first: designed at 390 wide, works from 320 to 1180. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--holly); }
body { margin: 0; min-height: 100svh; color: var(--cream); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; background: transparent; }
body.sheeted { overflow: hidden; }
a { color: var(--candle); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--candle); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 14px; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.015em; line-height: 1.06; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 100, "WONK" 0; }
h1 { font-size: clamp(34px, 5.2vw + 16px, 62px); margin-bottom: 14px; }
h2 { font-size: clamp(24px, 1.8vw + 18px, 32px); margin-bottom: 12px; }
h3 { font-size: 21px; margin: 18px 0 6px; }
.lede { font-size: clamp(17px, .5vw + 15.5px, 20px); color: #e9dfca; max-width: 36em; }
.kicker { font: 700 13px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--candle); margin-bottom: 10px; }
.kicker a { color: inherit; }
.muted { color: #cfc4ac; }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.err { color: #ffb3a8; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.center { justify-content: center; }

/* ---------- Header: brand, guides on wide screens, the main action, sound ---------- */
.top { position: relative; z-index: 5; display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--cream); text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; display: block; background: url(/favicon.svg) center / contain no-repeat; }
.brand-mark:not(:empty) { background: none; }
.brand-name { font: 800 21px/1 var(--display); letter-spacing: -.01em; font-variation-settings: "SOFT" 100; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-cta .s { display: none; }
@media (max-width: 479px) {
  .top-cta .l { display: none; } .top-cta .s { display: inline; }
  .top { gap: 8px; padding-left: 12px; padding-right: 12px; } .brand { gap: 7px; } .brand-mark { width: 30px; height: 30px; } .brand-name { font-size: 17px; } .top .top-cta { padding: 8px 13px; }
}
.top-links { display: none; gap: 20px; margin-right: 8px; }
.top-links a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.top-links a:hover { text-decoration: underline; }
.top .top-cta { min-height: 44px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
.top-cta[hidden] { display: none; }
@media (min-width: 860px) { .top-links { display: flex; } }
@media (max-width: 359px) { .top { gap: 6px; padding-left: 10px; padding-right: 10px; } .brand { gap: 5px; } .brand-mark { width: 26px; height: 26px; } .brand-name { font-size: 15px; } .top .top-cta { padding: 8px 11px; font-size: 13.5px; } }

.tool { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(244, 234, 214, .35); background: rgba(22, 58, 43, .55); color: var(--cream);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: transform .12s var(--ease-out), background .2s; }
.tool:active { transform: scale(.94); }
.tool.small { width: 44px; height: 44px; border-color: transparent; background: transparent; color: inherit; }
#sound .cross { display: none; }
#sound[aria-pressed="false"] .cross { display: inline; }
#sound[aria-pressed="false"] .waves { display: none; }

/* ---------- Buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--cranberry); color: var(--cream); font: 700 17px/1.15 var(--text); text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 2px 0 var(--cranberry-deep), 0 12px 24px -16px rgba(30, 5, 10, .9); transition: transform .12s var(--ease-out), box-shadow .12s, background .2s; }
.btn:hover { background: #c02c43; }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 0 var(--cranberry-deep); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 234, 214, .55); }
.btn.ghost:hover { background: rgba(244, 234, 214, .08); }
.btn.small { min-height: 44px; padding: 9px 16px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn.big { min-height: 58px; font-size: 18px; }
.linkish { background: none; border: 0; padding: 0 4px; min-height: 44px; min-width: 44px; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid rgba(244, 234, 214, .35);
  background: rgba(22, 58, 43, .6); color: var(--cream); font: 600 15px/1.2 var(--text); text-decoration: none; cursor: pointer; text-align: left; }
.chip[aria-pressed="true"], .chip:hover { border-color: var(--candle); }
label { display: block; font-weight: 650; font-size: 15px; margin: 0 0 6px; }
input, textarea, select { width: 100%; font: 17px/1.4 var(--text); color: var(--ink); background: var(--cream); border: 2px solid var(--cream-2); border-radius: 12px; padding: 11px 13px; min-height: 48px; }
textarea { resize: vertical; min-height: 84px; }
select { width: auto; min-width: 150px; appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--candle); outline-offset: 1px; border-color: var(--cranberry); }
::placeholder { color: #9b8e7b; }
.badge { display: inline-block; font: 750 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px 3px; border-radius: 999px;
  background: var(--gold-foil); color: var(--ink); vertical-align: middle; }
.paynote { font-size: 13.5px; color: #d3c7ae; margin: 10px 0 0; text-align: center; }
.paynote a { color: var(--cream); }

/* Cream paper, for anything to read and fill in. */
.card { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 18px; margin: 18px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 36px -24px rgba(0, 0, 0, .8); }
.card a { color: var(--cranberry-deep); }
.card .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(36, 28, 23, .35); }
.card .chip { background: #fbf5e8; color: var(--ink); border-color: var(--cream-2); }
.card .muted { color: var(--ink-soft); }
.card h2 { color: var(--ink); }

/* ---------- Page frames ---------- */
#app { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left)) 40px; min-height: 60svh; }
.page { max-width: 760px; margin: 0 auto; padding-top: 8px; }
.page.narrow { max-width: 560px; }
.page.center, .center { text-align: center; }
.page.center .btn { margin-top: 8px; }
.still { max-width: 420px; margin: 18px auto 22px; }

/* ---------- Home ---------- */
.hero { display: grid; gap: 18px; padding-top: 4px; }
.hero h1 { font-size: clamp(33px, 5vw + 16px, 60px); }
.first-time { font-size: 15.5px; color: #ddd2bb; border-left: 3px solid var(--candle); padding: 2px 0 2px 12px; max-width: 34em; }
.paths { display: grid; gap: 12px; margin: 18px 0 12px; }
.path { display: grid; gap: 4px; padding: 16px 18px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--cream);
  box-shadow: 0 2px 0 var(--cream-2), 0 16px 30px -22px rgba(0, 0, 0, .9); position: relative; transition: transform .15s var(--ease-out); min-height: 44px; }
.path:active { transform: translateY(1px); }
.path::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border: solid var(--cranberry); border-width: 2.5px 2.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.path b { font: 800 21px/1.12 var(--display); font-variation-settings: "SOFT" 100; padding-right: 26px; }
.path span:last-child { font-size: 15px; color: var(--ink-soft); padding-right: 22px; }
.path-kicker { font: 700 12px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--cranberry); }
.try { font: italic 600 18px/1.3 var(--display); color: var(--candle); text-align: center; margin: 0 0 4px; }
.mine { margin-top: 14px; }
.mine h2 { font-size: 20px; margin-bottom: 4px; }
.mine ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mine a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 560px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; padding-top: 24px; }
  .hero-pull { position: sticky; top: 12px; }
  .home .hero-pull .ck-zone { height: clamp(340px, calc(100svh - 300px), 540px); }
}

/* The static parts of the home page, shown only there. */
.about { display: none; }
body.at-home .about { display: block; }
.about { position: relative; z-index: 1; max-width: 760px; margin: 18px auto; padding: 22px 20px 20px; background: var(--cream); color: var(--ink); border-radius: 20px;
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, .9); scroll-margin-top: 10px; }
@media (max-width: 799px) { .about { margin-left: max(12px, env(safe-area-inset-left)); margin-right: max(12px, env(safe-area-inset-right)); } }
.about a { color: var(--cranberry-deep); }
.steps { padding-left: 1.3em; margin: 0 0 12px; }
.steps li { margin-bottom: 10px; }
.steps li::marker { font: 800 1.1em var(--display); color: var(--cranberry); }
.more { margin: 8px 0 0; }
.guides a { display: inline-block; min-height: 32px; }
.faq details { border-top: 1px solid var(--cream-2); }
.faq details:last-child { border-bottom: 1px solid var(--cream-2); }
.faq summary { cursor: pointer; min-height: 50px; display: flex; align-items: center; font-weight: 650; list-style: none; padding: 10px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; font: 400 24px/1 var(--display); color: var(--cranberry); }
.faq details[open] summary::after { content: "\2212"; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notes li { background: #fbf5e8; border-radius: 12px; padding: 12px 14px 4px; border: 1px solid var(--cream-2); }
.notes li p { margin: 0 0 4px; }
.notes .who { font-weight: 700; font-size: 14px; color: var(--ink-soft); margin-right: 8px; }
.notes .empty { color: var(--ink-soft); padding-bottom: 12px; }
@media (min-width: 640px) { .notes { grid-template-columns: 1fr 1fr; } }

.foot { position: relative; z-index: 1; background: var(--holly-deep); color: #d9cfb8; margin-top: 28px;
  padding: 26px max(20px, env(safe-area-inset-left)) max(30px, env(safe-area-inset-bottom)); }
.foot > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.foot a { color: var(--cream); }
.foot h2 { font-size: 20px; margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0 0 16px; }
.foot li { font-size: 15px; line-height: 1.5; padding: 8px 0; }
.foot li a { padding: 11px 0; }                                   /* a 44px tall target without uneven lines */
.legal { font-size: 14px; }
.legal { line-height: 1.6; }
.legal a { padding: 11px 0; }

/* ---------- The pull ---------- */
.pull-page { max-width: 640px; margin: 0 auto; }
.for-line { font-size: clamp(30px, 4.5vw + 14px, 48px); margin-bottom: 4px; }
.for-line span { font-style: italic; font-weight: 600; color: var(--candle); }
.pull { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; gap: 4px; }
.ck-zone { position: relative; width: 100%; height: clamp(300px, calc(100svh - 360px), 500px); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  display: grid; place-items: center; border-radius: 24px; }
.home .ck-zone { height: clamp(280px, calc(100svh - 470px), 440px); }
.pull.held .ck-zone { cursor: grabbing; }
.pull[data-mode="done"] .ck-zone, .pull[data-mode="watch"] .ck-zone { cursor: default; }
.ck-zone:focus-visible { outline-offset: -3px; }
/* Name tags: a cream luggage tag with a punched hole, the name in display italic. */
.tag { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 18px 7px 26px; background: var(--cream); color: var(--ink);
  border-radius: 6px 12px 12px 6px; box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .9); min-width: 120px; max-width: 86%; z-index: 2; }
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--holly); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4); }
.tag.far { transform: rotate(-2deg); }
.tag.near { transform: rotate(1.5deg); }
.tag-name { font: italic 700 19px/1.15 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.2; }
.tag-sub:empty { display: none; }
.live-dot { display: none; position: absolute; right: -5px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--candle); box-shadow: 0 0 0 3px var(--holly); }
.pull[data-mode="live"] .far .live-dot, .presence.on .live-dot { display: block; animation: livepulse 1.6s var(--ease-out) infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 3px var(--holly), 0 0 0 3px rgba(255, 207, 122, .6); } 100% { box-shadow: 0 0 0 3px var(--holly), 0 0 0 14px rgba(255, 207, 122, 0); } }
.pull-hint { min-height: 1.5em; margin: 6px 0 0; text-align: center; font-weight: 600; color: var(--cream); }
.pull[data-mode="done"] .tag { opacity: .9; }
.pull.near-won .near, .pull.far-won .far { box-shadow: 0 0 0 3px var(--candle), 0 8px 16px -12px rgba(0, 0, 0, .9); opacity: 1; }

.result { text-align: center; margin: 18px 0 6px; }
.result h2 { font-size: clamp(30px, 4vw + 16px, 46px); color: var(--cream); }
.result p { color: #e6dcc6; }
.spill { list-style: none; padding: 0; margin: 6px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; }
.spill li { flex: 0 1 calc(50% - 6px); max-width: 176px; }
.spill li { animation: fallout .6s var(--ease-spring) backwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes fallout { from { opacity: 0; transform: translateY(-40px) rotate(-8deg) scale(.8); } }
.thing { width: 100%; min-height: 132px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 12px 8px; border-radius: 18px;
  background: rgba(244, 234, 214, .1); border: 1.5px dashed rgba(255, 207, 122, .6); color: var(--cream); cursor: pointer; font: inherit; transition: transform .15s var(--ease-out), background .2s; }
.thing:hover { background: rgba(244, 234, 214, .16); }
.thing:active { transform: scale(.97); }
.thing:not(.seen) .thing-art { animation: bob 2.6s ease-in-out infinite; }
.spill li:nth-child(2n) .thing:not(.seen) .thing-art { animation-delay: -1.3s; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(1.5deg); } }
.thing.seen { border-style: solid; border-color: rgba(244, 234, 214, .25); }
.thing-art { width: 84px; height: 72px; display: grid; place-items: center; }
.thing-art > * { max-width: 100%; max-height: 100%; }
.thing-label { font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; }
.spill-hint { text-align: center; color: #e0d5bd; font-size: 15px; margin-top: 10px; }
.media-mini { width: 60px; height: 60px; border-radius: 10px; background: var(--cream); display: block; position: relative; }
.media-mini::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--cranberry); }
.media-mini[data-kind="photo"]::after { inset: 10px 10px 18px; border-radius: 3px; background: linear-gradient(160deg, var(--holly-light), var(--holly)); }

.after { margin-top: 22px; }
.after > p { text-align: center; }
.after .row { justify-content: center; }
.next { margin: 18px 0 10px; justify-content: center; }
.gb-offer { margin: 18px auto 0; max-width: 560px; background: rgba(22, 58, 43, .72); border: 1px solid rgba(244, 234, 214, .2); border-radius: 14px; padding: 0 16px; }
.gb-offer summary { min-height: 50px; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.gb-offer form { padding-bottom: 14px; }
.gb-offer label { margin-top: 10px; }

/* Notes inside a cracker or table. */
.thread { margin: 22px auto 0; max-width: 560px; background: rgba(22, 58, 43, .78); border: 1px solid rgba(244, 234, 214, .18); border-radius: 18px; padding: 16px; }
.notes-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.notes-list:empty { display: none; }
.note { background: var(--cream); color: var(--ink); border-radius: 4px 14px 14px 14px; padding: 9px 12px 2px; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.note.host { background: #f7dfe2; border-radius: 14px 4px 14px 14px; }
.note b { font-weight: 750; }
.note span { flex: 1 1 100%; }
.note .linkish { color: var(--ink-soft); margin-left: auto; }
.note-form label { color: var(--cream); }
.note-form .row { margin-top: 8px; }

/* ---------- The sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet-veil { position: absolute; inset: 0; background: rgba(10, 24, 18, .72); opacity: 0; transition: opacity .25s var(--ease-out); }
.sheet-panel { position: relative; width: 100%; max-width: 620px; max-height: 92svh; overflow: auto; background: var(--holly-deep); color: var(--cream);
  border-radius: 24px 24px 0 0; padding: 18px max(16px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-bottom));
  transform: translateY(40px); opacity: 0; transition: transform .38s var(--ease-out), opacity .25s; overscroll-behavior: contain;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); }
.sheet.in .sheet-veil { opacity: 1; }
.sheet.in .sheet-panel { transform: none; opacity: 1; }
.sheet.out .sheet-panel { transform: translateY(30px); opacity: 0; transition-duration: .18s; }
.sheet.out .sheet-veil { opacity: 0; transition-duration: .18s; }
.sheet-close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(244, 234, 214, .12); color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.sheet.full .sheet-panel { max-width: 720px; height: 100svh; max-height: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.sheet.tall .sheet-panel { max-height: 94svh; }
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 24px; max-height: 88svh; }
  .sheet.full .sheet-panel { height: auto; max-height: 94svh; border-radius: 24px; }
}
.sheet-title { font-size: 28px; margin: 4px 48px 12px 0; }
.sheet-kicker { font: 700 13px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--candle); margin: 6px 48px 6px 0; }
.sheet-line { text-align: center; color: #e9dfca; margin-top: 12px; }
.sheet-more { text-align: center; margin-top: 12px; }
.sheet .row { justify-content: center; margin-top: 14px; }
.open-crown .crown-stage { width: min(78%, 360px); margin: 26px auto 0; }
.open-joke { padding-top: 34px; }
.slip-btn { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: inherit; }
.open-motto { padding: 40px 6px 10px; }
.toy-stage { width: 100%; max-width: 440px; margin: 0 auto; }
.open-media .media-box { display: grid; place-items: center; min-height: 160px; }
.open-media img { max-width: 100%; max-height: 64svh; border-radius: 10px; }
.open-media audio { width: 100%; }

/* The camera. */
.cam { display: grid; gap: 10px; }
.cam-view { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 68svh; margin: 34px auto 0; border-radius: 18px; overflow: hidden; background: #0f2a20; }
.cam-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-over { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: move; }
.cam-msg { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(15, 42, 32, .85); font-size: 15px; }
.cam-tip { text-align: center; font-size: 14px; color: #d8cdb5; margin: 0; }
.shutter { min-width: 200px; }
.cam-done { display: grid; gap: 12px; padding-top: 36px; }
.cam-photo { width: 100%; max-height: 64svh; object-fit: contain; border-radius: 14px; }

/* The ceremony. */
.ceremony { text-align: center; padding-top: 20px; }
.ceremony .sheet-title { margin: 6px auto 10px; min-height: 1.1em; }
.cer-stage { width: 100%; height: clamp(240px, 44svh, 400px); margin: 0 auto; position: relative; }
.ceremony.quick .cer-stage { height: 200px; }
.cer-skip { margin-top: 8px; }
.bonus-reveal { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--cream); color: var(--ink); border-radius: 16px; padding: 12px 16px; margin: 14px auto 6px; max-width: 480px; }
.br-art { width: 70px; height: 64px; flex: none; display: grid; place-items: center; }
.bonus-reveal p { margin: 0; }

/* ---------- Making a cracker ---------- */
.make h1 { margin-top: 10px; }
.preview { position: sticky; top: 0; z-index: 4; margin: 0 -16px; padding: 10px 16px 6px; background: rgba(22, 58, 43, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(244, 234, 214, .12); }
.pv-ck { width: min(100%, 460px); margin: 0 auto; }
.pv-tag { text-align: center; margin: 2px 0 0; font: italic 600 16px/1.3 var(--display); color: var(--candle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview.small { position: static; margin: 0 0 8px; background: none; border: 0; backdrop-filter: none; }
.pick { margin: 26px 0; }
.pick h2 { font-size: 23px; }
.names { display: grid; gap: 12px; }
@media (min-width: 400px) { .names { grid-template-columns: 1fr 1fr; } }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.swatch, .toy-pick, .crown-pick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 6px 6px 8px; border-radius: 14px; border: 2px solid rgba(244, 234, 214, .2);
  background: rgba(22, 58, 43, .6); color: var(--cream); font: 600 13.5px/1.2 var(--text); cursor: pointer; text-align: center; min-height: 44px; transition: transform .12s var(--ease-out), border-color .15s; }
.swatch:active, .toy-pick:active, .crown-pick:active { transform: scale(.96); }
.swatch[aria-checked="true"], .toy-pick[aria-checked="true"], .crown-pick[aria-checked="true"] { border-color: var(--candle); background: rgba(255, 207, 122, .14); box-shadow: 0 0 0 2px rgba(255, 207, 122, .25); }
.sw-art { width: 100%; aspect-ratio: 1; border-radius: 9px; overflow: hidden; display: block; }
.swatch .badge, .toy-pick .badge { position: absolute; top: 2px; right: 2px; }
.crowns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cp-art { width: 100%; height: 40px; display: grid; place-items: center; }
.toys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-art { width: 74px; height: 62px; display: grid; place-items: center; }
@media (min-width: 520px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } .toys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 359px) { .crowns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.joke-now { min-height: 60px; }
.mini-slip { background: var(--newsprint); color: var(--ink); padding: 14px 16px; border-radius: 3px; transform: rotate(-.6deg); box-shadow: 0 10px 20px -16px rgba(0, 0, 0, .9);
  background-image: repeating-linear-gradient(0deg, rgba(36, 28, 23, .03) 0 1px, transparent 1px 3px); }
.mini-slip .q, .mini-slip .a { display: block; font-family: var(--type); }
.mini-slip .q { font-weight: 700; }
.mini-slip .a { color: var(--ink-soft); }
.joke-tools { margin-top: 12px; }
.joke-tools select { flex: 1 1 150px; min-height: 44px; }
.own { margin-top: 12px; display: grid; gap: 4px; }
.own[hidden] { display: none; }
.count { font-size: 14px; color: #d3c7ae; margin: 6px 0 8px; }
.starters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.starters .chip { flex: none; max-width: 260px; white-space: normal; font-size: 14px; }
.gold-toggle { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 18px; border: 2px solid rgba(233, 196, 106, .45);
  background: rgba(22, 58, 43, .7); color: var(--cream); font: inherit; cursor: pointer; }
.gold-toggle[aria-pressed="true"] { border-color: #f6dc8c; background: rgba(233, 196, 106, .16); box-shadow: 0 0 0 3px rgba(246, 220, 140, .25); }
.gt-art { width: 120px; flex: none; }
.gt-copy { display: grid; gap: 3px; font-size: 15px; color: #e6dcc6; }
.gt-copy b { font: 800 19px/1.2 var(--display); color: var(--cream); }
@media (max-width: 400px) { .gt-art { width: 84px; } }
.seal-box { margin: 30px 0 10px; padding: 18px; border-radius: 20px; background: rgba(22, 58, 43, .8); border: 1px solid rgba(244, 234, 214, .18); }
.seal-box p { margin-bottom: 12px; }
.filebtn { cursor: pointer; margin: 0; }
.tucked { display: grid; gap: 10px; justify-items: start; }
.tucked img { max-width: 200px; border-radius: 10px; }
.tucked audio { width: 100%; }
.rec { text-align: center; padding-top: 10px; }
.rec-time { font: 800 44px/1 var(--display); margin: 10px 0; }
.rec-go { min-width: 180px; }
#recout audio { width: 100%; margin-top: 14px; }

/* The table maker. */
.places { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; counter-reset: place; }
.place-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.pr-ck { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; display: block; }
.place-row .btn.small { padding: 9px 12px; }
.choose .pick { margin: 18px 0; }

/* ---------- The maker's page: waiting, sharing, the receipt ---------- */
.owner h1 { margin-top: 4px; }
.presence { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px 10px 30px; position: relative; border-radius: 14px; background: rgba(22, 58, 43, .75);
  border: 1px solid rgba(244, 234, 214, .18); font-weight: 600; }
.presence .live-dot { display: block; left: 12px; right: auto; top: 50%; margin-top: -6px; width: 12px; height: 12px; background: #8d9b8f; box-shadow: none; }
.presence.on { border-color: var(--candle); }
.presence.on .live-dot { background: var(--candle); }
#livezone:not(:empty) { margin: 14px 0; }
.share { display: grid; gap: 12px; }
.share-link { display: flex; gap: 8px; }
.linkbox { flex: 1; min-width: 0; font-size: 15px; background: #fbf5e8; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-box { text-align: center; }
.qr-box[hidden] { display: none; }
.qr { width: 200px; height: 200px; display: block; margin: 4px auto 6px; border-radius: 8px; }
.inside { margin: 16px 0; background: rgba(22, 58, 43, .7); border-radius: 14px; padding: 0 16px; border: 1px solid rgba(244, 234, 214, .15); }
.inside summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.inside ul { margin: 0 0 14px; padding-left: 1.1em; }
.small-actions { margin-top: 16px; }
.crown-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.crown-photos figure { margin: 0; }
.crown-photos .ph, .wall-grid .ph { aspect-ratio: 3 / 4; border-radius: 12px; background: rgba(244, 234, 214, .1); overflow: hidden; }
.crown-photos img, .wall-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crown-photos figcaption { font-size: 14px; margin-top: 4px; }

/* ---------- A table ---------- */
.table-page h1 { margin-top: 4px; }
.seats { margin: 14px 0; padding: 14px; border-radius: 16px; background: rgba(22, 58, 43, .75); border: 1px solid rgba(255, 207, 122, .4); }
.seats p { font-weight: 700; margin-bottom: 8px; }
.plates { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.plate-link { display: grid; gap: 6px; text-decoration: none; color: var(--cream); border-radius: 18px; padding: 4px; transition: transform .15s var(--ease-out); }
.plate-link:active { transform: scale(.97); }
.plate-note { text-align: center; font-size: 14px; font-weight: 600; line-height: 1.25; }
@media (min-width: 600px) { .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jokes-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jokes-col li { background: var(--newsprint); color: var(--ink); padding: 12px 14px; border-radius: 3px; display: grid; gap: 2px; }
.jokes-col li:nth-child(2n) { transform: rotate(.4deg); }
.jokes-col li:nth-child(2n + 1) { transform: rotate(-.35deg); }
.jokes-col .q { font: 700 16px/1.35 var(--type); }
.jokes-col .a { font: 400 16px/1.35 var(--type); color: var(--ink-soft); }
.jokes-col .by { font-size: 13px; color: var(--cranberry-deep); font-weight: 650; }
.jokes-col, .wall { margin: 26px 0; }
.wall-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.wall-grid li { display: grid; gap: 2px; font-size: 14px; }
.host-tools h2 { font-size: 22px; }

.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 14px; font-weight: 650; max-width: min(92vw, 460px); text-align: center;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .8); transition: transform .3s var(--ease-out), opacity .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
