/* reveal.css — Scratch & Reveal Card */
:root{ --cream:#faf5ec; --paper:#fffdf8; --ink:#221a12; --inksoft:#6f6152; --navy:#0e386d; --teal:#0b7d74; --tealdeep:#0a5f57; --line:#e8ddc9; --radius:16px; }
*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; }
body{ font-family:"Hanken Grotesk",system-ui,sans-serif; background:var(--cream); color:var(--ink); line-height:1.5; display:flex; flex-direction:column; min-height:100%; }
header.site{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1.5px solid var(--line); background:var(--paper); }
header.site .brand{ font-family:"Fraunces",Georgia,serif; font-weight:900; font-size:20px; letter-spacing:-.02em; color:var(--navy); text-decoration:none; }
header.site .brand img{ width:24px; height:24px; margin-right:8px; vertical-align:-6px; display:inline-block; }
header.site .brand span{ color:var(--teal); }
header.site .back{ font-size:13px; font-weight:700; color:var(--navy); text-decoration:none; }
main{ width:100%; max-width:620px; margin:0 auto; padding:24px 16px calc(40px + env(safe-area-inset-bottom)); }
h1.title{ font-family:"Fraunces",Georgia,serif; font-weight:900; font-size:29px; line-height:1.15; text-align:center; margin:4px 0 4px; }
.sub{ text-align:center; color:var(--inksoft); font-size:15px; margin-bottom:20px; }
.panel{ background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:18px; box-shadow:0 8px 24px -18px rgba(34,26,18,.5); }
.step-label{ font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--tealdeep); margin:0 0 10px; }
.step-label.gap{ margin-top:18px; }
label.field{ display:block; font-size:13px; font-weight:700; margin:12px 0 5px; }
label.field:first-of-type{ margin-top:0; }
input[type=text], input[type=datetime-local], select, textarea{ width:100%; font:inherit; font-size:16px; padding:11px 13px; border:1.5px solid var(--line); border-radius:11px; background:#fff; color:var(--ink); }
textarea{ resize:vertical; min-height:110px; line-height:1.45; display:block; }
input:focus-visible, textarea:focus-visible, select:focus-visible{ outline:2px solid var(--teal); outline-offset:1px; }
input[type=text]:focus, input[type=datetime-local]:focus, select:focus, textarea:focus{ outline:none; border-color:var(--teal); }
select{ appearance:none; -webkit-appearance:none; padding-right:34px; cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e386d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
.linkbtn{ font:inherit; font-weight:700; color:var(--navy); background:none; border:none; padding:0; text-decoration:underline; cursor:pointer; }
.lockrow{ margin-top:0; }
.lockrow input{ flex:1; min-width:0; }

/* the row of cards being edited, and ideas for the message */
.chips.tabs{ margin-bottom:12px; }
.chips.tabs button{ padding:7px 12px; font-size:13px; }
.chips.tabs .add{ border-style:dashed; color:var(--tealdeep); }
#cardsNote{ margin:-4px 0 12px; }
.ideas{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:8px 0 2px; }
.ideas-label{ font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--tealdeep); margin-right:2px; }
.idea{ font:inherit; font-size:12.5px; font-weight:600; padding:5px 10px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:var(--inksoft); cursor:pointer; text-align:left; }
.idea:hover, .idea:focus-visible{ border-color:var(--teal); color:var(--ink); outline:none; }
.occasions{ display:flex; flex-wrap:wrap; gap:8px; }
.occasions a{ font-size:13.5px; font-weight:700; padding:8px 13px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:var(--navy); text-decoration:none; }
.occasions a:hover{ border-color:var(--teal); }
details.more-field{ margin-top:14px; border-top:1.5px solid var(--line); padding-top:12px; }
details.more-field summary{ cursor:pointer; font-size:14px; font-weight:700; color:var(--navy); }
details.more-field[open] summary{ margin-bottom:10px; }
.note.count{ text-align:right; margin-top:4px; font-size:12px; }
.two{ display:flex; gap:10px; } .two>div{ flex:1; min-width:0; }
.note{ font-size:13px; color:var(--inksoft); margin-top:8px; }
.check{ display:flex; align-items:flex-start; gap:9px; font-size:14px; font-weight:600; margin-top:12px; cursor:pointer; }
.check input{ width:18px; height:18px; margin-top:2px; accent-color:var(--navy); flex:none; }
.check small{ display:block; font-weight:500; color:var(--inksoft); font-size:12.5px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips button{ font:inherit; font-size:13.5px; font-weight:700; padding:9px 13px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:var(--navy); cursor:pointer; }
.chips button:hover{ border-color:var(--teal); }
.chips button[aria-pressed="true"], .chips button[aria-checked="true"]{ background:var(--navy); border-color:var(--navy); color:#fff; }
.chips button:focus-visible, .sw:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.chips .dot{ display:inline-block; width:13px; height:13px; border-radius:50%; margin-right:7px; vertical-align:-1.5px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.14); }

.swatches{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.sw{ width:34px; height:34px; padding:0; border-radius:50%; cursor:pointer; border:2.5px solid #fff; box-shadow:0 0 0 1.5px var(--line); }
.sw[aria-pressed="true"]{ box-shadow:0 0 0 2.5px var(--ink); }
.swcustom{ position:relative; width:34px; height:34px; border-radius:50%; overflow:hidden; border:2.5px solid #fff; box-shadow:0 0 0 1.5px var(--line);
  background:conic-gradient(#e07aa0,#ffd76a,#3f9d78,#5b8fd6,#8a6abd,#e07aa0); }
.swcustom.on{ box-shadow:0 0 0 2.5px var(--ink); }
.swcustom input{ position:absolute; inset:-6px; width:150%; height:150%; padding:0; border:none; background:none; cursor:pointer; opacity:0; }
.swcustom:focus-within{ box-shadow:0 0 0 2.5px var(--teal); }

.btn{ display:block; width:100%; font:inherit; font-size:16px; font-weight:800; padding:13px 18px; border:none; border-radius:12px; background:var(--navy); color:var(--cream); cursor:pointer; text-decoration:none; text-align:center; }
.btn.teal{ background:var(--tealdeep); }
.btn.ghost{ background:#fff; color:var(--navy); border:1.5px solid var(--line); }
.btn.wa{ background:#25d366; color:#08331b; }
.btn.sm{ width:auto; padding:11px 15px; font-size:14px; }
.btn:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.btn:disabled{ opacity:.6; cursor:default; }
.iconbtn{ font:inherit; font-size:15px; line-height:1; padding:10px 12px; border:1.5px solid var(--line); border-radius:11px; background:#fff; cursor:pointer; }

/* ---------- where a card sits ---------- */
.stage{ width:100%; max-width:400px; margin:0 auto; }
/* opened from a link: the card is the page. As wide as the phone allows, as tall as
   leaves the title above and the buttons below on screen. */
#viewMode .stagewrap{ position:relative; width:100%; margin:0 auto; max-width:min(440px, calc((100vh - 268px) * .8)); max-width:min(440px, calc((100svh - 268px) * .8)); min-width:min(100%, 250px); }
#viewMode .stage{ max-width:none; }

/* several cards in one link: where they are in the run */
.steps{ display:flex; justify-content:center; gap:8px; margin:-6px 0 14px; }
.step{ font:inherit; font-size:13px; font-weight:800; width:30px; height:30px; border-radius:50%; border:1.5px solid var(--line); background:#fff; color:var(--inksoft); cursor:pointer; padding:0; }
.step.open{ border-color:var(--teal); color:var(--tealdeep); }
.step[aria-current="step"]{ background:var(--navy); border-color:var(--navy); color:#fff; }
.step:disabled{ opacity:.45; cursor:default; }
.step:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.btn.next{ max-width:260px; margin:12px auto 0; }

/* a card locked until its time: the foil is there to look at, not to scratch */
.stage.is-locked .rcard{ pointer-events:none; }
.stage.is-locked .rc-hand{ display:none; }
.lock{ position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; border-radius:22px; background:rgba(250,245,236,.52); }
.lock-box{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:18px 20px; border-radius:18px; background:var(--paper); border:1.5px solid var(--line); box-shadow:0 18px 40px -18px rgba(34,26,18,.6); text-align:center; max-width:86%; }
.lock-icon{ font-size:30px; line-height:1; }
.lock-time{ font-family:"Fraunces",Georgia,serif; font-weight:900; font-size:21px; font-variant-numeric:tabular-nums; }
.lock-date{ font-size:13.5px; color:var(--inksoft); margin-bottom:6px; }
.lock-box .btn{ width:auto; }

/* ---------- the card ---------- */
.rcard{ --u:3.4px; position:relative; width:100%; aspect-ratio:4/5; border-radius:calc(var(--u)*5.5); overflow:hidden; isolation:isolate;
  box-shadow:0 22px 50px -22px rgba(34,26,18,.62), 0 2px 6px rgba(34,26,18,.08); user-select:none; -webkit-user-select:none; }
.rc-stock{ position:absolute; inset:0; pointer-events:none; background:radial-gradient(130% 110% at 50% 0%, var(--sa), var(--sz)); color:var(--stk); transition:color .9s ease; }
/* the card takes its real colour once it is revealed (when the colour was kept secret) */
.rc-stock::before{ content:""; position:absolute; inset:0; background:radial-gradient(130% 110% at 50% 0%, var(--a), var(--z)); opacity:0; transition:opacity .9s ease; }
/* the printed design: its colours are the card's, and change with it on the reveal */
.rc-art{ position:absolute; inset:0; pointer-events:none; --dac:var(--dac0); --dal:var(--dal0); --dad:var(--dad0); }
.rcard.is-revealed .rc-art{ --dac:var(--dac1); --dal:var(--dal1); --dad:var(--dad1); }
.rc-art svg{ display:block; width:100%; height:100%; }
.rc-art svg *{ transition:fill .9s ease, stroke .9s ease; }
.rcard.is-revealed .rc-stock{ color:var(--tk); }
.rcard.is-revealed .rc-stock::before{ opacity:1; }

.rc-head{ position:absolute; left:8%; right:8%; top:5.4%; height:12%; display:flex; align-items:center; justify-content:center; text-align:center;
  font-family:var(--msgfont, "Fraunces",Georgia,serif); font-weight:var(--msgweight, 900); font-size:calc(var(--u)*var(--hs,6.4)); line-height:1.05; color:var(--stk); transition:color .9s ease; }
/* a design with art in its corners: keep the heading clear of them */
.rcard:not(.design-plain) .rc-head{ left:15%; right:15%; }
.rc-foot{ position:absolute; left:8%; right:8%; bottom:4.7%; height:7%; display:flex; align-items:center; justify-content:center; text-align:center;
  font-weight:700; font-size:calc(var(--u)*3.7); letter-spacing:.02em; color:var(--stk); opacity:.82; transition:color .9s ease; white-space:nowrap; overflow:hidden; }
.rcard.is-revealed .rc-head, .rcard.is-revealed .rc-foot{ color:var(--tk); }
.shape-f .rc-head{ display:none; }

.rc-win{ position:absolute; z-index:1; }   /* above the printed heading and name: full-card foil covers them */
.shape-f .rc-win{ inset:0; }
.shape-r .rc-win, .shape-3 .rc-win{ left:7.5%; right:7.5%; top:19.5%; height:62%; border-radius:calc(var(--u)*5); }
.shape-h .rc-win{ left:7%; width:86%; top:18%; aspect-ratio:1; }
.shape-c .rc-win{ left:9.5%; width:81%; top:19.5%; aspect-ratio:1; }

.rc-under{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; border-radius:inherit; }
.shape-r .rc-under, .shape-3 .rc-under, .shape-c .rc-under{ background:linear-gradient(180deg, #fff, var(--a)); box-shadow:inset 0 0 0 1px rgba(34,26,18,.09), inset 0 calc(var(--u)*.8) calc(var(--u)*2.6) rgba(34,26,18,.12); }
.shape-3 .rc-under{ background:linear-gradient(180deg, #fff, var(--sa)); }
.shape-3.is-revealed .rc-under{ background:linear-gradient(180deg, #fff, var(--a)); }
.shape-c .rc-under{ border-radius:50%; }
.shape-h .rc-under{ background:radial-gradient(90% 80% at 50% 35%, #fff, var(--a)); clip-path:url(#rc-clip-h); }
.rc-edge{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.rc-edge *{ fill:none; stroke:rgba(34,26,18,.17); stroke-width:1.5; vector-effect:non-scaling-stroke; }
.shape-c .rc-edge{ display:none; }

.rc-inner{ display:flex; flex-direction:column; align-items:center; width:86%; }
.shape-h .rc-inner{ width:58%; transform:translateY(-7%); }
.shape-c .rc-inner{ width:72%; }
.rc-emo{ font-size:calc(var(--u)*17); line-height:1.08; margin-bottom:calc(var(--u)*2.2); }
.shape-r .rc-emo{ font-size:calc(var(--u)*15); }
.shape-c .rc-emo{ font-size:calc(var(--u)*13.5); }
.shape-h .rc-emo{ font-size:calc(var(--u)*12); margin-bottom:calc(var(--u)*1.2); }
.rc-msg{ font-family:var(--msgfont, "Fraunces",Georgia,serif); font-weight:var(--msgweight, 900); font-size:calc(var(--u)*var(--ms,9)); line-height:1.12; color:var(--tk); overflow-wrap:anywhere; max-width:100%; text-wrap:balance; }
.rc-head{ text-wrap:balance; }
.rc-sub{ font-size:calc(var(--u)*3.9); font-weight:600; line-height:1.3; color:rgba(34,26,18,.72); margin-top:calc(var(--u)*2.4); max-width:100%; }
.shape-h .rc-sub{ font-size:calc(var(--u)*3.3); margin-top:calc(var(--u)*1.4); }
/* scripts with marks above and below the letters need more room between lines */
.tall-script .rc-msg{ line-height:1.34; }
.tall-script .rc-head{ line-height:1.3; }
.rc-under.waiting .rc-inner{ visibility:hidden; }
.rcard.is-revealed .rc-under.waiting .rc-inner{ visibility:visible; }
.rc-under.pop .rc-inner{ animation:rcpop .62s cubic-bezier(.2,.9,.3,1.35) both; }
.shape-h .rc-under.pop .rc-inner{ animation-name:rcpoph; }
@keyframes rcpop{ 0%{ transform:scale(.55); opacity:0; } 60%{ transform:scale(1.09); opacity:1; } 100%{ transform:scale(1); opacity:1; } }
@keyframes rcpoph{ 0%{ transform:translateY(-7%) scale(.55); opacity:0; } 60%{ transform:translateY(-7%) scale(1.09); opacity:1; } 100%{ transform:translateY(-7%) scale(1); opacity:1; } }

.rc-foil{ position:absolute; inset:0; border-radius:inherit; }
.shape-r .rc-foil{ overflow:hidden; box-shadow:0 calc(var(--u)*.4) calc(var(--u)*1.2) rgba(34,26,18,.28); }
.rcard.is-revealed .rc-foil{ box-shadow:none; }
canvas.scratch{ position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none;
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%23e3b341' stroke='%238c6412' stroke-width='2'/%3E%3Ccircle cx='15' cy='15' r='8.5' fill='none' stroke='%23fdf0b4' stroke-width='1.5'/%3E%3C/svg%3E") 15 15, grab; }
.shape-h canvas.scratch, .shape-c canvas.scratch, .rc-spot canvas.scratch{ filter:drop-shadow(0 calc(var(--u)*.5) calc(var(--u)*.9) rgba(34,26,18,.32)); }

.rc-hand{ position:absolute; left:50%; top:70%; font-size:calc(var(--u)*11); line-height:1; pointer-events:none; filter:drop-shadow(0 2px 3px rgba(0,0,0,.32));
  transform:translate(-50%,-50%); animation:rchand 2.8s ease-in-out infinite; transition:opacity .3s ease; }
.shape-h .rc-hand, .shape-c .rc-hand{ top:66%; font-size:calc(var(--u)*10); }
.rc-hand.gone{ opacity:0; }
@keyframes rchand{
  0%,100%{ transform:translate(-160%,-50%) rotate(-10deg); }
  22%{ transform:translate(60%,-90%) rotate(6deg); }
  44%{ transform:translate(-130%,-20%) rotate(-8deg); }
  66%{ transform:translate(60%,-40%) rotate(6deg); }
  84%{ transform:translate(-50%,-50%) rotate(0deg); }
}

.rc-spots{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:calc(var(--u)*5); transition:opacity .34s ease, transform .34s ease; }
.rc-spots.away{ opacity:0; transform:scale(1.07); }
.rc-spots-note{ font-weight:800; font-size:calc(var(--u)*3.5); letter-spacing:.14em; text-transform:uppercase; color:var(--stk); opacity:.8; }
.rc-spots-row{ display:flex; gap:calc(var(--u)*3); width:93%; }
.rc-spot{ position:relative; flex:1; aspect-ratio:1; border-radius:50%; background:#fff; box-shadow:inset 0 calc(var(--u)*.4) calc(var(--u)*1.4) rgba(34,26,18,.2); display:flex; align-items:center; justify-content:center; }
.rc-spot-emo{ font-size:calc(var(--u)*12.5); line-height:1; }

/* ---------- under the card ---------- */
.hint{ text-align:center; color:var(--inksoft); font-size:14px; font-weight:600; margin-top:14px; min-height:21px; }
.cardtools{ display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.cardtools .btn.sm{ padding:10px 13px; font-size:13.5px; }
/* Always in the DOM so the reveal is reachable by keyboard and screen readers; it
   steps forward once someone has scratched a while without getting there. */
.revealbtn{ font-size:13px; color:#4a5568; }
.revealbtn.nudge{ color:var(--navy); border-color:var(--navy); box-shadow:0 0 0 3px rgba(14,56,109,.12); }
#viewMode .after{ margin-top:18px; display:flex; flex-direction:column; gap:12px; }
.keep{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; }
.keep-label{ font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--tealdeep); margin-inline-end:2px; }
/* languages without capital letters or with joined letters must not be letter-spaced */
[dir="rtl"] .keep-label, [dir="rtl"] .rc-spots-note{ letter-spacing:0; }

/* the longer note: a button, then a sheet of writing paper */
.letterbtn{ background:#fff; color:var(--navy); border:1.5px solid var(--navy); }
.letterpaper{ margin-top:10px; padding:22px 20px 18px; border-radius:6px; background:#fffef9; border:1px solid #eadfc6; box-shadow:0 10px 24px -16px rgba(34,26,18,.5);
  background-image:repeating-linear-gradient(transparent 0 29px, rgba(14,56,109,.09) 29px 30px); background-position:0 12px;
  font-size:16.5px; line-height:30px; color:#2b2218; animation:unfold .45s ease both; transform-origin:top center; }
.letterpaper p{ white-space:pre-wrap; overflow-wrap:anywhere; }
.letterpaper .sig{ text-align:end; font-family:"Fraunces",Georgia,serif; font-weight:700; font-style:italic; margin-top:0; }
@keyframes unfold{ from{ opacity:0; transform:scaleY(.7); } to{ opacity:1; transform:none; } }

/* making the video: the drawing, then the finished file */
.recorder{ position:fixed; inset:0; z-index:75; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(10,14,28,.86); }
.rec-box{ display:flex; flex-direction:column; align-items:center; gap:12px; color:#fff; text-align:center; width:100%; max-width:380px; }
.rec-screen{ display:block; height:min(66vh, 620px); aspect-ratio:9/16; max-width:100%; border-radius:16px; background:#111; box-shadow:0 24px 70px -20px rgba(0,0,0,.8); }
.rec-status{ font-weight:700; font-size:15px; }
.rec-bar{ width:min(100%, 260px); height:6px; border-radius:99px; background:rgba(255,255,255,.2); overflow:hidden; }
.rec-fill{ width:0; height:100%; background:#fff; border-radius:99px; transition:width .2s linear; }
.rec-tools{ display:flex; gap:10px; }
.rec-tools .btn{ width:auto; padding:12px 22px; }
.rec-tools .btn.go{ background:#fff; color:#12223f; }
.rec-tools .btn.quiet{ background:rgba(255,255,255,.14); color:#fff; border:1.5px solid rgba(255,255,255,.3); }

.linkbox{ display:flex; gap:8px; margin-top:10px; }
.linkbox input{ flex:1; min-width:0; font-size:13px; color:var(--inksoft); }
.sharerow{ display:flex; gap:8px; flex-wrap:wrap; }
.sharerow .btn{ flex:1; min-width:120px; }
.sharepanel .note a{ color:var(--navy); font-weight:700; }

/* ---------- the editor: the form, with the card always in sight ---------- */
.editor{ display:flex; flex-direction:column; }
.side{ display:contents; }
.sharepanel{ order:20; }
.designs{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; }
.design{ font:inherit; font-size:12.5px; font-weight:700; color:var(--navy); background:none; border:none; padding:0; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:5px; }
.design-pic{ display:block; width:100%; aspect-ratio:4/5; border-radius:9px; overflow:hidden; box-shadow:0 0 0 1.5px var(--line); }
.design-pic svg{ display:block; width:100%; height:100%; }
.design[aria-checked="true"] .design-pic{ box-shadow:0 0 0 3px var(--navy); }
.design:focus-visible .design-pic{ box-shadow:0 0 0 3px var(--teal); }
.design:focus-visible{ outline:none; }

/* a strip that stays at the top of a phone's screen while the form scrolls under it */
.minibar-wrap{ position:sticky; top:8px; height:0; z-index:30; }
.minibar{ position:absolute; left:0; right:0; top:0; display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:14px; background:var(--paper);
  border:1.5px solid var(--line); box-shadow:0 12px 28px -14px rgba(34,26,18,.55); opacity:0; transform:translateY(-12px); pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.minibar.show{ opacity:1; transform:none; pointer-events:auto; }
.minibar canvas{ width:44px; height:55px; border-radius:6px; flex:none; box-shadow:0 0 0 1px rgba(34,26,18,.12); }
.mini-text{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.mini-text b{ font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mini-text span{ font-size:11.5px; color:var(--inksoft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.minibar .btn.sm{ padding:9px 12px; font-size:13.5px; flex:none; }

@media(min-width:920px){
  body.is-create main{ max-width:1060px; }
  .editor{ display:grid; grid-template-columns:minmax(0, 1fr) 392px; column-gap:22px; align-items:start; }
  .editor > .panel{ grid-column:1; }
  .side{ display:block; grid-column:2; grid-row:1 / span 8; position:sticky; top:14px; }
  .side .stage{ max-width:min(340px, calc((100vh - 404px) * .8)); min-width:210px; }
  .sharepanel{ margin-bottom:0; }
  .minibar-wrap{ display:none; }
  .designs{ grid-template-columns:repeat(8, 1fr); gap:9px; }
  .design{ font-size:11.5px; }
}
@media(prefers-reduced-motion:reduce){ .letterpaper{ animation:none; } .minibar{ transition:none; } }

/* ---------- party mode: the card full screen, for a room or a TV ---------- */
.party{ position:fixed; inset:0; z-index:70; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:min(2.4vh, 20px);
  padding:max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); color:#fff; text-align:center;
  background:radial-gradient(120% 95% at 50% 0%, var(--p1,#274b7a), var(--p2,#0b1730)); }
.party h2{ font-family:"Fraunces",Georgia,serif; font-weight:900; font-size:clamp(20px, 4.4vh, 60px); line-height:1.1; }
.party .stage{ max-width:none; width:min(92vw, calc((100vh - 27vh - 40px) * .8)); width:min(92vw, calc((100svh - 27vh - 40px) * .8)); }
.party .rcard{ box-shadow:0 30px 90px -20px rgba(0,0,0,.7); }
.party-tools{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.party-tools .btn{ width:auto; font-size:clamp(14px, 2.2vh, 22px); padding:.7em 1.2em; }
.party-tools .btn.go{ background:#fff; color:#12223f; }
.party-tools .btn.quiet{ background:rgba(255,255,255,.14); color:#fff; border:1.5px solid rgba(255,255,255,.3); }
.party-count{ position:absolute; inset:0; z-index:3; display:flex; align-items:center; justify-content:center; pointer-events:none;
  font-family:"Fraunces",Georgia,serif; font-weight:900; font-size:min(64vw, 58vh); line-height:1; color:#fff; text-shadow:0 10px 70px rgba(0,0,0,.55); background:rgba(6,10,26,.42); }
.party-count span{ animation:pcount .95s cubic-bezier(.2,.8,.3,1) both; }
@keyframes pcount{ 0%{ transform:scale(.3); opacity:0; } 25%{ transform:scale(1.05); opacity:1; } 80%{ transform:scale(1); opacity:1; } 100%{ transform:scale(1.5); opacity:0; } }

#fx{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:90; }

details.faq{ border-top:1.5px solid var(--line); padding:11px 0; }
details.faq summary{ cursor:pointer; font-weight:700; font-size:14.5px; }
details.faq p{ color:var(--inksoft); font-size:14px; margin-top:6px; }
.about{ color:var(--inksoft); font-size:14.5px; margin-bottom:6px; }
.more{ font-size:13.5px; margin-top:14px; }
.more a{ color:var(--navy); font-weight:700; }
.hidden{ display:none !important; }
footer.site{ text-align:center; color:var(--inksoft); font-size:13px; padding:24px 16px 30px; margin-top:auto; }
footer.site a{ color:var(--navy); }

@media(prefers-reduced-motion:reduce){
  .rc-under.pop .rc-inner, .rc-hand, .party-count span{ animation:none; }
  .rc-stock, .rc-stock::before, .rc-head, .rc-foot, .rc-art svg *{ transition:none; }
}
@media(max-width:560px){ h1.title{ font-size:24px; } }
