:root {
  --frame: #1d3519;
  --wood: #6b4426;
  --wood-dark: #3f2714;
  --wood-edge: #2a190b;
  --card: #fffaf0;
  --card2: #f3e3c3;
  --card-edge: #b38f60;
  --ink: #3a2615;
  --ink-soft: #8a6a48;
  --gold: #f4ce58;
  --ok: #47b762;
  --ok-dark: #308646;
  --farm: #52ac5e;
  --feed: #468fd7;
  --eggs: #e4a236;
  --mach: #9c72d8;
  --retire: #da5d7e;
  --city: #2fae9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Escala da interface (src/scale.js): --k = 1 no celular e na janela padrão do
   portal; em tela cheia/grande o #app é montado em px lógicos e ampliado.
   --vw/--vh: vw/vh do tamanho lógico (use no lugar de vw/vh). */
:root { --k: 1; --vw: calc(1vw / var(--k)); --vh: calc(1vh / var(--k)); }
html.scaled #app { width: calc(100% / var(--k)); height: calc(100% / var(--k)); transform: scale(var(--k)); transform-origin: 50% 0; }

html, body {
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #2c4a25, var(--frame));
  overflow: hidden;
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  color: var(--ink);
}

/* Barras de rolagem no estilo do jogo (conquistas, idiomas...): trilho de couro e
   puxador de madeira. A loja esconde a sua. Firefox só aceita cor e espessura. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
  margin: 4px; border-radius: 8px;
  background: rgba(74, 42, 18, .12); box-shadow: inset 0 1px 2px rgba(74, 42, 18, .3);
}
::-webkit-scrollbar-thumb {
  border-radius: 8px; border: 2px solid var(--ink-line);
  background: linear-gradient(90deg, #e8b477, #b67638); box-shadow: inset 0 1px 0 rgba(255, 235, 200, .6);
}
::-webkit-scrollbar-thumb:active { background: linear-gradient(90deg, #d39657, #9c6634); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #b67638 rgba(74, 42, 18, .12); }
}

#app {
  position: relative;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #5aa14a;
  box-shadow: 0 0 50px rgba(0, 0, 0, .55);
  overflow: hidden;
}

#stage { position: relative; flex: 1; min-height: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: none; }
#fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* No título o canvas passa por baixo da loja (world.setFull) e a vinheta, que é
   só do palco, faria uma emenda: some lá e volta na entrada do jogo. O HUD e os
   rótulos da fazenda também ficam escondidos no título (e no carregamento: o
   <body> já começa com in-title), pro fundo ser só a fazenda. */
body.in-title #vignette, body.in-title #hud { opacity: 0; }
body.in-title #fx, body.in-title #goal { opacity: 0; transition: opacity .3s; }
#fx { transition: opacity .5s .8s; }
#goal { transition: opacity .4s .6s; }   /* junto com o HUD descendo (hudDrop) */
#vignette {
  position: absolute; inset: 0; pointer-events: none; transition: opacity .9s .4s;
  --n: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, transparent 50%, rgba(20, 16, 40, calc(.3 + var(--n) * .3)) 100%);
}
[hidden] { display: none !important; }

/* ── HUD ─────────────────────────────────────────── */
#hud {
  position: absolute; top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); right: 8px; z-index: 2;
  display: flex; gap: 8px; align-items: center;
  pointer-events: none;
}
.hud-chip, .hud-money, .hud-btn {
  background: linear-gradient(#5c3a20, #34200f);
  border: 2px solid #7a5232;
  box-shadow: 0 3px 0 #1e1208, 0 5px 10px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 220, 160, .18);
  color: #fff;
}
.hud-chip {
  position: relative; height: 40px; border-radius: 999px;
  padding: 0 12px 0 42px; display: flex; align-items: center;
  font-size: 21.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.chip-ico {
  position: absolute; left: -6px; top: 50%; width: 48px; height: 48px; transform: translateY(-54%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.hud-spacer { flex: 1; }
.hud-money {
  flex: none; min-width: 112px; height: 44px; border-radius: 999px; padding: 0 14px 0 5px;
  display: flex; align-items: center; gap: 8px;
}
.hud-money.bump { animation: bump .22s ease-out; }
@keyframes bump { 40% { transform: scale(1.07); } }
.coin-ico, .coin {
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #fff8c4, var(--gold) 42%, #e09a12);
  border: 2px solid #a86d0c; color: #8a5a00;
  box-shadow: inset 0 -2px 0 rgba(150, 90, 0, .35), 0 2px 0 rgba(0, 0, 0, .25);
}
.coin-ico { width: 34px; height: 34px; font-size: 19px; flex: none; }
.money-col { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
#hud-money { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0; }
#hud-rate { font-size: 12.5px; font-weight: 600; color: #9cf0a6; margin-top: 2px; }
.hud-btn {
  width: 42px; height: 42px; border-radius: 50%; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #ffe2a8; padding: 0;
}
.hud-btn svg { width: 24px; height: 24px; }
.hud-btn:active { transform: translateY(2px); }

#goal {
  position: absolute; top: calc(58px + env(safe-area-inset-top)); left: 12px; width: min(300px, calc(100% - 24px)); height: 20px; z-index: 2;
  display: flex; align-items: center; pointer-events: none;
}
.goal-ico {
  position: relative; z-index: 1; width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: linear-gradient(#ffe48a, #f2a93b); border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.goal-track {
  position: relative; flex: 1; height: 18px; margin-left: -8px; border-radius: 0 999px 999px 0;
  background: rgba(40, 25, 12, .7); border: 2px solid rgba(255, 240, 200, .5); border-left: 0; overflow: hidden;
}
#goal-bar {
  height: 100%; width: 0; transition: width .4s;
  background: repeating-linear-gradient(-45deg, #f4ce58 0 8px, #f7b733 8px 16px);
  background-size: 22px 22px; animation: stripes 1.2s linear infinite;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .4);
}
@keyframes stripes { to { background-position: 22px 0; } }
#goal-text {
  position: absolute; inset: 0; padding-left: 10px; text-align: center;
  font-size: 12.5px; line-height: 14px; color: #fff; font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .8); -webkit-text-stroke: 0;
}

/* ── Missão: botão redondo no HUD + balão ───────── */
.hud-btn.ring {
  position: relative; padding: 0;
  background: conic-gradient(var(--ok) calc(var(--p, 0) * 1%), rgba(0, 0, 0, .35) 0);
}
.ring-in {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: linear-gradient(#5c3a20, #34200f);
}
.hud-btn.ring .badge {
  display: none; position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: #d84e44; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid #fff;
}
.hud-btn.ring.done { animation: missionPulse 0.9s ease-in-out infinite; }
.hud-btn.ring.done .badge { display: block; }
@keyframes missionPulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(120, 230, 140, .4); } }
#mission-pop {
  position: absolute; z-index: 3; top: calc(84px + env(safe-area-inset-top)); right: 10px; width: min(250px, calc(100% - 20px));
  padding: 9px 11px; border-radius: 14px; border: 2px solid #fff; color: var(--ink);
  background: linear-gradient(var(--card), var(--card2)); box-shadow: 0 4px 0 var(--card-edge), 0 8px 16px rgba(0, 0, 0, .3);
  animation: popIn .25s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
#mission-pop .m-text { font-size: 14px; font-weight: 700; line-height: 1.15; }
#mission-pop .m-bar { height: 8px; margin: 6px 0 5px; border-radius: 5px; background: rgba(0, 0, 0, .12); overflow: hidden; }
#mission-pop .m-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(#85da92, var(--ok)); }
#mission-pop .m-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
#mission-pop .m-prog { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#mission-pop .m-reward { color: #b07a12; }

/* ── Conquistas ──────────────────────────────────── */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: calc(52 * var(--vh)); overflow-y: auto; padding: 2px; }
.ach { display: flex; gap: 7px; align-items: center; background: #fff; border-radius: 11px; padding: 6px; border: 2px solid #f0e2c6; }
.ach .a-ico { font-size: 22px; flex: none; }
.ach .a-name { font-size: 12.5px; font-weight: 700; line-height: 1.1; }
.ach .a-desc { font-size: 10.5px; color: var(--ink-soft); line-height: 1.15; }
.ach.locked { filter: grayscale(1); opacity: .55; }
.ach-count { text-align: center; font-weight: 700; color: var(--ink-soft); font-size: 13px; }

#toast {
  position: absolute; left: 50%; top: 92px; z-index: 3; transform: translate(-50%, -10px);
  background: linear-gradient(#fffaf0, #f3e3c3); color: var(--ink); font-weight: 600; font-size: 15.5px;
  padding: 8px 16px; border-radius: 14px; border: 2px solid #fff;
  box-shadow: 0 4px 0 var(--card-edge), 0 8px 18px rgba(0, 0, 0, .3);
  opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.coin {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; font-size: 13.5px;
  transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: 3;
}

/* ── Medidores dos tanques e rótulos no mundo ────── */
.gauge {
  position: absolute; left: 0; top: 0; display: flex; align-items: center;
  height: 22px; padding: 0 7px 0 2px; border-radius: 999px; gap: 4px;
  background: rgba(30, 18, 8, .82); border: 2px solid rgba(255, 240, 200, .35);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3); white-space: nowrap;
}
.g-ico {
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; background: #fff;
}
.g-bar { width: 46px; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .25s; }
.gauge.water .g-bar i { background: linear-gradient(#8fd8ff, #2f8fe0); }
.gauge.food .g-bar i { background: linear-gradient(#ffe08a, #e89a1f); }
.g-txt { color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-auto { font-size: 10px; font-weight: 700; color: #1d3519; background: #9cf0a6; border-radius: 4px; padding: 0 3px; }
.gauge.low { border-color: #ff9a7a; }
.gauge.mini { height: 18px; padding: 0 5px 0 1px; gap: 3px; border-width: 1.5px; }
.gauge.mini .g-ico { width: 15px; height: 15px; font-size: 10px; }
.gauge.mini .g-bar { width: 32px; height: 6px; }
.gauge.mini .g-txt { font-size: 11px; }
.gauge.mini .g-auto { font-size: 9px; }
.gauge.mini.low .g-bar i { background: linear-gradient(#ffb09a, #e2553f); }
.gauge.empty {
  background: linear-gradient(#ef6a52, #c2412f); border-color: #fff; padding-right: 9px;
  animation: pulse 0.9s ease-in-out infinite;
}
.gauge.empty .g-bar { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 120, 90, .35), 0 2px 0 rgba(0, 0, 0, .3); } }

.bubble {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%);
  background: #fff; border-radius: 10px; padding: 0 6px; font-size: 13.5px; line-height: 20px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.tlabel {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  background: rgba(30, 18, 8, .82); color: #fff; border-radius: 9px; border: 2px solid rgba(255, 240, 200, .35);
  font-size: 12.5px; font-weight: 600; padding: 2px 8px; white-space: nowrap;
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.tlabel.low { background: linear-gradient(#ef6a52, #c2412f); border-color: #fff; animation: pulse .9s ease-in-out infinite; }
.tlabel.hint {
  background: #fff; color: var(--ink); font-size: 15.5px; padding: 5px 11px; border: 0; border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25); animation: bob 1.2s ease-in-out infinite;
}
.tlabel.hint::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #fff; border-bottom: 0;
}
@keyframes bob { 50% { margin-top: -6px; } }

/* ── Textos flutuantes ───────────────────────────── */
.float {
  position: absolute; transform: translate(-50%, -100%);
  font-weight: 700; font-size: 20px; color: var(--gold);
  text-shadow: 0 2px 0 #6b3d10, 0 0 4px rgba(0, 0, 0, .45); -webkit-text-stroke: 0;
  animation: rise 1.05s ease-out forwards; white-space: nowrap;
}
.float.heart { color: #ff6b8a; font-size: 22.5px; text-shadow: 0 2px 0 #7a1f33; -webkit-text-stroke: 0; }
.float.mult { color: #9fe7ff; font-size: 15.5px; text-shadow: 0 2px 0 #1d4b5c; -webkit-text-stroke: 0; }
.float.cost { color: #ff8a7a; font-size: 17px; text-shadow: 0 2px 0 #5c1a12; -webkit-text-stroke: 0; }
.float.name {
  color: var(--ink); font-size: 14.5px; text-shadow: none; -webkit-text-stroke: 0; animation-duration: 1.9s;
  background: #fff; padding: 2px 9px; border-radius: 10px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, -100%) scale(.4); }
  14% { opacity: 1; transform: translate(-50%, -100%) scale(1.25); }
  28% { transform: translate(-50%, -100%) scale(1); margin-top: 0; }
  100% { opacity: 0; transform: translate(-50%, -100%) scale(1); margin-top: -44px; }
}

/* ── Loja ────────────────────────────────────────── */
#shop {
  position: relative; height: 282px; flex: none; z-index: 2;
  transition: height .32s cubic-bezier(.3, 1.25, .5, 1);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 38px),
    linear-gradient(#7a4f2c, var(--wood-dark));
  border-top: 5px solid var(--wood-edge);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, .3), inset 0 3px 0 rgba(255, 200, 140, .15);
  display: flex; flex-direction: column;
}
#shop.expanded { height: 64%; }
#shop-head { height: 26px; position: relative; }
#shop-list {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); grid-auto-rows: 124px;
  gap: 8px; padding: 4px 10px 14px; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-width: none; scroll-snap-type: y proximity;
}
#shop-list::-webkit-scrollbar { display: none; }

.card {
  --cat: var(--farm);
  position: relative; scroll-snap-align: start;
  background: linear-gradient(var(--card), var(--card2)); color: var(--ink);
  border: 2px solid #fff; border-top: 5px solid var(--cat); border-radius: 14px; padding: 2px 5px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  cursor: pointer; font: inherit; overflow: hidden; min-height: 0;
  box-shadow: 0 4px 0 var(--card-edge), 0 7px 12px rgba(0, 0, 0, .3);
  transition: transform .08s, box-shadow .08s, filter .2s;
}
.card.cat-feed { --cat: var(--feed); }
.card.cat-eggs { --cat: var(--eggs); }
.card.cat-mach { --cat: var(--mach); }
.card.cat-retire { --cat: var(--retire); }
.card.cat-city { --cat: var(--city); }
#shop-list:not(.dragging) .card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--card-edge), 0 2px 4px rgba(0, 0, 0, .25); }
.ico-wrap {
  width: 52px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cat) 30%, transparent), transparent);
}
.card .ico { width: 48px; height: 48px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25)); }
/* padding/margin embaixo: a caixa cortava a perna do g/y (overflow: hidden com linha apertada). */
.card .name { font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.1; margin-top: -2px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 4px; margin-bottom: -4px; }
.card .desc { font-size: 10.5px; color: var(--ink-soft); text-align: center; line-height: 1.15; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .lvl {
  position: absolute; top: 3px; right: 4px; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--cat); padding: 0 4px; border-radius: 6px;
}
.card .lvl:empty { display: none; }
/* Gerente da cidade que ainda não dá pra pagar: a descrição oferece o teste grátis
   (tocar na carta abre a janela do vídeo). */
.card.trial .desc { display: flex; align-items: center; gap: 3px; color: #2f8a3f; font-weight: 700; }
.card.trial .desc .tv-ico { flex: none; width: 15px; height: 11px; border-radius: 3px; border-width: 1px; }
.card.trial .desc .tv-ico svg { width: 9px; height: 7px; }
.card.cant.trial { filter: none; }   /* a oferta fica viva; o preço continua cinza */
.card .price {
  width: calc(100% + 10px); margin: 2px -5px 0; padding: 3px 0 5px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(#61cf7b, var(--ok)); box-shadow: inset 0 -3px 0 var(--ok-dark), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #fff; font-weight: 700; font-size: 15.5px; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); -webkit-text-stroke: 0;
}
/* Moeda pequena (preços, ofertas): o "$" acompanha o tamanho dela (cqh). */
.coin-s { width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff8c4, var(--gold) 42%, #e09a12); border: 1.5px solid #a86d0c; container-type: size; }
.coin-s::before { content: "$"; font: 700 9px/1 "Fredoka", system-ui, sans-serif; font-size: 72cqh; font-style: normal; color: #8a5a00; text-shadow: none; -webkit-text-stroke: 0; }
.card.cant { filter: saturate(.5) brightness(.93); }
.card.cant .price { background: linear-gradient(#b3a28a, #96846c); box-shadow: inset 0 -3px 0 #75644f; }
.card.free .price { background: linear-gradient(#ffc34d, #f29a1f); box-shadow: inset 0 -3px 0 #b8680c; }
.card.free .coin-s { display: none; }
.card.new::after {
  content: attr(data-new); position: absolute; top: 4px; left: -2px;
  font-size: 10px; font-weight: 700; color: #fff; background: #d84e44; padding: 1px 6px 1px 5px; border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 0 #8a2418; animation: wiggle 1.6s ease-in-out infinite;
}
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } }
.card.flash { animation: flash .35s ease-out; }
@keyframes flash { 0% { transform: scale(.9); filter: brightness(1.5); } 60% { transform: scale(1.06); } 100% { transform: none; filter: none; } }
.card.shake { animation: shakeX .3s; }
@keyframes shakeX { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.card.ready { animation: ready .6s ease-out; }
@keyframes ready { 35% { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 0 3px var(--gold), 0 4px 0 var(--card-edge); } }

/* ── Paisagem: 3D à esquerda, loja como painel lateral à direita ── */
@media (min-aspect-ratio: 5/4) {
  #app { max-width: none; flex-direction: row; }
  #shop {
    width: clamp(270px, calc(30 * var(--vw)), 420px); height: auto; transition: none;
    border-top: 0; border-left: 5px solid var(--wood-edge);
    box-shadow: -6px 0 14px rgba(0, 0, 0, .3), inset 3px 0 0 rgba(255, 200, 140, .15);
  }
  #shop.expanded { height: auto; }
  #shop-head { height: 54px; }
}

/* ── Tutorial: mãozinha ──────────────────────────── */
/* #hand é só um ponto (o alvo): a luva vem de baixo/direita, inclinada -20°, com a ponta do
   indicador nele (a origem do viewBox -6.5 -1.5 57 64 é a ponta do dedo, 1 unidade = 1px),
   o anel dourado pulsa no alvo a cada toque e o balão fica em cima. */
#hand { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 9; pointer-events: none; }
.hand-ico {
  position: absolute; left: -6.5px; top: -1.5px; width: 57px; height: 64px; overflow: visible; transform-origin: 6.5px 1.5px;
  filter: drop-shadow(0 4px 0 rgba(58, 30, 10, .35)) drop-shadow(0 0 8px rgba(255, 238, 160, .95));
  animation: tapHand 1.1s ease-in-out infinite;
}
.hand-ring {
  position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 0 0 3px #ffc61f, 0 0 16px 2px rgba(255, 214, 90, .9), inset 0 0 10px rgba(255, 214, 90, .6);
  animation: handRing 1.1s ease-out infinite;
}
.hand-bubble {
  position: absolute; left: 0; bottom: 30px; white-space: nowrap; transform: translateX(-50%);
  background: #fff; color: var(--ink-line); font-family: var(--display); font-size: 18px; letter-spacing: .3px; line-height: 1.15;
  padding: 7px 14px 8px; border-radius: 14px; border: 3px solid var(--ink-line);
  box-shadow: 0 4px 0 var(--ink-line), 0 8px 16px rgba(0, 0, 0, .3);
  animation: bubbleIn .35s cubic-bezier(.3, 1.6, .5, 1) both;
}
.hand-bubble::after {
  content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); bottom: -10px; width: 13px; height: 13px; margin-left: -7px;
  background: #fff; border: solid var(--ink-line); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
#hand.swipe .hand-ico { animation: swipeHand 1.4s ease-in-out infinite; }
#hand.swipe .hand-ring { display: none; }
/* O toque segue o eixo do dedo (-20°): recua para baixo/direita e afunda levemente ao tocar. */
@keyframes tapHand { 0%, 100% { transform: translate(6px, 16px); } 40%, 50% { transform: translate(1px, 2px) scale(.92); } }
@keyframes handRing { 0%, 38% { transform: scale(.35); opacity: 0; } 42% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes bubbleIn { from { opacity: 0; translate: 0 8px; } }
@keyframes swipeHand { 0%, 100% { transform: translate(-36px, 10px) rotate(-8deg); } 50% { transform: translate(36px, 10px) rotate(14deg); } }

/* Entrada no jogo (voo de abertura), em sequência: a loja entra deslizando pela
   borda (de baixo no retrato, da direita na paisagem; no título ela fica fora da
   tela), a placa LOJA cai quicando, o HUD desce e as cartas pulam uma a uma. */
body.in-title #shop { transform: translateY(105%); }
body.entering #shop { animation: shopInY .5s .15s cubic-bezier(.25, 1.15, .5, 1) both; }
body.entering #shop-head .plaque { animation: plaqueDrop .5s .55s cubic-bezier(.3, 1.6, .5, 1) both; }
body.entering #hud { animation: hudDrop .55s .6s cubic-bezier(.3, 1.4, .5, 1) both; }
body.entering #shop-list .card { animation: cardIn .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.9s + var(--i, 0) * 70ms); }
@keyframes shopInY { from { transform: translateY(105%); } }
@keyframes shopInX { from { transform: translateX(105%); } }
@keyframes plaqueDrop { from { transform: translateX(-50%) translateY(-70px) rotate(-10deg); opacity: 0; } 60% { opacity: 1; } }
@keyframes hudDrop { from { transform: translateY(-130%); opacity: 0; } }
@keyframes cardIn { from { transform: scale(.4); opacity: 0; } }
@media (min-aspect-ratio: 5/4) {
  body.in-title #shop { transform: translateX(105%); }
  body.entering #shop { animation-name: shopInX; }
}

/* ── Menu ────────────────────────────────────────── */
#menu {
  position: absolute; inset: 0; background: rgba(10, 6, 2, .6); z-index: 10;
  display: flex; align-items: center; justify-content: center; animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } }
.menu-box {
  position: relative;
  background: linear-gradient(var(--card), var(--card2)); border: 3px solid #fff;
  border-radius: 18px; padding: 30px 18px 18px; width: 260px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 0 var(--card-edge), 0 14px 30px rgba(0, 0, 0, .45);
  animation: popIn .3s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes popIn { from { transform: scale(.7); opacity: 0; } }
.menu-box h2 {
  position: absolute; left: 50%; top: -20px; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 24px; border-radius: 12px; font-size: 20px; font-weight: 700; color: #fff4dc; letter-spacing: 1px;
  background: linear-gradient(#c98d55, #9c6634); border: 3px solid #5a3519; box-shadow: 0 4px 0 #3a210d;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0;
}
.menu-box p { color: var(--ink); font-size: 15.5px; text-align: center; line-height: 1.4; }
.menu-box button {
  border: 0; border-radius: 12px; padding: 11px; font: inherit; font-weight: 700; font-size: 17px;
  background: linear-gradient(#61cf7b, var(--ok)); box-shadow: inset 0 -4px 0 var(--ok-dark), 0 3px 0 rgba(0, 0, 0, .15);
  color: #fff; cursor: pointer; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); -webkit-text-stroke: 0;
}
.menu-box button:active { transform: translateY(2px); }
.menu-box button.alt { background: linear-gradient(#8fb0ff, #6b8ad9); box-shadow: inset 0 -4px 0 #4a64a8; }
/* liga/desliga das Opções: uma linha só (ui._fitMenu diminui a letra) */
.menu-box button.fit > span { display: inline-block; white-space: nowrap; }
.menu-box.wide { width: min(92%, 400px); }
/* Opções: um pouco mais larga, pros liga/desliga longos (espanhol, francês) caberem inteiros */
.menu-box.opt-box { width: min(92%, 330px); }
/* Privacidade: texto corrido menor e o link da política do ByteBrew */
.menu-box.priv-box { width: min(92%, 380px); }
.menu-box p.priv-p { font-size: 13.5px; line-height: 1.35; margin: 0 0 8px; }
.menu-box .priv-link { display: block; margin: 2px 0 10px; text-align: center; font-size: 13px; color: #3d5fae; text-decoration: underline; }
.big-money {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 30px; font-weight: 700; color: var(--ink);
}
.big-money .coin-s { width: 26px; height: 26px; }
.party-ico { align-self: center; }
.party-ico img { width: 76px; height: 76px; display: block; filter: drop-shadow(0 3px 2px rgba(60, 30, 10, .3)); }
.menu-box p.small { font-size: 12.5px; color: var(--ink-soft); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode {
  position: relative; border-radius: 12px; padding: 8px 6px 6px; text-align: center;
  background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge);
}
.mode.on { border-color: var(--ok); }
.mode.locked { filter: grayscale(.85); opacity: .7; }
.mode-ico { font-size: 29px; }
.mode-name { font-size: 14.5px; font-weight: 700; }
.mode-desc { font-size: 11px; color: var(--ink-soft); line-height: 1.2; min-height: 24px; }
.mode-tag { margin-top: 4px; font-size: 10px; font-weight: 700; color: #fff; background: #8a7a66; border-radius: 6px; padding: 2px 0; }
.mode.on .mode-tag { background: var(--ok); }
.menu-box button.danger { background: linear-gradient(#ef6a52, #c2412f); box-shadow: inset 0 -4px 0 #8a2a1c; }

/* ── Tela inicial ────────────────────────────────── */
#splash {
  position: absolute; inset: 0; z-index: 20; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 236, 170, .35), rgba(20, 40, 15, .75));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: opacity .4s;
}
#splash.out { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateY(-30px); }
.logo { position: relative; display: flex; flex-direction: column; align-items: center; animation: popIn .6s cubic-bezier(.3, 1.6, .5, 1); }
.logo-the {
  font-size: 24.5px; font-weight: 700; color: #fff4dc; letter-spacing: 6px;
  text-shadow: 0 3px 0 #5a3519; -webkit-text-stroke: 0;
}
.logo-main {
  font-size: 54px; font-weight: 700; line-height: .95; color: #fff;
  -webkit-text-stroke: calc(3px * var(--sk, 1)) #5a3519; paint-order: stroke fill;
  text-shadow: 0 6px 0 #5a3519, 0 10px 20px rgba(0, 0, 0, .4);
}
.logo-main b { color: #ffb53a; }
.logo-3d {
  position: absolute; right: -26px; top: 18px; transform: rotate(12deg);
  background: linear-gradient(#f68173, #d84e44); color: #fff; font-size: 20px; font-weight: 700;
  padding: 2px 8px; border-radius: 9px; border: 3px solid #fff; box-shadow: 0 3px 0 #8a2418;
}
#splash-egg { width: 120px; height: 120px; animation: eggBounce 1.1s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .35)); }
@keyframes eggBounce { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
.tap {
  margin-top: 6px; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 2px;
  background: linear-gradient(#61cf7b, var(--ok)); padding: 10px 26px; border-radius: 16px; border: 3px solid #fff;
  box-shadow: 0 5px 0 var(--ok-dark), 0 10px 20px rgba(0, 0, 0, .3);
  animation: tapPulse 1.2s ease-in-out infinite;
}
@keyframes tapPulse { 50% { transform: scale(1.06); } }


/* ── Layout do HUD: topo = progresso/avisos/menu; dinheiro na placa da loja ── */
#hud { align-items: center; }
#goal {
  position: static; flex: 1; min-width: 0; height: 26px; display: flex; align-items: center;
}
#goal .goal-ico { width: 34px; height: 34px; font-size: 18px; }
#goal .goal-track { height: 22px; }
#goal-text { font-size: 12px; line-height: 18px; }
.hud-btn.threat { font-size: 20px; background: linear-gradient(#ef6a52, #c2412f); border-color: #fff; animation: missionPulse .7s ease-in-out infinite; }
#mission-pop { top: calc(58px + env(safe-area-inset-top)); }

/* Placa do banco: uma linha só, larga e baixinha, presa na borda da loja. */
#shop-head { height: 24px; }
.bank {
  position: absolute; left: 50%; top: -24px; transform: translateX(-50%); z-index: 3;
  width: min(350px, calc(100% - 28px)); height: 42px; padding: 0 6px 0 8px;
  display: flex; align-items: center; gap: 8px; border-radius: 14px;
  background: linear-gradient(#c98d55, #9c6634); border: 3px solid #5a3519;
  box-shadow: 0 4px 0 #3a210d, 0 8px 16px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 230, 190, .35);
  white-space: nowrap;
}
.bank-hens {
  position: relative; flex: none; display: flex; align-items: center; height: 28px; padding: 0 10px 0 30px;
  border-radius: 999px; background: rgba(40, 22, 8, .45); color: #fff; font-weight: 700; font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.bank-hens .chip-ico { left: -5px; width: 36px; height: 36px; transform: translateY(-56%); }
.bank-sep { flex: none; width: 2px; height: 22px; border-radius: 2px; background: rgba(58, 33, 13, .5); box-shadow: 1px 0 0 rgba(255, 230, 190, .25); }
.bank-money { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bank-money .coin-ico { width: 26px; height: 26px; font-size: 14px; }
.bank-money .coin-ico.ping { animation: coinPing .26s ease-out; }
@keyframes coinPing { 35% { transform: scale(1.22); filter: brightness(1.3); } }
.bank #hud-money {
  font-size: 21px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); -webkit-text-stroke: 0;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis;
}
.bank #hud-rate {
  flex: none; margin: 0; padding: 4px 8px; border-radius: 999px; background: rgba(28, 60, 14, .5);
  font-size: 11.5px; font-weight: 700; color: #c8ffb0; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); -webkit-text-stroke: 0;
  font-variant-numeric: tabular-nums;
}
.bank-money.bump { animation: bankBump .2s ease-out; }
@keyframes bankBump { 40% { transform: scale(1.05); } }
@media (min-aspect-ratio: 5/4) {
  #shop-head { height: 64px; }
  .bank { top: 12px; width: calc(100% - 24px); }
}

/* Moedinhas que voam até a placa: camada acima do jogo e da loja. */
#coinfx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
#coinfx .coin { width: 16px; height: 16px; font-size: 10px; border-width: 1.5px; z-index: auto; }

/* ── Loja: altura fixa com rolagem interna e barrinha lateral própria ── */
#shop { transition: none; }
#shop.expanded { height: 282px; }
#shop-list { padding-right: 18px; }
#shop-scroll {
  position: absolute; right: 5px; width: 6px; border-radius: 4px; z-index: 2;
  background: rgba(0, 0, 0, .3); pointer-events: none;
}
#shop-scroll i {
  position: absolute; left: 0; right: 0; top: 0; border-radius: 4px;
  background: linear-gradient(#f3d6a4, #d9a866); box-shadow: 0 0 0 1px rgba(60, 30, 10, .35);
}


/* ── Loja mais enxuta no retrato: cartas menores, mais área de jogo ── */
#shop, #shop.expanded { height: 266px; }   /* 2 linhas + o começo da 3ª */
#shop-list { grid-auto-rows: 100px; gap: 6px; padding: 2px 18px 10px 8px; }
.card { padding: 1px 4px 0; border-top-width: 4px; }
.ico-wrap { width: 46px; height: 38px; }
.card .ico { width: 42px; height: 42px; }
.card .name { font-size: 13px; margin-top: -1px; }
.card .desc { font-size: 10px; }
.card .price { width: calc(100% + 8px); margin: 1px -4px 0; padding: 2px 0 4px; font-size: 14.5px; }
#shop-list.dragging { scroll-snap-type: none; cursor: grabbing; }
@media (min-aspect-ratio: 5/4) { #shop, #shop.expanded { height: auto; } }

/* ── Missão: botão fica verde quando dá pra coletar; balão com botão Coletar ── */
.hud-btn.ring.done { background: linear-gradient(#90eaa0, var(--ok)); border-color: #fff; }
.hud-btn.ring.done .ring-in { background: linear-gradient(#5fd47a, #2a9c48); }
.hud-btn.ring.done .badge { display: none; }
#mission-pop { pointer-events: auto; transform-origin: top right; width: min(230px, calc(100% - 20px)); padding: 8px 10px 9px; }
#mission-pop.out { animation: popOut .16s ease-in forwards; }
@keyframes popOut { to { transform: scale(.6); opacity: 0; } }
#mission-pop .m-text { font-size: 13.5px; }
#mission-pop .m-claim { display: none; }
#mission-pop.done .m-bar, #mission-pop.done .m-row { display: none; }
#mission-pop.done .m-text::before { content: "✓ "; color: var(--ok-dark); }
#mission-pop.done .m-claim {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 8px;
  border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(#75da8e, var(--ok)); box-shadow: inset 0 -4px 0 var(--ok-dark), 0 3px 0 rgba(0, 0, 0, .2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25); -webkit-text-stroke: 0; animation: claimGlow 1s ease-in-out infinite;
}
#mission-pop .m-claim:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--ok-dark); animation: none; }
.m-claim-amt { display: flex; align-items: center; gap: 4px; padding: 2px 9px 2px 4px; border-radius: 999px; background: rgba(0, 0, 0, .18); font-size: 15px; }
.m-claim-amt .coin-s { width: 17px; height: 17px; }
@keyframes claimGlow { 50% { transform: scale(1.03); filter: brightness(1.08); } }
.bank-pop {
  position: absolute; z-index: 1; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-size: 19px; font-weight: 700; color: #fff3a0; text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 8px rgba(0, 0, 0, .25); -webkit-text-stroke: 0;
}


/* ── Alerta do lobo ─────────────────────────────── */
#wolf-alert {
  position: absolute; left: 50%; top: calc(128px + env(safe-area-inset-top)); z-index: 4;
  transform: translate(-50%, -12px) scale(.9); opacity: 0; pointer-events: none;
  max-width: calc(100% - 24px); padding: 7px 16px; border-radius: 14px; border: 2.5px solid #fff;
  background: linear-gradient(#ff5a46, #c8231a); color: #fff; text-align: center;
  font-weight: 700; font-size: clamp(15px, calc(4.4 * var(--vw)), 19px); letter-spacing: .3px;
  text-shadow: 0 2px 0 rgba(90, 10, 5, .55); -webkit-text-stroke: 0; box-shadow: 0 3px 0 #7a140d;
  transition: opacity .2s, transform .2s;
}
#wolf-alert.show { opacity: 1; transform: translate(-50%, 0) scale(1); animation: wolfPulse .8s ease-in-out infinite; }
@keyframes wolfPulse { 50% { transform: translate(-50%, 0) scale(1.06); box-shadow: 0 3px 0 #7a140d, 0 0 0 8px rgba(255, 70, 50, .25); } }
#wolf-edge {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 60px 12px rgba(255, 40, 30, .55); transition: opacity .4s;
}
#wolf-edge.on { opacity: .35; }
#wolf-edge.flash { animation: wolfEdge .9s ease-out; }
@keyframes wolfEdge { 0%, 30% { opacity: 1; } 100% { opacity: .35; } }
.gauge.wolf .g-bar i { background: linear-gradient(#ff8a7a, #d2402f); }
/* Cidade (Hora Extra): carga/viagem do caminhão e o pedido da vez. */
.gauge.city .g-bar i { background: linear-gradient(#8ff0d8, #22a58c); }
.gauge.city.order .g-bar i { background: linear-gradient(#ffe08a, #e89a1f); }


/* ── Topo: placa do banco + botões; meta da aposentadoria na linha de baixo ──
   As duas linhas têm a mesma largura máxima: a placa estica até os botões, então
   sem a missão (ou o 2×) não sobra buraco no canto direito. */
#hud { max-width: 484px; }
#hud .bank {
  position: relative; left: auto; top: auto; transform: none; z-index: auto;
  flex: 1; min-width: 0; width: auto; height: 44px;
}
#goal {
  position: absolute; top: calc(60px + env(safe-area-inset-top)); left: 10px; right: 10px; width: auto;
  max-width: 480px; height: 24px; z-index: 2; display: flex; align-items: center; pointer-events: none;
}
#mission-pop { top: calc(94px + env(safe-area-inset-top)); }
#toast { top: calc(124px + env(safe-area-inset-top)); }
/* Faixa do lobo fininha logo abaixo da meta, acima da cerca: não cobre o lobo. */
#wolf-alert {
  top: calc(90px + env(safe-area-inset-top)); padding: 4px 14px; border-width: 2px; border-radius: 12px;
  font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Placa "LOJA" pregada na borda de cima da loja. */
#shop-head { height: 22px; }
.plaque {
  position: absolute; left: 50%; top: -19px; transform: translateX(-50%); z-index: 3;
  padding: 3px 26px 4px; border-radius: 10px;
  background: linear-gradient(#c98d55, #9c6634); border: 3px solid #5a3519;
  color: #fff4dc; font-weight: 700; font-size: 17px; letter-spacing: 2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0;
  box-shadow: 0 4px 0 #3a210d, 0 6px 12px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 230, 190, .35);
}
.plaque::before, .plaque::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #e8d2a8; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4);
}
.plaque::before { left: 8px; }
.plaque::after { right: 8px; }
@media (min-aspect-ratio: 5/4) {
  #shop-head { height: 52px; }
  .plaque { top: 10px; }
}


/* ── Máquinas: ×2 pequeno por ovo + etiqueta com o valor na saída ── */
.float.mini { font-size: 12.5px; animation: riseMini .75s ease-out forwards; }
@keyframes riseMini {
  0% { opacity: 0; transform: translate(-50%, -100%) scale(.5); }
  20% { opacity: 1; transform: translate(-50%, -100%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -100%) scale(1); margin-top: -22px; }
}
.tlabel.mval {
  font-size: 11px; padding: 1px 6px; border-radius: 7px; border: 1.5px solid rgba(190, 255, 170, .55);
  background: rgba(22, 56, 14, .85); color: #d9ffc4;
}


/* ── Paisagem: HUD no topo do painel da loja ──
   Linha 1: placa do dinheiro inteira. Linha 2: meta da aposentadoria + botões. */
#shop-top:empty { display: none; }
@media (min-aspect-ratio: 5/4) {
  #shop-top { position: relative; z-index: 4; padding: 10px 10px 2px; }
  #shop-top #hud {
    position: static; left: auto; right: auto; top: auto; z-index: auto; max-width: none;
    flex-wrap: wrap; row-gap: 8px; column-gap: 6px;
  }
  #shop-top #hud .bank { flex: 1 1 100%; max-width: none; }
  #shop-top #goal {
    position: static; flex: 1; min-width: 0; width: auto; max-width: none; height: 24px; left: auto; right: auto; top: auto;
  }
  #shop > #mission-pop { top: 112px; right: 10px; }
  #shop-head { height: 44px; }
  .plaque { top: 6px; }
  #wolf-alert { top: 14px; }
  #toast { top: 56px; }
}


/* ── Balão na borda: lobo chegando por fora da vista ── */
.edge-mark { position: absolute; left: 0; top: 0; width: 42px; height: 42px; z-index: 3; pointer-events: none; }
.edge-mark .edge-ico {
  position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 23px; background: radial-gradient(circle at 35% 30%, #fff, #ffe1da); border: 3px solid #d84e44;
  box-shadow: 0 3px 0 #7a140d, 0 0 0 5px rgba(209, 84, 75, .25); animation: edgePulse .7s ease-in-out infinite;
}
.edge-mark .edge-arrow {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -9px 0 0 -7px;
  border-left: 14px solid #d84e44; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  transform-origin: 7px 9px; filter: drop-shadow(0 2px 0 #7a140d);
}
@keyframes edgePulse { 50% { transform: scale(1.12); } }


/* ═══ Reforma da UI: avisos e loja com cara premium ═══════════════════════ */

/* Avisos: cartão creme com borda grossa, medalhão colorido e barra de tempo. */
#notes {
  position: absolute; left: 50%; top: calc(124px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 5;
  width: min(320px, calc(100% - 28px)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.note {
  --c1: #c99158; --c2: #8a5a30; --edge: #5a3519;
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 100%; min-height: 50px;
  padding: 7px 16px 10px 7px; border-radius: 16px; overflow: hidden; color: var(--ink);
  background: linear-gradient(#fffaf0, #f3e2c0); border: 3px solid var(--edge);
  box-shadow: 0 4px 0 var(--edge), 0 10px 22px rgba(0, 0, 0, .28), inset 0 2px 0 #fff;
  animation: noteIn .42s cubic-bezier(.2, 1.5, .4, 1) both;
}
.note.bump { animation: noteBump .25s ease-out; }
.note.out { animation: noteOut .25s ease-in forwards; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-14px) scale(.85); } }
@keyframes noteBump { 40% { transform: scale(1.05); } }
@keyframes noteOut { to { opacity: 0; transform: translateY(-10px) scale(.92); } }
.note-ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 2.5px solid #fff;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .6), transparent 50%), linear-gradient(var(--c1), var(--c2));
  box-shadow: 0 0 0 2px var(--edge), 0 3px 0 2px var(--edge);
}
.note-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.note-body b { font-size: 15px; font-weight: 700; }
.note-body span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.note-time {
  position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px;
  background: var(--c2); opacity: .35; transform-origin: left;
}
@keyframes noteTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.note-good { --c1: #75da8e; --c2: #308646; --edge: #2d6b3c; }
.note-bad { --c1: #f68173; --c2: #c2453a; --edge: #7a2418; }
.note-night { --c1: #9da2e8; --c2: #4b4f9e; --edge: #2e3170; }
.note-warn { --c1: #f5c766; --c2: #d08a1f; --edge: #8a5612; }
.note-gold { --c1: #ffe286; --c2: #dc9f22; --edge: #8a5a10; background: linear-gradient(#fff8dc, #f6dc94); }
.note-gold .note-body span { color: #8a5a10; }
.note-gold::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .8) 48%, transparent 60%);
  transform: translateX(-110%); animation: noteShine 1.3s .35s ease-out forwards;
}
@keyframes noteShine { to { transform: translateX(110%); } }
@media (min-aspect-ratio: 5/4) { #notes { top: 56px; } }

/* Loja: cartas com moldura na cor da categoria, brilho atrás do ícone,
   botão de preço gordinho e faixa NOVO! na diagonal. */
#shop {
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 210, 150, .16), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 38px),
    linear-gradient(#7a4f2c, var(--wood-dark));
}
.card {
  --cat-d: color-mix(in srgb, var(--cat) 62%, #2a1608);
  padding: 2px 5px 5px; border: 2.5px solid var(--cat-d); border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, color-mix(in srgb, var(--cat) 30%, transparent), transparent 70%),
    linear-gradient(#fffcf4, #f4e5c6);
  box-shadow: 0 4px 0 var(--cat-d), 0 7px 12px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 255, 255, .85);
}
#shop-list:not(.dragging) .card:active {
  transform: translateY(3px) scale(.98);
  box-shadow: 0 1px 0 var(--cat-d), 0 2px 5px rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(255, 255, 255, .85);
}
.ico-wrap { background: none; }
.card .ico { filter: drop-shadow(0 3px 2px rgba(60, 30, 10, .3)); }
.card .name { font-weight: 700; color: var(--ink); }
.card .lvl {
  top: 4px; right: 4px; padding: 1px 6px; border-radius: 999px; font-size: 9.5px;
  background: var(--cat-d); border: 1.5px solid rgba(255, 255, 255, .85);
}
.card .price {
  width: auto; align-self: stretch; margin: 2px 0 0; padding: 2px 0 4px; border-radius: 10px;
  border: 2px solid #2d6b3c; font-size: 14px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0;
  background: linear-gradient(#86dd9a, #45a85d);
  box-shadow: inset 0 -3px 0 #2f7d44, inset 0 2px 0 rgba(255, 255, 255, .45);
}
.card.cant { filter: saturate(.6) brightness(.95); }
/* Sem dinheiro: o botão cinza vai enchendo de verde até o preço (--p, em %, vem do
   refreshShop). A borda de baixo é escura translúcida pra servir nas duas cores. */
.card.cant .price {
  border-color: #6e5d47;
  --fill: 0 0 / calc(var(--p, 0) * 1%) 100% no-repeat;
  background:
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(255, 255, 255, .4) 0) var(--fill),
    linear-gradient(#b3cf9c, #84a874) var(--fill),
    linear-gradient(#cbb99c, #a39075);
  box-shadow: inset 0 -3px 0 rgba(60, 35, 10, .35), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: background-size .25s linear;
}
.card.free .price { border-color: #9a5a0c; background: linear-gradient(#ffd67a, #f0a02a); box-shadow: inset 0 -3px 0 #b8680c, inset 0 2px 0 rgba(255, 255, 255, .5); }
.card.new::after {
  top: 9px; left: -23px; width: 82px; padding: 2px 0; border-radius: 0; text-align: center;
  font-size: 9px; letter-spacing: .5px; transform: rotate(-38deg); animation: none;
  background: linear-gradient(#f07a6c, #c2453a); box-shadow: 0 2px 0 rgba(90, 20, 10, .45);
}
@keyframes ready { 35% { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 3px var(--gold), 0 4px 0 var(--cat-d); } }
.plaque {
  background: linear-gradient(#d39a60, #9c6634); border-color: #4e2c12;
  box-shadow: 0 4px 0 #3a210d, 0 6px 14px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 235, 200, .45), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.plaque::before, .plaque::after { background: radial-gradient(circle at 35% 30%, #fff3c4, #e0a422 60%, #8a5a10); }


/* Medidor de FPS (?fps na URL) */
#fps {
  position: fixed; left: 6px; bottom: 6px; z-index: 50; pointer-events: none;
  padding: 3px 7px; border-radius: 8px; background: rgba(0, 0, 0, .65); color: #b6ff9e;
  font: 600 12px/1.2 ui-monospace, Menlo, Consolas, monospace;
}


/* Renda e relógio do tempo de jogo empilhados à direita (sobra espaço pro dinheiro). */
.bank { gap: 6px; }
.bank-stats { flex: none; display: flex; flex-direction: column; gap: 2px; }
.bank-stats span {
  display: block; margin: 0; padding: 1px 7px; border-radius: 999px; text-align: center;
  font-size: 10.5px; line-height: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); -webkit-text-stroke: 0;
}
.bank #hud-rate { padding: 1px 7px; font-size: 10.5px; }
.bank #hud-time { background: rgba(40, 22, 8, .45); color: #ffe6b8; }
.bank #hud-time::before { content: "⏱"; margin-right: 3px; }
.bank #hud-money { font-size: 20px; }


/* ═══ Menu principal ═══════════════════════════════════════════════════════ */
/* overflow: clip — nada aqui pode "rolar" (o foco do botão empurrava o menu). */
#splash { cursor: default; overflow: hidden; overflow: clip; transition: opacity .45s .2s; background: radial-gradient(circle at 50% 34%, rgba(255, 228, 150, .38), rgba(16, 34, 12, .8)); }
body.in-title #menu { z-index: 30; }
.menu-rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.menu-rays::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  background: repeating-conic-gradient(rgba(255, 238, 180, .1) 0 9deg, transparent 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 38%); mask-image: radial-gradient(circle, #000 0, transparent 38%);
  animation: rays 60s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.splash-inner { position: relative; z-index: 2; transform: translateY(-24px); transition: transform .45s cubic-bezier(.5, 0, .7, .4), opacity .35s; }
.logo { animation: none; }
.logo-the { animation: popIn .5s .05s both cubic-bezier(.3, 1.6, .5, 1); }
.logo-main i { display: inline-block; font-style: normal; animation: letterDrop .6s cubic-bezier(.3, 1.7, .5, 1) both, letterHop 3.4s ease-in-out infinite; }
@keyframes letterDrop { 0% { transform: translateY(-140px) scale(.5); opacity: 0; } 60% { transform: translateY(5px) scale(1.12, .88); opacity: 1; } 100% { transform: none; } }
@keyframes letterHop { 0%, 84%, 100% { transform: none; } 90% { transform: translateY(-7px) rotate(-5deg); } }
.logo-3d { animation: badgeIn .5s .95s both cubic-bezier(.3, 1.9, .5, 1), badgeWiggle 2.6s 1.6s ease-in-out infinite; }
@keyframes badgeIn { from { transform: rotate(40deg) scale(0); } }
@keyframes badgeWiggle { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(4deg) scale(1.1); } }
.menu-egg { position: relative; margin-top: 4px; animation: popIn .55s .75s both cubic-bezier(.3, 1.6, .5, 1); }
.egg-glow {
  position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 224, 110, .6), rgba(255, 224, 110, 0) 65%); animation: glowPulse 1.8s ease-in-out infinite;
}
@keyframes glowPulse { 50% { transform: scale(1.18); opacity: .7; } }
.spark { position: absolute; font-style: normal; color: #fff6c8; text-shadow: 0 0 8px #ffd34d; -webkit-text-stroke: 0; animation: twinkle 1.6s ease-in-out infinite; }
.spark.s1 { left: -6px; top: 18px; font-size: 20px; }
.spark.s2 { right: -4px; top: 6px; font-size: 14px; animation-delay: .5s; }
.spark.s3 { right: 8px; bottom: 14px; font-size: 17px; animation-delay: 1s; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.menu-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.mbtn { position: relative; overflow: hidden; font: inherit; font-weight: 700; color: #fff; cursor: pointer; border: 3px solid #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); -webkit-text-stroke: 0; }
.mbtn:active { transform: translateY(3px) scale(.96) !important; }
.mbtn-play {
  min-width: 230px; padding: 12px 36px 15px; font-size: 27px; letter-spacing: 2px; border-radius: 22px;
  background: linear-gradient(#8de2a1, #45a85d);
  box-shadow: 0 6px 0 #2f7d44, 0 14px 26px rgba(0, 0, 0, .35), inset 0 3px 0 rgba(255, 255, 255, .5);
  animation: btnIn .55s 1.05s both cubic-bezier(.3, 1.6, .5, 1), playPulse 1.5s 1.8s ease-in-out infinite;
}
@keyframes playPulse { 50% { transform: scale(1.06); } }
.mbtn-play::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 38%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); animation: btnShine 2.8s 2s ease-in-out infinite;
}
@keyframes btnShine { 0% { left: -60%; } 35%, 100% { left: 140%; } }
@keyframes btnIn { from { transform: translateY(34px) scale(.5); opacity: 0; } }
.mbtn-row { display: flex; gap: 12px; }
.mbtn-sq {
  --c1: #d39a60; --c2: #9c6634; --edge: #5a3519;
  width: 82px; height: 74px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; background: linear-gradient(var(--c1), var(--c2));
  box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .45);
  animation: btnIn .5s both cubic-bezier(.3, 1.6, .5, 1);
}
.mbtn-sq:nth-child(1) { animation-delay: 1.2s; }
.mbtn-sq:nth-child(2) { animation-delay: 1.28s; }
.mbtn-sq:nth-child(3) { animation-delay: 1.36s; }
.mbtn-sq span { font-size: 27px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); transition: transform .2s; }
.mbtn-sq:hover span { transform: scale(1.15) rotate(-6deg); }
.mbtn-gold { --c1: #ffd67a; --c2: #e0a02a; --edge: #9a5a0c; }
.mbtn-blue { --c1: #86bdf0; --c2: #4a7fc0; --edge: #2a4f80; }
.mbtn-wood { --c1: #d39a60; --c2: #9c6634; --edge: #5a3519; }
.mbtn-lock { position: absolute; top: 3px; right: 4px; font-size: 11px; font-style: normal; }
.menu-fall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.menu-fall i { position: absolute; top: -30px; animation: fall linear infinite; }
.menu-fall .feather { width: 9px; height: 17px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: linear-gradient(#fff, #e6ddce); opacity: .8; }
.menu-fall .mini-egg { width: 11px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff8c4, #f4ce58 60%, #c98a1a); }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(var(--sway), calc(28 * var(--vh))) rotate(80deg); }
  50% { transform: translate(0, calc(56 * var(--vh))) rotate(170deg); }
  75% { transform: translate(calc(var(--sway) * -1), calc(84 * var(--vh))) rotate(260deg); }
  100% { transform: translate(0, calc(112 * var(--vh))) rotate(350deg); }
}
.menu-peek { position: absolute; bottom: -14px; width: 96px; height: 96px; z-index: 1; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); animation: peek 4s ease-in-out infinite; }
.peek-l { left: 4%; }
.peek-r { right: 4%; transform: scaleX(-1); animation-delay: 2s; }
@keyframes peek { 0%, 100% { translate: 0 70px; } 18%, 62% { translate: 0 0; } 70% { translate: 0 8px; } }
/* Saindo: o miolo sobe e some, o fundo apaga logo depois. */
#splash.out { opacity: 0; pointer-events: none; }
#splash.out .splash-inner { transform: translateY(-70px) scale(.85); opacity: 0; }
#splash.out .menu-peek { translate: 0 110px; transition: translate .3s; animation: none; }


/* ── Menu: só aparece quando está pronto (antes: ovinho carregando) ── */
#splash:not(.ready) .splash-inner, #splash:not(.ready) .menu-peek, #splash:not(.ready) .menu-fall { display: none; }
#splash.ready .menu-loading { display: none; }
.menu-loading { position: absolute; left: 50%; top: 46%; width: 44px; height: 70px; margin-left: -22px; z-index: 3; }
.ld-egg {
  position: absolute; left: 6px; top: 0; width: 32px; height: 40px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd34d 55%, #d99a1a); box-shadow: 0 0 18px rgba(255, 210, 90, .6);
  animation: ldHop .7s ease-in-out infinite;
}
.ld-shadow { position: absolute; left: 8px; bottom: 0; width: 28px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .3); animation: ldShadow .7s ease-in-out infinite; }
@keyframes ldHop { 0%, 100% { transform: translateY(18px) scale(1.08, .92); } 50% { transform: translateY(0) rotate(8deg); } }
@keyframes ldShadow { 0%, 100% { transform: scale(1); } 50% { transform: scale(.6); opacity: .5; } }

/* Bandeiras e seletor de idioma */
.flag { display: inline-flex; width: 26px; height: 17px; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25), 0 2px 0 rgba(0, 0, 0, .15); }
.flag svg { width: 100%; height: 100%; display: block; }
/* Idioma nas opções: bandeira + nome. */
.menu-box button.opt-lang { display: flex; align-items: center; justify-content: center; gap: 9px; }
/* Colunas que não passam da largura (minmax 0) e sem rolagem pro lado: nome comprido
   ("Bahasa Indonesia") encolhe com reticências em vez de empurrar a grade. */
.lang-box { width: min(440px, calc(100% - 24px)); }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; max-height: min(calc(52 * var(--vh)), 420px); overflow-y: auto; overflow-x: hidden; padding: 2px 4px 2px 2px; }
/* Paisagem: 3 colunas, as 14 línguas cabem sem rolar. */
@media (min-aspect-ratio: 5/4) {
  .lang-box { width: min(620px, calc(100% - 24px)); }
  .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: min(calc(100 * var(--vh) - 170px), 420px); }
}
.menu-box .lang-opt {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; min-height: 40px; text-align: left;
  font-size: 14px; color: var(--ink); background: linear-gradient(#fffaf0, #f2e2c2); border: 2px solid #d9bf94;
  box-shadow: 0 3px 0 #b38f60; border-radius: 12px; text-shadow: none; -webkit-text-stroke: 0;
}
.menu-box .lang-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.menu-box .lang-opt.on { background: linear-gradient(#bff0c8, #86d899); border-color: #3f9a55; box-shadow: 0 3px 0 #2f7d44; }


/* ═══ Menu principal v2: Egg-O-Matic ══════════════════════════════════════ */
:root { --ink-line: #4a2a12; --display: "Rubik Display", "Fredoka", system-ui, sans-serif; }
.menu-rays::before { opacity: .7; }
.splash-inner { gap: 4px; }
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, calc(13.5 * var(--vw)), 62px); line-height: 1.05; letter-spacing: 1px;
  color: #fff7e6; white-space: nowrap; -webkit-text-stroke: calc(7px * var(--sk, 1)) var(--ink-line); paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink-line), 0 12px 18px rgba(0, 0, 0, .35);
}
.logo-title .lt {
  display: inline-block; font-style: normal;
  animation: letterDrop .6s cubic-bezier(.3, 1.7, .5, 1) both, letterHop 3.8s ease-in-out infinite;
  animation-delay: calc(.12s + var(--d) * .055s), calc(1.9s + var(--d) * .12s);
}
.logo-title .lt-y { color: #ffcf3f; }
.logo-title .lt-egg {
  width: .58em; height: .76em; margin: 0 .03em; vertical-align: -.02em; box-sizing: border-box;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 5px solid var(--ink-line);
  background: radial-gradient(circle at 36% 30%, #fff 0 14%, #fff6e2 40%, #efd29a 100%);
  box-shadow: 0 6px 0 var(--ink-line), inset -4px -5px 0 rgba(180, 130, 60, .25);
}
.logo-ribbon {
  position: relative; z-index: 1; margin-top: 2px; padding: 4px 20px 6px; transform: rotate(-2deg);
  font-family: var(--display); font-size: clamp(14px, calc(4.4 * var(--vw)), 19px); letter-spacing: 2px; color: #fff3dc;
  background: linear-gradient(#ea5b4c, #b9362b); border: 3px solid var(--ink-line); border-radius: 6px;
  box-shadow: 0 4px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .3);
  text-shadow: 0 2px 0 rgba(74, 42, 18, .6); -webkit-text-stroke: 0; animation: popIn .5s .8s both cubic-bezier(.3, 1.8, .5, 1);
}
.logo-ribbon::before, .logo-ribbon::after {
  content: ""; position: absolute; top: 9px; width: 20px; height: 100%; z-index: -1;
  background: #94291f; border: 3px solid var(--ink-line);
}
.logo-ribbon::before { left: -15px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 38% 50%); }
.logo-ribbon::after { right: -15px; clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%); }

.mbtn {
  --line: var(--ink-line);
  font-family: var(--display); font-weight: 400; letter-spacing: 1px; color: #fff;
  border: 3px solid var(--line);
  text-shadow: 0 2px 0 var(--line); -webkit-text-stroke: calc(4px * var(--sk, 1)) var(--line); paint-order: stroke fill;
}
.mbtn::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 4px; height: 40%; border-radius: 12px 12px 40% 40% / 12px 12px 60% 60%;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .06)); pointer-events: none;
}
.mbtn-play {
  --line: #1d4d27;
  min-width: 236px; padding: 9px 40px 13px; font-size: 34px; border-radius: 20px;
  background: linear-gradient(#a6ea74, #55bb3f 55%, #3f9d30);
  box-shadow: 0 6px 0 var(--line), 0 14px 24px rgba(0, 0, 0, .35), inset 0 -5px 0 rgba(0, 0, 0, .14);
}
.mbtn-play::after { z-index: 1; }
.mbtn-sq {
  --line: var(--ink-line);
  width: 90px; height: 86px; gap: 1px; border-radius: 16px; font-size: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(60, 30, 10, .08) 0 2px, transparent 2px 15px),
    linear-gradient(#dba56a, #a96a31);
  box-shadow: 0 5px 0 var(--line), 0 12px 20px rgba(0, 0, 0, .3), inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.mbtn-sq b { font-weight: 400; position: relative; z-index: 1; }
.mbtn-ico { width: 46px; height: 46px; position: relative; z-index: 1; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .35)); transition: transform .2s; }
.mbtn-sq:hover .mbtn-ico { transform: scale(1.12) rotate(-6deg); }
.mbtn-lock {
  position: absolute; top: 7px; right: 7px; width: 14px; height: 11px; z-index: 2;
  background: #ffd34d; border: 2px solid var(--line); border-radius: 3px;
}
.mbtn-lock::before {
  content: ""; position: absolute; left: 1px; top: -9px; width: 8px; height: 8px;
  border: 2px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.menu-fall .fall-bit { position: absolute; top: -40px; animation: fall linear infinite; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25)); }
.mbtn-sq::before { opacity: .4; }

.menu-box h2 .globe { width: 24px; height: 24px; vertical-align: -6px; }

.mode-ico img { width: 44px; height: 44px; display: block; margin: 0 auto; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .3)); }
.mode.locked .mode-ico img { filter: grayscale(.4) drop-shadow(0 2px 0 rgba(60, 30, 10, .3)); }


/* Logo (src/logo.js): um adesivo só, com sombra própria; entra quicando e
   fica com um leve giro. JOGAR na largura da fileira de botões. */
.logo-svg { display: block; width: min(calc(90 * var(--vw)), 400px); height: auto; overflow: visible; rotate: -2deg; }
.logo { animation: logoIn .6s .1s both cubic-bezier(.3, 1.6, .5, 1); }
/* Logo ainda sendo montado (aparelho lento): o espaço dele fica reservado no
   tamanho exato do SVG (viewBox 753.96 × 407.58), pros botões não pularem; quando
   fica pronto, ganha .built e entra quicando (a mesma animação de sempre). */
.logo:not(.built) { animation: none; visibility: hidden; }
.logo:not(.built) > * { display: none; }
.logo:not(.built)::before { content: ""; display: block; width: min(calc(90 * var(--vw)), 400px); aspect-ratio: 753.96 / 407.58; }
@keyframes logoIn { from { transform: scale(.5) rotate(-10deg); opacity: 0; } }
.mbtn-play { min-width: 0; width: 294px; padding-left: 0; padding-right: 0; }


/* ═══ UI v2: mesma direção de arte do menu (fonte de jogo, contorno escuro, voxel) ═══ */
:root { --ink-line: #4a2a12; --display: "Rubik Display", "Fredoka", system-ui, sans-serif; }
#hud-money, .bank-hens span, #goal-text, .card .name, .card .price, .plaque, .note-body b, .menu-box h2,
.menu-box button, .mode-name, .m-claim, .tlabel.mval, .float, .g-txt, .card .lvl, .card.new::after, .big-money,
#wolf-alert, .bank-stats span, .ach-count, .a-name {
  font-family: var(--display); font-weight: 400; letter-spacing: .3px;
}
/* contorno de texto no estilo do logo: traço por fora (text-stroke com paint-order, a
   metade de dentro fica sob o preenchimento) e uma sombra embaixo de profundidade. As 8
   sombras de antes deixavam os cantos serrilhados. Regra que troca o text-shadow de um
   texto troca também o -webkit-text-stroke (os dois são herdados). */
#hud-money, .card .price, .plaque, .menu-box h2, .menu-box button, .m-claim, .float, #wolf-alert {
  --o: var(--ink-line);
  text-shadow: 0 2px 0 var(--o); -webkit-text-stroke: calc(4px * var(--sk, 1)) var(--o); paint-order: stroke fill;
}
/* Japonês, coreano e chinês: a fonte do aparelho (limpa e sem download; os números
   e as letras latinas continuam na Rubik) e contorno 25% mais fino (--sk), que
   no traço grosso as letras embolavam. */
:root:lang(ja) { --display: "Rubik Display", "Display JA", "Yu Gothic UI", "Meiryo", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; --sk: .75; }
:root:lang(ko) { --display: "Rubik Display", "Display KO", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; --sk: .75; }
:root:lang(zh) { --display: "Rubik Display", "Display ZH", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; --sk: .75; }
:root:lang(zh-TW) { --display: "Rubik Display", "Display TC", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif; }
/* Tailandês e hindi: mesma ideia, com a fonte do aparelho para a escrita deles. */
:root:lang(th) { --display: "Rubik Display", "Display TH", "Leelawadee UI", "Thonburi", "Noto Sans Thai", system-ui, sans-serif; --sk: .75; }
:root:lang(hi) { --display: "Rubik Display", "Display HI", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", system-ui, sans-serif; --sk: .75; }
/* Vietnamita: as letras com dois acentos (ế, ặ, ữ) não existem na Rubik nem na
   Fredoka, e cairiam numa outra fonte no meio da palavra. Então o texto inteiro
   vai na fonte do aparelho, que tem todas. */
:root:lang(vi) { --display: "Display VI", "Segoe UI", Roboto, system-ui, sans-serif; --sk: .85; }
:root:lang(vi) body, :root:lang(vi) .card .name, :root:lang(vi) .coin-s::before { font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif; }
/* Vietnamita, tailandês e hindi têm acentos bem acima e abaixo da linha (e japonês,
   coreano e chinês têm letras altas): nos cards
   (que cortam o que passa da caixa) as linhas ficam mais altas para nada ser cortado. */
/* O espaço vem do ícone, um pouco mais baixo. */
:root:is(:lang(vi), :lang(th), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) .ico-wrap { height: 28px; }
:root:is(:lang(vi), :lang(th), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) .card .ico { width: 34px; height: 34px; }
:root:is(:lang(vi), :lang(th), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) .card .name { font-size: 12.5px; line-height: 1.3; padding: 0; margin: 0; flex-shrink: 0; }
:root:is(:lang(vi), :lang(th), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) .card .desc { font-size: 10px; line-height: 1.3; margin-top: -1px; flex-shrink: 0; }
img { -webkit-user-drag: none; }

/* HUD */
.bank { border-color: var(--ink-line); box-shadow: 0 4px 0 var(--ink-line), 0 8px 16px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 230, 190, .35); }
.bank #hud-money { font-size: 22px; }
.bank-hens { font-size: 17px; }
.hud-btn {
  border: 3px solid var(--ink-line); box-shadow: 0 3px 0 var(--ink-line), 0 6px 12px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 230, 190, .3);
  background: linear-gradient(#a3693a, #6d4221);
}
.hud-btn img { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(40, 20, 5, .35)); }
.ring-in img { width: 24px; height: 24px; }
.hud-btn.threat { background: linear-gradient(#f07a6c, #c2453a); }
.hud-btn.ring { border-color: var(--ink-line); }
.hud-btn.ring.done .ring-in { background: linear-gradient(#75da8e, #308646); }
.goal-ico { border: 2.5px solid var(--ink-line); background: radial-gradient(circle at 35% 30%, #fff8dc, #f6d98a); box-shadow: 0 2px 0 var(--ink-line); }
.goal-ico img { width: 26px; height: 26px; }
.goal-track { border: 2.5px solid var(--ink-line); border-left: 0; background: rgba(40, 22, 8, .78); }
#goal-text { font-size: 12.5px; text-shadow: none; -webkit-text-stroke: calc(2px * var(--sk, 1)) var(--ink-line); paint-order: stroke fill; }
.bank #hud-time::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; vertical-align: -1px;
  border: 1.5px solid #ffe6b8; border-radius: 50%;
  background: linear-gradient(#ffe6b8, #ffe6b8) 50% 15% / 1.5px 45% no-repeat, linear-gradient(#ffe6b8, #ffe6b8) 70% 55% / 40% 1.5px no-repeat;
}

/* Medidores no mundo */
.gauge { border: 2px solid var(--ink-line); background: rgba(40, 22, 8, .88); box-shadow: 0 2px 0 var(--ink-line); }
.g-ico { background: #fff7e6; border: 1.5px solid var(--ink-line); }
.g-ico img { width: 100%; height: 100%; }
.gauge.mini .g-ico { width: 17px; height: 17px; }
.g-txt { color: #fff7e6; }
.tlabel.mval { border: 2px solid var(--ink-line); background: linear-gradient(#5aa14a, #357a2c); color: #fff7e6; font-size: 12px; box-shadow: 0 2px 0 var(--ink-line); }
.float { color: #ffd54a; }
.float.mult { color: #bfeaff; }
.float.heart { color: #ff8fb0; }

/* Loja */
.card .name { font-size: 13.5px; color: #4a2a12; }
.card .price { font-size: 15px; border-color: var(--ink-line); }
.card.cant .price { border-color: var(--ink-line); }
.card.free .price { border-color: var(--ink-line); }
.card .lvl { border-color: var(--ink-line); font-size: 10.5px; }
.plaque { font-size: 19px; border-color: var(--ink-line); box-shadow: 0 4px 0 var(--ink-line), 0 6px 14px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 235, 200, .45); }

/* Avisos */
.note { border-color: var(--ink-line); box-shadow: 0 4px 0 var(--ink-line), 0 10px 22px rgba(0, 0, 0, .28), inset 0 2px 0 #fff; }
.note-ico { box-shadow: 0 0 0 2.5px var(--ink-line), 0 3px 0 2px var(--ink-line); }
.note-ico img { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(40, 20, 5, .3)); }
.note-body b { font-size: 16px; color: #4a2a12; }

/* Missão */
#mission-pop { border: 3px solid var(--ink-line); box-shadow: 0 4px 0 var(--ink-line), 0 8px 16px rgba(0, 0, 0, .3); }
#mission-pop .m-text { font-family: var(--display); font-weight: 400; font-size: 15px; color: #4a2a12; }
#mission-pop.done .m-claim { border: 3px solid #1d4d27; font-size: 19px; background: linear-gradient(#a6ea74, #55bb3f 55%, #3f9d30); box-shadow: 0 4px 0 #1d4d27, inset 0 2px 0 rgba(255, 255, 255, .5); --o: #1d4d27; }

/* Janelas (pausa, opções, conquistas, modos, idioma) */
.menu-box { border: 3px solid var(--ink-line); box-shadow: 0 6px 0 var(--ink-line), 0 14px 30px rgba(0, 0, 0, .45), inset 0 2px 0 #fff; }
.menu-box h2 { font-size: 22px; border-color: var(--ink-line); box-shadow: 0 4px 0 var(--ink-line), inset 0 2px 0 rgba(255, 235, 200, .45); background: linear-gradient(#d9a066, #a8692f); }
.menu-box button {
  --o: #1d4d27; font-size: 19px; padding: 9px 11px 11px; border: 3px solid #1d4d27; border-radius: 14px;
  background: linear-gradient(#a6ea74, #55bb3f 55%, #3f9d30); box-shadow: 0 4px 0 #1d4d27, inset 0 2px 0 rgba(255, 255, 255, .5);
}
.menu-box button.alt {
  --o: var(--ink-line); border-color: var(--ink-line);
  background: repeating-linear-gradient(90deg, rgba(60, 30, 10, .08) 0 2px, transparent 2px 15px), linear-gradient(#dba56a, #a96a31);
  box-shadow: 0 4px 0 var(--ink-line), inset 0 2px 0 rgba(255, 235, 200, .45);
}
.menu-box button.danger { --o: #5e140c; border-color: #5e140c; background: linear-gradient(#f07a6c, #c2453a); box-shadow: 0 4px 0 #5e140c, inset 0 2px 0 rgba(255, 255, 255, .4); }
.menu-box button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--o), inset 0 2px 0 rgba(255, 255, 255, .4); }
.menu-box .lang-opt { text-shadow: none; -webkit-text-stroke: 0; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; --o: transparent; }
/* O botão geral dos menus (19 px, padding grande) vencia o do idioma e alargava a grade. */
.menu-box .lang-grid .lang-opt { min-width: 0; font-size: 15.5px; padding: 8px 10px; border-width: 2px; }
.mode { border: 2.5px solid var(--ink-line); box-shadow: 0 3px 0 var(--ink-line); }
.mode-name { font-size: 15px; color: #4a2a12; }
/* Nomes das cartas na fonte mais estreita (a de jogo cortava nomes longos). */
.card .name { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0; }


/* ═══ Avisos tocáveis e compactos ════════════════════════════════════════
   Um toque/clique fecha o aviso (e a faixa do lobo) na hora. O cartão é
   baixinho e estreito, pra não cobrir o pasto (no celular em pé, principalmente). */
#notes { width: min(280px, calc(100% - 28px)); gap: 6px; }
.note {
  pointer-events: auto; cursor: pointer; touch-action: manipulation;
  min-height: 0; gap: 8px; padding: 4px 12px 7px 4px; border-radius: 12px; border-width: 2.5px;
  box-shadow: 0 3px 0 var(--ink-line), 0 6px 12px rgba(0, 0, 0, .22), inset 0 2px 0 #fff;
}
.note-ico { width: 28px; height: 28px; font-size: 15px; border-width: 2px; box-shadow: 0 0 0 2px var(--ink-line), 0 2px 0 2px var(--ink-line); }
.note-ico img { width: 22px; height: 22px; }
.note-body b { font-size: 14px; }
.note-body span { font-size: 11.5px; margin-top: 1px; }
.note-time { left: 10px; right: 10px; bottom: 3px; height: 2px; }
#wolf-alert.show { pointer-events: auto; cursor: pointer; }
@media (min-aspect-ratio: 5/4) {
  .note-body b { font-size: 13.5px; }
  #wolf-alert { font-size: 14px; padding: 3px 12px; }
}


/* ═══ Modos, 2× de renda e fim de partida ═════════════════════════════════ */
/* Selo de vídeo dos anúncios premiados. */
.tv-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 19px; padding-left: 1px; border-radius: 6px; border: 2px solid #fff;
  background: linear-gradient(#ff6b5e, #d23b2f); box-shadow: 0 2px 0 rgba(60, 10, 5, .45);
  color: #fff; font: normal 700 9px/1 system-ui, sans-serif; text-shadow: none; -webkit-text-stroke: 0;
}
.tv-ico svg { width: 15px; height: 11px; fill: #fff; display: block; }
.hud-btn.boost .tv-ico svg { width: 12px; height: 9px; }

/* Botão 2× no HUD: moeda dourada com brilho passando, halo pulsando e selo de vídeo.
   Ativo: verde, com um anel que esvazia junto da contagem. */
.hud-btn.boost {
  position: relative; flex-direction: column; gap: 0; border-color: #fff; color: #fff; font-family: var(--display);
  background: radial-gradient(circle at 35% 30%, #fff6b8, #ffd23f 45%, #e8961a);
  animation: boostGlow 1.5s ease-in-out infinite;
}
@keyframes boostGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 0 var(--ink-line), 0 0 0 0 rgba(255, 214, 70, .75), 0 0 10px rgba(255, 190, 40, .6); }
  50% { transform: scale(1.1); box-shadow: 0 3px 0 var(--ink-line), 0 0 0 8px rgba(255, 214, 70, 0), 0 0 24px rgba(255, 190, 40, .95); }
}
.hud-btn.boost::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; animation: boostShine 2.2s ease-in-out infinite;
}
@keyframes boostShine { 0%, 45% { background-position: 120% 0; } 85%, 100% { background-position: -20% 0; } }
.hud-btn.boost b {
  position: relative; z-index: 1; font-size: 18px; line-height: 1; font-weight: 400; letter-spacing: 0;
  --o: var(--ink-line); text-shadow: 0 1px 0 var(--o); -webkit-text-stroke: calc(3px * var(--sk, 1)) var(--o); paint-order: stroke fill;
}
.hud-btn.boost .tv-ico { position: absolute; z-index: 2; top: -7px; right: -10px; width: 21px; height: 16px; border-width: 1.5px; font-size: 7px; }
.hud-btn.boost .boost-ring, .hud-btn.boost .boost-time { display: none; }
.hud-btn.boost.on { animation: none; background: conic-gradient(#8ff0a0 calc(var(--p, 100) * 1%), rgba(20, 50, 20, .6) 0); }
.hud-btn.boost.on::after, .hud-btn.boost.on .tv-ico { display: none; }
.hud-btn.boost.on .boost-ring { display: block; position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(#5fd47a, #2a9c48); }
.hud-btn.boost.on b { font-size: 12px; }
.hud-btn.boost.on .boost-time {
  display: block; position: relative; z-index: 1; font-size: 9.5px; line-height: 1;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); -webkit-text-stroke: 0;
}
/* Retrato: o 2× fica no fim da linha da meta como uma pílula da altura dela (o
   redondo, embaixo da engrenagem, encostava nela). Ativo: a pílula esvazia da
   direita pra esquerda junto da contagem. */
#goal .hud-btn.boost {
  flex: none; flex-direction: row; gap: 5px; width: auto; height: 28px; margin-left: 8px; padding: 0 5px 0 9px;
  border-width: 2.5px; border-radius: 999px;
}
#goal .hud-btn.boost::after { border-radius: inherit; }
#goal .hud-btn.boost b { font-size: 15px; }
#goal .hud-btn.boost .tv-ico { position: static; width: 21px; height: 16px; }
#goal .hud-btn.boost.on { padding: 0 9px; background: linear-gradient(90deg, #5fd47a calc(var(--p, 100) * 1%), rgba(20, 50, 20, .75) 0); }
#goal .hud-btn.boost.on .boost-ring { display: none; }
#goal .hud-btn.boost.on b { font-size: 13px; }
#goal .hud-btn.boost.on .boost-time { font-size: 12px; }

/* Ofertas de anúncio premiado (2× e bem-vindo): caixa dourada com medalhão.
   Aceitar e recusar usam o mesmo botão (regra da CrazyGames: recusar com o mesmo
   tamanho, fonte e cor); muda só o conteúdo (selo de vídeo, valor). */
.menu-box.offer-box {
  background: radial-gradient(circle at 50% 0, #fff6cf, var(--card) 55%, var(--card2));
  box-shadow: 0 6px 0 var(--card-edge), 0 0 0 4px rgba(255, 210, 70, .55), 0 14px 30px rgba(0, 0, 0, .45);
}
.offer-hero { position: relative; align-self: center; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.offer-rays {
  position: absolute; inset: -24px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 196, 50, .6) 0 12deg, transparent 12deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: rays 14s linear infinite;
}
.offer-hero b {
  position: relative; width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff6b8, #ffd23f 45%, #e8961a); border: 4px solid #fff;
  box-shadow: 0 4px 0 #a86d0c, 0 0 18px rgba(255, 190, 40, .8); animation: playPulse 1.4s ease-in-out infinite;
  font-family: var(--display); font-weight: 400; font-size: 40px; color: #fff;
  --o: var(--ink-line); text-shadow: 0 1px 0 var(--o); -webkit-text-stroke: calc(4px * var(--sk, 1)) var(--o); paint-order: stroke fill;
}
.menu-box button.offer {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; font-size: 18px; border-radius: 14px; border: 3px solid var(--ink-line);
  background: linear-gradient(#a6ea74, #55bb3f 55%, #3f9d30);
  box-shadow: 0 4px 0 var(--ink-line), inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .45);
}
.menu-box button.offer::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 34%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: btnShine 2.8s 1s ease-in-out infinite;
}
.menu-box button.offer:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-line), inset 0 -4px 0 rgba(0, 0, 0, .14); }
/* Vídeo travado (checando, adblock, sem conexão): botão cinza e desligado, com
   cadeado no selo, e o motivo numa linha logo embaixo. Liga sozinho quando der. */
.menu-box button.offer.ad-locked { filter: grayscale(1) brightness(.92); opacity: .7; cursor: default; }
.menu-box button.offer.ad-locked::after { display: none; }
.menu-box button.offer.ad-locked:active { transform: none; }
.menu-box button.offer.ad-locked .tv-ico svg { display: none; }
.menu-box button.offer.ad-locked .tv-ico::before { content: "🔒"; font-size: 15px; line-height: 1; }
.menu-box .ad-lock { margin: -4px 0 0; text-align: center; }
.hud-btn.boost.locked { filter: grayscale(1) brightness(.9); opacity: .8; animation: none; }
.hud-btn.boost.locked::after { display: none; }
.hud-btn.boost.locked .tv-ico svg { display: none; }
.hud-btn.boost.locked .tv-ico::before { content: "🔒"; font-size: 9px; line-height: 1; }
#goal .hud-btn.boost.locked .tv-ico::before { font-size: 11px; }
.offer-x2 { font-weight: 400; font-size: 23px; line-height: 1; }
/* Selo de vídeo maior dentro dos botões de oferta (no HUD fica o pequeno). */
.menu-box button.offer .tv-ico { width: 36px; height: 26px; border-radius: 8px; }
/* Texto numa linha só (diminui até caber, _fitMenu): quebrando em duas, o texto
   ocupava a largura toda e o selo de vídeo ficava fora do centro. */
.menu-box button.offer > span { white-space: nowrap; }
.menu-box button.offer .tv-ico svg { width: 21px; height: 15px; }
.offer-amt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 4px; border-radius: 999px; background: rgba(30, 70, 15, .35); font-weight: 400; }
.offer-amt .coin-s { width: 17px; height: 17px; }
.menu-box button[disabled] { opacity: .5; cursor: default; transform: none; }

/* Selo HARDCORE (Matilha): no cartão do modo, no título, no fim e nos recordes. */
.hard-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px 2px; border-radius: 6px; vertical-align: 1px;
  background: linear-gradient(#ff6b5e, #c2312a); border: 1.5px solid #fff; box-shadow: 0 2px 0 rgba(90, 15, 10, .5);
  color: #fff; font-family: var(--display); font-weight: 400; font-size: 10.5px; letter-spacing: .8px; line-height: 1.2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0;
}
.menu-box button.mode .mode-hard {
  position: absolute; top: -9px; right: -7px; z-index: 1; transform: rotate(8deg);
  padding: 2px 7px 3px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 2px 0 #7a140d;
  background: linear-gradient(#ff6b5e, #c2312a); color: #fff;
  font-family: var(--display); font-size: 11px; letter-spacing: .8px; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0;
}
.menu-box button.mode.hard { background: linear-gradient(#fff, #ffeceb); }
.menu-box button.mode.hard.open { border-color: #e98a80; }

/* Cartões de modo clicáveis (são botões: zera o estilo dos botões do menu). */
.menu-box button.mode {
  display: block; width: 100%; padding: 8px 6px 6px; border-radius: 12px; border: 2px solid #f0e2c6;
  background: #fff; box-shadow: 0 3px 0 var(--card-edge); color: var(--ink); text-shadow: none; -webkit-text-stroke: 0;
  font-family: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0; cursor: pointer;
}
.menu-box button.mode.on { border-color: var(--ok); }
.menu-box button.mode.open { border-color: #8fb0ff; }
.menu-box button.mode[disabled] { opacity: .7; cursor: default; }
.mode.open .mode-tag { background: #6b8ad9; }
/* Modos que ainda vão chegar: céu escuro com estrelas (Império do Ovo azul do mar,
   Fazenda Lunar roxo do espaço), ícone colorido e o EM BREVE dourado. */
.menu-box button.mode.soon {
  opacity: 1; cursor: default; color: #fff; border-color: #1c1640; box-shadow: 0 3px 0 #1c1640;
  background:
    radial-gradient(1.5px 1.5px at 18% 22%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 78% 30%, #fff 99%, transparent),
    radial-gradient(1px 1px at 62% 12%, #fff 99%, transparent), radial-gradient(1px 1px at 32% 70%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 88% 78%, #ffe9a0 99%, transparent), radial-gradient(1px 1px at 10% 85%, #fff 99%, transparent),
    linear-gradient(#2a3f8f, #3b2a7a);
}
.menu-box button.mode.soon-world { background-color: #1f5d8f; background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 78% 30%, #fff 99%, transparent),
    radial-gradient(1px 1px at 62% 12%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 88% 78%, #ffe9a0 99%, transparent),
    linear-gradient(#2f7fc0, #1d4d8a); border-color: #123056; box-shadow: 0 3px 0 #123056; }
.mode.soon .mode-name { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.mode.soon .mode-desc { color: #dfe6ff; }
.mode.soon .mode-ico img { filter: drop-shadow(0 0 8px rgba(255, 230, 140, .7)); animation: ecBob 2.4s ease-in-out infinite; }
.mode.soon .mode-tag { background: linear-gradient(#ffd75a, #f2a93b); color: #5a3510; letter-spacing: 1px; }
.mode-rec { margin-top: 3px; font-size: 11px; font-weight: 700; color: #a8701a; font-variant-numeric: tabular-nums; }

/* Recordes: uma linha por modo (ícone, nome, aposentadorias, melhor tempo). */
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 12px;
  background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge);
}
.rec-row.hard { border-color: #e98a80; background: linear-gradient(#fff, #ffeceb); }
.rec-ico img { width: 40px; height: 40px; display: block; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .3)); }
.rec-info { flex: 1; min-width: 0; }
.rec-name { font-family: var(--display); font-size: 15.5px; color: var(--ink); line-height: 1.2; }
.rec-runs { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.rec-time { font-family: var(--display); font-size: 19px; color: #a8701a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-time.none { color: #c9b89c; }
.rec-row.board { border-color: #f2c14e; background: linear-gradient(#fff, #fff6d8); }

/* Recordes v2: ranking semanal + recordes + regras. Retrato numa coluna (ranking,
   recordes, regras: .rec-side some e os blocos entram na ordem); paisagem em duas. */
.menu-box.rec-box { gap: 12px; }
.rec-grid { display: flex; flex-direction: column; gap: 12px; }
.rec-side { display: contents; }
.rank-block { order: 0; display: flex; flex-direction: column; gap: 6px; }
.rec-grid .rec-list { order: 1; }
.rules-block { order: 2; display: flex; flex-direction: column; gap: 6px; }
@media (min-aspect-ratio: 5/4) {
  .menu-box.rec-box { width: min(94%, 720px); }
  .rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
  .rec-side { display: flex; flex-direction: column; gap: 12px; }
}
.rank-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 8px; border-radius: 14px;
  background: radial-gradient(circle at 15% 50%, #fff6cf, #ffe08a 60%, #f6c453); border: 3px solid var(--ink-line);
  box-shadow: 0 4px 0 var(--ink-line), inset 0 3px 0 rgba(255, 255, 255, .55);
}
.rank-hero { position: relative; flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.rank-hero .offer-rays { inset: -14px; }
.rank-hero img { position: relative; width: 58px; height: 58px; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .35)); animation: playPulse 1.6s ease-in-out infinite; }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.rank-title { font-family: var(--display); font-size: 17px; line-height: 1.15; }
.rank-best { font-size: 13.5px; font-weight: 600; }
.rank-best b { font-family: var(--display); font-weight: 400; font-size: 19px; color: #a8701a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-left { align-self: flex-start; margin-top: 2px; padding: 1px 9px 2px; border-radius: 999px; background: rgba(74, 42, 18, .14); font-size: 12px; font-weight: 700; color: #6b4320; font-variant-numeric: tabular-nums; }
.rules-head { font-family: var(--display); font-size: 15px; color: var(--ink); text-align: center; }

/* Regras dos modos de recorde: cartão do começo da partida e Recordes. */
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rules li {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 10px;
  background: #fff; border: 2px solid #f0e2c6; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left;
}
.rl-ico { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-style: normal; }
.rl-ico .feather { width: 26px; height: 26px; vertical-align: 0; }
.rl-ico .tv-ico { width: 30px; height: 22px; border-radius: 7px; }
.rl-ico .tv-ico svg { width: 18px; height: 13px; }
.rec-box .rules li { padding: 4px 9px 4px 5px; font-size: 13px; }
.rec-box .rl-ico { width: 26px; height: 26px; font-size: 17px; }
.rec-box .rl-ico .feather { width: 22px; height: 22px; }
.menu-box.rules-box { width: min(92%, 340px); gap: 9px; }
.rules-hero { width: 84px; height: 84px; }
.rules-hero img { position: relative; width: 74px; height: 74px; filter: drop-shadow(0 4px 0 rgba(60, 30, 10, .3)); animation: playPulse 1.6s ease-in-out infinite; }
.menu-box p.rules-desc { font-size: 14.5px; line-height: 1.3; }
.menu-box p.rules-board {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  background: linear-gradient(#fff6d8, #ffe7a3); border: 2px solid #f2c14e; font-size: 13.5px; font-weight: 700; color: #7a4f12; line-height: 1.25;
}
.rules-board img { width: 30px; height: 30px; flex: none; }
@media (max-height: 480px) {
  .rules-hero { display: none; }
}

/* Fim de partida: modo, recorde. */
.end-mode {
  align-self: center; margin-top: -2px; padding: 2px 12px; border-radius: 999px;
  background: #8a7a66; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
}

/* Modos de recorde: o relógio fica em destaque (vermelho no HARDCORE). */
body.ranked .bank #hud-time { background: linear-gradient(#ffe48a, #f2a93b); color: #4a2a12; text-shadow: none; -webkit-text-stroke: 0; }
body.hard .bank #hud-time { background: linear-gradient(#ff7a6c, #c2312a); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); -webkit-text-stroke: 0; }


/* ═══ Menu principal v3: holofote, palco, cartão do modo, barra de botões ══ */
/* Uma coluna no centro (topo: idioma e som). Só a paisagem baixa (celular
   deitado) usa duas colunas: logo à esquerda, cartão do modo + JOGAR + botões à direita. */
#splash {
  padding-top: calc(40px + env(safe-area-inset-top));
  background: radial-gradient(ellipse 75% 58% at 50% 40%, rgba(255, 226, 140, .45), rgba(34, 56, 20, .55) 62%, rgba(10, 20, 6, .9));
}
.splash-inner { transform: none; gap: 24px; }
.menu-hero { display: flex; flex-direction: column; align-items: center; }

/* Topo: opções à esquerda, som à direita (vidro escuro com borda dourada). */
.menu-top {
  position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none; animation: fadeIn .4s .9s both;
}
.menu-top > * { pointer-events: auto; cursor: pointer; }
.menu-opt, .menu-sound {
  position: static; transform: none; height: 38px; color: #ffe6b8;
  background: rgba(30, 18, 8, .62); border: 2px solid rgba(255, 214, 140, .6); border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.menu-opt, .menu-sound { width: 38px; padding: 0; display: flex; align-items: center; justify-content: center; }
.menu-opt svg, .menu-sound svg { width: 22px; height: 22px; }
.menu-sound.off { color: #f08a7c; }
#splash:not(.ready) .menu-top { display: none; }

/* Herói: só o logo, maior, com um brilho quente atrás (sem galinhas nem palco). */
.menu-hero { position: relative; }
.logo-glow {
  position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 232, 140, .55), rgba(255, 232, 140, 0) 62%);
}
.menu-hero .logo-svg { width: min(calc(92 * var(--vw)), 440px); }

/* Cartão do modo atual: abre a tela de modos. Mais ar entre o logo, o modo,
   o JOGAR e a barra (o selo das conquistas fica longe do JOGAR). */
.menu-btns { gap: 16px; margin-top: 0; }
.menu-btns .mbtn-row { margin-top: 4px; }
.menu-mode {
  position: relative; display: flex; align-items: center; gap: 10px; width: 294px; padding: 7px 9px 7px 7px;
  border-radius: 16px; border: 3px solid var(--ink-line); color: #fff4dc; text-align: left; font: inherit; cursor: pointer;
  background: linear-gradient(#6e4627, #3f2614);
  box-shadow: 0 5px 0 var(--ink-line), 0 12px 20px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 207, 90, .6), inset 0 3px 0 rgba(255, 230, 170, .3);
  animation: btnIn .5s .95s both cubic-bezier(.3, 1.6, .5, 1);
}
.menu-mode:active { transform: translateY(3px) scale(.98); }
.menu-mode.hard { box-shadow: 0 5px 0 var(--ink-line), 0 12px 20px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 112, 96, .8), inset 0 3px 0 rgba(255, 230, 170, .3); }
.mm-ico {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #f6d98a); border: 2.5px solid var(--ink-line); box-shadow: 0 2px 0 var(--ink-line);
}
.mm-ico img { width: 36px; height: 36px; display: block; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .3)); }
.mm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* Nomes longos (Klassische Fabrik, Классическая фабрика) quebram em até 2 linhas. */
.mm-name {
  font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .4px; line-height: 1.08; color: #fff;
  text-shadow: 0 2px 0 var(--ink-line); -webkit-text-stroke: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mm-name .hard-tag { font-size: 9.5px; margin-left: 5px; vertical-align: 2px; }
.mm-sub {
  font-size: 11.5px; font-weight: 600; line-height: 1.2; color: #f3d9a8;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mm-go {
  flex: none; padding: 4px 9px 5px; border-radius: 999px; font-family: var(--display); font-size: 12.5px; letter-spacing: .4px;
  color: #4a2a12; background: linear-gradient(#ffe48a, #f2a93b); border: 2px solid var(--ink-line); box-shadow: 0 2px 0 var(--ink-line);
  white-space: nowrap;
}

/* JOGAR com ▶ e halo. */
.mbtn-play { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mbtn-play .play-ico { position: relative; width: 30px; height: 30px; flex: none; filter: drop-shadow(0 3px 0 #1d4d27); }
.mbtn-play span { position: relative; }

/* Barra: 3 botões de madeira com placa clara atrás do ícone e selo (conquistas). */
.mbtn-row { gap: 14px; }
.mbtn-row .mbtn-sq { width: 92px; height: 92px; gap: 2px; font-size: 13.5px; overflow: visible; }
.sq-plate {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 45% 40%, rgba(255, 246, 220, .85), rgba(255, 226, 160, .45) 58%, rgba(255, 226, 160, 0) 72%);
}
.sq-plate .mbtn-ico { width: 46px; height: 46px; }
.mbtn-sq:hover .sq-plate .mbtn-ico { transform: scale(1.12) rotate(-6deg); }
.sq-badge {
  position: absolute; z-index: 2; top: -10px; right: -10px; min-width: 28px; padding: 2px 7px 3px; border-radius: 999px;
  font-family: var(--display); font-style: normal; font-size: 12px; letter-spacing: .3px; line-height: 1.1; text-shadow: none; -webkit-text-stroke: 0;
  color: #4a2a12; background: linear-gradient(#ffe48a, #f2a93b); border: 2px solid var(--ink-line); box-shadow: 0 2px 0 var(--ink-line);
}

/* Celular estreito. */
@media (max-width: 360px) {
  .menu-mode { width: 276px; }
  .mbtn-play { width: 276px; }
  .mbtn-row { gap: 10px; }
  .mbtn-row .mbtn-sq { width: 84px; height: 86px; font-size: 12.5px; }
}
/* Retrato baixo (celular pequeno): tudo um pouco menor. */
@media (max-aspect-ratio: 5/4) and (max-height: 720px) { .splash-inner { scale: .9; } }
@media (max-aspect-ratio: 5/4) and (max-height: 620px) { .splash-inner { scale: .8; } }

/* Paisagem: uma coluna no centro, como no retrato, com o logo do tamanho que a
   altura deixa. Tela baixa (celular deitado) não cabe: vira duas colunas. */
@media (min-aspect-ratio: 5/4) {
  #splash { padding-top: 0; }
  .menu-hero .logo-svg { width: clamp(260px, calc((calc(100 * var(--vh)) - 370px) * 2), min(calc(44 * var(--vw)), 520px)); }
}
@media (min-aspect-ratio: 5/4) and (max-height: 500px) {
  .splash-inner { flex-direction: row; align-items: center; gap: clamp(20px, calc(5 * var(--vw)), 64px); }
  .menu-hero .logo-svg { width: min(calc(46 * var(--vw)), 540px); }
}
@media (min-aspect-ratio: 5/4) and (max-height: 560px) { .splash-inner { scale: .92; } }
@media (min-aspect-ratio: 5/4) and (max-height: 420px) { .splash-inner { scale: .84; } }
@media (min-aspect-ratio: 5/4) and (max-height: 340px) { .splash-inner { scale: .72; } }

/* ═══ Legado: penas de ouro e melhorias permanentes do Clássico ═══════════ */
.feather { width: 1.4em; height: 1.4em; vertical-align: -.35em; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(74, 42, 18, .45)); }
.end-feathers {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: -2px auto 0; padding: 5px 14px;
  border-radius: 999px; background: linear-gradient(#fff6d6, #ffe7a0); border: 2px solid #e7b442;
  font-family: var(--display); font-size: 16px; color: #8a5a0c;
}
.end-feathers b { font-weight: 400; font-size: 21px; color: #c27a06; }
.menu-box button.legacy-btn {
  --o: #7a4a08; border-color: #7a4a08; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(#ffe07a, #f6b52a 55%, #e0961a); box-shadow: 0 4px 0 #7a4a08, inset 0 2px 0 rgba(255, 255, 255, .55);
}
.menu-box button.legacy-btn .feather { filter: drop-shadow(0 1px 0 rgba(74, 42, 18, .7)); }

.legacy-box { gap: 8px; }
.lg-bank {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px;
  font-family: var(--display); color: #8a5a0c; font-size: 16px;
}
.lg-bank .feather { width: 34px; height: 34px; }
.lg-bank b { font-weight: 400; font-size: 30px; color: #c27a06; text-shadow: 0 2px 0 rgba(122, 74, 8, .25); -webkit-text-stroke: 0; }
.lg-list { display: flex; flex-direction: column; gap: 6px; max-height: min(calc(52 * var(--vh)), 340px); overflow-y: auto; padding: 2px 4px 4px 2px; }
.lg-row {
  display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 6px; border-radius: 12px;
  background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge);
}
.lg-row.maxed { background: linear-gradient(#fffaf0, #fff1cf); border-color: #f0d58a; }
.lg-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: radial-gradient(circle at 50% 40%, #fff6dc, #f3e3c3); display: flex; align-items: center; justify-content: center; }
.lg-ico img { width: 36px; height: 36px; display: block; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .25)); }
.lg-info { flex: 1; min-width: 0; text-align: left; }
.lg-name { font-family: var(--display); font-size: 15px; color: var(--ink); line-height: 1.15; }
.lg-desc { font-size: 12px; font-weight: 700; color: var(--ink-soft); line-height: 1.2; }
.lg-pips { display: flex; gap: 3px; margin-top: 3px; }
.lg-pips i { width: 9px; height: 9px; border-radius: 50%; background: #eadcc0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .15); }
.lg-pips i.on { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b21c 60%, #c27a06); box-shadow: 0 0 0 1px #a8670a; }
.menu-box button.lg-buy {
  flex: none; min-width: 68px; padding: 5px 9px 7px; font-size: 17px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 3px;
  --o: #7a4a08; border: 2.5px solid #7a4a08; color: #fff;
  background: linear-gradient(#ffe07a, #f6b52a 55%, #e0961a); box-shadow: 0 3px 0 #7a4a08, inset 0 2px 0 rgba(255, 255, 255, .55);
}
.menu-box button.lg-buy .feather { width: 18px; height: 18px; filter: drop-shadow(0 1px 0 rgba(74, 42, 18, .7)); }
.lg-max { flex: none; font-family: var(--display); font-size: 14px; color: #c27a06; padding: 0 6px; }
.end-feathers { white-space: nowrap; }
/* ═══ Fim de partida (ui.showEnding): festa de vitória ═══════════════════════ */
.menu-box.ec-box {
  width: min(94%, 360px); gap: 9px; padding: 34px 16px 16px;   /* sem overflow hidden: a fita sai pelos lados */
  background: radial-gradient(circle at 50% 0, #fff3c2, #fffaf0 45%, var(--card2));
  box-shadow: 0 6px 0 var(--ink-line), 0 0 0 5px rgba(255, 205, 60, .6), 0 0 40px 8px rgba(255, 196, 50, .45), 0 14px 30px rgba(0, 0, 0, .45);
}
.menu-box.ec-box h2 {
  top: 10px; font-size: 24px; padding: 9px 33px 10px; color: #fff; z-index: 2;
  background: none; border: 0; box-shadow: none;
  text-shadow: 0 2px 0 var(--ink-line), 1px 0 0 var(--ink-line), -1px 0 0 var(--ink-line), 0 -1px 0 var(--ink-line);
}
/* A fita: o título forma uma camada própria, então o fundo dourado (::before) e as
   pontas (::after) vão nela atrás do texto, as pontas atrás do fundo (z-index menor).
   Pontas mais baixas que o meio, com o corte em V pra fora e a dobra escura. */
.menu-box.ec-box h2::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 12px;
  background: linear-gradient(#ffd75a, #f2a93b 60%, #e08a1a); border: 3px solid var(--ink-line);
  box-shadow: 0 4px 0 var(--ink-line), inset 0 2px 0 rgba(255, 235, 200, .45);
}
.menu-box.ec-box h2::after {
  content: ""; position: absolute; left: -22px; right: -22px; top: 14px; height: 36px; z-index: -2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 36'%3E%3Cpath d='M28 2H2l9 16-9 16h26z' fill='%23c9791a' stroke='%234a2a12' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M28 2 20 8V2z' fill='%237a4a08'/%3E%3C/svg%3E") left center / 30px 36px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 36'%3E%3Cpath d='M2 2h26l-9 16 9 16H2z' fill='%23c9791a' stroke='%234a2a12' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M2 2l8 6V2z' fill='%237a4a08'/%3E%3C/svg%3E") right center / 30px 36px no-repeat;
}
.ec-box > * { position: relative; z-index: 1; }
.ec-confetti { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; border-radius: inherit; }
.ec-confetti i {
  position: absolute; top: -14px; left: var(--x); width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: .85;
  animation: ecFall var(--d) linear var(--w) infinite;
}
@keyframes ecFall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(640px) rotate(540deg); } }
.ec-hero { position: relative; align-self: center; width: 108px; height: 96px; margin-top: 18px; display: flex; align-items: center; justify-content: center; }
.ec-hero .offer-rays { inset: -30px; }
.ec-hero img { position: relative; width: 104px; height: 104px; filter: drop-shadow(0 5px 3px rgba(60, 30, 10, .35)); animation: ecBob 2.2s ease-in-out infinite; }
@keyframes ecBob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.ec-box .end-mode { margin-top: 2px; }
.ec-line { margin: -2px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.ec-time { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ec-clock img { width: 30px; height: 30px; display: block; }
.ec-time > b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.ec-rec { font-size: 13px; font-weight: 700; color: #a8701a; }
.ec-rec.new {
  padding: 4px 12px; border-radius: 999px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: linear-gradient(#ffcf3f, #f2a93b); box-shadow: 0 3px 0 #a86d0c; animation: missionPulse 1.2s ease-in-out infinite;
}
.ec-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ec-tile {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center;
  padding: 6px 8px; border-radius: 13px; background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge);
  animation: ecPop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 90ms + 250ms);
}
@keyframes ecPop { from { transform: scale(.6); opacity: 0; } }
.ec-tile.gold { background: linear-gradient(#fffbe8, #ffeeb0); border-color: #e7b442; }
.ec-ico { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fff6dc, #f3e3c3); display: flex; align-items: center; justify-content: center; }
.ec-ico img { width: 32px; height: 32px; display: block; }
.ec-tile b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.ec-tile span:last-child { font-size: 11.5px; font-weight: 700; line-height: 1.1; color: var(--ink-soft); }
.ec-reward {
  display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 15px;
  background: linear-gradient(#fff6d6, #ffe7a0); border: 2px solid #e7b442; box-shadow: inset 0 2px 0 #fff;
}
.ec-feathers { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); color: #8a5a0c; white-space: nowrap; }
.ec-feathers .feather { width: 30px; height: 30px; }
.ec-feathers b { font-weight: 400; font-size: 28px; color: #c27a06; }
.ec-feathers span { font-size: 16px; }
/* Bônus de penas do modo (Matilha ×1,5; Speedrun pelo tempo) e o ×2 do vídeo. */
.ec-bonus {
  font-style: normal; font-size: 13px; color: #fff; padding: 2px 7px 3px; border-radius: 999px;
  background: linear-gradient(#ef6a52, #c2412f); box-shadow: 0 2px 0 #7a1f12;
}
.ec-bonus.low { background: linear-gradient(#b7a58a, #8f7d63); box-shadow: 0 2px 0 #5e4f3a; }
.ec-bonus.x2 { background: linear-gradient(#a6ea74, #3f9d30); box-shadow: 0 2px 0 #1d4d27; }
.menu-box button.ec-x2 { min-height: 46px; font-size: 16px; }
.menu-box button.ec-x2 .feather { width: 18px; height: 18px; }
.ec-reward .ad-none { margin: 0; }
.ec-unlock {
  display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 9px; row-gap: 7px; align-items: center;
  padding: 8px 9px 9px; border-radius: 15px; background: linear-gradient(#e3f2ff, #c4e2ff); border: 2px solid #5b8fcf;
  animation: ecPop .45s cubic-bezier(.3, 1.6, .5, 1) .7s both;
}
.ec-unlock-ico { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #5b8fcf; }
.ec-unlock-ico img { width: 42px; height: 42px; display: block; }
.ec-unlock-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.2; }
.ec-unlock-txt b { font-family: var(--display); font-weight: 400; font-size: 17px; color: #1f3f66; }
.ec-unlock-txt span { font-size: 12.5px; font-weight: 700; color: #3d5f86; }
.menu-box button.ec-unlock-btn {
  grid-column: span 2; --o: #1f3f66; border-color: #1f3f66; font-size: 17px; min-height: 42px; padding: 6px 10px 8px;
  background: linear-gradient(#7cc4ff, #3d8fe0 55%, #2f74c4); box-shadow: 0 4px 0 #1f3f66, inset 0 2px 0 rgba(255, 255, 255, .5);
}
.menu-box button.ec-play { font-size: 22px; min-height: 54px; }
.ec-row { display: flex; gap: 7px; }
.ec-row button { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 6px 6px 8px !important; font-size: 14px !important; line-height: 1.1; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ec-row button span { overflow-wrap: normal; }
.ec-row button .feather { width: 18px; height: 18px; flex: none; }
.ec-row .legacy-btn { flex-direction: column; gap: 1px; }   /* a pena em cima, como o ícone dos outros dois */
/* Hora Extra: parcela do banco paga (ui.paidStamp). */
.stamp-wrap { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.stamp-card {
  position: relative; padding: 16px 28px 14px; border-radius: 18px; text-align: center;
  background: linear-gradient(#fffaf0, #f3e2c0); border: 3px solid var(--ink-line);
  box-shadow: 0 6px 0 var(--ink-line), 0 0 0 5px rgba(255, 205, 60, .55), 0 14px 30px rgba(0, 0, 0, .4);
  animation: popIn .3s cubic-bezier(.3, 1.6, .5, 1);
}
.stamp-card.out { animation: stampOut .35s ease-in forwards; }
@keyframes stampOut { to { transform: translateY(-20px) scale(.9); opacity: 0; } }
.stamp-title { font-family: var(--display); font-size: 24px; color: var(--ink); white-space: nowrap; }
.stamp-pips { display: flex; gap: 5px; justify-content: center; margin: 9px 0 7px; }
.stamp-pips i { width: 18px; height: 18px; border-radius: 50%; background: #eadcc0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.stamp-pips i.on { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b21c 60%, #c27a06); box-shadow: 0 0 0 1.5px #a8670a; }
.stamp-pips i.new { animation: pipPop .5s cubic-bezier(.3, 1.8, .5, 1) .55s both; }
@keyframes pipPop { from { transform: scale(2.2); background: #eadcc0; } }
.stamp-left { font-size: 14px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.stamp-mark {
  position: absolute; right: -48px; top: -30px; padding: 3px 12px 4px; border: 4px solid #c2312a; border-radius: 10px;
  color: #c2312a; background: rgba(255, 248, 235, .85); font-family: var(--display); font-size: 30px; letter-spacing: 2px; line-height: 1;
  transform: rotate(-14deg); animation: stampSlam .32s cubic-bezier(.55, 0, .8, .2) .25s both;
}
@keyframes stampSlam { from { transform: rotate(-14deg) scale(2.8); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }
/* Hora Extra: a ligação do banco (ui.showBankCall). */
.menu-box.call-box { width: min(94%, 350px); gap: 10px; }
.call-top { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.call-hero { position: relative; flex: none; width: 92px; height: 96px; display: flex; align-items: center; justify-content: center; }
.call-hero .offer-rays { inset: -18px; }
.call-hero img { position: relative; width: 96px; height: 96px; filter: drop-shadow(0 4px 2px rgba(60, 30, 10, .3)); animation: ecBob 1.6s ease-in-out infinite; }
.call-bubble {
  position: relative; flex: 1; padding: 9px 11px; border-radius: 14px; background: #fff; border: 2.5px solid var(--ink-line);
  box-shadow: 0 3px 0 var(--ink-line); font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink); text-align: left;
}
.call-bubble::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #fff;
  border: solid var(--ink-line); border-width: 0 0 2.5px 2.5px; transform: rotate(45deg);
}
.call-bubble b { color: #c2312a; }
.call-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.call-steps li {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 6px; border-radius: 13px; text-align: left;
  background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge);
  animation: ecPop .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.call-steps li:nth-child(2) { animation-delay: .12s; }
.call-steps li:nth-child(3) { animation-delay: .24s; }
.call-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#ffd75a, #f2a93b); border: 2px solid var(--ink-line); font-family: var(--display); font-size: 14px; color: #fff;
  text-shadow: 0 1px 0 var(--ink-line);
}
.call-steps .ec-ico { width: 38px; height: 38px; }
.call-steps .ec-ico img { width: 36px; height: 36px; }
.call-steps div { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.call-steps b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--ink); }
.call-steps div span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
/* Hora Extra: depois da 1ª parcela a barra da meta vira a dívida com o banco. */
.goal-track.debt #goal-bar { background: repeating-linear-gradient(-45deg, #8be37a 0 8px, #5cc24a 8px 16px); background-size: 22px 22px; }
/* Listas que rolam com a roda do mouse: no fim da lista a rolagem para ali (não vaza pra página do portal). */
.menu-box, .ach-grid, .lang-grid, .lg-list { overscroll-behavior: contain; }

/* ═══ Banner 320×50 no pé da loja (src/banner.js) ══════════════════════════ */
/* Só paisagem no desktop. Espaço próprio: a lista da loja termina em cima dele.
   O anúncio leva contra-escala pra ficar no tamanho nativo mesmo com a
   interface ampliada (scale.js); o espaço reservado é 62 px de tela. */
#banner-slot {
  flex: none; display: flex; align-items: center; justify-content: center; overflow: visible;
  height: calc(62px / var(--k)); border-top: 3px solid var(--wood-edge);
  background: linear-gradient(rgba(20, 10, 4, .45), rgba(20, 10, 4, .25));
}
#banner-ad { flex: none; width: 320px; height: 50px; scale: calc(1 / var(--k)); }
@media (min-aspect-ratio: 5/4) {
  /* 320 px de anúncio + margem: a loja não fica mais estreita que isso (em px de tela). */
  html.has-banner #shop { width: clamp(max(270px, calc(340px / var(--k))), calc(30 * var(--vw)), 420px); }
}

/* ═══ Matilha: Lua de Sangue e Lobo Alfa ═══════════════════════════════════ */
/* --b (0–1, main.js): as bordas da tela ficam vermelhas na Lua de Sangue. */
#vignette::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--b, 0);
  background: radial-gradient(ellipse 75% 65% at 50% 48%, transparent 50%, rgba(150, 20, 20, .42) 100%);
}
/* Barra de vida do Alfa: maior, com borda dourada (sem scale: a posição vem do transform). */
.gauge.mini.wolf.alpha { height: 22px; border-color: #ffd23a; box-shadow: 0 0 0 1.5px #b8860b, 0 0 10px rgba(255, 200, 60, .7); }
.gauge.mini.wolf.alpha .g-bar { width: 52px; height: 8px; }
.gauge.mini.wolf.alpha .g-txt { font-size: 13px; }

/* Celular em pé: um aviso por vez (ui.notify), menor e encostado à esquerda, logo
   abaixo da faixa do lobo, pra não tampar o meio do pasto. */
@media (max-aspect-ratio: 5/4) {
  #notes { left: 8px; transform: none; width: min(236px, calc(100% - 16px)); align-items: flex-start; }
  .note { padding: 3px 10px 6px 3px; gap: 6px; border-width: 2px; border-radius: 11px; }
  .note-ico { width: 24px; height: 24px; font-size: 13px; }
  .note-ico img { width: 19px; height: 19px; }
  .note-body b { font-size: 12.5px; }
  .note-body span { font-size: 10.5px; }
  #wolf-alert { font-size: 13.5px; padding: 3px 10px; }
}

/* ═══ Chapéus: presente do dia, coleção e caixa surpresa ═══════════════════ */
/* Título: 4 botões na barra (Conquistas, Chapéus, Recordes, Legado). */
.mbtn-row { gap: 8px; }
.mbtn-row .mbtn-sq { width: 74px; height: 86px; font-size: 12.5px; }
.mbtn-row .sq-plate { width: 50px; height: 50px; }
.mbtn-row .sq-plate .mbtn-ico { width: 42px; height: 42px; }
.mbtn-sq:nth-child(4) { animation-delay: 1.44s; }
@media (max-width: 360px) { .mbtn-row { gap: 6px; } .mbtn-row .mbtn-sq { width: 70px; height: 84px; font-size: 11.5px; } }
/* Bolinha de "presente esperando" (título e botão da pausa). */
.sq-dot {
  position: absolute; z-index: 2; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a8a, #e2453a 60%, #b8262f); border: 2px solid var(--ink-line);
  box-shadow: 0 2px 0 var(--ink-line); animation: playPulse 1.2s ease-in-out infinite;
}
.menu-box button.hats-btn { position: relative; overflow: visible; }
.menu-box button.hats-btn .sq-dot { top: -7px; right: -7px; }

/* Raridade: cor de cada nível (selo, borda do cartão e trilha). */
.rar-common { --rar: #8a9a7a; --rar2: #c9d6b8; }
.rar-uncommon { --rar: #3b78d8; --rar2: #b9d3ff; }
.rar-rare { --rar: #9b4fd6; --rar2: #e0c6ff; }
.rar-legendary { --rar: #e09a12; --rar2: #ffe29a; }
.rar-tag {
  display: inline-block; align-self: center; font-style: normal; font-family: var(--display); font-size: 11px; letter-spacing: .3px;
  color: #fff; padding: 1px 8px 2px; border-radius: 999px; background: var(--rar); box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

/* Trilha de 7 dias. Deitado: uma linha de 7 (caixa mais larga). Em pé: 4 por
   linha e o dia 7 (o prêmio maior) ocupa duas casas, para "Giorno 1" caber. */
.dl-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.dl-day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px 5px; border-radius: 11px;
  background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge); min-width: 0;
}
.dl-day.hat { border-color: var(--rar2); }
.dl-n { font-family: var(--display); font-size: 12px; color: #7a5636; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dl-ico { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.dl-ico img { width: 34px; height: 34px; filter: brightness(0) opacity(.28); }
.dl-ico .feather { width: 28px; height: 28px; }
.dl-q {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: var(--display); font-size: 20px; color: var(--rar, #8a7a5a); text-shadow: 0 1px 0 #fff; -webkit-text-stroke: calc(2px * var(--sk, 1)) #fff; paint-order: stroke fill;
}
.dl-amt { font-family: var(--display); font-size: 13px; color: var(--rar, #c27a06); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dl-day.done { opacity: .55; }
.dl-day.done::after {
  content: "✓"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 24px; height: 24px; border-radius: 50%;
  font-size: 14px; line-height: 24px; text-align: center; color: #fff; background: #3f9d30; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.dl-bar { display: block; width: 70%; height: 6px; margin: 3px auto 1px; border-radius: 3px; background: var(--rar); }
.dl-day.today { border-color: #f2b21c; background: linear-gradient(#fffbe9, #ffefb8); box-shadow: 0 3px 0 #c88a12, 0 0 0 3px rgba(255, 210, 70, .45); animation: playPulse 1.4s ease-in-out infinite; }
.menu-box button.dl-claim { background: linear-gradient(#a6ea74, #55bb3f 55%, #3f9d30); box-shadow: 0 4px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .45); }
.dl-lost { color: #b8262f; font-weight: 700; }
.menu-box.daily-box { gap: 10px; }
@media (min-aspect-ratio: 5/4) { .menu-box.daily-box { width: min(92%, 540px); } }
@media (max-aspect-ratio: 5/4) {
  .dl-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dl-track .dl-day:last-child { grid-column: span 2; }
}

/* Chapéu novo: o modelo grande no medalhão (a cor da raridade nos raios). */
.hat-hero, .crate-hero { width: 128px; height: 128px; }
.hat-hero img, .crate-hero img { position: relative; width: 128px; height: 128px; filter: drop-shadow(0 4px 0 rgba(60, 30, 10, .3)); animation: playPulse 1.6s ease-in-out infinite; }
.crate-hero img { width: 104px; height: 104px; }
.crate-hero .crate-prize { position: absolute; right: -6px; bottom: -4px; width: 56px; height: 56px; animation-delay: .3s; }
.crate-hero i.crate-prize { width: 46px; height: 46px; right: 0; bottom: 4px; }
.offer-amt .amt-ico { width: 22px; height: 22px; margin: -3px 0; }
.hat-hero .offer-rays { background: repeating-conic-gradient(var(--rar) 0 12deg, transparent 12deg 24deg); opacity: .55; }
.hat-name { font-family: var(--display); font-size: 22px; color: var(--ink); text-align: center; line-height: 1.1; }
.reveal-box .rar-tag { font-size: 13.5px; padding: 2px 12px 3px; }
.menu-box.reveal-box { width: min(92%, 320px); gap: 8px; }
.gift-box .offer-hero .feather { position: relative; width: 70px; height: 70px; animation: playPulse 1.4s ease-in-out infinite; }

/* Coleção: topo (barra de progresso + presente), dica e a grade, que fica com
   toda a altura que sobra na tela. */
.menu-box.hats-box { gap: 10px; }
@media (min-aspect-ratio: 5/4) { .menu-box.hats-box { width: min(94%, 600px); } }
.hats-top { display: flex; flex-wrap: wrap; gap: 8px; }
.hats-prog, .hats-next {
  flex: 1 1 150px; min-width: 0; border-radius: 12px; background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge);
}
.hats-prog { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 7px 12px 10px; }
.hats-prog b { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1; color: var(--ink); text-align: center; }
.hats-bar { display: block; height: 10px; border-radius: 5px; background: #eadcc3; box-shadow: inset 0 2px 0 rgba(74, 42, 18, .15); overflow: hidden; }
.hats-bar i { display: block; height: 100%; min-width: 10px; border-radius: 5px; background: linear-gradient(#ffd96a, #f0a91c); box-shadow: inset 0 -2px 0 rgba(160, 90, 0, .35); }
.hats-next {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  font-family: var(--display); font-size: 15px; line-height: 1.15; color: var(--ink);
}
.hats-nx { flex: none; display: flex; align-items: center; margin-left: auto; }
.hats-next .dl-ico .feather { width: 26px; height: 26px; }
.hats-fe { margin-left: -2px; color: #c27a06; font-weight: 400; }
.hats-top .dl-claim { flex: 1 1 220px; }
.menu-box p.hats-hint { font-size: 13.5px; line-height: 1.3; color: #7a5636; }
.hat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  max-height: clamp(150px, calc(var(--vh) * 100 - 280px), 470px); overflow-y: auto; overflow-x: hidden;
  padding: 4px 4px 6px 2px; overscroll-behavior: contain;
}
@media (min-aspect-ratio: 5/4) { .hat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Tela baixa (celular deitado): sem a dica, mais uma fileira de chapéus. */
@media (max-height: 480px) {
  .menu-box p.hats-hint { display: none; }
  .hat-grid { max-height: clamp(150px, calc(var(--vh) * 100 - 240px), 470px); }
}
.hat-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 5px 8px; border-radius: 13px; min-width: 0;
  background: #fff; border: 3px solid var(--rar2); box-shadow: 0 3px 0 var(--card-edge);
}
.hat-card b {
  font-family: var(--display); font-weight: 400; font-size: 14.5px; line-height: 1.05; text-align: center; color: var(--ink);
  min-height: 2.1em; display: flex; align-items: center;
}
/* Nome ou selo que não cabe no cartão diminui a letra (ui.js shrinkToFit). */
.hat-card .rar-tag { font-size: 12px; white-space: nowrap; }
@media (max-aspect-ratio: 5/4) { .hat-card .rar-tag { font-size: 11px; padding: 1px 5px 2px; } }
.hat-ico {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, #fff 25%, var(--rar2));
}
.hat-ico img { width: 60px; height: 60px; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .25)); }
/* Bloqueado: sombra do chapéu com "?" na cor da raridade, borda tracejada. */
.hat-card.locked { background: #f3eadb; border-style: dashed; box-shadow: 0 3px 0 #d3bf9c; }
.hat-card.locked .hat-ico { background: radial-gradient(circle at 50% 38%, #fffaf1 25%, #e2d4bb); }
.hat-card.locked .hat-ico img { filter: brightness(0) opacity(.3); }
.hat-card.locked .dl-q { font-size: 30px; }
.hat-card.locked b { color: #a3865f; }

/* ── Cidade (Hora Extra) ────── */
/* Botão de viagem: na fazenda fica à direita (a cidade é pra lá); na cidade, à esquerda. */
#travel-btn {
  position: absolute; right: 10px; top: 100px; z-index: 6; display: flex; align-items: center; gap: 7px;
  height: 50px; padding: 0 14px 0 6px; border-radius: 18px; border: 3px solid var(--ink-line); cursor: pointer;
  background: linear-gradient(#ffe68a, #f6b42c); color: var(--ink-line);
  font: 400 20px var(--display, "Fredoka"), system-ui, sans-serif; letter-spacing: .5px;
  box-shadow: 0 4px 0 var(--ink-line), 0 8px 14px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .6);
}
#travel-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .6); }
#travel-btn .tr-ico {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff7e6; border: 2px solid var(--ink-line); font-size: 22px; line-height: 1; overflow: hidden;
}
#travel-btn .tr-ico img { width: 40px; height: 40px; }
#travel-btn .tr-arrow { width: 0; height: 0; border: 8px solid transparent; border-left: 11px solid currentColor; border-right: 0; margin-right: -3px; }
/* Na cidade: verde, embaixo à esquerda, seta apontando pra fazenda. */
#travel-btn.to-farm {
  right: auto; left: 10px; flex-direction: row-reverse; padding: 0 6px 0 12px;
  background: linear-gradient(#a6ec78, #4fb03c); color: #fff;
  text-shadow: 0 2px 0 var(--ink-line); -webkit-text-stroke: calc(4px * var(--sk, 1)) var(--ink-line); paint-order: stroke fill;
}
#travel-btn.to-farm .tr-arrow { border-left: 0; border-right: 11px solid var(--ink-line); margin: 0 0 0 -3px; }
#travel-btn .dot { position: absolute; top: -7px; right: -7px; width: 17px; height: 17px; border-radius: 50%; background: #e2453a; border: 2.5px solid #fff; box-shadow: 0 1px 0 var(--ink-line); }
#travel-btn.to-farm .dot { right: auto; left: -7px; }
#travel-btn .dot.rac { top: -14px; right: -14px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 16px; font-style: normal; line-height: 1; background: #fff; border-color: #e2453a; }
#travel-btn .dot.rac img { width: 28px; height: 28px; display: block; }
/* 1ª chegada: placa de madeira com o nome do lugar (mesmo estilo da placa da loja),
   que desce balançando e some. */
#area-title {
  position: absolute; left: 50%; top: 28%; z-index: 7; pointer-events: none; white-space: nowrap;
  padding: 5px 34px 7px; border-radius: 12px; border: 3px solid var(--ink-line);
  background: linear-gradient(#d39a5f, #a2692f); color: #fff4dc;
  font: 400 clamp(22px, 6.4vw, 30px) var(--display, "Fredoka"), system-ui, sans-serif; letter-spacing: 3px;
  text-shadow: 0 2px 0 rgba(40, 20, 5, .45);
  box-shadow: 0 4px 0 var(--ink-line), 0 10px 20px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 230, 190, .45);
  animation: areaIn 2.3s ease both;
}
#area-title::before, #area-title::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e0a422 60%, #8a5a10);
}
#area-title::before { left: 11px; }
#area-title::after { right: 11px; }
@keyframes areaIn {
  0% { opacity: 0; transform: translate(-50%, -36px) rotate(-7deg); }
  16% { opacity: 1; transform: translate(-50%, 0) rotate(2deg); }
  26% { transform: translate(-50%, 0) rotate(0); }
  82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}
#travel-btn.new, #travel-btn.urge { animation: missionPulse .9s ease-in-out infinite; }
body.in-title #travel-btn { display: none; }
/* Retrato: botão um pouco menor (a tela é estreita). */
@media (max-aspect-ratio: 5/4) {
  #travel-btn { height: 42px; gap: 5px; padding: 0 11px 0 5px; border-radius: 15px; font-size: 17px; }
  #travel-btn.to-farm { padding: 0 5px 0 10px; }
  #travel-btn .tr-ico { width: 32px; height: 32px; }
  #travel-btn .tr-ico img { width: 34px; height: 34px; }
  #travel-btn .tr-arrow { border-width: 7px; border-left-width: 9px; }
  #travel-btn.to-farm .tr-arrow { border-left-width: 0; border-right-width: 9px; }
  /* os avisos descem pra não ficar atrás do botão */
  body.travel #notes { top: calc(152px + env(safe-area-inset-top)); }
}
@media (min-aspect-ratio: 5/4) { #travel-btn { top: 12px; } }
/* Lojas: balão com o que o cliente quer, onde tocar, falta de ovos e o próximo terreno. */
.tlabel.speech {
  background: #fff; color: var(--ink); border: 2px solid var(--ink-line); border-radius: 12px; font-size: 15px; padding: 1px 6px;
  transform: translate(-50%, -100%); box-shadow: 0 2px 0 var(--ink-line);
}
.tlabel.taphint {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff7e6; border: 2.5px solid #ffc62e; font-size: 17px; animation: tapBob .8s ease-in-out infinite;
}
@keyframes tapBob { 50% { margin-top: 5px; box-shadow: 0 0 0 6px rgba(255, 198, 46, .35); } }
.tlabel.nostock { background: linear-gradient(#ef6a52, #c2412f); border-color: #fff; font-size: 12px; }
.tlabel.trialtag { background: #fff; color: var(--ink); border: 2px solid var(--ink-line); border-radius: 10px; font-size: 12.5px; font-weight: 700; padding: 0 6px; }
.tlabel.closedtag { background: linear-gradient(#4b5a8a, #2f3a63); border-color: #c9d4ff; color: #fff; font-size: 12.5px; }
/* Terreno à venda: etiqueta no estilo dos cards da loja (ícone, nome e preço). */
.wtag {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 2px 9px 6px; min-width: 100px; border-radius: 14px; border: 2.5px solid var(--ink-line);
  background: linear-gradient(#fffcf4, #f4e5c6); color: var(--ink); white-space: nowrap;
  box-shadow: 0 3px 0 var(--ink-line), 0 6px 10px rgba(0, 0, 0, .25);
}
.wtag img { width: 44px; height: 44px; margin: -20px 0 -4px; filter: drop-shadow(0 2px 1px rgba(60, 30, 10, .35)); }
.wtag b { font: 400 14px/1.15 var(--display, "Fredoka"), system-ui, sans-serif; letter-spacing: .3px; }
.wtag .tg-price {
  display: flex; align-items: center; gap: 4px; padding: 1px 12px 3px; border-radius: 9px; border: 2px solid #6e5d47;
  font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: linear-gradient(#cbb99c, #a39075); box-shadow: inset 0 -2px 0 rgba(60, 35, 10, .35);
}
.wtag.can .tg-price { border-color: #2d6b3c; background: linear-gradient(#86dd9a, #45a85d); box-shadow: inset 0 -2px 0 #2f7d44, inset 0 2px 0 rgba(255, 255, 255, .45); }
.wtag.can { animation: tagBob 1.1s ease-in-out infinite; }
@keyframes tagBob { 50% { margin-top: -5px; } }

/* ════════════════════════════════════════════════════════════════════════════
   Atualização de retorno: Chocadeira, raças, Encomendas, placa de Natal, Pausa nova
   e o X de fechar das janelas. Os blocos estão na ordem em que foram ajustados com o
   dono do jogo; os de baixo valem sobre os de cima (não reordene).
   ════════════════════════════════════════════════════════════════════════════ */
/* UI nova da atualização de retorno (prévia). Tudo aqui usa as variáveis e a linguagem do style.css do jogo:
   madeira, contorno --ink-line de 3 px, sombra dura para baixo, fonte --display. Aprovado, vai para o style.css. */

/* ── Título: botão da Chocadeira ───────────────────────────────────────── */
.sq-new {
  position: absolute; z-index: 3; top: -11px; right: -13px; padding: 2px 7px 3px; border-radius: 7px; rotate: 8deg;
  font-family: var(--display); font-style: normal; font-size: 11px; letter-spacing: .8px; line-height: 1.1; color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 0;
  background: linear-gradient(#ff6b5e, #c2312a); border: 2px solid var(--ink-line); box-shadow: 0 2px 0 var(--ink-line);
  animation: newPulse 1.2s ease-in-out infinite;
}
@keyframes newPulse { 50% { scale: 1.13; } }
.sq-dot.ok { background: radial-gradient(circle at 35% 30%, #d6f9b4, #55bb3f 60%, #2f8a2a); }
.menu-box button.pv-rel { position: relative; overflow: visible; }
.menu-box button.pv-rel .sq-dot { top: -7px; right: -7px; }

/* ── Título: placa "Evento de Natal" pendurada no topo ─────────────────── */
.xsign {
  position: absolute; z-index: 3; top: 0; left: 50%; translate: -50% 0; padding: 18px 0 0; margin: 0; border: 0; background: none;
  font: inherit; cursor: pointer; transform-origin: 50% 0; -webkit-tap-highlight-color: transparent;
  animation: signIn .8s 1.15s both cubic-bezier(.3, 1.45, .5, 1);
}
#splash:not(.ready) .xsign { display: none; }
#splash.out .xsign { translate: -50% -120%; transition: translate .3s; }
@keyframes signIn { from { translate: -50% -120%; } }
.xsign::before, .xsign::after {
  content: ""; position: absolute; top: -6px; width: 5px; height: 27px; border-radius: 2px;
  background: repeating-linear-gradient(#e7c88c 0 3px, #b98a4a 3px 6px); border: 1.5px solid var(--ink-line);
}
.xsign::before { left: 24px; } .xsign::after { right: 24px; }
.xsign-board {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 13px 6px 6px; border-radius: 14px; border: 3px solid var(--ink-line);
  background: repeating-linear-gradient(90deg, rgba(60, 30, 10, .08) 0 2px, transparent 2px 15px), linear-gradient(#dba56a, #a96a31);
  box-shadow: 0 5px 0 var(--ink-line), 0 12px 20px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 235, 200, .45), inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.xsign-ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 45% 40%, rgba(255, 246, 220, .9), rgba(255, 226, 160, .5) 58%, rgba(255, 226, 160, 0) 72%);
}
.xsign-ico img { width: 42px; height: 42px; display: block; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .35)); }
.xsign-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.xsign-txt b {
  font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .6px; line-height: 1.1; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 0 var(--ink-line); -webkit-text-stroke: 4px var(--ink-line); paint-order: stroke fill;
}
.xsign-time {
  font-family: var(--display); font-size: 12.5px; letter-spacing: .4px; line-height: 1.15; color: #4a2a12; white-space: nowrap; font-variant-numeric: tabular-nums;
  padding: 1px 9px 2px; border-radius: 999px; background: linear-gradient(#ffe48a, #f2a93b); border: 2px solid var(--ink-line); box-shadow: 0 2px 0 var(--ink-line);
}
.xsign:active .xsign-board { translate: 0 3px; box-shadow: 0 2px 0 var(--ink-line), inset 0 2px 0 rgba(255, 235, 200, .45); }
.xsign.swing { animation: signSwing 1s ease-out; }
@keyframes signSwing { 0% { rotate: 0deg; } 16% { rotate: -8deg; } 36% { rotate: 6deg; } 56% { rotate: -3.5deg; } 76% { rotate: 1.8deg; } 100% { rotate: 0deg; } }
.xsign.gift .xsign-board { background: repeating-linear-gradient(90deg, rgba(60, 30, 10, .06) 0 2px, transparent 2px 15px), linear-gradient(#ffe48a, #f2a93b); }
.xsign.gift .xsign-txt b { color: #fff; }
.xsign.gift .xsign-ico img { animation: wiggle 1.6s ease-in-out infinite; }
.xsign.gift .xsign-time { background: linear-gradient(#a6ea74, #55bb3f); color: #fff; text-shadow: 0 1px 0 #1d4d27; }
.xflake {
  position: absolute; z-index: 4; width: 8px; height: 8px; margin: -4px; background: #fff; border-radius: 1.5px; rotate: 45deg; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(74, 42, 18, .28); animation: flakeFall var(--t, 1.3s) cubic-bezier(.3, 0, .8, .6) forwards;
}
@keyframes flakeFall { 0% { opacity: 0; scale: .4; } 12% { opacity: 1; scale: 1; } 100% { opacity: 0; translate: var(--dx) var(--dy); rotate: 225deg; } }

/* ── Chocadeira ────────────────────────────────────────────────────────── */
.menu-box.inc-box { gap: 9px; }
.inc-top { display: flex; gap: 8px; align-items: stretch; }
.inc-top .hats-prog { flex: 1; }
.inc-bank {
  flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 13px 4px 8px; border-radius: 12px;
  background: linear-gradient(#fff6d6, #ffe7a0); border: 2px solid #e7b442; font-family: var(--display); font-size: 23px; color: #c27a06;
}
.inc-bank .feather { width: 28px; height: 28px; }
.inc-nests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inc-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 5px 7px; border-radius: 13px; min-width: 0;
  background: #fff; border: 3px solid var(--rar2, #eadcc0); box-shadow: 0 3px 0 var(--card-edge);
}
.inc-pic { position: relative; width: 84px; height: 84px; }
.inc-pic img { position: relative; width: 100%; height: 100%; display: block; transform-origin: 50% 88%; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .22)); }
.inc-hero.busy .inc-pic img { animation: eggRock 2.6s ease-in-out infinite; }
@keyframes eggRock { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.inc-hero.ready {
  border-color: #f2b21c; background: radial-gradient(circle at 50% 34%, #fff3bd, #fff 72%);
  box-shadow: 0 3px 0 var(--card-edge), 0 0 0 3px rgba(255, 210, 70, .6); animation: readyGlow 1.3s ease-in-out infinite;
}
@keyframes readyGlow { 50% { box-shadow: 0 3px 0 var(--card-edge), 0 0 0 6px rgba(255, 210, 70, .28); } }
.inc-hero.ready .inc-pic::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; animation: rays 14s linear infinite;
  background: repeating-conic-gradient(rgba(255, 196, 50, .6) 0 12deg, transparent 12deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.inc-hero.ready .inc-pic img { animation: eggHop 1.3s ease-in-out infinite; }
@keyframes eggHop { 0%, 30%, 100% { translate: 0 0; scale: 1; } 8% { scale: 1.07 .92; } 18% { translate: 0 -9px; scale: .96 1.05; } 26% { scale: 1.05 .95; } }
.inc-name { font-family: var(--display); font-size: 13.5px; line-height: 1.05; color: var(--ink); text-align: center; white-space: nowrap; }
.inc-time { font-family: var(--display); font-size: 16px; line-height: 1.1; color: var(--rar, var(--ink-soft)); font-variant-numeric: tabular-nums; }
.inc-meter { width: 100%; height: 7px; border-radius: 4px; background: #eadcc3; box-shadow: inset 0 2px 0 rgba(74, 42, 18, .15); overflow: hidden; }
.inc-meter i { display: block; height: 100%; border-radius: 4px; background: var(--rar); }
.inc-acts { display: flex; gap: 4px; width: 100%; margin-top: 2px; }
.menu-box button.inc-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 3px 4px 5px; white-space: nowrap;
  font-size: 14px; border-width: 2.5px; border-radius: 10px; box-shadow: 0 3px 0 var(--o), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.menu-box button.inc-btn:active { translate: 0 2px; transform: none; box-shadow: 0 1px 0 var(--o), inset 0 2px 0 rgba(255, 255, 255, .4); }
/* contorno: 3 px nestes botões pequenos (os 4 px do jogo embolam em letra de 14 px); texto sempre claro com traço escuro, nunca o contrário */
.menu-box button.inc-btn { -webkit-text-stroke-width: calc(3px * var(--sk, 1)); text-shadow: 0 1px 0 var(--o); }
.menu-box button.inc-btn.gold { --o: #7a4708; border-color: #7a4708; background: linear-gradient(#ffd866, #f0a02c); color: #fff; }
.menu-box button.inc-btn.wood {
  --o: var(--ink-line); border-color: var(--ink-line);
  background: repeating-linear-gradient(90deg, rgba(60, 30, 10, .08) 0 2px, transparent 2px 15px), linear-gradient(#dba56a, #a96a31);
}
.menu-box button.inc-btn.open { font-size: 16px; padding: 4px 4px 6px; }
.inc-btn .feather { width: 17px; height: 17px; vertical-align: 0; }
.inc-btn .tv-ico { width: 24px; height: 17px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: rgba(40, 20, 5, .35); }
.inc-btn .tv-ico svg { width: 15px; height: 11px; fill: #fff; }
.inc-hero.empty, .inc-hero.locked { background: #fbf4e4; border-style: dashed; border-color: #dccba6; box-shadow: none; }
.inc-hero.empty .inc-pic img, .inc-hero.locked .inc-pic img { filter: grayscale(.5) opacity(.55); }
.inc-hero.empty .inc-name, .inc-hero.locked .inc-name { color: var(--ink-soft); }
.inc-lock { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .3)); }
.inc-queue { display: flex; align-items: center; gap: 8px; padding: 5px 6px 6px 11px; border-radius: 12px; background: rgba(74, 42, 18, .07); min-height: 46px; }
.inc-queue .q-lbl { flex: none; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.inc-queue .q-eggs { flex: 1; min-width: 0; display: flex; align-items: center; }
.inc-queue .q-eggs img { width: 32px; height: 32px; margin-right: -9px; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .25)); }
.inc-queue .q-none { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); opacity: .8; }
.menu-box .inc-queue button.inc-btn { flex: none; width: auto; padding-left: 11px; padding-right: 11px; }
.inc-queue .inc-btn img { width: 22px; height: 22px; margin: -3px 0; }
.inc-hint { display: flex; align-items: center; gap: 10px; padding: 3px 12px; min-height: 46px; border-radius: 13px; background: linear-gradient(#fff6d6, #ffe7a0); border: 2px solid #e7b442; }
.inc-hint img { width: 38px; height: 38px; flex: none; }
.inc-hint b { font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.15; color: #7a4f12; }
.inc-grid .hat-card { cursor: pointer; transition: translate .12s; }
.inc-grid .hat-card:active { translate: 0 2px; }
.inc-grid .hat-card b { min-height: 0; }
.br-stars { display: flex; gap: 1px; justify-content: center; }
.br-stars svg { width: 16px; height: 16px; display: block; }
.br-stars.big svg { width: 26px; height: 26px; }
.menu-box.inc-box .hat-grid { max-height: clamp(128px, calc(var(--vh) * 100 - 470px), 470px); }

/* ── Ficha da raça ─────────────────────────────────────────────────────── */
.menu-box.br-box { width: min(92%, 330px); gap: 8px; }
.br-trick { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 9px; border-radius: 13px; text-align: center; background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge); }
.br-trick b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.1; color: var(--ink); }
.br-trick span { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ink-soft); }
.br-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.br-lv { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 4px 6px; border-radius: 11px; background: #fbf4e4; border: 2px solid #eadcc0; }
.br-lv b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1; color: var(--ink-soft); }
.br-lv.got { background: #fff; }
.br-lv.got b { color: var(--ink); }
.br-lv.on { background: linear-gradient(#fff8dc, #ffe9a6); border-color: #e7b442; box-shadow: 0 3px 0 #c9962e; }
.br-lv.on b { color: #b06c00; }
.br-lv .br-stars svg { width: 13px; height: 13px; }

/* ── Ovo chocando (revelação) ──────────────────────────────────────────── */
.hx { position: relative; align-self: center; width: 172px; height: 172px; margin: 2px 0 0; }
.hx img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 88%; }
.hx-rays {
  position: absolute; inset: -34px; border-radius: 50%; opacity: 0; scale: .2;
  background: repeating-conic-gradient(var(--rar) 0 12deg, transparent 12deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: rays 14s linear infinite; transition: opacity .3s, scale .55s cubic-bezier(.3, 1.5, .5, 1);
}
.hx-egg { filter: drop-shadow(0 4px 0 rgba(60, 30, 10, .25)); }
.hx.wob .hx-egg { animation: hxWob 1s ease-in-out; }
@keyframes hxWob {
  0% { rotate: 0deg; } 7% { rotate: -6deg; } 14% { rotate: 6deg; } 21% { rotate: 0deg; }
  36% { rotate: 0deg; } 43% { rotate: -11deg; } 50% { rotate: 11deg; } 57% { rotate: 0deg; }
  70% { rotate: 0deg; } 77% { rotate: -17deg; } 85% { rotate: 17deg; } 93%, 100% { rotate: 0deg; }
}
.hx.squash .hx-egg { animation: hxSquash .26s ease-in forwards; }
@keyframes hxSquash { to { scale: 1.13 .83; } }
.hx-bot, .hx-cap, .hx-breed, .hx-flash, .hx-chip { opacity: 0; }
.hx.burst .hx-egg { opacity: 0; }
.hx.burst .hx-rays { opacity: .6; scale: 1; }
.hx.burst .hx-bot { animation: hxBot 1s ease-in forwards; }
@keyframes hxBot { 0% { opacity: 1; scale: 1.13 .83; } 22% { scale: .94 1.07; } 40% { scale: 1; opacity: 1; } 100% { opacity: 0; translate: 0 22px; scale: .9; } }
.hx.burst .hx-cap { animation: hxCap .85s cubic-bezier(.2, .7, .4, 1) forwards; transform-origin: 50% 30%; }
@keyframes hxCap { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; translate: 52px -128px; rotate: 210deg; } }
.hx-flash { position: absolute; inset: 22%; border-radius: 50%; background: #fff; }
.hx.burst .hx-flash { animation: hxFlash .5s ease-out; }
@keyframes hxFlash { 0% { opacity: .95; scale: .3; } 100% { opacity: 0; scale: 2.6; } }
.hx.burst .hx-breed { opacity: 1; animation: hxBreed .65s .3s cubic-bezier(.3, 1.7, .5, 1) both, playPulse 1.6s 1s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(60, 30, 10, .3)); transform-origin: 50% 60%; }
@keyframes hxBreed { from { scale: .15; opacity: 0; translate: 0 24px; } }
.hx-chip { position: absolute; left: 50%; top: 54%; width: 13px; height: 10px; margin: -5px -6px; border-radius: 2px; background: var(--chip); border: 1.5px solid var(--ink-line); }
.hx.burst .hx-chip { animation: hxChip .85s cubic-bezier(.15, .6, .4, 1) forwards; }
@keyframes hxChip { 0% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; translate: var(--dx) var(--dy); rotate: var(--r); } }
.hx-info { display: flex; flex-direction: column; gap: 8px; opacity: 0; translate: 0 10px; transition: opacity .3s, translate .3s; pointer-events: none; }
.hx-info.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.hx-info .br-trick { padding: 6px 10px 7px; }
.hx-info .br-trick span { font-size: 13px; }

/* ── Encomendas no cartão da missão ────────────────────────────────────── */
#mission-pop .m-tabs { display: flex; gap: 4px; margin: -1px -2px 7px; }
#mission-pop .m-tabs button {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 4px 4px; border-radius: 9px;
  border: 2px solid transparent; background: rgba(74, 42, 18, .09); font-family: var(--display); font-size: 12px; letter-spacing: .2px; color: var(--ink-soft); cursor: pointer;
}
#mission-pop .m-tabs button.on { background: #fff; border-color: var(--ink-line); color: #4a2a12; box-shadow: 0 2px 0 var(--ink-line); }
#mission-pop .m-tabs img { width: 19px; height: 19px; flex: none; }
/* cabe em 230 px: só a aba aberta mostra o nome; a outra fica no ícone (e no contador) */
#mission-pop .m-tabs button:not(.on) { flex: none; font-size: 0; gap: 0; padding-left: 9px; padding-right: 9px; }
#mission-pop .m-tabs button:not(.on) .m-n { margin-left: 4px; }
#mission-pop .m-tabs .m-n { font-style: normal; font-size: 10.5px; line-height: 1.3; padding: 0 5px; border-radius: 99px; background: #55bb3f; color: #fff; }
#mission-pop.tab-o > .m-text, #mission-pop.tab-o > .m-bar, #mission-pop.tab-o > .m-row, #mission-pop.tab-o > .m-claim { display: none !important; }
#mission-pop:not(.tab-o) .o-list { display: none; }
.o-list { display: flex; flex-direction: column; gap: 7px; }
.o-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 6px; align-items: center; }
.o-row img { grid-row: 1 / span 2; width: 24px; height: 24px; filter: drop-shadow(0 1px 0 rgba(60, 30, 10, .3)); }
.o-row .o-t { font-family: var(--display); font-size: 12.5px; line-height: 1.15; color: #4a2a12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-row .o-n { font-size: 11px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.o-row .o-bar { grid-column: 2 / span 2; height: 6px; margin-top: 2px; border-radius: 4px; background: rgba(0, 0, 0, .12); overflow: hidden; }
.o-row .o-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(#85da92, var(--ok)); transition: width .4s; }
.o-row.done .o-t { color: var(--ok-dark); }
.o-row.done .o-n { width: 16px; height: 16px; border-radius: 50%; background: #55bb3f; box-shadow: 0 0 0 1.5px #1d4d27; position: relative; color: transparent; }
.o-row.done .o-n::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 40deg; }
.o-row.pop { animation: oPop .5s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes oPop { 0% { scale: 1; } 35% { scale: 1.07; } }
.o-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1px; padding-top: 6px; border-top: 2px dashed rgba(74, 42, 18, .16); font-size: 11px; font-weight: 700; color: var(--ink-soft); cursor: pointer; font-variant-numeric: tabular-nums; }
.o-foot b { font-family: var(--display); font-weight: 400; color: #4a2a12; }
#mission-btn .o-dot { position: absolute; top: -3px; left: -3px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d6f9b4, #55bb3f 60%, #2f8a2a); border: 2px solid var(--ink-line); }

/* ── Encomendas: janela completa ───────────────────────────────────────── */
.menu-box.ord-box { gap: 9px; }
.ord-sub { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ord-sub b { font-family: var(--display); font-weight: 400; font-size: 14px; color: #4a2a12; padding: 0 9px 1px; border-radius: 99px; background: rgba(74, 42, 18, .1); }
.ord-list { display: flex; flex-direction: column; gap: 7px; }
.ord-row { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 9px 8px 8px; border-radius: 13px; background: #fff; border: 2px solid #f0e2c6; box-shadow: 0 3px 0 var(--card-edge); }
.ord-row .lg-ico { width: 44px; height: 44px; }
.ord-row .lg-ico img { width: 38px; height: 38px; }
.ord-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ord-name { font-family: var(--display); font-size: 15px; line-height: 1.12; color: var(--ink); }
.ord-prog { display: flex; align-items: center; gap: 7px; }
.ord-prog .hats-bar { flex: 1; height: 9px; }
.ord-prog .hats-bar i { background: linear-gradient(#85da92, var(--ok)); box-shadow: inset 0 -2px 0 rgba(20, 90, 40, .3); min-width: 0; }
.ord-prog span { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ord-rew { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-family: var(--display); font-size: 14px; line-height: 1.15; color: #c27a06; white-space: nowrap; }
.ord-rew .feather { width: 17px; height: 17px; vertical-align: -3px; }
.ord-rew .coin-s { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }
.ord-rew span:last-child { color: #7a8a3a; font-size: 12.5px; }
.ord-tier { position: absolute; left: -5px; top: -7px; font-family: var(--display); font-style: normal; font-size: 10px; letter-spacing: .4px; color: #fff; padding: 0 6px 1px; border-radius: 6px; border: 2px solid var(--ink-line); background: var(--tc); rotate: -5deg; }
.ord-row.done { background: linear-gradient(#f6fff2, #e2f6da); border-color: #a8dba0; }
.ord-row.done .ord-rew { opacity: .55; }
.ord-check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(#a6ea74, #55bb3f); border: 2.5px solid #1d4d27; box-shadow: 0 2px 0 #1d4d27; position: relative; }
.ord-check::after { content: ""; position: absolute; left: 9px; top: 4px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3.5px 3.5px 0; rotate: 40deg; }
.menu-box button.ord-swap { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 50%; border-width: 2.5px; display: flex; align-items: center; justify-content: center; }
.ord-swap svg { width: 16px; height: 16px; }
.ord-all { display: flex; align-items: center; gap: 10px; padding: 6px 12px 7px 8px; border-radius: 13px; background: linear-gradient(#fff6d6, #ffe7a0); border: 2px solid #e7b442; }
.ord-all img { flex: none; width: 50px; height: 50px; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .25)); }
.ord-all div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ord-all b { font-family: var(--display); font-weight: 400; font-size: 15.5px; line-height: 1.1; color: #7a4f12; }
.ord-all span { font-size: 12.5px; font-weight: 700; color: #a37a2c; }
.ord-all .lg-pips { margin: 0; gap: 4px; }
.ord-all .lg-pips i { width: 13px; height: 13px; }
.menu-box button.ord-see { flex: none; font-size: 15px; padding: 5px 12px 7px; }

/* Paisagem: ninhos e cartas mais baixos, para as 10 raças aparecerem sem rolar em 1280x720. */
@media (min-aspect-ratio: 5/4) {
  .inc-pic { width: 62px; height: 62px; }
  .inc-grid .hat-ico { width: 50px; height: 50px; }
  .inc-grid .hat-card { padding-top: 6px; padding-bottom: 6px; }
  .menu-box.inc-box .hat-grid { max-height: clamp(128px, calc(var(--vh) * 100 - 408px), 470px); }
}
/* Retrato: ninho estreito, os dois botões do ovo ficam um embaixo do outro. */
@media (max-aspect-ratio: 5/4) {
  .inc-acts { flex-direction: column; }
  .inc-hero { justify-content: flex-start; }
  .inc-hero .inc-acts { margin-top: auto; }
  .inc-name { font-size: 12px; }
}

/* Linha do ovo dentro de janela estreita (Bem-vindo de volta, 260 px). */
.offer-box .ord-all { gap: 6px; padding: 5px 7px 6px 4px; }
.offer-box .ord-all img { width: 42px; height: 42px; }
.offer-box .ord-all b { font-size: 14.5px; }
.offer-box .ord-all span { font-size: 11.5px; white-space: nowrap; }
.offer-box button.ord-see { font-size: 14px; padding: 4px 10px 6px; }

/* ══ Janelas: X no canto, seta de voltar, sair e "precisa escolher" ══════════ */
.menu-box button.pv-top {
  position: absolute; top: -16px; z-index: 4; width: 42px; height: 42px; padding: 0; margin: 0; border-radius: 50%;
  display: grid; place-items: center; --o: var(--ink-line); border: 3px solid var(--ink-line);
  box-shadow: 0 3px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .5);
  animation: pvTop .3s .14s cubic-bezier(.3, 1.7, .5, 1) backwards;
}
.menu-box button.pv-top::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }   /* área de toque de 56 px */
.menu-box button.pv-top:active { transform: none; translate: 0 2px; box-shadow: 0 1px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .5); }
.menu-box button.pv-x { right: -14px; background: linear-gradient(#f79283, #dc4a3c 60%, #c53a30); }
.menu-box button.pv-bk { left: -14px; background: linear-gradient(#dba56a, #a96a31); }
.pv-top svg { width: 20px; height: 20px; filter: drop-shadow(0 1.5px 0 rgba(70, 20, 10, .5)); transition: rotate .25s cubic-bezier(.3, 1.6, .5, 1), translate .2s; }
.pv-x:hover svg { rotate: 90deg; }
.pv-bk:hover svg { translate: -2px 0; }
@keyframes pvTop { from { scale: 0; rotate: -90deg; } }
.menu-box.still, .menu-box.still .pv-top, .menu-box.still .pz-tile { animation: none; }
.menu-box.closing { animation: pvOut .13s ease-in forwards; pointer-events: none; }
@keyframes pvOut { to { scale: .9; opacity: 0; } }
.menu-box.nudge { animation: pvNudge .3s ease-out; }
@keyframes pvNudge { 30% { scale: 1.035; } 60% { scale: .99; } }

/* ══ Respostas ao toque ═════════════════════════════════════════════════════ */
.pv-bump { animation: pvBump .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pvBump { 35% { scale: 1.14; } }
.pv-shake { animation: pvShake .32s ease-out; }
@keyframes pvShake { 20% { translate: -5px 0; } 45% { translate: 4px 0; } 70% { translate: -2px 0; } }
.pv-low { animation: pvLow .5s ease-out; }
@keyframes pvLow { 25%, 60% { background: #ffd3cc; border-color: #d64a3c; scale: 1.08; } }
.pv-spark {
  position: absolute; z-index: 6; width: 13px; height: 13px; margin: -6.5px; pointer-events: none; background: var(--c, #ffc52e);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: pvSpark .62s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes pvSpark { from { transform: scale(.2); opacity: 1; } 55% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.15) rotate(150deg); opacity: 0; } }
.menu-box button[data-cant] { filter: saturate(.3); opacity: .72; }

/* ══ Pausa e Opções ═════════════════════════════════════════════════════════ */
.menu-box.pz-box { gap: 10px; }
.menu-box.pz-box:not(.pz-only) { width: min(92%, 440px); }
.menu-box button.pz-play { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 23px; padding: 11px 11px 13px; }
.pz-play svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 0 rgba(20, 60, 25, .5)); }
/* 7 atalhos: 4 em cima e 3 centralizados embaixo. */
.pz-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; padding-top: 4px; }
.pz-grid > .pz-tile { flex: 0 0 calc((100% - 24px) / 4); min-width: 0; }
/* Saída pro título: largo, azul secundário (o mesmo do fim de partida), no rodapé. */
.menu-box button.pz-home { font-size: 17px; padding: 9px 11px 11px; margin-top: 14px; }
.pz-home span { display: inline-block; max-width: 100%; white-space: nowrap; }
.menu-box button.pz-tile {
  position: relative; overflow: visible; width: auto; margin: 0; padding: 5px 2px 7px; border-radius: 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12.5px; letter-spacing: 0;
  --o: var(--ink-line); border: 3px solid var(--ink-line);
  background: repeating-linear-gradient(90deg, rgba(60, 30, 10, .08) 0 2px, transparent 2px 15px), linear-gradient(#dba56a, #a96a31);
  box-shadow: 0 4px 0 var(--ink-line), inset 0 2px 0 rgba(255, 235, 200, .5);
  animation: pvTile .34s cubic-bezier(.3, 1.5, .5, 1) backwards;
}
.pz-tile:nth-child(1) { animation-delay: .05s; } .pz-tile:nth-child(2) { animation-delay: .08s; } .pz-tile:nth-child(3) { animation-delay: .11s; } .pz-tile:nth-child(4) { animation-delay: .14s; }
.pz-tile:nth-child(5) { animation-delay: .12s; } .pz-tile:nth-child(6) { animation-delay: .15s; } .pz-tile:nth-child(7) { animation-delay: .18s; }
@keyframes pvTile { from { transform: translateY(14px) scale(.6); opacity: 0; } }
.pz-tile .sq-plate { width: 54px; height: 54px; }
.pz-tile .sq-plate img { width: 46px; height: 46px; display: block; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .35)); transition: transform .2s; }
.pz-tile:hover .sq-plate img { transform: scale(1.12) rotate(-6deg); }
.pz-tile b { font-weight: 400; line-height: 1.1; white-space: nowrap; width: 100%; overflow: hidden; padding: 0 4px 2px; margin-bottom: -2px; box-sizing: border-box; }
.pz-tile .sq-badge { top: -9px; right: -7px; }
.pz-tile .sq-dot { top: -7px; right: -6px; }
.pz-sep { display: flex; align-items: center; gap: 9px; margin: 2px 2px -2px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.pz-sep::before, .pz-sep::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: rgba(74, 42, 18, .14); }
.pz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.menu-box button.pz-opt {
  width: auto; margin: 0; min-height: 48px; padding: 6px 9px 7px 7px; border-radius: 13px; display: flex; align-items: center; gap: 8px; text-align: left;
  --o: #dccaa3; border: 2px solid #dccaa3; background: #fff; box-shadow: 0 3px 0 #dccaa3;
  font-size: 15px; color: #4a2a12; text-shadow: none; -webkit-text-stroke: 0; letter-spacing: 0;
}
.menu-box button.pz-opt:active { transform: none; translate: 0 2px; box-shadow: 0 1px 0 #dccaa3; }
.pz-opt span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-opt img { flex: none; width: 32px; height: 32px; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .25)); }
.pz-gl { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f1e4c6; color: #9a7c4c; transition: background .2s, color .2s; }
.pz-gl svg { width: 20px; height: 20px; display: block; }
.pz-opt.on .pz-gl { background: #d8f3c4; color: #2f8a2a; }
.pz-sw { flex: none; position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d5c6a6; box-shadow: inset 0 2px 0 rgba(60, 30, 10, .2); transition: background .2s; }
.pz-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1.5px 0 rgba(60, 30, 10, .4); transition: translate .24s cubic-bezier(.3, 1.8, .5, 1); }
.pz-opt.on .pz-sw { background: #55bb3f; }
.pz-opt.on .pz-sw::after { translate: 16px 0; }
.pz-go { flex: none; width: 9px; height: 15px; color: #c2a878; transition: translate .2s; }
.pz-opt:hover .pz-go { translate: 2px 0; }
.menu-box button.pz-reset {
  width: fit-content; max-width: 100%; margin: 0 auto; padding: 5px 13px 6px; border-radius: 99px; display: flex; align-items: center; gap: 6px;
  --o: transparent; border: 2px solid transparent; background: none; box-shadow: none;
  font-size: 13.5px; color: #b5493d; text-shadow: none; -webkit-text-stroke: 0; letter-spacing: 0; transition: background .15s, color .15s;
}
.pz-reset svg { width: 15px; height: 15px; flex: none; }
.menu-box button.pz-reset.armed { background: #d64a3c; border-color: #5e140c; color: #fff; box-shadow: 0 3px 0 #5e140c; }
.menu-box button.pz-reset.armed svg { display: none; }
/* Só Opções (engrenagem do título): janela estreita, uma coluna. */
.menu-box.pz-only { width: min(92%, 300px); }
.pz-only .pz-opts { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .pv-bump, .pv-shake, .menu-box.nudge, .menu-box button.pz-tile, .menu-box button.pv-top { animation: none; }
  .pv-spark { display: none; }
}

/* ══ Chocadeira com um ninho só: ovo grande à esquerda, nome, tempo e ação à direita ══ */
.inc-hero { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px 12px 8px; }
.inc-hero .inc-pic { flex: none; width: 108px; height: 108px; }
.inc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; }
.inc-hero .inc-name { text-align: left; font-size: 20px; padding-right: 92px; overflow: hidden; text-overflow: ellipsis; }
.inc-sub { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ink-soft); }
.inc-hero.ready .inc-sub { color: #a8680a; }
.inc-line { display: flex; align-items: center; gap: 9px; }
.inc-line .inc-meter { flex: 1; width: auto; height: 11px; border-radius: 6px; }
.inc-line .inc-meter i { border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); }
.inc-hero .inc-time { flex: none; font-size: 18px; }
.inc-hero .inc-acts { flex-direction: row; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.menu-box .inc-hero button.inc-btn { flex: 1 1 82px; font-size: 16px; gap: 5px; padding: 6px 9px 8px; border-radius: 12px; }
.menu-box .inc-hero button.inc-btn[data-act="skip"], .menu-box .inc-hero button.inc-btn[data-act="buy"] { flex: 2 1 140px; }
.menu-box .inc-hero button.inc-btn.open { font-size: 22px; padding: 7px 9px 10px; }
.inc-hero .inc-btn .feather { width: 20px; height: 20px; }
.inc-hero .inc-btn img { width: 24px; height: 24px; margin: -3px 0; }
.inc-hero .inc-btn .tv-ico { width: 27px; height: 19px; }
.inc-hero .inc-bank { position: absolute; top: 8px; right: 10px; font-size: 18px; padding: 1px 10px 2px 6px; border-radius: 99px; }
.inc-hero .inc-bank .feather { width: 22px; height: 22px; }
.inc-hero.empty { border-style: dashed; }
.inc-hero.empty .inc-pic img { filter: grayscale(.4) opacity(.7); }
.inc-sep b { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .4px; color: var(--ink); margin-left: -3px; }
.menu-box.inc-box .hat-grid { max-height: clamp(128px, calc(var(--vh) * 100 - 430px), 470px); }
@media (min-aspect-ratio: 5/4) {
  .inc-hero .inc-pic { width: 96px; height: 96px; }
  .menu-box.inc-box .hat-grid { max-height: clamp(128px, calc(var(--vh) * 100 - 372px), 470px); }
}
@media (max-width: 430px) {
  .inc-hero { gap: 8px; padding-left: 5px; }
  .inc-hero .inc-pic { width: 86px; height: 86px; }
  .inc-hero .inc-name { font-size: 17.5px; }
  .menu-box .inc-hero button.inc-btn { font-size: 15px; }
}
/* Dois ninhos: lado a lado e em coluna no PC; um embaixo do outro, mais baixos, em pé. */
.inc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.inc-two .inc-hero .inc-name { padding-right: 0; }
@media (min-aspect-ratio: 5/4) {
  .inc-two .inc-hero { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 8px 9px; text-align: center; }
  .inc-two .inc-hero .inc-pic { width: 64px; height: 64px; margin: 0 auto; }
  .inc-two .inc-info { gap: 5px; }
  .inc-two .inc-hero .inc-name { font-size: 16px; text-align: center; }
  .inc-two .inc-hero .inc-sub { text-align: center; font-size: 12.5px; }
  .inc-two .inc-hero .inc-time { font-size: 16px; }
  .inc-two .inc-hero .inc-acts { gap: 5px; margin-top: 1px; }
  .menu-box .inc-two .inc-hero button.inc-btn { font-size: 14.5px; padding: 4px 6px 6px; }
  .menu-box .inc-two .inc-hero button.inc-btn.wood { flex-basis: 100%; }
}
@media (max-aspect-ratio: 5/4) {
  .inc-two { grid-template-columns: 1fr; gap: 7px; }
  .inc-two .inc-hero { padding-top: 5px; padding-bottom: 7px; }
  .inc-two .inc-hero .inc-pic { width: 60px; height: 60px; }
  .inc-two .inc-hero .inc-name { font-size: 16px; }
  .inc-two .inc-hero .inc-acts { flex-wrap: nowrap; }
  .menu-box .inc-two .inc-hero button.inc-btn { font-size: 14.5px; padding: 4px 7px 6px; }
  .menu-box .inc-two .inc-hero button.inc-btn.wood { flex: none; }
  .menu-box .inc-two .inc-hero button.inc-btn.wood .ad-left { display: none; }
}
/* 2º ninho à venda: linha tracejada com cadeado. */
.inc-nest2 { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 13px; background: #fbf4e4; border: 3px dashed #dccba6; }
.inc-nest2 .n2-pic { position: relative; flex: none; width: 48px; height: 48px; }
.inc-nest2 .n2-pic img { width: 100%; height: 100%; filter: grayscale(.5) opacity(.55); }
.inc-nest2 .n2-lock { position: absolute; left: 50%; top: 50%; translate: -50% -42%; width: 22px; height: 22px; }
.inc-nest2 .n2-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.inc-nest2 .n2-txt b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inc-nest2 .n2-txt span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-box .inc-nest2 button.inc-btn { flex: none; width: auto; padding: 4px 12px 6px; font-size: 15px; }
/* Meia estrela (repetida guardada). */
.half-star { position: relative; display: inline-block; line-height: 0; }
.half-star svg { display: block; }
.half-star > span { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
/* Repetida na revelação: estrelas grandes, "+½ estrela", a frase e o vídeo que dobra. */
.hx-dup { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hx-dup .br-stars { gap: 3px; }
.hx-dup .br-stars svg { width: 32px; height: 32px; }
.hx-dup .half-star { animation: eggHop 1.3s ease-in-out infinite; }
.hx-plus { font-family: var(--display); font-weight: 400; font-size: 20px; color: #c27a06; }
.hx-hint { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.menu-box button.hx-vid {
  display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; --o: var(--ink-line); border-color: var(--ink-line);
  background: repeating-linear-gradient(90deg, rgba(60, 30, 10, .08) 0 2px, transparent 2px 15px), linear-gradient(#dba56a, #a96a31);
}
.hx-vid .tv-ico { width: 30px; height: 21px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(40, 20, 5, .35); }
.hx-vid .tv-ico svg { width: 18px; height: 13px; fill: #fff; }
.hx-vid .feather { width: 20px; height: 20px; margin-left: -4px; }
.menu-box button[hidden] { display: none; }
/* Dia 7 do presente: ovo raro colorido (os chapéus aparecem em silhueta). */
.dl-day.egg { border-color: var(--rar2); }
.dl-day.egg .dl-ico img { width: 36px; height: 36px; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .25)); }

/* ══ Pílula do ovo no HUD (desenho fechado pelo Fable 5.2, mock_chocadeira/hud_fable/v3) ══
   Simétrica: ícone recortado e centrado numa vaga fixa, respiro igual dos dois lados, mesma
   geometria chocando e pronta (só cor e texto mudam). S: em pé e celular deitado; M: PC/tablet. */
.egg-pill {
  --h: 26px; --ih: 18px; --p: 8px; --g: 5px; --fs: 13px; --st: 2.5px; --sh: 2px; --rb: .5px; --ny: -.5px; --hit: 9px; --maxt: 63px; --b: 2px;
  position: absolute; left: 12px; top: 10px; z-index: 3; box-sizing: border-box; display: flex; align-items: center; gap: var(--g);
  height: var(--h); margin: 0; padding: 0 calc(var(--p) - var(--b) - var(--rb)) 0 calc(var(--p) - var(--b));
  border-radius: 99px; border: var(--b) solid var(--ink-line); pointer-events: auto; cursor: pointer; white-space: nowrap;
  background: rgba(40, 22, 8, .82); box-shadow: 0 var(--sh) 0 var(--ink-line), 0 calc(var(--sh) * 2) 9px rgba(0, 0, 0, .22);
  font-family: var(--display); font-weight: 400; font-size: var(--fs); line-height: 1; letter-spacing: .3px; font-variant-numeric: tabular-nums;
  color: #ffe6b8; -webkit-text-stroke: 0; text-shadow: none; transition: translate .1s;
}
.egg-pill[hidden] { display: none; }
.egg-pill:active { translate: 0 1px; }
.egg-pill .ep-ic { flex: none; width: var(--ih); height: var(--ih); display: block; }
.egg-pill .ep-ic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.egg-pill .ep-lab { display: block; flex: none; translate: 0 var(--ny); }
.egg-pill.ready {
  border-color: #7a4708; background: linear-gradient(#ffd866, #f0a02c); color: #fff;
  box-shadow: 0 var(--sh) 0 #7a4708, 0 calc(var(--sh) * 2) 9px rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .5);
  -webkit-text-stroke: calc(var(--st) * var(--sk, 1)) #7a4708; paint-order: stroke fill;
  padding-right: calc(var(--p) - var(--b) - var(--rb) + var(--st) / 2 * var(--sk, 1));
}
.egg-pill.ready .ep-lab { margin-left: calc(var(--st) / 2 * var(--sk, 1)); }
.egg-pill.ready .ep-ic { transform-origin: 50% 90%; animation: pillHop 1.3s ease-in-out infinite; }
.egg-pill.ready .ep-ic img { filter: drop-shadow(0 1px 0 rgba(122, 71, 8, .55)); }
@keyframes pillHop { 0%, 30%, 100% { translate: 0 0; scale: 1; } 8% { scale: 1.06 .94; } 18% { translate: 0 -3px; scale: .97 1.04; } 26% { scale: 1.04 .96; } }
/* área de toque maior que o desenho, invisível */
.egg-pill::after { content: ""; position: absolute; inset: calc(-1 * var(--hit) - var(--b)); border-radius: 99px; }
/* em pé: na ponta da linha da meta (não sobe na engrenagem nem no presente) */
.egg-pill.docked { position: relative; left: auto; top: auto; flex: none; margin-left: 6px; }
.egg-pill.docked::after { inset: -6px -6px -12px; }
@media (min-aspect-ratio: 5/4) and (min-height: 481px) {
  .egg-pill { --h: 30px; --ih: 22px; --p: 9px; --g: 6px; --fs: 14.5px; --st: 3px; --sh: 3px; --ny: 0px; --hit: 7px; --maxt: 70px; left: 22px; top: 18px; }
}
/* centro vertical das fontes do aparelho (calibrado nos pixels; a Rubik senta ~1 px alta) */
.egg-pill.ready:lang(vi) .ep-lab { translate: 0 -.5px; }
.egg-pill.ready:lang(th) .ep-lab, .egg-pill.ready:lang(zh) .ep-lab { translate: 0 .5px; }
.egg-pill.ready:lang(ja) .ep-lab, .egg-pill.ready:lang(ko) .ep-lab, .egg-pill.ready:lang(zh-TW) .ep-lab { translate: 0 1px; }
.egg-pill.ready:lang(hi) .ep-lab { translate: 0 3px; }

/* ══ Placa de Natal: cordas que saem da tela, neve em cima, galinha de gorro ══ */
.xsign { padding-top: 30px; }
.xsign::before, .xsign::after { top: -90px; height: 124px; }
.xsign::before { left: 30px; } .xsign::after { right: 30px; }
.xsign-board { padding: 9px 15px 7px 6px; gap: 6px; }
.xsign-snow { position: absolute; left: -5px; top: -8px; width: calc(100% + 10px); height: 21px; overflow: visible; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .22)); pointer-events: none; }
.xsign-ico { position: relative; z-index: 1; width: 52px; height: 46px; margin: -16px 0 -2px -2px; background: none; border-radius: 0; }
.xsign-ico img { width: 62px; height: 62px; flex: none; }
.xsign-txt { position: relative; z-index: 1; gap: 3px; }
.xsign-txt b { font-size: 17px; }
.xsign-time { font-size: 13px; }
.xsign.swing .xsign-ico img { animation: wiggle .9s ease-in-out; }

/* ══ Título: o ovo chocou (no lugar do aviso no "Bem-vindo de volta", que disputava com o vídeo de 2x) ══ */
.sq-new.ok { background: linear-gradient(#8fe06a, #3f9d30); rotate: 6deg; }
.mbtn-sq.hatched::after {
  content: ""; position: absolute; inset: -4px; border-radius: 20px; border: 3px solid #ffd23f; pointer-events: none;
  animation: hatchRing 1.3s ease-out infinite;
}
@keyframes hatchRing { from { opacity: .95; scale: 1; } to { opacity: 0; scale: 1.2; } }
.mbtn-sq.hatched .mbtn-ico { animation: eggHop 1.3s ease-in-out infinite; transform-origin: 50% 88%; }
.pv-gear { position: absolute; top: -3px; right: -3px; }
@media (prefers-reduced-motion: reduce) { .mbtn-sq.hatched::after, .mbtn-sq.hatched .mbtn-ico { animation: none; } }

/* ajustes finos: ovo maior no ninho, saldo sem encostar no tempo, cordas atrás da placa */
.inc-info { gap: 9px; }
.inc-hero .inc-pic { width: 132px; height: 132px; margin: -18px -12px -14px -14px; }
.inc-hero .inc-bank { top: 7px; right: 9px; font-size: 16px; }
.inc-hero .inc-bank .feather { width: 19px; height: 19px; }
.inc-hero .inc-name { padding-right: 84px; line-height: 1.2; }
.menu-box button.inc-btn { word-spacing: 2px; }
@media (max-width: 430px) { .inc-hero .inc-pic { width: 112px; height: 112px; margin: -12px -10px -10px -12px; } }
.xsign-board { z-index: 1; }

/* ══ Placa de Natal v3: sem neve; fio de luzinhas embaixo, galinha de gorro maior ══ */
.xsign-board { padding: 7px 15px 8px 6px; }
.xsign-ico { width: 56px; height: 48px; margin: -22px 0 -2px -4px; }
.xsign-ico img { width: 70px; height: 70px; }
.xsign-lights { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: -15px; display: flex; justify-content: space-between; pointer-events: none; }
.xsign-lights i {
  width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; background: var(--c); border: 2px solid var(--ink-line);
  box-shadow: 0 0 9px 1px var(--c); animation: bulb 1.8s ease-in-out infinite; position: relative;
}
.xsign-lights i::before { content: ""; position: absolute; left: 1.5px; top: -5px; width: 2px; height: 4px; background: var(--ink-line); }
.xsign-lights i:nth-child(4n+1) { --c: #ff6a5c; }
.xsign-lights i:nth-child(4n+2) { --c: #ffd23f; animation-delay: .45s; }
.xsign-lights i:nth-child(4n+3) { --c: #6fdc7a; animation-delay: .9s; }
.xsign-lights i:nth-child(4n) { --c: #6cc0ff; animation-delay: 1.35s; }
.xsign-lights i:nth-child(even) { translate: 0 3px; }
@keyframes bulb { 50% { filter: brightness(.62) saturate(.8); box-shadow: 0 0 0 0 transparent; } }

/* Placa de presente (o evento chegou): embrulho vermelho com fita dourada, pulando para chamar o toque */
.xsign.gift .xsign-board {
  border-color: #5e140c; animation: giftHop 2.2s ease-in-out infinite;
  background: linear-gradient(90deg, transparent 27px, #c98a12 27px 29px, #ffd23f 29px 41px, #c98a12 41px 43px, transparent 43px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 8px, transparent 8px 16px), linear-gradient(#f4695b, #cc362c);
  box-shadow: 0 5px 0 #5e140c, 0 12px 20px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .14);
}
@keyframes giftHop { 0%, 62%, 100% { transform: none; } 70% { transform: translateY(3px) scale(1.04, .94); } 80% { transform: translateY(-7px) scale(.97, 1.04); } 90% { transform: translateY(0) scale(1.02, .98); } }
.xsign.gift .xsign-txt b { -webkit-text-stroke-color: #5e140c; text-shadow: 0 2px 0 #5e140c; }
.xsign.gift .xsign-time { border-color: #1d4d27; box-shadow: 0 2px 0 #1d4d27; }
.xsign.gift .xsign-ico { margin-top: -14px; }
.xsign.gift .xsign-ico img { width: 60px; height: 60px; }

/* ══ Cartão: check menor, contador discreto, bolinha de novidade na aba fechada ══ */
.o-row.done .o-n { width: 13px; height: 13px; box-shadow: 0 0 0 1.5px #1d4d27; justify-self: end; }
.o-row.done .o-n::after { left: 4px; top: 1.5px; width: 3px; height: 6px; border-width: 0 2px 2px 0; }
#mission-pop .m-tabs .m-n { background: rgba(74, 42, 18, .1); color: var(--ink-soft); font-family: var(--display); }
#mission-pop .m-tabs button:not(.on) .m-n { display: none; }
#mission-pop .m-tabs button { position: relative; }
#mission-pop .m-tabs .t-dot {
  position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink-line);
  background: radial-gradient(circle at 35% 30%, #ff9a8e, #e2453a 60%, #b02a22); animation: newPulse 1.2s ease-in-out infinite;
}

/* ══ Chocadeira: o ninho é o palco (fundo na cor do ovo, raios suaves atrás, borda forte) ══ */
.inc-hero.busy, .inc-hero.ready {
  border-color: var(--rar); border-width: 3px; overflow: hidden;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--rar) 55%, #4a2a12), 0 8px 16px rgba(60, 30, 10, .16);
  background: radial-gradient(circle at 62px 52%, color-mix(in srgb, var(--rar) 30%, #fff) 0, color-mix(in srgb, var(--rar) 10%, #fff) 150px, #fff 330px);
}
.inc-hero.ready { border-color: #f2b21c; box-shadow: 0 4px 0 #b9790a, 0 0 0 4px rgba(255, 210, 70, .55); background: radial-gradient(circle at 62px 52%, #ffe79a 0, #fff6d6 170px, #fff 360px); }
.inc-hero.busy .inc-pic::before {
  content: ""; position: absolute; inset: -30px; border-radius: 50%; animation: rays 26s linear infinite; opacity: .5;
  background: repeating-conic-gradient(color-mix(in srgb, var(--rar) 45%, #fff) 0 12deg, transparent 12deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%); mask-image: radial-gradient(circle, #000 30%, transparent 68%);
}
.inc-hero.ready .inc-pic::before { inset: -30px; }
.inc-hero .inc-name { font-size: 22px; }
.inc-hero .inc-time { font-size: 20px; }
.inc-hero .inc-line .inc-meter { height: 13px; border-radius: 7px; background: rgba(74, 42, 18, .13); }
.inc-hero .inc-bank { background: #fff; }
@media (max-width: 430px) { .inc-hero .inc-name { font-size: 18.5px; } .inc-hero .inc-time { font-size: 17px; } }

/* ══ Ovo chocando v2: batidas com rachadura e luz, estouro com clarão, papel picado e a raça pulando ══ */
.hx-eggw { position: absolute; inset: 0; transform-origin: 50% 88%; animation: hxDrop .5s cubic-bezier(.3, 1.5, .5, 1) backwards; }
@keyframes hxDrop { from { translate: 0 -70px; scale: .7 1.2; opacity: 0; } 60% { scale: 1.12 .9; } }
.hx.wob .hx-egg { animation: none; }
.hx.wob .hx-eggw { animation: hxWob 1.06s ease-in-out; }
.hx.squash .hx-egg { animation: none; }
.hx.squash .hx-eggw { animation: hxSquash2 .32s ease-in forwards; }
@keyframes hxSquash2 { 0% { translate: 0 0; } 20% { translate: -2px 0; } 40% { translate: 2px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } 100% { scale: 1.16 .8; } }
.hx.burst .hx-eggw { opacity: 0; }
.hx-floor { position: absolute; left: 26%; right: 26%; bottom: 7%; height: 9%; border-radius: 50%; background: rgba(60, 30, 10, .16); }
.hx-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 68%); opacity: 0; scale: .5; transition: opacity .25s, scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.hx.k1 .hx-glow { opacity: .45; scale: .8; } .hx.k2 .hx-glow { opacity: .7; scale: 1; } .hx.k3 .hx-glow, .hx.squash .hx-glow { opacity: 1; scale: 1.2; }
.hx.burst .hx-glow { opacity: 0; scale: 1.8; transition: opacity .5s, scale .5s; }
.hx-crack { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-crack path { fill: none; stroke: #4a2a12; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .14s ease-out; filter: drop-shadow(0 0 3px var(--glow)); }
.hx.k1 .hx-crack path { stroke-dashoffset: 62; } .hx.k2 .hx-crack path { stroke-dashoffset: 30; } .hx.k3 .hx-crack path, .hx.squash .hx-crack path { stroke-dashoffset: 0; }
.hx-ring { position: absolute; inset: 24%; border-radius: 50%; border: 4px solid var(--glow); opacity: 0; pointer-events: none; }
.hx-ring.go { animation: hxRing .5s ease-out; }
@keyframes hxRing { from { opacity: .9; scale: .7; } to { opacity: 0; scale: 1.9; } }
.hx-flash { inset: -60%; background: radial-gradient(circle, #fff 30%, rgba(255, 255, 255, 0) 70%); }
.hx.burst .hx-flash { animation: hxFlash2 .55s ease-out; }
@keyframes hxFlash2 { 0% { opacity: 1; scale: .25; } 35% { opacity: .95; } 100% { opacity: 0; scale: 1.25; } }
.hx.burst .hx-rays { opacity: .8; scale: 1.12; }
.hx.burst .hx-breed {
  opacity: 1; filter: drop-shadow(0 5px 0 rgba(60, 30, 10, .3)); transform-origin: 50% 88%;
  animation: hxJump .8s .12s cubic-bezier(.3, .9, .4, 1) both, hxHappy 1.7s 1.25s ease-in-out infinite;
}
@keyframes hxJump {
  0% { scale: .1; translate: 0 26px; opacity: 0; } 12% { opacity: 1; } 46% { scale: 1.2 1.26; translate: 0 -44px; }
  72% { scale: 1.14 .86; translate: 0 0; } 86% { scale: .95 1.07; translate: 0 -6px; } 100% { scale: 1; translate: 0 0; }
}
@keyframes hxHappy { 0%, 46%, 100% { translate: 0 0; scale: 1; } 8% { scale: 1.06 .94; } 20% { translate: 0 -11px; scale: .97 1.04; } 30% { translate: 0 0; scale: 1.05 .95; } 38% { translate: 0 -5px; scale: 1; } }
.hx-chip { width: 14px; height: 11px; clip-path: polygon(0 20%, 60% 0, 100% 55%, 45% 100%); border: 0; }
.hx-twk {
  position: absolute; width: 15px; height: 15px; margin: -7px; opacity: 0; background: #fff3a8; pointer-events: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.hx.burst .hx-twk { animation: hxTwk 1.5s ease-in-out infinite; }
@keyframes hxTwk { 0%, 100% { opacity: 0; scale: .3; rotate: 0deg; } 50% { opacity: 1; scale: 1; rotate: 45deg; } }
.hx-conf {
  position: absolute; z-index: 5; top: 18px; height: 10px; border-radius: 2px; background: var(--c); pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(74, 42, 18, .25); animation: hxConf var(--t) cubic-bezier(.2, .5, .6, 1) forwards;
}
@keyframes hxConf { 0% { opacity: 1; translate: 0 -30px; rotate: 0deg; } 80% { opacity: 1; } 100% { opacity: 0; translate: var(--dx) 300px; rotate: var(--r); } }
.menu-box.hx-thump { animation: hxThump .36s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hxThump { 30% { scale: 1.045; } }
.hx-info .hat-name { transform-origin: 50% 50%; }
.hx-info.on .hat-name { animation: pvBump .4s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .hx-conf, .hx-twk, .hx-ring { display: none; } .xsign.gift .xsign-board, .xsign-lights i { animation: none; } }
/* raios da revelação na cor da luz do ovo (os da raridade "comum" ficavam cinzentos e tristes) */
.hx-rays { background: repeating-conic-gradient(color-mix(in srgb, var(--glow) 72%, var(--rar)) 0 12deg, transparent 12deg 24deg); }
.hx.burst .hx-rays { opacity: 1; }
.hx::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 55%, #fff) 0, transparent 66%); opacity: .55; }

/* antes do estouro a janela é só o ovo (sem o vazio embaixo); o texto entra junto com o clarão */
.hx-info { display: none; }
.hx-info.shown { display: flex; }
.hx { width: 196px; height: 196px; margin: 6px 0 10px; }
.reveal-box:has(.hx-info.shown) .hx { margin-bottom: 0; }

/* ══ Repasse 11 ══ */
/* Chocadeira no título: o ninho é largo e baixo, então o ícone ficava pequeno perto dos vizinhos */
[data-act="incubator"] .sq-plate .mbtn-ico { scale: 1.38; translate: 0 -1px; }
[data-act="incubator"].hatched .sq-plate .mbtn-ico { scale: 1.3; }
/* Placas: texto centrado na altura (título e plaquinha com a mesma folga em cima e embaixo) */
.xsign-txt { justify-content: center; align-self: center; gap: 4px; }
.xsign-txt b { line-height: 1; padding-top: 1px; }
.xsign-time { display: inline-flex; align-items: center; height: 20px; padding: 1px 9px 0; line-height: 1; }
/* Neve do toque na placa: fina, macia, sem contorno */
.xflake {
  margin: 0; rotate: none; border-radius: 50%; box-shadow: 0 0 5px 1px rgba(255, 255, 255, .55); background: #fff;
  animation: flakeFall2 var(--t, 1.8s) cubic-bezier(.25, .1, .6, 1) forwards; opacity: 0;
}
.xflake.star { border-radius: 0; box-shadow: none; background: #fff6c9; filter: drop-shadow(0 0 3px rgba(255, 236, 150, .9));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes flakeFall2 {
  0% { opacity: 0; scale: .3; translate: 0 0; } 14% { opacity: var(--o, 1); scale: 1; }
  50% { translate: calc(var(--dx) * -.5) calc(var(--dy) * .45); } 80% { opacity: var(--o, 1); }
  100% { opacity: 0; translate: var(--dx) var(--dy); rotate: 90deg; scale: .7; }
}
/* Cartão sem missão: só Encomendas, como título */
#mission-pop .m-tabs button[hidden] { display: none; }
#mission-pop .m-tabs.solo button.on { cursor: default; }

/* ══ Repasse 12 (revisão de arte) ══ */
/* A placa sai de cena quando uma janela abre (antes ficava cortada atrás do título da janela) */
.xsign { transition: opacity .16s; }
body:has(#menu:not([hidden])) .xsign { opacity: 0; pointer-events: none; }
/* Placas: respiro entre as palavras, plaquinha centrada sob o título */
.xsign-txt { align-items: center; }
.xsign-txt b { word-spacing: 3px; letter-spacing: .8px; }
/* Luzinhas: fio verde em arcos, lâmpadas maiores e mais vivas */
.xsign-lights { left: 14px; right: 14px; bottom: -17px; }
.xsign-lights svg { position: absolute; left: 6px; right: 6px; top: -7px; width: calc(100% - 12px); height: 11px; overflow: visible; }
.xsign-lights i { width: 10px; height: 13px; box-shadow: 0 0 10px 2px color-mix(in srgb, var(--c) 75%, transparent), inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .45); }
.xsign-lights i::before { left: 2px; top: -5px; width: 3px; height: 4px; border-radius: 1px 1px 0 0; }
.xsign-lights i:nth-child(even) { translate: none; }
.xsign-lights i:nth-child(4n+1) { --c: #ff4f43; } .xsign-lights i:nth-child(4n+2) { --c: #ffcf2e; } .xsign-lights i:nth-child(4n+3) { --c: #4fd866; } .xsign-lights i:nth-child(4n) { --c: #4fb2ff; }
@keyframes bulb { 50% { filter: brightness(.7) saturate(.85); box-shadow: 0 0 0 0 transparent, inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .45); } }
/* Placa de presente: sem a fita atrás do ícone, listras mais discretas, presente com folga da borda */
.xsign.gift .xsign-board { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 8px, transparent 8px 16px), linear-gradient(#f4695b, #cc362c); padding-left: 10px; }
.xsign.gift .xsign-ico { margin: -12px 2px -2px 0; }
/* Título com ovo chocado: ícone do tamanho dos vizinhos, anel dourado de verdade, selo com mais contraste */
[data-act="incubator"].hatched .sq-plate .mbtn-ico { scale: 2; translate: 0 -2px; }
.mbtn-sq.hatched::after { border-color: #ffc93c; box-shadow: 0 0 12px 2px rgba(255, 200, 60, .75), inset 0 0 8px rgba(255, 200, 60, .45); }
@keyframes hatchRing { 0% { opacity: 1; scale: 1; } 70% { opacity: .9; } 100% { opacity: 0; scale: 1.16; } }
.sq-new.ok { background: linear-gradient(#5fc24a, #2e8b3a); text-shadow: 0 1px 0 #17401f; top: -7px; }
/* Chocadeira: saldo de penas como plaquinha no canto da janela (libera o nome do ovo) */
.menu-box > .inc-bank, .inc-hero .inc-bank {
  position: absolute; z-index: 4; top: -13px; left: -7px; right: auto; display: flex; align-items: center; gap: 3px; padding: 2px 11px 3px 6px; border-radius: 99px;
  font-family: var(--display); font-size: 17px; line-height: 1.1; color: #7a4708; font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff8e2, #ffe9a8); border: 3px solid var(--ink-line); box-shadow: 0 3px 0 var(--ink-line);
}
.menu-box > .inc-bank .feather { width: 21px; height: 21px; }
.inc-hero .inc-name { padding-right: 0; white-space: normal; }
.inc-hero.ready .inc-sub { color: #8a5200; font-weight: 700; }
.inc-grid .hat-card b.long { font-size: .86em; white-space: nowrap; letter-spacing: -.2px; }
@media (max-width: 430px) { .menu-box > .inc-bank { font-size: 14.5px; padding: 1px 8px 2px 4px; left: -6px; } .menu-box > .inc-bank .feather { width: 18px; height: 18px; } }
/* Grade que rola: a última fileira some em degradê em vez de ser cortada seca */
@media (max-aspect-ratio: 5/4) {
  .inc-grid { padding-bottom: 26px; -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
}
/* Rachadura do ovo: traço fino com brilho por baixo */
.hx-crack path { stroke-width: 1.9; filter: none; }
.hx-crack path.l { stroke: #fffbe6; stroke-width: 4.4; opacity: .85; filter: drop-shadow(0 0 3px var(--glow)); }
.hx-crack path.b { stroke-width: 1.6; transition-delay: .08s; }
/* Cartão só com Encomendas: vira título simples, não parece aba nem campo */
#mission-pop .m-tabs.solo button.on { background: none; border-color: transparent; box-shadow: none; justify-content: flex-start; padding-left: 2px; font-size: 13.5px; }
#mission-pop .m-tabs.solo .m-n { margin-left: auto; }

/* eggHop anima "scale", então o ícone do ovo chocado cresce pelo tamanho da imagem, não por scale */
.mbtn-row [data-act="incubator"].hatched .sq-plate .mbtn-ico { width: 72px; height: 72px; margin: -13px; translate: 0 1px; }

/* ══ Repasse 13: vídeo −1h animado e segundo lote da revisão de arte ══ */
.pv-fly {
  position: absolute; z-index: 6; margin: -13px 0 0 -26px; width: 52px; text-align: center; pointer-events: none; font-style: normal;
  font-family: var(--display); font-size: 16px; line-height: 1.2; color: #4a2a12; padding: 1px 0 2px; border-radius: 99px;
  background: linear-gradient(#ffe48a, #f2a93b); border: 2.5px solid var(--ink-line); box-shadow: 0 3px 0 var(--ink-line), 0 0 14px rgba(255, 210, 90, .8);
}
.menu-box button.inc-btn.used { pointer-events: none; transition: opacity .25s, scale .25s; opacity: 0; scale: .8; }
.inc-meter { position: relative; }
.inc-meter.gain::after {
  content: ""; position: absolute; inset: 0; translate: -100% 0; animation: meterShine .75s ease-out;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .9) 50%, transparent 70%);
}
@keyframes meterShine { to { translate: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .pv-fly { display: none; } .inc-meter.gain::after { animation: none; } }

/* Encomendas: colunas fixas (contador e prêmio), para as barras terminarem no mesmo lugar */
.ord-list { gap: 11px; }
.ord-prog span { width: 66px; text-align: right; }
.ord-rew { width: 66px; align-items: stretch; gap: 2px; }
.ord-rew span { display: flex; align-items: center; justify-content: space-between; }
.ord-rew .feather, .ord-rew .coin-s { flex: none; vertical-align: 0; margin: 0; }
.ord-rew .feather { width: 18px; height: 18px; margin-left: -1px; }
.ord-row.done .ord-rew { opacity: 1; }
.ord-tier { left: -7px; top: -10px; padding: 0 7px 1px; box-shadow: 0 2px 0 var(--ink-line); }
.ord-all { padding: 8px 14px 9px 8px; gap: 9px; box-shadow: 0 3px 0 #d9a534; }
.ord-all img { width: 60px; height: 60px; margin: -8px; filter: drop-shadow(0 3px 0 rgba(60, 30, 10, .25)) drop-shadow(0 0 8px rgba(255, 255, 255, .9)); }
.ord-all .lg-pips { gap: 5px; }
.ord-all .lg-pips i { width: 17px; height: 17px; background: #fffaf0; box-shadow: inset 0 0 0 2px #c9ae6a; }
.ord-all .lg-pips i.on { box-shadow: 0 0 0 2px #a8670a, 0 0 8px rgba(255, 200, 60, .8); }
@media (max-width: 430px) { .ord-prog span, .ord-rew { width: 58px; } .ord-name { font-size: 14px; } }

/* Etiquetas de raridade: mais contraste no "Comum" e no "Lendário" */
.rar-tag { text-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.rar-tag.rar-common { background: #6b8560; }
.rar-tag.rar-legendary { background: #cf7d0c; }

/* Fundo atrás da raça (ficha e ovo aberto): raios numa cor viva da raridade, não cinza */
.rar-common { --ray: #a6dc86; } .rar-uncommon { --ray: #8cc4ff; } .rar-rare { --ray: #cfa2fa; } .rar-legendary { --ray: #ffcb52; }
.hat-hero .offer-rays { background: repeating-conic-gradient(var(--ray, var(--rar)) 0 12deg, transparent 12deg 24deg); opacity: .7; }
.hx-rays { background: repeating-conic-gradient(var(--ray, var(--glow)) 0 12deg, transparent 12deg 24deg); }
.hx.burst .hx-rays { opacity: .75; }
.hx-breed, .hat-hero img { filter: drop-shadow(0 5px 0 rgba(60, 30, 10, .3)) drop-shadow(0 0 1.5px rgba(60, 30, 10, .55)); }

/* Pausa: o ninho do tamanho dos outros ícones */
.pz-tile.pz-inc .sq-plate img { scale: 1.36; }

/* ══ Repasse 14 ══ */
/* Placa de presente: embrulho dourado (o presente vermelho destaca); plaquinha creme com texto vermelho, sem verde */
.xsign.gift .xsign-board {
  border-color: var(--ink-line);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .2) 0 8px, transparent 8px 16px), linear-gradient(#ffe08a, #f5b338);
  box-shadow: 0 5px 0 var(--ink-line), 0 12px 20px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(160, 90, 0, .18);
}
.xsign.gift .xsign-txt b { -webkit-text-stroke-color: var(--ink-line); text-shadow: 0 2px 0 var(--ink-line); }
.xsign.gift .xsign-time { background: linear-gradient(#fff, #ffeeda); color: #b5271f; text-shadow: none; border-color: var(--ink-line); box-shadow: 0 2px 0 var(--ink-line); }
/* Encomendas: bolinha cheia do bônus volta a ser dourada; coluna do prêmio um pouco mais justa */
.ord-all .lg-pips i.on { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b21c 60%, #c27a06); }
.ord-rew { width: 60px; }

/* Vídeo −1h: 2 por ovo; duas bolinhas no botão mostram quantos faltam */
.ad-left { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.ad-left i { width: 8px; height: 8px; border-radius: 50%; background: rgba(60, 30, 10, .35); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .3); transition: background .2s; }
.ad-left i.on { background: radial-gradient(circle at 35% 30%, #fff8c8, #ffd23f 60%, #d99a14); box-shadow: 0 0 0 1.5px var(--ink-line); }

/* 2º vídeo choca o ovo na hora: a plaquinha que voa diz "Chocou!" */
.pv-fly.big { width: 78px; margin-left: -39px; background: linear-gradient(#a6ea74, #55bb3f); color: #fff; text-shadow: 0 1px 0 #1d4d27; }

/* ══ Repasse 15: telas baixas (paisagem com menos de 700 px de altura) ══ */
/* A placa não cabe entre o topo e o logo: vai para o canto de cima, ao lado da engrenagem, um pouco menor */
@media (min-aspect-ratio: 5/4) and (max-height: 700px) {
  .xsign { left: 58px; translate: 0 0; scale: .84; transform-origin: 30% 0; animation-name: signInL; }
  #splash.out .xsign { translate: 0 -120%; }
}
@keyframes signInL { from { translate: 0 -120%; } }
/* Grade de raças: degradê no fim sempre que há mais para rolar (qualquer formato de tela) */
.inc-grid.scrolls { padding-bottom: 26px; -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }

/* Acertos da atualização de retorno (depois do teste no jogo) */
.menu-box button.rec-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 7px 12px 9px; font-size: 16px; }
.menu-box button.rec-link img { flex: none; width: 30px; height: 30px; margin: -5px 0; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .3)); }
#mission-pop .m-tabs[hidden] { display: none; }
.ord-note { margin: 8px 4px 0; text-align: center; color: var(--ink-soft); }
.menu-box button.inc-btn[disabled] { filter: saturate(.25); opacity: .75; cursor: default; pointer-events: none; }
.ec-unlock.ec-egg { background: linear-gradient(#fff6d6, #ffe7a0); border-color: #e7b442; }
.ec-egg .ec-unlock-ico { box-shadow: 0 2px 0 #d39a2c; }
.ec-egg .ec-unlock-txt b { color: #7a4f12; }
.ec-egg .ec-unlock-txt span { color: #a37a2c; }
/* Chocadeira aberta pela Pausa: a seta de voltar ocupa o canto do contador de penas, que desce pra borda de baixo. */
.menu-box:has(> .pv-bk) > .inc-bank { top: auto; bottom: -15px; left: 50%; translate: -50% 0; }
.pz-tile b { padding: 0 1px 2px; }
/* Selo NOVO / CHOCOU! passa da borda do botão: o botão dele fica na frente dos vizinhos (cada botão é uma camada por causa da animação de entrada). */
.mbtn-row .mbtn-sq { position: relative; }
.mbtn-row .mbtn-sq:has(.sq-new:not([hidden])) { z-index: 3; }
/* Chocadeira: compra compacta na linha da fila (misterioso 1/dia, raro 1/semana): ovo + preço, sem palavra. */
.inc-queue .q-buy { flex: none; display: flex; gap: 6px; }
.menu-box button.inc-btn.mini { flex: none; width: auto; gap: 2px; padding: 3px 9px 5px 5px; }
.menu-box .inc-btn.mini img { width: 32px; height: 32px; margin: -8px -2px -7px -3px; filter: drop-shadow(0 1px 0 rgba(40, 20, 5, .35)); }
.menu-box .inc-hero button.inc-btn.mini { flex: none; padding-left: 8px; padding-right: 14px; }
.menu-box button.inc-btn.rare { --o: #45277c; border-color: #45277c; background: linear-gradient(#c9a2ff, #8b58d6); color: #fff; }
.inc-btn .inc-done { width: 15px; height: 15px; margin: 0 2px; color: #fff; filter: drop-shadow(0 1px 0 var(--o)); }
.menu-box button.inc-btn.mini[disabled] { filter: saturate(.3); opacity: .6; }
/* Vídeo "−1h" travado (checando, adblock, sem conexão): mesmo sinal do 2× do HUD. O motivo sai no aviso, que sobe por cima da janela. */
.menu-box button.inc-btn.ad-locked { filter: grayscale(1) brightness(.95); opacity: .72; }
.inc-btn.ad-locked .tv-ico svg { display: none; }
.inc-btn.ad-locked .tv-ico::before { content: "🔒"; font-size: 11px; line-height: 1; }
.inc-btn.ad-locked .ad-left { opacity: .5; }
body:has(.inc-box) #notes { z-index: 40; }
body:has(.inc-box) #notes { position: fixed; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); align-items: center; }

/* ═══ Enquete do próximo update (src/poll.js) ═══════════════════════════════
   Aba VOTE no título (balança de vez em quando e tem um brilho pulsando): em paisagem,
   pílula no canto de baixo à esquerda e a gaveta desliza da esquerda; em pé, aba presa
   na borda de baixo, no meio, e a gaveta sobe de baixo (no meio da altura ou na
   lateral ela cobria o cartão do modo e os botões em algumas telas). Até 3 escolhas;
   votou, confete e a aba vira ✓. */
.vote-tab {
  position: absolute; z-index: 4; left: calc(14px + env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  padding: 8px 16px 8px 12px; border: 3px solid var(--ink-line); border-radius: 999px;
  background: linear-gradient(180deg, #ffe27a, #ffb52e 60%, #f08a1c); color: #fff;
  box-shadow: 0 4px 0 var(--ink-line), 0 0 0 0 rgba(255, 214, 90, .7), 0 8px 18px rgba(0, 0, 0, .35);
  cursor: pointer; transform-origin: 50% 100%;
  animation: voteIn .5s .9s both cubic-bezier(.3, 1.5, .5, 1), voteGlow 2.2s 1.6s ease-in-out infinite, voteWiggle 6s 3s ease-in-out infinite;
}
.vote-tab .vt-ico { display: flex; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.vote-tab .vt-ico svg { width: 24px; height: 24px; }
.vote-tab b {
  font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .8px; white-space: nowrap;
  -webkit-text-stroke: calc(4px * var(--sk, 1)) var(--ink-line); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink-line);
}
.vote-tab:active { scale: .94; }
.vote-tab.done { background: linear-gradient(180deg, #a6ea74, #55bb3f 60%, #3f9d30); animation: voteIn .5s .9s both cubic-bezier(.3, 1.5, .5, 1); }
#splash:not(.ready) .vote-tab, #splash.out .vote-tab { display: none; }
@keyframes voteIn { from { transform: translateY(160%); } }
@media (max-aspect-ratio: 4/5) {
  .vote-tab {
    left: 50%; bottom: 0; translate: -50% 0; padding: 8px 20px calc(9px + env(safe-area-inset-bottom));
    border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 0 rgba(0, 0, 0, .15), 0 0 0 0 rgba(255, 214, 90, .7), 0 -6px 16px rgba(0, 0, 0, .3);
  }
}
@keyframes voteGlow { 0%, 100% { box-shadow: -3px 4px 0 var(--ink-line), 0 0 0 0 rgba(255, 214, 90, .7), 0 8px 18px rgba(0, 0, 0, .35); } 50% { box-shadow: -3px 4px 0 var(--ink-line), 0 0 0 10px rgba(255, 214, 90, 0), 0 8px 18px rgba(0, 0, 0, .35); } }
@keyframes voteWiggle { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -7deg; } 94% { rotate: 5deg; } 97% { rotate: -3deg; } }

.vote-dim { position: absolute; inset: 0; z-index: 5; background: rgba(10, 16, 6, .55); opacity: 0; transition: opacity .3s; }
.vote-dim.open { opacity: 1; }
.vote-panel {
  position: absolute; z-index: 6; top: 50%; left: 10px; width: min(440px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain;
  translate: calc(-100% - 30px) -50%; transition: translate .42s cubic-bezier(.2, 1.25, .4, 1);
  padding: 16px 14px 14px; border: 3px solid var(--ink-line); border-radius: 20px; color: var(--ink);
  background: radial-gradient(circle at 50% 0, #fff6cf, var(--card) 45%, var(--card2));
  box-shadow: 0 6px 0 var(--card-edge), 0 0 0 4px rgba(255, 210, 70, .45), 0 18px 40px rgba(0, 0, 0, .5);
}
.vote-panel.open { translate: 0 -50%; }
@media (max-aspect-ratio: 4/5) {
  .vote-panel { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; translate: -50% calc(100% + 40px); max-height: calc(100% - 30px); }
  .vote-panel.open { translate: -50% 0; }
}
.vote-panel.thanks { animation: voteThanks .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes voteThanks { 30% { scale: 1.04; } }
/* O mesmo X vermelho das janelas do jogo (.pv-x), só que dentro da gaveta (ela rola). */
.vote-x {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; border: 3px solid var(--ink-line);
  background: linear-gradient(#f79283, #dc4a3c 60%, #c53a30); box-shadow: 0 3px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.vote-x svg { width: 19px; height: 19px; filter: drop-shadow(0 1.5px 0 rgba(70, 20, 10, .5)); transition: rotate .25s cubic-bezier(.3, 1.6, .5, 1); }
.vote-x:hover svg { rotate: 90deg; }
.vote-x:active { translate: 0 2px; box-shadow: 0 1px 0 var(--ink-line), inset 0 2px 0 rgba(255, 255, 255, .5); }
.vote-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 34px; }
.vote-ico { display: flex; animation: voteBob 1.6s ease-in-out infinite; }
.vote-ico svg { width: 30px; height: 30px; }
@keyframes voteBob { 50% { translate: 0 -3px; rotate: -6deg; } }
.vote-head h3 {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; color: #fff; text-align: center;
  -webkit-text-stroke: calc(5px * var(--sk, 1)) var(--ink-line); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink-line);
}
.vote-sub { margin: 6px 0 10px; text-align: center; font-weight: 700; font-size: 14px; color: #8a5a2b; }
.vote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vote-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 9px 6px 8px;
  border: 2.5px solid #c9a46c; border-radius: 14px; background: linear-gradient(#fffdf6, #f6e8c8); color: var(--ink);
  box-shadow: 0 4px 0 #b08550; cursor: pointer; font: inherit; text-align: center;
  animation: voteCardIn .4s both cubic-bezier(.3, 1.6, .5, 1); animation-delay: calc(.12s + var(--i, 0) * 45ms);
  transition: background .15s, border-color .15s, box-shadow .15s, opacity .25s, filter .25s;
}
.vote-card:not([disabled]):active { translate: 0 3px; box-shadow: 0 1px 0 #b08550; }
.vc-ico { font-size: 30px; line-height: 1.15; }
.vote-card b { font-family: var(--display); font-weight: 400; font-size: 15.5px; line-height: 1.1; color: var(--ink); }
.vote-card small { font-size: 11.5px; font-weight: 600; line-height: 1.2; color: #7a5733; }
.vc-check {
  position: absolute; top: -8px; right: -6px; width: 24px; height: 24px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 14px; color: #fff; background: #3fae4d; border: 2.5px solid var(--ink-line);
}
.vote-card.on { border-color: #3f9a55; background: linear-gradient(#e9ffe0, #bff0c8); box-shadow: 0 4px 0 #2f7d44, 0 0 0 3px rgba(95, 212, 122, .35); }
.vote-card.on .vc-check { display: flex; }
.vote-card.pick { animation: votePick .35s cubic-bezier(.3, 1.8, .5, 1); }
.vote-card.nope { animation: voteNope .3s; }
.vote-card.off { opacity: .32; filter: grayscale(.6); }
.vote-panel.done .vote-card.on { animation: votePick .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes voteCardIn { from { scale: .6; opacity: 0; } }
@keyframes votePick { 40% { scale: 1.08; } }
@keyframes voteNope { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.vote-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.vote-count {
  min-width: 46px; padding: 4px 9px; border-radius: 999px; text-align: center; font-family: var(--display); font-size: 17px;
  color: #fff; background: #8a5a2b; border: 2px solid var(--ink-line);
}
.vote-count.full { background: #3f9d30; }
.vote-count.shake { animation: voteNope .3s 2; }
.vote-send {
  flex: 1; max-width: 230px; min-height: 50px; border-radius: 14px; border: 3px solid var(--ink-line); color: #fff;
  font-family: var(--display); font-size: 21px; letter-spacing: .5px;
  background: linear-gradient(#a6ea74, #55bb3f 55%, #3f9d30); box-shadow: 0 4px 0 var(--ink-line), inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .45);
  -webkit-text-stroke: calc(4px * var(--sk, 1)) var(--ink-line); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink-line);
}
.vote-send:not([disabled]) { animation: voteGlow 2s ease-in-out infinite; }
.vote-send[disabled] { filter: grayscale(1) brightness(.95); opacity: .6; }
.vote-send:not([disabled]):active { translate: 0 3px; box-shadow: 0 1px 0 var(--ink-line); }
.vote-confetti {
  position: absolute; z-index: 2; width: 8px; height: 12px; border-radius: 2px; pointer-events: none;
  animation: voteConfetti .9s cubic-bezier(.2, .8, .4, 1) forwards;
}
@keyframes voteConfetti { to { translate: var(--dx) calc(var(--dy) + 60px); rotate: var(--r); opacity: 0; } }
@media (max-width: 380px) {
  .vote-card small { font-size: 10.5px; }
  .vote-head h3 { font-size: 20px; }
}
