/* Mavilla Studios — extensões do tema (carregado depois de mavilla.css) */

.wrap.wide { max-width: 760px; }
.col { display: flex; flex-direction: column; gap: 16px; }
body.modal-open { overflow: hidden; }

/* Moldura dourada que se ajusta ao formato da imagem */
.moldura { --r: 24px; --b: 4px; display: inline-block; padding: var(--b); border-radius: var(--r); line-height: 0; margin-bottom: 12px;
    background: linear-gradient(155deg, #ffe39a, #8a6416 45%, #a24dff);
    box-shadow: 0 0 28px rgba(162,77,255,.4), 0 8px 20px rgba(0,0,0,.6); transition: transform .35s ease, box-shadow .35s ease; }
.moldura img { display: block; width: auto; height: auto; max-width: 150px; max-height: 150px; border-radius: calc(var(--r) - var(--b)); background: #12091f; }
.moldura.redonda { --r: 50%; }
.moldura.redonda img { width: 120px; height: 120px; object-fit: cover; }
.moldura.logo-m { box-shadow: 0 0 44px rgba(162,77,255,.5), 0 14px 30px rgba(0,0,0,.7); animation: float 5s ease-in-out infinite; }
.moldura.logo-m img { max-width: min(60vw, 220px); max-height: 220px; }
.moldura.logo-m.redonda img { width: min(56vw, 210px); height: min(56vw, 210px); }
.jogo .moldura { display: block; width: 100%; }
.jogo .moldura img { width: 100%; height: auto; max-width: none; max-height: none; }
.jogo .moldura.redonda { width: min(100%, 300px); margin-left: auto; margin-right: auto; }
.jogo .moldura.redonda img { width: 100%; height: auto; aspect-ratio: 1; }
.card-game .moldura:hover { transform: scale(1.015); box-shadow: 0 0 40px rgba(224,179,65,.45), 0 10px 24px rgba(0,0,0,.65); }

.texto, .texto p, .jogo .texto, .fechamento p { text-align: center; hyphens: manual; -webkit-hyphens: manual; }
.texto p { text-wrap: pretty; }
.texto h2, .jogo h3, .jogos-titulo h2 { text-wrap: balance; }

/* Modal */
.modal { overflow-y: auto; align-items: flex-start; }
.modal .panel { margin: auto; }
.modal.open .panel { animation: pop .28s cubic-bezier(.2,.9,.3,1.2); }
.modal .modal-login { position: relative; max-width: 460px; }
.fechar { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(224,179,65,.5); background: rgba(0,0,0,.4); color: #ffe39a; font-size: 17px; cursor: pointer; transition: transform .2s, filter .2s; }
.fechar:hover { filter: brightness(1.3); transform: rotate(90deg); }

/* Formulários */
.input-wrap > .eye-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.input-wrap > .eye-btn i.eye { position: static; transform: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 14px; flex-wrap: wrap; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--text, #e4d9fb); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: #c99522; }
.check a { color: var(--violet-hi, #c99bff); }
.consents { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(185,171,217,.18); }
.form-msg { min-height: 0; margin: 0 0 12px; font-size: 13px; line-height: 1.4; text-align: center; color: #ffb3c4; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #7cf0bd; }
.field.err input { border-color: rgba(255,115,145,.8) !important; animation: shake .35s; }
.ts-slot { display: flex; justify-content: center; margin: 4px 0 12px; min-height: 65px; }

/* Google / divisor */
.ou { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.ou::before, .ou::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(224,179,65,.4), transparent); }
.g-slot { display: flex; justify-content: center; min-height: 44px; margin-bottom: 4px; color-scheme: light; }

/* Medidor de senha */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: -2px 0 4px; }
.meter i { height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .25s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: #ff7391; }
.meter[data-level="2"] i:nth-child(-n+2) { background: #ffb347; }
.meter[data-level="3"] i:nth-child(-n+3) { background: #e0d84a; }
.meter[data-level="4"] i { background: #4be3a0; }
.meter-txt { min-height: 18px; margin-bottom: 8px; font-size: 12px; }

/* Dados do perfil */
.dados { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.dados > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgba(185,171,217,.12); font-size: 14px; flex-wrap: wrap; }
.dados dt { color: var(--muted); }
.dados dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vazio { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 0; }
.final { font-family: var(--serif); color: var(--gold-hi); font-size: 17px; line-height: 1.4; }

/* Toasts */
.toasts { position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; padding: 13px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4; color: #fff;
    background: rgba(20,10,40,.96); border: 1px solid rgba(224,179,65,.55); box-shadow: 0 10px 30px rgba(0,0,0,.6); animation: toastIn .3s ease both; }
.toast.err { border-color: rgba(255,115,145,.7); }
.toast.ok { border-color: rgba(75,227,160,.7); }
.toast.out { animation: toastOut .25s ease both; }

/* Animações (vivo) */
.reveal { animation: fadeUp .65s cubic-bezier(.2,.8,.2,1) both; }
.col > .reveal:nth-child(1), .hero.reveal { animation-delay: .02s; }
.col > .reveal:nth-child(2) { animation-delay: .1s; }
.col > .reveal:nth-child(3) { animation-delay: .18s; }
.col > .reveal:nth-child(4) { animation-delay: .26s; }
.col > .reveal:nth-child(5) { animation-delay: .34s; }
.col > .reveal:nth-child(n+6) { animation-delay: .4s; }
.panel { transition: border-color .3s, box-shadow .3s, transform .3s; }
.card-game:hover { border-color: rgba(224,179,65,.6); box-shadow: 0 0 34px rgba(162,77,255,.28); }
.btn { transition: filter .2s, transform .15s, box-shadow .25s; }
.btn:hover { box-shadow: 0 0 22px rgba(224,179,65,.28); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::before { content: ""; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.chip.on i { animation: pulse 2.2s ease-in-out infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
    .reveal, .moldura.logo-m, .btn-shine::after, .chip.on i, .modal.open .panel { animation: none !important; }
}

/* Admin */
.acoes { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
.acoes select { min-height: 40px; border-radius: 10px; border: 1px solid rgba(224,179,65,.45); background: rgba(255,255,255,.05); color: #fff; padding: 0 8px; font: inherit; font-size: 13px; }
.acoes select option { color: #111; }
@media (max-width: 420px) { .acoes { grid-template-columns: 1fr 1fr; } }
