/* ===== Reset básico ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:root{
  --bg: #f7f7f8;
  --text: #0f172a;
  --muted: #9aa3af;
  --white: #ffffff;

  --brand-red: #ea4335;   /* YouTube vermelho (para logo se quiser usar) */
  --green-50: #ecfdf5;
  --green-300: #86efac;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;

  --gray-50: #f8fafc;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-900: #0f172a;

  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== Layout da página ===== */
body { background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 50px; height: 35px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand__title { font-weight: 800; font-size: 18px; color: var(--gray-900); }
.brand__subtitle { font-weight: 700; font-size: 12px; color: var(--gray-400); letter-spacing: 0.04em; }

.balance {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px dashed var(--green-300);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.balance__label {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10px;
  color: var(--gray-900);
  text-align: right;
  line-height: 1.1;
}
.balance__value {
  font-weight: 700;
  font-size: 22px;
  color: var(--green-600);
  line-height: 1;
}

/* ===== Card principal ===== */
.card {
  background: linear-gradient(to top, var(--gray-50), rgba(229,231,235,0.5));
  border: 1px solid var(--gray-300);
  border-top-width: 1px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card__inner { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.card__title { font-size: 22px; font-weight: 700; }
.card__desc { color: #1f2937; }

/* Aviso verde tracejado */
.notice {
  background: var(--green-50);
  border: 2px dashed #10b981;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.notice__text { font-weight: 800; text-transform: uppercase; }

.card__footer { display: flex; flex-direction: column; gap: 8px; }

/* ===== CTA ===== */
.cta { margin-top: 4px; }
.btn {
  width: 100%;
  border-radius: 14px;
  padding: 18px 20px;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 0 var(--green-700), var(--shadow-lg);
  transition: transform .05s ease, filter .15s ease, background .15s ease;
}
.btn--primary {
  background: var(--green-600);
  color: #fff;
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 7px 0 var(--green-700), var(--shadow-lg); }

/* ===== Footer ===== */
.footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(107,114,128,0.8);
  text-align: center;
  font-size: 14px;
}
.footer__links { font-size: 10px; }
.footer a { color: inherit; text-decoration: underline; }

/* ===== Responsivo ===== */
@media (min-width: 480px) {
  .card { padding: 32px; }
  .card__title { font-size: 24px; }
  .balance__value { font-size: 24px; }
}
/* ===== Thumb card (etapas do quiz) ===== */
.quiz { display: flex; flex-direction: column; gap: 18px; }

.thumbcard{
  background: #f1f5f9;
  border: 1px solid var(--gray-300);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.thumbcard__img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}
.thumbcard__meta{ padding: 10px 6px 2px; }
.thumbcard__title{
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.thumbcard__sub{
  color: #6b7280;
  font-size: 14px;
}

/* Pergunta e reações */
.quiz__question { text-align: center; margin-top: 6px; }
.quiz__title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.quiz__hint { color: #6b7280; font-size: 14px; }

.reactions{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 6px;
}
.react{
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 0;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .06s ease, filter .15s ease, border-color .15s ease;
}
.react:hover{ filter: brightness(0.98); }
.react:active{ transform: translateY(1px); }
.react--good{ border-color: #86efac; }
.react--neutral{ border-color: #facc15; }
.react--bad{ border-color: #fda4af; }

/* Final */
.final .pill{
  background: #ecfdf5;
  color: #065f46;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin: 10px 0 6px;
}
.btn--withdraw{
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 0 #15803d, var(--shadow-lg);
}
.btn--withdraw:hover{ filter: brightness(1.05); }
.btn--withdraw:active{ transform: translateY(1px); box-shadow: 0 7px 0 #15803d, var(--shadow-lg); }
/* ===== Attention line ===== */
.attention{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:14px; color:#111827;
}
.attention__emoji{ font-size:18px; }
.attention__icon{ margin-left:auto; opacity:.7; }

/* ===== Blue Player Card ===== */
.playercard{
  background:#f3f4f6; border:1px solid var(--gray-300);
  border-radius:22px; padding:14px; box-shadow:var(--shadow-sm);
  margin-top:12px;
}
.playercard__media{
  background:#1d9bf0; /* azul vivo do mock */
  border-radius:18px; min-height:260px; display:flex;
  align-items:center; justify-content:center; color:#fff;
  box-shadow:var(--shadow-sm);
}
.playercard__placeholder{
  text-align:center; padding:30px 16px;
}
.playercard__placeholder p{
  font-weight:700; margin-bottom:14px; font-size:18px;
}
.playercard__cta{
  display:inline-block; background:#fff; color:#111;
  padding:10px 14px; border-radius:999px; margin:4px 6px; font-weight:600;
  box-shadow:0 2px 0 rgba(0,0,0,.15);
}
.playercard__cta.alt{ background:rgba(255,255,255,.9); }
.playercard__sound{
  text-align:center; color:#6b7280; font-size:12px; margin-top:10px;
}

/* ===== FB Plugin head ===== */
.fb-head{
  display:flex; justify-content:space-between; align-items:center;
  margin:10px 4px 6px; color:#6b7280; font-size:14px;
}
.fb-head__title{ font-weight:600; }
.fb-head__count{ opacity:.9; }

/* ===== Comments ===== */
.fb-comments{ display:flex; flex-direction:column; gap:14px; }

.fbc{
  display:grid; grid-template-columns:40px 1fr; gap:10px;
  background:#fff; border:1px solid #e5e7eb; border-radius:14px;
  padding:10px 12px; box-shadow:var(--shadow-sm);
}
.fbc.reply{ margin-left:44px; }

.fb-avatar{
  width:40px; height:40px; border-radius:50%;
  background:#e5e7eb; display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#4b5563;
}
.fb-avatar::after{ content:attr(data-initial); }

.fb-body{ display:flex; flex-direction:column; gap:4px; }
.fb-name{ font-weight:700; color:#111827; }
.fb-text{ color:#111827; line-height:1.35; }
.fb-actions{ color:#6b7280; font-size:12px; }
.fb-actions a{ color:inherit; text-decoration:none; font-weight:600; }
.fb-actions a:hover{ text-decoration:underline; }

/* Responsivo mínimo */
@media (min-width: 520px){
  .playercard__media{ min-height:320px; }
}
