@font-face{font-family:Pretendard;src:url('/assets/fonts/Pretendard-Regular-fad853f7f47c.woff2') format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:Pretendard;src:url('/assets/fonts/Pretendard-Bold-4609c3356e53.woff2') format('woff2');font-display:swap;font-weight:700}
@font-face{font-family:Gaegu;src:url('/assets/fonts/Gaegu-Bold-f103b25f3f79.woff2') format('woff2');font-display:swap;font-weight:700}
:root{color-scheme:light;--ink:#372e29;--muted:#66594f;--line:#d2c3af;--paper:#fffaf0;--accent:#f9c29d;font:16px/1.5 Pretendard,system-ui,sans-serif;color:var(--ink);background:#f6eedf}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background-image:radial-gradient(#b59e7c24 .65px,transparent .7px);background-size:5px 5px;min-height:100vh}
button,input{font:inherit;color:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 16px;font-weight:700;line-height:1.35;border:1px solid #aa9886;border-radius:10px;background:var(--paper);cursor:pointer;text-decoration:none;touch-action:manipulation;text-align:center}
button:hover,.button:hover{border-color:var(--ink);background:#f5ead7}
button:disabled{opacity:.52;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,.modes label:has(input:focus-visible){outline:3px solid #286156;outline-offset:3px}
.primary{background:var(--accent);border-color:#795b41;box-shadow:0 2px 0 #b79778}
.primary:hover{background:#f5b88e}
.secondary{background:#eaf0db;border-color:#829176}
.quiet{background:transparent;font-size:14px;color:var(--muted)}
a{color:inherit;text-underline-offset:3px}
.topbar,.workspace{max-width:1504px;margin:auto;padding-inline:clamp(14px,2.25vw,32px)}
.topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.wordmark{font-weight:700;text-decoration:none;font-size:28px;letter-spacing:-1.7px;min-height:44px;display:inline-flex;align-items:center}
.wordmark span{color:#a75f3e}
.toolbar,.actions,.title-line,.section-head,.room-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.toolbar button{font-size:14px;background:transparent}
.workspace{padding-bottom:36px}
.introduction{border-top:1px solid var(--line);padding:clamp(16px,2.8vw,32px) 0 20px}
h1,h2,p,ul,fieldset{margin:0}
h1,h2{font:700 clamp(26px,3.5vw,42px)/1.14 Gaegu,Pretendard,sans-serif;letter-spacing:-.025em;overflow-wrap:anywhere}
h1{font-size:28px}
h2{font-size:26px}
h3{font-size:17px;margin:0}
.title-line{column-gap:12px}
.stamp,.phase,.count,.eyebrow{font-weight:700;font-size:13px}
.stamp{color:#873e28;border:1.5px solid #b76746;background:#ffe8d4;border-radius:5px;padding:1px 7px;letter-spacing:.09em;transform:rotate(-3deg)}
[data-tm-beta-notice]{color:var(--muted);font-size:14px;margin-top:4px;overflow-wrap:anywhere}
[data-tm-beta-notice] a{font-weight:700;display:inline-flex;align-items:center;min-height:44px}
.columns,.room-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:clamp(14px,2vw,24px);align-items:start}
.paper,dialog{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:clamp(17px,2.7vw,30px);min-width:0;box-shadow:0 3px 0 #6f5c4212}
.paper>h2,.section-head{margin-bottom:14px}
.paper>p:not(:last-child){margin-bottom:12px}
fieldset{border:0;padding:0;min-width:0}
legend,.field>span,.share-code>span{font-weight:700;font-size:15px}
legend{padding:0;margin-bottom:7px}
.modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.modes label{position:relative;display:flex;gap:9px;align-items:center;min-height:50px;min-width:0;overflow-wrap:anywhere;font-weight:700;border:1px solid var(--line);padding:7px 10px;border-radius:10px;cursor:pointer;line-height:1.3}
.modes label span:last-child{word-break:keep-all}
.modes label:has(:checked){background:#f8dfc8;border:2px solid #856547;padding:6px 9px}
.mode-symbol{min-width:1.4rem;text-align:center;font:700 21px/1 Georgia,serif;color:#76563f}
.modes input{opacity:0;position:absolute;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
.field{display:flex;flex-direction:column;gap:5px;margin:12px 0;min-width:0}
.field.inline{flex-direction:row;align-items:center;justify-content:space-between}
.field.inline input{width:6rem}
input:not([type=radio],[type=checkbox]){min-height:44px;width:100%;min-width:0;border:1px solid #ac9b85;border-radius:8px;padding:8px 12px;background:#fffdf7;font-family:Pretendard,system-ui,sans-serif;font-size:16px}
.field.inline input:not([type=radio]){width:6rem}
input[readonly]{color:var(--muted)}
form>.primary,form>.secondary{margin-top:3px}
.invite-card{position:relative;background:#f0f1dd;border-color:#c4c9ac}
.invite-card h2{padding-right:22px}
.card-tab{position:absolute;top:-1px;right:22px;width:20px;height:25px;clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%);background:#839174}
.code-input,#room-code{font-variant-numeric:tabular-nums;letter-spacing:.18em;text-transform:uppercase}
.message,.personal{border-radius:10px;padding:8px 12px;margin:0 0 12px;background:#e8efdf;overflow-wrap:anywhere}
.error{background:#ffe2d7;color:#843a28}
.room-heading,.section-head{justify-content:space-between}
.room-heading{margin:0 0 16px}
.eyebrow,.hint,.invite-card>p,.end-actions{color:var(--muted)}
.hint{font-size:14px}
.phase,.count{border:1px solid #cabba6;border-radius:15px;padding:3px 10px;background:#f9f0de}
.main-column,.room-grid aside{display:grid;gap:14px;min-width:0}
.share-code{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;border-block:1px dashed #a8ad8b;padding:9px 0}
#room-code{font-size:22px}
#room-qr{display:block;max-width:100%;width:164px;height:auto;margin:12px auto;background:white;image-rendering:pixelated}
#expires{margin-top:10px}
.inline-form{display:flex;align-items:end;gap:8px;margin:10px 0}
.inline-form .field{margin:0;flex:1}
.check{display:flex;align-items:center;gap:8px;min-height:44px;margin:6px 0}
input[type=checkbox]{width:19px;height:19px;accent-color:#496657}
#nickname-hint{margin:-5px 0 12px}
#member-summary,#host-hint,#voted-count{margin:8px 0}
#vote-options,.chips{display:flex;flex-wrap:wrap;gap:8px}
#vote-options button{overflow-wrap:anywhere}
#vote-options button[aria-pressed=true]{background:#dce9ce;border:2px solid #627459}
.chips{padding:0;list-style:none}
.chips li{font-size:14px;background:#f0e8d7;border-radius:7px;padding:3px 8px;overflow-wrap:anywhere}
#roster{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:4px 14px}
#roster li,.result-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid #e3d8c8;overflow-wrap:anywhere}
#roster li span,.result-row span,#member-summary,.personal{overflow-wrap:anywhere;min-width:0}
#roster button{font-size:13px;padding:3px 7px}
.personal{font-weight:700}
.result-paper{border-color:#a2a98a}
.result-row small{color:var(--muted);white-space:nowrap}
#result-list h3{margin-top:12px}
#result .actions{margin-top:16px}
.end-actions{justify-content:flex-end}
dialog{max-width:min(calc(100vw - 28px),430px);color:var(--ink)}
dialog::backdrop{background:#30271e66}
dialog p{margin:8px 0 20px}
dialog .actions{justify-content:flex-end}
@media(max-width:1023px){#stage{display:none}}
@media(max-width:720px){.topbar{min-height:56px}.columns,.room-grid{grid-template-columns:1fr}.introduction{padding:10px 0 12px}[data-tm-beta-notice]{line-height:1.35}[data-tm-beta-notice] a{min-height:44px}.wordmark{font-size:24px}#room[data-role=host][data-phase=open] .room-grid aside{grid-row:1}#room[data-role=host][data-phase=open] #invite{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px}#room[data-role=host][data-phase=open] #invite>*{grid-column:1}#room[data-role=host][data-phase=open] #room-qr{grid-column:2;grid-row:2/5;width:110px;align-self:center}#invite .field{margin:5px 0}#room[data-role=host][data-phase=open] #invite>h2{grid-column:1/-1}#room[data-role=host][data-phase=open] #invite .hint{grid-column:1/-1}#room[data-role=host][data-phase=open] .end-actions{order:2}#host-panel{order:1}}
@media(max-width:380px){.modes label{column-gap:4px;font-size:14px}.paper{padding:14px}.mode-symbol{min-width:18px}.room-grid{gap:10px}}

.reveal-paper{text-align:center;background:#fff8e9}
.reveal-paper h2{margin:3px 0 12px}
.slip-tray{position:relative;isolation:isolate;height:104px;overflow:hidden}
.slip-tray i{--spread:0px;--angle:0deg;--end:0px;--rise:0px;position:absolute;top:30px;left:calc(50% - 22px);width:44px;height:48px;border:1px solid #ab9475;border-radius:3px;background:linear-gradient(145deg,#fffdf3 62%,#ede1ca 63%,#fff6e3 76%);box-shadow:1px 3px 2px #66574226;animation:unfold-slip 2.2s ease-in-out both}
.slip-tray i::after{content:'';position:absolute;left:9px;top:15px;width:23px;height:8px;border-block:1px solid #a29578}
.slip-tray i:first-child{--spread:-85px;--angle:-19deg;background-color:#f3e4c9}
.slip-tray i:last-child{--spread:85px;--angle:16deg}
[data-mode=pick] .slip-tray i:nth-child(2){--rise:-15px;z-index:1;border-color:#8c6e40}
[data-mode=pick] .slip-tray i:first-child{--end:-12px}
[data-mode=pick] .slip-tray i:last-child{--end:12px}
[data-mode=order] .slip-tray i:first-child{--end:-54px;--rise:-8px}
[data-mode=order] .slip-tray i:last-child{--end:54px;--rise:8px}
[data-mode=teams] .slip-tray i:first-child{--end:-41px}
[data-mode=teams] .slip-tray i:nth-child(2){--end:-30px;--rise:5px}
[data-mode=teams] .slip-tray i:last-child{--end:39px}
[data-mode=vote] .slip-tray i:first-child{--end:-33px;--rise:-4px}
[data-mode=vote] .slip-tray i:last-child{--end:33px;--rise:-4px}
[data-mode=vote] .slip-tray i::after{width:12px;height:6px;border:solid #63785a;border-width:0 0 2px 2px;transform:rotate(-45deg)}
@keyframes unfold-slip{
  0%{opacity:.1;transform:translate(var(--spread),-14px) rotate(var(--angle)) scaleY(.58)}
  38%{opacity:1;transform:translate(0,4px) rotate(var(--angle)) scaleY(.65)}
  61%{transform:translate(0,0) rotate(0) scaleY(.7)}
  91%,100%{opacity:1;transform:translate(var(--end),var(--rise)) rotate(0) scaleY(1)}
}
@media(prefers-reduced-motion:reduce){.slip-tray i{animation:none}}

/* The invitation and room share the paper, ink and postal marks of Turnmori's postcard selectors. */
:root{
  --ink:#43332c;
  --muted:#64594d;
  --line:#c2b195;
  --paper:#fffaf0;
  --blue-ink:#355b69;
  --airmail:repeating-linear-gradient(125deg,#9c5748 0 10px,#fff7e8 10px 18px,#577e89 18px 28px,#fff7e8 28px 36px);
}
body{
  background-color:#f7efdf;
  background-image:radial-gradient(#92785229 .6px,transparent .85px),linear-gradient(90deg,#eddfc447,transparent 22%,transparent 78%,#eddfc447);
}
.topbar{margin-bottom:12px}
.toolbar button{border-radius:8px 10px 8px 11px}
.workspace{padding-bottom:48px}
.introduction{
  position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.24fr) minmax(0,.85fr);align-items:stretch;
  padding:0;border:1px solid #9c9784;border-radius:6px 12px 8px 5px;
  background:#e7eee8;box-shadow:0 3px 0 #95836a22;margin:0 0 22px;overflow:hidden
}
.intro-copy{position:relative;z-index:1;padding:clamp(18px,3.2vw,38px);align-self:center}
.introduction h1{color:#344f58;line-height:1.05}
.intro-line{margin:7px 0;color:#394c4d;font-weight:700;text-wrap:pretty}
[data-tm-beta-notice]{font-size:13px;line-height:1.48;max-width:52ch}
[data-tm-beta-notice] a{color:#355765}
.desk-scene{position:relative;min-height:160px;isolation:isolate;overflow:hidden;background:#f3ead3}
.desk-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.desk-scene::after{content:'';position:absolute;inset:0;box-shadow:inset 1px 0 0 #aa94784d}
body:has(#room:not([hidden])) .introduction,body:has(#unavailable:not([hidden])) .introduction{grid-template-columns:minmax(0,1fr) clamp(120px,23%,270px)}
body:has(#room:not([hidden])) .intro-copy,body:has(#unavailable:not([hidden])) .intro-copy{padding:13px 22px}
body:has(#room:not([hidden])) .intro-line,body:has(#unavailable:not([hidden])) .intro-line{display:none}
body:has(#room:not([hidden])) .desk-scene,body:has(#unavailable:not([hidden])) .desk-scene{min-height:88px}
.paper,dialog{
  border:1px solid #af9c81;border-radius:5px 10px 6px 9px;box-shadow:2px 3px 0 #91755327;
  background-color:var(--paper)
}
#create-form,#member-panel,#host-panel,#ballot,#suggestions,#roster-panel,#result{
  position:relative;border-top:4px solid #88a3a6;
}
#create-form>h2,#member-heading,#host-panel>h2,#ballot>h2,#suggestions>h2,#roster-panel h2,#result-title{
  color:#354e55;
}
.modes label{background:#faf3e3;border-radius:4px 8px 4px 6px}
.modes label:has(:checked){background:#deebea;border-color:var(--blue-ink)}
.mode-symbol{color:var(--blue-ink)}
.primary{border-color:#94694e;background:#f8c59b;border-radius:8px 11px 8px 9px}
.secondary{border-color:#899b98;background:#e4eded}
#code-form,#invite,#unavailable,dialog{
  position:relative;background:linear-gradient(#fff8e8,#fff8e8) padding-box,var(--airmail) border-box;border-top:6px solid transparent
}
#code-form h2,#invite h2{padding-right:67px}
.postage{
  position:absolute;pointer-events:none;top:15px;right:17px;width:49px;height:36px;transform:rotate(5deg);
  border:2px dotted #a98e72;outline:1px solid #bdac90;outline-offset:1px;
  background:#e8dfc9 url('/home-assets/together-desk.webp') center / cover
}
.postage::after{
  content:'';position:absolute;inset:10px 52% -5px -12px;border:1px solid #8c6358;border-radius:50%;box-shadow:inset 0 0 0 2px #fff7e660
}
#join-code{font-size:20px;color:#384f54;max-width:24rem;background:#fffdf7}
.room-heading{padding:3px 0 10px;border-bottom:1px dashed #a6957d}
.eyebrow{color:var(--blue-ink)}
.phase,.count{border:1px solid #829495;background:#e6eeea;color:#355461}
.share-code{border-color:#a19784}
#room-code{font-family:Pretendard,sans-serif;font-size:30px;letter-spacing:.11em;color:#354e55}
#room-qr{border:1px solid #c2b092;box-shadow:1px 2px 0 #8d795029}
#roster li,.result-row{border-top:0;border-bottom:1px solid #d9d9ca}
#roster li::before{content:'';flex:0 0 6px;width:6px;height:6px;background:#819b9a;border-radius:50%}
#roster li span{flex:1}
#roster button{background:transparent;border-color:transparent;color:#70584c;text-decoration:underline}
#empty,#no-suggestions{border:1px dashed #aba792;border-radius:3px;padding:13px 11px;background:#f9f4e7}
#vote-options button,.chips li{border-radius:3px 5px 3px 6px;background:#f7edd6}
#vote-options button[aria-pressed=true]{background:#dbe9e8;border-color:var(--blue-ink)}
.reveal-paper{border-top:6px solid transparent;background:linear-gradient(#f5f1dd,#fbf3df) padding-box,var(--airmail) border-box;color:var(--blue-ink)}
.slip-tray i{box-shadow:2px 3px 0 #75644e2b;border-radius:2px 4px 2px 5px}
#result{border-top-color:#9e7159}
#result-title{border-bottom:2px solid #83a1a0;padding-bottom:7px}
#result-list h3{color:#355b65;font-family:Gaegu,Pretendard,sans-serif;font-size:25px}
.result-row span{font-weight:700}
.personal{border-radius:3px 8px 3px 6px;background:#dceae7;color:#354e55}
#unavailable{max-width:700px;margin-inline:auto}
#unavailable p{margin-bottom:16px}
dialog{color:var(--ink);margin:auto}
dialog::backdrop{background:#312a23a1}
@media(max-width:720px){
  .topbar{min-height:56px}
  .introduction{grid-template-columns:minmax(0,1fr) 27%;margin-bottom:14px}
  .intro-copy{padding:13px}
  .desk-scene{min-height:95px}
  .introduction h1{font-size:28px}
  .title-line{gap:6px}
  .intro-line{font-size:14px}
  body:has(#room:not([hidden])) .introduction,body:has(#unavailable:not([hidden])) .introduction{display:block}
  body:has(#room:not([hidden])) .intro-copy,body:has(#unavailable:not([hidden])) .intro-copy{padding:10px 14px}
  body:has(#room:not([hidden])) .desk-scene,body:has(#unavailable:not([hidden])) .desk-scene{display:none}
  #room[data-role=host][data-phase=open] #invite .postage{top:8px;right:12px;width:39px;height:25px}
}
@media(max-width:600px){
  body:has(#landing:not([hidden])) .introduction{
    grid-template-columns:minmax(0,1fr) clamp(95px,29vw,145px);
    grid-template-areas:"heading heading" "tagline scene" "notice notice";
    gap:2px 8px;align-items:center;padding:10px 12px;
  }
  body:has(#landing:not([hidden])) .intro-copy{display:contents}
  .intro-copy .title-line{grid-area:heading}
  .intro-copy .intro-line{grid-area:tagline;margin:2px 0;font-size:13px;line-height:1.35}
  .intro-copy [data-tm-beta-notice]{grid-area:notice;word-break:keep-all}
  .introduction .desk-scene{grid-area:scene;min-height:0;aspect-ratio:1.98;align-self:center;border-radius:4px}
  .desk-scene img{object-fit:contain}
  .intro-copy h1{font-size:28px}
  .postage{width:40px;height:30px;top:12px;right:14px}
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#roster li.just-arrived{background:#f3e5b8;border-radius:5px;animation:arrival-tint 1.4s ease-out both;animation-delay:var(--cue-delay)}
#roster li.just-arrived::before{content:'';flex-basis:10px;height:10px;border-radius:0;background:#916c22;clip-path:polygon(50% 0,62% 35%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 36%);animation:star-glint 1.4s both;animation-delay:var(--cue-delay)}
#suggested-list li.just-arrived{animation:arriving-note 1.4s both;animation-delay:var(--cue-delay)}
#phase.just-arrived,#voted-count.just-arrived{animation:ink-press 1.4s both;animation-delay:var(--cue-delay)}
#ballot-progress{display:block;width:min(100%,320px);height:8px;margin-bottom:12px;accent-color:#63888b}
#ballot-progress::-webkit-progress-bar{background:#e9e1ce;border-radius:6px}
#ballot-progress::-webkit-progress-value{background:#648487;border-radius:6px}
@keyframes arrival-tint{0%{background:#f9edc9}45%{background:#f1dfaa}100%{background:transparent}}
@keyframes star-glint{0%{transform:scale(.55)}40%{transform:scale(1.22)}100%{transform:scale(.8)}}
@keyframes arriving-note{0%{transform:translateY(-7px) rotate(-5deg);background:#f1dbb4}32%{transform:translateY(1px) rotate(2deg)}80%,100%{transform:none}}
@keyframes ink-press{0%{outline:2px solid #689197;outline-offset:3px}70%,100%{outline:0 solid transparent;outline-offset:0}}

.slip-tray{height:116px}
.slip-tray i{top:35px;animation-duration:2.9s}
.slip-tray::before,.slip-tray::after{pointer-events:none;position:absolute;content:'';left:50%}
[data-mode=pick] .slip-tray i:nth-child(2){--rise:-24px;animation-name:lift-slip;background-color:#f8e4bc;box-shadow:2px 4px 0 #a88a522c}
@keyframes lift-slip{0%{opacity:.1;transform:translate(24px,-20px) rotate(10deg) scaleY(.55)}35%,54%{opacity:1;transform:translate(0,5px) rotate(-8deg) scaleY(.58)}80%{transform:translate(0,-29px) rotate(-4deg) scaleY(1.06)}100%{transform:translate(0,-23px) rotate(-2deg) scaleY(1)}}
[data-mode=order] .slip-tray::before{top:61px;width:168px;height:10px;margin-left:-84px;background:#9eb7b4;clip-path:polygon(0 0,100% 0,97% 50%,100% 100%,0 100%,3% 50%);animation:open-ribbon 2.9s both}
@keyframes open-ribbon{0%,38%{transform:scaleX(.1)}78%,100%{transform:scaleX(1)}}
[data-mode=order] .slip-tray i:first-child{animation-duration:2.15s}
[data-mode=order] .slip-tray i:nth-child(2){animation-duration:2.45s}
[data-mode=teams] .slip-tray::before,[data-mode=teams] .slip-tray::after{bottom:20px;width:65px;height:8px;margin-left:-73px;border:1px solid #88a0a3;border-width:0 1px 2px;border-radius:0 0 9px 9px;animation:gather-trays 2.9s both}
[data-mode=teams] .slip-tray::after{margin-left:8px;border-color:#a97860}
[data-mode=teams] .slip-tray i:last-child{box-shadow:3px 3px #e8d7be,4px 4px #927c66}
@keyframes gather-trays{0%,42%{opacity:0;transform:translateY(4px)}75%,100%{opacity:1;transform:none}}
[data-mode=vote] .slip-tray::after{top:61px;margin-left:21px;z-index:2;width:31px;height:31px;border-radius:50%;border:3px double #9e5b47;background:linear-gradient(152deg,transparent 43%,#9e5b47 45% 49%,transparent 52% 59%,#9e5b47 60% 64%,transparent 65%);animation:seal-ballot 2.95s both}
@keyframes seal-ballot{0%,72%{opacity:0;transform:translate(7px,-18px) rotate(-14deg) scale(1.3)}83%{opacity:.95;transform:translateY(1px) rotate(-12deg) scale(.93)}100%{opacity:.9;transform:rotate(-12deg)}}
@media(prefers-reduced-motion:reduce){
  #roster li.just-arrived,#roster li.just-arrived::before,#suggested-list li.just-arrived,#phase.just-arrived,#voted-count.just-arrived,.slip-tray::before,.slip-tray::after,.slip-tray i{animation:none}
  #suggested-list li.just-arrived,#phase.just-arrived,#voted-count.just-arrived{outline:1px solid #8d783b}
}
#room-updates.arrival-toast{
  position:fixed;z-index:8;left:50%;top:calc(env(safe-area-inset-top,0px) + 12px);
  transform:translateX(-50%);width:max-content;max-width:min(37rem,calc(100vw - 28px));height:auto;max-height:24vh;
  margin:0;padding:9px 15px;clip-path:none;white-space:normal;overflow-wrap:anywhere;
  border:1px solid #8f784c;border-radius:6px 11px 8px 5px;color:#45391e;background:#fff2c9;
  box-shadow:1px 3px 0 #6454322b;pointer-events:none;font-size:15px;font-weight:700;
}

/* Printed marks belong to the illustrative slips, never to a participant or a live tally. */
[data-mode=pick] .slip-tray i::before{
  content:'';position:absolute;inset:0 0 auto;height:20px;background:#d6b78c;
  clip-path:polygon(0 0,100% 0,50% 100%)
}
[data-mode=pick] .slip-tray i::after{
  top:14px;left:16px;width:10px;height:10px;border-radius:50%;border:1px solid #945440;
  background:#b96a50;box-shadow:inset 0 0 0 2px #d99370
}
[data-mode=order] .slip-tray{counter-reset:slip}
[data-mode=order] .slip-tray i{counter-increment:slip}
[data-mode=order] .slip-tray i::after{
  content:counter(slip);left:11px;top:10px;width:20px;height:24px;border:1px solid #69848d;border-radius:40%;
  color:#365767;text-align:center;font:700 22px/24px Gaegu,sans-serif;transform:rotate(-5deg)
}
[data-mode=teams] .slip-tray i::after{
  left:6px;top:11px;width:29px;height:17px;border-top:5px solid #618993;border-bottom:1px solid #849798;
  background:linear-gradient(transparent 60%,#849798 62% 68%,transparent 70%)
}
[data-mode=teams] .slip-tray i:last-child::after{border-top-color:#ae745a}
[data-mode=vote] .slip-tray i::before{
  content:'';position:absolute;top:11px;left:7px;width:19px;height:16px;border:1px solid #a1947e;
  border-radius:2px;transform:rotate(-2deg)
}
#host-summary{font-weight:700;color:var(--blue-ink);margin:0 0 8px}
#host-limit{border-left:3px solid #9d734a;background:#fff0da;padding:7px 10px;margin:7px 0 12px}
#member-wait,#ballot-wait:not(:empty),#result-actions+.hint{margin:8px 0}
@media(max-width:720px){
  #room[data-role=host].host-ready .room-grid{display:flex;flex-direction:column;align-items:stretch}
  #room[data-role=host].host-ready :is(.main-column,aside){display:contents}
  #room[data-role=host].host-ready #host-panel{order:-3;padding:13px 15px}
  #room[data-role=host].host-ready #host-panel h2{margin:0 0 5px}
  #room[data-role=host].host-ready #invite{order:-2}
  #room[data-role=host].host-ready #roster-panel{order:1}
  #room[data-role=host].host-ready #room-exits{order:2}
}
@media(max-width:720px){
  #room[data-role=host].host-ready #invite{
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:13px 15px
  }
  #room[data-role=host].host-ready #invite h2{grid-column:1;margin:0;font-size:25px;padding:0}
  #room[data-role=host].host-ready #invite .postage,#room[data-role=host].host-ready #invite p[data-key=inviteHint]{display:none}
  #room[data-role=host].host-ready #invite .share-code{grid-column:1;grid-row:2;border:0;padding:0;justify-content:start}
  #room[data-role=host].host-ready #invite .field{grid-row:4;grid-column:1/-1;margin:0}
  #room[data-role=host].host-ready #invite .field>span{font-size:14px}
  #room[data-role=host].host-ready #room-qr{grid-column:2;grid-row:1/4;width:85px;margin:0}
  #room[data-role=host].host-ready #copy-link{justify-self:start;grid-column:1;grid-row:3}
  #room[data-role=host].host-ready #expires{grid-column:1/-1;margin:0}
}
#invite.folded :is(#room-qr,#share-link-field){display:none!important}
#toggle-invite{justify-self:start}
@media(max-width:720px){
  #room[data-role=host].host-ready #toggle-invite{grid-row:5;grid-column:1/-1}
  #room[data-role=host].host-ready #expires{grid-row:6}
}

/* Private entries and envelopes use the room's paper stock and postal inks. */
.preference{margin:14px 0}
.preference .modes{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}
.preference label{min-height:44px;font-size:15px}
#host-join[aria-expanded=true]{margin-bottom:10px}
#veto-option{display:block;width:100%;max-width:100%;min-height:44px;padding:8px 10px;background:#fffdf7;border:1px solid #ac9b85;border-radius:6px;font:inherit;color:var(--ink)}
#veto-option:focus-visible{outline:3px solid #286156;outline-offset:3px}
.field-title{font-weight:700;margin-bottom:6px}
#stamp-options button{border:1px dashed #768984;background:#f4f2e8;color:#365963;border-radius:5px 9px 5px 8px;font-size:14px;padding:6px 10px}
#stamp-options button[aria-pressed=true]{background:#d8e7de;outline:1px solid #4c7068}
#roster li{flex-wrap:wrap;justify-content:flex-start}
#roster li>span{min-width:min(100%,4ch)}
#roster button{margin-inline-start:auto}
.postal-stamp,.envelope-status,.picked-note{font-size:13px;line-height:1.35}
.postal-stamp{border:1px dashed #79938c;background:#e4eee7;color:#345a55;border-radius:3px 5px;padding:2px 5px}
.envelope-status{color:#65533d}
.result-row .picked-note{white-space:normal;max-width:65%;overflow-wrap:anywhere;border:1px solid #c9b79b;background:#fff3d3;color:#67523a;border-radius:8px 8px 8px 2px;padding:3px 8px}
.envelope-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 18px;border-top:5px solid transparent;background:linear-gradient(#fff7e7,#fff9ed) padding-box,var(--airmail) border-box}
.envelope-card h2{color:var(--blue-ink);margin:0 0 7px}
.envelope-card .hint{grid-column:1/-1;margin:0}
#personal-result{overflow-wrap:anywhere;font-weight:700}
.paper-envelope{position:relative;width:clamp(53px,9vw,84px);aspect-ratio:1.55;perspective:250px;background:#e7cca2;border:1px solid #aa906c;border-radius:2px 3px 2px 5px;box-shadow:2px 3px 0 #79634828;transform:rotate(-4deg)}
.paper-envelope::before,.paper-envelope i{content:'';position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 72%);background:#b79a72;transform-origin:50% 0%;transition:transform .45s ease}
.paper-envelope i{inset:0 1px 2px;background:#f5e4c0}
.paper-envelope::after{content:'';position:absolute;top:47%;left:43%;width:15%;aspect-ratio:1;border-radius:50%;background:#ab604d;box-shadow:inset 0 0 0 2px #c38366;transition:opacity .18s}
.envelope-card.opened .paper-envelope::before,.envelope-card.opened .paper-envelope i{transform:rotateX(145deg)}
.envelope-card.opened .paper-envelope::after{opacity:0}
@media(prefers-reduced-motion:reduce){.paper-envelope::before,.paper-envelope i,.paper-envelope::after{transition:none}}
@media(max-width:720px){
  #room[data-role=host].host-ready :is(#ballot,#member-panel){order:-2}
  #room[data-role=host].host-ready #invite{order:0}
}

#shared-envelope .actions{margin-top:13px}
.mail-face{position:relative;isolation:isolate;min-height:104px;padding:16px;border:1px solid #ae9274;border-radius:4px 7px 4px 3px;background:linear-gradient(152deg,transparent 49.5%,#d5c09e 50%,transparent 50.5%) left top / 50% 100% no-repeat,linear-gradient(208deg,transparent 49.5%,#d5c09e 50%,transparent 50.5%) right top / 50% 100% no-repeat,#f6e7c9;box-shadow:2px 3px 0 #75634222}
#postmark-list{display:flex;align-content:center;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;min-height:72px}
#postmark-list li{max-width:100%;overflow-wrap:anywhere;border:2px dotted #716052;outline:2px solid var(--stamp-ink);border-radius:2px;padding:3px 8px;background:var(--stamp-ink);color:#302b28;font-weight:700;transform:rotate(-3deg);animation:attach-paper .33s ease-out}
#postmark-list li:nth-child(even){transform:rotate(3deg)}
@keyframes attach-paper{from{opacity:.1;scale:1.32}to{opacity:1;scale:1}}
#postmark-count,#postmark-time{font-size:14px;font-variant-numeric:tabular-nums}
#host-config{flex-wrap:wrap}#host-config .field{min-width:min(120px,100%)}
.wheel-layout{display:grid;grid-template-columns:minmax(85px,160px) minmax(0,1fr);align-items:center;gap:14px}
#odds-wheel{display:block;width:100%;height:auto;border-radius:50%;box-shadow:0 2px 3px #8e755538;background:#f0e1bf}
#odds-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:3px 12px;padding:0;margin:0;list-style:none}
#odds-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;font-size:14px;overflow-wrap:anywhere}
#odds-list strong{font-variant-numeric:tabular-nums}
.slice-key{border-radius:50%;min-width:22px;text-align:center;color:#322922}
.chosen-slice{font-weight:700;text-decoration:underline}
#room[data-phase=stamping] #odds-wheel{animation:mail-wheel 3.5s linear infinite}
@keyframes mail-wheel{to{transform:rotate(360deg)}}
@media(max-width:520px){.wheel-layout{grid-template-columns:minmax(0,1fr)}#odds-wheel{width:112px;justify-self:center}#odds-list{grid-template-columns:repeat(auto-fit,minmax(min(125px,100%),1fr))}}
@media(prefers-reduced-motion:reduce){#postmark-list li,#room[data-phase=stamping] #odds-wheel{animation:none}}

/* Keep confirmed stamps on the envelope through its brief departure. */
#postmark-list [data-pending]{outline-style:dotted;opacity:.7}
#shared-envelope[data-dispatching] .mail-face{animation:dispatch-mail .85s ease-in-out both}
#shared-envelope[data-dispatching] .mail-face::before{content:'';position:absolute;inset:0 0 auto;height:42%;background:#e7cda3;clip-path:polygon(0 0,100% 0,50% 95%);transform-origin:top;animation:fold-mail .85s ease both;pointer-events:none}
@keyframes dispatch-mail{0%,42%{transform:translateY(0)}68%{transform:translateY(-6px) rotate(-1deg)}100%{opacity:0;transform:translate(9px,-12px) rotate(1deg)}}
@keyframes fold-mail{0%,25%{transform:scaleY(0)}65%,100%{transform:scaleY(1)}}
#opening-envelopes{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(86px,100%),1fr));gap:6px 12px;max-height:13rem;overflow:auto;list-style:none;margin:2px 0 0;padding:5px 2px}
#opening-envelopes li{display:flex;align-items:center;gap:7px;min-width:0;font-size:14px;line-height:1.3;color:#584839}
#opening-envelopes li span{overflow-wrap:anywhere}
#opening-envelopes li i{position:relative;flex:0 0 22px;height:15px;background:#f4e2c1;border:1px solid #a68c68;border-radius:2px;box-shadow:1px 1px #cfbfa2}
#opening-envelopes li i::before{content:'';position:absolute;inset:0 0 25%;background:#c8ac80;clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top;transition:transform .28s ease}
#opening-envelopes [data-opened=true] i{background:#d9e8de;border-color:#78918b}
#opening-envelopes [data-opened=true] i::before{background:#adc9bf;transform:scaleY(-.65)}
@media(prefers-reduced-motion:reduce){#shared-envelope[data-dispatching] .mail-face,#shared-envelope[data-dispatching] .mail-face::before{animation:none}#opening-envelopes li i::before{transition:none}}

h1,h2,h3,p,legend,button,.button,.field>span,.modes label,.phase,.count,.stamp,.eyebrow{
  word-break:keep-all;
  overflow-wrap:break-word;
}
.office-options{margin-block:0 14px}
.office-buttons{display:grid;gap:7px}
.preset-buttons{grid-template-columns:minmax(0,1.26fr) repeat(2,minmax(0,1fr))}
.drink-buttons{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}
.office-buttons button{
  min-width:0;color:var(--blue-ink);background:#faf3e3;border-color:#ad9c80;
  border-radius:5px 9px 5px 7px;padding:7px 9px;font-size:14px
}
.office-buttons button[data-preset=coffee]{flex-direction:column;gap:2px}
.office-buttons button small{font-size:12px;font-weight:400;color:var(--muted)}
.office-buttons button:hover{background:#f2e9d4}
.office-buttons button[aria-pressed=true]{background:#deebea;border-color:var(--blue-ink);box-shadow:inset 0 0 0 1px var(--blue-ink)}
#drink-options{margin-block:0 7px}
#drink-hint{margin:-5px 0 12px}
#drink-summary{border-top:4px solid #88a3a6}
#drink-summary-title{color:#354e55;margin-bottom:6px}
.order-tally{list-style:none;padding:0;margin:0}
.order-tally li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:1px solid #d9d9ca;padding:5px 0}
.order-tally li span{min-width:0;overflow-wrap:break-word}
.order-tally li strong{flex:none;color:#355b65;font-variant-numeric:tabular-nums}
#drink-total{margin:9px 0;font-weight:700}
@media(max-width:530px){
  .preset-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preset-buttons button[data-preset=coffee]{grid-column:1/-1}
}

#join-code-error {
  color: #843a28;
  font-weight: 700;
}
#join-code[aria-invalid="true"] { border-color: #9e4c3a; }
@media (max-width: 380px) {
  body:has(#landing:not([hidden])) .intro-copy h1 { font-size: 25px; }
}
@media (max-width: 720px) {
  #code-form .join-code-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
  }
  #code-form > h2 { margin-bottom: 5px; }
  #code-form > [data-key="enterHint"] { margin-bottom: 9px; }
  #code-form .field { gap: 2px; margin: 0; }
  #code-form #enter-room { padding-inline: 11px; }
  #code-form #join-code-format { margin: 6px 0 0; }
  #code-form #join-code-error { margin-top: 4px; }
}

@media (min-width: 1024px) {
  body.stage-view .topbar { min-height: 60px; margin-bottom: 6px; }
  body.stage-view .introduction { display: block; margin-bottom: 12px; }
  body.stage-view:has(#room:not([hidden])) .intro-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    padding: 5px 16px;
  }
  body.stage-view .introduction h1 { font-size: 23px; }
  body.stage-view .introduction [data-tm-beta-notice] { max-width: none; margin: 0; }
  body.stage-view .introduction [data-tm-beta-notice] a { min-height: 38px; }
  body.stage-view .introduction .desk-scene { display: none; }
  body.stage-view .room-heading { margin-bottom: 12px; }
  body.stage-view #room-name { font-size: 34px; }
  body.stage-view .phase, body.stage-view .count { font-size: 16px; }
  body.stage-view .room-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 16px;
  }
  body.stage-view .room-grid .paper { padding: 15px 18px; }
  body.stage-view .room-grid .paper > h2,
  body.stage-view .room-grid .section-head { margin-bottom: 8px; }
  body.stage-view #host-panel .actions { margin-bottom: 7px; }
  body.stage-view #host-panel .inline-form { margin-block: 7px 0; }
  body.stage-view #host-panel .check { margin: 0; }
  body.stage-view #host-summary { font-size: 18px; margin-bottom: 5px; }
  body.stage-view #roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 14px;
    font-size: 20px;
    line-height: 1.3;
  }
  body.stage-view #roster li { padding: 3px 0; }
  body.stage-view #roster li > span { overflow-wrap: anywhere; }
  body.stage-view #result-title { font-size: 32px; }
  body.stage-view #result-list { font-size: 22px; }
  body.stage-view #room[data-mode="pick"] #result-list .result-row > span {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
  }
  body.stage-view #result .actions { margin-top: 9px; }
  body.stage-view #drink-tally {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    max-block-size: 268px;
    overflow: auto;
  }
  body.stage-view #drink-tally:focus-visible { outline: 3px solid #286156; outline-offset: 3px; }
  body.stage-view #drink-tally li { gap: 5px; }
  body.stage-view #drink-tally li > span { overflow-wrap: anywhere; }
  body.stage-view #drink-total { margin-block: 8px; font-size: 26px; color: #355b65; }
  body.stage-view #invite.folded :is(.postage, [data-key="inviteHint"]) { display: none; }
  body.stage-view #invite.folded .share-code { padding-block: 4px; margin-bottom: 6px; }
  body.stage-view #invite.folded #expires { margin-top: 5px; }
  body.stage-view #room-qr { width: 144px; margin-block: 7px; }
}
