/* =========================================================
   BORLEME · Figurinha da Copa 2026
   Para mudar as cores da marca, edite apenas as variáveis abaixo.
   ========================================================= */
:root{
  --brand:        #0B2A4A;   /* azul BORLEME (principal) */
  --brand-2:      #123C66;   /* azul mais claro */
  --gold:         #F4C24B;   /* dourado / foil */
  --gold-deep:    #C9962A;
  --green:        #1FA85A;   /* verde campo (acento) */
  --green-ok:     #1FA85A;
  --ink:          #0A1626;
  --paper:        #FFFFFF;
  --muted:        #6B7A90;
  --line:         #E3E8F0;
  --danger:       #D64545;
  --radius:       18px;
  --shadow:       0 14px 40px rgba(8,22,40,.18);
  --font:         'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:      'Anton', 'Inter', sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--brand);
  -webkit-font-smoothing:antialiased;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow-x:hidden;
}

/* Fundo: gradiente + linhas de campo */
.bg-field{
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--brand-2), var(--brand) 60%),
    var(--brand);
}
.bg-field::after{
  content:""; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(transparent 0 78px, rgba(255,255,255,.04) 78px 80px);
  mask-image:linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* Topbar / marca */
.topbar{
  display:flex; align-items:center; justify-content:center;
  padding:18px 16px 6px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-img{ height:38px; width:auto; }
.brand-word{
  font-family:var(--display); letter-spacing:1px;
  font-size:30px; color:#fff; line-height:1;
}
.brand-tag{
  font-size:11px; font-weight:800; letter-spacing:2px;
  color:var(--brand); background:var(--gold);
  padding:4px 8px; border-radius:999px;
}

/* Layout */
.wrap{
  width:100%; max-width:520px; margin:0 auto;
  padding:14px 16px 28px; flex:1;
}
.card{
  background:var(--paper); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px;
}

/* Telas (mostra uma de cada vez) */
.screen{ display:none; animation:fade .35s ease; }
.screen.is-active{ display:block; }
@keyframes fade{ from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }

/* Hero */
.hero{ text-align:center; margin-bottom:18px; }
.badge{
  display:inline-block; font-size:11px; font-weight:800; letter-spacing:1px;
  color:var(--gold-deep); background:rgba(244,194,75,.16);
  border:1px solid rgba(244,194,75,.4);
  padding:5px 10px; border-radius:999px; margin-bottom:10px;
}
.badge.ok{ color:var(--green-ok); background:rgba(31,168,90,.12); border-color:rgba(31,168,90,.35); }
.hero h1{ font-size:25px; line-height:1.15; font-weight:800; letter-spacing:-.5px; }
.hero .hl{ color:var(--gold-deep); }
.hero .sub{ color:var(--muted); margin-top:8px; font-size:14.5px; }

/* Form */
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1 / -1; } /* campos de largura total (nome, empresa) */
label{ font-size:12.5px; font-weight:600; color:#33445c; }
input, select{
  font-family:var(--font); font-size:15px; color:var(--ink);
  padding:12px 13px; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; width:100%; transition:border-color .15s, box-shadow .15s;
}
input:focus, select:focus{
  outline:none; border-color:var(--brand-2);
  box-shadow:0 0 0 3px rgba(18,60,102,.12);
}
input.invalid, select.invalid{ border-color:var(--danger); box-shadow:0 0 0 3px rgba(214,69,69,.12); }

.consent{
  display:flex; gap:10px; align-items:flex-start;
  margin:16px 0 4px; font-size:12.5px; color:#41506a; cursor:pointer;
}
.consent input{ width:18px; height:18px; margin-top:1px; accent-color:var(--brand); flex:0 0 auto; }

/* Botões */
.btn{
  -webkit-appearance:none; appearance:none; border:none; cursor:pointer;
  font-family:var(--font); font-weight:700; font-size:15.5px;
  padding:14px 16px; border-radius:13px; width:100%;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  transition:transform .08s ease, filter .15s, background .15s; text-decoration:none;
}
.btn:active{ transform:translateY(1px) scale(.997); }
.btn-primary{
  color:var(--brand);
  background:linear-gradient(180deg, var(--gold), var(--gold-deep));
  box-shadow:0 8px 22px rgba(201,150,42,.4);
  margin-top:18px;
}
.btn-primary:hover{ filter:brightness(1.03); }
.btn-primary:disabled{ filter:grayscale(.6) brightness(.95); opacity:.7; cursor:not-allowed; box-shadow:none; }
.btn-ghost{
  background:#F2F5FA; color:var(--brand); border:1.5px solid var(--line);
  width:auto; flex:1; font-size:14px; padding:11px 12px;
}
.btn-ghost:hover{ background:#E9EEF6; }

.form-error{ color:var(--danger); font-size:13px; margin-top:10px; min-height:18px; text-align:center; }

.back{
  background:none; border:none; color:var(--muted); cursor:pointer;
  font-family:var(--font); font-size:13px; margin-bottom:6px;
}

/* Foto */
.photo-zone{
  position:relative; width:100%; aspect-ratio:1/1; border-radius:16px; overflow:hidden;
  background:#0d1b2e; border:2px dashed rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; margin:6px 0 12px;
}
.photo-zone video, .photo-zone img{ width:100%; height:100%; object-fit:cover; }
.photo-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px; color:#9fb2cc; font-size:14px;
}
.cam-ico{ font-size:42px; }
.photo-actions{ display:flex; flex-wrap:wrap; gap:8px; }

/* Stage do cromo */
.sticker-stage{
  position:relative; display:flex; justify-content:center;
  margin:6px 0 14px; min-height:200px;
}
#stickerCanvas{ width:100%; max-width:360px; height:auto; border-radius:14px; box-shadow:var(--shadow); }
.loader{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:14px; color:var(--brand);
  background:rgba(255,255,255,.7); border-radius:14px; z-index:2;
}
.spinner{
  width:46px; height:46px; border-radius:50%;
  border:5px solid rgba(11,42,74,.15); border-top-color:var(--gold-deep);
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.result-actions{ display:flex; flex-direction:column; gap:10px; }
.result-actions .btn-ghost{ width:100%; }

/* Footer */
.footer{
  display:flex; align-items:center; justify-content:center; gap:10px;
  color:rgba(255,255,255,.6); font-size:12px; padding:14px;
}
.gear{
  background:none; border:none; color:rgba(255,255,255,.35);
  cursor:pointer; font-size:15px; line-height:1;
}
.gear:hover{ color:rgba(255,255,255,.8); }

/* Modal admin */
.modal{
  position:fixed; inset:0; background:rgba(6,16,30,.6);
  display:flex; align-items:center; justify-content:center; padding:20px; z-index:50;
}
.modal-box{ background:#fff; border-radius:16px; padding:22px; max-width:380px; width:100%; }
.modal-box h3{ font-size:18px; margin-bottom:6px; }
.modal-actions{ display:flex; flex-direction:column; gap:9px; margin:14px 0 8px; }
.modal-actions .btn{ width:100%; }
.muted{ color:var(--muted); font-size:13px; }
.muted.small{ font-size:11.5px; margin-top:6px; }

@media (max-width:380px){
  .hero h1{ font-size:22px; }
  .grid{ gap:10px; }
}
