/* Latte Lane styles, part 1 of 5. The parts load in order: a rule in a later part overrides the same rule in an earlier one. */
@font-face {
  font-family: 'Fredoka';
  src: url(../assets/fonts/fredoka/fredoka-latin-wght-normal.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215;
}
@font-face {
  font-family: 'Fredoka';
  src: url(../assets/fonts/fredoka/fredoka-latin-ext-wght-normal.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --ink: #3a2416;
  --cream: #fff4e3;
  --caramel: #d98a3d;
  --rose: #e98fa0;
  --sage: #9cbf8a;
  --pop: cubic-bezier(0.3, 1.6, 0.5, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
body {
  font-family: 'Baloo 2', 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif;
  color: var(--ink);
  background: #e9d6bd url(../assets/fundo-retrato.webp) center / cover no-repeat;
}
@media (min-aspect-ratio: 11/10) {
  body {
    background-image: url(../assets/fundo-paisagem.webp);
  }
}
body.at-home {
  background-image: url(../assets/home-retrato.webp);
}
@media (min-aspect-ratio: 11/10) {
  body.at-home {
    background-image: url(../assets/home-paisagem.webp);
  }
}
#cv {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
}
[hidden] {
  display: none !important;
}

.home-logo {
  width: min(86vw, 560px);
  filter: drop-shadow(0 6px 0 rgba(58, 36, 22, 0.25));
  animation: float 3.2s ease-in-out infinite;
}
.home-panda {
  width: min(46vw, 230px);
  margin-top: -1vh;
  animation: bob 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.home-level {
  margin: 0;
  font-weight: 900;
  font-size: 21px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 3px 16px;
  box-shadow: 0 3px 0 rgba(58, 36, 22, 0.5);
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes bob {
  50% {
    transform: scale(1.02, 0.98);
  }
}

.btn {
  font: inherit;
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.5px;
  background: linear-gradient(#f2a85b, #d47c2f);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 12px 40px;
  box-shadow: 0 6px 0 var(--ink);
  text-shadow: 0 2px 0 rgba(58, 36, 22, 0.6);
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.btn.big {
  font-size: 32px;
  width: min(60vw, 320px);
  padding: 12px 0;
  background: linear-gradient(#f6a447, #e8892b);
  box-shadow:
    0 7px 0 var(--ink),
    inset 0 4px 0 rgba(255, 255, 255, 0.35);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}
.btn.ghost {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  text-shadow: none;
  font-size: 17px;
  padding: 10px 24px;
  min-height: 44px;
  text-decoration: underline;
  opacity: 0.8;
}

#hud {
  position: fixed;
  left: 0;
  right: 0;
  top: max(6px, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.hud-logo {
  width: min(44vw, 210px);
  filter: drop-shadow(0 4px 0 rgba(58, 36, 22, 0.2));
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 96px 7px 9px;
  width: min(94vw, 430px);
  position: relative;
  background: linear-gradient(#fff8ec, #f7e6cc);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(58, 36, 22, 0.5);
}
.box {
  width: 62px;
  height: 60px;
  border: 3px solid #6b3f2a;
  border-radius: 14px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -4px 0 rgba(58, 36, 22, 0.08);
}
.box small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.box b {
  font-size: 27px;
  line-height: 1.05;
  font-weight: 900;
}
.box.mv {
  background: linear-gradient(#f7a99a, #ec8573);
  color: #fff;
}
.box.mv small {
  color: #fff;
}
.box.mv b {
  font-size: 31px;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.box.mv.low b {
  color: #fff3c4;
  animation: beat 0.8s ease-in-out infinite;
}
@keyframes beat {
  50% {
    transform: scale(1.12);
  }
}
.goals {
  flex: 1;
  justify-content: space-evenly;
  display: flex;
  gap: 6px;
  padding-left: 8px;
  border-left: 3px solid rgba(58, 36, 22, 0.18);
}
.goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  background: #fffdf8;
  border: 2.5px solid #6b3f2a;
  border-radius: 12px;
  padding: 2px 4px 3px;
  cursor: pointer;
}
.goal img {
  width: 38px;
  height: 38px;
}
.goal span {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}
.goal.done span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6bb84f;
  color: #fff;
  border: 2.5px solid var(--ink);
  font-size: 13px;
}
.goal.hit img {
  animation: hit 0.28s var(--pop);
}
@keyframes hit {
  40% {
    transform: scale(1.3);
  }
}
.panda {
  position: absolute;
  right: -16px;
  bottom: -6px;
  width: 112px;
  height: 112px;
  object-fit: contain;
  transform-origin: 50% 100%;
  z-index: 2;
}
.panda.react {
  animation: react 0.42s var(--pop);
}
@keyframes react {
  30% {
    transform: scale(1.08, 0.93);
  }
  60% {
    transform: scale(0.97, 1.04) translateY(-4px);
  }
}
.round {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  z-index: 3;
}

.frente {
  position: fixed;
  bottom: -2%;
  pointer-events: none;
}
#frente-mesa {
  left: -6%;
  width: min(48vw, 360px);
}
#frente-cadeira {
  right: -4%;
  width: min(32vw, 240px);
}
#boosters {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 22px;
}
.boost {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  cursor: pointer;
  padding: 0;
  background: radial-gradient(circle at 50% 40%, #fffdf6, #f3dfc0);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.1s;
}
.boost img {
  width: 62px;
  height: 62px;
}
.boost i {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #6bb84f;
  color: #fff;
  border: 3px solid var(--ink);
  font-style: normal;
  font-weight: 900;
  font-size: 15px;
  line-height: 22px;
}
.boost:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}
.boost.armed {
  animation: armedUp 1s ease-in-out infinite;
  background: radial-gradient(circle at 50% 40%, #fff7d8, #ffd77a);
}
.boost.empty {
  filter: grayscale(0.8);
  opacity: 0.6;
}
@keyframes armedUp {
  50% {
    transform: translateY(-5px);
  }
}
#tip {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  top: calc(var(--tipy, 70vh));
  margin: 0;
  background: #fff3e0;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 rgba(58, 36, 22, 0.5);
  z-index: 4;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.boost i.price {
  background: #f5c33b;
  color: var(--ink);
  width: auto;
  padding: 0 6px;
}
.boost u {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
  background: #fff3e0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 8px;
  line-height: 18px;
}
.boost.armed::after {
  content: '\2715';
  position: absolute;
  top: -18px;
  left: 50%;
  margin-left: -22px;
  width: 44px;
  height: 44px;
  line-height: 38px !important;
  line-height: 28px !important;
  font-size: 16px !important;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  font-size: 13px;
  line-height: 20px;
  font-weight: 900;
  color: var(--ink);
}
.box.mv.bump b {
  animation: bump 0.32s var(--pop);
}
@keyframes bump {
  40% {
    transform: scale(1.25);
  }
}

#intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  padding-top: var(--introtop, 0px);
}
#intro.out .intro-card {
  animation: introOut 0.26s ease-in both;
}
@keyframes introOut {
  to {
    transform: translateY(-30px) scale(0.9);
    opacity: 0;
  }
}
.intro-card i {
  display: block;
  max-width: 250px;
  margin: 8px auto 0;
  font-style: normal;
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  background: #ffe2c6;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 5px 9px;
}
.intro-card u {
  display: block;
  width: 100%;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--caramel);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px;
  margin-top: 10px;
}
.intro-card {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 7px 0 rgba(58, 36, 22, 0.6);
  padding: 14px 30px 16px;
  text-align: center;
  animation: introIn 0.45s var(--pop) both;
}
.intro-card small {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--caramel);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.intro-card p {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.intro-card p img {
  width: 46px;
  height: 46px;
}
.intro-card em {
  display: block;
  font-style: normal;
  font-weight: 800;
  margin-top: 6px;
  opacity: 0.8;
}
@keyframes introIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}

.cafe-box {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.cafe-box canvas {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  animation: warm 1.4s 0.5s ease-out both;
}
@keyframes warm {
  from {
    filter: sepia(0.8) saturate(0.5) brightness(0.9);
  }
  to {
    filter: saturate(0.78) brightness(1.04);
  }
}
.cafe-box span {
  position: static;
  display: block;
  border-width: 0;
  border-top: 2.5px solid var(--ink);
  border-radius: 0;
  margin: 0;
  background: #fff3e0;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  font-weight: 900;
  font-size: 16px;
  padding: 2px 6px;
  text-align: center;
}
#panel-text {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.earn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
  font-size: 20px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px 2px 4px;
}
.earn img {
  width: 30px;
  height: 30px;
}
.need {
  width: 100%;
  font-weight: 800;
}
.earn.ok {
  background: #e3f3d6;
}
.why {
  width: 100%;
  font-weight: 800;
  font-size: 15px;
}
.why b {
  color: #b5651d;
}
.cafe-bar {
  width: 100%;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 calc(100% / 7 - 2px),
    rgba(58, 36, 22, 0.35) calc(100% / 7 - 2px) calc(100% / 7)
  );
  background: #ead3b5;
  border-top: 2px solid var(--ink);
}
.cafe-bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8fcf6c, #6bb84f);
  transition: width 0.8s 0.6s var(--out);
}
.panda.hop {
  animation: hop 0.5s var(--pop) 2;
}
@keyframes hop {
  40% {
    transform: translateY(-14px) scale(0.96, 1.04);
  }
}
.panda {
  animation: sway 3.6s ease-in-out infinite;
}
@keyframes sway {
  50% {
    transform: rotate(2deg) translateX(2px);
  }
}
.panda.react {
  animation: react 0.42s var(--pop);
}
.btn.more {
  background: linear-gradient(#b5cf98, #8eb172);
  color: #fff;
  text-shadow: 0 2px 0 rgba(58, 36, 22, 0.5);
  font-size: 18px;
  animation: nudge 1.2s 1s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  box-shadow: 0 4px 0 var(--ink);
}
.btn.more em {
  font-style: normal;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.btn.more small {
  font-size: 12px;
  opacity: 0.9;
}
#panel-btn {
  animation: nudge 1s 1.6s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: scale(1.04);
  }
}
.btn.more span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0 8px 0 2px;
}
.btn.more img {
  width: 24px;
  height: 24px;
}
.btn:disabled {
  filter: grayscale(0.8);
  opacity: 0.65;
  animation: none;
}
.wallet {
  position: absolute;
  top: 10px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 900;
  margin: 0;
}
.wallet img {
  width: 24px;
}
.card {
  position: relative;
}

@media (min-aspect-ratio: 11/10) {
  .hud-logo {
    width: 150px;
  }
  #frente-mesa {
    width: min(30vw, 440px);
    left: 2vw;
  }
  #frente-cadeira {
    width: min(20vw, 300px);
    right: 3vw;
  }
}

#panel {
  background: rgba(60, 30, 15, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.modal .panda {
  visibility: hidden;
}
.card {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(58, 36, 22, 0.6);
  padding: 18px 26px 22px;
  width: min(88vw, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: card 0.26s var(--out);
}
@keyframes card {
  from {
    transform: translateY(24px) scale(0.92);
    opacity: 0;
  }
}
#panel-panda {
  width: 104px;
  margin-top: -46px;
  margin-bottom: -14px;
}
#panel {
  padding-top: 40px;
}
.card h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  color: #ffd98a;
  -webkit-text-stroke: 4.5px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.5px;
}
.card p {
  margin: 0;
  font-weight: 700;
  text-align: center;
}
.stars {
  display: flex;
  gap: 6px;
}
.stars i {
  width: 44px;
  height: 44px;
  background: #d9c8b2;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}
.stars i.on {
  background: #f5c33b;
  animation: star 0.42s var(--pop) both;
  filter: drop-shadow(0 0 0 #fff);
}
.stars i.on:nth-child(2) {
  animation-name: star2;
}
.stars i:nth-child(2).on {
  --y: -8px;
}
.stars i:nth-child(3).on {
  animation-name: star3;
}
@keyframes star3 {
  0% {
    transform: scale(0);
  }
  45% {
    transform: scale(1.5);
    filter: drop-shadow(0 0 16px #ffe08a);
  }
  70% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes star2 {
  0% {
    transform: translateY(-8px) scale(0);
  }
  55% {
    transform: translateY(-8px) scale(1.35);
    filter: drop-shadow(0 0 14px #ffe08a);
  }
  100% {
    transform: translateY(-8px) scale(1);
  }
}
.stars i:nth-child(2) {
  transform: translateY(-8px);
}
@keyframes star {
  0% {
    transform: scale(0) rotate(-20deg);
  }
  55% {
    transform: scale(1.35);
    filter: drop-shadow(0 0 14px #ffe08a);
  }
  100% {
    transform: scale(1);
  }
}

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

.topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: max(10px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 6;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.coin-pill,
.cafe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 3px solid #6b3f2a;
  border-radius: 999px;
  padding: 2px 14px 2px 4px;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 3px 0 rgba(58, 36, 22, 0.45);
}
.coin-pill img {
  width: 34px;
  height: 34px;
}
.cafe-pill {
  font-size: 17px;
  padding-left: 6px;
}
.cafe-pill img {
  width: 40px;
  height: 40px;
  margin: -6px 0;
}
.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.icon-btn img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 0 rgba(58, 36, 22, 0.4));
}
.icon-btn:active {
  transform: translateY(2px);
}
.pause-btn {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  z-index: 3;
  width: 46px;
  height: 46px;
}
.home-panda {
  width: min(62vw, 300px);
}
.home-logo {
  width: min(90vw, 520px);
}

.map {
  justify-content: flex-start;
  background: url(../assets/mapa-retrato.webp) center / cover no-repeat;
}
@media (min-aspect-ratio: 11/10) {
  .map {
    background-image: url(../assets/mapa-paisagem.webp);
  }
}
.path {
  position: absolute;
  inset: 70px 0 120px;
}
.node {
  position: absolute;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  border: 0;
  padding: 0;
  background: center / contain no-repeat;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
}
.node.done {
  background-image: url(../assets/ui-nivel.webp);
}
.node.cur {
  background-image: url(../assets/ui-nivel-atual.webp);
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  font-size: 34px;
  animation: nodePulse 1.4s ease-in-out infinite;
}
.node.lock {
  background-image: url(../assets/ui-cadeado.webp);
  color: transparent;
  cursor: default;
}
.node em {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 15px;
  letter-spacing: -1px;
  color: #f5c33b;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  white-space: nowrap;
}
@keyframes nodePulse {
  50% {
    transform: scale(1.06);
  }
}
.map-panda {
  position: absolute;
  width: 96px;
  margin: -96px 0 0 -110px;
  pointer-events: none;
  animation: bob 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.map-play {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
}

.ribbon {
  background: url(../assets/ui-fita.webp) center / 100% 100% no-repeat;
  min-width: 250px;
  padding: 14px 44px 20px;
  margin: 0;
  text-align: center;
  color: #fff !important;
  -webkit-text-stroke: 4px var(--ink) !important;
  paint-order: stroke fill;
  font-size: 32px !important;
  line-height: 1;
}
.card .ribbon {
  margin-top: -6px;
}
.stars {
  background: radial-gradient(closest-side, rgba(255, 214, 110, 0.55), transparent);
  padding: 6px 18px;
}
.stars i {
  width: 52px;
  height: 52px;
}
.cafe-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  overflow: visible;
  background: #fff7ea;
  border-radius: 14px;
  padding: 6px;
  box-shadow: inset 0 0 0 2.5px #e2c8a6;
}
.cafe-box canvas {
  width: 46%;
  border: 3px solid var(--ink);
  border-radius: 10px;
  aspect-ratio: 16 / 10;
}
.cafe-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cafe-side span {
  position: static !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 15px !important;
}
.cafe-bar {
  height: 16px !important;
  border: 2.5px solid var(--ink) !important;
  border-radius: 999px;
  overflow: hidden;
  background: #ead3b5;
}
.cafe-bar.big {
  height: 22px !important;
  width: 100%;
}
#panel-panda {
  position: relative;
  z-index: 1;
}
.card.lose #panel-panda {
  background: radial-gradient(circle, #ffe7c4 55%, transparent 56%);
  border-radius: 50%;
  padding: 6px;
  width: 128px;
}
.card.lose .earn {
  flex-direction: column;
  padding: 6px 16px;
  border-radius: 14px;
  font-size: 22px;
}
.card.lose .earn img {
  width: 44px;
  height: 44px;
}
.btn.more {
  position: relative;
  padding-left: 58px;
}
.more-ico {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%) rotate(-12deg);
}

.cafe-screen {
  background: rgba(60, 30, 15, 0.35);
  gap: 14px;
  padding: 20px 12px;
}
.big-ribbon {
  font-size: 34px !important;
  min-width: min(86vw, 380px);
}
.cafe-frame {
  width: min(94vw, 560px);
  border: 4px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(58, 36, 22, 0.5);
}
.cafe-frame canvas {
  width: 100%;
  display: block;
}
.cafe-foot {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: min(94vw, 560px);
}
.cafe-panda {
  width: 120px;
  margin-top: -60px;
}
.cafe-prog {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 20px;
}
.cafe-prog img {
  width: 44px;
}
.cafe-prog > div {
  flex: 1;
}

#pause {
  background: rgba(60, 30, 15, 0.4);
  z-index: 8;
}
#pause .card {
  gap: 8px;
}
.pause-panda {
  width: 110px;
  margin-top: -70px;
  margin-bottom: -16px;
  position: relative;
  z-index: 1;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 2.5px solid #e2c8a6;
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}
.opt span {
  width: 24px;
  text-align: center;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt i {
  margin-left: auto;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #cdbfae;
  border: 2.5px solid var(--ink);
  position: relative;
  transition: background 0.15s;
}
.opt i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  transition: transform 0.15s var(--pop);
}
.opt input:checked + i {
  background: #7cc15b;
}
.opt input:checked + i::after {
  transform: translateX(21px);
}
#pause-resume {
  margin-top: 6px;
}

.btn.big {
  font-size: 46px;
  width: min(66vw, 340px);
  padding: 14px 0 18px;
  border-radius: 999px;
}
.home-level {
  font-size: 24px;
  padding: 4px 26px;
}
.home-panda {
  width: min(66vw, 320px);
}
.ribbon {
  white-space: nowrap;
  font-size: 30px !important;
  min-width: 270px;
}
.card {
  width: min(92vw, 380px);
}
.stars i {
  width: 60px;
  height: 60px;
}
.earn {
  font-size: 22px;
  padding: 4px 14px 4px 6px;
  border-radius: 14px;
}
.earn img {
  width: 38px;
  height: 38px;
}
.cafe-side span {
  font-size: 17px !important;
  font-weight: 900;
}
#panel-btn,
#pause-resume {
  font-size: 28px;
  padding: 10px 52px;
  border-radius: 999px;
}
.card.lose #panel-panda {
  width: 150px;
}
.btn.more {
  font-size: 22px;
  padding: 10px 26px 10px 66px;
  border-radius: 999px;
}
.more-ico {
  width: 54px;
  height: 54px;
}

/* botões com brilho em cima e lábio escuro embaixo, texto com contorno */
.btn {
  box-shadow:
    0 6px 0 #7a3f17,
    inset 0 4px 0 rgba(255, 255, 255, 0.45),
    inset 0 -5px 0 rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: 1.5px rgba(58, 36, 22, 0.85);
  paint-order: stroke fill;
}
.btn.ghost {
  -webkit-text-stroke: 0;
}
.btn.big {
  position: relative;
}
.btn.big::before,
.btn.big::after {
  content: '\2726';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd36b;
  font-size: 26px;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 6px rgba(255, 211, 107, 0.8);
}
.btn.big::before {
  left: -34px;
}
.btn.big::after {
  right: -34px;
}
#pause-quit {
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(58, 36, 22, 0.5);
  font-size: 18px;
  padding: 8px 30px;
  opacity: 1;
}
.coin-pill {
  font-size: 22px;
  padding: 3px 18px 3px 4px;
}
.coin-pill img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.9));
}
.gear {
  border-radius: 50%;
  background: linear-gradient(#f6a447, #e8892b);
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 rgba(58, 36, 22, 0.5);
  padding: 5px;
}
.gear img {
  filter: none;
}

.boost {
  width: 84px;
  height: 84px;
}
.boost img {
  width: 68px;
  height: 68px;
}
.boost u {
  display: none;
}

/* painéis: mascote grande com brilho, raios nas estrelas, moedas em pilha, confete */
#panel-panda {
  width: 150px;
  margin-top: -84px;
  filter: drop-shadow(0 0 18px rgba(255, 214, 110, 0.85));
}
.card.lose #panel-panda {
  width: 160px;
  filter: none;
}
.stars {
  position: relative;
  padding: 10px 26px;
}
.stars::before {
  content: '';
  position: absolute;
  inset: -30px -10px;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 110, 0.45) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent);
  mask: radial-gradient(closest-side, #000 40%, transparent);
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stars i {
  width: 70px;
  height: 70px;
}
.earn.coin img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(6px -3px 0 #f5c33b) drop-shadow(5px -2px 0 #3a2416);
}
.confetti {
  position: absolute;
  top: -10px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: fall 1.8s ease-in forwards;
}
@keyframes fall {
  from {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  to {
    transform: translateY(520px) rotate(540deg);
    opacity: 0;
  }
}
.card {
  overflow: visible;
}

/* café reformado em tela cheia */
.cafe-screen {
  background: #2b1a10;
  padding: 0;
  justify-content: flex-start;
}
.cafe-frame {
  position: fixed;
  inset: 0;
  width: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cafe-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#cafe-title {
  position: relative;
  z-index: 1;
  margin-top: max(70px, calc(env(safe-area-inset-top) + 60px));
  background-image: none;
  background: linear-gradient(#ffd774, #f0a93b);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(58, 36, 22, 0.6);
  padding: 10px 26px;
}
.cafe-foot {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 96px);
  z-index: 1;
}
.cafe-panda {
  width: 130px;
  margin: 0 -10px 0 0;
}
#cafe-go {
  position: fixed;
  z-index: 1;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
}

/* mapa: estrada desenhada ligando as fases */
.path svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.node {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  font-size: 26px;
}
.node.cur {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
}
.node.lock {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
}
.node em {
  bottom: -18px;
  font-size: 15px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 5px;
  -webkit-text-stroke: 0;
  color: #e8a516;
  letter-spacing: 0;
}
.map-panda {
  width: 112px;
  margin: -112px 0 0 -128px;
}
.map-play {
  font-size: 40px !important;
  width: min(56vw, 260px) !important;
}

@media (min-aspect-ratio: 11/10) {
  body.at-home {
    background-image: url(../assets/fundo-paisagem.webp);
  }
  #home {
    inset: 4vh auto 4vh 50%;
    width: min(48vh, 440px);
    transform: translateX(-50%);
    border: 5px solid var(--ink);
    border-radius: 30px;
    box-shadow: 0 10px 0 rgba(58, 36, 22, 0.5);
    background: url(../assets/home-retrato.webp) center / cover;
    padding: 3vh 0;
  }
  #home .home-logo {
    width: 88%;
  }
  #home .home-panda {
    width: 64%;
  }
  #home .btn.big {
    width: 70%;
    font-size: 36px;
  }
  .card {
    zoom: 1.25;
  }
  .map {
    left: 50%;
    right: auto;
    width: min(56vh, 520px);
    transform: translateX(-50%);
    border-left: 5px solid var(--ink);
    border-right: 5px solid var(--ink);
  }
}

/* dica no alto, longe do botão de pausa */
#tip {
  top: calc(max(10px, env(safe-area-inset-top)) + 54px) !important;
  max-width: 86vw;
  white-space: normal;
  text-align: center;
}
.map .map-play {
  position: absolute;
}
.map-panda {
  width: 124px;
  margin: -118px 0 0 -136px;
}
.cafe-screen {
  background: url(../assets/fundo-retrato.webp) center / cover;
}
.cafe-frame {
  inset: auto;
  left: 50%;
  top: calc(max(70px, env(safe-area-inset-top) + 60px) + 30px);
  transform: translateX(-50%);
  width: min(94vw, 560px);
  border: 5px solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 8px 0 rgba(58, 36, 22, 0.5);
  overflow: hidden;
}
.cafe-frame canvas {
  height: auto;
}
#cafe-title {
  z-index: 2;
}
.cafe-foot {
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 100px);
}
.cafe-panda {
  width: 168px;
  margin: 0 -26px 0 -8px;
  position: relative;
  z-index: 2;
}
.cafe-foot {
  align-items: flex-end;
}
#cafe-go {
  font-size: 34px !important;
  width: min(58vw, 260px) !important;
}
#cafe-title {
  font-size: 30px !important;
}

/* botões laranja→amarelo com faixa de brilho e contorno creme por fora */
.btn {
  background: linear-gradient(#ffc457, #f39a2e 55%, #e8802a);
  box-shadow:
    0 0 0 3px #fff3e0,
    0 0 0 6px var(--ink),
    0 8px 0 3px #7a3f17,
    inset 0 5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -5px 0 rgba(0, 0, 0, 0.12);
  border: 0;
}
.btn.ghost,
#pause-quit {
  box-shadow: 0 4px 0 rgba(58, 36, 22, 0.5);
}
.btn.ghost {
  box-shadow: none;
}
.btn.more {
  background: linear-gradient(#c9e6a1, #8fc56a);
  box-shadow:
    0 0 0 3px #fff3e0,
    0 0 0 6px var(--ink),
    0 7px 0 3px #4d7a32,
    inset 0 5px 0 rgba(255, 255, 255, 0.5);
}
.btn.more em {
  font-size: 22px;
  white-space: nowrap;
}
#cafe-go::before,
#cafe-go::after {
  content: '\1F33F';
  font-size: 30px;
  color: initial;
  text-shadow: none;
}
#cafe-go::before {
  left: -44px;
  transform: translateY(-50%) scaleX(-1);
}
#cafe-go::after {
  right: -44px;
}

/* tela inicial: mascote em pé acenando, mais baixa, perto do Play */
.home-panda {
  margin-top: 30px;
  margin-bottom: -18px;
}

.box.lv {
  position: relative;
}
.box.lv::before,
.box.lv::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 8px;
  height: 14px;
  border-radius: 4px;
  background: #f5c33b;
  border: 2.5px solid #6b3f2a;
}
.box.lv::before {
  left: 14px;
}
.box.lv::after {
  right: 14px;
}
.box {
  height: 66px;
}
.box b {
  font-size: 30px;
}
.box.mv b {
  font-size: 33px;
}
.goal img {
  width: 44px;
  height: 44px;
}

/* vitória: explosão dourada atrás da mascote */
.card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -120px;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  z-index: 0;
  pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 214, 110, 0.55) 0 9deg, transparent 9deg 24deg);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent);
  mask: radial-gradient(closest-side, #000 25%, transparent);
  animation: spin 14s linear infinite;
}
.card.lose::before,
#pause .card::before {
  display: none;
}
.card > * {
  position: relative;
  z-index: 1;
}
.confetti {
  position: absolute !important;
}

/* fita dourada grande no café reformado */
.ribbon.gold {
  position: relative;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 16px 54px 22px !important;
  min-width: min(92vw, 400px);
  font-size: 32px !important;
}
.ribbon.gold::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../assets/ui-fita.webp) center / 100% 100% no-repeat;
  filter: hue-rotate(38deg) saturate(1.6) brightness(1.08);
}

/* pausa: mascote 1,5x sobre a fita */
.pause-panda {
  width: 150px;
  margin-top: -96px;
  margin-bottom: -22px;
}
#pause .card {
  padding-bottom: 14px;
}

/* chantilly da meta com mais contraste */
.goal img[src^='data:'] {
  filter: drop-shadow(0 0 0 #6b3f2a) contrast(1.15);
}

/* computador: moldura 20% maior; HUD 1,3x; painel cabe na tela */
@media (min-aspect-ratio: 11/10) {
  #home {
    width: min(58vh, 520px);
  }
  body.at-home .topbar {
    left: 50%;
    right: auto;
    width: min(58vh, 520px);
    transform: translateX(-50%);
    top: calc(4vh + 14px);
  }
  .card {
    zoom: 1;
    max-height: 94vh;
  }
  #hud {
    zoom: 1.2;
  }
}
@media (min-aspect-ratio: 11/10) and (min-height: 900px) {
  .card {
    zoom: 1.2;
  }
}
.card > .wallet {
  position: absolute;
  top: 10px;
  right: 14px;
}
@media (min-aspect-ratio: 11/10) {
  #home {
    padding-top: 7vh;
  }
}

.stars i {
  clip-path: none !important;
  background: url(../assets/ui-estrela.webp) center / contain no-repeat !important;
  filter: grayscale(1) brightness(1.15) opacity(0.45);
  width: 64px !important;
  height: 64px !important;
}
.stars i.on {
  filter: drop-shadow(0 0 10px rgba(255, 214, 110, 0.9));
}
.stars i:nth-child(2) {
  width: 78px !important;
  height: 78px !important;
}
.why {
  font-size: 16px;
}
#panel {
  background: rgba(60, 30, 15, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.goal {
  background: none;
  border: 0;
  padding: 0;
  min-width: 52px;
}
.goal img {
  width: 46px;
  height: 46px;
}
.goal span {
  font-size: 18px;
}
/* mapa: logo no alto, Play com bandeja creme */
.map-logo {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top)) + 52px);
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  z-index: 1;
  filter: drop-shadow(0 4px 0 rgba(58, 36, 22, 0.25));
}
.path {
  inset: 150px 0 120px;
}
.node.done {
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
}
.node em {
  font-size: 18px;
}
.map::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 104px;
  background: linear-gradient(rgba(255, 243, 220, 0), rgba(255, 243, 220, 0.92) 40%);
  border-top: 0;
  pointer-events: none;
}
.map-play {
  z-index: 1;
  width: min(56vw, 220px) !important;
  height: 72px;
  padding: 0 !important;
}
/* início: Play mais alto */
#play {
  padding: 18px 0 22px !important;
}
/* telas baixas (computador 720 px): painel cabe sem cortar a mascote */
@media (max-height: 780px) and (min-aspect-ratio: 11/10) {
  #panel {
    padding-top: 70px;
  }
  #panel-panda {
    width: 112px;
    margin-top: -64px;
  }
  .stars i {
    width: 52px !important;
    height: 52px !important;
  }
  .stars i:nth-child(2) {
    width: 62px !important;
    height: 62px !important;
  }
  .card {
    gap: 6px;
    padding: 12px 22px 14px;
  }
  .cafe-box canvas {
    width: 38%;
  }
  #hud {
    zoom: 1;
  }
  .hud-logo {
    width: 120px;
  }
}
.btn.big {
  background: linear-gradient(#ffb340, #f28a1d 55%, #d96e14) !important;
}
.node.cur {
  width: 124px !important;
  height: 124px !important;
  margin: -62px 0 0 -62px !important;
  font-size: 34px;
}
.map-panda {
  margin: -120px 0 0 -170px;
}

.stars::before {
  display: none;
} /* raios cortados nas estrelas (bug) */
.card::before {
  top: -150px;
  width: 340px;
  height: 340px;
  margin-left: -170px;
}
/* painéis abaixo da barra: mascote não encosta no HUD */
#panel,
#pause {
  justify-content: flex-start;
  padding-top: calc(var(--panel-top, 200px));
  overflow-y: auto;
}
.card.lose #panel-panda {
  background: none;
  padding: 0;
  width: 150px;
}

.panda {
  right: -26px;
  bottom: 4px;
  width: 118px;
  height: 118px;
}
/* ninhos do mapa com borda grossa; atual com brilho */
.node.done,
.node.lock {
  filter: drop-shadow(0 0 0 #3a2416) drop-shadow(0 3px 0 rgba(58, 36, 22, 0.45));
}
.node.cur {
  filter: drop-shadow(0 0 14px rgba(255, 214, 110, 0.95));
}
/* +5 jogadas: legenda maior e mais escura */
.btn.more small {
  font-size: 13px;
  opacity: 1;
}
/* computador: moedas e engrenagem fora do logo */
@media (min-aspect-ratio: 11/10) {
  #home {
    padding-top: 12vh;
  }
  .ribbon {
    font-size: 38px !important;
  }
}
.btn {
  background: linear-gradient(#ffb340, #f28a1d 55%, #d96e14);
}
.btn.ghost {
  background: none;
}
#pause-quit {
  background: var(--cream);
}

@keyframes star {
  0% {
    transform: scale(0) rotate(-20deg);
  }
  55% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes star2 {
  0% {
    transform: translateY(-8px) scale(0);
  }
  55% {
    transform: translateY(-8px) scale(1.35);
  }
  100% {
    transform: translateY(-8px) scale(1);
  }
}
@keyframes star3 {
  0% {
    transform: scale(0);
  }
  45% {
    transform: scale(1.5);
  }
  70% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.card::before {
  background: repeating-conic-gradient(rgba(255, 206, 90, 0.75) 0 9deg, transparent 9deg 24deg);
}
.goal.done span {
  width: auto;
  padding: 0 6px;
  border-radius: 999px;
}
/* mapa: halo e brilhos na fase atual, mascote de pé ao lado, estrelas maiores */
.node.cur::after {
  content: '\2726  \2726';
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  color: #ffd36b;
  font-size: 22px;
  letter-spacing: 40px;
  text-shadow: 0 0 6px #fff3b0;
  animation: twinkle 1.2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes twinkle {
  50% {
    opacity: 0.35;
  }
}
.map-panda {
  margin: -112px 0 0 -178px;
  filter: drop-shadow(0 8px 4px rgba(58, 36, 22, 0.25));
}
.node em {
  font-size: 20px;
}
/* computador: moldura 15% maior, nível dentro dela; painel cabe na tela */
@media (min-aspect-ratio: 11/10) {
  #home {
    width: min(64vh, 580px);
    inset: 3vh auto 3vh 50%;
    padding: 9vh 0 3vh;
    justify-content: center;
    gap: 1.5vh;
  }
  #home .home-logo {
    width: 74%;
  }
  #home .home-panda {
    width: 46%;
    margin-top: 0;
  }
  body.at-home .topbar {
    width: min(64vh, 580px);
    top: calc(3vh + 14px);
  }
  .card {
    zoom: 0.88;
  }
}
/* café: moldura clara */
.cafe-frame {
  border-color: #fff3e0;
  box-shadow:
    0 0 0 4px var(--ink),
    0 10px 0 4px rgba(58, 36, 22, 0.5);
}

/* mapa: mascote de pé ao lado da fase atual, pulinho; sombra no chão; estrelas encostadas na moeda */
.map-panda {
  width: 118px;
  margin: -96px 0 0 -150px;
  animation: hop 1.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 3px rgba(58, 36, 22, 0.28));
}
@keyframes hop {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-9px);
  }
}
.node em {
  bottom: -10px;
  font-size: 16px;
}
.node.cur {
  filter: drop-shadow(0 0 18px rgba(255, 226, 122, 1)) drop-shadow(0 0 4px #fff3b0);
}
/* início: sombra no chão sob a mascote */
.home-panda {
  filter: drop-shadow(0 14px 4px rgba(58, 36, 22, 0.28));
}
/* computador: painel largo com mascote grande, abaixo do HUD */
@media (min-aspect-ratio: 11/10) {
  .card {
    width: 430px;
  }
  #panel-panda {
    width: 170px !important;
    margin-top: -112px !important;
  }
  .card.lose #panel-panda {
    width: 170px !important;
  }
}
@media (min-aspect-ratio: 11/10) and (max-height: 820px) {
  .card {
    zoom: 0.8 !important;
  }
}

body:not(.at-map):not(.at-home) #tip {
  top: var(--tipy) !important;
  white-space: nowrap;
  max-width: none;
  font-size: 15px;
  padding: 5px 16px;
  border-radius: 999px;
}
/* pausa: ícones marrons lisos */
.opt span {
  filter: grayscale(1) sepia(1) saturate(2.5) brightness(0.5);
  font-size: 20px;
}
/* sem jogadas: metas em creme quente */
.card.lose .earn {
  background: #fff1d6;
  border-color: #e8c9a0;
}

@media (max-aspect-ratio: 10/18) {
  .hud-logo {
    margin-bottom: 38px;
  }
}

.card .ribbon {
  font-size: 37px !important;
  min-width: 300px;
  padding: 16px 50px 22px;
  margin-left: -24px;
  margin-right: -24px;
}
.btn.more .more-ico {
  width: 58px !important;
  height: 58px !important;
  left: 6px !important;
}
.btn.more {
  font-size: 24px !important;
  padding-left: 74px !important;
}
.btn.more {
  color: var(--ink) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  -webkit-text-stroke: 0 !important;
}

.map {
  background: url(../assets/mapa-vila.webp) center / cover no-repeat !important;
}
.map::after {
  display: none !important;
}
.map .path {
  position: absolute;
  inset: 0 !important;
}
.map .map-logo {
  top: 0.6% !important;
  left: 50% !important;
  width: 40% !important;
  transform: translateX(-50%) !important;
}
.mp-gear,
.mp-gift {
  position: absolute;
  top: 1.7%;
  width: 11.5%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
}
.mp-gear {
  left: 2.7%;
}
.mp-gift {
  left: 85.9%;
}
.mp-gear img,
.mp-gift img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(58, 36, 22, 0.35));
}
.mp-gift i {
  position: absolute;
  right: -8%;
  top: -10%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8574f;
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  display: grid;
  place-items: center;
}
.mp-bar {
  position: absolute !important;
  left: 10.6%;
  top: 12.1%;
  width: 78.6% !important;
  height: 9.7%;
  padding: 0 3% 0 2.4% !important;
  gap: 2% !important;
  z-index: 1;
  box-sizing: border-box;
}
.mp-bar .box {
  width: 20%;
  height: 80%;
}
.mp-bar .box small {
  font-size: min(1.5vh, 13px);
}
.mp-bar .box b {
  font-size: min(3.6vh, 32px);
}
.mp-bar .goals {
  border-left: 3px solid #6b3f2a;
  padding-left: 2%;
  height: 70%;
  align-items: center;
}
.mp-bar .goal img {
  width: min(5vh, 46px);
  height: min(5vh, 46px);
}
.mp-bar .goal span {
  font-size: min(2.3vh, 20px);
}
.mp-cafe {
  position: absolute;
  left: 30.3%;
  top: 24%;
  width: 39.3%;
  height: 6.7%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4%;
  padding-right: 9%;
  box-sizing: border-box;
  background: linear-gradient(#fff8ec, #f7e6cc);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(58, 36, 22, 0.4);
  font-weight: 900;
  font-size: min(2.8vh, 25px);
  color: var(--ink);
  z-index: 1;
}
.mp-cafe b {
  font-weight: 900;
}
.mp-cafe img {
  position: absolute;
  left: 8%;
  top: -24%;
  width: 34%;
}
.mnode {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1.55;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: url(../assets/ui-moeda-nivel.webp) center / contain no-repeat;
  font: inherit;
  color: var(--ink);
}
.mnode.lock {
  background-image: url(../assets/ui-moeda-cadeado.webp);
  cursor: default;
}
.mnode.cur {
  filter: drop-shadow(0 0 1.4vh rgba(255, 226, 122, 1)) drop-shadow(0 0 0.5vh #fff3b0);
  animation: nodePulseC 1.4s ease-in-out infinite;
}
@keyframes nodePulseC {
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}
.mnode b {
  position: absolute;
  left: 0;
  right: 0;
  top: 2%;
  font-size: min(3.3vh, 30px);
  font-weight: 900;
  line-height: 1;
  color: #3a2416;
}
.mnode.cur b {
  top: 16%;
  font-size: min(4vh, 36px);
}
.mnode em {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16%;
  display: flex;
  justify-content: center;
}
.mnode em img {
  width: 34%;
  margin: 0 -2%;
  filter: grayscale(1) brightness(0.9) opacity(0.5);
}
.mnode em img.on {
  filter: none;
}
.mnode em img:nth-child(2) {
  transform: translateY(-14%);
}
.map .map-panda {
  position: absolute;
  width: 28.2% !important;
  margin: 0 !important;
  z-index: 1;
}
.map-dust {
  position: absolute;
  width: 5.3%;
  pointer-events: none;
  animation: twinkle 1.6s ease-in-out infinite;
}
.mp-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13.6%;
  z-index: 2;
  background: linear-gradient(#fff3dc, #f3dcb6);
  border-top: 3px solid var(--ink);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -4px 0 rgba(58, 36, 22, 0.18);
}
.mp-tab {
  position: absolute;
  top: 17%;
  width: 15.3%;
  height: 77%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: url(../assets/ui-aba.webp) center / 100% 100% no-repeat;
  font: inherit;
}
#tab-helpers {
  left: 2.7%;
}
#tab-coins {
  left: 20%;
}
#tab-stars {
  left: 64.8%;
}
#tab-cafe {
  left: 82%;
}
.mp-tab img {
  position: absolute;
  left: 50%;
  top: 9%;
  height: 50%;
  transform: translateX(-50%);
}
.mp-tab span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  font-size: min(2vh, 18px);
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}
.mp-play {
  position: absolute;
  left: 36.7%;
  top: -11%;
  width: 26.4%;
  height: 101%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.mp-play img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mp-play span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  font-size: min(3.7vh, 34px);
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(58, 36, 22, 0.4);
}

.mnode {
  aspect-ratio: 1.37;
  background-size: 100% 100%;
}
.mnode b {
  top: 8%;
  font-size: min(3.4vh, 31px);
}
.mnode em {
  left: 6%;
  right: 6%;
  bottom: 12%;
}
.mnode em img {
  width: 32%;
}
.mnode.cur {
  width: 20.2% !important;
  aspect-ratio: 1.02;
  background: url(../assets/ui-moeda-atual.webp) center / 100% 100% no-repeat;
  filter: none;
}
.mnode.cur b {
  top: 36%;
  font-size: min(4.2vh, 38px);
}
.mp-cafe {
  justify-content: flex-start;
  padding: 0 0 0 46%;
}
.mp-cafe img {
  left: 7%;
  width: 33%;
  top: -25%;
}

#home:not([hidden]) {
  display: block !important;
  padding: 0 !important;
}
#home > * {
  position: absolute;
  margin: 0 !important;
}
#home .home-logo {
  left: 23.9%;
  top: 7.5%;
  width: 61% !important;
}
#home .home-panda {
  left: 25%;
  top: 46.7%;
  width: 45.2% !important;
  filter: none;
  z-index: 1;
}
.home-shadow {
  left: 31.9%;
  top: 70%;
  width: 35.1%;
  height: 3.6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 36, 22, 0.32), transparent);
}
.home-ticks {
  left: 60.6%;
  top: 46.7%;
  width: 9%;
  z-index: 2;
}
.play-ticks {
  top: 76.3%;
  width: 8%;
  z-index: 1;
}
.play-ticks.l {
  left: 11.2%;
}
.play-ticks.r {
  left: 79.7%;
}
#home #play {
  left: 19.1%;
  top: 74.9%;
  width: 60.4% !important;
  height: 13.2%;
  padding: 0 !important;
  font-size: min(8.4vh, 76px) !important;
  z-index: 1;
}
#home #play::before,
#home #play::after {
  display: none;
}
#home .home-level {
  left: 30.3%;
  top: 89.3%;
  width: 36.7%;
  height: 6.3%;
  padding: 0 !important;
  display: grid;
  place-items: center;
  font-size: min(3.4vh, 30px);
  background: url(../assets/btn-creme.webp) center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
}

.btn:not(.ghost):not(.more) {
  background: url(../assets/btn-laranja.webp) center / 100% 100% no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink) !important;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(58, 36, 22, 0.35);
}
.btn.more {
  background: url(../assets/btn-verde.webp) center / 100% 100% no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-aspect-ratio: 11/10) {
  body.at-home .topbar .coin-pill {
    position: fixed;
    left: 5.3%;
    top: 3.1%;
    width: 33.5%;
    height: 5.3%;
    box-sizing: border-box;
    padding: 0 0 0 11% !important;
    font-size: min(3.1vh, 28px) !important;
  }
  body.at-home .topbar .coin-pill img {
    position: absolute;
    left: 0;
    top: 50%;
    width: auto !important;
    height: 112% !important;
    transform: translateY(-50%);
  }
  body.at-home .topbar .gear {
    position: fixed;
    left: 83.4%;
    top: 1.6%;
    width: 13.6%;
    height: auto;
    aspect-ratio: 1;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
body.at-home .topbar .gear {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
/* mapa: tiques do selo do Café */
.mp-cafe .shop {
  position: absolute;
  left: 7%;
  width: 33%;
  top: -25%;
}
.mp-cafe .tq {
  position: absolute;
  top: -20%;
  width: 15%;
}
.mp-cafe .tq.l {
  left: -10%;
}
.mp-cafe .tq.r {
  left: 96%;
}
/* ajustes da 2ª sobreposição (01/02) */
#home .home-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}
.play-ticks.l,
.mp-cafe .tq.l {
  transform: scaleX(-1);
}
.mp-cafe {
  padding: 0 0 0 18% !important;
  white-space: nowrap;
  font-size: min(2.7vh, 24px);
}
.mnode.cur {
  width: 14.3% !important;
  aspect-ratio: 1.37;
  background: url(../assets/ui-moeda-nivel.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 1.2vh rgba(255, 214, 90, 1)) drop-shadow(0 0 0.4vh #fff3b0);
}
.mnode.cur::before {
  content: '';
  position: absolute;
  inset: -40% -22%;
  z-index: -1;
  background: url(../assets/ui-explosao.webp) center / contain no-repeat;
  opacity: 0.85;
}
.mnode.cur::after {
  content: '';
  position: absolute;
  inset: -30% -18%;
  background: url(../assets/ui-brilhos.webp) right top / 45% no-repeat;
  animation: twinkle 1.3s ease-in-out infinite;
}
.mnode.cur b {
  top: 10%;
  font-size: min(4vh, 36px);
}
.coin-ticks {
  position: fixed;
  left: 1.9%;
  top: 0.9%;
  width: 6.4%;
  transform: scaleX(-1);
  z-index: 3;
}
.coin-ticks {
  display: none;
}
@media (max-aspect-ratio: 11/10) {
  body.at-home .coin-ticks {
    display: block;
  }
}

#hud:not([hidden]) {
  display: block !important;
}
#hud {
  position: fixed;
  inset: 0;
  zoom: 1 !important;
  pointer-events: none;
}
#hud .hud-logo {
  position: fixed;
  left: calc(var(--sx) + var(--sw) * 0.339);
  top: calc(var(--sy) + var(--sh) * 0.006);
  width: calc(var(--sw) * 0.363) !important;
  margin: 0;
}
#hud .bar {
  position: fixed;
  left: calc(var(--sx) + var(--sw) * 0.032);
  top: calc(var(--sy) + var(--sh) * 0.173);
  width: calc(var(--sw) * 0.717) !important;
  height: calc(var(--sh) * 0.09);
  box-sizing: border-box;
  padding: 0 calc(var(--sw) * 0.02) !important;
  gap: calc(var(--sw) * 0.016) !important;
  pointer-events: auto;
}
#hud .box {
  width: calc(var(--sw) * 0.147);
  height: calc(var(--sh) * 0.071);
  box-sizing: border-box;
}
#hud .box small {
  font-size: calc(var(--sh) * 0.017);
}
#hud .box b {
  font-size: calc(var(--sh) * 0.034) !important;
}
#hud .goals {
  height: calc(var(--sh) * 0.07);
  border-left: 3px solid #6b3f2a;
  padding-left: calc(var(--sw) * 0.02);
}
#hud .goal img {
  width: calc(var(--sw) * 0.093) !important;
  height: calc(var(--sh) * 0.036) !important;
  object-fit: contain;
}
#hud .goal span {
  font-size: calc(var(--sh) * 0.024) !important;
}
#hud #panda {
  position: fixed !important;
  left: calc(var(--sx) + var(--sw) * 0.707);
  top: calc(var(--sy) + var(--sh) * 0.147);
  width: calc(var(--sw) * 0.282);
  height: calc(var(--sh) * 0.141);
  right: auto;
  bottom: auto;
}
body:not(.at-map):not(.at-home) #tip {
  top: calc(var(--sy) + var(--sh) * 0.114) !important;
  left: calc(var(--sx) + var(--sw) * 0.5);
  width: calc(var(--sw) * 0.67);
  min-height: calc(var(--sh) * 0.054);
  box-sizing: border-box;
  display: grid;
  place-items: center;
  font-size: calc(var(--sh) * 0.021) !important;
}
#boosters {
  top: calc(var(--sy) + var(--sh) * 0.843) !important;
  bottom: auto !important;
  left: calc(var(--sx) + var(--sw) * 0.274) !important;
  right: auto !important;
  width: calc(var(--sw) * 0.433);
  justify-content: space-between !important;
  gap: 0 !important;
}
#boosters .boost {
  width: calc(var(--sw) * 0.197);
  height: calc(var(--sh) * 0.111);
}

/* End of css/game-1.css */
