/* tweetpad launch parties: a room (/p/<room>) and the host form (/party). One look in every mode: the X card (?embed, 480×480),
   the signing window (?popup), the full page, and the share image (?card). A deep ink stage, one glass card, tweetpad's blue for
   seats, mint for the curve; Inter Tight, sharp and close-set, for names and numbers, Inter for words (Fredoka only in tweetpad's wordmark). Few borders: groups are set apart by space and a hairline
   (--rule) between the big ones; a soft fill marks only what you can press or what's yours. */
:root { --rule: rgba(255, 255, 255, .07); --fill: rgba(255, 255, 255, .055); --ink: #f3f5f8; --dim: #8d96a3; --faint: #5d6672; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16); --glass: rgba(255, 255, 255, .045);
        --blue: #1d9bf0; --mint: #3fe0a0; --teal: #2bc4d9; --warn: #f2c230; --bad: #ff8a8a;
        --round: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif; --brand: "Fredoka", "Varela Round", sans-serif; --ui: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; color: var(--ink); font: 15px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
body { background: #0a0d12; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
               background: radial-gradient(60% 45% at 18% 0%, rgba(29, 155, 240, .22), transparent 70%), radial-gradient(50% 40% at 100% 10%, rgba(122, 92, 255, .16), transparent 70%), radial-gradient(70% 50% at 50% 110%, rgba(63, 224, 160, .08), transparent 70%); }

/* the card */
.room { width: min(540px, calc(100% - 24px)); margin: 24px auto; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 22px; border-radius: 30px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
        box-shadow: 0 40px 120px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(20px); position: relative; isolation: isolate; overflow: hidden; }
/* the coin's picture, blurred into the top of the card: every party is lit in its own coin's colours */
.aura { position: absolute; inset: -40px -40px auto; height: 300px; z-index: -1; pointer-events: none; background-size: cover; background-position: center;
        filter: blur(56px) saturate(1.5); opacity: .45; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.bar { display: flex; align-items: center; gap: 8px; }
.home { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 99px; color: var(--ink); text-decoration: none;
        font: 600 15px/1 var(--brand); background: var(--fill); }
.home img { width: 24px; height: 24px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; font: 600 12px/1 var(--ui); background: var(--fill); color: var(--dim); white-space: nowrap; }
.chip.net { color: var(--warn); background: rgba(242, 194, 48, .1); }
a.chip.nav { color: var(--dim); text-decoration: none; } a.chip.nav:hover { color: var(--ink); }
html[data-mode="embed"] a.chip.nav { display: none; }
.chip.state { margin-left: auto; color: var(--ink); }
.chip.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip.state.open i { background: var(--blue); box-shadow: 0 0 0 4px rgba(29, 155, 240, .18); animation: live 2s ease-in-out infinite; }
.chip.state.launched i { background: var(--mint); } .chip.state.cancelled i { background: var(--bad); }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(29, 155, 240, 0); } }

.coin { display: flex; align-items: center; gap: 14px; }
.face { width: 84px; height: 84px; flex: none; border-radius: 24px; display: grid; place-items: center; overflow: hidden; font: 600 28px/1 var(--round); color: #fff;
        background: linear-gradient(135deg, #1d9bf0, #7a5cff); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.names { min-width: 0; }
.names h1 { margin: 0; font: 700 30px/1.05 var(--round); letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names p { margin: 4px 0 0; color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names p b { color: var(--ink); font-weight: 600; } .names p a { color: var(--dim); text-decoration: none; } .names p a:hover { color: var(--ink); }

/* three numbers that matter */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0 2px; border-top: 1px solid var(--rule); }
.tile { display: flex; flex-direction: column; padding: 0 14px; min-width: 0; }
.tile:first-child { padding-left: 0; } .tile:last-child { padding-right: 0; } .tile + .tile { border-left: 1px solid var(--rule); }
.tile small { display: block; font: 500 12px/1.2 var(--ui); color: var(--dim); }
/* the number: big and even (tabular), its unit small beside it, wrapping under it when the ticker is long */
.tile b { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; margin-top: 8px; font: 700 27px/1 var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile b span { font: 600 12.5px/1.3 var(--ui); letter-spacing: 0; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* what the number means: dollars, who can join, a share of the supply */
.tile em { display: block; margin-top: auto; padding-top: 8px; font: 500 11.5px/1.3 var(--ui); font-style: normal; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .fill { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tile .fill u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #7ab8ff); box-shadow: 0 0 10px rgba(29, 155, 240, .5); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.tile .fill + em { padding-top: 7px; }

/* seats: a holder's picture, or a colour of their own from their wallet (--h); yours wears gold and says so */
.seats-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; font: 600 13px/1 var(--ui); color: var(--dim); }
.seats-head b { font: 600 13px/1 var(--ui); color: var(--ink); }
.grid { display: flex; flex-wrap: wrap; gap: 8px; }
.seat { --h: 205; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none;
        font: 600 13px/1 var(--round); color: #fff; text-transform: uppercase; transition: transform .2s; }
.seat.taken { border: 2px solid hsl(var(--h) 80% 62%); background: radial-gradient(circle at 32% 28%, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 60% 22%));
              box-shadow: 0 6px 18px hsl(var(--h) 80% 40% / .35); }
.seat.mine { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(242, 194, 48, .18), 0 6px 18px rgba(242, 194, 48, .3); }
.seat.mine::after { content: "You"; position: absolute; bottom: -7px; left: 50%; translate: -50% 0; padding: 2px 6px; border-radius: 99px; background: var(--warn); color: #1a1405;
                    font: 700 9.5px/1 var(--ui); text-transform: none; }
.seat img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.seat.more { width: auto; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); font: 600 12px/1 var(--ui); }

/* pump.fun: where the coin launches. The badge under the name, and its bonding curve, drawn the way pump.fun draws it */
.pf-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px 5px 8px; border-radius: 99px; font: 500 12px/1 var(--ui); color: #c9f5e2;
            background: rgba(63, 224, 160, .1); }
.pf-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.pf-badge b { color: var(--mint); font-weight: 600; }
.pf-badge.done { color: var(--dim); background: var(--fill); } .pf-badge.done i { background: var(--faint); } .pf-badge.done b { color: var(--dim); }
.curve { padding-top: 20px; border-top: 1px solid var(--rule); }
.curve-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font: 600 14px/1 var(--ui); color: var(--ink); }
.curve-head .pf { color: var(--mint); font-weight: 600; }
.curve-head strong { font: 700 28px/1 var(--round); letter-spacing: -.02em; color: var(--mint); text-shadow: 0 0 24px rgba(63, 224, 160, .35); }
.track { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--teal), var(--mint));
           box-shadow: 0 0 18px rgba(63, 224, 160, .4); transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.track u { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; text-decoration: none; transition: width .7s cubic-bezier(.2, .7, .2, 1);
           background: repeating-linear-gradient(135deg, rgba(63, 224, 160, .35) 0 6px, rgba(63, 224, 160, .12) 6px 12px); }
.curve-note { margin: 14px 0 0; font-size: 13px; color: var(--dim); } .curve-note b { color: var(--ink); font-weight: 600; }
/* three facts under the curve, instead of a sentence */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts div { min-width: 0; }
.facts small { display: block; font: 500 12px/1.2 var(--ui); color: var(--dim); }
.facts b { display: block; margin-top: 4px; font: 600 16px/1.1 var(--round); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.devnote { display: block; margin-top: 10px; color: #b9a35c; font-size: 12px; }
html[data-mode="embed"] .devnote { font-size: 10.5px; margin-top: 4px; padding-top: 4px; }

/* actions */
.go { width: 100%; padding: 16px; border: 0; border-radius: 16px; font: 700 17px/1 var(--round); letter-spacing: -.01em; color: #0a0d12; cursor: pointer;
      background: linear-gradient(180deg, #ffffff, #e7eef6); box-shadow: 0 4px 14px rgba(0, 0, 0, .18), inset 0 -1px 0 rgba(0, 0, 0, .08); transition: transform .12s, box-shadow .2s; }
.go:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(0, 0, 0, .08); } .go:active:not(:disabled) { transform: scale(.99); }
.go:disabled { cursor: default; color: var(--dim); background: rgba(255, 255, 255, .07); box-shadow: none; }
/* the moment that matters (launch, claim): pump.fun's green */
.go.launch:not(:disabled) { color: #04140c; background: linear-gradient(180deg, #7cf5c3, #3fe0a0 55%, #22c58a); box-shadow: 0 4px 16px rgba(63, 224, 160, .14), inset 0 1px 0 rgba(255, 255, 255, .5); }
.go.launch:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(63, 224, 160, .2), inset 0 1px 0 rgba(255, 255, 255, .5); }
.go.launch { padding: 21px 16px; border-radius: 18px; font-size: 21px; }

/* launched: the badge and when, the coin's contract address (the thing people ask for first), small links to see it */
.landed { display: flex; flex-direction: column; gap: 10px; margin-top: -6px; }
.landed-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.landed-badge { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--round); color: var(--mint); }
.landed-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(63, 224, 160, .2); }
.landed-when { font-size: 12.5px; color: var(--dim); }
.ca { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 5px; padding: 12px 10px 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .3); }
.ca small { grid-column: 1 / -1; font: 600 11px/1 var(--ui); color: var(--dim); }
.ca code { min-width: 0; word-break: break-all; font: 500 12.5px/1.35 ui-monospace, Menlo, monospace; color: var(--ink); }   /* the whole address, wrapped: people check it character by character */
.ca button { padding: 8px 12px; border-radius: 10px; border: 0; background: var(--ink); color: #0a0d12; font: 600 12.5px/1 var(--ui); cursor: pointer; }
.links { display: flex; flex-wrap: wrap; gap: 18px; padding-left: 2px; }
.links a { color: var(--dim); font: 600 12.5px/1 var(--ui); text-decoration: none; }
.links a:hover { color: var(--ink); }

/* launched, your seats */
.yours { padding: 16px 16px 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(242, 194, 48, .1), rgba(242, 194, 48, .03)); }
.yours-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 13px/1 var(--ui); color: var(--dim); }
.yours-head b { color: var(--ink); font-weight: 600; }
.yours-amt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 10px; }
.yours-amt b { font: 700 38px/1 var(--round); letter-spacing: -.025em; color: #ffe08a; font-variant-numeric: tabular-nums; }
.yours-amt span { font: 600 14px/1.3 var(--ui); color: var(--dim); }
.unlock { margin-top: 12px; } .unlock i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.unlock u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f2c230, #ffe08a); }
.unlock small { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }
.yours-sub { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); } .yours-sub:empty { display: none; }

/* launched, the crew: one row a seat */
.crew { padding-top: 20px; border-top: 1px solid var(--rule); }
.crew ul { margin: 0; padding: 0; list-style: none; }
.crew li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.crew li + li { border-top: 1px solid var(--rule); }
.crew li.mine .who { color: #ffe08a; }
.crew li .seat { width: 32px; height: 32px; font-size: 11px; } .crew li .seat.mine::after { display: none; }
.crew .who { flex: 1; min-width: 0; font: 600 13.5px/1.2 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crew .who a { color: var(--ink); text-decoration: none; }
.crew .who i { margin-left: 6px; padding: 3px 7px; border-radius: 99px; background: var(--fill); color: var(--dim); font: 600 10.5px/1 var(--ui); font-style: normal; }
.crew li em { font: 600 12px/1 var(--ui); font-style: normal; color: var(--dim); white-space: nowrap; } .crew li em.ok { color: var(--mint); }
.crew li.closed .who { color: var(--dim); font-weight: 500; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 14px; padding: 0 2px; }
.more button { padding: 6px 0; border: 0; background: none; color: var(--dim); font: 600 13.5px/1 var(--ui); cursor: pointer; }
.more button:hover { color: var(--ink); }
.ghost { padding: 9px 13px; border-radius: 12px; border: 0; background: var(--fill); color: var(--ink); font: 600 13.5px/1 var(--ui); cursor: pointer; }
.ghost:hover { background: rgba(255, 255, 255, .09); }
.more button.wallet { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 5px 5px 11px; border-radius: 99px; background: var(--fill); color: var(--dim); font: 500 12.5px/1 var(--ui); }
.more .wallet i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.more .wallet span { padding: 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--ink); font-weight: 600; }
.status { margin: 12px 0 0; padding: 0 2px; font-size: 13.5px; color: var(--dim); }
.status:empty { display: none; }
.status.bad::before, .status.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: currentColor; }
.status.bad { color: #ffb0b0; } .status.ok { color: #9ef0cb; }
.status a { color: var(--ink); font-weight: 600; }

/* how it works */
.faq { border-top: 1px solid var(--rule); }
.faq-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px 4px; border: 0;
              background: transparent; color: var(--ink); font: 600 14px/1 var(--ui); cursor: pointer; }
.faq-toggle span { font-size: 18px; color: var(--dim); transition: transform .2s; }
.faq-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.faq-list { margin-top: 6px; display: flex; flex-direction: column; }
.faq-list details + details { border-top: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; padding: 13px 2px; font: 600 14px/1.3 var(--ui); display: flex; justify-content: space-between; gap: 10px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--dim); font: 400 18px/1 var(--ui); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 2px 14px; color: #b9c0ca; font-size: 13.5px; }
.fine { margin-top: -8px; padding: 0 2px; color: var(--faint); font-size: 12px; line-height: 1.45; } .fine p { margin: 0; }
.fineprint { margin-top: 6px; } .fineprint summary { cursor: pointer; color: var(--dim); list-style: none; } .fineprint summary::-webkit-details-marker { display: none; }
.fineprint summary::after { content: " ›"; } .fineprint[open] summary::after { content: " ⌄"; } .fineprint p { margin-top: 6px; }
.fine .credit a { color: var(--ink); text-decoration: none; } .fine .credit a:hover { color: var(--blue); }

/* sheets: connecting a wallet; the explainer inside X's card */
.sheet { position: fixed; inset: 0; z-index: 10; display: grid; place-items: end center; background: rgba(4, 6, 10, .6); backdrop-filter: blur(4px); }
.panel { width: min(460px, 100%); max-height: 92vh; overflow: auto; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #12161d;
         border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.panel.tall { max-height: 100vh; }
.panel h2 { margin: 0; font: 600 20px/1.2 var(--round); }
#wallets { display: flex; flex-direction: column; gap: 8px; }
#wallets button, #wallets a { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; border: 0; background: var(--fill);
                              color: var(--ink); font: 600 15px/1 var(--ui); text-decoration: none; cursor: pointer; text-align: left; }
#wallets img { width: 26px; height: 26px; border-radius: 6px; }
.hint { margin: 0; color: var(--dim); font-size: 13px; }

/* X's card: full bleed, everything in 480×480 */
html[data-mode="embed"] .room { width: 100%; height: 100vh; height: 100dvh; margin: 0; padding: 11px 14px max(8px, env(safe-area-inset-bottom)); gap: 8px; border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
                                 background: transparent; backdrop-filter: none; }
html[data-mode="embed"] .face { width: 52px; height: 52px; border-radius: 15px; font-size: 20px; }
html[data-mode="embed"] .names h1 { font-size: 20px; }
html[data-mode="embed"] .tiles { padding-top: 8px; } html[data-mode="embed"] .tile { padding: 0 10px; } html[data-mode="embed"] .tile:first-child { padding-left: 0; } html[data-mode="embed"] .tile b { font-size: 18px; margin-top: 4px; }
html[data-mode="embed"] .tile em { padding-top: 4px; font-size: 10px; } html[data-mode="embed"] .tile .fill { margin-top: 5px; height: 3px; }
html[data-mode="embed"] .seat { width: 24px; height: 24px; font-size: 9px; } html[data-mode="embed"] .seat.mine::after { display: none; }
html[data-mode="embed"] .seats-head { display: none; } html[data-mode="embed"] .facts b { font-size: 14px; } html[data-mode="embed"] .facts small { font-size: 10.5px; }
html[data-mode="embed"] .curve-note { margin-top: 8px; } html[data-mode="embed"] .aura { opacity: .25; }
html[data-mode="embed"] .curve { padding-top: 8px; } html[data-mode="embed"] .curve-head { margin-bottom: 7px; } html[data-mode="embed"] .curve-head strong { font-size: 18px; } 
html[data-mode="embed"] .pf-badge { margin-top: 5px; }
html[data-mode="embed"] .go { padding: 13px; font-size: 16.5px; } html[data-mode="embed"] .go.launch { padding: 15px; font-size: 18px; }
html[data-mode="embed"] :is(.crew, .yours, .links) { display: none; } html[data-mode="embed"] .landed { margin-top: 0; gap: 6px; }
html[data-mode="embed"] .landed-top { display: none; } html[data-mode="embed"] .ca { padding: 6px 6px 6px 12px; border-radius: 12px; } html[data-mode="embed"] .ca small { display: none; } html[data-mode="embed"] .ca code { font-size: 12px; word-break: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-mode="embed"] .ca button { padding: 6px 10px; font-size: 11.5px; }
html[data-mode="embed"] .act { margin-top: auto; }
/* the card opened full-screen (X's in-app browser on a phone, with its toolbar over the bottom): taller than the 480 card, so the
   actions follow the room instead of sitting at the bottom of the screen, under the toolbar */
@media (min-height: 560px) { html[data-mode="embed"] .act { margin-top: 0; } html[data-mode="embed"] .room { overflow-y: auto; } }
html[data-mode="embed"] .more { margin-top: 6px; gap: 2px 16px; } html[data-mode="embed"] .status { margin-top: 6px; min-height: 0; }
html[data-mode="embed"] .faq-list:not(.open) { display: none; }
html[data-mode="embed"] .faq { display: none; }   /* in the card, "How it works" sits with the other buttons and opens a sheet */
html[data-mode="embed"] .fine { margin-top: 0; font-size: 10px; } html[data-mode="embed"] .fineprint { display: none; }   /* the card: in "How it works" instead */
html[data-mode="popup"] .room { margin: 12px auto; }
/* the share image: no controls */
html[data-mode="card"] .room { width: 100%; height: 100vh; margin: 0; border: 0; border-radius: 0; justify-content: center; padding: 56px; gap: 28px; background: transparent; box-shadow: none; }
html[data-mode="card"] :is(.act, .faq, .fine, .crew, .yours, .links, .ca button) { display: none; }
html[data-mode="card"] .names h1 { font-size: 46px; } html[data-mode="card"] .face { width: 112px; height: 112px; border-radius: 28px; font-size: 44px; }
html[data-mode="card"] .tile b { font-size: 40px; } html[data-mode="card"] .tile small { font-size: 18px; } html[data-mode="card"] .tile em { font-size: 16px; }
html[data-mode="card"] .seat { width: 48px; height: 48px; } html[data-mode="card"] .facts b { font-size: 26px; } html[data-mode="card"] .facts small { font-size: 16px; } html[data-mode="card"] .curve-head { font-size: 24px; } html[data-mode="card"] .curve-head strong { font-size: 40px; } html[data-mode="card"] .track { height: 22px; }
@media (max-width: 400px) { .room { padding: 18px 16px; } .tile { padding: 0 9px; } .tile b { font-size: 21px; } .tile em { font-size: 10.5px; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .track i, .seat, .go { transition: none; } .chip.state.open i { animation: none; } }

/* the host form (/party) */
.host .intro h1 { margin: 0; font: 700 32px/1.05 var(--round); letter-spacing: -.025em; }
.host .intro p { margin: 8px 0 0; color: var(--dim); }
.host .intro p.powered { margin: 6px 0 0; font: 500 13px/1 var(--ui); color: var(--faint); } .powered a { color: var(--ink); text-decoration: none; font-weight: 600; } .powered a:hover { color: var(--blue); } .host .pf, .pf { color: var(--mint); font-weight: 600; }
#form { display: flex; flex-direction: column; gap: 22px; }
.block { margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.block legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font: 600 15px/1 var(--round); color: var(--ink); }
.block legend + * { clear: both; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { display: flex; justify-content: space-between; font: 600 12.5px/1 var(--ui); color: var(--dim); }
.field > span em { font-style: normal; font-weight: 500; color: var(--faint); } .field > span em.over { color: var(--bad); }
.field input, .field select { width: 100%; padding: 13px 14px; border-radius: 13px; border: 1px solid transparent; background: var(--fill); color: var(--ink);
                              font: 500 16px/1.2 var(--ui); outline: none; appearance: none; }
.field input:focus, .field select:focus { border-color: rgba(29, 155, 240, .6); background: rgba(29, 155, 240, .06); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
                background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coin-row { display: flex; gap: 12px; align-items: stretch; }
.coin-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.drop { width: 108px; flex: none; border-radius: 20px; border: 1.5px dashed rgba(255, 255, 255, .14); display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden;
        font: 600 12.5px/1.3 var(--ui); color: var(--dim); background: rgba(255, 255, 255, .02); position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { width: 100%; height: 100%; object-fit: cover; }
/* the big numbers: the value large, its unit in the field, steppers for seats */
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.num { display: flex; align-items: center; gap: 4px; height: 62px; padding: 0 8px 0 16px; border-radius: 16px; border: 1px solid transparent; background: var(--fill); transition: border-color .15s, background .15s; }
.num:focus-within { border-color: rgba(29, 155, 240, .6); background: rgba(29, 155, 240, .06); }
.num input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 700 26px/1 var(--round); letter-spacing: -.02em; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.num input::-webkit-inner-spin-button, .num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.num em { font: 600 13px/1 var(--ui); font-style: normal; color: var(--dim); margin-right: 8px; }
.num .step { flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--ink); font: 500 18px/1 var(--ui); cursor: pointer; }
.num input { order: 0; } .num em { order: 1; } .num .step:first-child { order: 2; } .num .step:last-child { order: 3; } .num .step:hover { background: rgba(255, 255, 255, .12); }
.field > span em#price-usd { color: var(--dim); }
.quick { display: flex; flex-wrap: wrap; gap: 5px; }
.quick button { padding: 6px 10px; border-radius: 99px; border: 0; background: transparent; color: var(--dim); font: 600 12.5px/1 var(--ui); cursor: pointer; font-variant-numeric: tabular-nums; }
.quick button:hover { color: var(--ink); background: var(--fill); }
.quick button.on { color: var(--ink); background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
/* the raise: every seat together, as one line */
.raise { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(63, 224, 160, .07); }
.raise:empty { display: none; } .raise span { font: 500 12.5px/1 var(--ui); color: var(--dim); } .raise b { font: 700 19px/1 var(--round); letter-spacing: -.02em; color: var(--mint); }
.raise small { font: 600 13px/1 var(--ui); color: var(--ink); } .raise i { margin-left: auto; font: 500 12.5px/1.2 var(--ui); font-style: normal; color: var(--dim); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: var(--fill); }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--dim);
              font: 600 14px/1 var(--round); letter-spacing: -.01em; cursor: pointer; transition: background .15s, color .15s; }
.seg button small { font: 500 11px/1.2 var(--ui); letter-spacing: 0; color: var(--faint); }
.seg.small button { padding: 10px 4px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.seg button:hover:not(:disabled) { color: var(--ink); }
.seg button[aria-checked="true"] { color: var(--ink); background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .2); }
.seg button[aria-checked="true"] small { color: var(--dim); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.pair.wide { grid-template-columns: 2fr 1fr; }
.gate { display: flex; flex-direction: column; gap: 10px; }
.field textarea { width: 100%; min-height: 96px; padding: 13px 14px; border-radius: 13px; border: 1px solid transparent; background: var(--fill); color: var(--ink); resize: vertical;
                  font: 500 13px/1.5 ui-monospace, Menlo, monospace; outline: none; }
.field textarea:focus { border-color: rgba(29, 155, 240, .6); }
.help { color: var(--faint); font-size: 12.5px; line-height: 1.4; }
.due { padding-top: 20px; border-top: 1px solid var(--rule); }
.due h2 { margin: 0 0 12px; font: 600 15px/1 var(--round); color: var(--ink); }
.due ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: #b9c0ca; }
.due li { display: flex; justify-content: space-between; gap: 10px; } .due li span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.due li small { display: block; color: var(--faint); font-size: 12px; }
.due .total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-weight: 600; }
.due .total b { font: 600 22px/1 var(--round); }
/* done: the coin, front and centre, and the one thing to do next (post it) */
.host.opened :is(.intro, .fine) { display: none; }
.done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 2px; text-align: center; }
.done-face { width: 132px; height: 132px; border-radius: 36px; overflow: hidden; box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 90px rgba(63, 224, 160, .16); }
.done-face img { width: 100%; height: 100%; object-fit: cover; }
.done-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 7px 13px; border-radius: 99px; font: 600 12.5px/1 var(--ui); color: #c9f5e2;
             background: rgba(63, 224, 160, .12); }
.done-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(63, 224, 160, .18); }
.done h2 { margin: 0; font: 700 34px/1.05 var(--round); letter-spacing: -.025em; }
.done-sub { margin: 0; color: var(--dim); font-size: 15px; } .done-sub b { color: var(--ink); font-weight: 600; }
.done-seats { justify-content: center; margin: 4px 0 8px; }
.done .go { margin-top: 4px; }
.done-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.done-row .ghost { display: block; padding: 13px; text-align: center; text-decoration: none; font-size: 14px; }
.done-back { color: var(--dim); font: 600 13.5px/1 var(--ui); text-decoration: none; } .done-back:hover { color: var(--ink); }
.done-credit { margin: 4px 0 0; color: var(--faint); font-size: 12px; } .done-credit a { color: var(--dim); text-decoration: none; }
a.go { display: block; text-align: center; text-decoration: none; }
.ghost.wide { display: block; text-align: center; text-decoration: none; padding: 13px; }
@media (max-width: 400px) { .drop { width: 92px; } }

/* tweetpad.io/party: the landing. The same card, wider; a hero, three steps, then the parties as quiet rows with hairlines between */
.lobby { width: min(680px, calc(100% - 24px)); }
.lobby-aura { background: radial-gradient(60% 80% at 20% 30%, rgba(63, 224, 160, .5), transparent 70%), radial-gradient(50% 70% at 85% 20%, rgba(29, 155, 240, .55), transparent 70%); opacity: .35; }
.chip.live { margin-left: auto; color: var(--ink); } .chip.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(63, 224, 160, .18); }
.hero h1 { margin: 6px 0 0; font: 800 54px/.98 var(--round); letter-spacing: -.035em; }
.hero p { margin: 14px 0 0; max-width: 34em; color: #b9c0ca; font-size: 16.5px; line-height: 1.5; } .hero p b.pf { font-weight: 600; }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; } .hero-cta .go { width: auto; padding: 16px 28px; } .hero-cta .ghost { padding: 0 20px; border-radius: 16px; font-size: 14.5px; }
.hero .powered { margin: 14px 0 0; font: 500 13px/1 var(--ui); color: var(--faint); } .hero .powered a { color: var(--dim); text-decoration: none; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 20px 0 0; list-style: none; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; padding: 0 16px; } .steps li:first-child { padding-left: 0; } .steps li:last-child { padding-right: 0; } .steps li + li { border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 10px; border-radius: 50%; background: rgba(63, 224, 160, .14); color: var(--mint); font: 600 12.5px/1 var(--round); }
.steps b { display: block; font: 600 15.5px/1.2 var(--round); } .steps span { display: block; margin-top: 5px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.list { padding-top: 20px; border-top: 1px solid var(--rule); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; } .list-head h2 { margin: 0; font: 600 19px/1 var(--round); } .list-head b { font: 500 13px/1 var(--ui); color: var(--dim); }
.list ul { margin: 0; padding: 0; list-style: none; } .list li + li { border-top: 1px solid var(--rule); }
.list li a { display: flex; align-items: center; gap: 14px; padding: 13px 0; color: var(--ink); text-decoration: none; border-radius: 14px; transition: background .15s, padding .15s; }
.list li a:hover { background: rgba(255, 255, 255, .035); padding: 13px 10px; margin: 0 -10px; }
.lface { --h: 205; position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
         background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 50) 60% 30%)); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.lface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .lface em { font: 600 18px/1 var(--round); font-style: normal; color: #fff; }
.lname { flex: 1; min-width: 0; } .lname b { display: block; font: 600 16px/1.2 var(--round); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lname small { display: block; margin-top: 3px; color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lseats { flex: none; width: 92px; text-align: right; } .lmcap { flex: none; width: 130px; text-align: right; }
.lseats b, .lmcap b { display: block; font: 600 18px/1 var(--round); font-variant-numeric: tabular-nums; } .lseats b small { color: var(--dim); font: 500 13px/1 var(--ui); }
.lseats i { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lseats u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), #7ab8ff); }
.lmcap small { display: block; margin-top: 5px; color: var(--mint); font-size: 12px; }
.list li.empty { display: flex; align-items: center; gap: 14px; padding: 16px 0; color: var(--dim); font-size: 14px; }
.list li.empty > span:nth-child(2) { flex: 1; } .list li.empty a.ghost { display: inline-block; padding: 10px 14px; margin: 0; border-radius: 12px; text-decoration: none; }
.empty-seats { display: flex; } .empty-seats i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .22); background: #12161d; }
.empty-seats i + i { margin-left: -8px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 40px; } .hero p { font-size: 15px; }
  .steps { grid-template-columns: 1fr; gap: 14px; } .steps li, .steps li:first-child { padding: 0 0 0 36px; position: relative; } .steps li + li { border-left: 0; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; } .lseats { width: 76px; } .lmcap { width: 104px; }
}
/* X's card for /party (480×480): see "X's card for /party" below for the hero; the CTA and the line sit at the bottom, full width */
html[data-mode="embed"] .lobby { gap: 12px; }
html[data-mode="embed"] .hero-cta { position: absolute; left: 14px; right: 14px; bottom: 30px; margin: 0; } html[data-mode="embed"] .hero-cta .go { width: 100%; padding: 14px; }
html[data-mode="embed"] :is(.steps, .fineprint) { display: none; }
html[data-mode="embed"] .lobby .fine { position: absolute; left: 14px; right: 14px; bottom: 8px; }
/* the card opened full-screen (X's in-app browser on a phone, its toolbar over the bottom): the hero gets room at the top and the way in
   follows it in the flow, still full width, never under the toolbar */
@media (min-height: 560px) {
  html[data-mode="embed"] .lobby { gap: 18px; padding-top: max(28px, calc(env(safe-area-inset-top) + 16px)); padding-left: 20px; padding-right: 20px; }
  html[data-mode="embed"] .lobby .hero-text { width: 100%; }
  html[data-mode="embed"] .lobby .ring { width: 236px; --r: 100px; --s: 46px; margin-top: 0; } html[data-mode="embed"] .lobby .ring-coin { inset: calc(50% - 58px); } html[data-mode="embed"] .lobby .ring-coin img { width: 64px; height: 64px; }
  html[data-mode="embed"] .lobby .hero h1 { font-size: 40px; } html[data-mode="embed"] .lobby .hero .tag { margin-top: 10px; font-size: 17px; }
  html[data-mode="embed"] .hero-cta { position: static; margin-top: 26px; } html[data-mode="embed"] .hero-cta .go { padding: 16px; }
  html[data-mode="embed"] .lobby .hero { margin-top: auto; } html[data-mode="embed"] .lobby .fine { position: static; margin-bottom: auto; text-align: center; }
}

/* loading: shimmering blocks in the shape of what's coming, never placeholder words */
@keyframes shimmer { to { background-position: -200% 0; } }
.sk, .room[aria-busy="true"] :is(.face, #name, #sub, .pf-badge, .tile small, .tile b, .tile em, .curve-head > *, #curve-label, #go, #state, .seats-head > *) {
  color: transparent !important; border-radius: 8px; border-color: transparent !important; box-shadow: none !important; text-shadow: none !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, .045) 25%, rgba(255, 255, 255, .1) 37%, rgba(255, 255, 255, .045) 63%) 0 0 / 200% 100% !important; animation: shimmer 1.4s linear infinite; }
.room[aria-busy="true"] :is(.face, .pf-badge, #state) > *, .room[aria-busy="true"] #curve-label * { visibility: hidden; }
.room[aria-busy="true"] :is(.curve-head, .tile, .names) * { color: transparent !important; }
.room[aria-busy="true"] .face { border-radius: 24px; } .room[aria-busy="true"] #go { border-radius: 16px; }
.room[aria-busy="true"] :is(.track, .grid, .more, .faq, #net, .aura) { visibility: hidden; }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; } .sk-row + .sk-row { border-top: 1px solid var(--rule); }
.sk { display: block; height: 12px; } .sk-face { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; } .sk-lines .sk:first-child { height: 15px; } .sk-end { width: 64px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { .sk, .room[aria-busy="true"] * { animation: none !important; } }

/* the hero's graphic: the crew in a ring of seats around one coin, turning slowly; each face stays upright */
.hero { display: grid; grid-template-columns: 1fr 236px; align-items: center; gap: 28px; }
.hero-text { min-width: 0; order: -1; }
@keyframes spin { to { rotate: 360deg; } } @keyframes unspin { to { rotate: -360deg; } }
@keyframes breathe { 50% { scale: 1.06; opacity: .9; } }
.ring { position: relative; width: 236px; aspect-ratio: 1; --r: 100px; --s: 46px; }
.ring-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(63, 224, 160, .45), transparent 65%); filter: blur(18px); animation: breathe 5s ease-in-out infinite; }
.ring-track { position: absolute; inset: calc(50% - var(--r)); border-radius: 50%; border: 2px solid transparent;
              background: conic-gradient(from 0deg, rgba(63, 224, 160, .9), rgba(43, 196, 217, .5), rgba(29, 155, 240, .35), rgba(63, 224, 160, .9)) border-box;
              -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.ring-seats { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.ring-seats i { position: absolute; left: calc(50% - var(--s) / 2); top: calc(50% - var(--s) / 2); width: var(--s); height: var(--s);
                transform: rotate(calc(var(--i) * 36deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -36deg)); }
.ring-seats img { display: block; width: 100%; height: 100%; border-radius: 50%; background: #e8ebe8; image-rendering: pixelated;
                  box-shadow: 0 0 0 3px #12161d, 0 0 0 4.5px rgba(63, 224, 160, .55), 0 8px 18px rgba(0, 0, 0, .45); animation: unspin 60s linear infinite; }
.ring-coin { position: absolute; inset: calc(50% - 58px); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
             background: radial-gradient(circle at 35% 30%, #1d2a33, #0d1318); box-shadow: inset 0 0 0 1.5px rgba(63, 224, 160, .45), 0 0 40px rgba(63, 224, 160, .35), 0 18px 40px rgba(0, 0, 0, .5); }
.ring-coin img { width: 64px; height: 64px; filter: drop-shadow(0 6px 18px rgba(29, 155, 240, .45)); }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; gap: 6px; } .hero-text { order: 0; } .ring { margin: 0 auto; width: 220px; --r: 92px; --s: 42px; } }
@media (prefers-reduced-motion: reduce) { .ring-seats, .ring-seats img, .ring-glow { animation: none; } }
/* X's card for /party: the ring, the name, the line, the way in (the lists are on the page) */
.hero .tag { margin: 10px 0 0; font: 700 19px/1.25 var(--round); letter-spacing: -.015em; color: var(--ink); }
html[data-mode="embed"] .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; }
html[data-mode="embed"] .hero-text { order: 0; } html[data-mode="embed"] .hero :is(.powered, .hero-cta .ghost) { display: none; } html[data-mode="embed"] .ring { width: 206px; --r: 86px; --s: 40px; margin-top: -2px; }
html[data-mode="embed"] .ring-coin { inset: calc(50% - 50px); } html[data-mode="embed"] .ring-coin img { width: 54px; height: 54px; }
html[data-mode="embed"] .hero h1 { font-size: 36px; } html[data-mode="embed"] .hero .tag { margin-top: 6px; font-size: 16px; } html[data-mode="embed"] .hero .long { display: none; }
html[data-mode="embed"] :is(.list) { display: none; }
