﻿/* ==========================================================================
   CamVibe Pro — visual system
   ========================================================================== */

:root {
  --bg: #070609;
  --bg-soft: #0b0a0f;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.075);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f5fa;
  --text-2: #b1abbf;
  --text-3: #7c758d;
  --rose: #ff5f7e;
  --rose-deep: #ff3b63;
  --amber: #ffb454;
  --amber-soft: #ffd6a0;
  --violet: #9d7bff;
  --mint: #4be0b0;
  --grad: linear-gradient(120deg, #ff7a88 0%, #ff8a5c 48%, #ffc15e 100%);
  --grad-rose: linear-gradient(135deg, #ff5f7e, #ff8a5c);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-w: 248px;
  --content-max: 1620px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--rose);
  color: #1b0a0f;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   Icons
   ========================================================================== */

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

.icon--tiny {
  width: 12px;
  height: 12px;
}

.icon--sm {
  width: 14px;
  height: 14px;
}

.icon--md {
  width: 20px;
  height: 20px;
}

.icon--gold {
  color: var(--amber);
}

.icon--rose {
  color: var(--rose);
}

.icon--badge {
  color: var(--amber);
}

/* ==========================================================================
   Ambient background
   ========================================================================== */

.bg-aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.34;
}

.glow--rose {
  width: 620px;
  height: 620px;
  left: -190px;
  top: -180px;
  background: #bc1c45;
  animation: drift 30s ease-in-out infinite alternate;
}

.glow--violet {
  width: 580px;
  height: 580px;
  right: -170px;
  top: 8%;
  background: #4b2aa6;
  opacity: 0.24;
  animation: drift 36s ease-in-out infinite alternate-reverse;
}

.glow--amber {
  width: 560px;
  height: 560px;
  left: 42%;
  bottom: -280px;
  background: #9c531d;
  opacity: 0.16;
  animation: drift 42s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 0%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 70% at 50% 0%, black 0%, transparent 78%);
  opacity: 0.7;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ==========================================================================
   Shell / sidebar
   ========================================================================== */

.app {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 18px 18px;
  background: linear-gradient(180deg, rgba(13, 11, 16, 0.92), rgba(8, 7, 11, 0.72));
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(26px) saturate(130%);
  z-index: 30;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 16px;
  color: var(--text);
  width: fit-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 26px rgba(255, 95, 126, 0.32));
}

.brand-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: "Sora", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff, #d8d1e2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  padding-bottom: 3px;
}

.brand-pro {
  font-family: "Sora", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--amber);
  background: rgba(255, 180, 84, 0.09);
  border: 1px solid rgba(255, 180, 84, 0.25);
  border-radius: 4px;
  padding: 3px 4px;
  line-height: 1;
  transform: translateY(-2px);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-caption {
  padding: 8px 12px 6px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-caption--spaced {
  margin-top: 13px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: none;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.nav-item .icon {
  width: 19px;
  height: 19px;
  opacity: 0.78;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.038);
  color: var(--text);
}

.nav-item.is-active {
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.14), rgba(255, 180, 84, 0.055));
  border-color: rgba(255, 95, 126, 0.16);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item.is-active .icon {
  color: var(--rose);
  opacity: 1;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 18px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 122, 136, 0.55);
}

.nav-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(255, 95, 126, 0.2);
  background: rgba(255, 95, 126, 0.13);
  color: #ff9aab;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}

.nav-key {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  color: var(--text-3);
  font-size: 8.5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-item:hover .nav-key {
  opacity: 1;
}

.nav-ping {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 180, 84, 0.1);
}

.sidebar-promo {
  margin-top: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 180, 84, 0.16);
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(255, 95, 126, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.sidebar-promo::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 180, 84, 0.22);
  filter: blur(26px);
}

.promo-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--amber);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-title {
  position: relative;
  z-index: 1;
  margin: 7px 0 11px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.promo-title strong {
  color: var(--amber-soft);
}

.promo-balance {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--amber-soft);
}

.promo-balance .icon {
  width: 16px;
  height: 16px;
  color: var(--amber);
}

.sidebar-promo .btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 2px;
}

.go-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 13px;
  background: var(--text);
  color: #0c080e;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.go-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -14px rgba(255, 255, 255, 0.28);
}

.go-live .icon {
  width: 14px;
  height: 14px;
}

.go-live-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.go-live-wave i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--rose-deep);
  animation: wave 1.1s ease-in-out infinite;
}

.go-live-wave i:nth-child(2) {
  height: 10px;
  animation-delay: -0.3s;
}

.go-live-wave i:nth-child(3) {
  height: 7px;
  animation-delay: -0.55s;
}

.go-live-wave i:nth-child(4) {
  height: 12px;
  animation-delay: -0.15s;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.sidebar-user:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.045);
}

.avatar--me {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad);
  color: #1d0a10;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -10px rgba(255, 122, 136, 0.5);
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.sidebar-user-meta strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.sidebar-user-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.sidebar-user-meta .icon {
  color: var(--amber);
}

.level-badge {
  padding: 3px 5px;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  color: var(--text-3);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ==========================================================================
   Main / topbar
   ========================================================================== */

.main {
  min-width: 0;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 15px clamp(20px, 2.6vw, 40px);
  border-bottom: 1px solid var(--stroke);
  background: rgba(7, 6, 9, 0.76);
  backdrop-filter: blur(24px) saturate(140%);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 0;
}

.mobile-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}

.eyebrow--gold {
  color: var(--amber);
}

.greeting h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.greeting h1 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  font-size: 1.18em;
  letter-spacing: 0;
}

.search-trigger {
  flex: 0 1 350px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-3);
  font-size: 11.5px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.search-trigger:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
}

.search-trigger .icon {
  width: 15px;
  height: 15px;
}

.search-trigger kbd {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px 5px;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text-3);
  font-family: "Inter", sans-serif;
  font-size: 9px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--stroke-strong);
  color: var(--text);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn--spin .icon {
  color: var(--amber);
}

.icon-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 7px rgba(255, 180, 84, 0.9);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 99px;
  background: var(--grad);
  color: #240b11;
  font-family: "Sora", sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
}

.notif-badge.is-empty {
  display: none;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 41px;
  padding: 0 7px 0 11px;
  border: 1px solid rgba(255, 180, 84, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 180, 84, 0.12), rgba(255, 95, 126, 0.055));
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.balance-pill:hover {
  border-color: rgba(255, 180, 84, 0.36);
  background: linear-gradient(135deg, rgba(255, 180, 84, 0.17), rgba(255, 95, 126, 0.08));
}

.balance-pill.balance-bump {
  animation: balanceBump 0.5s var(--ease-out);
}

.balance-pill > .icon {
  width: 14px;
  height: 14px;
  color: var(--amber);
}

.balance-pill-plus {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 180, 84, 0.15);
  color: var(--amber);
}

.balance-pill-plus .icon {
  width: 11px;
  height: 11px;
}

.icon-btn--mobile {
  display: none;
}

.app-cta {
  height: 41px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 11.5px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--grad);
  color: #1c0b10;
  box-shadow: 0 14px 34px -14px rgba(255, 120, 100, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px -14px rgba(255, 120, 100, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--gold {
  background: linear-gradient(120deg, #ffbe6a, #ffd68a 50%, #ffa956);
  color: #2a1307;
  box-shadow: 0 14px 34px -14px rgba(255, 180, 84, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--gold:hover {
  box-shadow: 0 18px 42px -14px rgba(255, 180, 84, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--sm {
  min-height: 33px;
  padding: 0 13px;
  font-size: 10.5px;
  gap: 6px;
}

.btn--sm .icon {
  width: 13px;
  height: 13px;
}

.btn--lg {
  min-height: 47px;
  padding: 0 24px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.2s, gap 0.2s;
  white-space: nowrap;
}

.text-link .icon {
  transition: transform 0.2s;
}

.text-link:hover {
  color: var(--text);
  gap: 8px;
}

.text-link:hover .icon {
  transform: translateX(2px);
}

.text-link--small {
  font-size: 9.5px;
  color: var(--text-3);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 9.5px;
  padding: 6px 0;
  transition: color 0.2s;
}

.link-btn:hover {
  color: var(--text);
}

.link-btn--center {
  display: flex;
  margin: 6px auto 0;
}

/* ==========================================================================
   Live ticker
   ========================================================================== */

.ticker {
  display: flex;
  align-items: center;
  height: 39px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.13);
  color: var(--text-2);
  font-size: 10.5px;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  flex-shrink: 0;
  padding: 0 15px 0 clamp(20px, 2.6vw, 40px);
  border-right: 1px solid var(--stroke);
  background: rgba(255, 180, 84, 0.035);
  color: var(--amber);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ticker-label .live-dot {
  width: 5px;
  height: 5px;
}

.ticker-window {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 2%, black 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 2%, black 97%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker-window:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ticker-item strong {
  color: var(--text);
  font-weight: 600;
}

.ticker-emoji {
  font-style: normal;
  font-size: 10px;
  filter: saturate(1.2);
}

.ticker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.ticker-viewers {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  flex-shrink: 0;
  padding: 0 clamp(20px, 2.6vw, 40px) 0 16px;
  border-left: 1px solid var(--stroke);
  color: var(--text-3);
  font-size: 9.5px;
}

.ticker-viewers strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Content / views
   ========================================================================== */

.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(22px, 2.5vw, 34px) clamp(20px, 2.6vw, 40px) 34px;
}

.view {
  animation: viewIn 0.45s var(--ease-out);
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: clamp(20px, 2vw, 28px);
  align-items: start;
}

.discover-main {
  min-width: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  gap: 10px;
  min-height: 468px;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--stroke);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 95, 126, 0.13), transparent 55%),
    radial-gradient(100% 120% at 100% 100%, rgba(255, 180, 84, 0.08), transparent 52%),
    linear-gradient(158deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014) 58%, rgba(255, 255, 255, 0.028));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, 0.035) 50%, transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -260px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 126, 0.24), transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 8px 0 8px 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 95, 126, 0.22);
  border-radius: 99px;
  background: rgba(255, 95, 126, 0.07);
  color: #ff9aab;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(40px, 4.05vw, 62px);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.058em;
}

.hero-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: -0.015em;
  background: linear-gradient(120deg, #ff9aa8, #ffc45e 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 440px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 29px;
  height: 29px;
  margin-left: -8px;
  border: 2px solid #16111a;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-stack-more {
  width: 29px;
  height: 29px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border: 2px solid #16111a;
  border-radius: 50%;
  background: #221b29;
  color: var(--text-2);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-proof-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-proof-text strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.hero-proof-text span {
  color: var(--text-3);
  font-size: 9.5px;
}

/* Hero stage */

.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  perspective: 1100px;
}

.stage-halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 136, 0.3), rgba(255, 180, 84, 0.12) 42%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.feature-card {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 3 / 4.1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  overflow: hidden;
  background: #17121b;
  text-align: left;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.025);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.3s;
}

.feature-card:hover .feature-img {
  transform: scale(1.045);
}

.feature-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.43) 0%, transparent 26%, transparent 48%, rgba(5, 4, 7, 0.95) 100%);
}

.feature-top {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  line-height: 1.2;
}

.badge--live {
  background: linear-gradient(135deg, #ff3b63, #ff6a4d);
  color: #fff;
  box-shadow: 0 5px 16px rgba(255, 59, 99, 0.36);
}

.badge--live .live-dot {
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.badge--glass {
  background: rgba(8, 6, 10, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 9px;
}

.feature-body {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-cat {
  color: var(--amber-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feature-name {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.feature-title {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  line-height: 1.4;
}

.feature-goal {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.goal-track {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.goal-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb454, #ff7a88);
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.5);
  transition: width 0.6s var(--ease);
}

.goal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8.5px;
}

.goal-meta strong {
  color: var(--amber-soft);
  font-weight: 600;
}

.feature-play {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(10, 8, 12, 0.42);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transition: opacity 0.32s, transform 0.32s var(--ease-out);
}

.feature-play .icon {
  width: 19px;
  height: 19px;
  margin-left: 2px;
}

.feature-card:hover .feature-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(19, 15, 24, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  color: var(--text-2);
  font-size: 9.5px;
  white-space: nowrap;
  animation: float 6.5s ease-in-out infinite;
  pointer-events: none;
}

.float-chip strong {
  color: var(--text);
  font-weight: 600;
}

.float-chip-icon {
  font-size: 13px;
}

.float-chip--gift {
  top: 23%;
  right: -3%;
  animation-delay: -1.5s;
}

.float-chip--chat {
  top: 20%;
  left: -5%;
  animation-delay: -3.2s;
}

.float-chip--chat img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.float-chip--chat span {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.float-chip--like {
  right: 2%;
  bottom: 30%;
  padding: 6px 9px;
  animation-delay: -4.6s;
}

.float-chip--like .icon {
  width: 11px;
  height: 11px;
}

.feature-dots {
  position: absolute;
  left: 50%;
  bottom: -21px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
}

.feature-dot {
  width: 21px;
  height: 3.5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  transition: width 0.3s var(--ease), background 0.3s;
}

.feature-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.feature-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, #ff8a9a, #ffb454);
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.35);
}

.mobile-wheel-strip {
  display: none;
}

.mobile-app-banner {
  display: none;
}

/* ==========================================================================
   Section heads, chips
   ========================================================================== */

.feed-section {
  margin-top: 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Sora", sans-serif;
  font-size: clamp(19px, 1.75vw, 25px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(75, 224, 176, 0.16);
  border-radius: 99px;
  background: rgba(75, 224, 176, 0.07);
  color: var(--mint);
  font-family: "Inter", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.count-badge .live-dot {
  width: 4px;
  height: 4px;
}

.chip-row {
  display: flex;
  gap: 7px;
  margin-bottom: 7px;
  padding-bottom: 11px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, black 96%, transparent);
  mask-image: linear-gradient(90deg, black 96%, transparent);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 13px;
  flex-shrink: 0;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip .icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.chip:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.048);
  color: var(--text);
}

.chip.is-active {
  border-color: transparent;
  background: var(--text);
  color: #0d090f;
  font-weight: 700;
  box-shadow: 0 8px 24px -12px rgba(255, 255, 255, 0.4);
}

.chip.is-active .icon {
  opacity: 1;
}

.chip-count {
  margin-left: 1px;
  font-size: 8.5px;
  font-weight: 700;
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Stream grid / cards
   ========================================================================== */

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: clamp(13px, 1.3vw, 17px);
}

.stream-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}

.stream-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: 21px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.028);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.stream-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 95, 126, 0.28);
  box-shadow: 0 26px 60px -32px rgba(0, 0, 0, 0.95);
}

.card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 3.85;
  overflow: hidden;
  background: #141018;
}

.card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out), filter 0.3s;
}

.stream-card:hover .card-media > img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 3, 8, 0.4) 0%, transparent 24%, transparent 40%, rgba(5, 3, 8, 0.92) 100%);
}

.card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-viewers {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(8, 6, 10, 0.5);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
}

.card-viewers .icon {
  width: 9px;
  height: 9px;
  opacity: 0.8;
}

.card-follow {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  background: rgba(8, 6, 11, 0.55);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.card-follow .icon {
  width: 14px;
  height: 14px;
}

.card-follow:hover {
  background: rgba(255, 59, 99, 0.25);
  border-color: rgba(255, 95, 126, 0.45);
}

.card-follow.is-following {
  border-color: rgba(255, 95, 126, 0.5);
  background: rgba(255, 59, 99, 0.18);
  color: #ff9aab;
}

.card-follow.is-following .icon,
.follow-btn.is-following .icon {
  fill: currentColor;
}

.card-hover-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-hover-play span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(12, 8, 14, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  transform: scale(0.82);
  transition: transform 0.3s var(--ease-out);
}

.card-hover-play .icon {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.stream-card:hover .card-hover-play {
  opacity: 1;
}

.stream-card:hover .card-hover-play span {
  transform: scale(1);
}

.card-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-creator {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.card-avatar {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  object-fit: cover;
}

.card-name {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name .icon {
  width: 11px;
  height: 11px;
  color: var(--amber);
  flex-shrink: 0;
}

.card-title {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tags {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.card-tag {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.66);
  font-size: 7.5px;
  font-weight: 500;
  white-space: nowrap;
}

.card-goal {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 3px;
}

.card-goal .goal-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.card-goal .goal-meta {
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.42);
}

.card-goal .goal-meta strong {
  font-weight: 600;
  color: var(--amber-soft);
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 58px 20px;
  border: 1px dashed var(--stroke);
  border-radius: 22px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

.empty-state .icon {
  width: 26px;
  height: 26px;
  color: var(--text-3);
  opacity: 0.7;
}

/* ==========================================================================
   Rail
   ========================================================================== */

.rail {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.rail-card {
  padding: 19px;
  border: 1px solid var(--stroke);
  border-radius: 23px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.rail-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rail-head h3 .icon {
  width: 15px;
  height: 15px;
}

.rail-sub {
  margin: 3px 0 13px;
  color: var(--text-3);
  font-size: 9.5px;
}

.rail-live-tag {
  color: var(--rose);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

/* Wheel promo */

.wheel-promo {
  position: relative;
  min-height: 220px;
  padding: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 84, 0.18);
  border-radius: 25px;
  background:
    radial-gradient(120% 140% at 92% 4%, rgba(255, 180, 84, 0.2), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(255, 95, 126, 0.2), transparent 60%),
    linear-gradient(158deg, #1b1217, #120d12 65%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wheel-promo-glow {
  position: absolute;
  top: -70px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.36), transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}

.wheel-promo-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.wheel-promo-copy h3 {
  font-family: "Sora", sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.wheel-promo-copy p {
  color: var(--text-2);
  font-size: 9.5px;
  line-height: 1.45;
}

.wheel-promo-copy p strong {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--amber-soft);
  font-size: 11px;
  font-weight: 600;
}

.wheel-promo-copy .btn {
  margin-top: 3px;
}

.wheel-promo-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 180, 84, 0.18);
  border-radius: 5px;
  background: rgba(8, 6, 10, 0.35);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 7.5px;
  font-weight: 600;
  white-space: nowrap;
}

.wheel-promo-art {
  position: relative;
  width: 142px;
  height: 142px;
  flex-shrink: 0;
  align-self: center;
}

.wheel-art-disc {
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 196, 94, 0.48);
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #3a2023 0 45deg,
    #2a1720 45deg 90deg,
    #4a2c1f 90deg 135deg,
    #241320 135deg 180deg,
    #3a2023 180deg 225deg,
    #2a1720 225deg 270deg,
    #5a3624 270deg 315deg,
    #241320 315deg 360deg);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.85), inset 0 0 24px rgba(0, 0, 0, 0.6);
  animation: spinSlow 28s linear infinite;
}

.wheel-art-disc::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.05) 0 1deg, transparent 1deg 45deg);
}

.wheel-art-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8a5c, #ffc45e);
  color: #2a120a;
  box-shadow: 0 0 0 5px rgba(12, 8, 12, 0.82), 0 7px 20px rgba(0, 0, 0, 0.5);
}

.wheel-art-hub .icon {
  width: 21px;
  height: 21px;
}

.wheel-art-pointer {
  position: absolute;
  left: 50%;
  top: -5px;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid #ffc45e;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.wheel-art-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber-soft);
  box-shadow: 0 0 10px 2px rgba(255, 196, 94, 0.5);
}

.wheel-art-spark--1 {
  top: 16%;
  right: 0;
}

.wheel-art-spark--2 {
  bottom: 13%;
  left: -2%;
}

/* Welcome / balance rail widget */

.welcome-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border: 1px solid rgba(255, 95, 126, 0.18);
  border-radius: 23px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 95, 126, 0.2), transparent 55%),
    linear-gradient(158deg, #1a1118, #100c13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.welcome-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -52px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 180, 84, 0.18);
  filter: blur(28px);
  pointer-events: none;
}

.welcome-card .promo-gem {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 13px;
  background: var(--grad);
  color: #241007;
  box-shadow: 0 12px 28px -10px rgba(255, 180, 84, 0.55);
}

.welcome-card .promo-gem .icon {
  width: 21px;
  height: 21px;
}

.welcome-card h3 {
  position: relative;
  z-index: 1;
  margin: 3px 0 5px;
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.welcome-card h3 strong {
  color: var(--amber-soft);
}

.welcome-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.5;
}

.welcome-card .btn {
  position: relative;
  z-index: 1;
  width: 100%;
}

.welcome-card .welcome-row .btn {
  width: auto;
  flex-shrink: 0;
}

.welcome-card .welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.welcome-card .welcome-balance {
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--amber-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.welcome-card .welcome-balance .icon {
  width: 16px;
  height: 16px;
  color: var(--amber);
}

.welcome-card .welcome-label {
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Leaders */

.leaders-card {
  padding-bottom: 14px;
}

.rail-leaders {
  display: flex;
  flex-direction: column;
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.leader-rank {
  width: 15px;
  flex-shrink: 0;
  color: var(--text-3);
  font-family: "Sora", sans-serif;
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.leader-row.is-first .leader-rank {
  color: var(--amber);
}

.leader-row.is-second .leader-rank {
  color: #cbc6d6;
}

.leader-row.is-third .leader-rank {
  color: #d29a72;
}

.leader-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  object-fit: cover;
}

.leader-row.is-first .leader-avatar {
  box-shadow: 0 0 0 1.5px rgba(255, 180, 84, 0.5);
}

.leader-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.leader-name {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-cat {
  color: var(--text-3);
  font-size: 8px;
}

.leader-earned {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.leader-earned .icon {
  width: 9px;
  height: 9px;
  color: var(--amber);
}

/* Live pulse */

.pulse-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 13px;
}

.pulse-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: pulseIn 0.5s var(--ease-out);
}

.pulse-avatar {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8a9a, #ffc45e);
  color: #1b0b0f;
  font-family: "Sora", sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.pulse-avatar--violet {
  background: linear-gradient(145deg, #b79aff, #7857dc);
  color: #120a20;
}

.pulse-avatar--mint {
  background: linear-gradient(145deg, #8ceac9, #3bc49a);
  color: #061c15;
}

.pulse-avatar--rose {
  background: linear-gradient(145deg, #ff9aab, #ff5f7e);
  color: #210a10;
}

.pulse-body {
  flex: 1;
  min-width: 0;
  color: var(--text-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.pulse-body strong {
  color: var(--text);
  font-weight: 600;
}

.pulse-meta {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 7.5px;
}

/* ==========================================================================
   Live view / page heads
   ========================================================================== */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-head-copy {
  max-width: 700px;
}

.page-head h2 {
  margin: 7px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(30px, 3.35vw, 45px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.page-head h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: -0.01em;
}

.page-head p {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.6;
}

.page-head-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.watching-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text-3);
  font-size: 9.5px;
}

.watching-pill strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text-3);
}

.select-wrap select {
  appearance: none;
  padding-right: 17px;
  border: 0;
  outline: none;
  background: none;
  color: var(--text-2);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  cursor: pointer;
}

.select-wrap select option {
  background: #141019;
  color: var(--text);
}

.select-wrap .select-chev {
  position: absolute;
  right: 8px;
  pointer-events: none;
}

.chip-row--page {
  margin-bottom: 19px;
}

.chip-row--page .chip {
  height: 37px;
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.024);
}

.segmented-btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.segmented-btn:hover {
  color: var(--text-2);
}

.segmented-btn.is-active {
  background: rgba(255, 255, 255, 0.085);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Creators
   ========================================================================== */

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  align-items: end;
  margin-bottom: 22px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  padding: 22px 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: 23px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.podium-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
}

.podium-card--1 {
  padding-top: 31px;
  border-color: rgba(255, 180, 84, 0.24);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 180, 84, 0.13), transparent 62%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.podium-card--1::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.05) 50%, transparent 62%);
}

.podium-card--1 {
  order: 2;
}

.podium-card--2 {
  order: 1;
}

.podium-card--3 {
  order: 3;
}

.podium-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 11px;
  color: var(--text-3);
  font-family: "Sora", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.podium-rank .icon {
  width: 11px;
  height: 11px;
}

.podium-card--1 .podium-rank {
  color: var(--amber);
}

.podium-avatar-wrap {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 auto 11px;
}

.podium-card--1 .podium-avatar-wrap {
  width: 98px;
  height: 98px;
}

.podium-avatar {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  object-fit: cover;
}

.podium-card--1 .podium-avatar {
  border-color: rgba(255, 180, 84, 0.55);
  box-shadow: 0 0 40px -8px rgba(255, 180, 84, 0.45);
}

.podium-crown {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 23px;
  height: 23px;
  transform: translateX(-50%) rotate(-9deg);
  color: var(--amber);
  filter: drop-shadow(0 3px 7px rgba(255, 180, 84, 0.4));
}

.podium-live {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(8, 6, 10, 0.75);
  color: rgba(255, 255, 255, 0.8);
  font-size: 5.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
}

.podium-live .live-dot {
  width: 3px;
  height: 3px;
  box-shadow: none;
}

.podium-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 2px;
  font-family: "Sora", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.podium-card--1 .podium-name {
  font-size: 15.5px;
}

.podium-name .icon {
  width: 11px;
  height: 11px;
  color: var(--amber);
}

.podium-cat {
  display: block;
  margin-bottom: 9px;
  color: var(--text-3);
  font-size: 8.5px;
}

.podium-earned {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 11px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 180, 84, 0.15);
  border-radius: 8px;
  background: rgba(255, 180, 84, 0.07);
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
}

.podium-earned .icon {
  width: 10px;
  height: 10px;
  color: var(--amber);
}

.podium-card .follow-btn {
  width: 100%;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 9.5px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.follow-btn .icon {
  width: 11px;
  height: 11px;
}

.follow-btn:hover {
  border-color: rgba(255, 95, 126, 0.4);
  color: #ffabb9;
}

.follow-btn.is-following {
  border-color: rgba(255, 95, 126, 0.32);
  background: rgba(255, 95, 126, 0.11);
  color: #ff9aab;
}

.creator-table-card {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.018);
}

.creator-table-head,
.creator-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 1fr 0.8fr 1fr 82px;
  gap: 15px;
  align-items: center;
  padding: 13px 18px;
}

.creator-table-head {
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.creator-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.038);
  cursor: pointer;
  transition: background 0.2s;
}

.creator-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.cr-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cr-rank {
  width: 17px;
  flex-shrink: 0;
  color: var(--text-3);
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cr-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.cr-meta {
  min-width: 0;
}

.cr-name {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-name .icon {
  width: 10px;
  height: 10px;
  color: var(--amber);
  flex-shrink: 0;
}

.cr-handle {
  color: var(--text-3);
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-cat {
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  font-size: 8.5px;
  white-space: nowrap;
}

.cr-followers {
  color: var(--text-2);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.cr-earned {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.cr-earned .icon {
  width: 10px;
  height: 10px;
  color: var(--amber);
}

.cr-action {
  justify-self: end;
}

.cr-action .follow-btn {
  height: 27px;
  padding: 0 9px;
  font-size: 8.5px;
}

/* Become creator */

.become-creator {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--stroke);
  border-radius: 27px;
  background:
    radial-gradient(100% 130% at 100% 50%, rgba(255, 180, 84, 0.1), transparent 55%),
    radial-gradient(100% 120% at 0% 0%, rgba(255, 95, 126, 0.13), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.become-creator-copy {
  position: relative;
  z-index: 1;
}

.become-creator-copy h3 {
  margin: 6px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.become-creator-copy p {
  max-width: 430px;
  margin-bottom: 17px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.become-creator-visual {
  position: relative;
  height: 200px;
}

.bc-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.bc-ring--1 {
  width: 260px;
  height: 260px;
}

.bc-ring--2 {
  width: 185px;
  height: 185px;
  border-style: dashed;
  opacity: 0.6;
}

.bc-avatar {
  position: absolute;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 20px 40px -18px #000;
}

.bc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-avatar--1 {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
}

.bc-avatar--2 {
  left: 15%;
  top: 19%;
  width: 52px;
  height: 52px;
}

.bc-avatar--3 {
  right: 13%;
  bottom: 14%;
  width: 44px;
  height: 44px;
}

.bc-earn {
  position: absolute;
  left: 50%;
  bottom: -3px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 180, 84, 0.2);
  border-radius: 99px;
  background: rgba(12, 8, 15, 0.72);
  backdrop-filter: blur(8px);
  color: var(--amber-soft);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ==========================================================================
   Rewards
   ========================================================================== */

.balance-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 180, 84, 0.16);
  border-radius: 13px;
  background: rgba(255, 180, 84, 0.055);
}

.balance-chip > span {
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.balance-chip strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.balance-chip .icon {
  width: 13px;
  height: 13px;
}

.rewards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 19px;
  align-items: stretch;
}

.wheel-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid rgba(255, 180, 84, 0.16);
  border-radius: 29px;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(255, 180, 84, 0.13), transparent 55%),
    linear-gradient(165deg, #171016, #0e0b11);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wheel-panel-glow {
  position: absolute;
  top: -170px;
  left: 50%;
  width: 470px;
  height: 470px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.18), transparent 60%);
  filter: blur(32px);
  pointer-events: none;
}

.wheel-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 17px;
}

.wheel-panel-head h3 {
  margin: 5px 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.wheel-panel-head p {
  max-width: 360px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.6;
}

.wheel-zone {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 3px 0 14px;
}

.wheel-instance {
  position: relative;
  width: min(330px, 72vw);
  aspect-ratio: 1;
  user-select: none;
}

.wheel-instance--modal {
  width: min(305px, 68vw);
}

.wheel-instance--rewards {
  width: min(340px, 70vw);
}

.wheel-rotor {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 5.2s cubic-bezier(0.12, 0.66, 0.08, 1);
}

.wheel-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.6));
}

.wheel-svg text {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  fill: #f8efe3;
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -5px;
  z-index: 4;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 19px solid #ffc45e;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -23px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc45e;
}

.wheel-center-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translate(-50%, -50%);
  border: 6px solid #171017;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd08a, #ff9e4a 58%, #c56a22);
  color: #2b1207;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.wheel-center-label .icon {
  width: 19px;
  height: 19px;
  margin-bottom: -1px;
}

.wheel-center-label span {
  font-family: "Sora", sans-serif;
  font-size: 5.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.wheel-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 25px;
  margin-bottom: 9px;
  color: var(--amber-soft);
  font-size: 10.5px;
  font-weight: 600;
}

.wheel-result strong {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.wheel-result.is-win {
  animation: resultPop 0.5s var(--ease-out);
}

.wheel-result .icon {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.wheel-panel .btn {
  min-width: 218px;
}

.wheel-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  color: var(--text-3);
  font-size: 8.5px;
}

.wheel-note .icon {
  opacity: 0.7;
}

.dot-sep {
  opacity: 0.32;
}

.rewards-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quests-panel {
  flex: 1;
  padding: 19px;
  border: 1px solid var(--stroke);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.022);
}

.quest-reset {
  color: var(--text-3);
  font-size: 8px;
  white-space: nowrap;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.13);
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.quest-item.is-ready {
  border-color: rgba(255, 180, 84, 0.19);
  background: linear-gradient(120deg, rgba(255, 180, 84, 0.075), rgba(255, 95, 126, 0.025));
}

.quest-item.is-claimed {
  opacity: 0.55;
}

.quest-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.quest-icon .icon {
  width: 15px;
  height: 15px;
}

.quest-item.is-ready .quest-icon {
  border-color: rgba(255, 180, 84, 0.2);
  background: rgba(255, 180, 84, 0.08);
  color: var(--amber);
}

.quest-copy {
  flex: 1;
  min-width: 0;
}

.quest-copy strong {
  display: block;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
}

.quest-copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.4;
}

.quest-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.quest-reward {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.quest-reward .icon {
  width: 9px;
  height: 9px;
  color: var(--amber);
}

.quest-btn {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.quest-btn.is-ready {
  border-color: transparent;
  background: var(--text);
  color: #0b080d;
}

.quest-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.streak-card {
  padding: 19px;
  border: 1px solid var(--stroke);
  border-radius: 23px;
  background:
    radial-gradient(110% 110% at 100% 0%, rgba(255, 180, 84, 0.1), transparent 55%),
    linear-gradient(140deg, rgba(255, 180, 84, 0.07), rgba(255, 95, 126, 0.025));
}

.streak-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.streak-head h3 {
  margin-top: 3px;
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.streak-flame {
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(255, 140, 60, 0.5));
}

.streak-days {
  display: flex;
  gap: 5px;
  margin: 14px 0 10px;
}

.streak-day {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
}

.streak-day.is-done {
  border-color: rgba(255, 180, 84, 0.22);
  background: linear-gradient(145deg, rgba(255, 140, 90, 0.2), rgba(255, 180, 84, 0.08));
  color: var(--amber-soft);
}

.streak-day.is-today {
  box-shadow: 0 0 0 1px var(--amber), 0 0 18px rgba(255, 180, 84, 0.18);
}

.streak-day .icon {
  width: 11px;
  height: 11px;
}

.streak-note {
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.5;
}

.streak-note strong {
  color: var(--amber-soft);
}

.earn-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 19px;
}

.earn-card {
  padding: 19px;
  border: 1px solid var(--stroke);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.018);
}

.earn-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 11px;
}

.earn-icon--rose {
  background: rgba(255, 95, 126, 0.1);
  color: var(--rose);
}

.earn-icon--gold {
  background: rgba(255, 180, 84, 0.1);
  color: var(--amber);
}

.earn-icon--violet {
  background: rgba(157, 123, 255, 0.1);
  color: var(--violet);
}

.earn-icon .icon {
  width: 17px;
  height: 17px;
}

.earn-card h3 {
  margin-bottom: 3px;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
}

.earn-card p {
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.55;
}

/* ==========================================================================
   Wallet
   ========================================================================== */

.wallet-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 180, 84, 0.16);
  border-radius: 29px;
  background:
    radial-gradient(80% 140% at 88% 0%, rgba(255, 180, 84, 0.16), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 95, 126, 0.12), transparent 55%),
    linear-gradient(152deg, #161016, #0e0b11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wallet-hero-glow {
  position: absolute;
  right: 15%;
  top: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.16), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.wallet-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.wallet-balance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 3px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.wallet-balance .icon--gem-lg {
  width: 33px;
  height: 33px;
  color: var(--amber);
  filter: drop-shadow(0 0 18px rgba(255, 180, 84, 0.42));
}

.wallet-balance small {
  align-self: flex-end;
  margin-left: 1px;
  padding-bottom: 7px;
  color: var(--text-3);
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.wallet-hero-copy > p {
  color: var(--text-3);
  font-size: 9.5px;
}

.wallet-hero-copy > p strong {
  color: var(--text-2);
  font-weight: 600;
}

.tier-track {
  width: min(280px, 100%);
  height: 4px;
  margin: 13px 0 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.tier-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a5c, #ffc45e);
}

.tier-note {
  color: var(--text-3);
  font-size: 8px;
}

.wallet-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}

.wallet-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 84px;
}

.wallet-hero-stats span {
  color: var(--text-3);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wallet-hero-stats strong {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wallet-hero-stats strong .icon {
  color: var(--amber);
}

.wallet-hero-art {
  position: absolute;
  right: -30px;
  top: 50%;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.gem-3d {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 30px 40px rgba(255, 140, 60, 0.3));
}

.gem-3d .icon {
  width: 200px;
  height: 200px;
  color: #ffc45e;
  opacity: 0.22;
  transform: rotate(-8deg);
}

.gem-spark {
  position: absolute;
  color: var(--amber-soft);
  font-size: 18px;
  opacity: 0.55;
  animation: twinkle 4s ease-in-out infinite;
}

.gem-spark--1 {
  top: 17%;
  left: 12%;
}

.gem-spark--2 {
  right: 17%;
  bottom: 15%;
  font-size: 11px;
  animation-delay: 1.5s;
}

.packs-section,
.transactions-section {
  margin-top: 30px;
}

.section-head--tight {
  align-items: center;
  margin-bottom: 15px;
}

.secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(75, 224, 176, 0.14);
  border-radius: 99px;
  background: rgba(75, 224, 176, 0.055);
  color: var(--mint);
  font-size: 8px;
  font-weight: 600;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.pack-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 180, 84, 0.25);
}

.pack-card.is-popular {
  border-color: rgba(255, 180, 84, 0.28);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255, 180, 84, 0.13), transparent 60%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.pack-ribbon {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--grad);
  color: #26100b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-gem {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 180, 84, 0.15);
  border-radius: 11px;
  background: rgba(255, 180, 84, 0.09);
  color: var(--amber);
}

.pack-gem .icon {
  width: 18px;
  height: 18px;
}

.pack-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pack-amount .icon {
  width: 13px;
  height: 13px;
  color: var(--amber);
}

.pack-bonus {
  min-height: 13px;
  margin-top: 4px;
  color: var(--mint);
  font-size: 8.5px;
}

.pack-price {
  margin-top: 8px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.pack-price span {
  color: var(--text-3);
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 400;
}

.pack-card .btn {
  width: 100%;
  margin-top: 9px;
  min-height: 31px;
  font-size: 9.5px;
}

.tx-card {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.018);
}

.tx-head,
.tx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 100px;
  gap: 15px;
  align-items: center;
  padding: 11px 17px;
}

.tx-head {
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tx-head span:last-child,
.tx-row > :last-child {
  text-align: right;
}

.tx-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.038);
  font-size: 10px;
}

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

.tx-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tx-icon {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.tx-icon .icon {
  width: 13px;
  height: 13px;
}

.tx-icon--in {
  background: rgba(75, 224, 176, 0.07);
  color: var(--mint);
}

.tx-icon--out {
  background: rgba(255, 95, 126, 0.07);
  color: var(--rose);
}

.tx-label-copy {
  min-width: 0;
}

.tx-label strong {
  display: block;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-label span {
  color: var(--text-3);
  font-size: 8px;
}

.tx-time {
  color: var(--text-3);
  font-size: 8.5px;
}

.tx-amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: var(--mint);
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tx-amount.is-out {
  color: var(--rose);
}

.tx-amount .icon {
  width: 9px;
  height: 9px;
}

.tx-empty {
  padding: 38px 20px;
  color: var(--text-3);
  font-size: 10px;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--stroke);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.brand-mark--sm {
  width: 21px;
  height: 21px;
}

.footer-pro {
  margin-left: 2px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 4px;
  color: var(--amber);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.site-footer p {
  flex: 1;
  min-width: 240px;
  max-width: 660px;
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.65;
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */

.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  background: rgba(8, 7, 11, 0.9);
  backdrop-filter: blur(26px) saturate(140%);
}

.mnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 2px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 8px;
  font-weight: 500;
  transition: color 0.2s;
}

.mnav-item .icon {
  width: 19px;
  height: 19px;
  transition: color 0.2s, transform 0.2s;
}

.mnav-item.is-active {
  color: var(--text);
}

.mnav-item.is-active .icon {
  color: var(--rose);
  transform: translateY(-1px);
}

.mnav-item--center {
  position: relative;
}

.mnav-center-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-top: -24px;
  margin-bottom: 1px;
  border: 4px solid var(--bg);
  border-radius: 15px;
  background: var(--grad);
  color: #1a0a10;
  box-shadow: 0 10px 28px -8px rgba(255, 120, 100, 0.5);
  transition: box-shadow 0.2s, transform 0.2s;
}

.mnav-center-btn .icon {
  width: 19px;
  height: 19px;
  color: inherit;
}

.mnav-item--center.is-active .mnav-center-btn {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 32px -6px rgba(255, 120, 100, 0.72);
  transform: translateY(-1px);
}

/* ==========================================================================
   Modals — shared
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 6, 0.72);
  backdrop-filter: blur(14px);
}

.dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 27px;
  background: linear-gradient(165deg, #151018, #0c0a0f 72%);
  box-shadow: 0 40px 110px -32px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(18px) scale(0.975);
  transition: transform 0.35s var(--ease-out);
  scrollbar-width: thin;
}

.modal.is-open .dialog {
  transform: none;
}

.dialog--sm {
  width: min(440px, 100%);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 6;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dialog-close .icon {
  width: 15px;
  height: 15px;
}

.dialog-head {
  position: relative;
  z-index: 1;
  margin-bottom: 19px;
}

.dialog-head--center {
  text-align: center;
}

.dialog-head h2 {
  margin: 6px 0 7px;
  font-family: "Sora", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.046em;
}

.dialog-head h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: -0.01em;
}

.dialog-head p {
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.65;
}

.fine-print {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
  color: #6c657c;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

/* Wheel dialog */

.wheel-dialog {
  width: min(418px, 100%);
  border-color: rgba(255, 180, 84, 0.17);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(255, 180, 84, 0.14), transparent 55%),
    linear-gradient(165deg, #171017, #0b0910 78%);
}

.wheel-zone--modal {
  margin: 4px 0 9px;
}

.wheel-result--modal {
  min-height: 26px;
  margin-bottom: 8px;
}

.wheel-dialog .btn {
  width: 100%;
}

/* Gift dialog */

.gift-dialog {
  width: min(424px, 100%);
  text-align: center;
}

.gift-hero-art {
  position: relative;
  height: 145px;
  margin: -2px 0 7px;
  display: grid;
  place-items: center;
}

.gift-gem {
  width: 90px;
  height: 90px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 34px rgba(255, 180, 84, 0.45));
  animation: gemFloat 4.5s ease-in-out infinite;
}

.gift-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 84, 0.15);
  transform: translate(-50%, -50%);
}

.gift-orbit--1 {
  width: 148px;
  height: 148px;
}

.gift-orbit--2 {
  width: 206px;
  height: 206px;
  border-color: rgba(255, 255, 255, 0.055);
}

.gift-spark {
  position: absolute;
  color: var(--amber-soft);
  font-size: 12px;
  opacity: 0.65;
  animation: twinkle 3.5s ease-in-out infinite;
}

.gift-spark--1 {
  top: 16%;
  left: 25%;
}

.gift-spark--2 {
  right: 22%;
  bottom: 21%;
  animation-delay: 1.1s;
}

.gift-spark--3 {
  top: 26%;
  right: 28%;
  font-size: 8px;
  animation-delay: 2.1s;
}

.gift-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 18px;
  padding: 13px;
  border: 1px solid rgba(255, 180, 84, 0.16);
  border-radius: 15px;
  background: rgba(255, 180, 84, 0.055);
}

.gift-amount .icon {
  width: 21px;
  height: 21px;
  color: var(--amber);
}

.gift-amount strong {
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.gift-amount span {
  color: var(--text-3);
  font-size: 9px;
}

.gift-dialog .btn--block {
  margin-bottom: 8px;
}

.gift-dialog.is-claimed .gift-amount {
  border-color: rgba(75, 224, 176, 0.18);
  background: rgba(75, 224, 176, 0.055);
}

.gift-dialog.is-claimed .gift-amount .icon {
  color: var(--mint);
}

.gift-dialog.is-claimed .gift-amount strong {
  color: var(--mint);
}

/* Checkout */

.checkout-pack {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.028);
}

.checkout-gem {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 180, 84, 0.1);
  color: var(--amber);
}

.checkout-gem .icon {
  width: 18px;
  height: 18px;
}

.checkout-pack strong {
  display: block;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

.checkout-pack span {
  color: var(--text-3);
  font-size: 8.5px;
}

.checkout-price {
  margin-left: auto;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 15px;
}

.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 5px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pay-method .icon {
  width: 16px;
  height: 16px;
}

.pay-method.is-active {
  border-color: rgba(255, 180, 84, 0.35);
  background: rgba(255, 180, 84, 0.07);
  color: var(--text);
}

.pay-logo {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--text);
  color: #0d090f;
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
  color: var(--text-3);
  font-size: 10px;
}

.checkout-total strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* App dialog */

.app-dialog {
  width: min(870px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
}

.app-dialog-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.app-dialog-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 126, 0.22), rgba(255, 180, 84, 0.08) 50%, transparent 70%);
  filter: blur(30px);
}

.phone {
  position: relative;
  z-index: 1;
  width: 224px;
  height: 452px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 39px;
  background: #0a080d;
  box-shadow: 0 40px 80px -24px #000, inset 0 0 0 7px #16121a;
  transform: rotate(-3deg);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 76px;
  height: 19px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  background: #08070a;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  padding: 11px 9px 7px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, #110d14, #0a080d);
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 17px;
  font-family: "Sora", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
}

.brand-mark--xs {
  width: 15px;
  height: 15px;
}

.mini-live {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 2px 4px;
  border: 1px solid rgba(255, 95, 126, 0.3);
  border-radius: 3px;
  color: #ff9aab;
  font-size: 5.5px;
  font-weight: 800;
}

.mini-live .live-dot {
  width: 3px;
  height: 3px;
  box-shadow: none;
}

.mini-feature {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 11px;
}

.mini-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.8));
}

.mini-feature-name {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 1;
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
}

.mini-feature-gem {
  position: absolute;
  right: 7px;
  bottom: 8px;
  z-index: 1;
  color: var(--amber-soft);
  font-size: 6.5px;
}

.mini-chips {
  display: flex;
  gap: 4px;
}

.mini-chips span {
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  font-size: 6px;
}

.mini-chips span.is-on {
  background: var(--text);
  color: #100b12;
  font-weight: 700;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  height: 112px;
  flex-shrink: 0;
}

.mini-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.mini-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-tile-live {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #ff3b63;
  color: #fff;
  font-size: 5px;
  font-weight: 800;
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 5px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-nav i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.mini-nav i.is-on {
  width: 17px;
  border-radius: 5px;
  background: var(--rose);
}

.app-float {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(20, 15, 24, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -14px #000;
  color: var(--text-2);
  font-size: 8px;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.app-float--1 {
  top: 16%;
  right: 4%;
  color: var(--amber-soft);
}

.app-float--2 {
  left: 1%;
  bottom: 20%;
  animation-delay: -3s;
}

.app-dialog-copy {
  min-width: 0;
}

.app-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0 20px;
}

.app-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 10.5px;
}

.app-perks li > span {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(75, 224, 176, 0.1);
  color: var(--mint);
}

.app-perks li .icon {
  width: 10px;
  height: 10px;
}

.store-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--stroke-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.085);
}

.store-btn small {
  display: block;
  color: var(--text-3);
  font-size: 6.5px;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 10.5px;
  line-height: 1.25;
}

.store-btn .icon--md {
  width: 19px;
  height: 19px;
}

/* Go live */

.golive-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 116px;
  margin-bottom: 1px;
}

.golive-ring {
  position: absolute;
  width: 122px;
  height: 122px;
  border: 1px solid rgba(255, 95, 126, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 126, 0.12), transparent 65%);
  animation: pulseRing 3.5s ease-in-out infinite;
}

.golive-cam {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: var(--grad);
  color: #1d0b10;
  box-shadow: 0 18px 40px -12px rgba(255, 120, 100, 0.5);
  transform: rotate(-6deg);
}

.golive-cam .icon {
  width: 27px;
  height: 27px;
  margin-left: 3px;
}

.golive-spark {
  position: absolute;
  top: 19%;
  right: 33%;
  color: var(--amber-soft);
  font-size: 13px;
}

.golive-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field > span:first-child {
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 41px;
  padding: 0 11px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus {
  border-color: rgba(255, 180, 84, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.field input::placeholder {
  color: var(--text-3);
}

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

.select-field select {
  appearance: none;
  padding-right: 32px;
  cursor: pointer;
}

.select-field option {
  background: #141019;
}

.select-field .icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.golive-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 8px 0 2px;
  text-align: center;
}

.success-ring {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border: 1px solid rgba(75, 224, 176, 0.3);
  border-radius: 50%;
  background: rgba(75, 224, 176, 0.1);
  color: var(--mint);
}

.success-ring .icon {
  width: 25px;
  height: 25px;
}

.golive-success h3 {
  font-family: "Sora", sans-serif;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.golive-success h3 span {
  color: var(--amber-soft);
}

.golive-success p {
  max-width: 280px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.6;
}

/* ==========================================================================
   Stream modal
   ========================================================================== */

.modal--stream {
  padding: clamp(0px, 2vw, 22px);
}

.stream-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(342px, 0.84fr);
  width: min(1180px, 100%);
  height: min(820px, 90vh);
  height: min(820px, 90dvh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  background: #0b0910;
  box-shadow: 0 50px 120px -30px #000;
  transform: translateY(20px) scale(0.985);
  transition: transform 0.4s var(--ease-out);
}

.modal.is-open .stream-shell {
  transform: none;
}

.stream-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #0a080d;
}

.stream-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: kenBurns 28s ease-in-out infinite alternate;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 3, 8, 0.55) 0%, transparent 22%, transparent 62%, rgba(5, 3, 8, 0.82) 100%), radial-gradient(100% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35));
}

.stage-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.stage-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stage-timer {
  margin-left: auto;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(6, 4, 8, 0.45);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.65);
  font-family: "Sora", sans-serif;
  font-size: 9px;
}

.quality-tag {
  padding: 1px 3px;
  border: 1px solid rgba(255, 196, 94, 0.3);
  border-radius: 3px;
  color: #ffc45e;
  font-size: 7px;
  font-weight: 800;
}

.stage-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stage-btn {
  position: relative;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(8, 6, 10, 0.5);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 9px;
  transition: background 0.2s;
}

.stage-btn.is-muted::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

.stage-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.stage-btn .icon {
  width: 15px;
  height: 15px;
}

.stage-btn--close {
  width: 38px;
  padding: 0;
}

.reaction-count {
  color: rgba(255, 255, 255, 0.78);
}

.stage-chat {
  position: absolute;
  left: 17px;
  bottom: 72px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 72%;
  pointer-events: none;
}

.stage-chat-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 6, 12, 0.45);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  line-height: 1.4;
  animation: bubbleIn 0.4s var(--ease-out);
}

.stage-chat-bubble strong {
  flex-shrink: 0;
  color: var(--amber-soft);
  font-weight: 600;
}

.stage-chat-bubble.is-gift {
  border-color: rgba(255, 180, 84, 0.28);
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.3), rgba(255, 180, 84, 0.18));
}

.stage-equalizer {
  position: absolute;
  left: 19px;
  top: 62px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
  opacity: 0.6;
}

.stage-equalizer i {
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc45e, #ff7a88);
  animation: eq 1s ease-in-out infinite;
}

.stage-equalizer i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.stage-equalizer i:nth-child(2) { height: 80%; animation-delay: -0.5s; }
.stage-equalizer i:nth-child(3) { height: 55%; animation-delay: -0.7s; }
.stage-equalizer i:nth-child(4) { height: 100%; animation-delay: -0.3s; }
.stage-equalizer i:nth-child(5) { height: 65%; animation-delay: -0.9s; }

.stage-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.stage-progress i {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #ff7a88, #ffc45e);
}

.stage-hint {
  position: absolute;
  left: 18px;
  bottom: 21px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
}

.gift-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.gift-fx {
  position: absolute;
  font-size: 38px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
  animation: giftRise 2.2s var(--ease-out) forwards;
}

.reaction-fx {
  position: absolute;
  font-size: 19px;
  opacity: 0;
  pointer-events: none;
  animation: reactionFloat 2.4s ease-out forwards;
}

.stream-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--stroke);
  background: linear-gradient(180deg, #100d14, #0a080e);
}

.stream-panel-scroll {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 21px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.stream-creator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stream-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  object-fit: cover;
}

.stream-creator-meta {
  flex: 1;
  min-width: 0;
}

.stream-creator-meta h2 {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.stream-creator-meta p {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 8.5px;
}

.stream-creator .follow-btn {
  flex-shrink: 0;
}

.stream-title {
  margin-top: -7px;
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.stream-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -9px;
}

.mini-tag {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-3);
  font-size: 7.5px;
}

.mini-tag--gold {
  background: rgba(255, 180, 84, 0.065);
  color: var(--amber-soft);
}

.goal-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 180, 84, 0.12);
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(255, 180, 84, 0.055), rgba(255, 95, 126, 0.022));
}

.goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-3);
  font-size: 8.5px;
}

.goal-head strong {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
}

.goal-track--lg {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.goal-note {
  color: var(--text-3);
  font-size: 7.5px;
  line-height: 1.45;
}

.panel-section {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 9px;
}

.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Sora", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
}

.panel-hint {
  color: var(--text-3);
  font-size: 7.5px;
}

.balance-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 180, 84, 0.065);
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 8.5px;
}

.supporters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.supporter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-2);
  font-size: 8px;
}

.supporter strong {
  color: var(--text);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.2;
}

.supporter .gem-text {
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 7.5px;
}

.supporter--you {
  border-color: rgba(255, 180, 84, 0.22);
  background: rgba(255, 180, 84, 0.055);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gift-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 3px 6px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.gift-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 180, 84, 0.3);
  background: rgba(255, 180, 84, 0.055);
}

.gift-btn:active {
  transform: scale(0.96);
}

.gift-emoji {
  font-size: 21px;
  line-height: 1.1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gift-name {
  color: var(--text-3);
  font-size: 7px;
  font-weight: 500;
}

.gift-price {
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 8px;
  font-weight: 600;
}

.gift-price .icon {
  width: 9px;
  height: 9px;
}

.gift-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--text-3);
  font-size: 7.5px;
}

.chat-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 215px;
}

.chat-live {
  display: inline-flex;
  margin-left: 2px;
}

.chat-live .live-dot {
  width: 4px;
  height: 4px;
}

.chat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  max-height: 235px;
  padding: 2px 2px 7px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-msg {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  line-height: 1.5;
  word-break: break-word;
  animation: chatIn 0.3s var(--ease-out);
}

.chat-user {
  margin-right: 3px;
  color: var(--amber-soft);
  font-weight: 600;
}

.chat-user--rose { color: #ff9aab; }
.chat-user--violet { color: #b9a2ff; }
.chat-user--mint { color: #8ceac9; }

.chat-msg--gift {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 180, 84, 0.14);
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.12), rgba(255, 180, 84, 0.05));
  color: #ffd7a1;
}

.chat-msg--gift .icon {
  width: 11px;
  height: 11px;
  color: var(--amber);
}

.chat-msg--gift .gem-text {
  color: var(--amber-soft);
  font-family: "Sora", sans-serif;
  font-size: 8px;
  font-weight: 600;
}

.chat-msg--system {
  color: var(--text-3);
  font-size: 8.5px;
  text-align: center;
}

.chat-form {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.chat-form input {
  flex: 1;
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 9.5px;
  transition: border-color 0.2s;
}

.chat-form input:focus {
  border-color: rgba(255, 95, 126, 0.35);
}

.chat-form input::placeholder {
  color: var(--text-3);
}

.chat-form button {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--grad);
  color: #1a0a10;
  transition: filter 0.2s;
}

.chat-form button:hover {
  filter: brightness(1.08);
}

.chat-form button .icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Notifications drawer
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 6, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(386px, 100%);
  height: 100%;
  border-left: 1px solid var(--stroke);
  background: linear-gradient(165deg, #121016, #0a080d);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.drawer.is-open .drawer-panel {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 19px 15px;
  border-bottom: 1px solid var(--stroke);
}

.drawer-head h2 {
  margin-top: 3px;
  font-family: "Sora", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notif-list {
  flex: 1;
  padding: 9px;
  overflow-y: auto;
}

.notif {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  text-align: left;
  transition: background 0.2s;
}

.notif:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif.is-unread {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.023);
}

.notif.is-unread::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 9px;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--rose);
}

.notif-icon {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.notif-icon .icon {
  width: 14px;
  height: 14px;
}

.notif-icon--rose { background: rgba(255, 95, 126, 0.1); color: var(--rose); }
.notif-icon--gold { background: rgba(255, 180, 84, 0.1); color: var(--amber); }
.notif-icon--violet { background: rgba(157, 123, 255, 0.1); color: var(--violet); }
.notif-icon--mint { background: rgba(75, 224, 176, 0.1); color: var(--mint); }

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 8px;
}

.notif-body strong {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.notif-body span {
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.4;
}

.notif-time {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 7.5px;
}

.drawer-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 19px;
  border-top: 1px solid var(--stroke);
  color: var(--text-3);
  font-size: 8px;
}

/* ==========================================================================
   Command palette
   ========================================================================== */

.palette {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: min(13vh, 112px) 18px 18px;
  visibility: hidden;
}

.palette.is-open {
  visibility: visible;
}

.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 6, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s;
}

.palette.is-open .palette-backdrop {
  opacity: 1;
}

.palette-panel {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 21px;
  background: linear-gradient(170deg, #151119, #0b090e);
  box-shadow: 0 50px 100px -25px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s var(--ease-out), opacity 0.28s;
}

.palette.is-open .palette-panel {
  transform: none;
  opacity: 1;
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--stroke);
}

.palette-input-row .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.palette-input-row input {
  flex: 1;
  height: 27px;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

.palette-input-row input::placeholder {
  color: var(--text-3);
}

.palette-input-row kbd {
  flex-shrink: 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-3);
  font-family: "Inter", sans-serif;
  font-size: 8px;
}

.palette-body {
  max-height: min(53vh, 410px);
  padding: 7px;
  overflow-y: auto;
}

.palette-group-label {
  padding: 9px 9px 4px;
  color: var(--text-3);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.palette-item:hover,
.palette-item.is-active {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
}

.palette-item > img {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.palette-item-icon {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.palette-item-icon .icon {
  width: 15px;
  height: 15px;
}

.palette-item-meta {
  flex: 1;
  min-width: 0;
}

.palette-item-meta strong {
  display: block;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-item-meta span {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-item-side {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--text-3);
  font-size: 7.5px;
}

.palette-item-side .live-dot {
  width: 4px;
  height: 4px;
}

.palette-empty {
  padding: 38px 18px;
  color: var(--text-3);
  font-size: 10px;
  text-align: center;
}

.palette-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 15px;
  border-top: 1px solid var(--stroke);
  color: var(--text-3);
  font-size: 7.5px;
}

.palette-foot span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.palette-brand {
  margin-left: auto;
  opacity: 0.7;
}

/* ==========================================================================
   Toasts & confetti
   ========================================================================== */

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(336px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(19, 15, 24, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px -15px #000;
  color: var(--text);
  font-size: 10px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toastIn 0.35s var(--ease-out);
}

.toast.is-leaving {
  animation: toastOut 0.25s ease forwards;
}

.toast-icon {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 180, 84, 0.1);
  color: var(--amber);
}

.toast-icon .icon {
  width: 13px;
  height: 13px;
}

.toast--success .toast-icon {
  background: rgba(75, 224, 176, 0.1);
  color: var(--mint);
}

.toast--error .toast-icon {
  background: rgba(255, 95, 126, 0.1);
  color: var(--rose);
}

.toast-copy strong {
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 600;
}

.toast-copy span {
  display: block;
  color: var(--text-3);
  font-size: 9px;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 6px;
  height: 9px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 1.7s var(--ease-out) forwards;
}

.noscript {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 600;
  padding: 14px;
  border: 1px solid rgba(255, 95, 126, 0.3);
  border-radius: 12px;
  background: #1a1118;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .discover-layout {
    grid-template-columns: 1fr;
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
  }

  .wheel-promo {
    min-height: 210px;
  }
}

@media (max-width: 1180px) {
  .app-cta .app-cta-label {
    display: none;
  }

  .app-cta {
    width: 41px;
    padding: 0;
  }

  .app-cta .icon {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sidebar {
    padding: 22px 10px 14px;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
    padding: 2px 0 14px;
  }

  .brand-text,
  .nav-caption,
  .nav-label,
  .nav-count,
  .nav-key,
  .nav-ping,
  .sidebar-promo,
  .sidebar-user-meta,
  .level-badge {
    display: none;
  }

  .side-nav {
    gap: 5px;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .nav-item .icon {
    width: 20px;
    height: 20px;
  }

  .nav-item.is-active::before {
    left: 50%;
    top: auto;
    bottom: 2px;
    width: 14px;
    height: 2px;
    transform: translateX(-50%);
  }

  .go-live {
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 1px auto 0;
    font-size: 0;
    border-radius: 12px;
  }

  .go-live-wave {
    display: none;
  }

  .go-live .icon {
    width: 16px;
    height: 16px;
  }

  .sidebar-user {
    width: 42px;
    height: 42px;
    padding: 0;
    margin: auto auto 0;
    justify-content: center;
    border: 0;
    background: none;
  }

  .avatar--me {
    width: 36px;
    height: 36px;
  }

  .stream-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  }
}

@media (max-width: 1023px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }

  .greeting {
    display: none;
  }

  .search-trigger {
    display: none;
  }

  .icon-btn--mobile {
    display: grid;
  }

  .topbar {
    padding: 11px 16px;
    gap: 9px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .app-cta {
    display: none;
  }

  .ticker-label {
    padding-left: 16px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .ticker-viewers {
    padding-right: 16px;
  }

  .content {
    padding: 18px 16px 108px;
  }

  .mobile-nav {
    display: flex;
    align-items: flex-end;
  }

  .stream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stream-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal {
    padding: 14px;
  }

  .stream-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    margin-bottom: 4px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 24px 32px;
    border-radius: 27px;
  }

  .hero-copy {
    gap: 15px;
    padding: 2px 0 0;
  }

  .hero-title {
    font-size: clamp(38px, 9.2vw, 54px);
  }

  .hero-sub {
    max-width: 100%;
    font-size: 12px;
  }

  .hero-stage {
    width: min(100%, 430px);
    min-height: 0;
    margin: 27px auto 0;
    padding: 9px 0 29px;
  }

  .feature-card {
    width: min(300px, 68vw);
  }

  .ticker-viewers {
    display: none;
  }

  .float-chip--gift {
    top: 15%;
    right: 4%;
  }

  .float-chip--chat {
    display: none;
  }

  .float-chip--like {
    right: 7%;
    bottom: 28%;
  }

  .mobile-wheel-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 180, 84, 0.19);
    border-radius: 16px;
    background:
      radial-gradient(120% 160% at 100% 0%, rgba(255, 180, 84, 0.16), transparent 55%),
      rgba(255, 255, 255, 0.028);
    text-align: left;
  }

  .mobile-app-banner {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 180, 84, 0.16);
    border-radius: 17px;
    background:
      radial-gradient(120% 180% at 0% 0%, rgba(255, 95, 126, 0.16), transparent 58%),
      rgba(255, 255, 255, 0.026);
    text-align: left;
  }

  .mobile-app-banner .brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

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

  .mab-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 0.11em;
  }

  .mab-copy strong {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
  }

  .mab-copy > span:last-child {
    color: var(--text-3);
    font-size: 8px;
  }

  .mobile-app-banner .btn {
    flex-shrink: 0;
    min-height: 31px;
    padding: 0 11px;
    font-size: 9px;
  }

  .mobile-app-banner .btn .icon {
    width: 12px;
    height: 12px;
  }

  .mobile-wheel-icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 180, 84, 0.11);
    color: var(--amber);
  }

  .mobile-wheel-icon .icon {
    width: 18px;
    height: 18px;
  }

  .mobile-wheel-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .mobile-wheel-copy strong {
    font-family: "Sora", sans-serif;
    font-size: 11px;
    font-weight: 600;
  }

  .mobile-wheel-copy span {
    color: var(--text-3);
    font-size: 8.5px;
  }

  .mobile-wheel-cta {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    color: var(--amber-soft);
    font-size: 8.5px;
    font-weight: 600;
  }

  .rail {
    display: none;
  }

  .feed-section {
    margin-top: 25px;
  }

  .rewards-layout {
    grid-template-columns: 1fr;
  }

  .wallet-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .wallet-hero-stats {
    margin-left: 0;
    gap: 22px;
  }

  .wallet-hero-art {
    right: -70px;
    opacity: 0.32;
  }

  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .earn-info {
    grid-template-columns: repeat(3, 1fr);
  }

  .become-creator {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .become-creator-visual {
    display: none;
  }

  .app-dialog {
    grid-template-columns: 1fr;
    max-width: 470px;
    gap: 8px;
    padding: 30px 24px;
  }

  .app-dialog-visual {
    display: none;
  }

  .podium-card {
    padding: 17px 11px 14px;
  }

  .podium-card--1 {
    padding-top: 25px;
  }

  .podium-avatar-wrap {
    width: 60px;
    height: 60px;
  }

  .podium-card--1 .podium-avatar-wrap {
    width: 76px;
    height: 76px;
  }

  .podium-name {
    font-size: 11.5px;
  }

  .podium-card--1 .podium-name {
    font-size: 13px;
  }

  .podium-cat {
    font-size: 7.5px;
  }

  .creator-table-head,
  .creator-row {
    grid-template-columns: minmax(160px, 2fr) 0.8fr 1fr 76px;
  }

  .ct-followers,
  .cr-followers {
    display: none;
  }

  .stream-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh minmax(0, 1fr);
    width: 100%;
    height: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .modal--stream {
    padding: 0;
  }

  .stream-stage {
    min-height: 0;
  }

  .stage-chat {
    bottom: 64px;
  }

  .stream-panel {
    border-top: 1px solid var(--stroke);
    border-left: 0;
  }

  .stream-panel-scroll {
    padding: 18px;
  }

  .modal:not(.modal--stream) {
    padding: 14px;
  }
}

@media (max-width: 700px) {
  .ticker {
    height: 35px;
    font-size: 9.5px;
  }

  .ticker-viewers {
    display: none;
  }

  .ticker-label {
    padding-left: 13px;
    padding-right: 10px;
  }

  .ticker-group {
    gap: 20px;
    padding-right: 20px;
  }

  .topbar {
    gap: 7px;
  }

  .mobile-brand {
    font-size: 16px;
  }

  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .balance-pill {
    height: 39px;
    padding: 0 6px 0 9px;
    font-size: 10.5px;
  }

  .balance-pill-plus {
    width: 21px;
    height: 21px;
  }

  .icon-btn {
    width: 39px;
    height: 39px;
  }

  .icon-btn--spin {
    display: none;
  }

  .stream-grid,
  .stream-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .stream-card {
    border-radius: 17px;
  }

  .card-media {
    aspect-ratio: 3 / 3.9;
  }

  .card-body {
    left: 9px;
    right: 9px;
    bottom: 9px;
    gap: 3px;
  }

  .card-top {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .card-name {
    font-size: 11px;
  }

  .card-title {
    font-size: 8.5px;
  }

  .card-tags {
    display: none;
  }

  .card-follow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .card-follow .icon {
    width: 12.5px;
    height: 12.5px;
  }

  .card-avatar {
    width: 21px;
    height: 21px;
  }

  .badge {
    padding: 4px 6px;
    font-size: 7px;
  }

  .card-viewers {
    padding: 3px 4px;
    font-size: 7px;
  }

  .card-viewers .icon {
    width: 8px;
    height: 8px;
  }

  .card-goal .goal-meta {
    font-size: 6.8px;
  }

  .section-head {
    margin-bottom: 13px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .section-head p {
    font-size: 9.5px;
  }

  .chip {
    height: 33px;
    padding: 0 11px;
    font-size: 10px;
  }

  .page-head {
    gap: 14px;
    margin-bottom: 18px;
  }

  .page-head h2 {
    font-size: 29px;
  }

  .page-head p {
    font-size: 10.5px;
  }

  .page-head-tools {
    width: 100%;
  }

  .watching-pill {
    flex: 1;
  }

  .select-wrap {
    flex-shrink: 0;
  }

  .segmented {
    width: 100%;
  }

  .segmented-btn {
    flex: 1;
  }

  .hero {
    padding: 22px 18px 27px;
    border-radius: 23px;
  }

  .hero-title {
    font-size: clamp(36px, 10.5vw, 47px);
  }

  .hero-copy {
    gap: 13px;
  }

  .hero-actions {
    width: 100%;
    gap: 7px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    min-height: 43px;
    font-size: 12px;
  }

  .hero-proof {
    gap: 9px;
    margin-top: 4px;
  }

  .hero-proof-text strong {
    font-size: 10px;
  }

  .hero-proof-text span {
    font-size: 8.5px;
  }

  .status-pill {
    font-size: 7.5px;
  }

  .hero-stage {
    margin-top: 19px;
    padding-top: 10px;
  }

  .feature-card {
    width: min(242px, 63vw);
    border-radius: 22px;
  }

  .feature-name {
    font-size: 17px;
  }

  .feature-title {
    font-size: 8.5px;
  }

  .float-chip {
    padding: 6px 8px;
    font-size: 8px;
  }

  .float-chip--gift {
    right: 0;
  }

  .float-chip--chat {
    display: none;
  }

  .float-chip--like {
    right: 4%;
    bottom: 25%;
  }

  .feature-dots {
    bottom: -19px;
  }

  .mobile-wheel-strip {
    margin-top: 13px;
  }

  .rewards-layout {
    gap: 13px;
  }

  .wheel-panel {
    padding: 22px 16px;
    border-radius: 23px;
  }

  .wheel-instance--rewards {
    width: min(300px, 76vw);
  }

  .wheel-panel .btn {
    min-width: 0;
    width: 100%;
  }

  .earn-info {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .earn-card {
    padding: 16px;
  }

  .wallet-hero {
    padding: 23px 18px;
    border-radius: 23px;
  }

  .wallet-balance {
    font-size: 44px;
  }

  .wallet-balance small {
    padding-bottom: 5px;
  }

  .pack-grid {
    gap: 9px;
  }

  .pack-card {
    padding: 15px;
    border-radius: 17px;
  }

  .pack-amount {
    font-size: 18px;
  }

  .secure-tag {
    display: none;
  }

  .tx-head,
  .tx-row {
    grid-template-columns: minmax(0, 1fr) 82px 80px;
    gap: 8px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .creator-table-head,
  .creator-row {
    grid-template-columns: minmax(0, 1fr) 0.75fr 68px;
    gap: 8px;
    padding: 10px 12px;
  }

  .ct-cat,
  .cr-cat {
    display: none;
  }

  .cr-avatar {
    width: 32px;
    height: 32px;
  }

  .podium {
    gap: 7px;
  }

  .podium-card {
    padding: 14px 8px 12px;
    border-radius: 17px;
  }

  .podium-card--1 {
    padding-top: 21px;
  }

  .podium-rank {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .podium-avatar-wrap {
    width: 48px;
    height: 48px;
  }

  .podium-card--1 .podium-avatar-wrap {
    width: 62px;
    height: 62px;
  }

  .podium-name {
    font-size: 9.5px;
  }

  .podium-card--1 .podium-name {
    font-size: 11px;
  }

  .podium-cat {
    font-size: 6.5px;
    margin-bottom: 6px;
  }

  .podium-earned {
    font-size: 7.5px;
    padding: 3px 6px;
    margin-bottom: 7px;
  }

  .podium-card .follow-btn {
    height: 26px;
    font-size: 7.5px;
  }

  .become-creator {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .become-creator-copy h3 {
    font-size: 25px;
  }

  .become-creator-copy p {
    font-size: 10px;
  }

  .site-footer {
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
  }

  .site-footer p {
    flex-basis: 100%;
    order: 3;
    font-size: 8px;
  }

  .footer-brand {
    margin-right: auto;
  }

  .link-btn {
    font-size: 8px;
  }

  .dialog {
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 24px 18px;
    border-radius: 23px;
  }

  .dialog-head h2 {
    font-size: 25px;
  }

  .gift-hero-art {
    height: 125px;
  }

  .gift-gem {
    width: 76px;
    height: 76px;
  }

  .toast-stack {
    right: 12px;
    bottom: 82px;
    width: min(330px, calc(100vw - 24px));
  }

  .drawer-panel {
    width: 100%;
  }

  .palette {
    padding: 10px;
    align-items: flex-start;
  }

  .palette-panel {
    margin-top: 8vh;
    border-radius: 18px;
  }

  .palette-foot {
    gap: 9px;
  }

  .palette-brand {
    display: none !important;
  }

  .golive-art {
    height: 98px;
  }

  .golive-ring {
    width: 105px;
    height: 105px;
  }

  .golive-cam {
    width: 58px;
    height: 58px;
  }

  .stage-chat {
    display: none;
  }

  .stream-shell {
    grid-template-rows: 37vh minmax(0, 1fr);
  }

  .stage-top {
    top: 13px;
    left: 13px;
    right: 13px;
  }

  .stage-equalizer {
    left: 15px;
    top: 55px;
  }

  .stage-actions {
    right: 13px;
    bottom: 13px;
  }

  .stage-hint {
    left: 15px;
    bottom: 18px;
  }

  .stream-panel-scroll {
    padding: 15px;
    gap: 14px;
  }

  .stream-creator-meta h2 {
    font-size: 14px;
  }

  .gift-btn {
    padding: 7px 3px 5px;
  }

  .gift-emoji {
    font-size: 19px;
  }

  .gift-name {
    display: none;
  }

  .chat-list {
    max-height: 190px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 10px 13px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .content {
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero {
    padding: 21px 15px 25px;
  }

  .hero-title {
    font-size: 39px;
  }

  .hero-sub {
    font-size: 11px;
  }

  .hero-proof-text span {
    display: none;
  }

  .feature-card {
    width: 228px;
  }

  .float-chip--gift,
  .float-chip--like {
    display: none;
  }

  .section-head h2 {
    font-size: 17px;
  }

  .text-link {
    font-size: 9.5px;
  }

  .card-name {
    font-size: 10.5px;
  }

  .card-viewers {
    display: none;
  }

  .card-goal .goal-meta span:first-child {
    display: none;
  }

  .card-goal .goal-meta {
    justify-content: flex-end;
  }

  .wheel-promo {
    padding: 17px;
  }

  .wheel-promo-copy h3 {
    font-size: 25px;
  }

  .wheel-promo-art {
    width: 120px;
    height: 120px;
  }

  .podium-avatar-wrap {
    width: 42px;
    height: 42px;
  }

  .podium-card--1 .podium-avatar-wrap {
    width: 54px;
    height: 54px;
  }

  .podium-crown {
    width: 17px;
    height: 17px;
    top: -10px;
  }

  .podium-cat {
    display: none;
  }

  .cr-handle {
    display: none;
  }

  .creator-table-head,
  .creator-row {
    grid-template-columns: minmax(0, 1fr) 60px;
  }

  .ct-earned {
    display: none;
  }

  .tx-head,
  .tx-row {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .tx-head span:nth-child(2),
  .tx-time {
    display: none;
  }

  .wallet-balance {
    font-size: 40px;
  }

  .wallet-balance .icon--gem-lg {
    width: 27px;
    height: 27px;
  }

  .wallet-hero-stats {
    gap: 16px;
  }

  .wallet-hero-stats strong {
    font-size: 13px;
  }

  .pack-card {
    padding: 13px;
  }

  .pack-ribbon {
    font-size: 6px;
    padding: 2px 4px;
  }

  .packs-section,
  .transactions-section {
    margin-top: 24px;
  }

  .app-cta {
    display: none;
  }

  .toast-stack {
    bottom: 80px;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, 28px, 0) scale(1.08); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes gemFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes resultPop {
  0% { opacity: 0; transform: scale(0.85); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@keyframes giftRise {
  0% { opacity: 0; transform: translateY(30px) scale(0.6) rotate(-8deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-260px) scale(1.5) rotate(10deg); }
}

@keyframes reactionFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-180px) translateX(var(--drift, 20px)) scale(1.2); }
}

@keyframes kenBurns {
  from { transform: scale(1.03) translate3d(-0.6%, 0.4%, 0); }
  to { transform: scale(1.12) translate3d(0.8%, -0.8%, 0); }
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  38% {
    opacity: 1;
    transform: translate3d(calc(var(--dx, 40px) * 0.52), calc(var(--dy, 280px) * -0.46), 0) rotate(calc(var(--rot, 540deg) * 0.45)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 40px), var(--dy, 280px), 0) rotate(var(--rot, 540deg)) scale(0.85);
  }
}

@keyframes balanceBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.055); border-color: rgba(255, 180, 84, 0.45); }
  100% { transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-track {
    animation: none !important;
  }
}

@media (max-width: 374px) {
  .mobile-brand span {
    display: none;
  }

  .topbar {
    padding: 10px;
  }

  .topbar-actions {
    gap: 4px;
  }
}

/* ==========================================================================
   Language switch
   ========================================================================== */

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 41px;
  padding: 0 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-2);
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.lang-pill:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 9px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-switch span {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switch .icon {
  color: var(--text-3);
}

.lang-switch:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.language-option:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.language-option.is-active {
  border-color: rgba(255, 95, 126, 0.38);
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.12), rgba(255, 180, 84, 0.04));
  color: var(--text);
}

.language-option .lang-native {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-option .lang-code {
  margin-left: auto;
  color: var(--text-3);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.language-option .lang-check {
  width: 13px;
  height: 13px;
  color: transparent;
  flex-shrink: 0;
}

.language-option.is-active .lang-check {
  color: var(--mint);
}

.modal--language {
  z-index: 140;
}

.language-dialog {
  width: min(540px, 100%);
}

/* ==========================================================================
   Gated live room
   ========================================================================== */

.stream-stage.is-gated > img {
  filter: blur(26px) brightness(0.56) saturate(0.95);
}

.stream-stage.is-gated .stage-chat,
.stream-stage.is-gated .stage-equalizer,
.stream-stage.is-gated .stage-hint {
  display: none;
}

.stream-stage .stage-top {
  z-index: 5;
}

.stream-stage .stage-actions {
  z-index: 6;
}

.stream-stage .stage-progress {
  z-index: 5;
}

.stage-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 70px;
  background:
    radial-gradient(80% 80% at 50% 44%, rgba(255, 95, 126, 0.1), transparent 66%),
    linear-gradient(180deg, rgba(8, 6, 10, 0.32), rgba(8, 6, 10, 0.76));
  backdrop-filter: blur(2px);
}

.stage-gate-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 19px;
  background: rgba(18, 14, 22, 0.66);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-align: center;
}

.gate-logo {
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  filter: drop-shadow(0 10px 24px rgba(255, 95, 126, 0.35));
}

.stage-gate-card h3 {
  max-width: 310px;
  margin: 7px 0 6px;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.stage-gate-card p {
  max-width: 305px;
  margin: 0;
  color: var(--text-2);
  font-size: 9.5px;
  line-height: 1.6;
}

.gate-cta {
  width: 100%;
  min-height: 38px;
  margin-top: 13px;
  font-size: 11px;
}

.gate-guide-link {
  margin-top: 7px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.gate-guide-link:hover {
  color: var(--text);
}

.gate-perk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  color: var(--amber-soft);
  font-size: 7.5px;
  font-weight: 500;
}

.gate-perk .icon {
  color: var(--amber);
}

.app-only-note {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 180, 84, 0.15);
  border-radius: 8px;
  background: rgba(255, 180, 84, 0.05);
  color: var(--amber-soft);
  font-size: 8px;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.app-only-note span {
  flex: 1;
}

.app-only-note .icon:first-child {
  color: var(--amber);
}

.app-only-note .icon:last-child {
  opacity: 0.5;
}

.app-only-note:hover {
  border-color: rgba(255, 180, 84, 0.35);
  background: rgba(255, 180, 84, 0.09);
}

.stream-panel .chat-form input[readonly] {
  cursor: pointer;
}

/* ==========================================================================
   Download sheet
   ========================================================================== */

.modal--download {
  z-index: 130;
  padding: clamp(0px, 2vw, 20px);
}

.download-sheet {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(92vh, 980px);
  max-height: min(92dvh, 980px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 27px;
  background: #0c0a10;
  box-shadow: 0 50px 130px -35px #000;
  transform: translateY(16px) scale(0.99);
  transition: transform 0.38s var(--ease-out);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.modal.is-open .download-sheet {
  transform: none;
}

.download-top {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(12, 10, 16, 0.86);
  backdrop-filter: blur(22px) saturate(130%);
}

.download-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.download-brand .brand-pro {
  margin-left: 3px;
  vertical-align: middle;
}

.download-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.download-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.download-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.download-close .icon {
  width: 15px;
  height: 15px;
}

.dl-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(255, 95, 126, 0.14), transparent 56%),
    radial-gradient(100% 120% at 100% 100%, rgba(255, 180, 84, 0.09), transparent 50%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, 0.03) 50%, transparent 62%);
}

.dl-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.dl-title {
  margin: 7px 0 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.dl-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: -0.01em;
}

.dl-lead {
  max-width: 490px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.68;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dl-download {
  box-shadow: 0 16px 40px -14px rgba(255, 120, 100, 0.6);
}

.dl-download.is-done {
  background: linear-gradient(120deg, #8ceac9, #c9f4e3);
  color: #082018;
  box-shadow: 0 16px 40px -14px rgba(75, 224, 176, 0.45);
}

.dl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  color: var(--text-3);
  font-size: 8px;
}

.dl-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.dl-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 9px;
}

.dl-check {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(75, 224, 176, 0.09);
  color: var(--mint);
}

.dl-check .icon {
  width: 9px;
  height: 9px;
}

.dl-spin-offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 13px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(255, 180, 84, 0.1), rgba(255, 95, 126, 0.055));
  color: var(--amber-soft);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.dl-spin-offer-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 180, 84, 0.13);
  color: var(--amber);
}

.dl-spin-offer-icon .icon {
  width: 13px;
  height: 13px;
}

html[data-theme="light"] .dl-spin-offer {
  border-color: rgba(167, 96, 16, 0.24);
  background: linear-gradient(120deg, rgba(207, 154, 57, 0.14), rgba(207, 61, 91, 0.055));
}

html[data-theme="light"] .dl-spin-offer-icon {
  background: rgba(167, 96, 16, 0.12);
}

.dl-ios {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 7.5px;
}

.dl-ios .live-dot {
  width: 4px;
  height: 4px;
  background: var(--violet);
  box-shadow: none;
}

.dl-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
}

.dl-visual-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 126, 0.24), rgba(255, 180, 84, 0.07) 48%, transparent 70%);
  filter: blur(36px);
}

.dl-phone {
  z-index: 1;
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease-out);
}

.dl-phone:hover {
  transform: rotate(0deg) translateY(-4px);
}

.dl-float {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(20, 15, 24, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -14px #000;
  color: var(--text-2);
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.dl-float--gift {
  top: 16%;
  right: 1%;
  color: var(--amber-soft);
}

.dl-float--live {
  left: 0;
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 4px;
  animation-delay: -3s;
}

.dl-float--live .live-dot {
  width: 4px;
  height: 4px;
}

.dl-star {
  position: absolute;
  color: var(--amber-soft);
  font-size: 12px;
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite;
}

.dl-star--1 {
  top: 12%;
  left: 16%;
}

.dl-star--2 {
  right: 13%;
  bottom: 16%;
  font-size: 8px;
  animation-delay: 1.6s;
}

/* Install guide — cream paper section */

.install-guide {
  position: relative;
  overflow: hidden;
  margin: 0 22px 22px;
  padding: clamp(22px, 3vw, 31px);
  border-radius: 21px;
  background: #efe9df;
  color: #231e18;
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.85);
}

.install-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 30, 24, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 30, 24, 0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black, transparent 82%);
  mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black, transparent 82%);
}

.guide-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.guide-q {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #231e18;
  color: #efe9df;
  font-family: "Space Mono", monospace;
  font-size: 17px;
  font-weight: 700;
}

.guide-head-copy {
  flex: 1;
  min-width: 0;
}

.guide-eyebrow {
  display: block;
  color: #a34733;
  font-family: "Space Mono", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.guide-head h3 {
  margin: 4px 0 0;
  color: #231e18;
  font-family: "Sora", sans-serif;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.guide-count {
  flex-shrink: 0;
  padding-top: 4px;
  color: #8a7e70;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.guide-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 19px 0 18px;
}

.guide-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  min-height: 76px;
  padding: 12px 10px 10px;
  border: 1px solid #d8d0c3;
  border-radius: 3px;
  background: transparent;
  color: #2a251f;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.guide-step:hover {
  border-color: #a99d8d;
  background: rgba(255, 255, 255, 0.32);
}

.guide-step.is-active {
  border-color: #28231d;
  background: #fbf8f1;
  box-shadow: inset 0 -2px 0 #28231d;
}

.guide-step-num {
  color: #a34733;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.guide-step-name {
  color: #2a251f;
  font-family: "Sora", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}

.guide-detail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
  padding-top: 17px;
  border-top: 1px solid #d8d0c3;
}

.guide-step-index {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #d2c8ba;
  border-radius: 2px;
  color: #a34733;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.guide-detail-copy h4 {
  margin: 8px 0 6px;
  color: #231e18;
  font-family: "Sora", sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.guide-detail-copy p {
  max-width: 390px;
  margin: 0;
  color: #6e655a;
  font-size: 9.5px;
  line-height: 1.65;
}

.guide-step-counter {
  display: block;
  margin-top: 11px;
  color: #8a7e70;
  font-family: "Space Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.guide-screen {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 14px;
  border-radius: 15px;
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(255, 95, 126, 0.13), transparent 55%),
    linear-gradient(160deg, #1b151d, #100d13);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.gs-watermark {
  position: absolute;
  right: -4px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.035);
  font-family: "Space Mono", monospace;
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.gs-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Space Mono", monospace;
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.gs-signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
}

.gs-signal i {
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.gs-signal i:nth-child(2) { height: 6px; }
.gs-signal i:nth-child(3) { height: 8px; }

.gs-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 11px;
}

.gs-app {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--grad);
  color: #1d0b10;
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.gs-head strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.gs-head span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 6.5px;
}

.gs-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  margin-bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.gs-row.is-highlight {
  border-color: rgba(255, 180, 84, 0.3);
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.16), rgba(255, 180, 84, 0.07));
}

.gs-row-dot {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.gs-row.is-highlight .gs-row-dot {
  background: rgba(255, 180, 84, 0.25);
}

.gs-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gs-lines i {
  display: block;
  width: 70%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.gs-lines i:last-child {
  width: 42%;
  background: rgba(255, 255, 255, 0.09);
}

.gs-row.is-highlight .gs-lines i {
  background: rgba(255, 232, 195, 0.4);
}

.gs-toggle {
  width: 19px;
  height: 11px;
  padding: 1.5px;
  flex-shrink: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: flex-end;
}

.gs-toggle i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.gs-row.is-highlight .gs-toggle {
  justify-content: flex-end;
  background: rgba(75, 224, 176, 0.5);
}

.gs-row.is-highlight .gs-toggle i {
  background: #fff;
}

.gs-note {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 6.5px;
  letter-spacing: 0.02em;
}

.guide-tips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d8d0c3;
  color: #5c5347;
  font-size: 9px;
  line-height: 1.65;
}

.guide-tips strong {
  color: #231e18;
  font-weight: 700;
}

.download-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 24px 22px;
  color: var(--text-3);
  font-size: 7.5px;
}

.lang-switch--foot {
  min-height: 28px;
  padding: 0 8px;
  font-size: 8px;
}

/* ==========================================================================
   Download responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .dl-hero {
    grid-template-columns: 1fr;
  }

  .dl-visual {
    display: none;
  }

  .dl-lead {
    max-width: 620px;
  }

  .guide-detail {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
}

@media (max-width: 800px) {
  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-detail {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-screen {
    max-width: 360px;
    min-height: 175px;
    margin: 0 auto;
  }

  .download-sheet {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .lang-pill {
    display: inline-flex;
    padding: 0 8px;
    gap: 3px;
  }

  .topbar-actions #notifBtn {
    display: none;
  }

  .stream-shell {
    grid-template-rows: 40vh minmax(0, 1fr);
  }

  .stage-gate {
    padding: 44px 14px 52px;
  }

  .stage-gate-card {
    padding: 14px;
    border-radius: 16px;
  }

  .gate-logo {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  .stage-gate-card h3 {
    font-size: 16px;
    margin: 5px 0 4px;
  }

  .stage-gate-card p {
    font-size: 8.5px;
    line-height: 1.5;
  }

  .gate-cta {
    min-height: 34px;
    margin-top: 9px;
    font-size: 10px;
  }

  .gate-guide-link {
    margin-top: 4px;
    font-size: 7px;
  }

  .gate-perk {
    display: none;
  }

  .modal--download {
    padding: 0;
  }

  .modal.modal--download {
    padding: 0;
  }

  .download-sheet {
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .download-top {
    padding: 10px 13px;
  }

  .download-brand {
    font-size: 12px;
  }

  .download-brand .brand-mark--sm {
    width: 19px;
    height: 19px;
  }

  .lang-switch span {
    max-width: 62px;
  }

  .dl-hero {
    padding: 23px 17px 25px;
    gap: 0;
  }

  .dl-title {
    font-size: clamp(31px, 9.8vw, 41px);
  }

  .dl-lead {
    font-size: 10px;
  }

  .dl-actions {
    gap: 7px;
    margin-top: 13px;
  }

  .dl-actions .btn {
    flex: 1 1 100%;
    min-height: 42px;
    font-size: 11px;
  }

  .dl-perks {
    margin-top: 13px;
    gap: 5px;
  }

  .dl-perks li {
    font-size: 8.5px;
  }

  .install-guide {
    margin: 0 11px 13px;
    padding: 18px 14px;
    border-radius: 17px;
  }

  .guide-q {
    width: 33px;
    height: 33px;
    font-size: 14px;
  }

  .guide-head {
    gap: 9px;
  }

  .guide-eyebrow {
    font-size: 7px;
  }

  .guide-head h3 {
    font-size: 17px;
  }

  .guide-count {
    font-size: 6.5px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0;
  }

  .guide-step {
    min-height: 57px;
    gap: 5px;
    padding: 9px 8px 8px;
  }

  .guide-step-name {
    font-size: 9.5px;
  }

  .guide-detail {
    padding-top: 13px;
  }

  .guide-detail-copy h4 {
    font-size: 20px;
  }

  .guide-detail-copy p {
    font-size: 8.5px;
  }

  .guide-screen {
    min-height: 160px;
    padding: 12px;
    border-radius: 12px;
  }

  .guide-tips {
    margin-top: 14px;
    padding-top: 11px;
    font-size: 8px;
  }

  .download-foot {
    padding: 0 16px 18px;
    font-size: 7px;
  }

  .language-dialog {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .dl-float {
    display: none;
  }
}

/* ==========================================================================
   Dark 8-step install guide
   ========================================================================== */

.install-guide.install-guide--dark {
  background:
    radial-gradient(90% 80% at 15% 0%, rgba(255, 95, 126, 0.1), transparent 55%),
    linear-gradient(160deg, #171017, #0d0a10 70%);
  border: 1px solid rgba(255, 95, 126, 0.16);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 30px 70px -35px rgba(0, 0, 0, 0.9);
}

.install-guide.install-guide--dark::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black, transparent 88%);
  mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black, transparent 88%);
}

.install-guide--dark .guide-q {
  background: linear-gradient(145deg, rgba(255, 95, 126, 0.18), rgba(157, 123, 255, 0.08));
  border: 1px solid rgba(255, 95, 126, 0.28);
  color: #ffb3c0;
  box-shadow: 0 0 28px rgba(255, 95, 126, 0.12);
}

.install-guide--dark .guide-head-copy h3 {
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 27px);
  letter-spacing: -0.04em;
}

.install-guide--dark .guide-head-copy p {
  margin: 3px 0 0;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.5;
}

.install-guide--dark .guide-count {
  color: var(--text-3);
  font-size: 8.5px;
}

.install-guide--dark .guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 12px;
}

.install-guide--dark .guide-step {
  min-height: 78px;
  gap: 6px;
  padding: 13px 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
}

.install-guide--dark .guide-step:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.install-guide--dark .guide-step.is-active {
  border-color: rgba(255, 95, 126, 0.55);
  background: linear-gradient(145deg, rgba(255, 95, 126, 0.15), rgba(157, 123, 255, 0.08) 65%, rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(255, 95, 126, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -20px rgba(255, 95, 126, 0.4);
}

.install-guide--dark .guide-step-num {
  color: #ff7f9a;
  font-size: 9px;
}

.install-guide--dark .guide-step-name {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
}

.guide-instruction {
  position: relative;
  z-index: 1;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 95, 126, 0.22);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.07), rgba(255, 255, 255, 0.02));
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.65;
}

.guide-instruction:empty::before {
  content: "…";
  color: var(--text-3);
}

.guide-help {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.68;
}

.guide-help p {
  margin: 0;
}

.guide-age {
  position: relative;
  z-index: 1;
  margin: 15px 0 0;
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   Footer legal links
   ========================================================================== */

.footer-legal {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--text);
}

.privacy-choice-icon {
  width: 15px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1px;
  border: 1px solid rgba(75, 224, 176, 0.32);
  border-radius: 99px;
  background: rgba(75, 224, 176, 0.1);
}

.privacy-choice-icon::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

.legal-dialog .legal-copy {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .install-guide--dark .guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .install-guide.install-guide--dark {
    margin: 0 11px 13px;
    padding: 18px 14px;
    border-radius: 17px;
  }

  .install-guide--dark .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0 12px;
  }

  .install-guide--dark .guide-step {
    min-height: 58px;
    padding: 9px 8px 8px;
  }

  .install-guide--dark .guide-step-name {
    font-size: 10.5px;
  }

  .install-guide--dark .guide-head-copy h3 {
    font-size: 18px;
  }

  .install-guide--dark .guide-head-copy p {
    font-size: 8.5px;
  }

  .install-guide--dark .guide-count {
    font-size: 7px;
  }

  .guide-instruction {
    min-height: 52px;
    padding: 11px;
    font-size: 9.5px;
  }

  .guide-help {
    font-size: 8.5px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .guide-age {
    margin-top: 12px;
    font-size: 7.5px;
  }

  .footer-legal {
    order: 4;
    gap: 12px;
    padding-top: 10px;
  }

  .footer-legal-link {
    font-size: 8px;
  }
}

/* ==========================================================================
   Performance pass
   Keep the look, remove expensive compositing and background work.
   ========================================================================== */

/* Backdrop blur is the most expensive effect on this page. Replace the glass
   with solid translucent surfaces so scrolling and opening modals stay smooth. */
* {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.topbar {
  background: rgba(7, 6, 9, 0.95);
}

.sidebar {
  background: linear-gradient(180deg, rgba(13, 11, 16, 0.99), rgba(8, 7, 11, 0.97));
}

.mobile-nav {
  background: rgba(8, 7, 11, 0.97);
}

.modal-backdrop {
  background: rgba(4, 3, 6, 0.82);
}

.drawer-backdrop,
.palette-backdrop {
  background: rgba(4, 3, 6, 0.8);
}

.download-top {
  background: rgba(12, 10, 16, 0.97);
}

.stage-gate-card {
  background: rgba(18, 14, 22, 0.9);
}

/* A static, single-layer aurora is far cheaper than huge animated blur
   elements. The ambient warmth is preserved without per-frame repaints. */
.bg-aurora {
  background:
    radial-gradient(620px at 3% -8%, rgba(188, 28, 69, 0.4), transparent 66%),
    radial-gradient(580px at 102% 8%, rgba(75, 42, 166, 0.25), transparent 67%),
    radial-gradient(560px at 52% 108%, rgba(156, 83, 29, 0.18), transparent 68%);
}

.bg-aurora .glow {
  display: none;
}

.bg-noise,
.stage-grain {
  display: none;
}

.wheel-art-disc {
  animation: none;
}

/* The app-only room is a static teaser. Do not run Ken Burns or a large
   blur filter every frame behind the download gate. */
.stream-stage.is-gated > img {
  animation: none !important;
  filter: blur(16px) brightness(0.58) saturate(0.95);
  transform: scale(1.06);
}

/* Fully remove closed overlays from rendering/layout. No hidden blur layers,
   no hidden images and no layout work for unused modals. */
.modal:not(.is-open) {
  display: none !important;
}

.drawer:not(.is-open) {
  display: none !important;
}

.palette:not(.is-open) {
  display: none !important;
}

.drawer.is-open {
  display: block;
}

.palette.is-open {
  display: flex;
}

.ticker-track {
  will-change: transform;
}

@media (max-width: 900px) {
  .float-chip {
    animation: none;
  }
}

/* Instant overlay opening is both faster and avoids a half-faded first frame. */
.modal,
.drawer,
.palette,
.dialog,
.download-sheet,
.stream-shell,
.drawer-panel,
.palette-panel {
  transition: none !important;
}

/* ==========================================================================
   Legal center
   ========================================================================== */

.modal--legal {
  z-index: 135;
}

.legal-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  height: auto;
  min-height: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(165deg, #151017, #0b090e 70%);
  box-shadow: 0 45px 120px -35px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.legal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 13px 17px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(12, 10, 16, 0.97);
}

.legal-top-title {
  flex: 1;
  color: var(--text-3);
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.legal-body {
  flex: 1;
  min-height: 480px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.legal-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.14);
  overflow-y: auto;
  scrollbar-width: thin;
}

.legal-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.legal-tab .icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex-shrink: 0;
}

.legal-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.legal-tab.is-active {
  border-color: rgba(255, 180, 84, 0.52);
  background: rgba(255, 180, 84, 0.06);
  color: var(--text);
}

.legal-tab.is-active .icon {
  color: var(--amber);
}

.legal-tab-check {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--amber);
  opacity: 0;
  flex-shrink: 0;
}

.legal-tab.is-active .legal-tab-check {
  opacity: 1;
}

.legal-content {
  min-width: 0;
  overflow-y: auto;
  padding: 25px 28px 28px;
  scrollbar-width: thin;
}

.legal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-updated {
  color: var(--text-3);
  font-family: "Space Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.legal-content-head h2 {
  margin: 8px 0 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.legal-lead {
  max-width: 610px;
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.7;
}

.legal-short {
  margin-top: 17px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.legal-short h3,
.legal-prefs h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-short ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal-short li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.6;
}

.legal-check {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(75, 224, 176, 0.08);
  color: var(--mint);
}

.legal-check .icon {
  width: 9px;
  height: 9px;
}

.legal-prefs {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
}

.legal-toggle-row + .legal-toggle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-toggle-row.is-locked {
  cursor: default;
}

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

.legal-toggle-copy strong {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 600;
}

.legal-toggle-copy span {
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.4;
}

.legal-switch {
  width: 30px;
  height: 17px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.legal-switch i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s, background 0.2s;
}

.legal-switch.is-on {
  background: rgba(75, 224, 176, 0.26);
}

.legal-switch.is-on i {
  background: var(--mint);
  transform: translateX(13px);
}

.legal-saved {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 7.5px;
  text-align: right;
}

.legal-demo-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-size: 8px;
  line-height: 1.5;
}

.legal-close-btn {
  min-height: 34px;
  margin-top: 15px;
  font-size: 9px;
}

/* Footer legal selected state */

.footer-legal-link {
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.footer-legal-link:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.footer-legal-link.is-active {
  border-color: rgba(255, 180, 84, 0.68);
  background: rgba(255, 180, 84, 0.055);
  color: var(--text);
}

.footer-legal-link--choices.is-off .privacy-choice-icon {
  justify-content: flex-start;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.footer-legal-link--choices.is-off .privacy-choice-icon::after {
  background: var(--text-3);
}

@media (max-width: 700px) {
  .modal--legal {
    padding: 0;
  }

  .legal-sheet {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .legal-top {
    padding: 10px 13px;
  }

  .legal-top-title {
    font-size: 9px;
  }

  .legal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .legal-tabs {
    flex-direction: row;
    gap: 6px;
    padding: 9px 11px;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .legal-tabs::-webkit-scrollbar {
    display: none;
  }

  .legal-tab {
    width: auto;
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 9px;
    white-space: nowrap;
  }

  .legal-tab .icon {
    width: 12px;
    height: 12px;
  }

  .legal-tab-check {
    display: none;
  }

  .legal-content {
    padding: 18px 16px 24px;
  }

  .legal-content-head h2 {
    font-size: 23px;
  }

  .legal-lead {
    font-size: 9.5px;
  }

  .legal-updated {
    font-size: 7px;
  }

  .legal-short h3,
  .legal-prefs h3 {
    font-size: 10px;
  }

  .legal-short li {
    font-size: 9px;
  }

  .legal-toggle-copy strong {
    font-size: 9.5px;
  }

  .legal-toggle-copy span {
    font-size: 8px;
  }

  .footer-legal-link {
    padding: 3px 5px;
  }
}

/* ==========================================================================
   Appearance control
   ========================================================================== */

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

.theme-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-btn {
  overflow: visible;
}

.theme-icon {
  display: none;
}

html[data-theme="dark"] .theme-icon--moon,
html[data-theme="light"] .theme-icon--sun {
  display: block;
}

.theme-btn.is-auto::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.13);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 282px;
  padding: 9px;
  border: 1px solid var(--stroke-strong);
  border-radius: 17px;
  background: linear-gradient(165deg, var(--bg-soft), var(--bg));
  box-shadow: var(--shadow-lg);
}

.theme-menu:not([hidden]) {
  animation: themeMenuIn 0.18s var(--ease-out);
}

.theme-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 7px 8px;
  color: var(--text-3);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theme-time {
  color: var(--text-2);
  font-family: "Space Mono", monospace;
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.theme-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  color: var(--text-2);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-choice + .theme-choice {
  margin-top: 2px;
}

.theme-choice:hover {
  background: var(--panel);
  color: var(--text);
}

.theme-choice.is-active {
  border-color: rgba(255, 180, 84, 0.38);
  background: linear-gradient(120deg, rgba(255, 180, 84, 0.1), rgba(255, 95, 126, 0.045));
  color: var(--text);
}

.theme-choice-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: var(--panel);
  color: var(--amber);
}

.theme-choice-icon .icon {
  width: 15px;
  height: 15px;
}

.theme-choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.theme-choice-copy strong {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}

.theme-choice-copy small {
  color: var(--text-3);
  font-size: 7.5px;
  line-height: 1.35;
}

.theme-choice-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: var(--amber);
  color: #24120a;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.theme-choice.is-active .theme-choice-check {
  opacity: 1;
  transform: scale(1);
}

.theme-choice-check .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

@keyframes themeMenuIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Light / day theme
   ========================================================================== */

html[data-theme="light"] {
  --bg: #f4efe7;
  --bg-soft: #fcf9f3;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --stroke: rgba(55, 38, 27, 0.1);
  --stroke-strong: rgba(55, 38, 27, 0.19);
  --text: #241b17;
  --text-2: #66574f;
  --text-3: #8e7f76;
  --rose: #cf3d5b;
  --rose-deep: #bd2c4a;
  --amber: #a76010;
  --amber-soft: #8a4c08;
  --violet: #6e50cf;
  --mint: #137d67;
  --grad: linear-gradient(120deg, #e35c72, #df7a52 48%, #cf9a39);
  --grad-rose: linear-gradient(135deg, #cf3d5b, #df7a52);
  --shadow-lg: 0 36px 90px -36px rgba(84, 55, 34, 0.32);
}

html[data-theme="light"] ::selection {
  background: var(--rose);
  color: #fffaf3;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(55, 38, 27, 0.17);
  border-color: var(--bg);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(55, 38, 27, 0.28);
}

html[data-theme="light"] .bg-aurora {
  background:
    radial-gradient(680px at 3% -8%, rgba(255, 183, 112, 0.3), transparent 67%),
    radial-gradient(620px at 101% 6%, rgba(214, 82, 112, 0.13), transparent 67%),
    radial-gradient(580px at 52% 110%, rgba(119, 91, 205, 0.09), transparent 68%),
    linear-gradient(180deg, #f7f2e9, #efe7db);
}

html[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(70, 45, 30, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 45, 30, 0.035) 1px, transparent 1px);
  opacity: 0.55;
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.99), rgba(242, 235, 225, 0.98));
  border-right-color: var(--stroke);
}

html[data-theme="light"] .brand-text {
  background: linear-gradient(180deg, #2b1e18, #765845);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .sidebar-promo {
  border-color: rgba(167, 96, 16, 0.2);
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(207, 61, 91, 0.13), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.52));
}

html[data-theme="light"] .sidebar-promo::after {
  background: rgba(207, 154, 57, 0.2);
}

html[data-theme="light"] .sidebar-user {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--stroke);
}

html[data-theme="light"] .sidebar-user:hover {
  background: #fff;
}

html[data-theme="light"] .nav-item:hover {
  background: rgba(55, 38, 27, 0.05);
}

html[data-theme="light"] .nav-item.is-active {
  background: linear-gradient(120deg, rgba(207, 61, 91, 0.12), rgba(207, 154, 57, 0.08));
  border-color: rgba(207, 61, 91, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .nav-count {
  border-color: rgba(207, 61, 91, 0.2);
  background: rgba(207, 61, 91, 0.1);
  color: #b12f4b;
}

html[data-theme="light"] .go-live {
  background: #241b17;
  color: #fff8f0;
}

html[data-theme="light"] .go-live:hover {
  box-shadow: 0 14px 34px -14px rgba(36, 27, 23, 0.35);
}

html[data-theme="light"] .topbar {
  background: rgba(247, 242, 234, 0.94);
  border-bottom-color: var(--stroke);
}

html[data-theme="light"] .mobile-nav {
  background: rgba(250, 246, 239, 0.97);
  border-top-color: var(--stroke);
}

html[data-theme="light"] .search-trigger {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--stroke);
}

html[data-theme="light"] .search-trigger:hover {
  background: #fff;
}

html[data-theme="light"] .search-trigger kbd {
  background: rgba(55, 38, 27, 0.06);
}

html[data-theme="light"] .icon-btn,
html[data-theme="light"] .lang-pill {
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .lang-pill:hover {
  background: #fff;
}

html[data-theme="light"] .balance-pill {
  border-color: rgba(167, 96, 16, 0.24);
  background: linear-gradient(135deg, rgba(207, 154, 57, 0.16), rgba(207, 61, 91, 0.06));
}

html[data-theme="light"] .balance-pill-plus {
  background: rgba(167, 96, 16, 0.12);
}

html[data-theme="light"] .notif-badge {
  border-color: var(--bg);
  color: #fff;
}

html[data-theme="light"] .theme-menu {
  background: linear-gradient(165deg, #fffdf8, #f8f1e7);
}

html[data-theme="light"] .theme-choice:hover {
  background: rgba(55, 38, 27, 0.045);
}

html[data-theme="light"] .theme-choice.is-active {
  border-color: rgba(167, 96, 16, 0.35);
  background: linear-gradient(120deg, rgba(207, 61, 91, 0.09), rgba(207, 154, 57, 0.1));
}

html[data-theme="light"] .theme-choice-check {
  color: #fffaf3;
}

html[data-theme="light"] .ticker {
  background: rgba(55, 38, 27, 0.035);
}

html[data-theme="light"] .ticker-label {
  background: rgba(167, 96, 16, 0.07);
}

html[data-theme="light"] .ticker-dot {
  background: rgba(55, 38, 27, 0.2);
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(207, 61, 91, 0.1), transparent 55%),
    radial-gradient(100% 120% at 100% 100%, rgba(207, 154, 57, 0.13), transparent 52%),
    linear-gradient(158deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56) 58%, rgba(255, 255, 255, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 40px 90px -55px rgba(90, 60, 35, 0.35);
}

html[data-theme="light"] .hero::before {
  background: linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
}

html[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(207, 61, 91, 0.12), transparent 65%);
}

html[data-theme="light"] .hero-title em {
  background: linear-gradient(120deg, #c94560, #ae7116 85%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .status-pill {
  border-color: rgba(207, 61, 91, 0.24);
  background: rgba(207, 61, 91, 0.07);
  color: #b5324e;
}

html[data-theme="light"] .avatar-stack img,
html[data-theme="light"] .avatar-stack-more {
  border-color: #fbf7f0;
}

html[data-theme="light"] .avatar-stack-more {
  background: #eee5d8;
}

html[data-theme="light"] .feature-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 34px 70px -24px rgba(55, 35, 20, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .feature-cat,
html[data-theme="light"] .feature-goal .goal-meta strong,
html[data-theme="light"] .card-goal .goal-meta strong {
  color: #ffd9a3;
}

html[data-theme="light"] .card-name .icon {
  color: #ffd9a3;
}

html[data-theme="light"] .float-chip {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .chip {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .chip:hover {
  background: #fff;
}

html[data-theme="light"] .chip.is-active {
  background: var(--text);
  color: #fff9f0;
  box-shadow: 0 10px 28px -16px rgba(55, 38, 27, 0.4);
}

html[data-theme="light"] .chip.is-active .icon {
  color: #fff9f0;
}

html[data-theme="light"] .stream-card {
  background: #fffdf9;
  border-color: var(--stroke);
  box-shadow: 0 18px 45px -38px rgba(70, 45, 30, 0.32);
}

html[data-theme="light"] .stream-card:hover {
  border-color: rgba(207, 61, 91, 0.28);
  box-shadow: 0 26px 60px -34px rgba(70, 45, 30, 0.45);
}

html[data-theme="light"] .stream-card,
html[data-theme="light"] .stream-card .card-open {
  color: #fff;
}

html[data-theme="light"] .rail-card,
html[data-theme="light"] .quests-panel,
html[data-theme="light"] .earn-card,
html[data-theme="light"] .creator-table-card,
html[data-theme="light"] .tx-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--stroke);
  box-shadow: 0 18px 50px -40px rgba(70, 45, 30, 0.28);
}

html[data-theme="light"] .wheel-promo {
  background:
    radial-gradient(120% 140% at 92% 4%, rgba(207, 154, 57, 0.2), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(207, 61, 91, 0.12), transparent 60%),
    linear-gradient(158deg, #fffaf2, #f7ede0 65%);
  border-color: rgba(167, 96, 16, 0.2);
  box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .wheel-promo-badge {
  background: rgba(40, 28, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .wheel-panel {
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(207, 154, 57, 0.18), transparent 55%),
    linear-gradient(165deg, #fffaf2, #f6ecdf);
  border-color: rgba(167, 96, 16, 0.2);
  box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .wheel-center-label {
  border-color: #fbf6ee;
}

html[data-theme="light"] .wheel-svg {
  filter: drop-shadow(0 24px 34px rgba(80, 50, 25, 0.25));
}

html[data-theme="light"] .wheel-note {
  color: var(--text-3);
}

html[data-theme="light"] .quest-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

html[data-theme="light"] .quest-item.is-ready {
  border-color: rgba(167, 96, 16, 0.2);
  background: linear-gradient(120deg, rgba(207, 154, 57, 0.12), rgba(207, 61, 91, 0.04));
}

html[data-theme="light"] .quest-icon {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--stroke);
}

html[data-theme="light"] .quest-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

html[data-theme="light"] .quest-btn.is-ready {
  background: var(--text);
  color: #fff9f0;
}

html[data-theme="light"] .streak-card {
  background:
    radial-gradient(110% 110% at 100% 0%, rgba(207, 154, 57, 0.16), transparent 55%),
    linear-gradient(140deg, rgba(255, 250, 242, 0.95), rgba(247, 237, 224, 0.9));
  border-color: var(--stroke);
}

html[data-theme="light"] .streak-day {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

html[data-theme="light"] .streak-day.is-done {
  border-color: rgba(167, 96, 16, 0.22);
  background: linear-gradient(145deg, rgba(224, 122, 82, 0.14), rgba(207, 154, 57, 0.08));
}

html[data-theme="light"] .wallet-hero {
  background:
    radial-gradient(80% 140% at 88% 0%, rgba(207, 154, 57, 0.18), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(207, 61, 91, 0.1), transparent 55%),
    linear-gradient(152deg, #fffaf2, #f6ebe0);
  border-color: rgba(167, 96, 16, 0.2);
  box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .tier-track {
  background: rgba(55, 38, 27, 0.1);
}

html[data-theme="light"] .pack-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.65));
  border-color: var(--stroke);
}

html[data-theme="light"] .pack-card.is-popular {
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(207, 154, 57, 0.16), transparent 60%),
    linear-gradient(170deg, #fffdf8, #fbf3e8);
  border-color: rgba(167, 96, 16, 0.28);
}

html[data-theme="light"] .tx-head {
  background: rgba(55, 38, 27, 0.045);
}

html[data-theme="light"] .tx-row {
  border-bottom-color: var(--stroke);
}

html[data-theme="light"] .tx-icon {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .podium-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
  border-color: var(--stroke);
}

html[data-theme="light"] .podium-card--1 {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(207, 154, 57, 0.16), transparent 62%),
    linear-gradient(170deg, #fffdf8, #fbf2e6);
  border-color: rgba(167, 96, 16, 0.24);
}

html[data-theme="light"] .podium-card--1::after {
  background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
}

html[data-theme="light"] .creator-table-head {
  background: rgba(55, 38, 27, 0.045);
}

html[data-theme="light"] .creator-row {
  border-bottom-color: var(--stroke);
}

html[data-theme="light"] .creator-row:hover {
  background: rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .cr-cat {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

html[data-theme="light"] .become-creator {
  background:
    radial-gradient(100% 130% at 100% 50%, rgba(207, 154, 57, 0.14), transparent 55%),
    radial-gradient(100% 120% at 0% 0%, rgba(207, 61, 91, 0.1), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6));
  border-color: var(--stroke);
}

html[data-theme="light"] .follow-btn {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--stroke);
  color: var(--text-2);
}

html[data-theme="light"] .follow-btn:hover {
  color: var(--rose);
}

html[data-theme="light"] .watching-pill,
html[data-theme="light"] .select-wrap,
html[data-theme="light"] .segmented {
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .select-wrap select option {
  background: #fffaf3;
  color: var(--text);
}

html[data-theme="light"] .segmented-btn.is-active {
  background: #fff;
  box-shadow: 0 4px 12px -8px rgba(55, 38, 27, 0.35);
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(26, 18, 12, 0.52);
}

html[data-theme="light"] .dialog {
  background: linear-gradient(165deg, #fffdf8, #f8f1e7 72%);
  border-color: var(--stroke-strong);
  box-shadow: 0 40px 110px -45px rgba(45, 30, 18, 0.45), inset 0 1px 0 #fff;
}

html[data-theme="light"] .dialog-close {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .dialog-close:hover {
  background: #fff;
}

html[data-theme="light"] .fine-print {
  color: var(--text-3);
}

html[data-theme="light"] .wheel-dialog {
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(207, 154, 57, 0.17), transparent 55%),
    linear-gradient(165deg, #fffaf2, #f8efe3 78%);
  border-color: rgba(167, 96, 16, 0.2);
}

html[data-theme="light"] .gift-orbit--1 {
  border-color: rgba(167, 96, 16, 0.18);
}

html[data-theme="light"] .gift-orbit--2 {
  border-color: var(--stroke);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field select {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus {
  border-color: var(--amber);
}

html[data-theme="light"] .language-option {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .language-option:hover {
  background: #fff;
}

html[data-theme="light"] .language-option.is-active {
  border-color: rgba(207, 61, 91, 0.32);
  background: linear-gradient(120deg, rgba(207, 61, 91, 0.1), rgba(207, 154, 57, 0.08));
}

html[data-theme="light"] .drawer-panel {
  background: linear-gradient(165deg, #fffdf8, #f7f0e6);
  border-left-color: var(--stroke);
  box-shadow: -30px 0 80px rgba(55, 38, 27, 0.2);
}

html[data-theme="light"] .notif:hover {
  background: rgba(55, 38, 27, 0.05);
}

html[data-theme="light"] .notif.is-unread {
  background: rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .palette-panel {
  background: linear-gradient(170deg, #fffdf8, #f7f0e6);
  border-color: var(--stroke-strong);
  box-shadow: 0 50px 100px -35px rgba(55, 38, 27, 0.35);
}

html[data-theme="light"] .palette-item:hover,
html[data-theme="light"] .palette-item.is-active {
  border-color: var(--stroke);
  background: rgba(55, 38, 27, 0.05);
}

html[data-theme="light"] .palette-item-icon {
  background: rgba(55, 38, 27, 0.05);
}

html[data-theme="light"] .footer-legal-link:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .footer-legal-link.is-active {
  border-color: rgba(167, 96, 16, 0.6);
  background: rgba(207, 154, 57, 0.08);
}

html[data-theme="light"] .privacy-choice-icon {
  border-color: rgba(55, 38, 27, 0.12);
  background: rgba(55, 38, 27, 0.06);
}

html[data-theme="light"] .toast {
  --text: #f7f5fa;
  --text-2: #b1abbf;
  --text-3: #7c758d;
  color: var(--text);
}

html[data-theme="light"] .modal--stream {
  --bg: #070609;
  --bg-soft: #0b0a0f;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.075);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f5fa;
  --text-2: #b1abbf;
  --text-3: #7c758d;
  --amber: #ffb454;
  --amber-soft: #ffd6a0;
  --rose: #ff5f7e;
  --violet: #9d7bff;
  --mint: #4be0b0;
  color: var(--text);
}

html[data-theme="light"] .modal--stream .follow-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

html[data-theme="light"] .modal--stream .follow-btn:hover {
  border-color: rgba(255, 95, 126, 0.4);
  color: #ff9aab;
}

html[data-theme="light"] .welcome-card {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(207, 61, 91, 0.11), transparent 55%),
    linear-gradient(158deg, #fffaf5, #fbefe7);
  border-color: rgba(207, 61, 91, 0.18);
  box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .welcome-card::after {
  background: rgba(207, 154, 57, 0.22);
}

/* Download sheet in daylight */
html[data-theme="light"] .download-sheet {
  background: #fbf7f0;
  border-color: var(--stroke-strong);
  box-shadow: 0 50px 130px -45px rgba(45, 30, 18, 0.5);
}

html[data-theme="light"] .download-top {
  background: rgba(251, 247, 240, 0.97);
}

html[data-theme="light"] .download-close {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .dl-hero {
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(207, 61, 91, 0.1), transparent 56%),
    radial-gradient(100% 120% at 100% 100%, rgba(207, 154, 57, 0.12), transparent 50%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
}

html[data-theme="light"] .dl-hero::before {
  background: linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
}

html[data-theme="light"] .install-guide.install-guide--dark {
  background:
    radial-gradient(90% 80% at 15% 0%, rgba(207, 61, 91, 0.09), transparent 55%),
    linear-gradient(160deg, #fffaf3, #f7ede1 70%);
  border-color: rgba(207, 61, 91, 0.18);
  box-shadow: inset 0 1px 0 #fff, 0 30px 70px -45px rgba(70, 45, 30, 0.4);
}

html[data-theme="light"] .install-guide.install-guide--dark::before {
  background-image:
    linear-gradient(rgba(55, 38, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 38, 27, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .install-guide--dark .guide-q {
  background: linear-gradient(145deg, rgba(207, 61, 91, 0.12), rgba(110, 80, 207, 0.06));
  border-color: rgba(207, 61, 91, 0.24);
  color: #b5324e;
}

html[data-theme="light"] .install-guide--dark .guide-step {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--stroke);
}

html[data-theme="light"] .install-guide--dark .guide-step:hover {
  background: #fff;
  border-color: var(--stroke-strong);
}

html[data-theme="light"] .install-guide--dark .guide-step.is-active {
  border-color: rgba(207, 61, 91, 0.45);
  background: linear-gradient(145deg, rgba(207, 61, 91, 0.1), rgba(207, 154, 57, 0.06));
  box-shadow: 0 12px 30px -22px rgba(120, 60, 30, 0.4), inset 0 1px 0 #fff;
}

html[data-theme="light"] .install-guide--dark .guide-step-num {
  color: var(--rose);
}

html[data-theme="light"] .guide-instruction {
  border-color: rgba(207, 61, 91, 0.22);
  background: linear-gradient(120deg, rgba(207, 61, 91, 0.06), rgba(255, 255, 255, 0.7));
}

/* Legal center in daylight */
html[data-theme="light"] .legal-sheet {
  background: linear-gradient(165deg, #fffdf8, #f6efe5 70%);
  border-color: var(--stroke-strong);
  box-shadow: 0 45px 120px -50px rgba(45, 30, 18, 0.5), inset 0 1px 0 #fff;
}

html[data-theme="light"] .legal-top {
  background: rgba(251, 247, 240, 0.97);
}

html[data-theme="light"] .legal-tabs {
  background: rgba(55, 38, 27, 0.035);
}

html[data-theme="light"] .legal-tab:hover {
  background: rgba(55, 38, 27, 0.05);
}

html[data-theme="light"] .legal-tab.is-active {
  border-color: rgba(167, 96, 16, 0.55);
  background: rgba(167, 96, 16, 0.08);
}

html[data-theme="light"] .legal-short {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

html[data-theme="light"] .legal-short li {
  color: var(--text-2);
}

html[data-theme="light"] .legal-switch {
  background: rgba(55, 38, 27, 0.14);
}

html[data-theme="light"] .legal-switch i {
  background: #fff;
}

html[data-theme="light"] .legal-switch.is-on {
  background: rgba(19, 125, 103, 0.22);
}

html[data-theme="light"] .legal-demo-note {
  border-top-color: var(--stroke);
}

@media (max-width: 700px) {
  .theme-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 62px);
    right: 12px;
    width: min(282px, calc(100vw - 24px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
}

/* ==========================================================================
   Finish pass — sharper photography and richer gold controls
   ========================================================================== */

.card-media > img {
  filter: saturate(1.05) contrast(1.02);
}

.stream-card:hover .card-media > img {
  filter: brightness(0.9) saturate(1.08) contrast(1.02);
}

.feature-img {
  filter: saturate(1.05) contrast(1.02);
}

.btn--gold {
  background:
    radial-gradient(120% 160% at 25% 0%, rgba(255, 255, 255, 0.32), transparent 38%),
    linear-gradient(120deg, #ffc56c, #ffd98b 48%, #ffab4f);
  box-shadow:
    0 16px 38px -16px rgba(210, 130, 30, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(150, 80, 10, 0.18);
}

.btn--gold:hover {
  box-shadow:
    0 20px 46px -16px rgba(210, 130, 30, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(150, 80, 10, 0.18);
}

.js-spin-btn {
  position: relative;
  overflow: hidden;
  min-width: 238px;
  isolation: isolate;
}

.js-spin-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.38) 46%, transparent 68%);
  transform: translateX(-135%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.js-spin-btn:hover::after {
  transform: translateX(135%);
}

.js-spin-btn:disabled {
  opacity: 0.86;
  cursor: wait;
}

.wheel-result.is-win {
  text-shadow: 0 0 24px rgba(255, 180, 84, 0.3);
}

/* ==========================================================================
   Live room activity — running clock, live chat and bottom-left danmaku
   ========================================================================== */

.stream-stage.is-gated .stage-chat {
  display: flex;
  left: 16px;
  bottom: 18px;
  max-width: calc(100% - 220px);
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.stream-stage.is-gated .stage-chat-bubble {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 250px;
  padding: 5px 9px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 6, 12, 0.64);
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: danmakuIn 0.42s var(--ease-out) both;
}

.stream-stage.is-gated .stage-chat-bubble > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-stage.is-gated .stage-chat-bubble:nth-child(n + 3) {
  display: none;
}

@keyframes danmakuIn {
  from {
    opacity: 0;
    transform: translateX(-14px) translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .stream-stage.is-gated .stage-chat {
    left: 12px;
    bottom: 14px;
    max-width: calc(100% - 160px);
  }

  .stream-stage.is-gated .stage-chat-bubble {
    padding: 4px 7px;
    font-size: 8px;
  }

  .stream-stage.is-gated .stage-chat-bubble:nth-child(n + 2) {
    display: none;
  }
}

/* ==========================================================================
   Live sort control — expandable funnel
   ========================================================================== */

.sort-select {
  padding: 0;
  gap: 0;
  cursor: pointer;
}

.sort-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 0 9px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sort-trigger > .icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.sort-label {
  white-space: nowrap;
}

.sort-trigger .select-chev {
  position: static;
  right: auto;
  margin-left: 2px;
  pointer-events: none;
  transition: transform 0.2s var(--ease);
}

.sort-select.is-open {
  border-color: var(--stroke-strong);
  background: var(--panel);
}

.sort-select.is-open .sort-trigger .select-chev {
  transform: rotate(180deg);
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 55;
  min-width: 184px;
  max-width: calc(100vw - 28px);
  padding: 5px;
  border: 1px solid var(--stroke-strong);
  border-radius: 11px;
  background: linear-gradient(165deg, var(--bg-soft), var(--bg));
  box-shadow: var(--shadow-lg);
}

.sort-dropdown:not([hidden]) {
  animation: sortMenuIn 0.16s var(--ease-out);
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}

.sort-option:hover,
.sort-option:focus-visible {
  border-color: var(--stroke);
  background: var(--panel);
  color: var(--text);
}

.sort-option.is-selected {
  color: var(--amber-soft);
  background: rgba(255, 180, 84, 0.06);
}

.sort-option-go {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s, transform 0.18s;
}

.sort-option:hover .sort-option-go,
.sort-option:focus-visible .sort-option-go,
.sort-option.is-selected .sort-option-go {
  opacity: 0.75;
  transform: none;
}

@keyframes sortMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Avatars now follow the same creator photo source as the main cards and download phone. */

.sidebar-user .avatar--me {
  background: linear-gradient(135deg, #ff8a5c, #ff5f7e 48%, #ffc15e) !important;
  color: #2a120a !important;
  box-shadow: 0 10px 22px -10px rgba(255, 95, 126, 0.55) !important;
}

.avatar--me .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}





