/* Yapball site — "THE GROUP CHAT" on a cobalt field. Bubbly = inflated candy surfaces + real 3D type renders. */
@font-face { font-family: 'Dosis'; src: url('../assets/fonts/Dosis-VF.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --cobalt: #2B44FF; --cobalt-hi: #3A55FF; --cobalt-lo: #2236E8; --deep: #1B2BC9; --ink: #0B1250; --ink-2: #3B4385;
  --snow: #FFFFFF; --snow-2: #F3F5FF; --frost: #C9D3FF; --mist: rgba(255, 255, 255, .72);
  --pink: #FF3D9A; --pink-2: #FF6CB5; --pink-deep: #D61F7B; --green: #18D28A; --sky: #5FC4FF;
  --r-xl: 44px; --r-lg: 32px; --r-md: 22px; --r-sm: 14px;
  --shadow-puff: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 -10px 24px rgba(43, 68, 255, .10) inset, 0 30px 70px rgba(8, 16, 110, .38), 0 6px 14px rgba(8, 16, 110, .18);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--cobalt); overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; color: var(--snow); font-family: 'Dosis', system-ui, sans-serif; font-weight: 500; font-size: 18px; line-height: 1.45;
  background: radial-gradient(1200px 700px at 70% -10%, #3B57FF 0%, rgba(59, 87, 255, 0) 70%), linear-gradient(180deg, #2C46FF 0%, #2A42FC 40%, #2639F2 100%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- candy buttons ---------- */
.candy {
  --c1: var(--pink-2); --c2: var(--pink); --c3: var(--pink-deep); --tx: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; color: var(--tx); font-weight: 700; font-size: 18px; letter-spacing: .01em;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 58%, var(--c2) 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -5px 0 color-mix(in srgb, var(--c3) 70%, transparent), 0 10px 22px color-mix(in srgb, var(--c3) 45%, transparent), 0 2px 4px rgba(8, 16, 110, .25);
  transition: transform .35s var(--ease-spring), box-shadow .2s, filter .2s;
}
.candy::after { content: ''; position: absolute; left: 14%; right: 14%; top: 5px; height: 38%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.candy:hover { transform: translateY(-2px) scale(1.03); filter: saturate(1.08); }
.candy:active { transform: translateY(2px) scale(.97); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45), inset 0 -2px 0 color-mix(in srgb, var(--c3) 70%, transparent), 0 4px 10px color-mix(in srgb, var(--c3) 40%, transparent); }
.candy[disabled] { filter: grayscale(.5) opacity(.6); cursor: not-allowed; transform: none; }
.candy.white { --c1: #FFFFFF; --c2: #EEF1FF; --c3: #A9B5FF; --tx: var(--ink); }
.candy.cobalt { --c1: #4D66FF; --c2: var(--cobalt); --c3: #1424A8; }
.candy.sm { height: 42px; padding: 0 18px; font-size: 16px; }
.candy.lg { height: 64px; padding: 0 34px; font-size: 21px; }
.candy .ico { width: 26px; height: 26px; margin-left: -6px; }
.candy.wide { width: 100%; }

/* ---------- inflated panels ---------- */
.puff {
  position: relative; color: var(--ink); background: linear-gradient(180deg, #FFFFFF 0%, #F6F8FF 60%, #EEF1FF 100%);
  border-radius: var(--r-xl); box-shadow: var(--shadow-puff);
}
.puff::before { content: ''; position: absolute; left: 6%; right: 6%; top: 10px; height: 46px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); pointer-events: none; opacity: .7; }
.puff.glass { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -12px 30px rgba(0, 0, 60, .12), 0 24px 60px rgba(8, 16, 110, .30); backdrop-filter: blur(10px); }
.puff.glass::before { opacity: .25; }

/* ---------- section heads: 3D type renders ---------- */
.sec { position: relative; padding: 120px 0 40px; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
.sec-head .type3d { height: clamp(64px, 9vw, 118px); width: auto; filter: drop-shadow(0 18px 26px rgba(8, 16, 110, .35)); margin-left: -1.2%; }
.sec-head p { margin: 0; max-width: 620px; font-size: 21px; color: var(--mist); font-weight: 500; }
.sec-head p b { color: #fff; font-weight: 700; }

/* ---------- chat hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 18px 0 60px; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.chat { position: relative; z-index: 2; width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.chat-head {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 40px rgba(8, 16, 110, .25); backdrop-filter: blur(12px);
}
.chat-ava { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5), 0 6px 14px rgba(8, 16, 110, .35); }
.chat-name { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.chat-name b { font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.chat-name span { font-size: 15px; color: var(--mist); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 61, 154, .22); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 61, 154, .28); } 50% { box-shadow: 0 0 0 7px rgba(255, 61, 154, .05); } }
.chat-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; }

.title-card { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 26px 0 4px; text-align: center; }
.title-card .wm { width: min(680px, 84%); height: auto; filter: drop-shadow(0 26px 36px rgba(8, 16, 110, .4)); }
.title-card .date { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-top: 6px; }

.thread { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 8px; }
.msg { display: flex; align-items: flex-end; gap: 12px; max-width: 78%; opacity: 0; transform: translateY(18px) scale(.94); transform-origin: left bottom; animation: msgIn .7s var(--ease-spring) forwards; }
.msg.out { align-self: flex-end; flex-direction: row-reverse; transform-origin: right bottom; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg .ava { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 4px 10px rgba(8, 16, 110, .3); background: #dfe4ff; }
.bub {
  position: relative; padding: 14px 20px; border-radius: 28px 28px 28px 10px; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F4FF 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 1), inset 0 -6px 12px rgba(43, 68, 255, .10), 0 14px 30px rgba(8, 16, 110, .28);
}
.bub::before { content: ''; position: absolute; left: 14px; right: 30%; top: 5px; height: 12px; border-radius: 99px; background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }
.msg.out .bub { border-radius: 28px 28px 10px 28px; color: #fff; background: linear-gradient(180deg, var(--pink-2) 0%, var(--pink) 70%); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .5), inset 0 -6px 0 rgba(214, 31, 123, .35), 0 14px 30px rgba(214, 31, 123, .35); }
.msg.out .bub::before { background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.bub small { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); opacity: .8; margin-bottom: 2px; letter-spacing: .01em; }
.msg.out .bub small { color: rgba(255, 255, 255, .85); }
.bub .pts { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 10px 2px 6px; border-radius: 99px; background: rgba(255, 61, 154, .12); color: var(--pink-deep); font-weight: 800; font-size: 16px; vertical-align: 2px; }
.bub .pts img { width: 20px; height: 20px; }
.bub .coin { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--cobalt); }
.bub .coin img { width: 22px; height: 22px; border-radius: 50%; }
.bub .breakdown { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(43, 68, 255, .12), 0 3px 8px rgba(8, 16, 110, .14); }
.chip img { width: 26px; height: 26px; }
.chip.total { background: linear-gradient(180deg, var(--pink-2), var(--pink)); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(214, 31, 123, .4); }
.typing-row { display: flex; align-items: flex-end; gap: 12px; height: clamp(170px, 24vw, 290px); }
.typing-row .who { font-size: 15px; color: var(--mist); font-weight: 600; margin-bottom: 8px; }
.typing-slot { width: clamp(240px, 38vw, 420px); height: 100%; flex: none; }
.typing-fallback { width: 100%; height: 100%; object-fit: contain; }
.hero.gl .typing-fallback { visibility: hidden; }

.composer { position: relative; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 22px; margin-top: 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 -5px 12px rgba(43, 68, 255, .12), 0 22px 50px rgba(8, 16, 110, .35); }
.composer input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 19px 'Dosis', sans-serif; }
.composer input::placeholder { color: #8C93C7; }
.composer .send { width: 54px; height: 54px; padding: 0; }
.composer .send svg { width: 24px; height: 24px; }
.composer-hint { margin: 12px 4px 0; font-size: 15px; color: rgba(255, 255, 255, .7); text-align: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.hero-stats .chip { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.hero-stats .chip b { font-weight: 800; }

.ca-hero { display: none; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 8px 8px 8px 18px; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.ca-hero.on { display: flex; }
.ca-hero .lbl { font-weight: 800; }
.ca-hero code { font-family: 'Dosis', sans-serif; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
@media (max-width: 767px) { #caTop { display: none !important; } .ca-hero { border-radius: 28px; padding: 12px; } .ca-hero code { flex-basis: 100%; text-align: center; font-size: 14px; } }

/* ---------- ball pit ---------- */
.pit { position: relative; height: clamp(440px, 52vw, 620px); border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, rgba(10, 20, 120, .18), rgba(10, 20, 120, .02));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -30px 60px rgba(255, 255, 255, .08), inset 0 30px 60px rgba(8, 16, 110, .25);
}
.pit canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.pit canvas:active { cursor: grabbing; }
.pit-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .2s; }
.pit-tip.on { opacity: 1; }
.pit-tip .bub { font-size: 16px; padding: 10px 16px; white-space: nowrap; }
.pit-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; color: var(--mist); font-size: 16px; }
.pit-legend .sw { display: inline-flex; align-items: center; gap: 8px; }
.coin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 26px; }
.coin-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); cursor: pointer; text-align: left; border: 0; color: var(--ink); background: linear-gradient(180deg, #fff, #F2F5FF); box-shadow: inset 0 1px 0 #fff, inset 0 -5px 10px rgba(43, 68, 255, .08), 0 14px 30px rgba(8, 16, 110, .25); transition: transform .35s var(--ease-spring); }
.coin-card:hover { transform: translateY(-3px) scale(1.015); }
.coin-card canvas { width: 64px; height: 64px; flex: none; }
.coin-card b { font-size: 19px; font-weight: 800; display: block; }
.coin-card span { font-size: 15px; color: var(--ink-2); display: block; }
.coin-card .tag { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(43, 68, 255, .1); color: var(--cobalt); }
.coin-card .tag.live { background: rgba(255, 61, 154, .12); color: var(--pink-deep); }

/* ---------- live shills wall ---------- */
.wall { columns: 3 320px; column-gap: 18px; }
.xpost { break-inside: avoid; margin: 0 0 18px; padding: 16px 18px 12px; border-radius: 26px; color: #0F1419; background: #fff; box-shadow: inset 0 -4px 10px rgba(43, 68, 255, .06), 0 16px 34px rgba(8, 16, 110, .26); font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; position: relative; }
.xpost .top { display: flex; gap: 10px; align-items: center; }
.xpost .top img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e7e9f3; }
.xpost .who { min-width: 0; line-height: 1.2; }
.xpost .who b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpost .who span { font-size: 14px; color: #536471; }
.xpost .x { margin-left: auto; width: 18px; height: 18px; color: #0F1419; flex: none; }
.xpost .tx { margin: 10px 0 10px; font-size: 15.5px; line-height: 1.42; white-space: pre-wrap; word-break: break-word; }
.xpost .tx a, .xpost .tx .ca { color: #1D9BF0; text-decoration: none; }
.xpost .met { display: flex; justify-content: space-between; color: #536471; font-size: 13.5px; padding-top: 8px; border-top: 1px solid #EFF3F4; }
.xpost .met span { display: inline-flex; align-items: center; gap: 4px; }
.xpost .met img { width: 20px; height: 20px; }
.xpost .badge { position: absolute; top: -12px; right: 14px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 99px; color: #fff; font: 800 16px 'Dosis', sans-serif; background: linear-gradient(180deg, var(--pink-2), var(--pink)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(214, 31, 123, .4), 0 8px 16px rgba(214, 31, 123, .35); }
.xpost .badge canvas { width: 24px; height: 24px; }
.xpost .fed { margin-top: 8px; font: 700 14px 'Dosis', sans-serif; color: var(--cobalt); display: flex; align-items: center; gap: 6px; }
.empty { padding: 34px; text-align: center; font-size: 19px; color: var(--ink-2); }
.empty b { display: block; font-size: 24px; color: var(--ink); font-weight: 800; margin-bottom: 4px; }

/* ---------- launch studio ---------- */
.studio { display: grid; grid-template-columns: 1.08fr .92fr; gap: 0; overflow: hidden; }
.studio .form { padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 18px; }
.studio .side { padding: 40px 36px; background: linear-gradient(180deg, #EEF1FF, #E4E9FF); display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: flex-start; border-radius: 0 var(--r-xl) var(--r-xl) 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--ink-2); }
.field .row { display: flex; gap: 12px; }
.well { width: 100%; height: 54px; padding: 0 18px; border: 0; outline: 0; border-radius: 18px; color: var(--ink); font: 600 18px 'Dosis', sans-serif; background: #EEF1FF; box-shadow: inset 0 3px 8px rgba(11, 18, 80, .12), inset 0 -2px 0 rgba(255, 255, 255, .9); transition: box-shadow .2s; }
.well:focus { box-shadow: inset 0 3px 8px rgba(11, 18, 80, .12), 0 0 0 3px rgba(43, 68, 255, .35); }
select.well { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B44FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; }
textarea.well { height: 92px; padding: 14px 18px; resize: vertical; line-height: 1.4; }
.well.sym { text-transform: uppercase; }
.drop { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 22px; background: #EEF1FF; box-shadow: inset 0 3px 8px rgba(11, 18, 80, .10); cursor: pointer; }
.drop .ph { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 14px rgba(8, 16, 110, .18); overflow: hidden; }
.drop .ph img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-size: 18px; }
.drop span { font-size: 15px; color: var(--ink-2); }
.split { padding: 18px 18px 14px; border-radius: 24px; background: #EEF1FF; box-shadow: inset 0 3px 8px rgba(11, 18, 80, .10); }
.split-top { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.split-top .s { color: var(--pink-deep); }
.split-top .n { color: var(--cobalt); }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; border-radius: 99px; background: linear-gradient(90deg, var(--pink) 0 var(--p, 80%), var(--cobalt) var(--p, 80%) 100%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(255, 255, 255, .3); outline: none; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 22%, #F1F3FF 55%, #D8DEFF 100%); box-shadow: 0 6px 14px rgba(8, 16, 110, .35), inset 0 -3px 0 rgba(43, 68, 255, .18); cursor: grab; }
.rng::-moz-range-thumb { width: 40px; height: 40px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 22%, #F1F3FF 55%, #D8DEFF 100%); box-shadow: 0 6px 14px rgba(8, 16, 110, .35); cursor: grab; }
.split p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.buy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-opt { height: 42px; padding: 0 16px; border-radius: 99px; border: 0; cursor: pointer; font-weight: 700; color: var(--ink); background: #EEF1FF; box-shadow: inset 0 -3px 0 rgba(43, 68, 255, .12); }
.pill-opt.on { color: #fff; background: linear-gradient(180deg, #4D66FF, var(--cobalt)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(20, 36, 168, .5); }
.fine { font-size: 14px; color: var(--ink-2); margin: 0; }
.steps { display: none; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px; background: #EEF1FF; }
.steps.on { display: flex; }
.steps .st { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; color: #8C93C7; }
.steps .st i { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #D8DEFF; display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.steps .st.now { color: var(--ink); }
.steps .st.now i { background: var(--pink); animation: pulse 1.2s infinite; }
.steps .st.done { color: var(--ink-2); }
.steps .st.done i { background: var(--green); }
.err { display: none; padding: 12px 16px; border-radius: 16px; background: #FFE6F1; color: var(--pink-deep); font-weight: 700; font-size: 16px; }
.err.on { display: block; }
.preview-ball { width: min(280px, 70%); aspect-ratio: 1; }
.preview-cap { text-align: center; font-size: 15px; color: var(--ink-2); margin-top: -8px; }
.preview-post { width: 100%; }
.preview-post .xpost { margin: 0; box-shadow: 0 12px 28px rgba(8, 16, 110, .18); }
.done-card { display: none; flex-direction: column; gap: 12px; align-items: flex-start; }
.done-card.on { display: flex; }

/* ---------- your shills ---------- */
.desk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.desk .puff { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.desk h3 { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.desk h3 img { width: 46px; height: 46px; padding: 5px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #4D66FF 0%, #2B44FF 70%); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(20,36,168,.45); }
.desk p { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.stepper { display: flex; flex-direction: column; gap: 10px; }
.stepper .row { display: flex; gap: 8px; }
.linked { display: none; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #EEF1FF; }
.linked.on { display: flex; }
.linked img { width: 44px; height: 44px; border-radius: 50%; }
.linked b { display: block; }
.result { display: flex; flex-direction: column; gap: 10px; }
.result .line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #EEF1FF; }
.result .line canvas { width: 40px; height: 40px; flex: none; }
.result .line b { display: block; font-size: 16px; }
.result .line span { font-size: 14px; color: var(--ink-2); }
.result .line .r { margin-left: auto; text-align: right; font-weight: 800; color: var(--pink-deep); }

/* ---------- how it rolls ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card-pts { padding: 34px 34px 28px; }
.card-pts h3, .card-notes h3 { margin: 0 0 18px; font-size: 26px; font-weight: 800; }
.pts-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 2px dashed rgba(43, 68, 255, .12); }
.pts-row:last-child { border-bottom: 0; }
.pts-row img { width: 58px; height: 58px; flex: none; padding: 7px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #4D66FF 0%, #2B44FF 70%); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(20,36,168,.45), 0 6px 14px rgba(8,16,110,.25); }
.pts-row b { font-size: 21px; font-weight: 800; }
.pts-row span { margin-left: auto; font-size: 26px; font-weight: 800; color: var(--pink-deep); }
.pts-row span small { font-size: 15px; color: var(--ink-2); font-weight: 700; margin-left: 4px; }
.card-notes { padding: 34px 34px 28px; display: flex; flex-direction: column; gap: 4px; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.note i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(180deg, #4D66FF, var(--cobalt)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(20, 36, 168, .5); }
.note b { display: block; font-size: 19px; }
.note span { font-size: 16px; color: var(--ink-2); }
.fineprint { margin-top: 22px; padding: 22px 26px; border-radius: var(--r-lg); color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; background: rgba(10, 20, 120, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.fineprint b { color: #fff; }

/* ---------- coin drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.on { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(8, 14, 90, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer.open .scrim { opacity: 1; }
.drawer .sheet { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100% - 24px)); overflow-y: auto; overscroll-behavior: contain; padding: 26px 26px 30px; transform: translateX(110%); transition: transform .55s var(--ease-out); }
.drawer.open .sheet { transform: none; }
.sheet .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; }
.sheet .hd { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-right: 50px; }
.sheet .hd canvas { width: 110px; height: 110px; flex: none; }
.sheet .hd b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.sheet .hd span { color: var(--ink-2); font-size: 16px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 18px; }
.kv div { padding: 12px; border-radius: 18px; background: #EEF1FF; text-align: center; }
.kv b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); }
.kv span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.ca-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 99px; background: #EEF1FF; font-weight: 700; color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.ca-row code { font-family: 'Dosis', sans-serif; font-weight: 700; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.board { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 18px; }
.board .r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #F3F5FF; }
.board .r .n { width: 24px; text-align: center; font-weight: 800; color: var(--ink-2); }
.board .r img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #dfe4ff; }
.board .r b { font-size: 16px; }
.board .r .h2x { margin-left: 4px; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: rgba(24, 210, 138, .15); color: #0B8F5C; font-weight: 800; }
.board .r .p { margin-left: auto; font-weight: 800; color: var(--pink-deep); }
.sheet h4 { margin: 18px 0 8px; font-size: 18px; font-weight: 800; }
.roll-when { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; color: #fff; background: linear-gradient(180deg, #4D66FF, var(--cobalt)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3); margin-bottom: 14px; }
.roll-when b { font-size: 20px; }

/* ---------- chat head (floating nav) ---------- */
.chathead { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transform: translateY(140%); transition: transform .6s var(--ease-spring); }
.chathead.show { transform: none; }
.chathead > button { width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none; filter: drop-shadow(0 12px 22px rgba(8, 16, 110, .45)); transition: transform .35s var(--ease-spring); }
.chathead > button:hover { transform: scale(1.06) rotate(-4deg); }
.chathead > button img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.chathead .menu { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.chathead.open .menu { display: flex; }
.chathead .menu a, .chathead .menu button { animation: msgIn .45s var(--ease-spring) both; }
.chathead .menu > *:nth-child(2) { animation-delay: .04s; } .chathead .menu > *:nth-child(3) { animation-delay: .08s; } .chathead .menu > *:nth-child(4) { animation-delay: .12s; } .chathead .menu > *:nth-child(5) { animation-delay: .16s; } .chathead .menu > *:nth-child(6) { animation-delay: .2s; }

/* ---------- footer ---------- */
.foot { padding: 90px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: 999px; background: rgba(10, 20, 120, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.foot-row .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.foot-row .brand img { width: 40px; height: 40px; border-radius: 50%; }
.foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-row nav a { text-decoration: none; font-weight: 700; color: rgba(255, 255, 255, .8); }
.foot-row nav a:hover { color: #fff; }
.foot small { display: block; text-align: center; margin-top: 18px; color: rgba(255, 255, 255, .55); font-size: 14px; }
.ca-chip { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 16px; border-radius: 99px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); font-weight: 700; font-size: 15px; max-width: 100%; }
.ca-chip.on { display: inline-flex; }
.ca-chip code { font-family: 'Dosis', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-chip button { height: 30px; padding: 0 12px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; flex: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-spring), opacity .3s, visibility 0s .5s; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-spring), opacity .2s; }
.toast .bub { font-size: 17px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .8s var(--ease-out), transform 1s var(--ease-spring); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .studio .side { border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .desk { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 84px 0 24px; }
  .chat-head { padding: 8px; gap: 10px; }
  .chat-ava { width: 42px; height: 42px; }
  .chat-name b { font-size: 18px; }
  .chat-name span { font-size: 13px; }
  .chat-actions .launch-btn { display: none; }
  .msg { max-width: 92%; }
  .bub { font-size: 17px; padding: 12px 16px; }
  .studio .form, .studio .side { padding: 26px 20px; }
  .card-pts, .card-notes { padding: 26px 22px; }
  .composer { padding-left: 16px; }
  .composer input { font-size: 16px; }
  .kv { grid-template-columns: repeat(3, 1fr); }
  .chathead { right: 14px; bottom: 14px; }
  .chathead > button { width: 58px; height: 58px; }
  .sec-head p { font-size: 18px; }
  .typing-row { height: clamp(150px, 46vw, 210px); gap: 8px; }
  .typing-slot { width: min(240px, 58vw); }
  .typing-row .who { font-size: 13px; min-width: 0; flex: 1; }
  .typing-row .msg-ava { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .msg { opacity: 1; transform: none; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- tap-to-shill burst + wordmark bob ---------- */
.typing-slot { cursor: pointer; pointer-events: auto; position: relative; z-index: 4; }
.fly { position: fixed; left: 0; top: 0; z-index: 70; width: 54px; height: 54px; pointer-events: none; will-change: transform, opacity; }
.title-card .wm { animation: bob 6.5s ease-in-out infinite, popin 1.1s var(--ease-spring) both; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes popin { from { scale: .86; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .title-card .wm { animation: none; } }

.ca-soon { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px; font-weight: 800; font-size: 15px; color: #fff; background: rgba(255, 61, 154, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.ca-hero.soon .ca-soon { display: inline-flex; }
.ca-hero.soon #caBuy, .ca-hero.soon #caChart { display: none; }
