@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* MovementPRO brand: black / white / lime */
  --bg: #0a0a0a;
  --panel: #161616;
  --panel-2: #202020;
  --line: #2c2c2c;
  --text: #ffffff;
  --muted: #9a9a9a;
  --accent: #66f209;   /* MovementPRO lime */
  --accent-2: #66f209;
  --hot: #ff4d4d;
  --gold: #ffce44;
  --silver: #d6d6d6;
  --bronze: #e39b62;
  --radius: 12px;
  --head: 'Varela Round', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }
body { min-height: 100vh; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }

.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.pod { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
.pod.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--accent); } }
h1, h2 { font-family: var(--head); font-weight: 400; letter-spacing: .01em; }
.num { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
h1 { font-size: 30px; margin: 0; line-height: 1; text-transform: uppercase; }
h2 { font-size: 20px; margin: 22px 0 10px; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tab { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.board { list-style: none; padding: 0; margin: 12px 0 0; }
.row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); border-radius: var(--radius); margin-bottom: 8px; border: 1px solid transparent; transition: transform .3s, background .3s; }
.row .rank { font-family: 'Inter'; font-size: 24px; font-weight: 800; color: var(--muted); text-align: center; }
.row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 12px; color: var(--muted); }
.row .score { font-family: 'Inter'; font-size: 28px; font-weight: 800; }
.row .score small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.row.r1 .rank { color: var(--gold); } .row.r2 .rank { color: var(--silver); } .row.r3 .rank { color: var(--bronze); }
.row.r1 { border-color: rgba(255,209,102,.35); }
.row.me { border-color: var(--accent); background: #15200c; }
.row.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0% { background: #2c4d10; } 100% { background: var(--panel); } }

.empty { color: var(--muted); padding: 30px 0; text-align: center; }

.card { background: var(--panel); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=email], select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); outline: none; font-size: 17px;
}
input:focus, select:focus { border-color: var(--accent); }
.btn { border-radius: 6px !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 18px; border-radius: 10px; border: 0; background: var(--accent); color: #000; font-weight: 600; cursor: pointer; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--hot); border: 1px solid #4a2230; }
.btn.small { padding: 7px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

.suggest { list-style: none; margin: 6px 0 0; padding: 0; }
.suggest li { padding: 11px 14px; background: var(--panel-2); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stat { background: var(--panel-2); border-radius: 10px; padding: 10px; text-align: center; }
.stat .num { font-size: 26px; font-weight: 800; }
.stat .lbl { font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 70px; display: block; }
.hist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.hist li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hist li b { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--accent-2); color: #08200a; padding: 12px 18px; border-radius: 10px; font-weight: 700; opacity: 0; transition: opacity .25s; pointer-events: none; }

.toast { color: #000; }
.toast.show { opacity: 1; }
.toast.err { background: var(--hot); color: #fff; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---- MovementPRO branding ---- */
.brand { flex-wrap: wrap; row-gap: 4px; }
.logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; flex: none; display: block; object-fit: contain; }
.brand .titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand .kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.brand .kicker:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.05; }
.foot { margin: 34px 0 10px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.foot .logo { width: 56px; height: 56px; }
.foot p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.foot b { color: var(--text); }
.foot .btn { padding: 9px 14px; font-size: 14px; }
.chpick button.on { background: #15200c !important; }
.brand { flex-wrap: nowrap; align-items: center; }
.brand .titles { flex: 1; }
.logo { padding: 2px; }
.btn { text-decoration: none; }
@media (max-width: 600px) {
  .brand { gap: 12px; }
  .brand .logo { width: 46px; height: 46px; }
  .brand .kicker { font-size: 10.5px; letter-spacing: .1em; }
  h1 { font-size: 21px; }
}
