:root {
  --deep: #0E0A2A;
  --navy: #1B1446;
  --purple: #3A2A8C;
  --violet: #7B5CFF;
  --yellow: #FFC93C;
  --yellow-d: #E09A00;
  --pink: #FF6FA8;
  --cyan: #3DD6F5;
  --mint: #7EE0B5;
  --ink: #1B1446;
  --muted: #6B6790;
  --paper: #FFF8EC;
  --card: #FFFFFF;
  --line: #ECE6F7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: 'Baloo 2', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff9, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #fff7, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff8, transparent),
    radial-gradient(1px 1px at 10% 90%, #fff6, transparent),
    radial-gradient(ellipse at 30% 0%, #3A2A8C 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, #5B2A7C 0%, transparent 55%),
    var(--deep);
  background-size: 300px 300px, 260px 260px, 340px 340px, 220px 220px, 280px 280px, 100% 100%, 100% 100%, auto;
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: var(--ink); }
svg.char { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- Palco ---------- */
.stage { display: flex; gap: 40px; justify-content: center; align-items: center; min-height: 100vh; padding: 24px; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.caption { color: #b9b3e8; font-size: 14px; }
.caption a { color: var(--yellow); }
.switch-auth { text-align: center; color: #d4cff7; margin-top: 12px; }
.install { display: block; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(61,214,245,.15); color: #fff; font-weight: 700; border: 2px dashed rgba(61,214,245,.6); }
.content.light .install { color: var(--ink); background: #EAF9FF; }
.btn:disabled { opacity: .6; }
.phone {
  position: relative; width: 390px; height: min(844px, calc(100vh - 80px)); min-height: 640px;
  border-radius: 50px; border: 10px solid #07051a; overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 2px #2c2366, 0 30px 80px rgba(0,0,0,.55), 0 0 120px rgba(123,92,255,.25);
}
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #07051a; border-radius: 20px; z-index: 80; }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, #120C3A 0%, #24186A 55%, #3A2A8C 100%);
}

/* ---------- Topo e abas ---------- */
.topbar { padding: 46px 14px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kid-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 700; max-width: 52%; }
.kid-chip .kn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini { display: inline-block; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); padding: 2px; flex: none; }
.counters { display: flex; gap: 6px; }
.pill { background: rgba(255,255,255,.12); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.pill.gold { background: var(--yellow); color: var(--ink); }

.content { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 14px 24px; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.content.light { background: var(--paper); color: var(--ink); padding-top: 14px; }

.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: #0D0828; padding: 8px 6px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.tab { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #a59fd9; gap: 0; padding: 4px; border-radius: 14px; font-weight: 600; }
.tab .ic { font-size: 22px; line-height: 1.3; transition: transform .2s; }
.tab.on { color: var(--yellow); }
.tab.on .ic { transform: translateY(-2px) scale(1.12); }

/* ---------- Botões ---------- */
.btn { background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 16px; font-weight: 700; box-shadow: 0 3px 0 rgba(27,20,70,.18); transition: transform .1s; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); }
.btn.big { padding: 14px 20px; font-size: 18px; width: 100%; }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.btn.ghost-dark { background: transparent; box-shadow: none; color: var(--muted); }
.btn.danger { color: #D92D5B; }
.link { color: var(--cyan); font-weight: 700; padding: 4px; }

/* ---------- Cadastro ---------- */
.signup { flex: 1; overflow-y: auto; padding: 50px 22px 30px; }
.brand { text-align: center; }
.logo { width: 92px; height: 92px; display: block; margin: 0 auto; }
.brand h1 { font-size: 34px; line-height: 1; margin-top: 6px; color: var(--yellow); }
.brand p { color: #c7c1f2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.trio { display: flex; justify-content: center; gap: 4px; margin: 12px 0 8px; }
.trio > div { width: 84px; height: 84px; animation: bob 2.4s ease-in-out infinite; }
.trio > div:nth-child(2) { animation-delay: .3s; }
.trio > div:nth-child(3) { animation-delay: .6s; }
.form { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.form h2 { font-size: 20px; }
.form label { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; gap: 2px; }
.form input, .b-card input, .b-card select { border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; font-size: 16px; outline: none; width: 100%; }
.form input:focus, .b-card input:focus, .b-card select:focus { border-color: var(--violet); }
.kids-label { font-size: 14px; font-weight: 700; }
#kids { display: flex; flex-direction: column; gap: 8px; }
.kid-row { display: grid; grid-template-columns: 1fr 78px; gap: 8px; }
.form .link { color: var(--violet); align-self: flex-start; }
label.check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; font-size: 13px !important; line-height: 1.3; }
label.check input { width: 18px !important; height: 18px; margin-top: 2px; flex: none; accent-color: var(--violet); }

/* ---------- Jornada ---------- */
.journey-head {
  position: sticky; top: 0; z-index: 5; margin: 0 -14px; padding: 6px 14px 10px;
  background: linear-gradient(180deg, #120C3A 75%, rgba(18,12,58,0));
}
.jh-row { display: flex; justify-content: space-between; align-items: center; }
.journey-head small { color: #b9b3e8; font-weight: 600; }
.journey-head h2 { font-size: 22px; line-height: 1.1; }
.jh-ic { font-size: 34px; animation: spin 12s linear infinite; }
.journey-head p { font-size: 14px; color: #e6e2ff; margin-top: 4px; }
.journey-head b { color: var(--yellow); }
.bar { height: 10px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--pink)); border-radius: 999px; transition: width .5s cubic-bezier(.3,1.4,.5,1); }
.bar.big { height: 14px; }

.map { position: relative; margin: 6px 0 10px; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail path { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail path.done { stroke: var(--yellow); stroke-dasharray: none; stroke-width: 6; filter: drop-shadow(0 0 6px rgba(255,201,60,.7)); }
.node {
  position: absolute; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #8d86d6;
  background: #2a2270; border: 3px solid rgba(255,255,255,.15);
}
.node.done { background: radial-gradient(circle at 35% 30%, #fff3b0, var(--yellow)); border-color: #fff; color: #7a4d00; box-shadow: 0 0 18px rgba(255,201,60,.55); }
.node.next { border-color: var(--cyan); border-style: dashed; animation: pulse 1.6s ease-in-out infinite; }
.node.prize { width: 76px; height: 76px; font-size: 32px; background: radial-gradient(circle at 30% 30%, #ff9cc5, #7b5cff 70%); border-color: rgba(255,255,255,.35); filter: grayscale(.45) brightness(.8); }
.node.prize::after { content: ''; position: absolute; width: 110px; height: 26px; border: 4px solid rgba(61,214,245,.6); border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.node.prize.done { filter: none; box-shadow: 0 0 26px rgba(255,111,168,.8); }
.node.base { background: radial-gradient(circle at 35% 30%, #b6f7ff, var(--cyan)); color: var(--ink); }
.tag { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); padding: 1px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.tag.r { left: calc(100% + 10px); }
.tag.l { right: calc(100% + 10px); }
.prize.done .tag { background: var(--yellow); }
.pilot { position: absolute; width: 74px; height: 74px; transform: translate(-50%, -100%); z-index: 3; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.pilot svg { animation: bob 2s ease-in-out infinite; }
.rules { background: rgba(255,255,255,.08); border-radius: 18px; padding: 12px 14px; font-size: 14px; color: #e6e2ff; display: flex; flex-direction: column; gap: 4px; }
.rules b { color: #fff; }

/* ---------- Coleção ---------- */
.companion { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 22px; padding: 12px; margin-top: 4px; }
.big-char { width: 110px; height: 110px; flex: none; animation: bob 2.4s ease-in-out infinite; }
.companion small { color: var(--yellow); font-weight: 700; }
.companion h2 { font-size: 20px; line-height: 1.1; }
.companion p { font-size: 13px; color: #d4cff7; line-height: 1.3; }
.sec { font-size: 18px; margin: 16px 0 8px; display: flex; align-items: baseline; justify-content: space-between; }
.sec small { font-size: 13px; color: #b9b3e8; font-weight: 600; }
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acc { background: rgba(255,255,255,.08); border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; border: 2px solid transparent; line-height: 1.15; }
.acc-ic { font-size: 26px; }
.acc b { font-size: 11px; text-align: center; }
.acc small { font-size: 12px; color: var(--yellow); font-weight: 700; margin-top: 2px; }
.acc.owned small { color: var(--mint); }
.acc.on { border-color: var(--yellow); background: rgba(255,201,60,.15); }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.album-item { background: rgba(255,255,255,.08); border-radius: 18px; padding: 8px 6px 6px; display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 14px; border: 2px solid transparent; }
.album-item .av { width: 78px; height: 78px; }
.album-item.locked { color: #8d86d6; }
.album-item.is-comp { border-color: var(--yellow); }

/* ---------- Jogos ---------- */
.games { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mission { display: flex; align-items: center; gap: 10px; background: linear-gradient(120deg, #FF6FA8, #7B5CFF); border-radius: 20px; padding: 12px; }
.m-ic { font-size: 30px; }
.m-body { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.m-body small { font-size: 12px; color: #fff; opacity: .92; }
.m-body .bar { background: rgba(0,0,0,.2); }
.m-body .bar i { background: var(--yellow); }
.m-n { font-weight: 800; font-size: 15px; }
.game-card { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; color: var(--ink); border-radius: 20px; padding: 12px; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .1s; }
.game-card:active { transform: translateY(3px); }
.game-card .g-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; flex: none; }
.game-card.salon .g-ic { background: #FFE3EF; }
.game-card.memory .g-ic { background: #E4DEFF; }
.game-card.count .g-ic { background: #D8F7FF; }
.game-card div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.game-card small { color: var(--muted); font-size: 13px; }
.game-card em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--violet); white-space: nowrap; }
.note { font-size: 12px; color: #b9b3e8; text-align: center; padding: 4px 10px; }

/* ---------- Camada de jogo ---------- */
.game-layer { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; color: var(--ink); background: linear-gradient(180deg, #FFF3DC, #FFE3EF); animation: slideUp .25s ease-out; }
.g-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 8px; }
.g-head h2 { flex: 1; font-size: 20px; }
.g-head .pill { background: var(--ink); color: #fff; }
.g-close { width: 38px; height: 38px; border-radius: 50%; background: #fff; font-size: 18px; box-shadow: 0 2px 0 rgba(0,0,0,.1); }
.g-body { flex: 1; overflow-y: auto; padding: 4px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.g-tip { background: #fff; border-radius: 16px; padding: 10px 12px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.g-stat { text-align: center; font-weight: 700; color: var(--muted); }

.steps { display: flex; gap: 6px; justify-content: center; }
.st { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(27,20,70,.08); color: var(--muted); }
.st.on { background: var(--violet); color: #fff; }
.st.ok { background: var(--mint); color: var(--ink); }
.salon-stage { position: relative; background: radial-gradient(circle at 50% 40%, #fff, #FFD9E8 75%); border-radius: 26px; touch-action: none; cursor: none; overflow: hidden; border: 4px solid #fff; }
.salon-stage svg { display: block; width: 100%; height: auto; max-height: 360px; touch-action: none; }
.tool-cursor { position: absolute; font-size: 38px; transform: translate(-30%, -70%); pointer-events: none; opacity: 0; transition: opacity .15s; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.drop { fill: #6CC8FF; opacity: .85; transform-box: fill-box; transform-origin: center; animation: drop .9s ease-out forwards; }
.fall { fill: none; transform-box: fill-box; transform-origin: center; animation: fall 1s ease-in forwards; }
.puff { fill: #fff; opacity: .8; transform-box: fill-box; transform-origin: center; animation: puff 1s ease-out forwards; }
.spark { transform-box: fill-box; transform-origin: center; animation: spark 1.2s ease-in-out infinite alternate; }

.g-finish { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 10px; }
.g-finish svg.salon-done { width: 230px; height: auto; }
.g-finish h3 { font-size: 24px; }
.g-finish p { color: var(--muted); line-height: 1.35; }
.reward { font-size: 30px; font-weight: 800; color: var(--violet); animation: popIn .5s cubic-bezier(.3,1.6,.5,1); }
.g-actions { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; }
.big-emoji { font-size: 90px; animation: popIn .5s cubic-bezier(.3,1.6,.5,1); }

.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mem { aspect-ratio: 1 / 1.05; perspective: 600px; }
.mem-in { position: relative; width: 100%; height: 100%; transition: transform .35s; transform-style: preserve-3d; }
.mem.flip .mem-in, .mem.ok .mem-in { transform: rotateY(180deg); }
.mem-back, .mem-front { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; display: grid; place-items: center; }
.mem-back { background: linear-gradient(135deg, var(--violet), var(--pink)); font-size: 30px; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.mem-front { background: #fff; transform: rotateY(180deg); padding: 6px; }
.mem.ok .mem-front { background: #E2FFF1; box-shadow: 0 0 0 3px var(--mint) inset; }

.count-field { background: #fff; border-radius: 22px; padding: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; min-height: 150px; align-content: center; justify-items: center; font-size: 34px; }
.count-field span { animation: popIn .35s cubic-bezier(.3,1.6,.5,1) both; }
.count-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt { background: #fff; border-radius: 20px; font-size: 34px; font-weight: 800; padding: 10px 0; box-shadow: 0 4px 0 rgba(27,20,70,.15); }
.opt.right { background: var(--mint); }
.opt.wrong { background: #FFC2D3; animation: shake .4s; }

/* ---------- Pais ---------- */
.gate { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gate-ic { font-size: 50px; }
.gate p { color: #d4cff7; }
.gate .q { font-size: 40px; font-weight: 800; color: var(--yellow); }
.gate-opts { display: flex; gap: 10px; }
.gate-opts .btn { font-size: 22px; min-width: 70px; }

.parents { display: flex; flex-direction: column; gap: 12px; }
.p-hello { display: flex; justify-content: space-between; align-items: center; }
.p-hello small { color: var(--violet); font-weight: 700; }
.p-hello h2 { font-size: 24px; line-height: 1.1; }
.p-hello p { color: var(--muted); font-size: 14px; }
.p-hello .btn { box-shadow: 0 0 0 2px var(--line); }
.card { background: var(--card); border-radius: 20px; padding: 14px; box-shadow: 0 2px 10px rgba(27,20,70,.06); }
.card h3 { font-size: 18px; }
.card h4 { font-size: 14px; margin: 12px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--muted); font-size: 14px; margin: 2px 0 10px; line-height: 1.3; }
.banner { display: flex; gap: 10px; align-items: center; background: linear-gradient(120deg, #FFE7A3, #FFD0E2); border-radius: 18px; padding: 12px; font-size: 20px; }
.banner div { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.kc-head { display: flex; align-items: center; gap: 10px; }
.kc-head .mini { width: 46px; height: 46px; background: #EFEAFF; }
.kc-head div { flex: 1; line-height: 1.15; }
.kc-head small { color: var(--muted); font-size: 12px; }
.kc-n { font-size: 20px; color: var(--violet); }
.stamp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; background: #FFF6DE; padding: 10px; border-radius: 16px; border: 2px dashed #F3D58A; }
.sg { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #F3D58A; font-size: 13px; font-weight: 800; color: #C9A44C; }
.sg.pz { font-size: 16px; }
.sg.on { background: var(--yellow); border-color: var(--yellow-d); font-size: 16px; animation: popIn .4s cubic-bezier(.3,1.6,.5,1); }
.prizes { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.prizes li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #F7F4FF; }
.prizes li.pz-locked { opacity: .6; }
.prizes li.pz-available { background: #FFF1C9; box-shadow: 0 0 0 2px var(--yellow) inset; }
.pe { font-size: 24px; }
.prizes li div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.prizes small { color: var(--muted); font-size: 12px; }
.lock { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.code { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: var(--violet); line-height: 1.1; }
.code.used { color: var(--muted); text-decoration: line-through; }
.code small { text-decoration: none; font-weight: 600; }
.next-cut { margin-top: 10px; display: flex; align-items: center; gap: 8px; justify-content: space-between; background: #EAF9FF; border-radius: 14px; padding: 8px 10px; font-size: 13px; line-height: 1.25; }
.next-cut.late { background: #FFE6EE; }
.next-cut .btn { box-shadow: 0 0 0 2px var(--line); flex: none; }
.hist { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hist li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hist li > span { color: var(--muted); font-size: 12px; width: 40px; }
.hist li div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.hist small { color: var(--muted); font-size: 12px; }
.hist em { font-style: normal; font-weight: 800; color: var(--yellow-d); }
.rules-p p { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* ---------- Modais, push, toast ---------- */
.modal-layer { position: absolute; inset: 0; z-index: 40; background: rgba(8,5,30,.7); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 20px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; animation: popIn .35s cubic-bezier(.3,1.5,.5,1); max-height: 100%; overflow-y: auto; }
.modal h3 { font-size: 22px; line-height: 1.15; }
.modal p { color: var(--muted); line-height: 1.35; }
.modal .btn { width: 100%; }
.reveal { width: 160px; height: 160px; background: radial-gradient(circle, #FFE7A3 0%, transparent 70%); border-radius: 50%; animation: reveal .7s cubic-bezier(.3,1.5,.5,1); }
.kicker { color: var(--violet); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.m-emoji { font-size: 70px; line-height: 1.1; }
.m-emoji.planet { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff9cc5, #7b5cff 70%); font-size: 56px; animation: reveal .7s cubic-bezier(.3,1.5,.5,1); }
.big-code { font-size: 36px; font-weight: 800; letter-spacing: .08em; background: #fff; border: 3px dashed var(--violet); border-radius: 18px; padding: 4px 18px; color: var(--violet); }
.stamp-burst { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 34px; max-width: 260px; }
.stamp-burst span { animation: popIn .5s cubic-bezier(.3,1.8,.5,1) both; }
.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.crew > div { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 12px; animation: reveal .6s cubic-bezier(.3,1.5,.5,1) both; }
.crew svg { width: 64px; height: 64px; }
.gift { background: #FFF1C9; border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.kid-pick { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kid-pick button { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px; border-radius: 16px; font-weight: 700; font-size: 18px; border: 2px solid var(--line); }
.kid-pick button.on { border-color: var(--yellow); }
.kid-pick .mini { background: #EFEAFF; width: 44px; height: 44px; }

.push-layer { position: absolute; top: 44px; left: 10px; right: 10px; z-index: 60; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.push { display: flex; align-items: flex-start; gap: 10px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 20px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: pushIn .4s cubic-bezier(.3,1.4,.5,1); }
.push.out { animation: pushOut .4s forwards; }
.push-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.push-t { flex: 1; line-height: 1.2; }
.push-t p { font-size: 13px; color: var(--muted); }
.push small { color: var(--muted); font-size: 11px; }
.toast { position: absolute; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 70; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; width: max-content; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Balcão ---------- */
.balcao { width: 370px; max-height: calc(100vh - 48px); overflow-y: auto; background: #F4F1FB; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.b-head { display: flex; gap: 10px; align-items: flex-start; }
.b-head h2 { font-size: 22px; }
.b-head p { color: var(--muted); font-size: 14px; line-height: 1.3; }
.b-close { display: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none; }
.b-card { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.b-card h3 { font-size: 16px; }
.b-card label { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; gap: 2px; }
.b-client small { color: var(--violet); font-weight: 700; font-size: 12px; }
.b-client b { font-size: 18px; line-height: 1.1; }
.b-client span { color: var(--muted); font-size: 14px; }
.b-empty { color: var(--muted); text-align: center; padding: 30px 14px; }
.calc { font-size: 18px; background: #FFF6DE; border-radius: 12px; padding: 6px 12px; }
.calc small { color: var(--muted); font-size: 13px; }
.calc em, .check em { color: var(--muted); font-style: normal; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; text-transform: uppercase; }
.pend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pend small { width: 100%; color: var(--muted); font-size: 12px; }
.chip { background: #EFEAFF; color: var(--violet); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.b-demo .btn { text-align: left; box-shadow: 0 0 0 2px var(--line); }
.fab { display: none; position: fixed; right: 14px; bottom: 92px; z-index: 90; background: var(--yellow); color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* ---------- Animações ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,214,245,.5); } 50% { box-shadow: 0 0 0 10px rgba(61,214,245,0); } }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes reveal { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes pushIn { from { transform: translateY(-80px); opacity: 0; } }
@keyframes pushOut { to { transform: translateY(-80px); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
@keyframes drop { from { transform: scale(.2); } 60% { transform: scale(1.2); opacity: .9; } to { transform: scale(1) translateY(10px); opacity: 0; } }
@keyframes fall { to { transform: translateY(170px) rotate(60deg); opacity: 0; } }
@keyframes puff { from { transform: scale(.4); } to { transform: scale(2) translateY(-20px); opacity: 0; } }
@keyframes spark { from { transform: scale(.6) rotate(0); opacity: .5; } to { transform: scale(1.2) rotate(30deg); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Celular de verdade / telas estreitas ---------- */
@media (max-width: 900px) {
  .stage { padding: 0; display: block; }
  .phone-wrap { display: block; }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .notch, .caption { display: none; }
  .topbar, .g-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .push-layer { top: 12px; }
  .balcao { position: fixed; inset: 0; z-index: 100; display: none; max-height: none; width: auto; border-radius: 0; }
  .balcao.open { display: flex; }
  .b-close { display: block; }
  .fab { display: block; }
}
