/* ═══════════════════════════════════════════════════════
   WHY NOT YOU — styles.css
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── TOKENS ── */
:root {
  --bg:   #000; --bg1: #080808; --bg2: #0f0f0f;
  --bg3:  #161616; --bg4: #1e1e1e; --bg5: #262626;
  --border:  rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.12);
  --txt:  #fff;
  --txt2: rgba(255,255,255,.55);
  --txt3: rgba(255,255,255,.28);
  --txt4: rgba(255,255,255,.12);
  --accent: #fff;
  --ok:   #4ade80;
  --err:  rgba(255,80,80,.85);
  --liquid1: rgba(255,255,255,.04);
  --liquid2: rgba(255,255,255,.08);
  --r:  18px; --rs: 10px;
  --st: env(safe-area-inset-top,    0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --nav: 68px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%; background: var(--bg); color: var(--txt);
  font-family: var(--font-ui); overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── LIQUID BG ── */
#liquid-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .35;
}

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
#splash-logo {
  font-family: var(--font-display); font-size: 36px;
  letter-spacing: .01em; color: #fff;
  opacity: 0; transform: translateY(10px);
  animation: splIn .9s cubic-bezier(.16,1,.3,1) .4s forwards;
}
#splash-tagline {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-top: 12px;
  opacity: 0; animation: splIn .7s ease 1.1s forwards;
}
#splash-bar {
  position: absolute; bottom: 0; left: 0; height: 1px; background: #fff;
  width: 0%; animation: splBar 1.6s cubic-bezier(.4,0,.2,1) .3s forwards;
}
@keyframes splIn { to { opacity:1; transform:none } }
@keyframes splBar { to { width:100% } }
#splash.out { animation: splOut .7s cubic-bezier(.4,0,.2,1) forwards }
@keyframes splOut { to { opacity:0; transform:scale(1.04) } }

/* ── APP SHELL ── */
#app { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; opacity: 0; transition: opacity .5s ease }
#app.on { opacity: 1 }

/* ── AUTH SCREEN ── */
#auth-screen {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px calc(32px + var(--sb));
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#auth-screen.on { opacity: 1; pointer-events: all }

.auth-logo {
  font-family: var(--font-display); font-size: 32px;
  color: var(--txt); margin-bottom: 6px; text-align: center;
}
.auth-sub {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--txt3); margin-bottom: 36px; text-align: center;
}

/* benefits list */
.auth-benefits {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px; margin-bottom: 24px; width: 100%; max-width: 360px;
}
.auth-benefits-title {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--txt3); margin-bottom: 12px;
}
.auth-benefit-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.auth-benefit-row:last-child { border-bottom: none }
.auth-benefit-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.auth-benefit-icon svg { width: 14px; height: 14px; stroke: var(--txt2); fill: none; stroke-width: 2 }
.auth-benefit-row span { font-size: 13px; color: var(--txt2) }

/* auth form */
.auth-form { width: 100%; max-width: 360px }
.auth-tabs {
  display: flex; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 3px; margin-bottom: 16px;
}
.auth-tab {
  flex: 1; text-align: center; padding: 9px; font-size: 13px; font-weight: 600;
  color: var(--txt3); cursor: pointer; border-radius: 8px;
  transition: color .2s, background .2s;
}
.auth-tab.active { background: var(--bg4); color: var(--txt) }

.auth-err {
  font-size: 13px; color: var(--err);
  text-align: center; margin-bottom: 10px; min-height: 18px;
}

.auth-guest-btn {
  width: 100%; max-width: 360px; text-align: center;
  margin-top: 14px; font-size: 13px; color: var(--txt3);
  cursor: pointer; padding: 10px; letter-spacing: .01em;
  transition: color .2s;
}
.auth-guest-btn:active { color: var(--txt) }

/* ── PAGES ── */
#pages { flex: 1; overflow: hidden; position: relative }
.page {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-top: calc(var(--st) + 56px);
  padding-bottom: calc(var(--nav) + var(--sb) + 24px);
  opacity: 0; pointer-events: none;
  transform: translateY(18px);
  transition: opacity .32s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.4,0,.2,1);
}
.page::-webkit-scrollbar { display: none }
.page.active { opacity: 1; pointer-events: all; transform: none }
.page-pad { padding: 0 20px }

/* ── TOP BAR ── */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(var(--st) + 14px) 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, transparent 100%);
  pointer-events: none;
}
#topbar-left { display: flex; align-items: center; gap: 10px }
#topbar-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt3); font-weight: 500 }
#topbar-right { display: flex; align-items: center; gap: 10px; pointer-events: all }
#topbar-time { font-size: 13px; color: var(--txt3); font-weight: 400; font-variant-numeric: tabular-nums }

/* sync badge */
#sync-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px; background: var(--bg2);
  border: 1px solid var(--border); color: var(--txt3);
  opacity: 0; transition: opacity .3s;
}
#sync-badge.visible { opacity: 1 }
#sync-badge.ok { border-color: rgba(74,222,128,.3); color: var(--ok) }
#sync-badge.spin { animation: badgeSpin 1.2s linear infinite }
@keyframes badgeSpin { to { opacity: .5 } 50% { opacity: 1 } }

/* lang pill */
#lang-pill {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt3); cursor: pointer; padding: 4px 2px;
  transition: color .2s;
}
#lang-pill:active { color: var(--txt) }

/* account icon */
#acc-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 11px; font-weight: 700;
  color: var(--txt2); transition: border-color .2s;
}
#acc-btn:active { border-color: var(--border2) }
#acc-btn svg { width: 14px; height: 14px; stroke: var(--txt2); fill: none; stroke-width: 1.8 }

/* ── NAV ── */
#nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav) + var(--sb)); padding-bottom: var(--sb);
  background: rgba(6,6,6,.88);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; padding-top: 6px;
}
.ni {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 8px 4px;
  transition: transform .12s ease;
  -webkit-user-select: none; user-select: none;
}
.ni:active { transform: scale(.86) }
.ni-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; position: relative }
.ni svg { width: 20px; height: 20px; stroke: var(--txt3); fill: none; stroke-width: 1.6; transition: stroke .2s }
.ni-dot {
  position: absolute; top: -1px; right: -1px;
  width: 5px; height: 5px; border-radius: 50%; background: #fff;
  opacity: 0; transition: opacity .2s;
}
.ni.active svg { stroke: var(--txt) }
.ni.active .ni-dot { opacity: 1 }
.ni-lbl { font-size: 9.5px; font-weight: 500; letter-spacing: .04em; color: var(--txt3); transition: color .2s; text-transform: uppercase }
.ni.active .ni-lbl { color: var(--txt) }

/* ── TYPOGRAPHY ── */
.t-hero   { font-family: var(--font-display); font-size: 48px; line-height: 1; letter-spacing: -.01em; color: var(--txt) }
.t-h1     { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1 }
.t-h2     { font-size: 20px; font-weight: 700; letter-spacing: -.02em }
.t-h3     { font-size: 16px; font-weight: 600; letter-spacing: -.01em }
.t-body   { font-size: 14px; line-height: 1.6; color: var(--txt2) }
.t-caption { font-size: 11px; color: var(--txt3); letter-spacing: .02em }
.t-num    { font-size: 48px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums }
.t-num-sm { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums }

/* ── SECTION LABEL ── */
.slbl {
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt3); margin: 28px 0 10px;
}

/* ── CARDS ── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-bottom: 10px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--liquid1) 0%, transparent 60%);
  pointer-events: none;
}
.card-ghost {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-bottom: 10px;
}
.glass {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); position: relative; overflow: hidden;
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 50%, rgba(255,255,255,.02) 100%);
  pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font-ui); font-weight: 600;
  transition: transform .12s ease, opacity .12s ease;
  -webkit-user-select: none; user-select: none; letter-spacing: .01em;
}
.btn:active { transform: scale(.94); opacity: .8 }
.btn-solid   { background: #fff; color: #000; border-radius: 100px; padding: 14px 28px; font-size: 14px }
.btn-outline { background: transparent; color: var(--txt); border: 1px solid var(--border2); border-radius: 100px; padding: 13px 28px; font-size: 14px }
.btn-sm      { padding: 10px 20px; font-size: 13px; border-radius: 100px }
.btn-w       { width: 100%; border-radius: var(--r) }
.btn-icon    { width: 40px; height: 40px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center }
.btn-icon svg { width: 18px; height: 18px; stroke: var(--txt); fill: none; stroke-width: 1.8 }

/* ── INPUT ── */
.inp {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--rs); color: var(--txt); font-family: var(--font-ui); font-size: 15px;
  padding: 14px 16px; outline: none; margin-bottom: 10px;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.inp:focus      { border-color: var(--border2); background: var(--bg4) }
.inp::placeholder { color: var(--txt3) }
.inp[type=date] { color-scheme: dark }
textarea.inp    { resize: none; min-height: 120px; line-height: 1.6 }

/* ── PROGRESS BAR ── */
.pbar       { height: 2px; background: var(--bg4); border-radius: 100px; overflow: hidden; margin-top: 10px }
.pbar-fill  { height: 100%; background: #fff; border-radius: 100px; width: 0; transition: width .9s cubic-bezier(.4,0,.2,1) }
.pbar-thick { height: 4px }

/* ── RING ── */
.ring-wrap   { position: relative; display: inline-block }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center }

/* ── HABIT ROW ── */
.hrow {
  display: flex; align-items: center; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: opacity .12s; -webkit-user-select: none; user-select: none;
}
.hrow:last-child  { border-bottom: none; padding-bottom: 0 }
.hrow:first-child { padding-top: 0 }
.hrow:active { opacity: .6 }
.hcheck {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .25s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
}
.hcheck::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.hcheck.done::before { transform: scale(1) }
.hcheck.done         { border-color: #fff }
.hcheck svg { width: 13px; height: 13px; stroke: transparent; stroke-width: 2.5; position: relative; z-index: 1; transition: stroke .15s .1s }
.hcheck.done svg { stroke: #000 }
.hinfo   { flex: 1; min-width: 0 }
.hname   { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hmeta   { font-size: 11px; color: var(--txt3); margin-top: 2px; letter-spacing: .02em }
.hbadge  {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--txt3); flex-shrink: 0;
}

/* ── HEATMAP ── */
.heatmap { display: grid; grid-template-columns: repeat(13,1fr); gap: 3px }
.hcell   { aspect-ratio: 1; border-radius: 3px; background: var(--bg3); transition: background .3s, transform .2s; cursor: default }
.hcell:hover { transform: scale(1.4) }
.hcell.l1 { background: rgba(255,255,255,.14) }
.hcell.l2 { background: rgba(255,255,255,.32) }
.hcell.l3 { background: rgba(255,255,255,.58) }
.hcell.l4 { background: rgba(255,255,255,.88) }

/* ── STAT ROW ── */
.srow       { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border) }
.srow:last-child { border-bottom: none }
.srow-lbl   { font-size: 14px; color: var(--txt2) }
.srow-val   { font-size: 14px; font-weight: 600 }

/* ── TOGGLE ── */
.tog-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border) }
.tog-wrap:last-child { border-bottom: none }
.tog-lbl  { font-size: 14px; color: var(--txt2) }
.tog {
  width: 44px; height: 26px; border-radius: 100px;
  background: var(--bg4); border: 1px solid var(--border);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .22s, border-color .22s;
}
.tog.on { background: #fff; border-color: #fff }
.tog::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: var(--txt3); top: 2px; left: 2px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), background .22s;
}
.tog.on::after { background: #000; transform: translateX(18px) }

/* ── MISSION ── */
.mitem {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: opacity .12s; -webkit-user-select: none; user-select: none;
}
.mitem:last-child  { border-bottom: none }
.mitem:active { opacity: .5 }
.mline   { width: 14px; height: 1px; background: var(--border2); flex-shrink: 0; transition: background .2s, width .2s }
.mitem.done .mline { background: var(--txt); width: 20px }
.mtxt    { font-size: 14px; color: var(--txt2); transition: color .2s }
.mitem.done .mtxt  { color: var(--txt3); text-decoration: line-through; text-decoration-color: var(--txt4) }

/* ── WEEKLY BARS ── */
.wbars    { display: flex; gap: 5px; align-items: flex-end; height: 64px }
.wbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px }
.wbar-track { width: 100%; flex: 1; background: var(--bg3); border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end }
.wbar-fill  { width: 100%; background: #fff; border-radius: 5px; transition: height .7s cubic-bezier(.4,0,.2,1) }
.wbar-lbl   { font-size: 9px; color: var(--txt3); text-transform: uppercase; letter-spacing: .06em }

/* ── GOAL CARD ── */
.gcard  { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 8px }
.gtitle { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 2px }
.gmeta  { font-size: 11px; color: var(--txt3); margin-bottom: 12px; letter-spacing: .02em }
.gpct   { font-size: 11px; font-weight: 700; color: var(--txt2) }

/* ── VISION GRID ── */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.vcell {
  aspect-ratio: 1; border-radius: var(--rs); background: var(--bg3);
  border: 1px dashed var(--border2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; transition: opacity .15s, border-color .2s;
}
.vcell:active { opacity: .65 }
.vcell img { width: 100%; height: 100%; object-fit: cover }
.vcell svg { width: 22px; height: 22px; stroke: var(--txt3); fill: none; stroke-width: 1.5 }

/* ── JOURNAL ── */
.jentry { padding: 16px 0; border-bottom: 1px solid var(--border) }
.jentry:last-child { border-bottom: none }
.jdate  { font-size: 11px; color: var(--txt3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px }
.jtext  { font-size: 14px; line-height: 1.7; color: var(--txt2) }

/* ── FOCUS OVERLAY ── */
#focus-ov {
  position: fixed; inset: 0; z-index: 300; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; gap: 0;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
#focus-ov.on { opacity: 1; pointer-events: all }
#focus-lbl   { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt3); margin-bottom: 40px }
#focus-time  { font-family: var(--font-display); font-size: 64px; letter-spacing: -.02em; margin: 24px 0; font-variant-numeric: tabular-nums; transition: opacity .4s }
#focus-end-msg { font-size: 18px; font-weight: 600; letter-spacing: -.01em; opacity: 0; transition: opacity .5s; margin-bottom: 32px; text-align: center; color: var(--txt2) }
.focus-btns  { display: flex; gap: 10px; width: 100%; max-width: 300px }

/* ── MODAL SHEET ── */
.backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  display: flex; align-items: flex-end;
}
.backdrop.open  { opacity: 1; pointer-events: all }
.sheet {
  width: 100%; background: var(--bg2);
  border-radius: 24px 24px 0 0; border-top: 1px solid var(--border2);
  padding: 16px 20px calc(20px + var(--sb));
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  max-height: 88vh; overflow-y: auto; scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none }
.backdrop.open .sheet { transform: none }
.sheet-handle { width: 32px; height: 3px; background: var(--bg5); border-radius: 100px; margin: 0 auto 20px }
.sheet-title  { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px }

/* ── AVATAR ── */
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--txt2);
  font-family: var(--font-ui); margin: 0 auto 14px;
}

/* ── HOME HEADER ── */
.home-gr { font-size: 13px; color: var(--txt3); letter-spacing: .04em; font-weight: 400; margin-bottom: 6px }

/* ── TIKTOK CARD ── */
.tiktok-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px; margin-bottom: 10px;
  display: flex; justify-content: center; overflow: hidden;
}
.tiktok-frame {
  width: 100%; max-width: 325px; border-radius: 14px; overflow: hidden;
  background: var(--bg3);
}
.tiktok-frame blockquote.tiktok-embed {
  margin: 0 !important; border-radius: 14px; overflow: hidden;
  background: var(--bg3) !important; border: none !important;
}
.tiktok-skel {
  width: 100%; aspect-ratio: 9/16; border-radius: 14px;
  background: linear-gradient(110deg, var(--bg3) 8%, var(--bg4) 18%, var(--bg3) 33%);
  background-size: 200% 100%;
  animation: tiktokShimmer 1.4s linear infinite;
}
@keyframes tiktokShimmer { to { background-position-x: -200% } }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: calc(var(--nav) + var(--sb) + 16px);
  left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 400; background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 100px; padding: 10px 20px; font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap;
  pointer-events: none; backdrop-filter: blur(20px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }

/* ── DIVIDER ── */
.div { height: 1px; background: var(--border); margin: 4px 0 }

/* ── LEADERBOARD ── */
.lb-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.lb-row:last-child { border-bottom: none }
.lb-row.me { }
.lb-rank {
  width: 22px; text-align: center; font-size: 13px; font-weight: 700;
  color: var(--txt3); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.lb-row.rank-1 .lb-rank { color: #ffd24a }
.lb-row.rank-2 .lb-rank { color: #cfd8e3 }
.lb-row.rank-3 .lb-rank { color: #d99a5b }
.lb-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg4);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--txt2); flex-shrink: 0;
}
.lb-row.me .lb-avatar { background: #fff; color: #000; border-color: #fff }
.lb-info { flex: 1; min-width: 0 }
.lb-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lb-meta { font-size: 11px; color: var(--txt3); margin-top: 1px }
.lb-score { font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.friend-code-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 100px;
  padding: 8px 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em;
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.friend-code-pill svg { width: 13px; height: 13px; stroke: var(--txt2); fill: none; stroke-width: 2 }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:none } }
.fu  { animation: fadeUp .45s cubic-bezier(.4,0,.2,1) both }
.fu1 { animation-delay: .04s }
.fu2 { animation-delay: .09s }
.fu3 { animation-delay: .14s }
.fu4 { animation-delay: .19s }
.fu5 { animation-delay: .24s }
.fu6 { animation-delay: .29s }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important }
}