@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141413;
  --sans: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --impact: "Newsreader", "Songti SC", "STSong", "SimSun", serif;
}

html { font-variation-settings: 'opsz' 16; color-scheme: dark; }

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow: hidden; }

.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.media, .media > * { position: absolute; inset: 0; }
.media { z-index: 0; background: #000; }

.poster, .video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video { opacity: 0; transition: opacity .5s ease; }
.video.is-playing { opacity: 1; }

.scrim {
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 20%, rgba(0,0,0,0) 32%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.68) 55%, rgba(0,0,0,.9) 66%, #000 78%);
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding:
    calc(env(safe-area-inset-top, 0px) + 36px)
    24px
    calc(env(safe-area-inset-bottom, 0px) + 20px);
}

.brand {
  align-self: center;
}

.brand img {
  display: block;
  width: 184px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0,0,0,.45));
}

.copy {
  margin-top: auto;
  text-align: center;
  transition: opacity .25s ease;
}

.stage.is-sheet .copy { opacity: 0; }

.copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--impact);
  font-size: 56px;
  font-weight: 700;
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 16, 'wght' 700;
  letter-spacing: -.012em;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 2px 44px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.28);
}

.copy h1 span {
  display: block;
  white-space: nowrap;
}

.actions {
  margin-top: 34px;
  margin-right: -8px;
  margin-left: -8px;
  padding-top: 2px;
  transition: opacity .25s ease;
}

.stage.is-sheet .actions { opacity: 0; pointer-events: none; }

.create {
  display: block;
  width: 100%;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.create:active { opacity: .86; }

.switch {
  margin: 34px 0 2px;
  color: rgba(255,255,255,.64);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.login {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 入场：黑圆幕 + 字标擦出 + 收进中心，1.8s 后交接到登录页。 */
.splash {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.splash-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  border-radius: 50%;
  background: #000;
  animation: disc-out .5s cubic-bezier(.7,0,.3,1) 1.28s both;
}

.splash-mark {
  position: relative;
  width: clamp(150px, 38vw, 250px);
  height: auto;
  animation:
    mark-wipe .9s cubic-bezier(.76,0,.24,1) both,
    mark-suck .5s cubic-bezier(.7,0,.3,1) 1.28s both;
}

@keyframes mark-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes mark-suck {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(.04); opacity: 0; }
}

@keyframes disc-out {
  to { transform: scale(0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  .video { opacity: 0 !important; }
}

@media (min-width: 700px) {
  .content { padding-left: 40px; padding-right: 40px; }
  .create { max-width: 420px; margin: 0 auto; }
  .brand img { width: 184px; }
}

.screen { position: absolute; inset: 0; z-index: 1; }
.screen[hidden] { display: none; }

/* 创建账号：Wise 式底部抽屉，压在同一个登录画面上，比例和登录页一致。 */
.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.sheet-layer[hidden] { display: none; }

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  transition: opacity .3s ease;
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  max-height: 92svh;
  overflow-y: auto;
  padding:
    12px
    24px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
  border-radius: 28px 28px 0 0;
  background: #1F1F1F;
  transform: translate(-50%, 102%);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.sheet-layer.is-open .sheet-scrim { opacity: 1; }
.sheet-layer.is-open .sheet { transform: translate(-50%, 0); }

.sheet-grabber {
  width: 36px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sheet-title {
  margin: 10px 44px 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.sheet-sub {
  margin: 8px 0 0;
  color: rgba(255,255,255,.58);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.sheet-actions {
  display: grid;
  margin-top: 26px;
}

.sheet-btn {
  display: flex;
  width: 100%;
  height: 60px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sheet-btn:active { background: #333; }

.sheet-google {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.sheet-google:active { background: #f1f1f1; }

.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
}

.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.16);
}

.email-field {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 8px 0 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  transition: border-color .2s ease;
}

.email-field:focus-within { border-color: rgba(255,255,255,.4); }

.email-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}

.email-field input::placeholder { color: rgba(255,255,255,.42); }

.email-go {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.email-go:disabled { opacity: .3; cursor: default; }

.sheet-actions svg { flex: none; }

.legal {
  margin: 22px auto 0;
  max-width: 340px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.legal a {
  color: rgba(255,255,255,.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 桌面：iPhone 外壳预览；手机端直接满屏，不加壳。 */
.device { display: contents; }
.device-screen { display: contents; }
.device-status, .device-island { display: none; }

@media (min-width: 560px) {
  html, body { height: auto; min-height: 100svh; background: #e9e6df; }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 16px;
    background: #e9e6df;
    background-image: radial-gradient(1200px 760px at 50% 10%, #fbf9f4 0%, #e4e0d7 48%, #c9c4b9 100%);
    background-attachment: fixed;
  }

  .device::before,
  .device::after {
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #2b2b2b;
  }

  .device::before {
    top: 168px;
    left: -3px;
    height: 58px;
    box-shadow: 0 70px 0 #2b2b2b;
  }

  .device::after {
    top: 232px;
    right: -3px;
    height: 92px;
  }

  .device {
    position: fixed;
    top: 50%;
    left: 50%;
    display: block;
    margin: 0;
    transform: translate(-50%, -50%) scale(1);
    width: 417px;
    height: 876px;
    padding: 12px;
    border-radius: 64px;
    background: linear-gradient(150deg, #3a3a3a 0%, #111 18%, #050505 60%, #2a2a2a 100%);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.22),
      0 0 0 8px #0b0b0b,
      0 0 0 9px rgba(255,255,255,.12),
      0 34px 70px rgba(20, 18, 14, .38),
      0 6px 18px rgba(20, 18, 14, .22);
  }

  .device-screen {
    position: relative;
    display: block;
    width: 393px;
    height: 852px;
    overflow: hidden;
    border-radius: 52px;
    background: #000;
  }

  .stage {
    width: 393px;
    height: 852px;
    border-radius: 52px;
  }

  .device-island {
    position: absolute;
    top: 13px;
    left: 50%;
    z-index: 60;
    display: block;
    width: 118px;
    height: 34px;
    border-radius: 20px;
    background: #000;
    transform: translateX(-50%);
  }

  .device-status {
    position: absolute;
    top: 18px;
    right: 30px;
    left: 30px;
    z-index: 59;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    pointer-events: none;
  }

  .device-status-icons { display: flex; gap: 6px; align-items: center; }

  /* 给状态栏/灵动岛让位，按框宽 393 排字，不用窗口 vw。 */
  .content { padding-top: 62px; }
  .copy h1 { font-size: 56px; font-weight: 700; font-optical-sizing: none; font-variation-settings: 'opsz' 16, 'wght' 700; }
}

/* 邮箱验证码页：深灰底 + 白 logo + 六位码。 */
.otp-screen {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 28px)
    24px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: #1F1F1F;
}

.otp-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  left: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

.otp-brand {
  margin-top: 40px;
  align-self: center;
}

.otp-brand img {
  display: block;
  width: 184px;
  height: auto;
  filter: brightness(0) invert(1);
}

.otp-body { margin-top: 18vh; }

.otp-title {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.otp-sub {
  max-width: 330px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.58);
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 16;
  line-height: 1.5;
}

.otp-sub strong { color: #fff; font-weight: 500; }

.otp-boxes {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  border-radius: 10px;
}

.otp-box {
  display: grid;
  width: 46px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  transition: border-color .2s ease;
}

.otp-box.is-filled { border-color: rgba(255,255,255,.34); }

.otp-dash {
  width: 10px;
  height: 1px;
  background: rgba(255,255,255,.3);
}

.otp-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  opacity: .01;
  font-size: 16px;
}

.otp-resend {
  margin-top: 24px;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.72);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.otp-resend:disabled {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  cursor: default;
}

/* Chrome 自动填充会把输入框刷成白底黑字，这里压回深灰。 */
.email-field input:-webkit-autofill,
.email-field input:-webkit-autofill:hover,
.email-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1F1F1F inset;
  box-shadow: 0 0 0 1000px #1F1F1F inset;
  caret-color: #fff;
  transition: background-color 9999s ease-out;
}

@media (min-width: 560px) {
  .otp-screen { padding-top: 92px; }
  .otp-brand { margin-top: 6px; }
  .otp-back { top: 92px; left: 16px; }
  .otp-body { margin-top: 13vh; }
}

/* 设置密码页 */
.password-screen {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 28px)
    24px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: #1F1F1F;
}

.field-label {
  display: block;
  margin: 28px 0 8px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 500;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  transition: border-color .2s ease;
}

.password-field:focus-within { border-color: rgba(255,255,255,.42); }

.password-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .02em;
  outline: none;
}

.password-field input::placeholder { color: rgba(255,255,255,.38); }

.password-eye {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
}

.pw-continue {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.pw-continue:disabled { opacity: .35; cursor: default; }

@media (min-width: 560px) {
  .password-screen { padding-top: 92px; }
  .password-screen .otp-back { top: 92px; left: 16px; }
  .password-screen .otp-brand { margin-top: 6px; }
  .password-screen .otp-body { margin-top: 13vh; }
}

.password-field input:-webkit-autofill,
.password-field input:-webkit-autofill:hover,
.password-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1F1F1F inset;
  box-shadow: 0 0 0 1000px #1F1F1F inset;
  caret-color: #fff;
}

.otp-continue {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* 欢迎 / 称呼页 */
.name-screen {
  position: absolute;
  inset: 0;
  z-index: 37;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 28px)
    24px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: #1F1F1F;
}

@media (min-width: 560px) {
  .name-screen { padding-top: 92px; }
  .name-screen .otp-back { top: 92px; left: 16px; }
  .name-screen .otp-brand { margin-top: 6px; }
  .name-screen .otp-body { margin-top: 13vh; }
}

/* Home */
.home-screen {
  position: absolute;
  inset: 0;
  z-index: 38;
  display: flex;
  flex-direction: column;
  background: #1F1F1F;
}

.home-scroll {
  flex: 1;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 22px)
    20px
    108px;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-logo {
  width: 144px;
  height: auto;
  filter: brightness(0) invert(1);
}

.coin-pill {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 8px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.coin-icon {
  flex: none;
  color: #fff;
}

.home-greeting {
  margin: 34px 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.home-lede {
  margin: 8px 0 0;
  color: rgba(255,255,255,.58);
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.home-section {
  margin: 34px 0 14px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.survey-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: #2B2B2B;
}

.survey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.survey-head .survey-title { margin: 0; }

.survey-head .survey-reward { flex: none; }

.survey-top + .survey-title { margin-top: 12px; }

.survey-top { justify-content: flex-end; }
.survey-top:has(.survey-tag) { justify-content: space-between; }

.survey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.survey-tag {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

.survey-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.survey-title {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.survey-copy {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: rgba(255,255,255,.58);
  font-family: var(--impact);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.survey-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 11px;
}

.survey-start {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px);
  border-top: 1px solid rgba(255,255,255,.08);
  background: #141413;
}

.tab {
  display: flex;
  flex: 1;
  max-width: 120px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.tab.is-active {
  background: #2B2B2B;
  color: #fff;
}

.home-panel[hidden] { display: none; }


@media (min-width: 560px) {
  .home-scroll { padding-top: 62px; }
}

.home-hello-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.home-hello-icon {
  display: grid;
  flex: none;
  color: #fff;
  place-items: center;
}

.home-greeting {
  margin: 0;
  font-size: 34px;
}

/* Rewards */
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 22px 0 18px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.chip.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

.gift-card { min-width: 0; }

.gift-tile {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.5;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
}

.gift-tile.is-amazon { background: #131A22; }
.gift-tile.is-starbucks { background: #00704A; }
.gift-tile.is-doordash { background: #FF3008; }
.gift-tile.is-uber { background: #000; }
.gift-tile.is-googleplay { background: #fff; }
.gift-tile.is-apple { background: #000; }
.gift-tile.is-grubhub { background: #FF8000; }
.gift-tile.is-lowes { background: #004990; }

.gift-logo {
  width: auto;
  max-width: 62%;
  max-height: 34%;
  object-fit: contain;
}

.gift-tile:not(.is-googleplay) .gift-logo {
  filter: brightness(0) invert(1);
}

.gift-tile.is-apple .gift-logo {
  width: auto;
  height: 34%;
}

.gift-tile.is-starbucks .gift-logo { max-width: 70%; }
.gift-tile.is-doordash .gift-logo { max-width: 68%; }
.gift-tile.is-googleplay .gift-logo { max-width: 64%; }

.gift-cat {
  position: absolute;
  bottom: 9px;
  left: 0;
  width: 100%;
  color: rgba(255,255,255,.72);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
}

.gift-tile.is-googleplay .gift-cat { color: rgba(20,20,19,.55); }

.gift-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #141413;
  color: #fff;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .02em;
}

.gift-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--sans);
}

.gift-name {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-value {
  flex: none;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 400;
}

/* 礼品卡兑换页 */
.gift-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 20px)
    20px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: #1F1F1F;
}

.gift-back {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 8px;
}

.gift-detail { margin-top: 48px; }

.gift-title {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.gift-hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1.5;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 16px;
}

.gift-hero-logo {
  width: auto;
  max-width: 62%;
  max-height: 34%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.gift-hero.is-googleplay { background: #fff; }
.gift-hero.is-googleplay .gift-hero-logo { filter: none; }
.gift-hero.is-amazon { background: #131A22; }
.gift-hero.is-starbucks { background: #00704A; }
.gift-hero.is-doordash { background: #FF3008; }
.gift-hero.is-uber { background: #000; }
.gift-hero.is-apple { background: #000; }
.gift-hero.is-grubhub { background: #FF8000; }
.gift-hero.is-lowes { background: #004990; }

.gift-rule {
  margin: 16px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
  text-align: center;
}

.gift-label {
  margin: 26px 0 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 62px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  cursor: pointer;
}

.amount strong { font-size: 16px; font-weight: 600; }
.amount span { color: rgba(255,255,255,.45); font-size: 11px; }

.amount.is-active {
  border-color: #fff;
  background: #2B2B2B;
}

.amount.is-active span { color: rgba(255,255,255,.72); }

.gift-redeem {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.gift-redeem:disabled { opacity: .35; cursor: default; }

.gift-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
  text-align: center;
}

.gift-note.is-short { color: #E7B7A8; }

.gift-card { cursor: pointer; }

@media (min-width: 560px) {
  .gift-screen { padding-top: 92px; }
  .gift-back { top: 74px; left: 16px; }
  .gift-detail { margin-top: 26px; }
}

/* 兑换详情：YouGov 式大金额卡 + 进度 + 底部操作条 */
.rd-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #0E0E0D;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.rd-screen.is-open { transform: translateY(0); }

.rd-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 20px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2B2B2B;
  color: #fff;
  cursor: pointer;
}

.rd-scroll {
  flex: 1;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 82px)
    20px
    120px;
}

.rd-hero {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.55;
  overflow: hidden;
  place-items: center;
  border-radius: 18px;
}

.rd-logo {
  width: auto;
  max-width: 62%;
  max-height: 34%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.rd-hero.is-googleplay .rd-logo { filter: none; }

.rd-brand {
  color: rgba(255,255,255,.82);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.rd-value {
  margin-top: 6px;
  color: #fff;
  font-family: var(--sans);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.rd-cat {
  position: absolute;
  bottom: 14px;
  color: rgba(255,255,255,.7);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.rd-hero.is-amazon { background: #131A22; }
.rd-hero.is-starbucks { background: #00704A; }
.rd-hero.is-doordash { background: #FF3008; }
.rd-hero.is-uber { background: #000; }
.rd-hero.is-googleplay { background: #fff; }
.rd-hero.is-apple { background: #000; }
.rd-hero.is-grubhub { background: #FF8000; }
.rd-hero.is-lowes { background: #004990; }

.rd-hero.is-googleplay .rd-brand,
.rd-hero.is-googleplay .rd-amount,
.rd-hero.is-googleplay .rd-cat { color: #141413; }

.rd-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.rd-amount {
  height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.rd-amount.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.rd-name {
  margin: 20px 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.rd-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.rd-price {
  color: #fff;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.rd-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.rd-progress {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255,255,255,.14);
}

.rd-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transition: width .3s ease;
}

.rd-have {
  margin: 10px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
}

.rd-explain {
  margin: 20px 0 0;
  color: rgba(255,255,255,.62);
  font-family: var(--impact);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.rd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-top: 1px solid rgba(255,255,255,.08);
  background: #1F1F1F;
}

.rd-bar-text {
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.rd-bar-text.is-short { color: #E7B7A8; }

.rd-round {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.rd-round:disabled {
  background: #2B2B2B;
  color: rgba(255,255,255,.45);
  cursor: default;
}

@media (min-width: 560px) {
  .rd-back { top: 70px; }
  .rd-scroll { padding-top: 128px; }
}

/* Account */
.account-name-card {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}

.account-name-q {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 1.4;
}

.account-name-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #fff;
}

.account-name-value strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.account-group {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #2B2B2B;
}

.account-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-row + .account-row {
  border-top: 1px solid rgba(255,255,255,.07);
}

.account-icon {
  display: grid;
  flex: none;
  width: 22px;
  place-items: center;
  color: rgba(255,255,255,.9);
}

.account-row-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.account-row-copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.account-row-copy small {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  line-height: 1.4;
}

.account-chevron { flex: none; color: rgba(255,255,255,.45); }

.account-label {
  margin: 26px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}

.account-row.is-danger strong { color: #E0785F; }
.account-row.is-danger .account-icon { color: #E0785F; }

/* 子页面（history / about） */
.sub-screen {
  position: absolute;
  inset: 0;
  z-index: 41;
  overflow-y: auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 74px)
    20px
    calc(env(safe-area-inset-bottom, 0px) + 30px);
  background: #1F1F1F;
}

.sub-screen .rd-back { top: calc(env(safe-area-inset-top, 0px) + 14px); }

.sub-title {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-align: center;
}

.sub-body { margin-top: 28px; }

.history-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.history-balance strong {
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.history-balance span {
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 15px;
}

.history-note {
  margin: 8px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
}

.history-label {
  margin: 34px 0 4px;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}

.history-list { margin-top: 6px; }

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.history-item-icon {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #2B2B2B;
  color: #fff;
}

.history-item-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.history-item-copy strong {
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.history-item-copy span {
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
}

.history-amount {
  flex: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.history-amount.is-negative { color: rgba(255,255,255,.6); }

.about-version {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.about-lede {
  margin: 8px 0 0;
  color: rgba(255,255,255,.55);
  font-family: var(--impact);
  font-size: 15px;
  line-height: 1.6;
}

.about-head {
  margin: 30px 0 4px;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.license {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.license strong {
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.license span { color: rgba(255,255,255,.45); font-family: var(--sans); font-size: 12px; }

.license a {
  color: rgba(255,255,255,.72);
  font-family: var(--sans);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 改名字弹窗 */
.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
}

.modal-layer[hidden] { display: none; }

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
}

.name-modal {
  position: relative;
  width: 100%;
  padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  border-radius: 24px 24px 0 0;
  background: #1F1F1F;
}

.name-modal h2 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.name-modal input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}

.name-modal input:focus { border-color: rgba(255,255,255,.42); }

.name-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.name-cancel, .name-save {
  flex: 1;
  height: 48px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.name-cancel {
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: #fff;
}

.name-save {
  border: 0;
  background: #fff;
  color: var(--ink);
}

@media (min-width: 560px) {
  .sub-screen { padding-top: 110px; }
  .sub-screen .rd-back { top: 70px; }
}


.rd-cta {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.rd-cta:disabled { opacity: .35; cursor: default; }

.rd-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
  text-align: center;
}

.rd-note.is-short { color: #E7B7A8; }

.gift-card { transition: transform .18s ease; }
.gift-card:active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .gift-card, .rd-screen { transition: none; }
}

.account-value {
  flex: none;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 13px;
}

.settings-body { margin-top: 26px; }

.settings-field { display: block; margin-bottom: 14px; }

.settings-field span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.settings-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}

.settings-field input:focus { border-color: rgba(255,255,255,.42); }

.settings-note {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 12px;
  text-align: center;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}

.toggle-row:last-child { border-bottom: 0; }

.toggle-row input {
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #3A3A3A;
  appearance: none;
  cursor: pointer;
  transition: background .2s ease;
}

.toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.toggle-row input:checked { background: #2E4980; }
.toggle-row input:checked::after { transform: translateX(18px); }

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.lang-option:last-child { border-bottom: 0; }
.lang-option.is-active { color: #fff; }

.newsletter-line {
  margin: 0 0 16px;
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

.newsletter-submit { width: 100%; margin-top: 12px; }

.forgot-link {
  align-self: flex-start;
  margin: 10px 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.62);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.invite-link-box input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: #2B2B2B;
  color: rgba(255,255,255,.8);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

.channels-body, .invite-body { margin-top: 26px; }

.channel-newsletter {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #2B2B2B;
}

.channel-big-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #141413;
  color: #fff;
}

.channel-big-icon svg { width: 24px; height: 24px; }

.channel-newsletter h2 {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

.channel-copy {
  margin: 6px 0 14px;
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 13px;
}

.channel-newsletter input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: #1F1F1F;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}

.channel-newsletter input:focus { border-color: rgba(255,255,255,.4); }

.channel-subscribe { height: 48px; margin-top: 10px; }

.channel-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.channel-link .channel-big-icon { width: 44px; height: 44px; margin: 0; }
.channel-link .channel-big-icon svg { width: 22px; height: 22px; }
.channel-link .account-chevron { margin-left: auto; }

.invite-big-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  background: #2B2B2B;
  color: #fff;
}

.invite-big-icon svg { width: 28px; height: 28px; }

.invite-lede {
  margin: 14px 0 18px;
  color: rgba(255,255,255,.6);
  font-family: var(--impact);
  font-size: 15px;
  line-height: 1.5;
}

.invite-copy { height: 48px; margin-top: 10px; }

.invite-share {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.invite-share-btn {
  display: flex;
  flex: 1;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.invite-share-btn svg { width: 18px; height: 18px; }

.invite-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 28px;
  color: #fff;
}

.invite-stats strong {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
}

.invite-stats span {
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 12px;
}

.channel-big-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.channel-big-icon svg { width: 34px; height: 34px; }

.channel-newsletter h2 { font-size: 24px; }
.channel-copy { font-size: 14px; line-height: 1.5; }

.channel-link { padding: 18px; }
.channel-link .channel-big-icon { width: 56px; height: 56px; border-radius: 16px; }
.channel-link .channel-big-icon svg { width: 30px; height: 30px; }

.channel-link-copy { display: flex; flex-direction: column; gap: 3px; }
.channel-link-copy strong { font-size: 16px; }
.channel-link-copy small {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.invite-big-icon { width: 76px; height: 76px; border-radius: 22px; }
.invite-big-icon svg { width: 36px; height: 36px; }

.invite-steps { display: grid; gap: 10px; margin-top: 24px; }

.invite-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.invite-step strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #2B2B2B;
  font-size: 11px;
  font-weight: 600;
}

.history-summary {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #2B2B2B;
}

.history-stats {
  display: flex;
  gap: 36px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.history-stats div { display: flex; flex-direction: column; gap: 3px; }
.history-stats span { color: rgba(255,255,255,.45); font: 400 11px var(--sans); }
.history-stats strong { color: #fff; font: 600 16px var(--sans); }

.settings-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}

.settings-field textarea:focus { border-color: rgba(255,255,255,.42); }

.form-intro {
  margin: 0 0 18px;
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

.settings-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.settings-label em {
  margin-left: 6px;
  color: rgba(255,255,255,.35);
  font-style: normal;
  font-weight: 400;
}

.settings-field input:focus,
.settings-field textarea:focus,
.select-wrap select:focus {
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; }
.phone-code { width: 112px; flex: none; }

.select-wrap { position: relative; display: block; }

.select-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  appearance: none;
  outline: none;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 12px;
  color: rgba(255,255,255,.5);
  pointer-events: none;
  transform: translateY(-50%);
}

.invite-headline {
  margin: 6px 0 0;
  color: #fff;
  font-family: var(--impact);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.invite-headline span { color: rgba(255,255,255,.45); }

.invite-art {
  display: grid;
  width: 100%;
  place-items: center;
  margin: 18px 0 6px;
  color: rgba(255,255,255,.9);
}

.invite-art svg { width: 210px; height: auto; }

.invite-reward {
  margin: 4px 0 18px;
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.invite-reward strong { color: #fff; font-weight: 600; }

.invite-code-card {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #2B2B2B;
}

.invite-code-card > span {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 12px;
}

.invite-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.invite-code-row strong {
  color: #fff;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .04em;
}

.invite-copy-code {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.invite-share-main { height: 52px; margin-top: 14px; }

.invite-how {
  margin: 28px 0 12px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.invite-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.invite-step:last-child { border-bottom: 0; }

.invite-step > strong {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.invite-step div { display: flex; flex-direction: column; gap: 3px; }

.invite-step b {
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.invite-step span {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
}

.invite-terms {
  margin: 18px 0 0;
  color: rgba(255,255,255,.32);
  font-family: var(--sans);
  font-size: 11px;
}

.invite-screen .sub-title {
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.invite-title {
  margin: 8px 0 0;
  color: #fff;
  font-family: var(--impact);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.012em;
}

.invite-body-copy {
  margin: 12px 0 18px;
  color: rgba(255,255,255,.62);
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.invite-photo {
  overflow: hidden;
  border-radius: 14px;
}

.invite-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.invite-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.invite-reward span {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.invite-reward strong {
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.invite-link-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #2B2B2B;
}

.invite-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.invite-card-icon {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #1F1F1F;
  color: #fff;
}

.invite-card-head h3 {
  margin: 0;
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.invite-card-head p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.invite-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  background: #1F1F1F;
}

.invite-link-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.75);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-link-box button {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.invite-link-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.invite-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #2B2B2B;
}

.invite-stat-icon { color: rgba(255,255,255,.55); }

.invite-stats span:not(.invite-stat-icon) {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.invite-stats strong {
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
}

.invite-rules { margin-top: 26px; }

.invite-rule-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.invite-rule-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.invite-rule-list li:last-child { border-bottom: 0; }

.invite-rule-list li > span {
  flex: none;
  padding-top: 2px;
  color: rgba(255,255,255,.35);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.invite-rule-list strong {
  display: block;
  color: #fff;
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.invite-rule-list p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.invite-reward span { flex: 1; }
.invite-reward strong { flex: none; white-space: nowrap; }

/* Invite — app-native, documented icons and type scale */
.invite-screen .invite-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.invite-link-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #2B2B2B;
}

.invite-card-head {
  align-items: center;
}

.invite-card-head > svg {
  flex: none;
  color: #fff;
}

.invite-card-head h3 { font-size: 22px; }

.invite-link-box {
  margin-top: 14px;
  padding: 10px 10px 10px 12px;
}

.invite-link-box code { font-size: 13px; }

.invite-link-box button {
  font-size: 13px;
  font-weight: 500;
}

.invite-stats {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.invite-stats > div {
  gap: 4px;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.invite-stats > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.invite-stats svg {
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}

.invite-stats span:not(.invite-stat-icon) { font-size: 11px; }

.invite-stats strong { font-size: 22px; }

.invite-share-main {
  height: 52px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
}

.invite-how {
  margin: 28px 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.invite-rule-list { margin-top: 0; }

.invite-rule-list strong { font-size: 16px; }

.invite-terms {
  font-size: 11px;
  line-height: 1.4;
}

.invite-screen .sub-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.invite-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.invite-stats > .invite-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.invite-stats > .invite-stat + .invite-stat {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.invite-stat svg, .invite-stats svg {
  flex: none;
  margin: 0;
  color: rgba(255,255,255,.85);
}

.invite-stat-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.invite-stat-copy strong {
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.invite-stat-copy span {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.invite-stats {
  border-top: 0;
  border-bottom: 0;
  margin-top: 22px;
  gap: 0;
}

.invite-stats > .invite-stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
}

.invite-stats > .invite-stat + .invite-stat {
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.invite-stat svg, .invite-stats svg {
  width: 40px;
  height: 40px;
}

.invite-stat-copy { gap: 1px; }

.invite-stat-copy strong { font-size: 28px; }

.invite-stat-copy span { font-size: 11px; }

.invite-hero-icon {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.invite-link-title {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.invite-stats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  border: 0;
}

.invite-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.invite-stats > .invite-stat + .invite-stat {
  padding-left: 0;
  border-left: 0;
}

.invite-stat-value {
  display: flex;
  align-items: center;
  gap: 6px;
}

.invite-stat-value svg {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,.6);
}

.invite-stat-value strong {
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.invite-stat > span {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.invite-rule-list p {
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.invite-head {
  display: flex;
  height: 40px;
  align-items: center;
  margin-bottom: 18px;
}

.invite-head .rd-back {
  position: static;
  flex: none;
}

.invite-head .sub-title {
  flex: 1;
  margin: 0;
  padding-right: 40px;
  text-align: center;
}

.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
  border: 0;
}

.invite-stat {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 0;
  border: 0;
}

.invite-stat svg {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,.6);
}

.invite-stat strong {
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.invite-stat span {
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.sub-screen {
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.sub-screen .rd-back { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.sub-title {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 560px) {
  .sub-screen { padding-top: 66px; }
  .sub-screen .rd-back { top: 66px; }
}

@media (min-width: 560px) {
  .stage { height: 100%; }
}

.settings-password {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.settings-password span {
  display: block;
  color: rgba(255,255,255,.5);
  font-family: var(--sans);
  font-size: 13px;
}

.settings-password strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
}

.settings-password button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.locked-field {
  position: relative;
  display: block;
}

.locked-field input {
  padding-right: 44px;
  color: rgba(255,255,255,.6);
  cursor: default;
}

.locked-field svg {
  position: absolute;
  top: 50%;
  right: 14px;
  color: rgba(255,255,255,.42);
  pointer-events: none;
  transform: translateY(-50%);
}

.cp-resend {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cp-resend:disabled {
  opacity: .5;
  cursor: default;
  text-decoration: none;
}

.invite-rule-list p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.form-intro {
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.invite-rule-list p {
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.modal-layer.is-center {
  align-items: center;
  padding: 24px;
}

.success-modal {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 28px 22px 22px;
  border-radius: 20px;
  background: #1F1F1F;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
}

.success-modal h2 {
  margin: 0;
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.success-modal p {
  margin: 8px 0 20px;
  color: rgba(255,255,255,.6);
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.success-modal .rd-cta { height: 48px; margin-top: 0; }

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.account-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
}

.account-profile strong {
  color: #fff;
  font-family: var(--impact);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.settings-section-label {
  margin: 26px 0 8px;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.settings-list {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #2B2B2B;
}

.settings-row {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  text-align: left;
}

.settings-list > .settings-row + .settings-row {
  border-top: 1px solid rgba(255,255,255,.07);
}

button.settings-row { cursor: pointer; }

.settings-row-label {
  flex: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.settings-row-value {
  min-width: 0;
  overflow: hidden;
  margin-left: auto;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-icon {
  flex: none;
  color: rgba(255,255,255,.35);
}

.settings-change {
  flex: none;
  height: 30px;
  margin-left: 2px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

#settingsScreen .settings-section-label:first-of-type { margin-top: 18px; }

/* Interaction polish */
button:not(:disabled) {
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s ease, transform .15s ease;
}

button:not(:disabled):active {
  opacity: .82;
  transform: scale(.99);
}

.screen.is-entering,
.home-screen.is-entering {
  animation: screen-in .36s cubic-bezier(.2,.8,.2,1);
}

.screen.is-leaving {
  animation: screen-out .26s ease forwards;
  pointer-events: none;
}

.sub-screen.is-entering {
  animation: sub-in .32s cubic-bezier(.2,.8,.2,1);
}

.sub-screen.is-leaving {
  animation: sub-out .26s ease forwards;
  pointer-events: none;
}

.cp-step.is-entering {
  animation: screen-in .28s cubic-bezier(.2,.8,.2,1);
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes screen-out {
  to { opacity: 0; transform: translateY(-8px) scale(.995); }
}

@keyframes sub-in {
  from { opacity: .4; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sub-out {
  to { opacity: 0; transform: translateX(26px); }
}

.modal-layer:not([hidden]) .modal-scrim {
  animation: fade-in .2s ease both;
}

.modal-layer:not([hidden]) .name-modal {
  animation: modal-up .3s cubic-bezier(.2,.8,.2,1) both;
}

.modal-layer:not([hidden]) .success-modal {
  animation: modal-pop .3s cubic-bezier(.2,.8,.2,1) both;
}

.modal-layer.is-closing .modal-scrim {
  animation: fade-out .2s ease both;
}

.modal-layer.is-closing .name-modal,
.modal-layer.is-closing .success-modal {
  animation: modal-down .22s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

@keyframes modal-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modal-down {
  to { opacity: 0; transform: translateY(18px); }
}

.home-panel.is-entering { animation: screen-in .28s cubic-bezier(.2,.8,.2,1); }

.cp-step.is-entering { animation: screen-in .28s cubic-bezier(.2,.8,.2,1); }

/* Portrait profile questionnaire — F7 page, white sheet, our type scale */
.profile-screen {
  z-index: 39;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
  background: #F7F7F7;
}

.profile-shell {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #FFFFFF;
  color: #141413;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 10px;
}

.profile-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F7F7F7;
  color: #141413;
  cursor: pointer;
}

.profile-count {
  color: rgba(20,20,19,.45);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.profile-track {
  height: 3px;
  margin: 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #ECEAE5;
}

.profile-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #141413;
  transition: width .25s ease;
}

.profile-body {
  flex: 1;
  overflow-y: auto;
  padding: 26px 20px 12px;
}

.profile-question {
  margin: 0;
  color: #141413;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.profile-copy {
  margin: 10px 0 0;
  color: rgba(20,20,19,.55);
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.profile-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.profile-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #E5E3DD;
  border-radius: 12px;
  background: #FFFFFF;
  color: #141413;
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-align: left;
  cursor: pointer;
}

.profile-option-dot {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  place-items: center;
  border: 1px solid #BDB8AE;
  border-radius: 50%;
}

.profile-option-dot::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #141413;
  content: "";
  opacity: 0;
}

.profile-option.is-selected {
  border-color: #141413;
  background: #141413;
  color: #FFFFFF;
}

.profile-option.is-selected .profile-option-dot {
  border-color: #FFFFFF;
  background: #FFFFFF;
}

.profile-option.is-selected .profile-option-dot::after {
  background: #141413;
  opacity: 1;
}

.profile-select,
.profile-date {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #E5E3DD;
  border-radius: 12px;
  background: #FFFFFF;
  color: #141413;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.profile-select:focus,
.profile-date:focus {
  border-color: #141413;
  box-shadow: 0 0 0 3px rgba(20,20,19,.08);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-top: 1px solid #F0EEE9;
}

.profile-back {
  height: 52px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: rgba(20,20,19,.5);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.profile-back[hidden] { display: none; }

.profile-next {
  flex: 1;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #141413;
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.profile-next:disabled {
  opacity: .3;
  cursor: default;
}

/* Home prompt */
.profile-banner {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #2B2B2B;
  color: #fff;
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}

.profile-banner-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.profile-banner-copy strong {
  font-size: 13px;
  font-weight: 600;
}

.profile-banner-copy small {
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 1.35;
}

.profile-banner-reward {
  flex: none;
  font-size: 12px;
  font-weight: 600;
}

/* App-style reward modal */
.profile-reward-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-reward-layer[hidden] { display: none; }

.profile-reward-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
}

.profile-reward-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: #1F1F1F;
  text-align: center;
}

.profile-reward-icon {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
}

.profile-reward-card h2 {
  margin: 0;
  color: #fff;
  font-family: var(--impact);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.profile-reward-card p {
  margin: 8px 0 16px;
  color: rgba(255,255,255,.55);
  font-family: var(--impact);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.profile-reward-coins {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--impact);
  font-size: 28px;
  font-weight: 600;
}

.profile-reward-done {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 560px) {
  .profile-screen { padding-top: 64px; }
}

.device.is-light .device-status { color: #141413; }
.device.is-light .device-status-icons svg { fill: #141413; }

.profile-banner[hidden] { display: none; }

.device.is-light .device-status { background: #F7F7F7; }


.profile-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 0 10px;
  color: #8D8A82;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.profile-powered img {
  width: auto;
  height: 13px;
  filter: brightness(0);
  opacity: .62;
}

.profile-powered {
  gap: 8px;
  padding-bottom: 12px;
  color: #6F6A5F;
  font-size: 11px;
}

.profile-powered img {
  height: 19px;
  opacity: .8;
}

.profile-powered { font-size: 12px; }
.profile-powered img { height: 22px; opacity: .85; }

.profile-select-wrap { position: relative; display: block; }

.profile-select {
  padding: 0 46px 0 16px;
  appearance: none;
  -webkit-appearance: none;
}

.profile-select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #7A756B;
  pointer-events: none;
  transform: translateY(-50%);
}
