/*
 * File:          css/base.css
 * Version:       1.0.0
 * Last Modified: 2026-09-04 06:10 PM ET
 * Changes:       Initial release — tokens, reset, HUD, layout shell.
 */
:root {
  --bg: #05070d;
  --panel: rgba(18, 24, 38, 0.72);
  --panel-solid: #131a29;
  --line: rgba(122, 160, 220, 0.14);
  --text: #dfe8f6;
  --muted: #8ea0bd;
  --cyan: #4fd8eb;
  --cyan-dim: #2a8ea0;
  --amber: #ffb454;
  --red: #ff5d6a;
  --green: #5ce6a8;
  --radius: 14px;
  --hud-h: 108px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

/* ---------- starfield backdrop ---------- */
.starfield {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(2px 2px at 58% 12%, rgba(160,220,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 76% 44%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 44% 38%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(38, 70, 130, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(80, 40, 120, 0.25), transparent),
    var(--bg);
  animation: drift 160s linear infinite alternate;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: -600px 300px; } }

/* ---------- HUD ---------- */
#hud {
  position: sticky; top: 0; z-index: 20;
  padding: calc(6px + env(safe-area-inset-top)) 12px 8px;
  background: linear-gradient(180deg, rgba(5,7,13,0.96), rgba(5,7,13,0.82));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hud-brand { font-weight: 800; letter-spacing: 0.14em; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand-mark { color: var(--cyan); }
.sol { color: var(--amber); font-size: 0.8rem; letter-spacing: 0.08em; margin-left: 4px; }
.speed { display: flex; gap: 4px; }
.speed button {
  min-width: 40px; height: 34px; padding: 0 8px; border-radius: 9px;
  background: rgba(30, 40, 62, 0.8); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.8rem; flex-shrink: 0;
}
.speed button.on { color: #04121a; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }

.chips {
  display: flex; gap: 6px; margin-top: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: rgba(26, 34, 54, 0.9); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px 9px;
}
.chip-icon { font-size: 0.95rem; }
.chip-vals { display: flex; flex-direction: column; line-height: 1.15; }
.chip-vals b { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.chip-vals i { font-style: normal; font-size: 0.62rem; color: var(--muted); white-space: nowrap; }
.chip.warn { border-color: rgba(255, 93, 106, 0.55); box-shadow: 0 0 10px rgba(255, 93, 106, 0.25); animation: chipPulse 1.6s ease-in-out infinite; }
@keyframes chipPulse { 50% { box-shadow: 0 0 16px rgba(255, 93, 106, 0.45); } }

/* ---------- main / panels ---------- */
main { max-width: 760px; margin: 0 auto; padding: 12px; }
.panel { display: flex; flex-direction: column; gap: 10px; }
.sec-title { font-size: 0.85rem; letter-spacing: 0.12em; color: var(--muted); margin: 8px 2px 0; text-transform: uppercase; }

/* ---------- tab bar ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(5,7,13,0.98), rgba(9,13,22,0.92));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
#tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: 0.62rem; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 10px; min-width: 58px;
}
#tabbar button span { font-size: 1.15rem; }
#tabbar button.on { color: var(--cyan); background: rgba(79, 216, 235, 0.08); }

/* ---------- desktop polish ---------- */
@media (min-width: 700px) {
  main { padding: 20px; }
  .hud-row { max-width: 760px; margin: 0 auto; }
}
@media (max-width: 360px) {
  html { font-size: 15px; }
  .speed button { min-width: 34px; }
}

/* === END OF FILE (FILENAME: /var/www/vhosts/pokepapi.com/colony/css/base.css) === */