/* Reference palette: #0b0e11 / #13181b / #29332e / #b5fa66.
   Styles only. The application bundle, labels and interactions are unchanged. */
:root {
  --bg: #0b0e11;
  --surface: #13181b;
  --surface-2: #18201d;
  --line: #29332e;
  --text: #fafafa;
  --sub: #a4b6af;
  --muted: #7e958b;
  --cream: #b5fa66;
  --green: #b5fa66;
}
body { background: #080c0e; }
.app-shell { background: #0b0e11; border-color: #29332e; }
button:focus-visible, input:focus-visible { outline-color: #b5fa66; }
.brand-avatar { filter: grayscale(1); box-shadow: 0 0 0 1px #43523c; border-radius: 12px; }
.topbar-logo-button { border-radius: 12px; background: #18231a; }
.title-block::before { color: #86a68f; font-weight: 500; letter-spacing: 2px; }
.screen-title { color: #fafafa; }
.icon-button { color: #b5fa66; background: #13181b; border-color: #29332e; border-radius: 10px; }
.kicker, [data-screen='home'] .hero::after { color: #8fa99d; }
.home-overview-title { color: #fafafa; }
.metal-card, .dark-card, .metric-card, .level-card, .profile-card, .list-card, .direct-list-card {
  color: #fafafa; background: #13181b; border: 1px solid #29332e;
  border-radius: 13px; box-shadow: none;
}
.metal-card { background: linear-gradient(112deg, #1e2b1c 0%, #18211d 57%, #13181b 100%); border-color: #3b4c32; }
.metal-card::before, .metal-card::after { border-color: #b5fa6611; }
.metal-card .card-label { color: #a5b9a5; }
.metal-card .card-main { color: #fafafa; font-weight: 400; }
.metal-card .card-main::after { color: #b5fa66; font-weight: 400; }
.metal-card .card-head { color: #92ab96; border-color: #b5fa6624; }
.card-head > span:last-child::before { background: #a5bc95; }
.metal-card .card-bottom .brand-mark { color: #b5fa6624; font-weight: 500; }
.metric-label { color: #a6bbb0; }
.metric-value { color: #fafafa; font-weight: 400; }
.metric-note { color: #b5fa66; }
.action-card::before { color: #c1d2c7; }
.action-button { background: #13181b; border-color: #29332e; border-radius: 10px; color: #c2d3c5; }
.action-button span { color: #b5fa66; }
.action-button:first-child { background: #b5fa66; border-color: #b5fa66; color: #10170c; border-radius: 10px; }
.action-button:first-child span { color: #10170c; }
.cream-card { color: #fafafa; background: #13181b; border-color: #29332e; }
[data-screen='home'] .page > .cream-card { color: #fafafa; background: #13181b; border-color: #29332e; }
[data-screen='home'] .page > .cream-card h3 { color: #c8d6cb; }
[data-screen='home'] .stat-line { color: #9ab3a4; border-color: #29332e; }
[data-screen='home'] .stat-line strong { color: #e4eee5; }
.bottom-nav { background: #101718f5; border-color: #334332; border-radius: 13px; box-shadow: 0 8px 22px #0005; }
.nav-button { color: #82998e; border-radius: 8px; }
.nav-button.active { color: #b5fa66; background: #1e2b1c; }
.nav-button.active::before { background: #b5fa66; }
.primary-button { color: #10170c; background: #b5fa66; border-radius: 9px; }
.secondary-button { color: #b5fa66; background: #1a271b; border-radius: 9px; }
.tab-row { background: #13181b; border-color: #29332e; border-radius: 10px; }
.chip-button { color: #a2b5a9; border-radius: 6px; }
.chip-button.active { color: #10170c; background: #b5fa66; }
[data-screen='rewards'] .hero { color: #fafafa; background: linear-gradient(112deg, #1e2b1c, #13181b); border: 1px solid #3b4c32; border-radius: 13px; }
[data-screen='rewards'] .hero::after { color: #b5fa661c; font-weight: 500; }
[data-screen='rewards'] .hero .kicker { color: #a5b9a5; }
[data-screen='rewards'] .hero .headline { color: #fafafa; font-weight: 400; }
[data-screen='rewards'] .hero .headline::after { color: #b5fa66; }
[data-screen='rewards'] .grid-2 > .dark-card { color: #fafafa; background: #13181b; border-color: #29332e; }
[data-screen='rewards'] .grid-2 h3 { color: #a6bbb0; }
.reward-number { color: #fafafa; font-weight: 400; }
.withdraw-input { background: #0f1516; border-color: #334332; border-radius: 9px; }
.amount-input-label { color: #9eb4a6; }
.withdraw-input input { color: #fafafa; }
.withdraw-input input::placeholder { color: #6c8477; }
.amount-input strong { color: #b5fa66; }
.withdraw-available-line { color: #8ca696; }
.withdraw-available-line strong { color: #b5fa66; }
.withdraw-orders { border-color: #29332e; }
.reward-record-head { color: #c6d9ca; }
.reward-record-head > span { color: #b5fa66; background: #1e2b1c; }
.reward-record-empty, .empty-history { color: #819a8b; border-color: #35432e; border-radius: 9px; }
[data-screen='participate'] .hero { background: #13181b; border-color: #29332e; border-radius: 13px; }
[data-screen='participate'] .hero .headline { font-weight: 400; }
[data-screen='participate'] .asset-pill { color: #b5fa66; background: #1e2b1c; border: 1px solid #3b4c32; border-radius: 5px; }
.deposit-entry-head > span { color: #b5fa66; }
.deposit-amount-input { background: #0f1516; border-color: #334332; border-radius: 9px; }
.deposit-amount-field input { color: #fafafa; font-weight: 400; }
.amount-step-button { color: #b5fa66; background: #1e2b1c; border-color: #425a35; border-radius: 8px; }
.compact-head p { color: #819a8b; }
[data-screen='profile'] .hero { color: #fafafa; background: #13181b; border-color: #29332e; border-radius: 13px; }
[data-screen='profile'] .hero .kicker { color: #a5b9a5; }
[data-screen='profile'] .hero .headline { color: #b5fa66; font-weight: 400; }
[data-screen='profile'] .cream-card { background: linear-gradient(112deg, #1b271c, #13181b); border-color: #3b4c32; }
[data-screen='profile'] .cream-card h3 { color: #d1e0d1; }
.invite-qr { background: #0b1112; border: 1px solid #293c2d; border-radius: 9px; }
.qr-code { background: #e0edcf; border-radius: 5px; box-shadow: none; }
.qr-meta strong { color: #d4e5d5; }
.qr-meta span { color: #b5fa66; }
.qr-meta small { color: #83a18c; }
[data-screen='profile'] .grid-2 { border-color: #29332e; border-radius: 13px; background: #13181b; }
[data-screen='profile'] .metric-card:nth-child(odd) { border-color: #29332e; }
[data-screen='profile'] .metric-card:nth-child(-n+2) { border-color: #29332e; }
.direct-list-card { color: #fafafa; background: #13181b; border-color: #29332e; }
.direct-list-card h3 { color: #c6d9ca; }
.language-modal, .status-modal, .invite-modal { background: #131b1a; border-color: #3b4c32; border-radius: 13px; }
.language-choice { color: #d5e4d6; background: #1a251c; }
.language-choice.active { color: #10170c; background: #b5fa66; }
.modal-kicker, .modal-close { color: #b5fa66; }
/* The same four screens also adapt to a desktop, without adding actions. */
@media (min-width: 900px) {
  .app-shell { max-width: 1240px; margin-inline: auto; }
  .app-scroll { padding: 24px 30px 110px; }
  .topbar { padding-bottom: 21px; margin-bottom: 23px; border-bottom: 1px solid #29332e; }
  [data-screen='home'] .page { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 20px; }
  [data-screen='home'] .hero { grid-column: 1/-1; margin: 0 0 23px; }
  [data-screen='home'] .metal-card { margin-bottom: 0; }
  [data-screen='home'] .page > .grid-2 { align-items: stretch; }
  [data-screen='home'] .metric-card { display: flex; flex-direction: column; justify-content: center; }
  [data-screen='home'] .metric-value { margin-top: 23px; font-size: 35px; }
  [data-screen='home'] .action-card { grid-column: 1/-1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
  [data-screen='home'] .action-button { min-height: 84px; }
  [data-screen='home'] .action-button:first-child { display: grid; gap: 6px; grid-column: auto; align-content: center; }
  [data-screen='home'] .action-button:first-child span { order: 0; }
  [data-screen='home'] .page > .cream-card { grid-column: 1/-1; }
  .bottom-nav { width: min(calc(100% - 44px), 1196px); border-radius: 10px; bottom: 16px; min-height: 64px; }
  .nav-button { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; }
  .nav-button.active::before { display: none; }
}
