/* ===== PalVerso — design system v2 (estilo game / Palworld-inspired, original) ===== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:        #071726;
  --bg-2:      #0a2236;
  --panel:     #0e2c45;
  --panel-2:   #134063;
  --line:      #1d4e74;
  --txt:       #eaf4ff;
  --txt-dim:   #9fc0db;
  --sky:       #38bdf8;
  --sky-deep:  #0ea5e9;
  --grass:     #4ade80;
  --sun:       #fbbf24;
  --sunset:    #fb7185;
  --grape:     #a78bfa;
  --grad-sky:  linear-gradient(120deg, #38bdf8 0%, #4ade80 100%);
  --grad-sun:  linear-gradient(120deg, #fbbf24 0%, #fb7185 100%);
  --grad-grape:linear-gradient(120deg, #38bdf8 0%, #a78bfa 100%);
  --radius:    20px;
  --radius-lg: 28px;
  --shadow:    0 16px 50px -16px rgba(0,0,0,.6);
  --ring:      0 0 0 3px rgba(56,189,248,.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--txt); line-height: 1.55; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 480px at 85% -8%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(760px 420px at 8% 4%, rgba(74,222,128,.14), transparent 58%),
    radial-gradient(700px 500px at 50% 120%, rgba(167,139,250,.12), transparent 60%),
    var(--bg);
}
h1,h2,h3,h4,.brand { font-family: 'Baloo 2', cursive; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.muted { color: var(--txt-dim); }
.center { text-align: center; }
.grad-text { background: var(--grad-sky); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text.sun { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Floating decorative orbs ===== */
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; pointer-events: none; z-index: 0;
  animation: float 9s ease-in-out infinite; }
.orb.s1 { width: 90px; height: 90px; background: radial-gradient(circle at 35% 30%, #7dd3fc, #0ea5e9); top: 12%; left: 6%; }
.orb.s2 { width: 130px; height: 130px; background: radial-gradient(circle at 35% 30%, #86efac, #22c55e); top: 55%; right: 8%; animation-delay: -3s; }
.orb.s3 { width: 60px; height: 60px; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b); top: 30%; right: 22%; animation-delay: -5s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-26px) } }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,23,38,.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { font-size: 1.6rem; display: flex; align-items: center; gap: 11px; }
.brand .sphere { width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(from 220deg, #38bdf8, #4ade80, #fbbf24, #fb7185, #38bdf8);
  box-shadow: 0 0 16px rgba(56,189,248,.6), inset 0 -4px 8px rgba(0,0,0,.3); position: relative; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { padding: 9px 15px; border-radius: 12px; color: var(--txt-dim); font-weight: 600; font-size: .95rem; transition: .15s; }
.nav-links a:hover { color: var(--txt); background: var(--panel); }
.nav-links a.active { color: #06202f; background: var(--grad-sky); }
.coin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.coin-pill b { color: var(--sun); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0; font-family: 'Baloo 2'; font-weight: 700;
  font-size: 1rem; padding: 13px 24px; border-radius: 14px; color: #06202f; background: var(--grad-sky);
  box-shadow: 0 6px 0 0 #0b7bb0, 0 12px 24px -10px rgba(56,189,248,.6); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 #0b7bb0, 0 16px 30px -10px rgba(56,189,248,.7); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 0 #0b7bb0; }
.btn.sun { background: var(--grad-sun); box-shadow: 0 6px 0 0 #c2475d, 0 12px 24px -10px rgba(251,113,133,.6); }
.btn.sun:hover { box-shadow: 0 8px 0 0 #c2475d, 0 16px 30px -10px rgba(251,113,133,.7); }
.btn.ghost { background: var(--panel-2); color: var(--txt); border: 1px solid var(--line); box-shadow: 0 5px 0 0 var(--bg-2); }
.btn.ghost:hover { background: var(--panel); }
.btn.sm { padding: 9px 16px; font-size: .9rem; box-shadow: 0 4px 0 0 #0b7bb0; }
.btn.sm:active { transform: translateY(2px); box-shadow: 0 2px 0 0 #0b7bb0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Panels / cards ===== */
.panel { position: relative; background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 880px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; } .nav-links{ gap:2px;} .nav-links a{padding:8px 10px;font-size:.84rem;} .brand{font-size:1.3rem;} }

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(56,189,248,.10), transparent 55%); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.22rem; color: var(--txt-dim); max-width: 600px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.status-strip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 12px var(--grass); animation: pulse 1.8s infinite; }
.live-dot.off { background: #5b7790; box-shadow: none; animation: none; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===== Shop item card ===== */
.item-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .14s, box-shadow .14s; }
.item-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.item-card .thumb { height: 132px; border-radius: 16px; margin-bottom: 16px; display:flex; align-items:center; justify-content:center;
  font-size: 3.4rem; background: radial-gradient(circle at 50% 25%, rgba(56,189,248,.22), transparent 70%), var(--panel-2);
  border: 1px solid var(--line); }
.item-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.item-card .desc { font-size: .9rem; color: var(--txt-dim); flex: 1; margin-bottom: 14px; white-space: pre-line; }
.deliv-note { display:inline-flex; gap:6px; align-items:center; font-size:.78rem; color: var(--sky);
  background: rgba(56,189,248,.1); border:1px solid rgba(56,189,248,.25); padding:5px 10px; border-radius:999px; margin-bottom:14px; }
.price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price { font-family:'Baloo 2'; font-weight: 800; font-size: 1.2rem; }
.price.coins { color: var(--sun); }
.rarity-tag { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; z-index: 2; }
.r-common    { background:#1b3a52; color:#9fc0db; }
.r-rare      { background:rgba(56,189,248,.2); color:#7dd3fc; }
.r-epic      { background:rgba(167,139,250,.24); color:#c4b5fd; }
.r-legendary { background:linear-gradient(120deg,rgba(251,191,36,.25),rgba(251,113,133,.25)); color:#fcd34d; }
.item-card.r-legendary { border-color: rgba(251,191,36,.45); }
.item-card.r-legendary::after { content:""; position:absolute; inset:0; border-radius:var(--radius); pointer-events:none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  background-size: 200% 100%; animation: shimmer 3.5s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0 } }

/* ===== Section ===== */
.section { position: relative; padding: 64px 0; }
.section h2 { font-size: 2.2rem; margin-bottom: 8px; }
.section .sub { color: var(--txt-dim); margin-bottom: 34px; font-size: 1.05rem; }
.eyebrow { color: var(--grass); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; }

/* feature card with bouncy icon */
.feat { text-align: left; }
.feat .ico { font-size: 2.4rem; margin-bottom: 12px; display:inline-block; }
.feat:hover .ico { animation: bounce .5s; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 30%{transform:translateY(-10px)} 60%{transform:translateY(-4px)} }
.feat h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* steps */
.step { display:flex; gap:14px; align-items:flex-start; }
.step .num { flex:0 0 auto; width:38px; height:38px; border-radius:50%; background:var(--grad-sky); color:#06202f;
  font-family:'Baloo 2'; font-weight:800; display:flex; align-items:center; justify-content:center; }

/* ===== Ranking ===== */
.rank-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; }
.rank-row:nth-child(odd){ background: var(--panel); }
.rank-pos { font-family:'Baloo 2'; font-weight:800; font-size:1.3rem; width: 40px; color: var(--txt-dim); }
.rank-row.top1 .rank-pos,.rank-row.top2 .rank-pos,.rank-row.top3 .rank-pos { font-size:1.5rem; }
.rank-name { font-weight: 700; }
.rank-val { margin-left: auto; font-family:'Baloo 2'; font-weight:800; color: var(--grass); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-grape); display:flex; align-items:center; justify-content:center; font-weight:800; color:#06121d; }

/* ===== Forms ===== */
label { display:block; font-size:.85rem; color: var(--txt-dim); margin: 12px 0 6px; font-weight:600; }
input, textarea, select { width: 100%; padding: 12px 15px; border-radius: 13px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--txt); font-family: inherit; font-size: .95rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sky); box-shadow: var(--ring); }

/* ===== Chips / tiers ===== */
.chip { display:inline-flex; align-items:center; gap:6px; padding:6px 13px; border-radius:999px; font-size:.82rem; font-weight:600;
  background: var(--panel-2); border:1px solid var(--line); }
.tier-badge { font-family:'Baloo 2'; font-weight:800; padding:5px 14px; border-radius:999px; font-size:.82rem; }
.tier-bronze{background:rgba(205,127,50,.2);color:#e0a06a;}
.tier-prata{background:rgba(192,192,210,.2);color:#d2d8ea;}
.tier-ouro{background:rgba(251,191,36,.2);color:#fcd34d;}
.tier-diamante{background:var(--grad-grape);color:#06202f;}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 38px 0; margin-top: 70px; color: var(--txt-dim); font-size:.9rem; }
.footer .container { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; align-items:center; }

/* ===== Toast ===== */
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(140px);
  background: var(--panel-2); border: 1px solid var(--line); padding: 14px 24px; border-radius: 14px;
  box-shadow: var(--shadow); transition: transform .3s; z-index: 200; font-weight: 700; font-family:'Baloo 2'; }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { border-color: var(--sunset); }
#toast.ok { border-color: var(--grass); }
.hidden { display: none !important; }
