@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Sora:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ============================================================
   ARISE — folha de estilo MOBILE FIRST.
   O padrao abaixo e o do celular; telas maiores recebem os
   ajustes nos blocos @media (min-width: ...) no fim do arquivo.
   ============================================================ */

:root{
  --bg: #070a12;
  --bg-grid: #0b0f1c;
  --panel: #10152a;
  --panel2: #141a35;
  --border: #26305a;
  --border-soft: #1c2444;
  --accent: #5b8dff;
  --accent-glow: #7ea2ff;
  --gold: #f0b954;
  --gold-dim: #8a6a2e;
  --text: #dfe6f7;
  --muted: #7683a6;
  --green: #4fdc8e;
  --red: #ff6b6b;
  --locked: #3b425a;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --tap: 44px;                 /* alvo minimo de toque */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*{ box-sizing: border-box; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,body{
  margin:0; padding:0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(91,141,255,0.14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;           /* nada de rolagem lateral no celular */
}

::selection{ background: var(--accent); color: #05070d; }

button, input, textarea{
  font-family: inherit;
  touch-action: manipulation;   /* mata o atraso de 300ms no toque */
  -webkit-tap-highlight-color: transparent;
}

.app{
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 12px calc(40px + var(--safe-b));
}

/* ---------- Cabecalho / janela do sistema ---------- */
.sys-window{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border-radius: 12px;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(91,141,255,0.05), 0 20px 60px -30px rgba(91,141,255,0.35);
}
.sys-window::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(91,141,255,0.06) 45%, transparent 55%);
  background-size: 250% 250%;
  animation: sheen 7s ease-in-out infinite;
  pointer-events:none;
}
@keyframes sheen{
  0%,100%{ background-position: 0% 0%; }
  50%{ background-position: 100% 100%; }
}
.sys-eyebrow{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent-glow);
  text-transform: uppercase;
  display:flex; align-items:center; gap:8px;
}
.sys-eyebrow .dot{
  width:6px; height:6px; border-radius:50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink:0;
}
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.3;} }

.sys-title{
  font-family: var(--font-display);
  font-weight:900;
  font-size: clamp(19px, 5.6vw, 26px);
  line-height: 1.2;
  letter-spacing: .5px;
  margin: 8px 0 4px;
  color: #fff;
  overflow-wrap: anywhere;
}
.sys-sub{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.hunter-row{
  display:flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.rank-badge{
  width: 58px; height: 58px;
  flex-shrink:0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--panel2), #0a0e1c);
  border: 1px solid var(--gold-dim);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(240,185,84,0.6);
  position: relative;
}
.rank-badge::after{
  content:'';
  position:absolute; inset:3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(240,185,84,0.25);
}

.hunter-info{ flex: 1 1 170px; min-width:0; }
.hunter-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  letter-spacing: .3px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hunter-title{
  font-size: 11px;
  color: var(--gold);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.xp-bar-wrap{
  height: 10px;
  background: #05070f;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.xp-bar-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  box-shadow: 0 0 10px var(--accent);
  transition: width .5s cubic-bezier(.2,.9,.3,1);
  position: relative;
}
.xp-bar-fill::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  width: 40px;
  animation: scan 2.2s linear infinite;
}
@keyframes scan{ 0%{ transform: translateX(-40px);} 100%{ transform: translateX(220px);} }
.xp-label{
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  display:flex; justify-content:space-between; gap:8px;
}

.stat-cluster{
  display:flex; gap: 8px;
  flex: 1 1 100%;
}
.stat-chip{
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 8px 4px;
  flex: 1 1 0;
  min-width: 0;
  text-align:center;
}
.stat-chip .n{
  font-family: var(--font-display);
  font-size: 17px; font-weight:700; color:#fff;
}
.stat-chip .l{
  font-family: var(--font-mono);
  font-size: 8.5px; color: var(--muted); letter-spacing:.5px; text-transform:uppercase;
}

/* ---------- Titulos de secao ---------- */
.section-title{
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent-glow);
  text-transform: uppercase;
  margin: 24px 0 10px;
  display:flex; align-items:center; gap:10px;
}
.section-title::after{
  content:'';
  flex:1; height:1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
