:root {
  --brand-primary: #c9fc01;
  --brand-primary-strong: #aee100;
  --brand-bg: #15161a;
  --brand-surface: #202125;
  --brand-surface-raised: #282a2f;
  --brand-ink: #ffffff;
  --brand-muted: rgba(255, 255, 255, 0.62);
  --brand-faint: rgba(255, 255, 255, 0.38);
  --brand-line: rgba(255, 255, 255, 0.1);
  --brand-overlay: rgba(0, 0, 0, 0.45);
  --prototype-bg: #0b0c0f;
  --phone-width: 390px;
  --phone-height: 844px;
  --header-height: 70px;
  --nav-height: 72px;
  color-scheme: dark;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 15%, rgba(201, 252, 1, 0.08), transparent 22rem),
    linear-gradient(145deg, #0c0d10, #050608);
  color: var(--brand-ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

[hidden] {
  display: none !important;
}

.prototype-stage {
  display: grid;
  grid-template-columns: var(--phone-width);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px;
}

.section-kicker,
.section-kicker-row,
.meta-kicker,
.kyc-eyebrow,
.detail-kicker {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.phone-preview {
  width: var(--phone-width);
}

.phone-shell {
  width: var(--phone-width);
  height: var(--phone-height);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 38px;
  background: #050506;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: var(--brand-bg);
  isolation: isolate;
}

.app-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 38px 104px 1fr auto;
  align-items: center;
  height: var(--header-height);
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--brand-line);
  background: rgba(21, 22, 26, 0.95);
  backdrop-filter: blur(18px);
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.device-toggle-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(201, 252, 1, 0.42);
  border-radius: 8px;
  background: rgba(201, 252, 1, 0.08);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.device-toggle-button:hover {
  border-color: var(--brand-primary);
  background: rgba(201, 252, 1, 0.14);
}

.mobile-device-toggle {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.app-logo {
  width: 104px;
  height: auto;
}

.app-page-title {
  justify-self: end;
  margin-right: 4px;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 700;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
}

.header-back {
  opacity: 0;
  pointer-events: none;
}

.header-back.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.header-back::before {
  width: 9px;
  height: 9px;
  left: 15px;
  top: 14px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  transform: rotate(45deg);
}

.header-help::before {
  width: 18px;
  height: 18px;
  left: 10px;
  top: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.header-help::after {
  content: "?";
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.app-screen {
  position: absolute;
  z-index: 1;
  inset: var(--header-height) 0 var(--nav-height);
  display: none;
  background: var(--brand-bg);
}

.app-screen.is-active {
  display: block;
  animation: screen-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.screen-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.activity-intro {
  position: sticky;
  z-index: 5;
  top: 0;
  padding: 14px 14px 0;
  background: linear-gradient(var(--brand-bg) 80%, rgba(21, 22, 26, 0));
}

.search-row {
  display: flex;
  gap: 8px;
}

.activity-search {
  position: relative;
  flex: 1;
}

.activity-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 40px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-surface);
  color: white;
  font-size: 13px;
}

.activity-search input::placeholder {
  color: var(--brand-faint);
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  right: -5px;
  bottom: -3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  transform: rotate(45deg);
}

.search-clear {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 20px;
  cursor: pointer;
}

.category-tabs {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  position: relative;
  flex: none;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.category-tab::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 5px;
  left: 50%;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-primary);
  transition: 160ms ease;
}

.category-tab.is-active {
  color: white;
}

.category-tab.is-active::after {
  right: 0;
  left: 0;
}

.hero-activity {
  margin: 12px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(201, 252, 1, 0.18);
  border-radius: 12px;
  background: var(--brand-surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.hero-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: black;
  cursor: pointer;
}

.hero-image-button img {
  width: 100%;
  aspect-ratio: 2.13 / 1;
  object-fit: cover;
}

.recommend-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(15, 16, 18, 0.82);
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.hero-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.meta-kicker {
  letter-spacing: 0.08em;
}

.primary-compact,
.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.primary-compact:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-compact {
  flex: none;
  padding: 0 14px;
  border: 0;
  background: var(--brand-primary);
  color: #111;
  font-size: 12px;
}

.quick-filter-block {
  padding: 24px 14px 0;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading-row h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--brand-muted);
  letter-spacing: 0.08em;
}

.result-count {
  padding-bottom: 2px;
  color: var(--brand-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.quick-filters {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: none;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--brand-line);
  border-radius: 99px;
  background: transparent;
  color: var(--brand-muted);
  font-size: 12px;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #111;
  font-weight: 900;
}

.activity-list {
  display: grid;
  gap: 12px;
  padding: 16px 14px 26px;
}

.activity-card {
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-surface);
}

.activity-card[hidden] {
  display: none;
}

.activity-card-media {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b0c0e;
  cursor: pointer;
}

.activity-card-media img {
  width: 100%;
  aspect-ratio: 2.13 / 1;
  object-fit: cover;
  transition: transform 250ms ease;
}

.activity-card-media:hover img {
  transform: scale(1.018);
}

.activity-status {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(10, 11, 13, 0.82);
  color: white;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.activity-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.activity-card-title {
  display: block;
  font-size: 14px;
}

.activity-card-copy {
  display: block;
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ghost-compact {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(201, 252, 1, 0.42);
  border-radius: 7px;
  background: transparent;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.activity-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 50px 20px 80px;
  color: var(--brand-muted);
  text-align: center;
}

.activity-empty strong {
  color: white;
}

.activity-empty span {
  font-size: 12px;
}

.bottom-nav {
  position: absolute;
  z-index: 30;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--nav-height);
  padding: 6px 6px 9px;
  border-top: 1px solid var(--brand-line);
  background: rgba(26, 27, 31, 0.97);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--brand-faint);
  font-size: 10px;
  cursor: pointer;
}

.nav-item.is-active {
  color: var(--brand-primary);
}

.nav-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.icon-home::before {
  content: "";
  position: absolute;
  inset: 7px 4px 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.icon-home::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.icon-gift::before {
  content: "";
  position: absolute;
  inset: 8px 3px 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.icon-gift::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 300;
}

.icon-wallet::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.icon-wallet::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 8px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: var(--brand-surface);
}

.icon-transfer::before,
.icon-transfer::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 7px;
  border-top: 1.5px solid currentColor;
}

.icon-transfer::before {
  top: 5px;
  left: 1px;
  border-right: 1.5px solid currentColor;
  transform: skewX(35deg);
}

.icon-transfer::after {
  right: 1px;
  bottom: 4px;
  border-left: 1.5px solid currentColor;
  transform: skewX(35deg);
}

.icon-user::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 7px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.nav-deposit::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: transparent;
  transform: translateX(-50%);
}

.bottom-nav[data-current="kyc"] .nav-item[data-nav="profile"],
.bottom-nav[data-current="activities"] .nav-item[data-nav="activities"] {
  color: var(--brand-primary);
}

.bottom-nav[data-current="kyc"] .nav-item[data-nav="activities"],
.bottom-nav[data-current="activities"] .nav-item[data-nav="profile"] {
  color: var(--brand-faint);
}

.kyc-screen .screen-scroll {
  background:
    radial-gradient(circle at 80% 4%, rgba(201, 252, 1, 0.09), transparent 14rem),
    var(--brand-bg);
}

.kyc-container {
  min-height: 100%;
  padding: 22px 16px 32px;
}

.kyc-hero {
  position: relative;
  min-height: 238px;
  padding: 24px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(201, 252, 1, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(201, 252, 1, 0.08), transparent 58%),
    var(--brand-surface);
}

.kyc-grid-mark {
  position: absolute;
  right: -35px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 252, 1, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(201, 252, 1, 0.035),
    0 0 0 58px rgba(201, 252, 1, 0.02);
}

.kyc-grid-mark::before,
.kyc-grid-mark::after {
  content: "";
  position: absolute;
  background: rgba(201, 252, 1, 0.18);
}

.kyc-grid-mark::before {
  width: 1px;
  inset: -20px auto -20px 50%;
}

.kyc-grid-mark::after {
  height: 1px;
  inset: 50% -20px auto;
}

.kyc-hero h2,
.kyc-success h2,
.kyc-step-panel h2 {
  position: relative;
  max-width: 285px;
  margin: 12px 0 10px;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.kyc-hero > p,
.kyc-success > p,
.kyc-step-panel > p {
  position: relative;
  max-width: 290px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.7;
}

.trust-row {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.trust-chip {
  padding: 6px 9px;
  border: 1px solid var(--brand-line);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
}

.kyc-benefit-list {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-line);
}

.kyc-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  background: var(--brand-surface);
}

.benefit-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(201, 252, 1, 0.3);
  border-radius: 8px;
  color: var(--brand-primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.kyc-benefit strong {
  display: block;
  font-size: 13px;
}

.kyc-benefit span {
  display: block;
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.4;
}

.kyc-cta-block {
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14px;
}

.primary-button {
  border: 0;
  background: var(--brand-primary);
  color: #111;
}

.secondary-button {
  border: 1px solid var(--brand-line);
  background: transparent;
  color: white;
}

.microcopy {
  display: block;
  margin-top: 10px;
  color: var(--brand-faint);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.inline-disclosure {
  margin-top: 14px;
  border-top: 1px solid var(--brand-line);
}

.disclosure-toggle {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 12px;
  cursor: pointer;
}

.disclosure-toggle span:last-child {
  font-size: 18px;
  transition: transform 160ms ease;
}

.disclosure-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.disclosure-body {
  padding: 0 0 14px;
  color: var(--brand-faint);
  font-size: 11px;
  line-height: 1.65;
}

.kyc-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 20px;
}

.kyc-progress span {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.kyc-progress span.is-complete,
.kyc-progress span.is-current {
  background: var(--brand-primary);
}

.kyc-step-panel {
  padding: 20px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: var(--brand-surface);
}

.document-checklist {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.document-check {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(201, 252, 1, 0.4);
  border-radius: 50%;
}

.document-check::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 5px;
  width: 10px;
  height: 5px;
  border-bottom: 1.5px solid var(--brand-primary);
  border-left: 1.5px solid var(--brand-primary);
  transform: rotate(-45deg);
}

.document-row strong {
  display: block;
  font-size: 12px;
}

.document-row span {
  display: block;
  margin-top: 2px;
  color: var(--brand-muted);
  font-size: 10px;
}

.scan-stage {
  display: grid;
  justify-items: center;
  padding: 30px 0 18px;
}

.scan-frame {
  position: relative;
  width: 184px;
  height: 118px;
  border: 1px solid rgba(201, 252, 1, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(201, 252, 1, 0.05), transparent),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 36px rgba(201, 252, 1, 0.06);
}

.scan-frame::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  height: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.scan-line {
  position: absolute;
  right: 8px;
  left: 8px;
  top: 8px;
  height: 1px;
  background: var(--brand-primary);
  box-shadow: 0 0 12px rgba(201, 252, 1, 0.8);
  animation: scan 1.3s ease-in-out infinite alternate;
}

@keyframes scan {
  to {
    transform: translateY(100px);
  }
}

.scan-stage strong {
  margin-top: 18px;
  font-size: 13px;
}

.scan-stage span {
  margin-top: 5px;
  color: var(--brand-muted);
  font-size: 11px;
}

.kyc-success {
  text-align: center;
}

.success-mark {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  margin: 8px auto 18px;
  place-items: center;
  border: 1px solid rgba(201, 252, 1, 0.4);
  border-radius: 50%;
  background: rgba(201, 252, 1, 0.08);
  box-shadow: 0 0 0 12px rgba(201, 252, 1, 0.025);
}

.success-mark::after {
  content: "";
  width: 25px;
  height: 13px;
  border-bottom: 3px solid var(--brand-primary);
  border-left: 3px solid var(--brand-primary);
  transform: rotate(-45deg) translate(2px, -3px);
}

.kyc-success h2,
.kyc-success > p {
  margin-right: auto;
  margin-left: auto;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(201, 252, 1, 0.08);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 800;
}

.verification-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.deposit-offer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 14px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 252, 1, 0.22);
  border-radius: 13px;
  background:
    linear-gradient(110deg, rgba(201, 252, 1, 0.11), transparent 70%),
    var(--brand-surface);
  text-align: left;
}

.deposit-offer h3 {
  margin: 6px 0 5px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.deposit-offer p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.55;
}

.deposit-offer img {
  width: 110px;
  transform: rotate(-5deg) translateX(2px);
}

.deposit-offer .primary-button {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.overlay-backdrop {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--brand-overlay);
  backdrop-filter: blur(3px);
  animation: overlay-in 180ms ease both;
}

@keyframes overlay-in {
  from { opacity: 0; }
}

.activity-detail-sheet,
.bottom-sheet {
  width: 100%;
  max-height: 88%;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px 18px 0 0;
  background: var(--brand-surface);
  box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.36);
  animation: sheet-in 260ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  scrollbar-width: none;
}

.activity-detail-sheet::-webkit-scrollbar,
.bottom-sheet::-webkit-scrollbar {
  display: none;
}

@keyframes sheet-in {
  from {
    transform: translateY(32px);
    opacity: 0;
  }
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 9px auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.detail-header,
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 16px 12px;
}

.detail-header h2,
.sheet-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.sheet-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
  background: transparent;
  color: var(--brand-muted);
  font-size: 20px;
  cursor: pointer;
}

.detail-banner {
  width: calc(100% - 32px);
  margin: 0 16px;
  border-radius: 9px;
}

.detail-body,
.sheet-body {
  padding: 14px 16px 22px;
}

.detail-summary {
  margin: 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.65;
}

.rule-accordion {
  margin-top: 14px;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.rule-accordion .disclosure-toggle {
  color: white;
  font-weight: 800;
}

.reward-table {
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  border-spacing: 0;
  font-size: 11px;
}

.reward-table th,
.reward-table td {
  padding: 10px;
  border-bottom: 1px solid var(--brand-line);
  text-align: left;
}

.reward-table tr:last-child td {
  border-bottom: 0;
}

.reward-table th {
  background: rgba(255, 255, 255, 0.035);
  color: var(--brand-muted);
  font-weight: 700;
}

.reward-table td:last-child {
  color: var(--brand-primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

.detail-body .primary-button {
  margin-top: 16px;
}

.sheet-description {
  margin: 0 0 14px;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.6;
}

.payment-options,
.amount-options {
  display: grid;
  gap: 8px;
}

.payment-option,
.amount-option {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: transparent;
  color: var(--brand-muted);
  text-align: left;
  cursor: pointer;
}

.payment-option.is-active,
.amount-option.is-active {
  border-color: rgba(201, 252, 1, 0.6);
  background: rgba(201, 252, 1, 0.06);
  color: white;
}

.payment-option strong {
  display: block;
  color: inherit;
  font-size: 13px;
}

.payment-option span {
  display: block;
  margin-top: 2px;
  color: var(--brand-faint);
  font-size: 10px;
}

.sheet-field-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--brand-muted);
  font-size: 11px;
}

.amount-options {
  grid-template-columns: repeat(3, 1fr);
}

.amount-option {
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.sheet-body .primary-button {
  margin-top: 16px;
}

.toast {
  position: absolute;
  z-index: 120;
  top: 18px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 13px;
  border: 1px solid rgba(201, 252, 1, 0.35);
  border-radius: 8px;
  background: rgba(32, 33, 37, 0.96);
  color: white;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: 180ms ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* PC prototype — measured from the live Magic88 desktop layout. */
body[data-device="desktop"] {
  min-width: 1024px;
  overflow-x: auto;
  background: var(--brand-surface);
}

body[data-device="desktop"] .prototype-stage {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.desktop-preview {
  min-width: 1024px;
  width: 100%;
  min-height: 100vh;
}

.desktop-shell {
  position: relative;
  min-height: 100vh;
  background: var(--brand-surface);
}

.desktop-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 63px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(32, 33, 37, 0.96);
  backdrop-filter: blur(18px);
}

.desktop-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 14px;
}

.desktop-brand-group,
.desktop-header-actions {
  display: flex;
  align-items: center;
}

.desktop-brand-group {
  gap: 14px;
}

.desktop-menu-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-content: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.desktop-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
}

.desktop-logo {
  width: 120px;
  height: 36px;
  object-fit: contain;
}

.desktop-header-actions {
  gap: 8px;
}

.desktop-search-button,
.desktop-help-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.desktop-search-button::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 10px;
  top: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.desktop-search-button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  left: 24px;
  top: 25px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg);
}

.desktop-login-button,
.desktop-signup-button {
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.desktop-login-button {
  padding: 0 10px;
  border: 0;
  background: transparent;
}

.desktop-signup-button {
  min-width: 110px;
  padding: 0 20px;
  border: 0;
  background: var(--brand-primary);
  color: #101110;
}

.desktop-device-toggle {
  height: 36px;
}

.desktop-help-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-weight: 900;
}

.desktop-side-nav {
  position: fixed;
  z-index: 90;
  inset: 63px auto 0 0;
  display: flex;
  width: 56px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #1a1b1f;
}

.desktop-nav-item {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.desktop-nav-item.is-active {
  background: rgba(201, 252, 1, 0.1);
  color: var(--brand-primary);
}

.desktop-nav-item .nav-icon {
  width: 22px;
  height: 22px;
}

.desktop-main {
  width: calc(100% - 56px);
  min-height: 100vh;
  margin-left: 56px;
  padding: 88px 28px 64px;
}

.desktop-screen {
  display: none;
  width: 100%;
  max-width: 1167px;
  margin: 0 auto;
}

.desktop-screen.is-active {
  display: block;
  animation: screen-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.desktop-page-heading,
.desktop-section-heading,
.desktop-discovery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.desktop-page-heading {
  margin-bottom: 22px;
}

.desktop-kicker {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.desktop-page-heading h1 {
  margin: 6px 0 2px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.desktop-page-heading p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
}

.desktop-activity-search {
  position: relative;
  display: flex;
  width: min(360px, 34vw);
  height: 42px;
  align-items: center;
  padding: 0 42px 0 42px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: #282a2f;
}

.desktop-activity-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.desktop-activity-search .search-icon {
  left: 15px;
  top: 12px;
}

.desktop-search-clear {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 20px;
  cursor: pointer;
}

.desktop-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.desktop-promo-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #18191d;
  cursor: pointer;
}

.desktop-promo-card img {
  width: 100%;
  aspect-ratio: 2.14 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.desktop-promo-card:hover img {
  transform: scale(1.025);
}

.desktop-promo-card > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(15, 16, 18, 0.86);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 900;
}

.desktop-discovery-bar {
  margin: 26px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: #282a2f;
}

.desktop-category-tabs,
.desktop-quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-category-tabs .category-tab {
  min-height: 36px;
}

.desktop-quick-filters .filter-chip {
  min-height: 34px;
}

.desktop-section-heading {
  margin: 0 0 14px;
}

.desktop-section-heading h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.desktop-activity-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.desktop-activity-card {
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  background: #282a2f;
}

.desktop-activity-card[hidden] {
  display: none;
}

.desktop-activity-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #17181b;
  cursor: pointer;
}

.desktop-activity-card-media img {
  width: 100%;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.desktop-activity-card:hover .desktop-activity-card-media img {
  transform: scale(1.035);
}

.desktop-activity-card-body {
  display: grid;
  min-height: 122px;
  padding: 13px;
  align-content: space-between;
  gap: 12px;
}

.desktop-activity-card-title {
  display: block;
  font-size: 14px;
}

.desktop-activity-card-copy {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.desktop-activity-card .ghost-compact {
  width: 100%;
}

.desktop-activity-empty {
  min-height: 220px;
}

.desktop-kyc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.desktop-kyc-copy,
.desktop-kyc-panel,
.desktop-kyc-success-panel,
.desktop-deposit-panel {
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: #282a2f;
}

.desktop-kyc-copy {
  position: relative;
  min-height: 536px;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(201, 252, 1, 0.1), transparent 44%),
    #282a2f;
}

.desktop-kyc-copy::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -130px;
  border: 1px solid rgba(201, 252, 1, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(201, 252, 1, 0.025), 0 0 0 136px rgba(201, 252, 1, 0.018);
}

.desktop-kyc-copy h1,
.desktop-kyc-panel h2,
.desktop-kyc-success-panel h1,
.desktop-deposit-panel h2 {
  margin: 10px 0 12px;
  letter-spacing: -0.035em;
}

.desktop-kyc-copy h1 {
  max-width: 560px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

.desktop-kyc-copy > p,
.desktop-kyc-panel > p,
.desktop-kyc-success-panel > p,
.desktop-deposit-panel > p {
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.75;
}

.desktop-benefit-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--brand-line);
}

.desktop-benefit-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-line);
}

.desktop-benefit-row b {
  color: var(--brand-primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.desktop-benefit-row strong,
.desktop-benefit-row span {
  display: block;
}

.desktop-benefit-row span {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 12px;
}

.desktop-kyc-panel,
.desktop-kyc-success-panel,
.desktop-deposit-panel {
  min-height: 536px;
  padding: 34px;
}

.desktop-step-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}

.desktop-step-rail span {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.desktop-step-rail span.is-complete,
.desktop-step-rail span.is-current {
  background: var(--brand-primary);
}

.desktop-kyc-panel .document-checklist,
.desktop-kyc-panel .scan-stage {
  margin-top: 24px;
}

.desktop-kyc-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.desktop-kyc-panel .inline-disclosure {
  margin-top: 22px;
}

.desktop-success-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  gap: 22px;
}

.desktop-kyc-success-panel {
  display: grid;
  place-content: center;
  text-align: center;
}

.desktop-kyc-success-panel .success-mark {
  margin: 0 auto 18px;
}

.desktop-deposit-panel {
  display: grid;
  grid-template-columns: 1fr 170px;
  align-content: center;
  gap: 18px;
}

.desktop-deposit-panel img {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  width: 170px;
  opacity: 0.9;
}

.desktop-deposit-panel .primary-button,
.desktop-deposit-panel .secondary-button {
  grid-column: 1;
}

.desktop-overlay-root .overlay-backdrop {
  position: fixed;
  z-index: 200;
  inset: 63px 0 0 56px;
  align-items: center;
  padding: 32px;
}

.desktop-overlay-root .activity-detail-sheet,
.desktop-overlay-root .bottom-sheet {
  width: min(760px, calc(100vw - 120px));
  max-height: calc(100vh - 126px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.desktop-overlay-root .sheet-handle {
  display: none;
}

.desktop-overlay-root .detail-header,
.desktop-overlay-root .sheet-header {
  padding: 20px 24px 14px;
}

.desktop-overlay-root .detail-banner {
  width: calc(100% - 48px);
  margin: 0 24px;
  border-radius: 10px;
}

.desktop-overlay-root .detail-body,
.desktop-overlay-root .sheet-body {
  padding: 18px 24px 24px;
}

.desktop-toast {
  position: fixed;
  z-index: 230;
  bottom: 28px;
}

@media (max-width: 1120px) {
  .desktop-activity-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-kyc-layout,
  .desktop-success-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-height: 920px) and (min-width: 701px) {
  :root {
    --phone-width: 360px;
    --phone-height: 780px;
  }

  .prototype-stage {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--brand-bg);
  }

  .prototype-stage {
    display: block;
    min-height: 100svh;
    padding: 0;
  }

  .phone-preview,
  .phone-shell {
    width: 100%;
    height: 100svh;
  }

  .phone-shell {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .phone-screen {
    border-radius: 0;
  }

  .app-header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  }

  .app-screen {
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
