/* A Ilha da Bela */
@font-face { font-family: 'Baloo 2'; src: url(../fonts/baloo-2-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url(../fonts/baloo-2-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #1F2A44; --ink-2: #5B6782; --paper: #FFFBF3; --card: #FFFFFF; --line: #E8E2D4;
  --sea: #2BB9EB; --sea-d: #1690C4;
  --green: #2FA34A; --green-d: #1F7A35; --green-soft: #E0F5DF;
  --yellow: #FFD23F; --yellow-soft: #FFF4C9; --red: #E5484D; --red-soft: #FFE3E3; --purple: #7B4FE0;
  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 2px 0 rgba(31, 42, 68, .06), 0 14px 30px -16px rgba(31, 42, 68, .45);
  --c: #2E8FD9;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; overflow-x: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 4px solid var(--purple); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
.kicker { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; }
img.spr, .pingo-img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.emo { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3em; line-height: 1; }

/* ---------- botões ---------- */
.big-btn {
  border: 0; border-radius: 999px; background: var(--c); color: #fff; font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px); padding: 14px 30px; min-height: 64px; display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 65%, #000); text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}
.big-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 65%, #000); }
.big-btn:disabled { opacity: .5; }
.big-btn.deliver { --c: #E86A3A; }
.soft-btn { border: 3px solid var(--line); background: #fff; border-radius: 999px; padding: 12px 24px; min-height: 60px; font-weight: 800; font-size: 19px; }
.soft-btn:disabled { opacity: .4; }
.soft-btn.danger { color: var(--red); border-color: var(--red-soft); }
.row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.row.left { justify-content: flex-start; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 52px; border: 0; border-radius: 999px; background: #fff; padding: 0 16px; font-family: var(--display); font-weight: 800; font-size: 19px; box-shadow: var(--shadow); }
.pill-btn b { color: var(--purple); }

/* ---------- toggles ---------- */
.toggles { display: flex; gap: 8px; }
.tog { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .8); display: grid; place-items: center; backdrop-filter: blur(6px); box-shadow: var(--shadow); color: var(--ink-2); position: relative; flex: none; }
.tog svg { width: 24px; height: 24px; }
.tog.on, .tog.plain { color: var(--ink); background: #fff; }
.tog:not(.on):not(.home-btn):not(.plain)::after { content: ''; position: absolute; width: 30px; height: 3px; background: var(--red); border-radius: 3px; transform: rotate(-40deg); }

/* ---------- abertura ---------- */
.welcome { position: relative; height: 100dvh; min-height: 480px; overflow: hidden; display: grid; place-items: center; background: var(--sea); padding: 16px; }
.welcome-bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; filter: blur(6px) saturate(1.1); transform: scale(1.04); animation: slowpan 30s ease-in-out infinite alternate; }
.welcome-card { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-radius: 36px; padding: 18px 40px 32px; box-shadow: 0 30px 60px -20px rgba(10, 40, 70, .55); border: 4px solid #fff; max-width: 560px; animation: rise .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.welcome-buddy { width: 170px; height: 170px; margin-top: -100px; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 14px 14px rgba(10, 40, 70, .3)); }
.welcome-card h1 { font-size: clamp(48px, 8vw, 84px); color: var(--ink); letter-spacing: -1px; line-height: .95; }
.welcome-card p { margin: 0 0 12px; font-weight: 800; color: var(--ink-2); font-size: 20px; }
.big-btn.start { --c: #F07F1A; font-size: 26px; min-height: 72px; padding: 14px 36px; animation: pulse 1.8s ease-in-out infinite; }

/* ---------- HOME: mapa ---------- */
.home { position: relative; height: 100dvh; min-height: 480px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #3CC4EE, var(--sea) 70%); }
.map-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.map-box { position: relative; width: min(100vw, calc(100dvh * 1.7686)); aspect-ratio: 2400 / 1357; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 0; pointer-events: none; z-index: 20; }
.home-top > * { pointer-events: auto; }
.brand h1 { font-size: clamp(30px, 4.6vw, 54px); color: var(--ink); margin-top: 4px; letter-spacing: -.5px;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 -3px 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 10px 24px rgba(31, 42, 68, .25); }
.home-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 64%; }
.starcount { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: var(--shadow); font-family: var(--display); font-size: 22px; height: 52px; }
.starcount svg { width: 34px; height: 34px; }
.starcount span { color: var(--ink-2); font-size: 16px; }
.home-hint { position: absolute; left: 14px; bottom: calc(12px + var(--safe-b)); display: flex; align-items: flex-end; gap: 4px; z-index: 20; max-width: min(520px, 76vw); pointer-events: none; }
.mini-buddy { width: 84px; height: 84px; flex: none; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(10, 40, 70, .3)); }
.home-hint p { margin: 0 0 36px; background: #fff; border: 3px solid var(--ink); border-radius: 20px 20px 20px 6px; padding: 8px 14px; font-weight: 800; font-size: 17px; box-shadow: var(--shadow); }
.home-hint b { color: var(--purple); }

.pin { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 3px; z-index: 6; }
.pin-dot { position: relative; width: clamp(40px, 4.6vw, 64px); aspect-ratio: 1; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--c); border: 4px solid #fff; box-shadow: 0 8px 14px -4px rgba(10, 30, 50, .55); display: grid; place-items: center; transition: transform .2s; }
.pin-emo { transform: rotate(45deg); font-size: clamp(18px, 2.2vw, 30px); line-height: 1; }
.pin-n { position: absolute; top: -10px; right: -10px; transform: rotate(45deg); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; display: grid; place-items: center; border: 2px solid #fff; }
.pin-label { background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 2px 12px; font-family: var(--display); font-weight: 800; font-size: clamp(12px, 1.35vw, 18px); white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(10, 30, 50, .4); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pin-stars { display: inline-flex; }
.pin-stars svg { width: 14px; height: 14px; }
.pin.done .pin-dot::after { content: '✓'; position: absolute; bottom: -8px; left: -8px; transform: rotate(45deg); width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; border: 2px solid #fff; }
.pin.is-next .pin-dot { animation: pinbounce 1.4s ease-in-out infinite; }
.pin.is-next .pin-label { background: var(--c); color: #fff; }
.pin.fresh .pin-dot { animation: popIn .8s .3s both; }
.pin:active .pin-dot { transform: rotate(-45deg) scale(.92); }
.map-buddy { position: absolute; width: clamp(54px, 6vw, 86px); aspect-ratio: 1; transform: translate(-125%, -95%); z-index: 7; pointer-events: none; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(10, 30, 50, .35)); }

/* a ilha ganha vida */
.life { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -50%); }
.l-tank { left: 21%; top: 31%; font-size: clamp(14px, 1.6vw, 24px); animation: bob 2s ease-in-out infinite; }
.l-rain { left: 23%; top: 7%; font-size: clamp(26px, 3.4vw, 50px); animation: drift 9s ease-in-out infinite alternate; }
.l-farm { left: 19%; top: 72%; width: 4%; animation: sway 3s ease-in-out infinite; }
.l-fish { left: 47%; top: 80%; width: 2.6%; animation: jump 3.4s ease-in-out infinite; }
.l-fish.two { left: 40%; top: 52%; animation-delay: -1.7s; }
.l-truck { width: 4%; animation: truckroute 16s linear infinite; }
.l-boat { left: 70%; top: 88%; width: 4.5%; animation: sail 14s ease-in-out infinite alternate; }
.l-heli { left: 62%; top: 12%; width: 4%; animation: hover 7s ease-in-out infinite alternate; }
.l-plane { width: 5.5%; animation: takeoff 11s ease-in infinite; }
.l-bike { left: 50%; top: 47%; width: 2.6%; animation: ride 6s ease-in-out infinite alternate; }
.l-train { width: 8%; animation: trainroute 12s linear infinite; }
.l-bus { width: 4.4%; animation: busroute 14s linear infinite; animation-delay: -5s; }

/* ---------- vídeo ---------- */
.film { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; animation: fadeIn .3s both; }
.film.in-box { position: absolute; z-index: 30; background: transparent; }
.film-video { width: 100%; height: 100%; object-fit: contain; }
.film.in-box .film-video { object-fit: cover; }
.film-skip { position: absolute; right: 16px; bottom: calc(16px + var(--safe-b)); border: 0; border-radius: 999px; background: rgba(255, 255, 255, .88); padding: 10px 18px; font-weight: 800; font-size: 17px; min-height: 48px; box-shadow: var(--shadow); }
.film.out { animation: fadeOut .7s forwards; pointer-events: none; }
.finale { height: 100dvh; background: #000; position: relative; }

/* ---------- MISSÃO ---------- */
.mission { min-height: 100dvh; background:
  radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 42%),
  radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--c) 12%, transparent), transparent 36%),
  radial-gradient(color-mix(in srgb, var(--c) 16%, #fff) 1.4px, transparent 1.6px) 0 0 / 28px 28px, var(--paper); }
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 3px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.bar .tog { border-color: var(--line); background: #fff; box-shadow: none; }
.bar-title { flex: 1; min-width: 0; font-size: clamp(20px, 2.8vw, 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: .3s; }
.dots i.done { background: var(--c); }
.dots i.cur { background: #fff; box-shadow: inset 0 0 0 4px var(--c); transform: scale(1.3); }
@media (max-width: 760px) { .bar .toggles { display: none; } .dots i { width: 10px; height: 10px; } }
.stage { max-width: 1200px; margin: 0 auto; padding: 14px 16px calc(190px + var(--safe-b)); display: grid; gap: 14px; justify-items: center; }
.stage:has(.tools) { --below: 118px; }
.stage:has(.rbins) { --below: 132px; }
.stage:has(.gas), .stage:has(.again) { --below: 96px; }
.stage:has(.lanes) { --below: 128px; }
.stage:has(.choices) { --below: 118px; }
.stage:has(.pedal) { --below: 160px; }
.stage:has(.rush) { --below: 186px; }
.stage.enter > * { animation: rise .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.step-title { font-size: clamp(22px, 3.2vw, 34px); text-align: center; }

.intro { display: grid; justify-items: center; gap: 8px; padding-top: 3vh; }
.intro-buddy { width: min(250px, 46vw); aspect-ratio: 1; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 18px 16px rgba(31, 42, 68, .25)); }
.intro-kicker { font-family: var(--display); font-weight: 800; color: #fff; background: var(--c); border-radius: 999px; padding: 2px 16px; font-size: 18px; }
.intro-title { font-size: clamp(40px, 6.4vw, 72px); color: var(--ink); text-align: center; text-shadow: 0 4px 0 #fff; }

/* ---------- Pingo dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none; padding-bottom: var(--safe-b);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 94%, transparent) 42%); }
.dock-in { max-width: 1200px; margin: 0 auto; padding: 16px 16px 12px; display: flex; align-items: flex-end; gap: 10px; }
.dock-buddy { width: clamp(80px, 10vw, 112px); aspect-ratio: 1; flex: none; pointer-events: auto; border: 0; background: none; padding: 0; filter: drop-shadow(0 8px 10px rgba(31, 42, 68, .25)); animation: bob 3s ease-in-out infinite; }
.dock-buddy.hop { animation: hop .6s; }
.bubble-wrap { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px; margin-bottom: 24px; pointer-events: auto; }
.bubble { background: #fff; border: 3px solid var(--ink); border-radius: 22px 22px 22px 6px; padding: 10px 16px; font-weight: 700; font-size: clamp(17px, 2vw, 21px); line-height: 1.35; box-shadow: var(--shadow); max-width: 660px; }
.bubble b { color: color-mix(in srgb, var(--c) 80%, #000); font-weight: 800; }
.bubble.happy { border-color: var(--green-d); }
.bubble.oops { border-color: var(--red); }
.replay { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; color: var(--ink-2); }
.replay svg { width: 22px; height: 22px; }
.next { margin-left: auto; pointer-events: auto; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); padding: 14px 30px; min-height: 66px; margin-bottom: 20px; flex: none;
  box-shadow: 0 6px 0 #0B1222; animation: nudge 1.6s ease-in-out infinite; }
.next:active { transform: translateY(4px); box-shadow: 0 2px 0 #0B1222; }
@media (max-width: 640px) {
  .dock-in { flex-wrap: wrap; padding: 10px; }
  .dock-buddy { width: 66px; }
  .bubble-wrap { margin-bottom: 12px; }
  .bubble { font-size: 16px; padding: 8px 12px; }
  .next { width: 100%; margin: 0; min-height: 56px; }
  .stage { padding-bottom: calc(240px + var(--safe-b)); }
}

/* ---------- quiz ---------- */
.qcard { width: 100%; max-width: 900px; background: #fff; border-radius: 30px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); border: 3px solid var(--line); display: grid; gap: 14px; }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qnum { font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--c); border-radius: 999px; padding: 4px 14px; }
.listen { display: inline-flex; align-items: center; gap: 6px; border: 3px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; min-height: 48px; color: var(--ink-2); }
.listen svg { width: 22px; height: 22px; }
.qrow { display: flex; align-items: center; gap: 18px; }
.qtext { font-size: clamp(22px, 3vw, 31px); font-weight: 800; flex: 1; }
.qart { flex: none; width: clamp(84px, 12vw, 124px); aspect-ratio: 1; border-radius: 50%; padding: 14px; background: radial-gradient(circle at 50% 40%, #fff, color-mix(in srgb, var(--c) 22%, #fff)); box-shadow: inset 0 0 0 4px #fff, 0 6px 16px -8px rgba(31, 42, 68, .4); animation: bob 3.2s ease-in-out infinite; font-size: 20px; }
.opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .opts { grid-template-columns: 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; border: 3px solid var(--line); background: #fff; border-radius: 22px; padding: 10px 14px; min-height: 76px; font-size: clamp(17px, 2.1vw, 21px); font-weight: 700;
  box-shadow: 0 5px 0 var(--line); transition: transform .1s, background .2s; }
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.opt .letter { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); }
.opt.ok { border-color: var(--green); background: var(--green-soft); box-shadow: 0 5px 0 #A8DE90; }
.opt.ok .letter { background: var(--green); color: #fff; }
.opt.no { border-color: var(--red); background: var(--red-soft); opacity: .6; box-shadow: none; }
.opt.no .letter { background: var(--red); color: #fff; }
.opt.picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 40%, #fff); }
.opt.picked .letter { background: var(--c); color: #fff; }
.opt:disabled:not(.ok):not(.no) { opacity: .55; }

/* ---------- separar ---------- */
.sort { display: grid; gap: 14px; width: 100%; justify-items: center; }
.tray { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; min-height: 40px; max-width: 1100px; }
.card { width: 128px; border-radius: 22px; background: #fff; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); padding: 8px 6px 8px; display: grid; justify-items: center; align-content: start; gap: 4px; cursor: grab; touch-action: none; transition: transform .15s, opacity .2s; }
.card.long { width: 168px; }
.card-art { width: 78px; height: 64px; pointer-events: none; font-size: 15px; }
.card-label { font-weight: 800; font-size: 16px; text-align: center; line-height: 1.12; pointer-events: none; }
.card.selected { border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent), 0 5px 0 var(--line); transform: translateY(-6px) rotate(-2deg); }
.card.dragging, .trash.dragging { opacity: .25; }
.ghost { position: fixed !important; z-index: 400; pointer-events: none; box-shadow: 0 20px 40px -10px rgba(31, 42, 68, .5); margin: 0; }
.trash.ghost, .ghost.at { box-shadow: none; filter: drop-shadow(0 16px 14px rgba(31, 42, 68, .45)); animation: none; }
.card.used { cursor: default; }
.card.gone { visibility: hidden; width: 0; padding: 0; margin: 0 -6px; border: 0; transition: none; }
.card.placed { width: 92px; padding: 4px; box-shadow: none; border-color: var(--green); }
.card.placed .card-art { width: 54px; height: 44px; font-size: 10px; }
.card.placed .card-label { font-size: 12px; }
.bins { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bins.n2 { max-width: 820px; }
.bin { border-radius: 26px; background: #fff; border: 4px solid var(--line); min-height: 200px; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; transition: transform .15s, border-color .2s; box-shadow: var(--shadow); }
.bin-head { height: 78px; background: color-mix(in srgb, var(--c) 10%, #F5FBFF); display: grid; place-items: center; font-size: 16px; }
.bin-label { text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; padding: 4px 8px; }
.bin-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: flex-start; padding: 6px 8px 10px; }
.bin.can-drop, .zone.can-drop, .rbin.can-drop, .load-truck.can-drop { outline: 4px dashed var(--c); outline-offset: -4px; }
.bin.over { border-color: var(--c); transform: scale(1.03); background: color-mix(in srgb, var(--c) 8%, #fff); }

/* ---------- cenas ---------- */
.scene { position: relative; width: min(100%, max(520px, calc((100dvh - 290px - var(--below, 0px)) * 16 / 9))); aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 4px #fff; border: 4px solid #fff; background: #BFE6F7; touch-action: none; isolation: isolate; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transition: filter 1.2s; }
.at { position: absolute; transform: translate(-50%, -50%); }

/* vazamentos */
.leak { width: 8%; aspect-ratio: 1; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(46, 143, 217, .35), rgba(46, 143, 217, 0) 70%); padding: 0; z-index: 3; }
.leak::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 4px #2E8FD9, 0 0 18px 6px rgba(46, 143, 217, .55); animation: leakpulse 1.1s ease-in-out infinite; }
@keyframes leakpulse { 0%, 100% { scale: .9; opacity: 1; } 50% { scale: 1.12; opacity: .75; } }
.leak i { position: absolute; left: 50%; top: 40%; width: 24%; height: 32%; background: #4FB3F5; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 2px solid #1F6FB0; animation: drip 1s ease-in infinite; }
.leak i:nth-child(2) { animation-delay: .33s; left: 40%; }
.leak i:nth-child(3) { animation-delay: .66s; left: 60%; }
.leak.fixed { background: none; }
.leak.fixed::before { animation: none; border-color: var(--green); background: rgba(255, 255, 255, .8); content: '✓'; color: var(--green); font-weight: 800; font-size: clamp(16px, 2.2vw, 28px); display: grid; place-items: center; }
.leak.fixed i { display: none; }
.tank { position: absolute; right: 2.5%; top: 18%; width: 5%; height: 64%; background: rgba(255, 255, 255, .85); border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; z-index: 4; }
.tank-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(180deg, #6FC8FF, #2E8FD9); transition: height .25s linear; }
.tank-ico { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-size: clamp(14px, 1.8vw, 22px); }
.tank.low .tank-fill { background: linear-gradient(180deg, #FFB0A0, #E5484D); }

/* chuva */
.scene.dry .scene-bg { filter: saturate(.25) sepia(.55) brightness(1.04); }
.raincloud, .stormcloud { position: absolute; top: 3%; width: 22%; transform: translateX(-50%); z-index: 5; transition: left .08s linear; pointer-events: none; }
.raincloud { cursor: grab; }
.raincloud .drops, .stormcloud .drops { position: absolute; left: 12%; right: 12%; top: 70%; height: 340%; opacity: 0; transition: opacity .3s;
  background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(80, 160, 230, .75) 14px 17px, transparent 17px 32px); background-size: 100% 60px; animation: rainfall .35s linear infinite; mask-image: linear-gradient(#000 60%, transparent); }
.raining .drops, .scene.rain .stormcloud .drops { opacity: 1; }
.raincloud.bye { transition: transform 1.2s, opacity 1.2s; transform: translate(60%, -80%); opacity: 0; }
.cloud-svg { width: 100%; display: block; animation: bob 3s ease-in-out infinite; }
.wilt { filter: saturate(.2) brightness(.9); transform: translate(-50%, -50%) rotate(28deg); transform-origin: 50% 90%; transition: all 1s cubic-bezier(.3, 1.6, .5, 1); }
.wilt.wet { filter: none; transform: translate(-50%, -50%) scale(1.25); }
.sprouts { display: flex; gap: 10%; opacity: .25; filter: saturate(0); transition: all 1s; }
.sprouts span { flex: 1; transform: scale(.5); transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.3, 1.6, .5, 1); }
.sprouts.wet { opacity: 1; filter: none; }
.sprouts.wet span { transform: scale(1.05); }
.pond { aspect-ratio: 2.2; border-radius: 50%; background: radial-gradient(#9A7550, #7A5634); box-shadow: inset 0 6px 0 rgba(0, 0, 0, .2); transition: background 1.2s; }
.pond.wet { background: radial-gradient(circle at 40% 40%, #9FE3FF, #2E8FD9); box-shadow: inset 0 6px 0 rgba(255, 255, 255, .4), 0 0 0 4px #7CC36A; }
.rainbow { position: absolute; left: 18%; width: 64%; top: 6%; z-index: 1; opacity: 0; transition: opacity 1.5s, transform 1.5s; transform: scale(.9); transform-origin: 50% 100%; pointer-events: none; }
.rainbow svg { display: block; width: 100%; }
.rainbow.on { opacity: .8; transform: none; }

/* copos */
.cups { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: clamp(10px, 3vw, 30px); justify-content: center; width: 100%; }
.cup { border: 3px solid var(--line); background: #fff; border-radius: 28px; padding: 16px 10px 14px; display: grid; justify-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 2.2vw, 22px); box-shadow: 0 6px 0 var(--line); line-height: 1.1; }
.cup-art { width: 70%; animation: bob 3s ease-in-out infinite; }
.cup-svg { width: 100%; display: block; }
.cup.ok { border-color: var(--green); background: var(--green-soft); }
.cup.no { opacity: .5; border-color: var(--red); }
.planet { width: 100%; max-width: 760px; background: #fff; border-radius: 24px; padding: 14px 18px; box-shadow: var(--shadow); display: grid; gap: 8px; animation: rise .6s both; }
.planet p { margin: 0; font-weight: 700; color: var(--ink-2); }
.planet-bar { display: flex; height: 58px; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink); font-weight: 700; color: #fff; }
.planet-bar .salt { flex: 97; background: linear-gradient(90deg, #1C6FB8, #2BB9EB); display: flex; align-items: center; gap: 6px; padding: 0 14px; animation: grow 1.4s cubic-bezier(.2, .9, .3, 1) both; }
.planet-bar .fresh { flex: 6; background: #A7F0FF; color: var(--ink); display: grid; place-items: center; font-size: 13px; }

/* solo */
.find { z-index: 1; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); }
.find.found { z-index: 3; animation: popIn .5s; }
.find.found::after { content: ''; position: absolute; inset: -18%; border-radius: 50%; border: 4px solid #FFE066; animation: ring 1s ease-out 2; }
.dirt { position: absolute; left: 0; right: 0; bottom: 0; top: 37%; width: 100%; height: 63%; z-index: 2; cursor: crosshair; touch-action: none; transition: opacity 1.4s; }
.dirt.fade { opacity: .0; pointer-events: none; }
.dig-hint { z-index: 3; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: clamp(16px, 2vw, 22px); pointer-events: none; animation: nudge 1.4s ease-in-out infinite; transition: opacity .4s; }
.dig-hint.gone { opacity: 0; }

/* horta */
.spot { aspect-ratio: 1; display: grid; place-items: end center; z-index: 2; }
.spot .seed { font-size: clamp(18px, 2.4vw, 32px); animation: popIn .4s; }
.spot.grown { animation: popIn .6s; }
.spot img.spr { height: 100%; }
.scene.farm[data-stage="adubo"] .spot::before, .scene.farm[data-stage="agua"] .spot::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 20%; border-radius: 50%; background: #5A3A1C; opacity: .5; }
.scene.farm[data-stage="agua"] .spot::before { background: #3A5A8C; }
.farm-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.burst { position: absolute; top: 20%; font-size: clamp(18px, 2.4vw, 30px); animation: fallIn 1.8s ease-in both; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 170px)); gap: 12px; justify-content: center; width: 100%; }
.tool { border: 3px solid var(--line); background: #fff; border-radius: 22px; padding: 8px 6px; display: grid; justify-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; box-shadow: 0 5px 0 var(--line); }
.tool-emo { font-size: 38px; line-height: 1.1; }
.tool.next-up { border-color: var(--c); animation: glowBox 1.4s ease-in-out infinite; }
.tool.ok { background: var(--green-soft); border-color: var(--green); opacity: .7; }

/* rio */
.murk { position: absolute; left: 0; right: 0; top: 46%; bottom: 0; z-index: 1; background: linear-gradient(180deg, rgba(110, 90, 50, 0), rgba(110, 90, 50, .9) 22%, rgba(90, 75, 40, .95)); transition: opacity .6s; pointer-events: none; mix-blend-mode: multiply; }
.trash { z-index: 3; cursor: grab; touch-action: none; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); }
.trash.gone { transition: transform .4s, opacity .4s; opacity: 0; transform: translate(-50%, -50%) scale(.2); pointer-events: none; animation: none; }
.trash.selected { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 10px #FFE066); }
.critter { z-index: 2; opacity: 0; transform: translate(-50%, 40%) scale(.4); transition: all .8s cubic-bezier(.3, 1.6, .5, 1); }
.critter.back { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: swim 4s ease-in-out infinite .8s; }
.rbins { display: grid; grid-template-columns: repeat(5, minmax(0, 150px)); gap: 10px; justify-content: center; width: 100%; }
.rbin { display: grid; justify-items: center; gap: 2px; background: #fff; border-radius: 20px; padding: 8px 4px; border: 4px solid color-mix(in srgb, var(--b) 40%, #fff); font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: var(--shadow); transition: transform .15s; }
.rbin-art { width: 64%; }
.bin-svg { width: 100%; display: block; }
.rbin.over { transform: scale(1.08); border-color: var(--b); }

/* rua e bueiro */
.stormcloud { width: 24%; transition: none; }
.scene.rain .scene-bg { filter: brightness(.82) saturate(.8); }
.drain { aspect-ratio: 2.4; border-radius: 6px; z-index: 2; }
.drain.flow::after { content: '🌀'; position: absolute; inset: -60% 0 0; display: grid; place-items: center; font-size: clamp(20px, 3vw, 40px); animation: spin 1s linear infinite; }
.drain.clogged::after { content: '⛔'; position: absolute; inset: -80% 0 0; display: grid; place-items: center; font-size: clamp(18px, 2.6vw, 34px); animation: popIn .4s; }
.flood { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 4; background: linear-gradient(180deg, rgba(120, 150, 170, .55), rgba(80, 110, 140, .8)); transition: height 2.4s ease-out; pointer-events: none; }
.flood.up { height: 34%; }
.strash { border: 0; background: none; padding: 0; z-index: 3; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); animation: wobble 2.4s ease-in-out infinite; }
.strash.gone { transition: all .5s cubic-bezier(.5, -.5, .5, 1); left: 96% !important; top: 4% !important; opacity: 0; transform: translate(-50%, -50%) scale(.3); pointer-events: none; }
.strash.to-drain { transition: all 1s ease-in; left: 45.6% !important; top: 86% !important; transform: translate(-50%, -50%) scale(.5); opacity: .8; }
.big-btn.again { --c: #2E8FD9; }

/* caminhão */
.load { display: grid; gap: 14px; justify-items: center; width: 100%; }
.load-truck { position: relative; width: min(560px, 90%); padding-top: 4px; border-radius: 26px; transition: transform .2s; }
.load-art { width: 100%; }
.load-box { position: absolute; left: 4%; top: 6%; width: 60%; height: 58%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2%; z-index: 2; pointer-events: none; }
.load-box span { width: 22%; aspect-ratio: 1; animation: popIn .4s; }
.drive-truck { z-index: 3; transition: left .05s linear; }
.drive-truck.moving img { animation: rumble .2s linear infinite; }
.finish { z-index: 2; font-size: clamp(30px, 5vw, 64px); animation: bob 2s ease-in-out infinite; }
.big-btn.gas { --c: #F07F1A; min-height: 78px; font-size: 26px; touch-action: none; -webkit-user-select: none; }
.big-btn.gas:active { transform: scale(.97) translateY(4px); }
.shelf-item { z-index: 2; animation: dropIn .5s cubic-bezier(.3, 1.6, .5, 1) both; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .25)); transform: translate(-50%, -100%); }

/* caminhos */
.zone { position: absolute; left: 0; right: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-start; padding: 8px; transition: background .2s; }
.zone.over { background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .9); }
.zone-label { background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 2px 14px; font-family: var(--display); font-weight: 800; font-size: clamp(14px, 1.8vw, 22px); box-shadow: var(--shadow); pointer-events: none; }
.mover { position: absolute; left: 0; width: 11%; z-index: 2; transform: translate(-50%, -50%); animation: crossing 11s linear infinite; pointer-events: none; }
.mover.m-ar { width: 12%; }
.mover.m-agua { animation-name: crossing, float; }

/* volta ao mundo */
.wpin { z-index: 2; display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.wpin span { font-size: clamp(22px, 3.4vw, 46px); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); }
.wpin b { background: #fff; border-radius: 999px; padding: 0 12px; font-family: var(--display); font-size: clamp(13px, 1.7vw, 20px); box-shadow: var(--shadow); }
.wclock { position: absolute; right: 2%; top: 3%; z-index: 4; background: #fff; border-radius: 999px; padding: 4px 16px; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow); }
.traveler { z-index: 3; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .35)); }
.traveler.stuck { animation: shake .5s; }
.traveler.stuck::after { content: '💦'; position: absolute; right: -30%; top: -40%; font-size: clamp(20px, 3vw, 38px); }
.choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.choice { border: 3px solid var(--line); background: #fff; border-radius: 22px; padding: 8px 14px; min-width: 130px; display: grid; justify-items: center; gap: 2px; font-family: var(--display); font-weight: 800; font-size: 19px; box-shadow: 0 5px 0 var(--line); }
.choice.wide { min-width: 220px; }
.choice-art { width: 90px; height: 56px; }
.choice.picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.choice.tried { opacity: .75; }

/* corrida e trânsito */
.racer { z-index: 3; transition: left .15s ease-out; }
.racer.kick img { animation: rumble .2s; }
.finish-line { position: absolute; left: 88%; top: 58%; height: 32%; width: 2.2%; z-index: 1; background: repeating-conic-gradient(#1F2A44 0 25%, #fff 0 50%) 0 0 / 50% 14%; border-radius: 4px; }
.race-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.puff { font-size: clamp(16px, 2.4vw, 30px); animation: puff 1.6s ease-out forwards; }
.puff.big { font-size: clamp(24px, 3.6vw, 46px); }
.meters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.meter { background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 800; box-shadow: var(--shadow); font-size: 18px; }
.meter b { font-family: var(--display); color: color-mix(in srgb, var(--c) 80%, #000); }
.big-btn.pedal { --c: #E5484D; min-height: 84px; font-size: 30px; padding: 14px 54px; }
.count { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; font-family: var(--display); font-weight: 800; font-size: clamp(60px, 12vw, 150px); color: #fff; text-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(0, 0, 0, .3); animation: popIn .5s; }
.crowd { z-index: 2; display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; transition: opacity .5s; }
.crowd span { transition: transform .5s ease-in, opacity .5s; }
.crowd span.in { transform: translate(-260%, -120%) scale(.4); opacity: 0; }
.crowd.gone span { opacity: 0; transform: translateY(30%) scale(.6); }
.person { width: 100%; display: block; }
.road-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.jam-car { position: absolute; width: 8%; transform: translate(-50%, -50%); animation: jam 2.4s cubic-bezier(.2, .8, .4, 1) both; }
.jam-car img { animation: rumble .3s linear infinite; }
.the-bus { position: absolute; width: 22%; top: 72%; left: 66%; transform: translate(-50%, -50%); animation: busIn 1.6s cubic-bezier(.2, .8, .3, 1) both; }
.the-bus.leave { transition: left 1.6s ease-in; left: 130%; }

/* ---------- comemoração / carimbo ---------- */
.celebrate-wrap { min-height: 100dvh; display: grid; place-items: start center; padding: 5vh 16px 40px; background: radial-gradient(circle at 50% 22%, #fff, color-mix(in srgb, var(--c) 22%, var(--paper)) 70%); }
.celebrate { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 860px; width: 100%; }
.celebrate h1 { font-size: clamp(40px, 7vw, 72px); text-shadow: 0 4px 0 #fff; }
.pass-page { width: 260px; height: 230px; border-radius: 20px; display: grid; place-items: center; background: repeating-linear-gradient(0deg, #FBF5E6 0 26px, #F1E8D2 26px 27px); border: 4px solid #E3D6B8; box-shadow: var(--shadow); transform: rotate(-2deg); }
.stamp-slam { animation: slam .55s .45s cubic-bezier(.5, 0, .7, 1.4) both; transform: rotate(-12deg); }
.stamp { display: block; }
.stamp.off { opacity: .55; }
.bigstars { display: flex; gap: 12px; }
.bigstars span { width: clamp(64px, 10vw, 96px); aspect-ratio: 1; animation: starIn .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d); }
.bigstars span.off { opacity: .5; }
.bigstars svg { width: 100%; height: 100%; }
.cele-sub { margin: 0; font-weight: 800; color: var(--ink-2); font-size: 20px; }
.cele-garden { margin: 4px 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.8vw, 27px); background: #fff; border-radius: 22px; padding: 10px 22px; box-shadow: var(--shadow); }
.party-buddy { width: min(200px, 44vw); aspect-ratio: 1; animation: hop 1.2s ease-in-out infinite; }
.score { font-family: var(--display); font-size: 30px; font-weight: 800; }
.score b { font-size: 84px; color: var(--c); line-height: 1; }
.review { width: 100%; text-align: left; background: #fff; border-radius: 26px; padding: 18px 20px; box-shadow: var(--shadow); }
.review h2 { font-size: 24px; margin-bottom: 8px; }
.review ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rev { border-left: 6px solid var(--yellow); padding: 6px 12px; background: var(--yellow-soft); border-radius: 12px; }
.rev p { margin: 2px 0; font-size: 17px; }
.rev-no { color: var(--red); font-weight: 700; }
.rev-ok { color: var(--green-d); font-weight: 800; }
.rev-ex { color: var(--ink-2); }

/* ---------- passaporte ---------- */
.pass-book { width: 100%; background: repeating-linear-gradient(0deg, #FBF5E6 0 30px, #F1E8D2 30px 31px); border: 5px solid #7B4FE0; border-radius: 28px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stamp-cell { border: 0; background: rgba(255, 255, 255, .55); border-radius: 20px; padding: 10px 6px; display: grid; justify-items: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.1; }
.stamp-cell svg { transform: rotate(-8deg); }
.stamp-cell:nth-child(even) svg { transform: rotate(7deg); }
.pass-foot { margin: 0; text-align: center; font-weight: 800; color: var(--ink-2); }
.cert { width: 100%; display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #FFF4C9, #FFE1F0); border: 5px solid #F2B705; border-radius: 28px; padding: 16px 22px; box-shadow: var(--shadow); }
.cert.glow { animation: glowBox 1.6s ease-in-out 4; }
.cert-buddy { width: 130px; height: 130px; flex: none; animation: hop 1.4s ease-in-out infinite; }
.cert h2 { font-size: clamp(28px, 4vw, 42px); margin: 4px 0; }
.cert p { margin: 0 0 10px; font-weight: 700; color: var(--ink-2); }

/* ---------- simulado ---------- */
.card-resp { width: 100%; max-width: 900px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 10px 16px; }
.card-resp summary { font-weight: 800; cursor: pointer; padding: 4px 0; }
.answer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; padding: 8px 0 4px; }
.ag { border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; font-size: 14px; padding: 4px 2px; display: grid; justify-items: center; color: var(--ink-2); min-height: 52px; }
.ag b { font-family: var(--display); font-size: 18px; color: var(--c); min-height: 1.2em; }
.ag.filled { background: color-mix(in srgb, var(--c) 10%, #fff); border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.ag.cur { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.exam-q { width: 100%; display: grid; justify-items: center; }
.exam-nav { display: flex; gap: 12px; justify-content: space-between; width: 100%; max-width: 900px; }

/* ---------- pais ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; width: 100%; }
.panel { background: #fff; border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.panel.wide { grid-column: 1 / -1; }
.panel h3 { font-size: 24px; }
.panel p { margin: 0; color: var(--ink-2); }
.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px dashed var(--line); padding: 6px 0; font-size: 17px; }
.kv b { white-space: nowrap; color: var(--purple); }
.parents { -webkit-user-select: text; user-select: text; }

/* ---------- confete ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 3px; animation: confetti 2s ease-in forwards; }

/* ---------- keyframes ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.map-buddy { animation-name: bobPin; }
@keyframes bobPin { 0%, 100% { transform: translate(-125%, -95%); } 50% { transform: translate(-125%, -110%); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-24px) rotate(-6deg); } 65% { transform: translateY(0) rotate(3deg); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { 0% { scale: .2; opacity: 0; } 70% { scale: 1.1; opacity: 1; } 100% { scale: 1; } }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
@keyframes pinbounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes ring { from { scale: .7; opacity: 1; } to { scale: 1.5; opacity: 0; } }
@keyframes drip { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-50%, 220%) scale(1); opacity: 0; } }
@keyframes rainfall { to { background-position: 0 60px; } }
@keyframes grow { from { flex-grow: 0; } }
@keyframes fallIn { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(260%) rotate(160deg); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -6px; rotate: 4deg; } }
@keyframes wobble { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes swim { 0%, 100% { translate: -14px 0; } 50% { translate: 14px -6px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes rumble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes dropIn { from { translate: 0 -80px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes crossing { from { left: -10%; } to { left: 110%; } }
@keyframes puff { 0% { scale: .4; opacity: .9; } 100% { scale: 1.8; opacity: 0; translate: -20px -40px; } }
@keyframes jam { from { left: -14%; } to { left: var(--to); } }
@keyframes busIn { from { left: -20%; } to { left: 66%; } }
@keyframes slam { 0% { transform: scale(3) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
@keyframes starIn { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes glowBox { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 30%, transparent), var(--shadow); } }
@keyframes confetti { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes slowpan { from { transform: scale(1.04) translate(-1%, 0); } to { transform: scale(1.1) translate(1%, -1%); } }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes drift { from { translate: -40% 0; } to { translate: 40% 0; } }
@keyframes jump { 0%, 60%, 100% { translate: 0 0; rotate: 0deg; opacity: 0; } 65% { opacity: 1; } 75% { translate: 8px -26px; rotate: -30deg; } 88% { translate: 16px 0; rotate: 30deg; opacity: 1; } 92% { opacity: 0; } }
@keyframes sail { from { translate: -60% 0; } to { translate: 80% -10%; } }
@keyframes hover { from { translate: -80% 10%; } to { translate: 120% -20%; } }
@keyframes ride { from { translate: -70% 0; } to { translate: 70% 10%; } }
@keyframes truckroute { 0% { left: 40%; top: 50%; opacity: 0; } 5% { opacity: 1; } 30% { left: 46%; top: 59%; } 55% { left: 55%; top: 53%; } 80% { left: 64%; top: 41%; } 95% { opacity: 1; } 100% { left: 68%; top: 30%; opacity: 0; } }
@keyframes takeoff { 0% { left: 62%; top: 18%; scale: .8; opacity: 0; } 8% { opacity: 1; } 45% { left: 80%; top: 24%; scale: .9; } 70% { left: 92%; top: 14%; scale: 1.3; } 85% { left: 102%; top: 2%; scale: 1.6; opacity: 1; } 100% { left: 106%; top: -4%; opacity: 0; } }
@keyframes trainroute { 0% { left: 62%; top: 37%; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { left: 102%; top: 56%; opacity: 0; } }
@keyframes busroute { 0% { left: 70%; top: 29%; opacity: 0; } 8% { opacity: 1; } 50% { left: 66%; top: 41%; } 92% { opacity: 1; } 100% { left: 58%; top: 56%; opacity: 0; } }
.l-train img { rotate: 16deg; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.pop { animation: popIn .4s; }

/* telas pequenas */
@media (max-width: 760px) {
  .home-tools .toggles { display: none; }
  .pin-label { display: none; }
  .pin.is-next .pin-label { display: flex; }
  .cups { grid-template-columns: repeat(3, 1fr); }
  .rbins { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .rbin { font-size: 13px; padding: 6px 2px; }
  .tools { grid-template-columns: repeat(4, 1fr); }
  .tool { font-size: 15px; } .tool-emo { font-size: 28px; }
  .card { width: 96px; } .card.long { width: 128px; } .card-art { width: 60px; height: 48px; } .card-label { font-size: 14px; }
  .scene { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confetti { display: none; }
}
.stage:has(.lanes) .card { width: 104px; padding: 4px; }
.stage:has(.lanes) .card-art { width: 76px; height: 44px; }
