/* Desembrulha — conta, login, cota e "Meus presentes" (js/conta.js). */

/* barra da conta no topo do criador */
.account {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end;
  font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 6px;
}
.acc-hi { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.acc-quota {
  background: rgba(255,207,90,.14); color: var(--gold); border: 1px solid rgba(255,207,90,.35);
  padding: 5px 10px; border-radius: 999px;
}
.acc-quota.empty { background: rgba(224,48,63,.18); color: #ffb3bb; border-color: rgba(224,48,63,.45); }
.acc-btn {
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.acc-btn:hover { background: rgba(255,255,255,.16); }
.acc-link { background: none; border: 0; color: var(--muted); font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 6px 2px; }
.foot a { color: inherit; }

.quota-note { margin-top: 6px !important; font-weight: 800; color: var(--red2) !important; }

/* folhas (login / cota) */
.sheet { position: relative; }
.sheet-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: #f1e8da; color: #5d5372; font-size: 15px; font-weight: 900; cursor: pointer;
}
.login-sheet form { display: grid; gap: 10px; }
.login-sheet input { margin-top: 0; text-align: center; }
.login-sheet input.code { font-family: var(--display); font-size: 30px; letter-spacing: 10px; padding: 10px; }
.login-sheet .small { font-size: 14px; margin: 0; }
.login-sheet .link-btn { font-size: 14px; margin-top: 2px; }
.btn.google { width: 100%; background: #fff; color: #1d1534; box-shadow: 0 0 0 2px var(--line), 0 5px 0 #d6c7ae; }
.btn.google .g {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font-weight: 900; font-size: 15px;
}
.or { display: flex; align-items: center; gap: 10px; color: #9a90ab; font-size: 13px; font-weight: 800; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.err { color: var(--red) !important; font-weight: 800; font-size: 14px !important; min-height: 1em; margin: 10px 0 0 !important; }
.legal-note { font-size: 12px !important; color: #9a90ab !important; margin: 8px 0 0 !important; }
.legal-note a { color: inherit; }
.turnstile { display: flex; justify-content: center; margin: 4px 0; }
#createTurnstile { margin-top: 16px; }
.done { font-weight: 800; color: var(--green) !important; }
#quota .btn { width: 100%; margin-top: 8px; }

/* meus presentes */
.mine { padding: 22px 22px 18px; }
.mine h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.mine .hint { margin: 0 0 14px; }
.gift-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gift-item { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; }
.gift-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gift-to { font-family: var(--display); font-weight: 600; font-size: 18px; }
.gift-when { font-size: 12px; color: #9a90ab; white-space: nowrap; }
.gift-status { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: #f1e8da; color: #5d5372; }
.gift-status.s-opened, .gift-status.s-playing { background: #fff3d6; color: #8a5a00; }
.gift-status.s-won, .gift-status.s-unwrapped, .gift-status.s-told { background: #dcf5e4; color: #12693a; }
.gift-facts { font-size: 13px; color: #776d8c; margin-top: 6px; }
.gift-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gift-acts .chip { text-decoration: none; }
.chip.danger { color: var(--red2); }
.mine-empty { color: #776d8c; margin: 6px 0; }
.mine-foot { margin: 16px 0 0; font-size: 13px; color: #9a90ab; text-align: center; }
.mine-foot a, .mine-foot .link-btn { color: #776d8c; font-size: 13px; font-weight: 800; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center;
}

/* ---------- prod: denúncia do presente (js/denuncia.js) e presente ocultado em "Meus presentes" ---------- */
.report-link { display: block; margin: 14px auto 0; font-size: 13px; font-weight: 700; color: #9a90ab; background: none; border: 0; cursor: pointer; text-decoration: underline; }
.report-link:hover { color: var(--red2); }
.report-link[hidden] { display: none; }
.report-sheet { text-align: left; }
.report-sheet h2, .report-sheet > p { text-align: center; }
.report-reasons { border: 0; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.report-reasons legend { grid-column: 1 / -1; }
#reportReasons { display: contents; }
@media (max-width: 380px) { .report-reasons { grid-template-columns: 1fr; } }
.report-reasons legend { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.report-reason { display: flex; align-items: center; gap: 10px; padding: 6px 10px; text-transform: none; letter-spacing: normal; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; margin: 6px 0; cursor: pointer; font-weight: 700; font-size: 15px; }
.report-reason:has(input:checked) { border-color: var(--red); background: #fff2ee; }
.report-reason input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.report-sheet textarea { width: 100%; margin-top: 4px; }
.report-sheet .btn { width: 100%; margin-top: 12px; }
.gift-hidden { font-size: 13px; font-weight: 800; color: var(--red2); background: #fff0f0; border-radius: 10px; padding: 6px 10px; margin: 6px 0; }
/* ---------- /prod ---------- */

/* ---------- acesso grátis: aviso único "🎁 Você ganhou…" (js/conta.js) ---------- */
.gratis-banner {
  position: fixed; z-index: 95; left: 50%; top: calc(72px + env(safe-area-inset-top)); transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px;
  border-radius: 20px; color: #fff; text-align: left;
  background: linear-gradient(135deg, #2a1d5c, #4a2a7a 55%, #7a2d5c);
  border: 1px solid rgba(255,207,90,.45); box-shadow: 0 18px 50px -12px rgba(0,0,0,.6), 0 0 0 4px rgba(255,207,90,.12);
  animation: gratisIn .45s cubic-bezier(.2,.9,.3,1.25);
}
.gratis-banner.out { opacity: 0; transform: translate(-50%, -12px); transition: opacity .25s, transform .25s; }
.gratis-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 28px; border-radius: 14px; background: rgba(255,207,90,.18); animation: gratisWiggle 1.2s ease-in-out .4s 2; }
.gratis-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gratis-txt b { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--gold, #ffcf5a); }
.gratis-txt small { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.35; }
.gratis-ok {
  flex: none; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-weight: 900; font-size: 14px;
  background: var(--gold, #ffcf5a); color: #2a1d5c; min-height: 44px;
}
.gratis-ok:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes gratisIn { from { opacity: 0; transform: translate(-50%, -18px) scale(.96); } }
@keyframes gratisWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .gratis-banner, .gratis-ico { animation: none; } }
/* ---------- painel: menu da conta (Meu painel, Meus presentes, Comprar créditos, Sair) ---------- */
.account .acc-quota { text-decoration: none; }
.acc-menu-wrap { position: relative; }
.acc-me {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 12px 3px 3px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: 13px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .15s;
}
.acc-me:hover, .acc-me[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.acc-me:focus-visible { outline: none; box-shadow: var(--ring-dark); }
.acc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display); color: #1d1200; background: linear-gradient(160deg, #ffe39a, #ffb238); }
.acc-caret { font-size: 11px; opacity: .7; }
.acc-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 236px; padding: 6px; border-radius: 16px;
  background: rgba(16,19,56,.97); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px -12px rgba(0,0,0,.65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: left;
}
.acc-menu-h { display: grid; gap: 3px; padding: 10px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.acc-menu-h b { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.acc-menu-h small { color: var(--muted); font-size: 12px; font-weight: 700; }
.acc-mi {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 11px; border: 0; background: none;
  color: #e9ecff; font: 800 14px/1.2 var(--body); text-decoration: none; cursor: pointer; text-align: left;
}
.acc-mi:hover, .acc-mi:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.acc-mi[aria-current="page"] { color: var(--gold); }
.acc-mi-ic { width: 20px; text-align: center; }
.acc-out { color: #ffb3bb; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 11px 11px; margin-top: 4px; }
@media (max-width: 899px) { .acc-me-l { display: none; } .acc-me { padding-right: 10px; } }
