/* Blasmeya · Majorelle. Majorelle blue ground, white "paper" cards, lemon for actions and money,
   ink outlines with hard offset shadows like a printed poster. */
:root {
  color-scheme: dark;
  --blue: #1d3dd8;       /* Majorelle: the ground */
  --blue-2: #2f4fe6;     /* raised tiles on blue */
  --blue-3: #1631b5;     /* deep: tab bar, inactive segments */
  --ink: #0e1236;        /* outlines, text on paper and lemon */
  --lemon: #f6e04b;      /* actions, coins, unread */
  --paper: #ffffff;      /* cards and sheets */
  --mist: #e8ecff;       /* soft fills on paper */
  --on-blue-muted: #c3ccff;
  --on-paper-muted: #5560a0;
  --edge: 2px solid var(--ink);
  --pop: 3px 3px 0 var(--ink);
  --display: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #0b0f2e; color: #fff; font-family: var(--body); font-size: 14px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.app {
  height: 100%; max-width: 480px; margin: 0 auto; position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--blue); padding-top: env(safe-area-inset-top, 0px);
}
@media (min-width: 600px) {
  body { display: grid; place-items: center; padding: 16px; }
  .app { height: min(860px, calc(100vh - 32px)); width: 400px; border-radius: 36px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
}

/* icons */
.coin { width: 15px; height: 15px; flex: none; vertical-align: -2px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; }
.hero-i { display: block; width: 56px; height: 56px; margin: 0 auto 6px; color: var(--lemon); }

/* intro (about 2 seconds): pop in, eyes left, eyes right, blink, name, fade out */
.splash { position: absolute; inset: 0; z-index: 20; background: var(--blue); display: grid; place-content: center; justify-items: center; gap: 14px; cursor: pointer; transition: opacity .35s ease, visibility .35s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-logo { width: 150px; height: 150px; overflow: visible; animation: splash-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; filter: drop-shadow(6px 6px 0 var(--ink)); }
.splash-logo .pupils { animation: splash-look 1.3s .4s ease-in-out both; }
.splash-logo .eyes { transform-box: fill-box; transform-origin: center; animation: splash-blink .22s 1.35s ease-in-out both; }
.splash-logo .star { transform-box: fill-box; transform-origin: center; animation: splash-spin .6s 1.45s ease-out both; }
.splash-word { font-family: var(--display); font-size: 34px; color: #fff; animation: splash-up .4s 1.35s ease-out both; }
@keyframes splash-pop { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-look {
  0% { transform: translateX(0); }
  20%, 40% { transform: translateX(-6px); }   /* look left */
  55%, 78% { transform: translateX(6px); }    /* look right */
  100% { transform: translateX(0); }
}
@keyframes splash-blink { 50% { transform: scaleY(.1); } }
@keyframes splash-spin { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@keyframes splash-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash-word { opacity: 1; } }

/* header */
.head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.brand { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 18px; color: #fff; }
.brand svg { width: 30px; height: 30px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--lemon); color: var(--ink); border: var(--edge); box-shadow: 2px 2px 0 var(--ink); }
.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.15); } }

.screen { flex: 1; overflow-y: auto; padding: 4px 16px 18px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.view { display: none; }
.view.on { display: block; animation: in .2s ease-out; }
@keyframes in { from { opacity: .3; transform: translateY(6px); } }
.title { font-size: 19px; font-weight: 800; margin: 4px 0 12px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.title small { font-size: 12px; font-weight: 800; color: var(--ink); background: var(--lemon); border-radius: 999px; padding: 2px 9px; }
.title small:empty { display: none; }
.muted { color: var(--on-blue-muted); font-size: 12px; }
.empty { text-align: center; color: var(--on-blue-muted); padding: 40px 12px; }

.head-r { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; width: 38px; height: 34px; border-radius: 12px; border: var(--edge); background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); }
.bell .i { width: 19px; height: 19px; }
.bell .badge { top: -7px; right: -7px; }

/* mood rooms */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room { text-align: left; border: var(--edge); box-shadow: var(--pop); border-radius: 18px; padding: 14px 12px 12px; display: grid; gap: 6px; align-content: start; min-height: 132px; background: var(--paper); color: var(--ink); }
.room .i { width: 30px; height: 30px; stroke-width: 1.9; }
.room b { font-size: 17px; font-weight: 800; }
.room span { font-size: 12px; color: var(--on-paper-muted); line-height: 1.3; }
.room small { margin-top: auto; font-size: 11px; font-weight: 800; }
.room.humor { background: var(--lemon); }
.room.horror { background: var(--ink); color: #fff; }
.room.horror span { color: var(--on-blue-muted); }
.room.horror .i, .room.horror small { color: var(--lemon); }
.room.love .i { color: #e5484d; }
.room.study .i, .room.confess .i { color: var(--blue); }
.room.support, .room.confess { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.room.support .i, .room.confess .i { grid-row: span 3; }
.room.support { background: var(--mist); }
.room.support .i { color: var(--blue); }
.room-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.room-name { font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.room-name .i { width: 24px; height: 24px; color: var(--lemon); }
.banner { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; background: var(--mist); color: var(--ink); border: var(--edge); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.banner .i { color: var(--blue); width: 20px; height: 20px; margin-top: 1px; }
.banner button { grid-column: 2; justify-self: start; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chips button { border: 2px solid var(--ink); background: var(--blue-2); color: #fff; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.chips button .i { width: 15px; height: 15px; }
.chips button[aria-pressed="true"] { background: var(--lemon); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.tag-room { font-size: 11px; font-weight: 800; color: var(--blue); }
.rules { background: var(--blue-2); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.rules summary { cursor: pointer; font-weight: 800; color: var(--lemon); }
.rules ol { margin: 8px 0 2px; padding-left: 20px; display: grid; gap: 5px; color: #fff; }
.handle-row { display: flex; align-items: center; background: var(--paper); color: var(--ink); border: var(--edge); border-radius: 12px; padding-left: 12px; font-size: 16px; font-weight: 800; }
.handle-row .field { border: 0; padding-left: 2px; }
.handle-msg { font-size: 12px; font-weight: 700; min-height: 16px; margin-top: -4px; }
.handle-msg.ok { color: var(--lemon); }
.handle-msg.no { color: #ffc2c2; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--on-blue-muted); }
.ideas button { border: 1.5px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.member { display: inline-flex; align-items: center; gap: 6px; background: var(--lemon); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.support-box { display: grid; gap: 10px; }
.support-box p { margin: 0; font-size: 15px; line-height: 1.45; }
.sos { display: grid; gap: 6px; }
.sos div { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid var(--ink); border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 14px; }
.sos b { font-family: var(--display); font-size: 20px; color: var(--blue); user-select: all; }
.notif { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; background: var(--paper); color: var(--ink); }
.notif.new { background: #fffbe0; }
.notif .i { color: var(--blue); width: 20px; height: 20px; margin-top: 2px; }
.notif > span { display: block; min-width: 0; }
.notif b { display: block; font-size: 13px; color: var(--ink); }
.notif span span { display: block; font-size: 12px; color: var(--on-paper-muted); }
.support-box .title { justify-content: flex-start; gap: 8px; padding-right: 40px; }
.support-box .title .i { width: 24px; height: 24px; color: var(--blue); }

/* inbox + link */
.linkcard { display: grid; gap: 8px; margin-bottom: 14px; }
.linkcard .muted { color: #fff; font-weight: 700; font-size: 13px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); color: var(--ink); border: var(--edge); border-radius: 14px; padding: 10px 12px; margin: 12px 0 10px; font-weight: 700; font-size: 14px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--blue); }
.msg.new .ic { background: var(--ink); }
.send { align-items: stretch; }
.send .who { text-align: center; display: grid; gap: 6px; justify-items: center; margin: 4px 0 6px; }
.send .who b { font-size: 20px; }
.send .ask { background: var(--lemon); color: var(--ink); border: var(--edge); box-shadow: var(--pop); border-radius: 16px; padding: 14px; font-weight: 800; font-size: 18px; text-align: center; }
.send .seg2 { margin: 0; }
.send .done { margin: auto 0; text-align: center; display: grid; gap: 10px; }

/* tabs */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; border-top: var(--edge); background: var(--blue-3); padding: 7px 4px calc(10px + env(safe-area-inset-bottom, 0px)); }
.tabs button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: #9fb0ff; position: relative; padding: 2px 0; }
.tabs svg { width: 22px; height: 22px; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .plus { width: 46px; height: 34px; border-radius: 12px; background: var(--lemon); color: var(--ink); border: var(--edge); box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; }
.tabs .plus .i { width: 20px; height: 20px; stroke-width: 2.8; }
.badge { position: absolute; top: -3px; right: calc(50% - 21px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--lemon); color: var(--ink); border: 1.5px solid var(--ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* paper cards */
.list { display: grid; gap: 10px; }
.card { background: var(--paper); color: var(--ink); border: var(--edge); box-shadow: var(--pop); border-radius: 16px; padding: 12px; display: grid; gap: 9px; }
.card .top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--on-paper-muted); }
.mask { width: 26px; height: 26px; border-radius: 50%; background: var(--lemon); border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none; }
.mask svg { width: 19px; height: 19px; }
.card .top b { color: var(--ink); font-weight: 800; }
.card .top .tag { margin-left: auto; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.txt { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bar { display: flex; gap: 6px; flex-wrap: wrap; }
.act { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--ink); background: var(--mist); color: var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.act.on { background: var(--blue); color: #fff; }
.act .coin { width: 13px; height: 13px; }

.voice { display: flex; align-items: center; gap: 10px; background: var(--ink); border-radius: 12px; padding: 8px 10px; color: #fff; }
.play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--lemon); color: var(--ink); flex: none; display: grid; place-items: center; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; min-width: 0; overflow: hidden; }
.wave i { width: 3px; flex: none; border-radius: 2px; background: rgba(246, 224, 75, .4); transition: background .12s; }
.wave i.done { background: var(--lemon); }
.voice.locked { padding: 8px 8px 8px 10px; }
.voice.locked .play { background: rgba(255, 255, 255, .14); color: var(--lemon); }
.voice .vl { flex: 1; min-width: 0; display: grid; }
.voice .vl b { font-size: 13px; font-weight: 800; }
.voice .vl small { font-size: 11px; color: var(--on-blue-muted); display: inline-flex; align-items: center; gap: 4px; }
.voice.locked .btn { padding: 7px 10px; font-size: 12px; box-shadow: 2px 2px 0 #000; border-color: #000; }
.comment { border: 1.5px solid var(--ink); border-radius: 12px; padding: 9px 11px; display: grid; gap: 3px; }
.comment .top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--on-paper-muted); }
.comment .top b { color: var(--ink); font-weight: 800; }
.comment .top b.creator { background: var(--lemon); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; }
.comment .txt { font-size: 14px; font-weight: 500; }
.comment .flag { margin-left: auto; border: 0; background: none; color: var(--on-paper-muted); padding: 2px; }
.fx { font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 3px 8px; flex: none; display: inline-flex; align-items: center; gap: 3px; }

/* inbox rows */
.msg { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: var(--edge); box-shadow: var(--pop); border-radius: 14px; padding: 11px 12px; background: var(--paper); color: var(--ink); }
.msg.new { background: var(--lemon); }
.msg .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--lemon); display: grid; place-items: center; flex: none; }
.msg .ic .i { width: 19px; height: 19px; }
.msg .mid { flex: 1; min-width: 0; }
.msg .mid b { display: block; font-size: 14px; font-weight: 800; }
.msg .mid span { display: block; font-size: 12px; color: var(--on-paper-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.new .mid span { color: #6b5f10; }
.msg .cost { font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 9px; flex: none; display: inline-flex; align-items: center; gap: 4px; }
.msg .cost.free { background: var(--blue); }

/* buttons + fields */
.btn { border: var(--edge); border-radius: 14px; padding: 11px 14px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-shadow: var(--pop); transition: transform .08s, box-shadow .08s; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.main { background: var(--lemon); color: var(--ink); }
.btn.gold { background: var(--paper); color: var(--ink); }
.btn.soft { background: var(--mist); color: var(--ink); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.link { border: 0; background: none; color: var(--on-blue-muted); font-weight: 700; font-size: 13px; text-decoration: underline; }
.field { width: 100%; border: var(--edge); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.field::placeholder { color: #8a92c4; }
textarea.field { resize: none; min-height: 96px; }
.row { display: flex; gap: 6px; }
.row .field { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.check input { width: 18px; height: 18px; accent-color: var(--lemon); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue-3); border: var(--edge); border-radius: 13px; padding: 3px; margin-bottom: 12px; }
.seg2 button { border: 0; background: none; border-radius: 9px; padding: 8px; font-weight: 800; font-size: 13px; color: #c3ccff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg2 button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.sheet .seg2 { background: var(--mist); }
.sheet .seg2 button { color: var(--on-paper-muted); }
.sheet .seg2 button[aria-selected="true"] { background: var(--ink); color: #fff; }

/* recorder */
.rec { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: var(--pop); display: grid; place-items: center; margin: 8px auto; background: var(--lemon); color: var(--ink); }
.rec .i { width: 30px; height: 30px; }
.rec.on { background: var(--paper); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.center { text-align: center; }
.up { font-size: 12px; color: var(--on-blue-muted); }
.up label { color: #fff; text-decoration: underline; cursor: pointer; }
.up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fxs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.fxs button { border: 2px solid transparent; background: var(--blue-2); color: #fff; border-radius: 12px; padding: 9px 2px; font-size: 11px; font-weight: 800; display: grid; justify-items: center; gap: 3px; }
.fxs button span { display: grid; place-items: center; }
.fxs button .i { width: 26px; height: 26px; stroke-width: 1.8; }
.fxs button[aria-pressed="true"] { background: var(--lemon); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* wallet */
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.box { background: var(--paper); color: var(--ink); border: var(--edge); box-shadow: var(--pop); border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.box .lbl { font-size: 12px; color: var(--on-paper-muted); font-weight: 700; }
.box .num { font-family: var(--display); font-size: 26px; line-height: 1; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.box .num .coin { width: 22px; height: 22px; }
.box.earn .num { color: var(--blue); }
.box .muted { color: var(--on-paper-muted); }
.meter { height: 8px; border-radius: 4px; background: var(--mist); border: 1.5px solid var(--ink); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); transition: width .4s; }
.pack { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border: var(--edge); border-radius: 14px; padding: 10px 12px; }
.pack.best { background: var(--lemon); box-shadow: var(--pop); }
.pack .n { font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 4px; min-width: 52px; }
.pack .d { flex: 1; font-size: 12px; color: var(--on-paper-muted); }
.pack.best .d { color: #6b5f10; }
.pack .btn { padding: 7px 12px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }

/* me */
.profile { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.ava { width: 54px; height: 54px; border-radius: 50%; background: var(--lemon); border: var(--edge); display: grid; place-items: center; flex: none; }
.ava svg { width: 38px; height: 38px; }
.linkbox { display: flex; align-items: center; gap: 6px; background: var(--paper); color: var(--ink); border: var(--edge); box-shadow: var(--pop); border-radius: 14px; padding: 6px 6px 6px 12px; font-weight: 800; font-size: 13px; }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox .btn { padding: 7px 12px; font-size: 12px; box-shadow: none; background: var(--lemon); }
.storyimg { display: block; width: 52%; margin: 14px auto 6px; border-radius: 14px; border: var(--edge); box-shadow: 4px 4px 0 var(--ink); }

/* sheets and overlays */
.scrim { position: absolute; inset: 0; background: rgba(11, 15, 46, .6); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 5; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--paper); color: var(--ink); border-top: 3px solid var(--ink); border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 86%; overflow-y: auto; transform: translateY(105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.sheet.on { transform: none; }
.sheet .title { color: var(--ink); }
.sheet .muted, .sheet .empty { color: var(--on-paper-muted); }
.sheet .storyimg { width: 62%; }
video.storyimg { background: var(--blue); }
.photobar { display: grid; gap: 8px; margin-top: 10px; }
.photobar .seg2 { margin: 0; }
.photobar .linkbtn { margin: 0 auto; }
.photobar p { margin: 0; font-size: 11px; }
.voicefree { font-size: 12px; margin: 10px 2px -2px; }
.locked { text-align: center; padding: 18px 14px; }
.locked .i { display: block; width: 34px; height: 34px; margin: 0 auto 8px; }
.locked p { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.linkbtn { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--blue); font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .2; margin: 0 auto 12px; }
.sheet-x { position: sticky; top: 0; float: right; margin: -6px -4px 4px 8px; width: 34px; height: 34px; border-radius: 50%; border: var(--edge); background: var(--paper); color: var(--ink); display: grid; place-items: center; z-index: 1; }
.sheet-x .i { width: 18px; height: 18px; stroke-width: 2.6; }
#sheet-b { clear: both; }
.big { border-radius: 16px; padding: 16px; background: var(--blue); color: #fff; border: var(--edge); box-shadow: var(--pop); font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 12px; background: var(--mist); border: 1.5px solid var(--ink); margin-top: 8px; font-weight: 800; font-size: 13px; }
.overlay { position: absolute; inset: 0; z-index: 7; background: var(--blue); display: flex; flex-direction: column; gap: 12px; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 18px; overflow-y: auto; }
.overlay .title { justify-content: center; }
.auth { justify-content: flex-start; gap: 0; }
.auth .step { display: flex; flex-direction: column; gap: 18px; margin: auto 0; padding: 8px 0 12px; }
.auth .step[hidden] { display: none; }
.auth .group { display: flex; flex-direction: column; gap: 10px; }
.auth .group > label:not(.check) { font-weight: 800; font-size: 15px; color: #fff; }
.auth .handle { margin: -6px 0 0; }
.auth .link.back { display: inline-flex; align-items: center; gap: 4px; }
.auth .link.back .i { width: 16px; height: 16px; }
.steps { display: flex; justify-content: center; gap: 6px; padding: 2px 0 6px; }
.steps i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
.steps i.on { background: var(--lemon); width: 36px; }
.refcard { display: flex; flex-direction: column; gap: 10px; border: var(--edge); border-radius: 16px; padding: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--pop); margin-bottom: 12px; }
.refcard .title { justify-content: flex-start; gap: 8px; margin: 0; color: var(--ink); font-size: 17px; }
.refcard .muted { color: #4b5287; }
.refcard .title .i { width: 20px; height: 20px; }
.refcard .bar { height: 10px; border-radius: 6px; background: var(--mist); border: 1.5px solid var(--ink); overflow: hidden; }
.refcard .bar i { display: block; height: 100%; background: var(--lemon); }
.auth svg.logo { width: 92px; height: 92px; margin: 0 auto; }
.auth h1 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; text-align: center; text-wrap: balance; }
.auth ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth li { display: flex; align-items: center; gap: 12px; background: var(--blue-2); border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.auth li .i { width: 20px; height: 20px; color: var(--lemon); }
.handle { font-family: var(--display); font-size: 21px; text-align: center; color: var(--ink); background: var(--lemon); border: var(--edge); box-shadow: var(--pop); border-radius: 16px; padding: 16px; overflow-wrap: anywhere; }
.toast { position: absolute; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 9; transform: translate(-50%, -200%); background: var(--ink); color: var(--lemon); border: 2px solid var(--lemon); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13px; transition: transform .25s; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.toast.on { transform: translate(-50%, 0); }

/* bank transfer */
.tf-steps { margin: 4px 0 12px; padding-left: 20px; font-size: 13px; display: grid; gap: 6px; }
.tf { display: grid; gap: 6px; }
.tf-acc { font-size: 12px; font-weight: 800; margin-top: 8px; color: inherit; }
.tf-row { display: flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border: var(--edge); border-radius: 12px; padding: 8px 10px; }
.tf-row .tf-l { font-size: 11px; color: var(--on-paper-muted); width: 74px; flex: none; }
.tf-row .tf-v { flex: 1; font-size: 13px; word-break: break-all; font-variant-numeric: tabular-nums; }
.tf-row.big { background: var(--lemon); }
.tf-row.big .tf-v { font-size: 20px; letter-spacing: 2px; }
.tf-row .btn { padding: 5px 10px; font-size: 12px; box-shadow: 2px 2px 0 var(--ink); }
button.pack { width: 100%; text-align: left; font: inherit; cursor: pointer; }
button.pack:disabled { cursor: default; opacity: .75; }

/* story topics + share */
.topics { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.topics button { flex: none; max-width: 210px; text-align: left; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.25; padding: 8px 10px; border-radius: 12px; border: var(--edge); background: var(--paper); color: var(--ink); cursor: pointer; }
.topics button[aria-selected="true"] { background: var(--lemon); box-shadow: 2px 2px 0 var(--ink); }
.topics button.mine { border-style: dashed; }
.topics button .i { width: 13px; height: 13px; vertical-align: -2px; }
.ownq { display: flex; gap: 8px; margin-bottom: 10px; }
.ownq .field { flex: 1; margin: 0; }
.ownq .btn { flex: none; }
.themebar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.themebar button { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--ink); cursor: pointer; padding: 0; }
.themebar button[aria-pressed="true"] { outline: 3px solid var(--lemon); outline-offset: 2px; }
.sharebar { margin-top: 10px; }

/* recorder preview: play / pause / resume, delete */
.preview { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 2px; }
.preview .pbar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.preview .pbar i { display: block; height: 100%; width: 0; background: var(--lemon); transition: width .2s linear; }

/* custom number of coins */
.pack.custom input { width: 68px; font: inherit; font-weight: 800; font-size: 16px; color: var(--ink); background: var(--mist); border: 2px solid var(--ink); border-radius: 10px; padding: 4px 6px; }
.pack.custom .d { font-size: 11px; }

/* links that look like buttons */
a.btn { text-decoration: none; }

/* recording: start/finish + pause/continue side by side */
.recrow { display: inline-flex; align-items: center; gap: 14px; }
.recpause { width: 48px; height: 48px; border-radius: 50%; border: var(--edge); background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); }
.play.on { box-shadow: 0 0 0 3px rgba(246, 224, 75, .35); }

/* our Instagram link (signup, message sent) */
.iglink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 6px auto 0; color: var(--on-blue-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.iglink b { color: var(--lemon); }
.iglink svg { width: 18px; height: 18px; }
