/* =========================================================
   Flappy Tour — Identidade "Passaporte de Carimbos"
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Work+Sans:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root{
  --navy:        #1E2A45;
  --navy-deep:   #141d31;
  --paper:       #F4F0E6;
  --gold:        #C9963E;
  --coral:       #E8734A;
  --sky:         #6FA8C7;
  --ink:         #2A2620;
  --line:        rgba(244,240,230,0.18);
  --radius:      18px;
  --shadow:      0 12px 30px rgba(0,0,0,0.28);
  --font-display:'Baloo 2', system-ui, sans-serif;
  --font-body:   'Work Sans', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:var(--navy);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(201,150,62,0.10), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(111,168,199,0.12), transparent 45%);
  color:var(--paper);
  font-family:var(--font-body);
  min-height:100vh;
}

h1,h2,h3,.display{ font-family:var(--font-display); font-weight:800; margin:0; }
.mono{ font-family:var(--font-mono); }

a{ color:inherit; }

/* ---------- Topbar ---------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 28px;
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:20px; }
.brand .stamp-dot{
  width:34px; height:34px; border-radius:50%;
  background:var(--coral); display:flex; align-items:center; justify-content:center;
  font-size:18px; transform:rotate(-8deg);
  box-shadow:0 0 0 2px var(--paper) inset;
}
.topnav{ display:flex; align-items:center; gap:14px; }
.btn{
  font-family:var(--font-display); font-weight:700; font-size:15px;
  padding:10px 20px; border-radius:999px; border:none; cursor:pointer;
  text-decoration:none; display:inline-block; transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--coral); color:#fff; box-shadow:0 8px 18px rgba(232,115,74,0.35); }
.btn-ghost{ background:transparent; color:var(--paper); border:1px solid var(--line); }
.btn-gold{ background:var(--gold); color:var(--navy-deep); }
.btn-block{ display:block; width:100%; text-align:center; }
.btn-sm{ padding:6px 14px; font-size:13px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Hero ---------- */
.hero{ max-width:920px; margin:0 auto; padding:56px 24px 20px; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--gold); color:var(--gold);
  border-radius:999px; padding:6px 16px; font-size:13px; font-weight:600;
  font-family:var(--font-mono); margin-bottom:22px;
}
.eyebrow .pulse{ width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 0 rgba(201,150,62,.6); animation:pulse 1.8s infinite; }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(201,150,62,.55);} 70%{box-shadow:0 0 0 10px rgba(201,150,62,0);} 100%{box-shadow:0 0 0 0 rgba(201,150,62,0);} }

.hero h1{ font-size:44px; line-height:1.12; }
.hero h1 .accent{ color:var(--coral); }
.hero p.lead{ color:rgba(244,240,230,0.75); font-size:17px; max-width:560px; margin:16px auto 0; }

/* ---------- Passport strip (country picker) ---------- */
.passport-strip{
  max-width:920px; margin:40px auto 0; padding:0 24px;
  text-align:center;
}
.passport-label{ font-family:var(--font-mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); margin-bottom:16px; }

.stamp-picker{ display:flex; align-items:center; justify-content:center; gap:18px; }
.stamp-arrow{
  background:transparent; border:1px solid var(--line); color:var(--paper);
  width:42px; height:42px; border-radius:50%; cursor:pointer; font-size:18px;
}
.stamp-arrow:hover{ border-color:var(--gold); color:var(--gold); }

.stamp-circle{
  width:190px; height:190px; border-radius:50%;
  border:4px solid var(--gold); position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow);
  transform:rotate(-3deg);
}
.stamp-circle .bg{ position:absolute; inset:0; }
.stamp-circle .bird{ font-size:64px; position:relative; filter:drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.stamp-circle::after{
  content:""; position:absolute; inset:8px; border-radius:50%;
  border:2px dashed rgba(20,29,49,0.35);
}
.country-name{ margin-top:14px; font-family:var(--font-display); font-weight:700; font-size:20px; }
.country-name .flag-code{ color:var(--gold); font-family:var(--font-mono); font-size:13px; margin-right:8px; }

/* ---------- CTAs ---------- */
.cta-stack{ max-width:340px; margin:34px auto 0; display:flex; flex-direction:column; gap:12px; }
.cta-stack .btn{ font-size:17px; padding:16px 20px; }
.fine-links{ margin-top:14px; font-size:14px; }
.fine-links a{ text-decoration:underline; color:var(--sky); }

/* ---------- Trust badges ---------- */
.badges{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:26px; }
.badge{
  font-size:12.5px; border:1px solid var(--line); border-radius:999px; padding:6px 14px;
  color:rgba(244,240,230,0.8); font-family:var(--font-mono);
}

/* ---------- Stats strip ---------- */
.stats{
  display:flex; justify-content:center; gap:60px; flex-wrap:wrap;
  max-width:960px; margin:60px auto 0; padding:30px 24px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.stat b{ display:block; font-family:var(--font-display); font-size:28px; color:var(--gold); }
.stat span{ font-size:13px; color:rgba(244,240,230,0.65); }

/* ---------- Section: how it works ---------- */
.section{ max-width:960px; margin:0 auto; padding:70px 24px; }
.section h2{ font-size:30px; text-align:center; }
.section h2 .accent{ color:var(--coral); }
.section p.subhead{ text-align:center; color:rgba(244,240,230,0.65); margin-top:10px; }

.ticket-row{ display:flex; gap:20px; margin-top:36px; flex-wrap:wrap; }
.ticket{
  flex:1; min-width:230px; background:rgba(244,240,230,0.05);
  border:1px solid var(--line); border-radius:var(--radius); padding:24px;
  position:relative;
}
.ticket::before{
  content:""; position:absolute; top:50%; left:-9px; width:18px; height:18px;
  background:var(--navy); border-radius:50%; transform:translateY(-50%);
}
.ticket::after{
  content:""; position:absolute; top:50%; right:-9px; width:18px; height:18px;
  background:var(--navy); border-radius:50%; transform:translateY(-50%);
}
.ticket .step-icon{ font-size:26px; }
.ticket h3{ font-size:18px; margin-top:10px; }
.ticket p{ color:rgba(244,240,230,0.7); font-size:14.5px; margin-top:8px; line-height:1.5; }

/* ---------- Coin note ---------- */
.coin-note{
  max-width:700px; margin:30px auto 0; text-align:center;
  font-size:13.5px; color:rgba(244,240,230,0.55); font-family:var(--font-mono);
  border:1px dashed var(--line); border-radius:12px; padding:14px 18px;
}

/* ---------- Auth pages ---------- */
.auth-wrap{ max-width:420px; margin:60px auto; padding:0 20px; }
.card{
  background:rgba(244,240,230,0.06); border:1px solid var(--line);
  border-radius:var(--radius); padding:32px; box-shadow:var(--shadow);
}
.card h2{ font-size:24px; }
.card p.hint{ color:rgba(244,240,230,0.65); font-size:14px; margin-top:8px; }
.field{ margin-top:18px; }
.field label{ display:block; font-size:13px; color:var(--gold); font-family:var(--font-mono); margin-bottom:6px; }
.field input, .field select{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--line);
  background:rgba(20,29,49,0.5); color:var(--paper); font-family:var(--font-body); font-size:15px;
}
.field input:focus, .field select:focus{ outline:none; border-color:var(--gold); }
.card .btn{ margin-top:24px; }
.switch-link{ text-align:center; margin-top:18px; font-size:14px; color:rgba(244,240,230,0.7); }
.alert{ background:rgba(232,115,74,0.15); border:1px solid var(--coral); color:#fff; border-radius:10px; padding:12px 16px; font-size:14px; margin-top:16px; }
.alert-success{ background:rgba(46,158,78,0.15); border-color:#2E9E4E; }

/* ---------- Game screen ---------- */
.game-shell{ max-width:480px; margin:0 auto; padding:16px; }
.game-hud{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; font-family:var(--font-mono); }
.hud-block{ text-align:center; }
.hud-block b{ display:block; font-size:20px; }
.hud-block span{ font-size:11px; color:rgba(244,240,230,0.6); text-transform:uppercase; }
#gameCanvas{ width:100%; border-radius:14px; box-shadow:var(--shadow); display:block; touch-action:manipulation; }
.game-footer{ display:flex; justify-content:space-between; margin-top:12px; align-items:center; }

/* ---------- Wallet / leaderboard ---------- */
.table-wrap{ overflow-x:auto; margin-top:20px; }
table{ width:100%; border-collapse:collapse; font-size:14px; }
th,td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); }
th{ color:var(--gold); font-family:var(--font-mono); font-size:12px; text-transform:uppercase; }
.rank-1{ color:var(--gold); font-weight:700; }

/* ---------- Footer ---------- */
footer{ text-align:center; padding:40px 24px; color:rgba(244,240,230,0.45); font-size:13px; }

/* ---------- Admin ---------- */
.admin-shell{ display:flex; min-height:100vh; }
.admin-sidebar{ width:220px; background:var(--navy-deep); border-right:1px solid var(--line); padding:24px 16px; }
.admin-sidebar a{ display:block; padding:10px 12px; border-radius:8px; text-decoration:none; color:rgba(244,240,230,0.75); font-size:14px; margin-bottom:4px; }
.admin-sidebar a.active, .admin-sidebar a:hover{ background:rgba(201,150,62,0.15); color:var(--gold); }
.admin-main{ flex:1; padding:32px; }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.stat-cards{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:28px; }
.stat-card{ flex:1; min-width:160px; background:rgba(244,240,230,0.05); border:1px solid var(--line); border-radius:14px; padding:18px; }
.stat-card b{ display:block; font-size:26px; font-family:var(--font-display); color:var(--gold); }
.stat-card span{ font-size:12.5px; color:rgba(244,240,230,0.6); }
.search-box input{ padding:10px 14px; border-radius:8px; border:1px solid var(--line); background:rgba(20,29,49,0.5); color:var(--paper); width:260px; }
.pill{ font-size:11px; padding:3px 10px; border-radius:999px; font-family:var(--font-mono); }
.pill-active{ background:rgba(46,158,78,0.2); color:#5FD888; }
.pill-blocked{ background:rgba(232,115,74,0.2); color:var(--coral); }

@media (max-width: 640px){
  .hero h1{ font-size:32px; }
  .stamp-circle{ width:150px; height:150px; }
  .admin-sidebar{ display:none; }
  .stats{ gap:30px; }
}
