* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #258be7;
    --green: #62b83f;
    --yellow: #ffd64d;
    --purple: #9471df;
    --ink: #18243d;
    --muted: #687386;
    --line: #dce5ef;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #edf4fa;
    color: var(--ink);
}

button {
    font: inherit;
    border: 0;
    cursor: pointer;
}

.app {
    width: 100%;
    min-height: 100vh;
    margin: auto;
    background: #fff;
    padding-bottom: 92px;
}

.topbar {
    height: 70px;
    border-bottom: 1px solid #e9eef4;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    padding: 0 28px;
    gap: 14px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.97);
    z-index: 10;
}

.menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 20px;
}

.brand {
    font-weight: 800;
    font-size: 22px;
}

.brand span {
    color: var(--blue);
}

.coins {
    background: #fff9dd;
    border: 1px solid #f2d069;
    border-radius: 20px;
    padding: 8px 14px;
}

.screen {
    display: none;
    padding: 30px 40px;
    animation: show .25s ease;
}

.screen.active {
    display: block;
}

@keyframes show {
    from {
        opacity: .2;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tag {
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 900;
    color: #748198;
}

.hero {
    min-height: 245px;
    border-radius: 25px;
    background: linear-gradient(120deg,#dff2ff,#bde2fa);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 55px 10px 42px;
    overflow: hidden;
}

.hero h1 {
    font-size: 34px;
    margin: 8px 0;
}

.hero p {
    font-size: 17px;
    color: #52637a;
}

.hero-character {
    height: 235px;
    max-width: 250px;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
}

.small-btn {
    margin-top: 18px;
    padding: 11px 17px;
    border-radius: 12px;
    background: #fff;
    color: var(--blue);
    font-weight: 800;
}

.activities-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 16px;
}

.activities-title span {
    color: var(--muted);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.activity {
    min-height: 155px;
    border-radius: 20px;
    color: #fff;
    text-align: left;
    padding: 22px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 10px;
    align-items: center;
    box-shadow: 0 8px 18px #274a6a16;
    transition: .2s;
}

.activity:hover {
    transform: translateY(-3px);
}

.activity span {
    font-size: 45px;
    grid-row: span 2;
}

.activity b {
    font-size: 18px;
}

.activity small {
    opacity: .9;
}

.blue {
    background: linear-gradient(145deg,#248ce8,#4b9fe8);
}

.green {
    background: linear-gradient(145deg,#59b63e,#79c95a);
}

.yellow {
    background: linear-gradient(145deg,#ffd84f,#f1bd3c);
    color: #18243d;
}

.purple {
    background: linear-gradient(145deg,#8d6adb,#a383e8);
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}

.quick {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    color: var(--ink);
    box-shadow: 0 6px 18px #29445c0b;
}

.quick span {
    font-size: 30px;
}

.quick div {
    flex: 1;
}

.quick small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.steps span.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.feedback.show {
    display: flex;
}

.next {
    background: var(--green);
    color: #fff;
    font-weight: 900;
    border-radius: 13px;
    padding: 13px 20px;
    box-shadow: 0 6px 15px #62b83f33;
}

.next:not(.hidden) {
    display: block;
    margin: 18px auto;
}

.hidden {
    display: none!important;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-head h1 {
    font-size: 30px;
    margin-top: 5px;
}

.big-star {
    font-size: 45px;
}

.progress-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 10px 30px #31536b10;
}

.progress-row {
    display: grid;
    grid-template-columns: 38px 190px 1fr 55px 30px;
    gap: 10px;
    align-items: center;
    margin: 19px 0;
}

.progress-row>span {
    font-size: 25px;
}

.bar {
    height: 12px;
    background: #e6eaee;
    border-radius: 20px;
    overflow: hidden;
}

.bar i {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: 20px;
}

.progress-row em {
    font-style: normal;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 28px;
}

.stats div {
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 17px;
    text-align: center;
}

.stats small, .stats b {
    display: block;
}

.stats small {
    color: var(--muted);
}

.stats b {
    font-size: 23px;
    margin-top: 5px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.rewards-grid article {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    background: #fff;
}

.rewards-grid span {
    font-size: 55px;
}

.locked {
    background: #f5f6f7!important;
    color: #89919d;
}

.profile-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 25px;
}

.avatar-stage {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    background: linear-gradient(180deg,#eff8ff,#fff);
}

.avatar {
    position: relative;
    width: min(300px, 100%);
    aspect-ratio: 285 / 465;
    margin: auto;
}

.avatar img {
    position: absolute;
    height: auto;
    max-width: none;
}

.avatar #avatarBase { inset: 0; width: 100%; height: 100%; z-index: 1; }
.avatar #avatarBottom { z-index: 2; }
.avatar #avatarShirt { z-index: 3; }
.avatar #avatarShoes { z-index: 4; }
.avatar #avatarHair { z-index: 5; }

.choices { border: 0; padding: 0; min-width: 0; }

.save-avatar {
    margin-top: 12px;
    background: var(--green);
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 800;
}

.customizer {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
}

.customizer h3 {
    margin: 18px 0 9px;
}

.customizer h3:first-child {
    margin-top: 0;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.choices button {
    background: #f5f8fb;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 10px 13px;
}

.choices button.selected {
    border-color: var(--blue);
    background: #eaf5ff;
    color: var(--blue);
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1536px,100%);
    height: 78px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4,1fr);
    z-index: 20;
}

.bottom-nav button {
    background: transparent;
    color: #77818f;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.bottom-nav small {
    font-size: 11px;
    font-weight: 800;
}

.bottom-nav button.active {
    color: var(--blue);
}

@media(max-width:850px) {
    .screen {
        padding: 20px;
    }
    .activity-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-layout .avatar-stage {
        max-width: 500px;
        margin: auto;
        width: 100%;
    }
    .rewards-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:560px) {
    .topbar {
        padding: 0 14px;
    }
    .hero {
        padding: 22px;
        min-height: 210px;
    }
    .hero-character {
        height: 190px;
        width: 120px;
    }
    .hero h1 {
        font-size: 25px;
    }
    .activity-grid, .quick-grid, .stats, .rewards-grid {
        grid-template-columns: 1fr;
    }
    .activity {
        min-height: 125px;
    }
    .progress-row {
        grid-template-columns: 32px 1fr 55px;
    }
    .progress-row .bar {
        grid-column: 2;
    }
    .progress-row em {
        display: none;
    }
    
    
    
    
    
    
    .avatar {
        width: 270px;
        height: 390px;
    }
}
/* ---- TELA DE LOGIN (CARTÃO FLUTUANTE + DEGRADÊ) ---- */
.login-screen {
    position: absolute;
    inset: 0;
    z-index: 100;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px 16px;
    background: linear-gradient(135deg, #7c4ee0 0%, #5b6fe6 45%, #258be7 100%);
}

/* Manchas de luz suaves: dão profundidade ao degradê sem competir com o cartão */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.orb-a { width: 460px; height: 460px; top: -140px; left: -120px; background: #b07bff; opacity: .55; }
.orb-b { width: 420px; height: 420px; bottom: -150px; right: -110px; background: #4fd1c5; opacity: .40; }

.login-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 30px 30px 32px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(30, 20, 90, .35), 0 4px 12px rgba(30, 20, 90, .12);
}

/* Logo apoiada no branco do cartão, sem caixa nem destaque extra */
.login-logo {
    display: block;
    width: 210px;
    max-width: 70%;
    height: auto;
    margin: 0 auto 18px;
}

.login-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-header h1 {
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.login-header p {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 4px;
}

.input-group {
    margin-bottom: 16px;
    border: none;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: .85rem;
}

.input-group input {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #e1e7ef;
    border-radius: 12px;
    font-size: .95rem;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.input-group input:focus {
    border-color: #7c4ee0;
    box-shadow: 0 0 0 4px rgba(124, 78, 224, .18);
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 12px;
}

.login-btn:focus-visible {
    outline: 3px solid #7c4ee0;
    outline-offset: 2px;
}

.error-msg {
    color: #d93a2b;
    text-align: center;
    margin-top: 14px;
    font-size: .85rem;
    font-weight: 600;
}

.login-tagline {
    position: relative;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 1px 8px rgba(30, 20, 90, .35);
}

@media (max-width: 480px) {
    .login-card { padding: 24px 22px 26px; border-radius: 22px; }
    .login-logo { width: 180px; }
}

/* ---- MENU HAMBÚRGUER ---- */
.app { padding-bottom: 24px; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(24,36,61,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 150; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 85vw; background: #fff; z-index: 160; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(24,36,61,.2); }
.drawer.open { transform: none; }
.drawer-head { padding: 30px 22px; background: linear-gradient(135deg,#7c4ee0,#258be7); color: #fff; display: grid; gap: 4px; }
.drawer-icone { font-size: 36px; }
.drawer-head small { opacity: .85; }
.drawer nav { flex: 1; padding: 14px; display: grid; align-content: start; gap: 6px; }
.drawer nav button { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: none; font-weight: 700; color: var(--ink); text-align: left; }
.drawer nav button span { width: 24px; text-align: center; }
.drawer nav button:hover, .drawer nav button.active { background: #eef3fb; color: var(--blue); }
.drawer-logout { margin: 14px; padding: 13px; border-radius: 12px; background: #fdecea; color: #d93a2b; font-weight: 800; }

/* ---- PAINEL (responsável / profissional) ---- */
.painel-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 14px; padding: 0 4px 16px; }
.painel-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 6px; }
.painel-card small { color: var(--muted); }
.painel-card b { font-size: 26px; }
.painel-lista { list-style: none; display: grid; gap: 10px; padding: 0 4px; }
.painel-lista li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.painel-lista li b { flex: 1; }
.painel-lista li em { font-style: normal; color: var(--muted); font-weight: 700; }
.painel-lista li.ok em { color: var(--green); }

.esc-op svg.rot { transform: rotate(-45deg) scale(.85); }

/* ---- TELA DE SUCESSO (CENTRALIZADA) ---- */
.success-card-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 480px; /* Um pouco maior que o login */
    background: #f4faed; /* Fundo levemente esverdeado da imagem */
    border: 1px solid #d4ecd0;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(98, 184, 63, 0.1);
}

.success-title {
    font-size: 2.8rem;
    color: var(--ink);
    font-weight: 900;
    margin-bottom: 5px;
}

.success-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.reward-box {
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reward-icon {
    font-size: 80px; /* Moeda gigante */
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 12px rgba(255, 214, 77, 0.4));
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reward-box b {
    font-size: 2rem;
    color: var(--ink);
    font-weight: 900;
}

.reward-box small {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
    margin-top: -5px;
}

.total-box {
    background: #fff;
    border: 1px solid #eadfb8;
    border-radius: 16px;
    padding: 15px;
    max-width: 260px;
    margin: 0 auto 40px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.total-box small {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 5px;
}

.total-box b {
    display: block;
    font-size: 1.8rem;
    color: #e6a800; /* Dourado */
}

.btn-primary-large {
    width: 100%;
    max-width: 340px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(98, 184, 63, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary-large:hover {
    background: #50a331;
    transform: translateY(-2px);
}

/* ---- ANIMAÇÃO DE CONFETES MAIS DENSA ---- */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 14px;
    height: 28px;
    opacity: 0;
    border-radius: 3px;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
/* ---- TELA INICIAL: BANNER ILUSTRADO ---- */
.hero {
    position: relative;
    min-height: 245px;
    padding: 28px 48px;
    background: linear-gradient(120deg, #dbeefe, #bfe3fb);
    justify-content: flex-start;
    box-shadow: 0 10px 28px rgba(47, 128, 237, .14);
}
.hero-text { position: relative; z-index: 1; }
.hero .tag { color: #5b6b86; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); color: #12296b; margin: 6px 0 4px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #1f3358; }
.hero .small-btn { margin-top: 18px; padding: 14px 26px; border-radius: 999px; font-size: 1.05rem; color: #fff; background: linear-gradient(180deg, #2f8bff, #1457e6); box-shadow: 0 8px 18px rgba(20, 87, 230, .35); display: inline-flex; align-items: center; gap: 12px; }
.hero .small-btn::after { content: ''; width: 9px; height: 9px; border-right: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); }

/* ---- TOPBAR: MOEDAS E SINO ---- */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.coins { display: flex; align-items: center; gap: 8px; background: #fdefc2; border: 0; border-radius: 24px; padding: 6px 16px 6px 8px; font-weight: 800; color: #12296b; font-size: 1.05rem; }
.bell { width: 42px; height: 42px; border-radius: 50%; background: transparent; display: grid; place-items: center; }

/* ---- BANNER: ARTE COM O CABELO DO JOÃO SAINDO PELO TOPO ---- */
.hero { overflow: visible; margin-top: 44px; clip-path: inset(-60px 0 0 0 round 25px); box-shadow: none; }
.hero-art { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 960 / 254; pointer-events: none; }
.hero-art img { position: absolute; display: block; }
.art-bg { inset: 0; width: 100%; height: 100%; border-radius: 0 25px 25px 0; }
.art-hair { left: 44.79%; width: 22.92%; height: auto; bottom: calc(100% - 1px); }

/* Janelas mais estreitas: texto em cima, arte embaixo (evita sobrepor o texto) */
@media (max-width: 1220px) {
    .hero { --art: clamp(155px, 17vw, 210px); margin-top: 24px; min-height: 0; padding: 22px 22px calc(var(--art) + 35px); }
    .hero-art { height: var(--art); }
    .art-bg { border-radius: 0 0 25px 0; }
}

/* Banner da Maria: arte cabe inteira dentro do banner (sem o cabelo saindo pelo topo) */
.hero-menina { clip-path: inset(0 round 25px); margin-top: 0; }

/* ==== ATIVIDADES (motor único) ==== */
.atv { max-width: 540px; margin: 0 auto; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.atv-top { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; color: #12296b; }
.atv-ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid #d5e3f7; font-size: 22px; font-weight: 800; color: #2f80ed; }
.atv-passos { list-style: none; display: flex; justify-content: center; padding: 0; margin: 0; }
.atv-passos li { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid #cfe0f5; display: grid; place-items: center; font-weight: 800; color: #6b7a99; }
.atv-passos li + li { margin-left: 44px; }
.atv-passos li + li::before { content: ''; position: absolute; right: calc(100% + 3px); top: 50%; width: 44px; height: 4px; margin-top: -2px; background: #cfe0f5; }
.atv-passos li.atual { background: #2f80ed; border-color: #2f80ed; color: #fff; transform: scale(1.12); }
.atv-passos li.feito { background: #4caf3a; border-color: #4caf3a; color: #fff; }
.atv h1 { font-size: 1.6rem; line-height: 1.25; color: #12296b; }
.atv-instrucao { background: #fff6d6; border: 2px solid #f3dd8a; border-radius: 14px; padding: 12px 16px; font-weight: 700; color: #5c4a00; }

/* Palco: onde acontece a ação do passo */
.atv-palco { position: relative; height: clamp(260px, 62vw, 330px); border-radius: 22px; background: #f3f8ff; border: 2px solid #d5e3f7; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.atv-palco.feito { border-color: #4caf3a; background: #f1fbef; }
.cena-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Escolher */
.atv-palco.opcoes { display: flex; gap: 12px; padding: 16px; align-items: stretch; }
.atv-op { position: relative; flex: 1; background: #fff; border: 3px solid #d5e3f7; border-radius: 18px; padding: 14px 8px; display: grid; place-items: center; }
.atv-op img, .atv-op svg { width: 100%; max-height: 170px; object-fit: contain; pointer-events: none; }
.atv-op .emoji { font-size: 64px; }
.atv-op.certo { border-color: #4caf3a; background: #eefaea; }
.atv-op.certo::after { content: '✓'; position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #4caf3a; color: #fff; font-weight: 800; display: grid; place-items: center; }
.atv-op.tenta { opacity: .6; }

/* Arrastar: escova + pasta */
.cena-escova { position: absolute; left: 6%; bottom: 16%; width: 52%; }
.cena-escova svg { width: 100%; display: block; }
.cena-creme { position: absolute; left: 64%; top: 2%; width: 31%; height: 26%; background: #fff; border: 2px solid #9bbcf0; border-radius: 40% 40% 30% 30%; transform: scale(0); transition: transform .4s .4s; }
.com-pasta .cena-creme { transform: scale(1); }
.cena-tubo { position: absolute; right: 6%; top: 10%; width: 34%; cursor: grab; touch-action: none; z-index: 3; }
.cena-tubo.pega { cursor: grabbing; }
.cena-tubo svg { width: 100%; display: block; pointer-events: none; }
.com-pasta .cena-tubo { opacity: 0; pointer-events: none; }

/* Tocar: torneira e copo */
.atv-palco .agua, .atv-palco .gotas, .atv-palco .bolhas { opacity: 0; transition: opacity .4s; }
.atv-palco.agua-aberta .agua, .atv-palco.molhada .gotas { opacity: 1; }
.atv-palco.agua-aberta.agua-fechada .agua { opacity: 0; }
.alvo-torneira, .alvo-copo { cursor: pointer; outline: none; }
.alvo-torneira:focus-visible, .alvo-copo:focus-visible { outline: 3px solid #2f80ed; }
.alvo-copo { transition: transform .6s ease; transform-box: fill-box; transform-origin: center; }
.atv-palco.enxaguou .alvo-copo { transform: translate(40px, -20px) rotate(-25deg); }
.atv-palco.enxaguou .bolhas { opacity: 1; }

/* Deslizar: boca + escova que segue o dedo */
.cena-boca { position: relative; width: 82%; margin: 30px auto 0; }
.cena-boca svg { width: 100%; display: block; }
.espuma { position: absolute; inset: 0; pointer-events: none; }
.espuma i { position: absolute; border-radius: 50%; background: #fff; border: 2px solid #cfe7ff; }
.cena-escova-mao { position: absolute; left: 70%; top: 85%; width: 46%; transform: translate(-50%, -50%) rotate(-12deg); pointer-events: none; z-index: 3; }
.cena-escova-mao svg { width: 100%; display: block; }
.cena-escova-mao.some { opacity: 0; transition: opacity .4s; }
.atv-barra { position: absolute; left: 15%; right: 15%; bottom: 16px; height: 16px; border-radius: 8px; background: #dce7f6; overflow: hidden; }
.atv-barra i { display: block; height: 100%; width: 0; background: #4caf3a; transition: width .1s; }

/* Ajudas (D02): brilho suave, seta tracejada, mãozinha da demonstração */
.ajuda { pointer-events: none; }
.ajuda-brilho { position: absolute; z-index: 4; border-radius: 22px; border: 4px solid #ffc531; box-shadow: 0 0 0 6px rgba(255, 197, 49, .35), 0 0 24px 8px rgba(255, 197, 49, .45); }
.ajuda-seta { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; }
.ajuda-mao { position: absolute; left: 0; top: 0; width: 48px; z-index: 6; filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.ajuda-mao svg { width: 100%; display: block; }
.ajuda-fantasma { position: absolute; z-index: 5; opacity: 0; }
.ajuda-fantasma svg { width: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ajuda-brilho { animation: ajuda-pulsa 2.4s ease-in-out infinite; }   /* pulsa devagar, sem piscar */
  .atv-op.certo { animation: atv-pop .5s; }
  .atv-op.tenta { animation: atv-treme .5s; }
}
@keyframes ajuda-pulsa { 50% { box-shadow: 0 0 0 10px rgba(255, 197, 49, .2), 0 0 32px 12px rgba(255, 197, 49, .3); } }
@keyframes atv-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes atv-treme { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Personagem + balão + "Me ajuda" */
.atv-prox { width: 100%; min-height: 64px; font-size: 1.2rem; border-radius: 18px; margin: 0 !important; }
.atv-fala { display: flex; align-items: center; gap: 10px; }
.atv-fala img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center top; background: #d4eefd; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(18,41,107,.15); }
.atv-fala p { flex: 1; margin: 0; background: #4a90e2; color: #fff; border-radius: 18px; padding: 14px 16px; font-weight: 700; text-align: left; min-height: 56px; }
.atv-estrela { flex: none; width: 60px; height: 60px; display: grid; place-items: center; background: #ffc531; color: #5c3b00; font-weight: 800; clip-path: polygon(50% 0, 62% 35%, 98% 35%, 69% 57%, 80% 92%, 50% 71%, 20% 92%, 31% 57%, 2% 35%, 38% 35%); }
.atv-ajuda { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 96px; min-height: 76px; padding: 8px 10px; border-radius: 18px; background: #fff3d6; border: 3px solid #ffc531; color: #6b4a00; font-weight: 800; font-size: 1rem; }
.atv-ajuda span { font-size: 28px; line-height: 1; }

/* Confirmação de saída */
.atv-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(18, 41, 107, .35); }
.atv-modal-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 28px 22px; display: grid; gap: 12px; text-align: center; }
.atv-modal-card h2 { color: #12296b; font-size: 1.5rem; }
.atv-modal-card p { color: var(--muted); font-weight: 600; }
.atv-modal-card .next { width: 100%; min-height: 60px; font-size: 1.1rem; margin: 0 !important; }
.atv-sair { min-height: 52px; border-radius: 14px; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 1rem; }

/* Tela de sucesso: rola normalmente (o conteúdo cresceu) */
.success-card-centered { position: static; transform: none; margin: 16px auto; padding: 32px 24px; }
.suc-heroi { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: center top; background: #d4eefd; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(18,41,107,.15); margin: 4px auto 14px; display: block; }
.suc-bonus { color: #3d7a22; font-weight: 800; margin: -18px 0 18px; }
.suc-estrela { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff8dc; border: 2px solid #ffd64d; border-radius: 18px; padding: 14px 16px; margin: 0 auto 24px; max-width: 360px; }
.suc-estrela span { font-size: 44px; }
.suc-estrela p { margin: 0; color: #5c4a00; }
.suc-acoes { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.suc-acoes .btn-primary-large { max-width: none; }
.suc-inicio { border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 800; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .reward-icon { animation: none; } }

/* Painel: sessões do Protocolo ABC */
.painel-sessoes { display: grid; gap: 12px; margin-top: 24px; }
.painel-sessoes h2 { font-size: 1.2rem; color: #12296b; }
.sessao { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.sessao header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.sessao header small { color: var(--muted); font-weight: 700; }
.sessao-tag { font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #eef3fb; color: #2f5fa8; }
.sessao-tag.treino { background: #f2f2f2; color: #6b6b6b; }
.sessao ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sessao li { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 4px 8px; font-size: .85rem; background: #f7f9fc; }
.sessao li b { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #fff; }
.conceito-A { background: #4caf3a; } .conceito-B { background: #f0a020; } .conceito-C { background: #d9534f; }
.sessao-saida { color: #a33a37; font-weight: 700; font-size: .9rem; }
.painel-legenda { color: var(--muted); font-size: .85rem; }

/* Puxar (zíper da mochila) */
.atv-palco.puxa .ziper-cursor { cursor: grab; outline: none; }
.atv-palco.puxa .ziper-cursor:focus-visible rect { stroke: #2f80ed; stroke-width: 4; }
.atv-palco.puxa [data-abertura] { transition: stroke-dasharray .08s linear; }

/* Guardar (materiais na mochila, com distratores) */
.cena-mochila { position: absolute; right: 2%; bottom: 3%; width: 34%; height: 48%; }
.cena-mochila .cena-svg { position: static; }
.atv-item { position: absolute; width: 28%; height: 40%; overflow: hidden; padding: 8px; background: #fff; border: 3px solid #d5e3f7; border-radius: 16px; display: grid; place-items: center; touch-action: none; cursor: grab; z-index: 2; }
.atv-item svg, .atv-item img { width: 100%; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; }
.atv-item { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.atv-item.pega { z-index: 7; cursor: grabbing; box-shadow: 0 8px 18px rgba(18, 41, 107, .2); }
.atv-item.pos-0 { left: 3%; top: 3%; } .atv-item.pos-1 { left: 35%; top: 3%; } .atv-item.pos-2 { left: 67%; top: 3%; }
.atv-item.pos-3 { left: 3%; top: 53%; } .atv-item.pos-4 { left: 35%; top: 53%; }
.atv-item.guardado { border-color: #4caf3a; background: #eefaea; cursor: default; }
.atv-item.guardado > * { opacity: .45; }
.atv-item.guardado::after { content: '✓'; position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; background: #4caf3a; color: #fff; font-weight: 800; display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .cena-mochila.recebe { animation: atv-pop .45s; }
  .atv-item.tenta { animation: atv-treme .5s; }
}

.ajuda-trilho { fill: none; stroke: #2f80ed; stroke-width: 5; stroke-dasharray: 10 10; stroke-linecap: round; }

/* Vestir-se: avatar da criança + peça solta */
.atv-avatar { position: absolute; right: 6%; top: 3%; height: 94%; aspect-ratio: 285 / 465; margin: 0; }
.atv-avatar .camada-base { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.atv-avatar .camada { position: absolute; height: auto; max-width: none; pointer-events: none; }
.atv-avatar .camada svg { width: 100%; display: block; }
.atv-avatar [data-peca-nova] { opacity: 0; transition: opacity .3s .3s; }
.atv-palco.vestiu [data-peca-nova] { opacity: 1; }
.cena-peca { position: absolute; left: 5%; top: 26%; width: 40%; cursor: grab; touch-action: none; z-index: 6; }
.cena-peca img, .cena-peca svg { width: 100%; display: block; pointer-events: none; }
.cena-peca.pega { cursor: grabbing; }

.atv-op img.zoom { transform: scale(1.45); }   /* roupas do avatar têm margem transparente */

/* Tomar banho */
.banho-avatar { right: auto; left: 52%; top: 24%; height: 75%; transform: translateX(-30%); }
.banho-corpo { position: absolute; left: 18%; top: 38%; width: 64%; height: 56%; z-index: 6; }
.banho-corpo .espuma.pronta i, .gotas-corpo i { position: absolute; border-radius: 50%; border: 2px solid; }
.gotas-corpo { position: absolute; inset: 0; pointer-events: none; }
.gotas-corpo i { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.cena-agua { pointer-events: none; z-index: 4; }
@media (prefers-reduced-motion: no-preference) { .cena-agua .agua { animation: banho-agua .6s linear infinite; } }
@keyframes banho-agua { to { stroke-dashoffset: -24; } }
.alvo-registro { cursor: pointer; outline: none; }
.alvo-registro:focus-visible { outline: 3px solid #2f80ed; }
.cena-seguidor { position: absolute; left: 22%; top: 80%; width: 22%; transform: translate(-50%, -50%); pointer-events: none; z-index: 7; }
.cena-seguidor svg { width: 100%; display: block; }
.cena-seguidor.some { opacity: 0; transition: opacity .4s; }
