/* boon app, on top of style.css: the landing's glass buttons, holo faces, phone, coin cards, eyebrows and
   washes are reused as they are. Class names here avoid the landing's (.big, .empty, .steps, .card). */
body.app {
  min-height: 100vh;
  background:
    radial-gradient(at 5% 20%, #e2e8fa 0, transparent 45%),
    radial-gradient(at 95% 80%, #e8ddf4 0, transparent 45%),
    radial-gradient(at 60% 100%, rgba(212, 240, 234, .5), transparent 40%),
    #f3f5fb fixed;
}
[hidden] { display: none !important; }
.muted { color: #737b8c; }
.num { font-variant-numeric: tabular-nums; }
.link { color: #53688c; text-decoration: underline; text-decoration-color: rgba(83, 104, 140, .3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.glass.wide, .glass.wide .gb { width: 100%; }
.gb:disabled { opacity: .55; cursor: default; transform: none; }

/* header: the landing's, with the nav as glass tabs */
.app-head {
  position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1480px; margin: 0 auto; padding: 18px 40px;
}
.app-nav { display: flex; gap: 8px; padding: 5px; }
.xlogo { display: block; width: 13px; height: 13px; }
.wallet-wrap { position: relative; justify-self: end; }
.wdot { width: 8px; height: 8px; border-radius: 50%; background: #c3c9d6; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .15); }
.is-on .wdot { background: linear-gradient(135deg, #7ee0b0, #3fb07a); }
.brand { display: flex; align-items: center; gap: 16px; }

/* coin art in a holographic squircle: the landing's .face light, with the art inset and the sheen on top */
.holo {
  position: relative; display: block; flex: none; width: 56px; aspect-ratio: 1; padding: 4px; border-radius: 28%;
  background: linear-gradient(152deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .38) 44%, rgba(214, 226, 248, .55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -20px 30px -24px rgba(108, 130, 176, .65), 0 16px 28px -18px rgba(80, 98, 138, .55);
}
.holo img { width: 100%; height: 100%; object-fit: cover; border-radius: 25%; }
.holo::before, .holo::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; }
.holo::before {
  background: linear-gradient(118deg, transparent 14%, rgba(255, 146, 206, .5) 28%, rgba(255, 224, 150, .42) 38%, rgba(126, 206, 255, .5) 50%, rgba(178, 150, 255, .4) 60%, transparent 74%);
  mix-blend-mode: overlay; opacity: .7;
}
.holo::after { background: linear-gradient(140deg, rgba(255, 255, 255, .8) 0%, transparent 30%); opacity: .6; }
.holo .ic { width: 42%; height: 42%; margin: auto; position: absolute; inset: 0; color: #7b8294; stroke-width: 1.6; }
.holo-lg { width: 112px; padding: 6px; }
.holo-xl { width: 128px; padding: 7px; }

/* the glass pane every panel sits on: the landing's coin card */
.pane {
  padding: 22px; border: 1px solid rgba(255, 255, 255, .725); border-radius: 22px;
  background: rgba(255, 255, 255, .48); box-shadow: inset 1px 1px 3px #fff, 0 5px 20px rgba(129, 151, 189, .05);
}
.pane > .eyebrow { display: block; margin-bottom: 14px; font-size: 10px; letter-spacing: 3px; }

/* feed: coins on the left, the phone in the middle, glass panes on the right */
.feed-grid {
  display: grid; grid-template-columns: 300px auto 340px; justify-content: center; gap: 44px;
  max-width: 1480px; margin: 0 auto; padding: 6px 40px 0; height: calc(100vh - 86px);
}
.coin-rail { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding-top: 8px; }
.coin-rail > .eyebrow { padding-left: 6px; }
.coin-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 4px 6px 24px; margin: 0 -6px; scrollbar-width: none; }
.coin-list::-webkit-scrollbar { display: none; }
.coin.mini { gap: 14px; padding: 12px 14px; border-radius: 20px; text-align: left; transition: background .2s, box-shadow .2s, transform .3s var(--ease); }
.coin.mini:hover { background: rgba(255, 255, 255, .66); }
.coin.mini.is-on { background: rgba(255, 255, 255, .82); box-shadow: inset 1px 1px 3px #fff, 0 14px 30px -18px rgba(70, 86, 122, .45); }
.coin.mini .coin-info { gap: 1px; }
.coin.mini strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.coin.mini .pair { padding: 4px 0 0; color: #5f687c; }
.pair .pair-logo .ic { width: 12px; height: 12px; }

.phone-col { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 0; padding-bottom: 22px; }
.phone.feed-phone { height: 100%; max-height: 900px; padding: 10px; }
.feed { position: relative; height: 100%; overflow-y: auto; border-radius: 30px; background: #0d1018; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.feed:focus { outline: none; }
.item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.item video, .art-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-bg { inset: -12%; width: 124%; height: 124%; filter: blur(34px) brightness(.72) saturate(1.2); }
.art-front { position: absolute; left: 50%; top: 40%; width: 60%; translate: -50% -50%; }
.item .phone-ui { z-index: 1; isolation: isolate; inset: auto 16px 18px; }
.item .phone-ui::before { content: ""; position: absolute; inset: -140px -16px -18px; z-index: -1; background: linear-gradient(to top, rgba(10, 13, 20, .7), transparent); pointer-events: none; }
.cap { color: #fff; font-size: 14px; line-height: 1.4; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.cap b { display: block; font-size: 16px; font-weight: 650; }
.first-meter { display: flex; flex-direction: column; gap: 8px; color: rgba(255, 255, 255, .85); font-size: 12px; }
.phone-buy { display: block; transition: transform .3s var(--ease); }
.phone-buy:hover { transform: scale(.98); }
.sound {
  position: absolute; top: 24px; right: 24px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(23, 28, 40, .4); backdrop-filter: blur(6px); color: #fff; cursor: pointer;
}
.sound .ic { width: 18px; height: 18px; }
.new-pill { position: absolute; top: 26px; left: 50%; translate: -50% 0; z-index: 4; }

.side-panes { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 8px 6px 24px; margin: 0 -6px; scrollbar-width: none; }
.side-panes::-webkit-scrollbar { display: none; }
.coin-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.coin-head .holo { width: 64px; }
.coin-head h2 { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.coin-head small { font-size: 12px; color: #7a8496; }
.coin-line { margin-top: 14px; font-size: 14px; color: #5f687c; }
.pane .stats { margin-top: 16px; flex-wrap: wrap; gap: 14px 22px; }
.pane .stats small { font-size: 11px; color: #7a8496; }

/* buy */
.buy { display: flex; flex-direction: column; gap: 12px; }
.pill-in {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border: 1px solid #d8deec; border-radius: 100px;
  background: rgba(255, 255, 255, .79); color: #7b8294; transition: border-color .2s, box-shadow .2s;
}
.pill-in:focus-within { border-color: #aab6d0; box-shadow: 0 0 0 4px rgba(120, 140, 200, .14); }
.pill-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: #222a3a; font-variant-numeric: tabular-nums; }
.pill-in input::placeholder { color: #8b93a5; }
.pill-in span { font-size: 13px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick .glass, .quick .gb { width: 100%; }
.quick .gb { height: 36px; }
.quick .gb > span { padding: 0 8px; font-size: 12px; }
.hint { min-height: 18px; font-size: 12px; color: #5f687c; }
.hint:empty { display: none; }
.hint.is-bad { color: #b3403a; }
.hint.is-ok { color: #1f6b45; }

/* next clip: filled slots are thumbnails, the next one fills with the iridescent gradient as fees come in */
.figure { font-size: 34px; font-weight: 550; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.figure span { color: #9aa2b4; }
.slot-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.slot {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px;
  background: linear-gradient(160deg, #fff, #e6ebf5); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(120, 130, 200, .12);
}
.slot img, .slot video { width: 100%; height: 100%; object-fit: cover; }
.slot a { position: absolute; inset: 0; }
.slot.is-next { border: 1px dashed rgba(122, 132, 150, .45); background: rgba(255, 255, 255, .5); box-shadow: none; }
.slot.is-next i {
  position: absolute; inset: auto 0 0; height: var(--fill, 0%); transition: height .8s var(--ease);
  background: linear-gradient(0deg, rgba(178, 150, 255, .75), rgba(126, 206, 255, .7) 40%, rgba(255, 224, 150, .7) 70%, rgba(255, 146, 206, .7));
}
.slot.is-working { background: #1c2230; }
.slot.is-working::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px;
  border: 2px solid rgba(255, 255, 255, .22); border-top-color: #fff; border-radius: 50%; animation: turn 1s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.next-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: #5f687c; }
.next-note b { color: var(--ink); font-weight: 600; }
.meter { display: block; height: 6px; border-radius: 99px; background: rgba(23, 28, 40, .08); overflow: hidden; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); }
.meter s { display: block; width: var(--fill, 0%); height: 100%; border-radius: inherit; text-decoration: none; transition: width .8s var(--ease);
  background: linear-gradient(90deg, #b296ff, #7eceff 40%, #ffe096 70%, #ff92ce); }
.first-meter .meter { background: rgba(255, 255, 255, .22); }
.pane-links { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 6px; font-size: 13px; }

/* pages */
.page { max-width: 1240px; margin: 0 auto; padding: 30px 40px 90px; }
.page-head { text-align: center; }
.title { margin: 14px 0 12px; font-size: clamp(2.3rem, 3.85vw, 3.6rem); font-weight: 550; line-height: 1.05; letter-spacing: -.045em; color: #171d29; }
.lead { max-width: 640px; margin: 0 auto; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.5; letter-spacing: -.02em; color: #6d7484; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #53688c; }
.back .ic { width: 16px; height: 16px; }

/* launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 620px) 300px; justify-content: center; gap: 56px; margin-top: 44px; align-items: start; }
.form-pane { display: flex; flex-direction: column; gap: 22px; padding: 30px; border-radius: 27px; }
.pick { display: flex; align-items: center; gap: 22px; cursor: pointer; }
.pick .holo { transition: transform .4s var(--ease); }
.pick:hover .holo { transform: scale(1.03) rotate(-2deg); }
.pick b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.pick small { display: block; margin-top: 4px; font-size: 13px; color: #737b8c; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.row2 { display: grid; grid-template-columns: 1fr 190px; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > span:first-child { padding-left: 20px; font-size: 13px; font-weight: 550; color: #34445e; }
.fld .pill-in.tick input { text-transform: uppercase; }
.fld textarea {
  min-height: 84px; padding: 16px 20px; border: 1px solid #d8deec; border-radius: 24px; outline: 0; resize: none;
  background: rgba(255, 255, 255, .79); font: inherit; font-size: 16px; line-height: 1.45; color: #222a3a; transition: border-color .2s, box-shadow .2s;
}
.fld textarea:focus { border-color: #aab6d0; box-shadow: 0 0 0 4px rgba(120, 140, 200, .14); }
.fld small { padding-left: 20px; font-size: 12px; color: #7a8496; }
.fld .err { color: #b3403a; }
.fld .err:empty { display: none; }
.fld.is-bad .pill-in, .fld.is-bad textarea { border-color: #d99a95; }
.split { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .5); box-shadow: inset 1px 1px 3px #fff; }
.split h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.split p { font-size: 13px; line-height: 1.55; color: #5f687c; }
.split-bar { display: flex; gap: 4px; height: 44px; }
.split-bar span { display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.split-bar .you { flex: 30; color: #fff; background: linear-gradient(-75deg, rgba(32, 40, 56, .96), rgba(82, 96, 120, .92), rgba(32, 40, 56, .96)); }
.split-bar .vid { flex: 50; color: #1d2433; background: linear-gradient(100deg, rgba(178, 150, 255, .55), rgba(126, 206, 255, .55) 40%, rgba(255, 224, 150, .55) 70%, rgba(255, 146, 206, .55)); box-shadow: inset 0 1px 1px #fff; }
.split-bar .boon { flex: 20; color: #34445e; background: linear-gradient(120deg, #fff, rgba(220, 229, 244, .64)); box-shadow: inset 0 2px 3px #fff; }
.cost { font-size: 13px; color: #5f687c; }
.form-err { font-size: 13px; color: #b3403a; }
.form-err:empty { display: none; }
.progress { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; font-size: 14px; }
.progress li { display: flex; align-items: center; gap: 12px; color: #9aa2b4; }
.progress li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c9d0de; }
.progress li.is-now { color: var(--ink); }
.progress li.is-now::before { border-color: var(--ink); border-top-color: transparent; animation: turn 1s linear infinite; }
.progress li.is-done { color: #34445e; }
.progress li.is-done::before { border-color: #3fb07a; background: #3fb07a; }
.done { display: flex; flex-direction: column; gap: 14px; }
.done h2 { font-size: 26px; font-weight: 550; letter-spacing: -.04em; }
.done .row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; }
.preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.preview .phone { width: 100%; }
.preview .item { border-radius: 30px; }
.preview > p { font-size: 12px; text-align: center; color: #7a8496; }
.art-empty { position: absolute; left: 50%; top: 40%; display: grid; place-items: center; width: 56%; aspect-ratio: 1; translate: -50% -50%; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 28%; color: rgba(255, 255, 255, .4); }
.art-empty .ic { width: 30px; height: 30px; }

/* coin page */
.coin-top { display: flex; align-items: center; gap: 30px; margin-top: 22px; }
.coin-top .title { margin: 6px 0 8px; }
.coin-top .lead { margin: 0; }
.meta { margin-top: 12px; font-size: 13px; color: #737b8c; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; margin-top: 36px; align-items: start; }
.coin-grid .side-panes { overflow: visible; padding: 0; margin: 0; }
.coin-grid .pane > .meter { margin-top: 18px; }
.phone.mini .slot.is-next { height: 100%; aspect-ratio: auto; border-radius: 20px; }
.sub { margin: 40px 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.clip-card { display: flex; flex-direction: column; gap: 10px; }
.phone.mini { padding: 6px; border-radius: 26px; }
.phone.mini .slot { height: 100%; aspect-ratio: auto; border-radius: 20px; }
.phone.mini .phone-tag { position: absolute; left: 14px; bottom: 14px; font-size: 10px; }
.clip-card small { padding-left: 6px; font-size: 12px; color: #737b8c; }

/* my coins */
.earned-head { text-align: center; }
.my-coins { margin-top: 44px; }
.my-coins .coin { transition: background .2s, transform .3s var(--ease); }
.my-coins .coin:hover { background: rgba(255, 255, 255, .7); transform: translateY(-2px); }
.my-coins .holo { width: 80px; }
.my-coins .pair { flex-direction: column; align-items: stretch; gap: 6px; }
.blank { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 60px auto 0; max-width: 460px; text-align: center; }
.blank p { color: #6d7484; }

.toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 30; max-width: min(560px, calc(100vw - 32px)); padding: 12px 20px;
  border-radius: 999px; color: #fff; font-size: 13px; background: linear-gradient(-75deg, rgba(32, 40, 56, .96), rgba(82, 96, 120, .94), rgba(32, 40, 56, .96));
  box-shadow: 0 16px 30px -14px rgba(23, 28, 40, .6);
}
.toast a { text-decoration: underline; text-underline-offset: 3px; }
.toast.is-bad { background: #b3403a; }

@media (max-width: 1240px) {
  .feed-grid { grid-template-columns: 250px auto 300px; gap: 28px; padding-inline: 24px; }
  .launch-grid { grid-template-columns: minmax(0, 560px) 260px; gap: 36px; }
}
@media (max-width: 1040px) {
  .feed-grid { grid-template-columns: auto 300px; }
  .coin-rail { display: none; }
  .coin-grid { grid-template-columns: 1fr; }
  .coin-grid .side-panes { order: -1; }
  .launch-grid { grid-template-columns: minmax(0, 620px); }
  .preview { position: static; max-width: 280px; margin: 0 auto; }
}

/* phones: the nav moves to a glass bar at the bottom and the feed fills the screen */
@media (max-width: 820px) {
  .app-head { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .app-head .logo img { height: 38px; }
  .app-nav {
    position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 10; padding: 6px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .85); background: rgba(243, 245, 251, .72); backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 2px #fff, 0 12px 30px -14px rgba(70, 86, 122, .5);
  }
  .wallet-wrap .gb > span { padding: 0 16px; }
  .feed-grid { display: block; height: auto; padding: 0; }
  .side-panes { display: none; }
  .coin-grid .side-panes { display: flex; }
  .phone-col { padding: 0; }
  .phone.feed-phone { height: calc(100dvh - 62px); max-height: none; width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; aspect-ratio: auto; }
  .feed { border-radius: 0; }
  .item .phone-ui { inset: auto 16px 86px; }
  .page { padding: 16px 16px 110px; }
  .coin-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .form-pane { padding: 20px; }
  .split-bar span { font-size: 11px; }
  .my-coins { grid-template-columns: 1fr; }
}
.label, .lbl { font-weight: inherit; }
.art-front .holo { width: 100%; }
.preview .item { height: 100%; border-radius: 30px; background: #0d1018; }
.done .holo { margin-bottom: 4px; }
/* a wide glass button's shine has to span the whole pill, not just the label */
.glass.wide .gb > span { width: 100%; justify-content: center; }
.pick small { padding-left: 0; }
.phone.mini .phone-tag { max-width: calc(100% - 28px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
