/* Interface do Monkey Up: botões gordos com contorno, tudo em CSS (sem imagens). Celular em pé. */
:root {
  --ink: #32170e;
  --cream: #fff0ca;
  --banana: #ffce2e;
  --leaf: #5fae46;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #245e45; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; }
@media (min-aspect-ratio: 1/1) {
  body { background: #2f805b; }
  body::before {
    content: ''; position: fixed; inset: -24px;
    background: var(--side-bg, url('../../floresta-profunda-DkGzudbi.webp')) center / cover no-repeat;
    filter: blur(10px) saturate(1.05) brightness(.92); pointer-events: none; z-index: 0;
  }
  /* escurece para as bordas e faz sombra junto da coluna do jogo (profundidade) */
  body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 35%, #0b1f1688 100%),
      linear-gradient(90deg, transparent calc(50% - min(50vw, 31vh) - 60px), #0006 calc(50% - min(50vw, 31vh)), transparent calc(50% - min(50vw, 31vh) + 1px),
        transparent calc(50% + min(50vw, 31vh) - 1px), #0006 calc(50% + min(50vw, 31vh)), transparent calc(50% + min(50vw, 31vh) + 60px));
  }
  #app { left: 50%; right: auto; width: min(100vw, 62vh); transform: translateX(-50%); box-shadow: 0 0 30px #194c3670; }
}
#game { display: block; touch-action: none; }
#ui { position: absolute; inset: 0; pointer-events: none; }
.screen-leaf {
  position: fixed; bottom: -2px; z-index: 10; width: clamp(70px, 13vw, 200px); aspect-ratio: 1;
  background-position: center bottom; background-size: contain; background-repeat: no-repeat; pointer-events: none;
  animation: leaf-sway 4s ease-in-out infinite alternate;
}
.screen-leaf-left { left: 0; background-image: url('../../folha-canto-esq-CQ5jgWiu.webp'); transform-origin: left bottom; }
.screen-leaf-right { right: 0; background-image: url('../../folha-canto-dir-a-TUMl9h.webp'); transform-origin: right bottom; animation-delay: -2s; }
@keyframes leaf-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .screen-leaf { animation: none; } }

.hud {
  position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left));
  right: 44px; display: flex; gap: 8px; align-items: center; height: 44px;
}
.chip {
  display: flex; align-items: center; gap: 4px; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px;
  padding: 3px 10px; font-weight: 600; font-size: 16px; box-shadow: 0 3px 0 var(--ink); font-variant-numeric: tabular-nums;
}
.chip .of { opacity: 0.55; font-size: 13px; }
.chip.fps { font-size: 12px; padding: 2px 8px; margin-left: auto; opacity: 0.85; }
.chip.fps.bad { background: #ffb3a8; }
.chip.time { min-width: 66px; justify-content: center; }
.chip.time.over { color: #c0392b; }
#bchip.bump { animation: bump 0.25s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }
.bico { display: inline-block; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--banana); border: 2px solid var(--ink); transform: rotate(-30deg); }
.fly { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; transition: left 0.45s cubic-bezier(.5, 0, .9, .6), top 0.45s cubic-bezier(.1, .4, .4, 1); z-index: 5; }

.pause-btn {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 14px; border: 3px solid var(--ink); background: var(--banana);
  box-shadow: 0 3px 0 var(--ink); display: flex; gap: 6px; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.pause-btn i { display: block; width: 6px; height: 18px; background: var(--ink); border-radius: 2px; }
.pause-btn:active, .btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* barra de subida na direita: o cacho no topo, a bolinha é o macaco */
.progress {
  position: absolute; right: max(12px, env(safe-area-inset-right)); top: 90px; bottom: 60px; width: 12px;
  background: rgba(13, 13, 19, 0.35); border: 3px solid var(--ink); border-radius: 8px;
}
.progress .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--banana); border-radius: 4px; }
.progress .dot { position: absolute; left: 50%; width: 20px; height: 20px; margin: 0 0 -10px -10px; background: #98613a; border: 3px solid var(--ink); border-radius: 7px; }
.progress .top-bunch { position: absolute; left: 50%; top: -26px; width: 22px; height: 22px; margin-left: -11px; background: var(--banana); border: 3px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-30deg); }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; pointer-events: auto; text-align: center; }
.overlay.hidden { display: none; }
.title { background: linear-gradient(180deg, rgba(13, 13, 19, 0.05), rgba(13, 13, 19, 0.5)); cursor: pointer; align-content: start; padding-top: 14vh; }
.title h1 {
  font-family: 'Nunito', sans-serif; font-weight: 400; margin: 0; font-size: clamp(64px, 24vw, 130px); line-height: 0.88;
  color: var(--banana); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink);
  transform: rotate(-4deg); animation: logoIn 0.6s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes logoIn { from { transform: scale(0.6) rotate(-10deg); opacity: 0; } }
.title .sub, .title .tap, .title .hint, .hint-label { color: #fff; font-weight: 700; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.title .sub { margin: 18px 0 0; font-size: 19px; }
.title .tap { margin: 0; font-size: 26px; text-transform: uppercase; letter-spacing: .06em; color: var(--banana); animation: pulse 1.2s ease-in-out infinite; }
.title .hint { margin: 0; font-size: 16px; }
@keyframes pulse { 50% { transform: scale(1.06); } }

#result, #pausemenu { background: rgba(13, 13, 19, 0.4); }
.card {
  background: var(--cream); border: 4px solid var(--ink); border-radius: 22px; padding: 16px 24px 20px;
  box-shadow: 0 6px 0 var(--ink); width: min(300px, 84vw); animation: pop 0.35s cubic-bezier(.2, 1.6, .4, 1);
}
.card h2 { font-family: 'Nunito', sans-serif; font-weight: 400; margin: 0 0 8px; font-size: 40px; color: var(--banana); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.card .row { display: flex; justify-content: space-between; font-size: 18px; padding: 3px 0; }
.btn {
  display: block; margin-top: 12px; width: 100%; font: 600 20px 'Nunito', sans-serif; padding: 10px 16px; border-radius: 16px;
  border: 3px solid var(--ink); background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--ink); cursor: pointer;
  font-weight: 700; text-shadow: 0 2px 0 #2f5a1e;
}
.btn-alt { background: var(--banana); color: var(--ink); text-shadow: none; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

.stars { display: flex; justify-content: center; gap: 4px; margin: 2px 0 10px; }
.star-box { display: flex; flex-direction: column; align-items: center; width: 33%; gap: 2px; }
.star-box small { font-size: 12px; line-height: 1.1; opacity: 0.8; }
.star {
  width: 48px; height: 48px; background: #d9d2c4;
  clip-path: polygon(50% 2%, 63% 36%, 99% 38%, 71% 60%, 81% 96%, 50% 75%, 19% 96%, 29% 60%, 1% 38%, 37% 36%);
  transform: scale(0); animation: starIn 0.35s cubic-bezier(.2, 1.8, .4, 1) forwards;
}
.star.on { background: var(--banana); }
@keyframes starIn { to { transform: scale(1); } }
#r-best.new { color: #d9480f; }

#rotate { background: #245e45; color: #fff; font-size: 24px; font-weight: 600; }
#ui.on-title .hud, #ui.on-result .hud, #ui.on-title .progress, #ui.on-result .progress { display: none; }

.hint-label {
  position: absolute; transform: translateX(-50%); font-size: 17px; white-space: nowrap;
}
.hint-label.hidden { display: none; }

/* HUD: contadores de madeira escura com aro dourado, números brancos grossos com sombra dura
   (mesmo princípio do Bubble e do Aurora Words: painel escuro lê sobre qualquer fundo claro). */
.chip {
  height: 40px; padding: 0 14px 0 10px; gap: 6px; border-radius: 999px; border: 3px solid #2a1208;
  background: linear-gradient(180deg, #8a4f2a, #5a2c14);
  box-shadow: inset 0 0 0 2px #e9a55c, inset 0 3px 0 #b8743f, 0 4px 0 #2a1208, 0 6px 12px #12301f55;
  color: #fff; font: 700 20px/1 'Nunito', sans-serif; text-shadow: 0 2px 0 #2a1208;
}
.chip b { font-weight: 700; }
.chip .of { color: #ffe3a8; opacity: 0.75; font-size: 14px; }
.chip .bico { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 #2a1208); }
.chip.time { min-width: 76px; padding: 0 12px; }
.chip.time.over { color: #ffb3a8; }
.chip.fps {
  height: auto; margin-left: auto; padding: 2px 8px; border-width: 2px; box-shadow: none;
  background: #2a1208aa; font: 600 11px/1.2 'Nunito', sans-serif; text-shadow: none; opacity: 0.8;
}
.chip.fps.bad { background: #b3261eaa; }
.bico { border: 0; border-radius: 0; background: url('../../banana-DFyiVA1X.webp') center / contain no-repeat; transform: none; }
.pause-btn {
  border-radius: 50%; border-color: #4a2311;
  background: url('../../pino-Dgr0YMHi.webp') center / cover no-repeat;
  box-shadow: inset 0 0 0 3px #f8bd6b, 0 3px 0 #633013;
}
.pause-btn i { background: #fff0ca; border: 1px solid #4a2311; width: 7px; }
.progress {
  width: 20px; background: #fff0ca; border: 3px solid #4a2311; border-radius: 12px;
  box-shadow: 0 0 0 2px #e3a058, 0 3px 0 #713a19;
}
.progress .fill { background: linear-gradient(90deg, #eaa51e, #ffdb43 45%, #fff18c); border-radius: 8px; }
.progress .dot {
  width: 28px; height: 28px; margin: 0 0 -14px -14px; border: 0; border-radius: 50%;
  background: url('../../pino-Dgr0YMHi.webp') center / contain no-repeat;
  filter: drop-shadow(0 2px 1px #44200e88);
}
.progress .top-bunch {
  top: -37px; width: 34px; height: 34px; margin-left: -17px; border: 0; border-radius: 0;
  background: url('../../banana-DFyiVA1X.webp') center / contain no-repeat;
  transform: rotate(-12deg); filter: drop-shadow(0 0 5px #ffe769);
}
@media (min-aspect-ratio: 1/1) { .progress { right: -38px; } }

/* Celebração da fase: placa de madeira, prêmio e estrelas em primeiro plano. */
#result { background: rgba(19, 53, 37, .64); }
.result-card {
  position: relative; width: min(318px, 88vw); padding: 48px 20px 20px;
  background: linear-gradient(#fff5d8, #ffe8af); border: 5px solid #713719; border-radius: 28px;
  box-shadow: inset 0 0 0 4px #e9a55c, 0 8px 0 #48220f, 0 16px 26px #173d2c70;
  animation: result-arrive .45s cubic-bezier(.2, 1.35, .4, 1) both;
}
.result-card::before, .result-card::after {
  content: ''; position: absolute; top: 16px; width: 12px; height: 12px; border: 2px solid #9c5626;
  border-radius: 50%; background: #efb469; box-shadow: inset 1px 2px #ffe0a0;
}
.result-card::before { left: 16px; } .result-card::after { right: 16px; }
.result-prize {
  position: absolute; left: 50%; top: -76px; width: 142px; height: 120px; transform: translateX(-50%);
  background: url('../../premio-B0hPkr-_.webp') center / contain no-repeat;
  filter: drop-shadow(0 5px 0 #68321566);
}
.result-heading { margin-bottom: 12px; }
.result-stage { display: block; font-size: 12px; line-height: 1; letter-spacing: .11em; text-transform: uppercase; color: #8f582b; }
.result-heading h2 {
  margin: 4px 0 0; font: 400 42px/.9 'Nunito', sans-serif; color: #ffca32;
  -webkit-text-stroke: 3px #663314; paint-order: stroke fill; text-shadow: 0 3px 0 #b15c1f;
}
#result .stars { align-items: start; gap: 4px; margin: 5px 0 17px; }
#result .star-box { gap: 6px; color: #714521; }
#result .star-box small { min-height: 26px; max-width: 80px; font-size: 11px; line-height: 1.15; opacity: 1; }
#result .star { width: 52px; height: 52px; background: #b7a796; filter: drop-shadow(0 3px 0 #70452a); }
#result .star.on { background: linear-gradient(145deg, #fff195, #ffd12d 48%, #ed941c); }
.result-stats { display: flex; justify-content: space-between; border-top: 2px solid #d9b37a; border-bottom: 2px solid #d9b37a; padding: 10px 0; }
.result-stat { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.result-stat + .result-stat { border-left: 1px solid #dec49a; }
.result-stat span, .result-best span { font-size: 12px; color: #855a36; }
.result-stat b { font-size: 20px; line-height: 1.2; color: #4e2a18; }
.result-best { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 2px 2px; }
.result-best b { color: #663c20; font-size: 15px; }
#result #r-best.new { color: #a54c12; }
#result .btn { margin-top: 12px; min-height: 48px; background: #62a83d; border-color: #4a2917; box-shadow: inset 0 3px #9cce71, 0 4px 0 #4a2917; }
#result .btn:active { box-shadow: inset 0 3px #9cce71; }
@keyframes result-arrive { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@media (max-height: 650px) {
  .result-card { padding: 32px 17px 14px; }
  .result-prize { width: 105px; height: 82px; top: -49px; }
  .result-heading { margin-bottom: 5px; }
  .result-heading h2 { font-size: 34px; }
  #result .stars { margin: 2px 0 6px; }
  #result .star { width: 40px; height: 40px; }
  .result-stats { padding: 6px 0; }
  #result .btn { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .result-card, #result .star { animation-duration: .01ms; animation-delay: 0s !important; } }
.card { border-color: #4a2311; box-shadow: inset 0 0 0 4px #e6a65c, 0 6px 0 #633013; }
.btn { background: #6aac49; border-color: #4a2311; box-shadow: 0 4px 0 #633013; }
.btn-alt { background: #ffce2e; }
.star { background: #b7a18a; filter: drop-shadow(0 2px 0 #4a2311); }
.star.on { background: #ffce2e; }

/* sequência de bananas (x2, x3...) e faixa do ponto de volta */
.combo { position: absolute; transform: translate(-50%, -50%); font-family: 'Nunito', sans-serif; font-size: 28px; color: var(--banana);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); animation: combo-pop 0.7s ease-out forwards; z-index: 4; }
@keyframes combo-pop {
  0% { transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 0.4)); opacity: 0; }
  25% { transform: translate(-50%, -80%) scale(calc(var(--s, 1) * 1.15)); opacity: 1; }
  100% { transform: translate(-50%, -160%) scale(var(--s, 1)); opacity: 0; }
}
.cp-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 6px 18px; border-radius: 14px; white-space: nowrap;
  background: linear-gradient(180deg, #8a4f2a, #5a2c14); border: 3px solid #2a1208; color: var(--banana);
  box-shadow: inset 0 0 0 2px #e9a55c, inset 0 3px 0 #b8743f, 0 5px 0 #2a1208, 0 8px 16px #12301f66;
  font-family: 'Nunito', sans-serif; font-size: 26px; letter-spacing: .02em;
  -webkit-text-stroke: 3px #2a1208; paint-order: stroke fill; text-shadow: 0 3px 0 #2a1208; animation: cp-in 1.4s ease-out forwards; z-index: 4; }
@keyframes cp-in {
  0% { transform: translateX(-50%) scale(0.5) rotate(-6deg); opacity: 0; }
  15% { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 1; }
  25%, 75% { transform: translateX(-50%) scale(1) rotate(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-20px) scale(0.95); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .combo, .cp-banner { animation: none; } }

/* dica do tiro no ar: mesma faixa, mais embaixo e em tom de folha para não confundir com o ponto de volta */
.cp-banner.air-tip { top: 34%; font-size: 22px; background: linear-gradient(180deg, #5d9a3c, #3d6d24); }
#result .btn.hidden { display: none; }
#result .btn.btn-alt { background: #ffce2e; color: var(--ink); text-shadow: none; box-shadow: inset 0 3px #fff3a6, 0 4px 0 #4a2917; }

/* ---------- título: toque para começar, idioma e menu ---------- */
.t-bottom { margin-top: 26vh; display: grid; gap: 12px; justify-items: center; width: min(300px, 84vw); }
.t-bottom.hidden, .title .tap.hidden { display: none; }
.btn.lang { width: auto; margin: 0; padding: 8px 14px; font-size: 17px; }
.btn.lang.on { background: #6aac49; color: #fff; text-shadow: 0 2px 0 #2f5a1e; }
.t-menu .btn { margin: 0; }
.btn-big { font-size: 26px; min-height: 60px; }
.t-menu .hint { margin-top: 4px; }

/* ---------- ajustes ---------- */
#settings { background: rgba(19, 53, 37, .64); z-index: 20; }
.card.settings { width: min(340px, 92vw); max-height: 92vh; overflow-y: auto; display: grid; gap: 4px; text-align: left; }
.card.settings h2 { text-align: center; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 2px 0;
  border-bottom: 2px solid #ecd2a2; font-weight: 600; font-size: 17px; color: #4e2a18; cursor: pointer; }
.set-row span { display: grid; gap: 1px; }
.set-row small { font-size: 12px; font-weight: 500; color: #855a36; }
.seg { display: flex; gap: 4px; }
.seg .btn.lang { padding: 6px 8px; font-size: 13px; border-width: 2px; box-shadow: 0 3px 0 #633013; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 46%; height: 12px; border-radius: 99px;
  background: #e2b97a; border: 2px solid #4a2311; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #ffce2e; border: 3px solid #4a2311; box-shadow: 0 2px 0 #633013; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #ffce2e; border: 3px solid #4a2311; }
.tog { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 52px; height: 30px; border-radius: 99px; position: relative;
  background: #c9ad8c; border: 3px solid #4a2311; cursor: pointer; transition: background .15s; }
.tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff0ca; border: 2px solid #4a2311; transition: transform .15s; }
.tog:checked { background: #6aac49; }
.tog:checked::after { transform: translateX(22px); }
input:focus-visible, .btn:focus-visible, .link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.set-erase { padding: 8px 0 2px; display: grid; gap: 8px; }
.link { background: none; border: 0; padding: 6px 0; font: 600 15px 'Nunito', sans-serif; color: #a54c12; text-decoration: underline; cursor: pointer; justify-self: start; }
.link.hidden, .ask.hidden { display: none; }
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #7a2d0c; }
.ask span { flex-basis: 100%; }
.ask .btn { width: auto; margin: 0; padding: 6px 14px; font-size: 16px; }
#s-yes { background: #e2553f; color: #fff; text-shadow: 0 2px 0 #7a1a10; }

/* menos movimento (ajuste do jogador): o mesmo que prefers-reduced-motion */
.reduce-motion .screen-leaf, .reduce-motion .combo, .reduce-motion .cp-banner, .reduce-motion .title .tap, .reduce-motion .title h1 { animation: none; }
.reduce-motion .result-card, .reduce-motion #result .star { animation-duration: .01ms; animation-delay: 0s !important; }

/* ---------- mapa da árvore ---------- */
#map { display: block; background: #12301f; text-align: initial; }
#map.hidden, #lvcard.hidden { display: none; }
.map-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.map-scroll::-webkit-scrollbar { display: none; }
.map-tree { position: relative; }
.map-top { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: 10px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.map-top > * { pointer-events: auto; }
#lvcard { background: rgba(19, 53, 37, .6); z-index: 15; }
.card.lvcard { display: grid; gap: 4px; }
.lvcard h2 { margin: 0 0 4px; }
.lvcard .btn { margin-top: 6px; }
.lvcard .link, .r-map { justify-self: center; }
#result .r-map { display: block; margin: 8px auto 0; }

/* banana dourada no mapa e na placa da fase */
.gold-dot { display: inline-block; width: 20px; height: 24px; background: url('../../banana-dourada-D8TcyciP.webp') center / contain no-repeat; filter: grayscale(1) opacity(.45); }
.gold-dot.on { filter: drop-shadow(0 0 4px #ffd23f); }

/* chapéus nos ajustes */
.set-row.hats { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 0; }
.seg.wrap { flex-wrap: wrap; gap: 6px; }
.seg .btn.hat { display: grid; justify-items: center; line-height: 1.1; min-width: 74px; }
.seg .btn.hat small { font-size: 11px; font-weight: 600; opacity: .8; }
.seg .btn.hat:disabled { filter: grayscale(.8); opacity: .65; cursor: default; }

/* Subida Infinita */
#ui.endless .progress { display: none; }
.t-endless { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.t-endless .btn { margin: 0; font-size: 17px; padding: 8px 6px; }
.t-endless .btn:disabled { filter: grayscale(.8); opacity: .6; cursor: default; }
.t-lock { color: #fff; font-weight: 700; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; margin-top: -4px; }
.t-lock.hidden { display: none; }
#endres { background: rgba(19, 53, 37, .64); }
.endres .result-heading h2 { font-size: 56px; }
#ui.endless .of { display: none; }

/* ---------- laterais no PC: copa pendurada, folhagem de lado e folhas caindo (tema troca as imagens) ---------- */
.side { display: none; }
@media (min-aspect-ratio: 1/1) {
  .side { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
  #app { z-index: 3; }
  .side-canopy { position: absolute; top: -60px; width: clamp(220px, 26vw, 520px); aspect-ratio: 1284 / 1225;
    background: var(--canto-l, url('../../folha-canto-esq-CQ5jgWiu.webp')) center / contain no-repeat; transform: scaleY(-1);
    filter: drop-shadow(0 10px 16px #0005); animation: sway-top 6s ease-in-out infinite alternate; transform-origin: center; }
  .side-canopy-l { left: -30px; }
  .side-canopy-r { right: -30px; background-image: var(--canto-r, url('../../folha-canto-dir-a-TUMl9h.webp')); animation-delay: -3s; }
  .side-mid { position: absolute; top: 42%; width: clamp(180px, 20vw, 380px); aspect-ratio: 4 / 3;
    background: var(--folha, url('../../folhas-BGI7GQkI.webp')) center / contain no-repeat; filter: blur(1.5px) brightness(.9) drop-shadow(0 8px 14px #0005);
    animation: sway-mid 7s ease-in-out infinite alternate; }
  .side-mid-l { left: calc(50% - min(50vw, 31vh) - clamp(180px, 20vw, 380px) + 40px); transform-origin: center; }
  .side-mid-r { right: calc(50% - min(50vw, 31vh) - clamp(180px, 20vw, 380px) + 40px); transform: scaleX(-1); transform-origin: center; animation-delay: -3.5s; }
  .side-fall i { position: absolute; top: -40px; width: 22px; height: 16px; border-radius: 0 70% 0 70%; background: #7fd062; opacity: .85;
    box-shadow: inset -3px -2px 0 #4f9a3a; animation: leaf-fall 11s linear infinite; }
  .side-fall i:nth-child(1) { left: 6%; animation-delay: 0s; }
  .side-fall i:nth-child(2) { left: 14%; animation-delay: -3s; animation-duration: 13s; }
  .side-fall i:nth-child(3) { left: 22%; animation-delay: -7s; animation-duration: 10s; }
  .side-fall i:nth-child(4) { left: 30%; animation-delay: -5s; animation-duration: 14s; }
  .side-fall i:nth-child(5) { right: 6%; animation-delay: -1s; animation-duration: 12s; }
  .side-fall i:nth-child(6) { right: 15%; animation-delay: -8s; }
  .side-fall i:nth-child(7) { right: 23%; animation-delay: -4s; animation-duration: 13s; }
  .side-fall i:nth-child(8) { right: 31%; animation-delay: -9s; animation-duration: 10s; }
  /* temas: cor das folhas que caem; na noite viram vaga-lumes */
  body[data-theme="ruins"] .side-fall i { background: #e8b93a; box-shadow: inset -3px -2px 0 #a8742a; }
  body[data-theme="storm"] .side-fall i { background: #5f9e4a; animation-duration: 6s; }
  body[data-theme="night"] .side-fall i { width: 6px; height: 6px; border-radius: 50%; background: #ffe066; box-shadow: 0 0 10px 3px #ffe06699;
    animation-name: firefly; animation-duration: 9s; }
}
@keyframes sway-top { from { transform: scaleY(-1) rotate(-1.5deg); } to { transform: scaleY(-1) rotate(1.5deg); } }
@keyframes sway-mid { from { rotate: -2deg; } to { rotate: 2deg; } }
@keyframes leaf-fall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(30px, 25vh) rotate(90deg); }
  50% { transform: translate(-20px, 50vh) rotate(200deg); }
  75% { transform: translate(25px, 75vh) rotate(280deg); }
  100% { transform: translate(0, 110vh) rotate(360deg); }
}
@keyframes firefly {
  0% { transform: translate(0, 30vh); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate(40px, 55vh); opacity: .4; }
  80% { opacity: 1; }
  100% { transform: translate(-20px, 85vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .side-canopy, .side-mid, .side-fall i { animation: none; } .side-fall { display: none; } }
.reduce-motion .side-canopy, .reduce-motion .side-mid { animation: none; }
.reduce-motion .side-fall { display: none; }

/* logo em imagem (Codex) no lugar do texto */
.title h1 { -webkit-text-stroke: 0; text-shadow: none; line-height: 0; }
.title h1 .logo { width: min(86vw, 420px); height: auto; filter: drop-shadow(0 8px 0 #2a120866) drop-shadow(0 14px 18px #0005); }
@media (min-aspect-ratio: 1/1) { .title h1 .logo { width: min(52vh, 420px); } }

/* Interface clara, com hierarquia e celebração inspiradas no Bubble. */
body, button, input { font-family: 'Nunito', system-ui, sans-serif; }
.title { padding-top: clamp(18px, 7vh, 64px); }
.title h1 .logo { max-height: 30vh; width: auto; max-width: min(86vw, 420px); }
.t-bottom { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; transform: translateX(-50%); gap: 9px; }
body:has(.t-menu:not(.hidden)) .screen-leaf { opacity: .3; }
.title .sub, .title .tap, .title .hint, .hint-label, .t-lock {
  -webkit-text-stroke: 0; text-shadow: 0 2px 5px #102d25dd; font-weight: 800;
}
.title .tap { font-size: 22px; letter-spacing: .04em; }
.btn { border: 0; border-radius: 16px; background: #287f51; color: #fff; font-weight: 800; text-shadow: none;
  box-shadow: 0 4px 0 #195d3a; min-height: 46px; }
.btn:active { box-shadow: 0 1px 0 #195d3a; }
.btn-alt { background: #e8f1e9; color: #254e39; box-shadow: 0 4px 0 #b9d1bf; }
.card, .result-card {
  background: #fffefa; color: #243e30; border: 1px solid #dbe8dc; border-radius: 26px;
  box-shadow: 0 6px 0 #b4cdb8, 0 16px 36px #102e2370;
}
.card h2, .result-heading h2 {
  font-family: 'Nunito', sans-serif; font-weight: 900; color: #244c37;
  -webkit-text-stroke: 0; text-shadow: none;
}
.result-card::before, .result-card::after { display: none; }
.result-card { padding-top: 24px; }
.result-prize { display: none; }
.result-stage { color: #64836c; }
.result-heading h2 { font-size: 36px; }
.result-stat span, .result-best span { color: #637e69; }
.result-stat b, .result-best b { color: #284f39; }
.result-stats { border-color: #e1ebe1; }
.result-stat + .result-stat { border-color: #e1ebe1; }
#result .btn { background: #287f51; box-shadow: 0 4px 0 #195d3a; }
#result .btn.btn-alt { background: #e8f1e9; color: #254e39; box-shadow: 0 4px 0 #b9d1bf; }
#result { overflow: hidden; isolation: isolate; }
#result::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 13%; width: min(200vw, 820px); aspect-ratio: 1;
  background: url('../../brilho-vitoria-Df4Yz0Ik.webp') center / contain no-repeat; opacity: .85; pointer-events: none;
  animation: victory-rays 24s linear infinite; filter: saturate(1.3) brightness(1.1);
}
#result .result-card { z-index: 1; }
@keyframes victory-rays { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.star, #result .star {
  clip-path: none; background: url('../../estrela-vazia-B7pt6qQI.webp') center / contain no-repeat;
  filter: none; transform: none; animation: none;
}
.star.on, #result .star.on {
  background: url('../../estrela-ganha-DQN-SjjV.webp') center / contain no-repeat;
  animation: reward-star .55s cubic-bezier(.2, 1.4, .35, 1) backwards;
}
#result .star-box:nth-child(2) .star, .lvcard .star-box:nth-child(2) .star { width: 58px; height: 58px; }
.star-box { justify-content: start; }
#result .star-box, .lvcard .star-box { color: #57715e; }
@keyframes reward-star { from { opacity: 0; transform: scale(1.9) rotate(-32deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
#settings .settings { background: #fffefa; width: min(350px, 92vw); padding: 22px; gap: 6px; }
#settings .settings > * { min-width: 0; }
#settings .settings h2 { text-align: left; font-size: 29px; margin-bottom: 8px; }
#settings .set-row { border-color: #edf2ed; color: #294735; font-size: 15px; min-height: 44px; }
#settings .set-row small { color: #708b75; }
#settings .seg .btn { border: 0; box-shadow: none; min-height: 34px; background: #edf3ed; color: #31533d; text-shadow: none; }
#settings .seg .btn.on { background: #287f51; color: #fff; }
#settings input[type='range'] { border: 0; height: 8px; background: #d5e4d7; }
#settings input[type='range']::-webkit-slider-thumb { border: 2px solid #287f51; background: #fff; box-shadow: 0 2px 4px #164b3244; }
#settings input[type='range']::-moz-range-thumb { border: 2px solid #287f51; background: #fff; }
#settings .tog { border: 0; background: #d4ded6; }
#settings .tog:checked { background: #287f51; }
#settings .tog::after { border: 0; top: 4px; left: 4px; width: 22px; height: 22px; background: #fff; }
#settings .link { color: #875339; }
@media (max-width: 360px) {
  #settings .settings { padding: 18px; }
  #settings .set-row { gap: 6px; font-size: 14px; }
  #settings .seg .btn.lang { padding-inline: 6px; font-size: 11px; }
}
:is(.btn, .link, input):focus-visible { outline: 3px solid #56a96d; outline-offset: 3px; }
@media (max-height: 650px) { #result .star-box:nth-child(2) .star, .lvcard .star-box:nth-child(2) .star { width: 45px; height: 45px; } }
@media (max-height: 650px) { .t-menu .btn-big { min-height: 48px; } .t-menu { gap: 6px; } .t-menu .hint { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { #result::before { animation: none; } .star.on { animation-duration: .01ms; animation-delay: 0s !important; } }
.reduce-motion #result::before { animation: none; }
.reduce-motion .star.on { animation-duration: .01ms; animation-delay: 0s !important; }

/* HUD maior (pedido do William: estava pequeno) */
.hud { height: 58px; gap: 10px; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: 48px; }
.pause-btn { width: 56px; height: 56px; }
.pause-btn i { width: 8px; height: 22px; }
.chip { height: 52px; padding: 0 18px 0 12px; gap: 8px; font-size: 27px; border-width: 4px;
  box-shadow: inset 0 0 0 2.5px #e9a55c, inset 0 4px 0 #b8743f, 0 5px 0 #2a1208, 0 8px 14px #12301f55; text-shadow: 0 3px 0 #2a1208; }
.chip .of { font-size: 18px; }
.chip .bico { width: 32px; height: 32px; }
.chip.time { min-width: 104px; padding: 0 14px; }
@media (max-width: 370px) { .chip { font-size: 23px; height: 48px; } .chip .bico { width: 28px; height: 28px; } .chip.time { min-width: 90px; } .pause-btn { width: 50px; height: 50px; } }



/* =====================================================================================================
   Interface v3 (01/11/2026): branca, limpa, sem contorno preto; ícones, estrelas e base dos botões do ChatGPT
   (src/assets/icons, src/assets/ui). Todas as classes novas começam com u- para não brigar com as antigas.
   ===================================================================================================== */
:root {
  --u-ink: #3b2414; --u-muted: #a88a63; --u-line: #f0e2c4;
  --u-glow: #ffd96a40; --u-shadow: 0 14px 30px rgba(10, 30, 18, .35);
}
#ui .u-ico { width: 60%; height: 60%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }

/* botão redondo: base creme do ChatGPT; afunda, volta com mola */
#ui .u-rb { --sz: 56px; position: relative; width: var(--sz); height: var(--sz); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: url('../../btn-redondo-CKeE9sDs.webp') center / contain no-repeat; display: grid; place-items: center;
  filter: drop-shadow(0 4px 6px rgba(10, 30, 18, .28)); transition: transform .08s cubic-bezier(.3, .7, .4, 1), filter .08s; -webkit-tap-highlight-color: transparent; }
#ui .u-rb.sm { --sz: 46px; }
#ui .u-rb.green { background-image: none; background-color: #6cbf45; box-shadow: inset 0 -4px 0 #3f8c2a, inset 0 3px 0 #a5e47e; }
#ui .u-rb.off .u-ico { opacity: .55; }
#ui .is-down { transform: translateY(3px) scale(.92); filter: drop-shadow(0 1px 2px rgba(10, 30, 18, .25)); }
#ui .u-rb.is-down { background-image: url('../../btn-redondo-down-JHtfmGoV.webp'); }
#ui .u-rb.green.is-down { background-image: none; box-shadow: inset 0 -1px 0 #3f8c2a, inset 0 3px 0 #a5e47e; }
#ui .pop { animation: u-pop .32s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes u-pop { 0% { transform: translateY(3px) scale(.92); } 55% { transform: translateY(-2px) scale(1.07); } 100% { transform: none; } }
#ui .breathe:not(.is-down):not(.pop) { animation: u-breathe 2.4s ease-in-out infinite; }
@keyframes u-breathe { 50% { transform: scale(1.045); } }

/* botão Jogar redondo grande */
#ui .u-play { --sz: 92px; width: var(--sz); height: var(--sz); border: 0; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 32%, #fff19a, #ffc627 62%, #f1a211); box-shadow: inset 0 -6px 0 #d08f0e, inset 0 4px 0 #fff6c2, 0 10px 22px rgba(227, 165, 30, .45), 0 0 0 6px rgba(255, 255, 255, .35);
  transition: transform .08s; }
#ui .u-play .u-ico { width: 52%; height: 52%; transform: translateX(6%); }
#ui .u-play.is-down { transform: translateY(4px) scale(.93); box-shadow: inset 0 -2px 0 #d08f0e, inset 0 4px 0 #fff6c2, 0 4px 10px rgba(227, 165, 30, .35); filter: none; }

/* botão comprido: gradiente em CSS (a base esticada do ChatGPT deixava um risco onde a borda encontra o meio) */
#ui .u-cta { width: 100%; min-height: 56px; margin-top: 14px; cursor: pointer; border: 0; border-radius: 999px;
  display: grid; place-items: center; line-height: 1.1; padding: 9px 0 12px;
  background: radial-gradient(130% 160% at 28% -30%, rgba(255, 255, 255, .75), transparent 55%), linear-gradient(180deg, #ffe58a 0%, #ffbf2e 52%, #e8900c 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -6px 0 rgba(150, 86, 8, .5), 0 6px 0 #b5790c, 0 12px 22px rgba(120, 70, 10, .3);
  color: #4a2b0c; font: 700 21px 'Nunito', sans-serif; transition: transform .08s; }
#ui .u-cta.green {
  background: radial-gradient(130% 160% at 28% -30%, rgba(255, 255, 255, .65), transparent 55%), linear-gradient(180deg, #9ee86c 0%, #6cbf45 52%, #3f8c2a 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -6px 0 rgba(40, 90, 20, .55), 0 6px 0 #2f6b1a, 0 12px 22px rgba(20, 70, 10, .3);
  color: #fff; text-shadow: 0 2px 0 rgba(40, 90, 20, .5); }
#ui .u-cta small { font: 600 12px 'Nunito', sans-serif; opacity: .8; }
#ui .u-cta small:empty { display: none; }
#ui .u-link { margin-top: 10px; border: 0; background: none; cursor: pointer; font: 700 15px 'Nunito', sans-serif; color: var(--u-muted); padding: 8px 16px; }

/* ---------- topo do jogo ---------- */
#ui .u-hud { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; pointer-events: none; }
#ui .u-hud > * { pointer-events: auto; }
#ui .u-pill { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 13px 0 9px; border-radius: 13px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px var(--u-line), 0 0 18px var(--u-glow), 0 6px 14px rgba(10, 30, 18, .22); color: var(--u-ink); }
#ui .u-pill b { font: 700 19px/1 'Nunito', sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ui .u-pill .of { font-size: 13px; color: var(--u-muted); }
#ui .u-sep { width: 1.5px; height: 20px; background: #3b241420; margin: 0 2px; }
#ui .u-bico { display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; background: url('../../banana-DFyiVA1X.webp') center / contain no-repeat; }
#ui .u-pi { width: 21px; height: 21px; display: grid; place-items: center; }
#ui .u-pi svg, #ui .u-pi .u-ico { width: 100%; height: 100%; }
#ui .u-pimg { width: 24px; height: 24px; }
#ui #clock.over { color: #d9481e; }
#ui .u-hbtns { display: flex; gap: 8px; }
#ui .progress { top: 104px; }
#ui .chip.fps { position: absolute; top: 64px; left: 12px; }

/* aviso curto e faixa da fase */
#ui .u-toast { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 54px); left: 50%; z-index: 30; transform: translate(-50%, -6px); opacity: 0;
  padding: 7px 14px; border-radius: 11px; background: rgba(59, 36, 20, .92); color: #fff; font: 700 14px 'Nunito', sans-serif; white-space: nowrap; pointer-events: none; transition: .18s; }
#ui .u-toast.on { opacity: 1; transform: translate(-50%, 0); }
#ui .u-ribbon { position: absolute; left: 50%; top: 24%; z-index: 4; transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; width: max-content; }
#ui .u-ribbon small { display: block; font: 700 13px 'Nunito', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
#ui .u-ribbon b { display: block; font: 900 32px/1.05 'Nunito', sans-serif; color: #ffd23f; text-shadow: 0 3px 0 #a8650f, 0 6px 14px rgba(0, 0, 0, .35); }
#ui .u-ribbon b:empty { display: none; }
#ui .u-ribbon.go { animation: u-ribbon 2.4s ease-out forwards; }
@keyframes u-ribbon { 0% { opacity: 0; transform: translateX(-50%) scale(.7); } 12% { opacity: 1; transform: translateX(-50%) scale(1.06); } 20%, 72% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-22px); } }
#ui.on-title .u-ribbon, #ui.on-result .u-ribbon { display: none; }

/* ---------- janelas ---------- */
#ui .u-ov { background: rgba(15, 36, 24, .5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 20; }
#ui .u-card { position: relative; width: min(328px, 90vw); padding: 20px 18px 20px; border-radius: 18px; text-align: left; color: var(--u-ink);
  background: radial-gradient(130px 100px at 0% 0%, #fff1b466, transparent 70%), radial-gradient(150px 120px at 100% 100%, #ffe08a55, transparent 70%), linear-gradient(180deg, #ffffff, #fffaf0);
  box-shadow: 0 0 0 1px var(--u-line), 0 0 30px #ffd96a33, var(--u-shadow); animation: u-in .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes u-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
#ui .u-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
#ui .u-head h2 { margin: 0; font: 700 25px/1.1 'Nunito', sans-serif; color: var(--u-ink); text-align: left; -webkit-text-stroke: 0; text-shadow: none; }
#ui .u-head small { display: block; font: 700 11px 'Nunito', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--u-muted); margin: 3px 0; }
#ui .u-x { flex: 0 0 auto; width: 34px; height: 34px; border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: #f6eedd; display: grid; place-items: center; transition: transform .08s; }
#ui .u-x .u-ico { width: 62%; height: 62%; }
#ui .u-center { display: grid; justify-items: center; margin: 14px 0 4px; }
#ui .u-row { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
#ui .u-lbl { display: grid; justify-items: center; gap: 6px; font: 700 12px 'Nunito', sans-serif; color: #8a6a44; }
#ui .u-kicker { display: block; text-align: center; font: 700 11px 'Nunito', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--u-muted); }

/* resultado */
#ui .u-res { padding-top: 54px; text-align: center; }
#ui .u-prize { position: absolute; left: 50%; top: -62px; width: 128px; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(120, 70, 10, .3)); }
#ui .u-stars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 8px 0 4px; }
#ui .u-stars img { width: 54px; height: 54px; animation: u-star .45s cubic-bezier(.3, 1.9, .5, 1) both; }
#ui .u-stars img:nth-child(2) { width: 66px; height: 66px; }
@keyframes u-star { from { transform: scale(0) rotate(-35deg); opacity: 0; } }
#ui .u-stars.cap { align-items: flex-start; gap: 6px; margin: 10px 0 6px; }
#ui .u-stars.cap span { flex: 1; display: grid; justify-items: center; gap: 4px; }
#ui .u-stars.cap img { width: 46px; height: 46px; }
#ui .u-stars.cap small { font: 600 11px/1.15 'Nunito', sans-serif; color: var(--u-muted); text-align: center; }
#ui .u-big small { display: block; font: 700 11px 'Nunito', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--u-muted); }
#ui .u-big b { display: block; font: 900 46px/1 'Nunito', sans-serif; color: var(--u-ink); margin-top: 2px; }
#ui .u-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; }
#ui .u-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 9px; background: #f6ecd9; font: 600 14px 'Nunito', sans-serif; color: #6b4a2c; }
#ui .u-chips span:empty { display: none; }
#ui .u-chips b { font-weight: 700; color: var(--u-ink); }
#ui .u-chips .u-bico { width: 18px; height: 18px; }
#ui .u-chips .new, #ui #r-best.new, #ui #er-best.new { background: #ffd23f; color: #4a2b0c; font-weight: 700; }
#ui .u-chips .gold-dot { width: 16px; height: 20px; }

/* ajustes */
#ui .u-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
#ui .u-tile { position: relative; border: 0; border-radius: 14px; padding: 10px 4px 9px; cursor: pointer; display: grid; justify-items: center; gap: 4px;
  background: linear-gradient(180deg, #f3fbe9, #dff2cc); box-shadow: inset 0 0 0 2px #9fd67b, 0 3px 0 #c5e3ad; font: 700 12.5px 'Nunito', sans-serif; color: #2f6b1e; transition: transform .08s, background .15s; }
#ui .u-tile .u-ico { width: 38px; height: 38px; }
#ui .u-tile.off { background: #f3eee4; box-shadow: inset 0 0 0 2px #e3d8c4, 0 3px 0 #e6dccb; color: #a0917a; }
#ui .u-tile.off .u-ico { filter: grayscale(1) opacity(.5); }
#ui .u-slash { position: absolute; top: 24px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 3px; background: #e2553f; transform: rotate(-38deg); opacity: 0; transition: opacity .12s; }
#ui .u-tile.off .u-slash { opacity: 1; }
/* idioma: como no Bubble, 14 idiomas numa pílula só; ‹ volta, › e o nome avançam */
#ui .u-langsel { display: grid; grid-template-columns: 52px 1fr 52px; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 14px; background: #f3ead8; }
#ui .u-langsel .u-lang { border: 0; border-radius: 10px; padding: 0 0 6px; background: transparent; cursor: pointer; font: 900 44px/1 'Nunito', sans-serif; color: #8a6a44; }
#ui .u-langsel .u-lname { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 6px 4px; background: #fff; color: var(--u-ink);
  box-shadow: 0 0 0 2px #ffe08a, 0 4px 12px rgba(255, 196, 60, .3); }
#ui .u-lname small { font: 700 12px 'Nunito', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--u-muted); }
#ui .u-lname b { font: 800 20px/1.15 'Nunito', sans-serif; }
#ui .u-chips span[data-t] { display: inline; padding: 0; background: none; }
#ui .u-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font: 700 14px 'Nunito', sans-serif; color: var(--u-ink); }
#ui .u-mini small { display: block; font: 500 11.5px 'Nunito', sans-serif; color: var(--u-muted); }
#ui .u-sw { flex: 0 0 auto; position: relative; width: 48px; height: 28px; border: 0; padding: 0; border-radius: 15px; background: #e3d8c4; cursor: pointer; transition: background .15s; }
#ui .u-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
#ui .u-sw.on { background: #6cbf45; }
#ui .u-sw.on::after { transform: translateX(20px); }
#ui .u-reset { position: relative; overflow: hidden; width: 100%; min-height: 44px; margin-top: 16px; border: 1.5px dashed #dcc69e; border-radius: 12px; background: transparent; cursor: pointer;
  font: 700 14px 'Nunito', sans-serif; color: var(--u-muted); transition: background .15s, color .15s; }
#ui .u-reset i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
#ui .u-reset.armed { border: 0; background: #e85a3f; color: #fff; box-shadow: 0 3px 0 #b03a22; animation: u-shake .3s; }
#ui .u-reset.armed i { animation: u-count 2.5s linear forwards; }
#ui .u-reset.done { border: 0; background: #6cbf45; color: #fff; }
@keyframes u-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes u-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* chapéus */
#ui .u-hats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
#ui .u-hat { position: relative; min-height: 70px; border: 0; border-radius: 14px; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; padding: 8px 4px;
  background: #f6eedd; font: 700 13px 'Nunito', sans-serif; color: var(--u-ink); box-shadow: 0 3px 0 #e6dccb; transition: transform .08s; }
#ui .u-hat.on { background: linear-gradient(180deg, #f3fbe9, #dff2cc); box-shadow: inset 0 0 0 2px #9fd67b, 0 3px 0 #c5e3ad; color: #2f6b1e; }
#ui .u-hat.locked { color: #b3a389; cursor: default; }
#ui .u-hat small { font: 600 11px 'Nunito', sans-serif; color: var(--u-muted); }
#ui .u-hlock { width: 22px; height: 22px; opacity: .85; }

/* ---------- título ---------- */
#ui .title { padding-top: max(7vh, calc(env(safe-area-inset-top) + 28px)); align-content: start; }
#ui .title h1 { -webkit-text-stroke: 0; text-shadow: none; line-height: 0; margin: 0; }
#ui .title h1 .logo { width: min(80vw, 380px); height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
#ui .title .sub { margin-top: 6px; }
#ui .u-tsnd { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
#ui .t-bottom { position: static; transform: none; margin-top: 26vh; justify-self: center; }
#ui .u-tmenu { display: grid; justify-items: center; gap: 18px; margin-top: 26px; }
#ui .u-tmenu.hidden { display: none; }
#ui .u-tmenu .u-lbl { color: #fff; text-shadow: 0 2px 5px rgba(0, 0, 0, .5); font-size: 13px; }
#ui .u-tmenu .u-row { gap: 22px; margin: 0; }
#ui #t-endless.locked .u-ico { filter: grayscale(.85) opacity(.6); }
#ui .u-lock { position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
#ui .u-lock.hidden { display: none; }
@media (max-height: 700px) { #ui .title h1 .logo { width: min(64vw, 300px); } #ui .u-tmenu { margin-top: 14px; gap: 12px; } #ui .u-play { --sz: 78px; } #ui .t-bottom { margin-top: 14vh; } }

/* mapa: só o botão de voltar e o placar de estrelas no estilo novo */
#ui .map-top { gap: 8px; }
#ui .map-top .u-rb.map-back { background-color: transparent; border: 0; box-shadow: none; }
#ui .u-chev { width: 12px; height: 12px; border-left: 3.5px solid var(--u-ink); border-bottom: 3.5px solid var(--u-ink); transform: translateX(2px) rotate(45deg); }
#ui .u-mstars { height: 42px; }

.reduce-motion #ui .breathe, .reduce-motion #ui .u-ribbon.go { animation: none; }
@media (prefers-reduced-motion: reduce) { #ui .breathe, #ui .pop, #ui .u-card, #ui .u-stars img { animation: none !important; } #ui .u-ribbon.go { animation-duration: .01s; } }

/* ---------- v3.1 legibilidade (William: "pequeno e ruim de ver") ---------- */
/* véu atrás do título: o jogo fica de fundo, sem brigar com logo e botões */
#ui .title { background: linear-gradient(180deg, rgba(10, 28, 18, .25) 0%, rgba(10, 28, 18, .55) 45%, rgba(10, 28, 18, .35) 100%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#ui .title .sub { display: inline-block; justify-self: center; margin-top: 10px; padding: 6px 14px; border-radius: 11px; background: rgba(255, 255, 255, .92);
  color: var(--u-ink); font: 700 16px 'Nunito', sans-serif; -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
#ui .u-play { --sz: 112px; }
#ui .u-tmenu { gap: 22px; margin-top: 30px; }
#ui .u-tmenu .u-row { gap: 20px; }
#ui .u-tmenu .u-rb { --sz: 72px; }
#ui .u-tmenu .u-lbl { gap: 8px; }
#ui .u-tmenu .u-lbl, #ui .u-row .u-lbl { font: 700 15px 'Nunito', sans-serif; }
#ui .u-tmenu .u-lbl { color: var(--u-ink); text-shadow: none; padding: 3px 10px; border-radius: 9px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
#ui .u-tmenu .u-lbl { display: grid; background: none; box-shadow: none; padding: 0; }

#ui .u-cap { padding: 3px 10px; border-radius: 9px; background: rgba(255, 255, 255, .93); color: var(--u-ink); font: 700 15px 'Nunito', sans-serif; box-shadow: 0 4px 10px rgba(0, 0, 0, .22); }
#ui .u-lock { width: 30px; height: 30px; right: -6px; top: -6px; }
#ui .u-tsnd { --sz: 52px; }
/* topo do jogo maior */
#ui .u-hud { height: 54px; }
#ui .u-pill { height: 50px; padding: 0 15px 0 11px; gap: 8px; border-radius: 14px; }
#ui .u-pill b { font-size: 22px; }
#ui .u-pill .of { font-size: 15px; }
#ui .u-bico { width: 28px; height: 28px; }
#ui .u-pi { width: 24px; height: 24px; }
#ui .u-rb.sm { --sz: 54px; }
#ui .u-hbtns { gap: 8px; }
#ui .progress { top: 118px; }
/* janelas: texto maior */
#ui .u-card { width: min(344px, 92vw); padding: 22px 20px; }
#ui .u-head h2 { font-size: 28px; }
#ui .u-head small, #ui .u-kicker { font-size: 12.5px; }
#ui .u-row .u-lbl { font-size: 14px; color: #6b4a2c; }
#ui .u-row .u-rb { --sz: 64px; }
#ui .u-chips span { font-size: 15.5px; padding: 6px 11px; }
#ui .u-tile { font-size: 14px; }
#ui .u-tile .u-ico { width: 44px; height: 44px; }
#ui .u-mini { font-size: 16px; }
#ui .u-mini small { font-size: 12.5px; }
#ui .u-reset { font-size: 15px; min-height: 48px; }
#ui .u-stars.cap small { font-size: 12.5px; }
#ui .u-cta { font-size: 23px; min-height: 60px; }
#ui .u-toast { font-size: 15px; padding: 8px 16px; top: calc(max(12px, env(safe-area-inset-top)) + 62px); }
#ui .u-hat { font-size: 14.5px; }
#ui .u-hat small { font-size: 12px; }
@media (max-height: 700px) { #ui .u-play { --sz: 92px; } #ui .u-tmenu .u-rb { --sz: 62px; } #ui .u-tmenu { margin-top: 18px; gap: 16px; } }
#ui .u-res { padding-top: 70px; } #ui .u-prize { top: -58px; width: 120px; }
#ui #bchip.bump .u-bico { animation: bump .25s cubic-bezier(.2, 1.8, .4, 1); } #ui #bchip.bump { animation: none; }
/* End of src/styles/base.css */
/* End of assets/src/styles/base-DYtEiWio.css */
