:root {
  --night: #07060a;
  --gold: #e8c15a;
  --gold-soft: rgba(232, 193, 90, 0.45);
  --bone: #f4efe6;
  --ink: #1a120c;
  --panel: rgba(18, 12, 10, 0.88);
  --w: 1920px;
  --h: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--bone);
  font-family: Nunito, "Segoe UI", sans-serif;
  user-select: none;
  touch-action: manipulation;
}
button, .hotspot, .loot, .sticky {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 193, 90, 0.25);
}

#frame {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #05040a;
}

#scaler {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #000;
}

#view {
  width: var(--w);
  height: var(--h);
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transform-origin: 0 0;
  background: #000;
}

#world {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--w) * 4);
  height: calc(var(--h) * 2);
  --cam-x: 0px;
  --cam-y: 0px;
  transform: translate(calc(-1 * var(--cam-x)), calc(-1 * var(--cam-y)));
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#world.dir-down {
  transition-duration: 1.15s;
  transition-timing-function: cubic-bezier(0.45, 0.02, 0.15, 1);
}

#world.dir-right,
#world.dir-left {
  transition-duration: 0.8s;
}

.room {
  position: absolute;
  width: var(--w);
  height: var(--h);
  background-color: #000;
  background-size: var(--w) var(--h);
  background-repeat: no-repeat;
}

#room-huerto    { background-image: url("00_empty.png"); }
#room-graveyard { background-image: url("01_empty.png"); }
#room-pantano   { background-image: url("08_Pantano.png"); }
#room-foyer     { background-image: url("02_empty.png"); }
#room-bar       { background-image: url("03_empty.png"); }
#room-pachanga  { background-image: url("04_empty.png"); }
#room-kitchen   { background-image: url("05_empty.png"); }

.comp {
  position: absolute;
  inset: 0;
  background-size: var(--w) var(--h);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 2;
}

body.show-comps .comp { opacity: 0.5; }

.sprite {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  image-rendering: auto;
}

.flaco,
.fito,
.tina,
.ariana { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }

.gigi {
  transform-origin: 50% 80%;
  filter: drop-shadow(0 0 14px rgba(70, 220, 80, 0.45));
  animation: gigiMelt 5.2s ease-in-out infinite;
}

@keyframes gigiMelt {
  0%, 100% {
    transform: none;
    filter: drop-shadow(0 0 14px rgba(70, 220, 80, 0.45));
  }
  5% {
    transform: skewX(-9deg) scaleY(1.08) translateY(4px);
    filter: drop-shadow(-4px 0 #39ff6a) drop-shadow(4px 0 #c8ff3a) contrast(1.35);
  }
  7% {
    transform: skewX(11deg) translate(5px, -2px) scale(1.04, 0.9);
    filter: drop-shadow(5px 0 #d4ff00) hue-rotate(40deg) saturate(1.7);
  }
  11%, 38% {
    transform: none;
    filter: drop-shadow(0 0 14px rgba(70, 220, 80, 0.45));
  }
  48% {
    transform: skewX(-6deg) scaleY(1.1) translateY(5px);
    filter: drop-shadow(-6px 3px #00ff88) drop-shadow(5px -2px #b6ff20) contrast(1.25);
  }
  51% {
    transform: translate(-7px, 3px) skewX(8deg) scaleY(0.94);
  }
  55%, 72% {
    transform: none;
    filter: drop-shadow(0 0 14px rgba(70, 220, 80, 0.45));
  }
  80% {
    transform: scale(1.05, 0.86) translateY(7px);
    filter: drop-shadow(0 10px 8px rgba(40, 255, 90, 0.4)) saturate(1.6);
  }
  86% {
    transform: none;
    filter: drop-shadow(0 0 14px rgba(70, 220, 80, 0.45));
  }
}

#flaco-huerto    { left: 1088px; top: 730px; }
#flaco-graveyard { left: 1196px; top: 612px; }
/* Flaco + fishing pose are ONE sprite sheet — position the whole figure on the rock. */
#flaco-pantano-net { left: 848px; top: 622px; }
.pantano-net {
  position: absolute;
  z-index: 9;
  left: 780px;
  top: 690px;
  width: 160px;
  height: 148px;
  border: 0;
  background: url("loot/Net.png") center / contain no-repeat;
  cursor: pointer;
}
.pantano-net.got { display: none; }
.calaverita-prop {
  position: absolute;
  z-index: 9;
  left: 1542px;
  top: 660px;
  width: 110px;
  height: 120px;
  border: 0;
  background: url("loot/calaverita2026/Calaverita2026_PNG.png") center / contain no-repeat;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.calaverita-prop.got { display: none; }
body.show-hits .calaverita-prop.got {
  display: block !important;
  opacity: 0.55;
  pointer-events: none;
  outline: 3px dashed #e8c15a;
  outline-offset: 4px;
}
body.show-net-ghost #pantano-net.got,
body.show-hits #pantano-net.got {
  display: block !important;
  opacity: 0.55;
  pointer-events: none;
  outline: 3px dashed #e8c15a;
  outline-offset: 4px;
  filter: drop-shadow(0 0 8px #e8c15a);
}
.fish-shadows {
  position: absolute;
  left: 0;
  top: 920px;
  width: 1920px;
  height: 140px;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.fish-shadows i {
  position: absolute;
  width: 70px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 20, 10, 0.45);
  filter: blur(2px);
  animation: swim 9s linear infinite;
}
.fish-shadows i:nth-child(1) { top: 20px; left: 8%; animation-duration: 11s; }
.fish-shadows i:nth-child(2) { top: 48px; left: 30%; animation-duration: 8s; animation-delay: -2s; width: 90px; }
.fish-shadows i:nth-child(3) { top: 28px; left: 55%; animation-duration: 13s; animation-delay: -4s; }
.fish-shadows i:nth-child(4) { top: 60px; left: 72%; animation-duration: 10s; animation-delay: -1s; width: 50px; }
.fish-shadows i:nth-child(5) { top: 36px; left: 18%; animation-duration: 14s; animation-delay: -6s; width: 80px; }
@keyframes swim {
  0% { transform: translateX(0); }
  50% { transform: translateX(220px) scaleX(-1); }
  100% { transform: translateX(0); }
}

#notebook-overlay {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 6, 0.72);
}
#notebook-overlay.hidden { display: none; }
.nb-stage {
  position: relative;
  width: min(1100px, 94vw);
  aspect-ratio: 1521 / 1051;
  background: url("NotebookAll.png") center / 100% 100% no-repeat;
}
.nb-tab {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}
/* Left ALL: selected-state tab on NotebookAll. Right ALL: unselected tab above QUEST on other pages. */
.nb-tab-all { left: 1.2%; top: 16%; width: 8%; height: 18%; }
.nb-tab-all-right { left: 87%; top: 15%; width: 10%; height: 11%; }
.nb-tab-quest { left: 87%; top: 28%; width: 10%; height: 11%; }
.nb-tab-special { left: 87%; top: 42%; width: 10%; height: 11%; }
.nb-tab-huerto { left: 87%; top: 56%; width: 10%; height: 11%; }
.nb-tab-fish { left: 87%; top: 70%; width: 10%; height: 12%; }
.nb-list {
  position: absolute;
  left: calc(24% - 5px);
  top: 26%;
  width: 26%;
  height: 56%;
  overflow-y: auto;
  color: #1a120c;
  z-index: 2;
}
.nb-detail {
  position: absolute;
  left: calc(54% + 5px);
  top: 26%;
  width: 28%;
  height: 56%;
  overflow-y: auto;
  color: #1a120c;
  z-index: 2;
}
.nb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 4px;
  cursor: pointer;
  font-weight: 800;
  color: #1a120c;
}
.nb-row.is-on { background: rgba(232, 193, 90, 0.35); border-radius: 8px; }
.nb-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: center / contain no-repeat;
}
.nb-new {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b1c1c;
}
.nb-empty { padding: 12px; font-weight: 700; }
.nb-hero {
  width: 120px;
  height: 90px;
  margin: 0 auto 8px;
  background: center / contain no-repeat;
}
.nb-detail h3 { font-family: Fredoka, Nunito, sans-serif; margin: 0 0 6px; }
.nb-qty { font-weight: 800; margin-bottom: 8px; }
.nb-meta { font-size: 13px; line-height: 1.45; padding-left: 16px; }
.nb-use, .got-yes, .got-no, .got-ok {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  background: #e8c15a;
  color: #1a120c;
}
.nb-en { font-weight: 700; opacity: 0.75; font-size: 0.9em; }
.nb-catches { margin-top: 10px; display: grid; gap: 8px; }
.nb-catch {
  background: rgba(232, 193, 90, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.nb-catch .nb-use { margin-top: 6px; margin-right: 6px; }
.nb-discard { background: #5a3a3a; color: #f4efe6; }
.fred-bubble {
  position: absolute;
  left: 430px;
  top: 620px;
  width: 260px;
  z-index: 6;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(20, 14, 10, 0.92);
  border: 1px solid var(--gold);
  color: var(--bone);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.fred-bubble::after {
  content: "";
  position: absolute;
  left: 48px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: rgba(20, 14, 10, 0.92);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}
.fred-bubble.hidden { display: none; }

#vip-card-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  font-weight: 800;
}
#vip-card-btn:hover { border-color: var(--gold); }
.vip-cover {
  width: 96px;
  height: 60px;
  background: url("VIP_Cover.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px #000);
}
#vip-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 6, 0.72);
}
#vip-overlay.hidden { display: none; }
.vip-stage {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  aspect-ratio: 600 / 366;
  margin-bottom: 132px;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
}
.vip-close {
  position: absolute;
  right: -6px;
  top: -14px;
  z-index: 6;
  border: 0;
  background: #0a0a0a;
  border: 1px solid #d4af37;
  color: #d4af37;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.vip-page { position: absolute; inset: 0; }
.vip-page.hidden { display: none; }
.vip-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.vip-art-settings { background-image: url("VIP_UserSettings.png"); }
.vip-art-rewards {
  background-image: url("vip_seal_none.png");
  transition: background-image 0.15s ease;
}
.vip-field {
  position: absolute;
  z-index: 3;
  color: #1a120c;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
/* White Name field ~42–48% tall; Account field ~50–58%; Signature mirrors Account on the right. */
.vip-name {
  left: 17%;
  top: 42.5%;
  width: 30%;
  height: 5.5%;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(14px, 2.5vw, 20px);
  display: flex;
  align-items: center;
}
.vip-account {
  left: 17%;
  top: 52.5%;
  width: 30%;
  height: 5.5%;
  font-size: clamp(12px, 2vw, 15px);
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
}
.vip-signature {
  left: calc(63% + 20px);
  top: calc(52% - 3px);
  width: 28%;
  height: 7%;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(13px, 2.3vw, 19px);
  font-weight: 600;
  color: #3a2a18;
  display: flex;
  align-items: center;
  transform: rotate(-3deg);
}
.vip-hit {
  position: absolute;
  z-index: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.vip-gear {
  right: calc(1.2% + 8px);
  bottom: calc(2.5% + 13px);
  width: 11%;
  height: 16%;
}
.vip-share-panel {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -118px;
  z-index: 5;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 8, 4, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f6e7a8;
  pointer-events: auto;
}
.vip-share-hint {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  opacity: 0.92;
}
.vip-share-code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
#vip-share-code {
  flex: 1;
  min-width: 0;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(255, 248, 220, 0.08);
  color: #f6e7a8;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  padding: 0 10px;
}
#vip-share-copy,
#vip-share-enter {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d4af37;
  background: rgba(40, 28, 10, 0.95);
  color: #f6e7a8;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  padding: 0 12px;
  white-space: nowrap;
}
#vip-share-enter {
  width: 100%;
}
#vip-share-copy:hover,
#vip-share-enter:hover {
  filter: brightness(1.12);
}
.vip-page-rewards .vip-share-panel,
.vip-page-settings.hidden .vip-share-panel {
  display: none;
}
.vip-to-rewards,
.vip-to-settings {
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  min-width: 96px;
  height: 30px;
  border-radius: 999px;
  background: rgba(10, 8, 4, 0.88);
  border: 1px solid #d4af37;
  color: #f6e7a8;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.got-no { background: #2a2430; color: #f4efe6; margin-left: 8px; }
#got-overlay {
  position: absolute;
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 6, 0.55);
}
#got-overlay.hidden { display: none; }
.got-card {
  width: min(420px, calc(100vw - 24px));
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  color: var(--bone);
}
.got-pic {
  width: 140px;
  height: 110px;
  margin: 0 auto 10px;
  background: center / contain no-repeat;
}
.got-title { font-family: Fredoka, Nunito, sans-serif; color: var(--gold); margin-bottom: 8px; }
#gabriel-cat     { left: 1678px; top: 723px; }
#rehilete-spin   { left: 1150px; top: 656px; }
#papalotes-tree  { left: 406px; top: 335px; z-index: 3; }
#flaco-foyer     { left: 714px; top: auto; bottom: 230px; }
#fito-welcome    { left: 1566px; top: auto; bottom: 230px; }
#flaco-bar       { left: 560px; top: 640px; }
#tina-bar        { left: 1650px; top: auto; bottom: 450px; }
#ariana-bar      { left: 1330px; top: 312px; }
#gigi-bar        { left: 1515px; top: 540px; }
#blue-ghost {
  left: 248px;
  top: 548px;
  animation: bgPulse 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(80, 210, 255, 0.45));
}
@keyframes bgPulse {
  0%, 100% {
    opacity: 0.38;
    filter: drop-shadow(0 0 10px rgba(80, 210, 255, 0.25));
    transform: translateY(0);
  }
  50% {
    opacity: 0.92;
    filter: drop-shadow(0 0 22px rgba(90, 230, 255, 0.7));
    transform: translateY(-8px);
  }
}
#flaco-pachanga  { left: 920px; top: 680px; }
#fred-chair      { left: 518px; top: 717px; }
#flancisco-flan  { left: 405px; top: 734px; z-index: 5; }
#pg-serving {
  top: 1648px;
  left: 3640px;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 60%;
  filter: drop-shadow(0 0 14px rgba(255, 120, 190, 0.45));
  animation: piggyRun 14s ease-in-out infinite;
}
#pg-serving.is-off { display: none; }
@keyframes piggyRun {
  0%, 10%  { left: 3640px; top: 1648px; transform: scaleX(1); }
  16%      { left: 3640px; top: 1648px; transform: scaleX(-1); }
  46%, 56% { left: 4300px; top: 1810px; transform: scaleX(-1); }
  62%      { left: 4300px; top: 1810px; transform: scaleX(1); }
  100%     { left: 3640px; top: 1648px; transform: scaleX(1); }
}
#welito-flaco {
  left: 1410px;
  top: 802px;
  transform-origin: 50% 80%;
  animation: welitoShuffle 5.6s ease-in-out infinite;
  z-index: 5;
}
@keyframes welitoShuffle {
  0%, 100% { transform: translateX(0) scaleX(1); }
  44%      { transform: translateX(70px) scaleX(1); }
  50%      { transform: translateX(70px) scaleX(-1); }
  94%      { transform: translateX(-40px) scaleX(-1); }
}
#dona-muerte     { left: 680px; top: 642px; }
#caldero-pot     { left: 880px; top: 546px; }
#flaco-kitchen   { left: 1100px; top: 600px; }
#carmen-bird     { left: 300px; top: 155px; z-index: 5; }
#umbral-staff {
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}
#umbral-staff.is-off { display: none; }
#umbral-staff.patrol {
  top: 420px;
  animation: umbralCross 16s linear infinite;
}
@keyframes umbralCross {
  0%   { left: -200px; }
  100% { left: 1920px; }
}

.hotspot {
  position: absolute;
  z-index: 6;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.hotspot .tag {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translate(-50%, -100%);
  background: var(--panel);
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  white-space: nowrap;
}

.hotspot:hover .tag,
.hotspot:focus-visible .tag { opacity: 1; }

body.show-hits .hotspot {
  outline: 1px dashed rgba(232, 193, 90, 0.7);
  background: rgba(232, 193, 90, 0.12);
}

body.show-hits .hotspot::after {
  content: attr(aria-label);
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 11px;
  color: var(--gold);
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.hole {
  overflow: hidden;
  clip-path: polygon(18% 0%, 82% 0%, 96% 100%, 4% 100%);
}
body.show-hits .hotspot.hole {
  outline: none;
  background: rgba(232, 193, 90, 0.4);
}
.hole .glow {
  position: absolute;
  inset: 10% 18% 20%;
  border-radius: 6px;
  box-shadow: 0 0 10px 3px rgba(232, 193, 90, 0.25);
  pointer-events: none;
  transition: box-shadow 0.25s, opacity 0.25s;
}

.hole:hover .glow,
.hole.lit .glow {
  box-shadow:
    0 0 18px 8px rgba(255, 210, 80, 0.55),
    0 0 42px 16px rgba(255, 180, 40, 0.35);
}

.hole.lit .glow {
  animation: holePulse 0.7s ease-in-out infinite alternate;
}

@keyframes holePulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.exit.right:hover { box-shadow: inset -18px 0 24px rgba(232, 193, 90, 0.18); }
.exit.left:hover  { box-shadow: inset 18px 0 24px rgba(232, 193, 90, 0.18); }
.exit.up:hover    { box-shadow: inset 0 18px 24px rgba(232, 193, 90, 0.18); }

.exit.locked { cursor: not-allowed; }
.exit.locked:hover { box-shadow: none; }

#hud-left { display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
#hud-left #monederito,
#hud-left #ticket-chip,
#hud-left #notebook-btn,
#hud-left #vip-card-btn { pointer-events: auto; }
#inv-bar.hidden { display: none; }

#monederito {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
#monederito:hover { border-color: var(--gold); }
.monederito-icon {
  width: 50px;
  height: 50px;
  background: url("loot/monederito.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px #000);
}
.monederito-meta { display: flex; flex-direction: column; align-items: flex-start; }
#monederito-val,
#ticket-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffe08a;
  line-height: 1;
}
#ticket-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  color: inherit;
  font: inherit;
}
.ticket-icon {
  width: 56px;
  height: 40px;
  background: url("loot/MealTicketBlue.png") center / contain no-repeat;
}
#notebook-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#notebook-btn:hover, #ticket-chip:hover { border-color: var(--gold); }
.nb-cover {
  width: 84px;
  height: 100px;
  background: url("NotebookCover.png") center / contain no-repeat;
}
#notebook-btn.has-new .nb-cover { filter: drop-shadow(0 0 6px #e8c15a); }

#inv-bar {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  pointer-events: auto;
  max-width: calc(100vw - 16px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
#btn-reset-rewards {
  position: absolute;
  z-index: 26;
  right: 24px;
  top: 56px;
  bottom: auto;
  border: 1px solid var(--gold-soft);
  background: var(--panel);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
}
#btn-reset-rewards:hover { border-color: var(--gold); }
#kitchen-bar {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px 8px;
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  max-width: 90%;
  overflow-x: auto;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
#kitchen-bar.hidden { display: none; }
.kitchen-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 76px;
  border: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
}
.kitchen-item:hover { background: rgba(232, 193, 90, 0.15); }
.kitchen-item-icon {
  width: 48px;
  height: 48px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.kitchen-item-name {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kitchen-item-qty {
  font-size: 12px;
  font-weight: 800;
  color: #ffe08a;
}
.inv-cell {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 14px;
  border-right: 1px solid rgba(232, 193, 90, 0.22);
  min-width: 88px;
}
.inv-cell:last-child { border-right: 0; }
.inv-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}
.inv-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--bone);
}
.inv-cell.has .inv-val { color: #ffe08a; }
.inv-cell.empty .inv-val { color: rgba(244, 239, 230, 0.35); }

#hud {
  position: absolute;
  z-index: 25;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

#hud.visible { opacity: 1; }

#room-label {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 8px #000;
}

#btn-salir {
  pointer-events: auto;
  background: var(--panel);
  color: var(--bone);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#btn-salir:hover { border-color: var(--gold); color: var(--gold); }

#hint {
  position: absolute;
  z-index: 25;
  right: 24px;
  bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.35);
  pointer-events: none;
}

#paca {
  position: absolute;
  z-index: 30;
  left: 16px;
  bottom: 92px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: min(640px, calc(100% - 24px));
  transition: opacity 0.28s, transform 0.28s;
  pointer-events: auto;
}

#paca.hidden {
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
}

.paca-head {
  position: relative;
  flex: 0 0 auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  animation: pacaBob 2.4s ease-in-out infinite;
}

@keyframes pacaBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.paca-panel {
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: 18px 18px 18px 4px;
  padding: 14px 18px 16px;
  min-width: 280px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.paca-name {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.paca-text {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.paca-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.paca-actions:empty { display: none; }

.paca-actions button {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  cursor: pointer;
}

.paca-actions button:hover {
  background: var(--gold);
  color: var(--ink);
}



.loot {
  position: absolute;
  z-index: 8;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}
.loot.has-art {
  background-color: transparent !important;
  border-radius: 0;
  box-shadow: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}
.loot.got { visibility: hidden; pointer-events: none; }
.loot.idle { opacity: 0 !important; pointer-events: none; }
.loot.coin {
  width: 40px;
  height: 40px;
}
.loot.coin:hover { opacity: 1; transform: scale(1.15); }
.loot.scrap, .loot.lovenote {
  width: 18px;
  height: 22px;
  background: #f4e6b2;
  box-shadow: 1px 1px 0 #c9b37a;
  transform: rotate(-12deg);
  opacity: 0.5;
}
.loot.brooch {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: radial-gradient(circle at 40% 40%, #ffe27a, #c9a227);
  opacity: 0.55;
}
.loot.mandado {
  width: 56px;
  height: 56px;
  background: #8b5a2b;
  opacity: 0.85;
}
.loot.avocado {
  width: 36px;
  height: 42px;
  background: #5a8f2a;
  border-radius: 40% 40% 45% 45%;
  opacity: 0.75;
}
#soul-counter {
  position: absolute;
  left: 1628px;
  top: 228px;
  z-index: 6;
  background: #0a0a0a;
  border: 3px solid #555;
  box-shadow: inset 0 0 8px #000, 0 4px 0 #222;
  padding: 6px 10px 8px;
  min-width: 118px;
  text-align: center;
}
.soul-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: #6f6;
  font-weight: 800;
}
.soul-digits {
  margin-top: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 22px;
  font-weight: 700;
  color: #39ff6a;
  letter-spacing: 0.14em;
  text-shadow: 0 0 8px #0f0;
  background: #031;
  padding: 2px 6px;
}
.loot.seed {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #c47a22;
  opacity: 0.5;
}

#quest-board {
  position: absolute;
  inset: 0;
  z-index: 28;
  background: rgba(0, 0, 0, 0.92);
  overflow: hidden;
  transition: opacity 0.28s;
}
#quest-board.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.quest-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
}
.quest-stage img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.sticky {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sticky.done::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 8px;
  color: #1a120c;
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 0 4px #fff;
}
#quest-close,
#quest-refresh {
  position: absolute;
  top: 28px;
  z-index: 3;
  background: var(--panel);
  color: var(--bone);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
#quest-close { right: 36px; }
#quest-refresh { right: 160px; }
#quest-close:hover,
#quest-refresh:hover { color: var(--gold); border-color: var(--gold); }

#quest-slip {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-1.4deg);
  width: min(420px, calc(100vw - 28px));
  max-height: min(80vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f7efcf;
  color: #1a120c;
  padding: 28px 28px 22px;
  border-radius: 2px 12px 4px 8px;
  box-shadow: 8px 14px 28px rgba(0, 0, 0, 0.5);
  font-family: Nunito, sans-serif;
}
#quest-slip.hidden { display: none; }
.slip-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c23b2e;
  margin: -8px auto 12px;
  box-shadow: 0 2px 0 #7a2018;
}
.slip-col {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a5a12;
  font-weight: 800;
  margin-bottom: 6px;
}
.slip-title { font-family: Fredoka, Nunito, sans-serif; font-size: 26px; margin-bottom: 10px; }
.slip-body { font-size: 17px; line-height: 1.4; font-weight: 600; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.slip-progress { margin-top: 12px; font-weight: 800; color: #6b4018; flex: 0 0 auto; }
.slip-actions { display: flex; gap: 8px; margin-top: 16px; flex: 0 0 auto; }
.slip-actions button {
  border: 2px solid #1a120c;
  background: transparent;
  padding: 6px 14px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
}
#quest-accept { background: #e8c15a; }
.slip-actions button:hover { background: #1a120c; color: #f7efcf; }
#quest-accept:hover { background: #1a120c; color: #e8c15a; }

#phone-overlay {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(8, 6, 10, 0.45);
}
#phone-overlay.hidden { display: none; }
.phone-scaler {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}
.phone-shell {
  width: 400px;
  height: 860px;
  transform-origin: 0 0;
  background: #1a1a1e;
  border-radius: 48px;
  border: 3px solid #c9c4b8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #111;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  position: absolute;
  top: 40px;
  left: 14px;
  width: 372px;
  height: 780px;
  background: #0d1020;
  border-radius: 28px;
  overflow: hidden;
  color: #f4efe6;
}
.phone-home {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #888;
  cursor: pointer;
}
#phone-close {
  background: var(--panel);
  color: var(--bone);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  cursor: pointer;
}
.phone-page {
  position: relative;
  width: 372px;
  height: 780px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 372px 780px;
  color: #171717;
}
.phone-choose {
  position: absolute;
  left: 100px;
  top: 605px;
  width: 176px;
  height: 68px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}
.phone-cart-chip {
  position: absolute;
  right: 14px;
  top: 44px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 12px;
  background: #e8c15a;
  color: #1a120c;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.phone-nav-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 42px 14px 0;
  min-height: 36px;
}
.phone-nav-row .phone-cart-chip { position: static; }
.phone-text-btn {
  border: 0;
  background: transparent;
  color: #5c4630;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}
.phone-cat-wrap, .phone-grid-wrap, .phone-cart-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.phone-cat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 110px;
}
.phone-cat-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 16px;
  padding: 16px 16px;
  text-align: left;
  cursor: pointer;
  background: #e8c15a;
  color: #1a120c;
  box-shadow: 0 6px 14px rgba(26, 18, 12, 0.18);
}
.phone-cat-btn:nth-child(even) {
  background: #2a2430;
  color: #f4efe6;
  border: 1px solid #e8c15a;
}
.phone-cat-num {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 22px;
  font-weight: 700;
  width: 36px;
}
.phone-cat-copy { display: flex; flex-direction: column; }
.phone-cat-name {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.phone-cat-range { font-size: 13px; font-weight: 700; opacity: 0.8; }
.phone-grid-head {
  padding: 8px 22px 6px;
}
.phone-grid-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8a6a3a;
}
.phone-grid-head h2 {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 28px;
  color: #171717;
}
.phone-grid-head p { font-size: 14px; font-weight: 700; color: #6b6b6b; }
.phone-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
  padding: 4px 12px 110px;
  overflow-y: auto;
  flex: 1;
}
.phone-food {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #1a120c;
  padding: 4px 2px;
}
.phone-food-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.phone-food-name {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}
.phone-food-price {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8a6a3a;
}
.phone-prod-hero {
  position: absolute;
  left: 0;
  top: 18px;
  width: 372px;
  height: 220px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.phone-prod-hero.is-icon {
  background-size: 168px 168px;
}
.phone-prod-back {
  position: absolute;
  left: 8px;
  top: 36px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: #1a120c;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}
.phone-page > .phone-cart-chip { top: 38px; }
.phone-heart {
  position: absolute;
  left: 248px;
  top: 268px;
  width: 112px;
  height: 112px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.phone-prod-copy {
  position: absolute;
  left: 22px;
  top: 277px;
  width: 228px;
}
.phone-prod-title {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #171717;
  line-height: 1.1;
}
.phone-prod-sub {
  margin-top: 4px;
  font-size: 15px;
  color: #5c5c5c;
  font-weight: 700;
}
.phone-label {
  position: absolute;
  left: 22px;
  top: 356px;
  width: 132px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}
.phone-prod-blurb {
  position: absolute;
  left: 22px;
  top: 406px;
  width: 328px;
  height: 64px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  color: #333;
  font-weight: 600;
}
.phone-qty-hit {
  position: absolute;
  top: 488px;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.phone-qty-hit.minus { left: 16px; }
.phone-qty-hit.plus { left: 100px; }
.phone-qty-num {
  position: absolute;
  left: 66px;
  top: 498px;
  width: 36px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #171717;
  pointer-events: none;
}
.phone-price-num {
  position: absolute;
  left: 292px;
  top: 508px;
  width: 64px;
  font-size: 20px;
  font-weight: 800;
  color: #171717;
  background: #fff;
  line-height: 1.2;
}
.phone-add {
  position: absolute;
  left: 22px;
  top: 560px;
  width: 328px;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  background: #e8c15a;
  color: #1a120c;
}
.phone-cart-title {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 28px;
  padding: 12px 22px 8px;
}
.phone-cart-lines {
  padding: 0 22px;
  flex: 0 1 auto;
  overflow-y: auto;
  max-height: 280px;
}
.phone-cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.phone-cart-line-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.phone-drop {
  border: 0;
  background: transparent;
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.phone-drop:hover { background: rgba(180, 35, 24, 0.12); }
.phone-cart-empty { padding: 12px 22px; font-weight: 700; color: #666; }
.phone-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 4px;
  font-weight: 800;
}
.phone-ticket-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-step {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f07a2a;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}
.phone-cart-note {
  padding: 4px 22px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6b6b6b;
  line-height: 1.35;
}
.phone-due {
  margin: 6px 22px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}
.phone-due div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.phone-due-pay { color: #1a120c; font-size: 16px; }
.phone-cart-wrap .phone-pay,
.phone-cart-wrap .phone-alt {
  margin: 8px 22px 0;
  width: calc(100% - 44px);
}
.phone-confirm-body {
  padding: 4px 22px 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.phone-btns { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 20px; }
.phone-btns button,
.phone-pay,
.phone-alt {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
}
.phone-pay { background: #e8c15a; color: #1a120c; }
.phone-alt { background: #2a2430; color: #f4efe6; border: 1px solid #e8c15a; }
.phone-muted { opacity: 0.4; cursor: not-allowed; }

#reward-toast {
  position: absolute;
  z-index: 40;
  left: 50%;
  top: 88px;
  transform: translateX(-50%);
  max-width: 640px;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--bone);
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
#reward-toast.hidden { display: none; }
#btn-reset-rewards:hover { border-color: var(--gold); }

#tip-jar { left: 1371px; top: 507px; z-index: 5; pointer-events: none; }
.site-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 28px;
  align-items: flex-end;
}
.site-nav button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.site-nav img { width: 97px; height: 100px; display: block; }
.paca-actions button { min-height: 44px; min-width: 72px; }

.social-hit {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
}
#btg-overlay, #privacy-overlay {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 6, 0.72);
}
#about-overlay, #socials-overlay {
  position: absolute;
  inset: 0;
  z-index: 42;
  overflow: hidden;
  background: #000;
}
#btg-overlay.hidden, #about-overlay.hidden, #privacy-overlay.hidden, #socials-overlay.hidden { display: none; }
#socials-overlay { background: #000; }
#about-overlay {
  background: #000;
  transition: opacity 0.55s ease;
}
.about-stage,
.socials-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
}
.about-stage img { width: 100%; height: 100%; display: block; pointer-events: none; }
.about-hit {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.about-hit.is-on {
  box-shadow: inset 0 0 0 2px rgba(232, 193, 90, 0.85), 0 0 18px rgba(232, 193, 90, 0.45);
  border-radius: 12px;
}
.btg-sheet {
  width: min(540px, calc(100vw - 24px));
  aspect-ratio: 1080 / 1616;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  background: url("BTG.png") center / 100% 100% no-repeat #e8d3b0;
  color: #4a2a18;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
  box-sizing: border-box;
}
.btg-cta {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.btg-embed-wrap {
  width: 240px;
  height: 160px;
  overflow: hidden;
}
.btg-embed {
  width: 480px;
  height: 320px;
  border: 0;
  background: transparent;
  transform: scale(0.5);
  transform-origin: top left;
}
.btg-copy {
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  font-size: 13px;
  text-align: center;
  background: rgba(247, 239, 207, 0.88);
  padding: 10px 12px;
  border-radius: 8px;
}
.btg-sub, .privacy-card a {
  display: inline-block;
  background: #6b2a22;
  color: #f7efcf;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
}
.overlay-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: 1px solid var(--gold-soft);
  background: var(--panel);
  color: var(--bone);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
#about-close { top: 18px; left: 18px; right: auto; }
.privacy-card {
  width: min(520px, calc(100vw - 24px));
  background: var(--panel);
  color: var(--bone);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 24px;
}
.privacy-card h2 { font-family: Fredoka, Nunito, sans-serif; margin-bottom: 12px; color: var(--gold); }
.privacy-card p { line-height: 1.45; font-weight: 600; margin-bottom: 16px; }
#privacy-close {
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

body.compact-ui #paca { bottom: 58px; left: 6px; gap: 8px; max-width: calc(100% - 12px); }
body.compact-ui #paca .paca-head {
  transform-origin: bottom left;
  margin-right: -90px;
  animation: pacaBobCompact 2.4s ease-in-out infinite;
}
@keyframes pacaBobCompact {
  0%, 100% { transform: scale(0.42) translateY(0); }
  50% { transform: scale(0.42) translateY(-6px); }
}
body.compact-ui .paca-panel { padding: 8px 10px; min-width: 0; }
body.compact-ui .paca-text { font-size: 13px; line-height: 1.3; }
body.compact-ui .paca-name { font-size: 10px; margin-bottom: 3px; }
body.compact-ui #room-label { font-size: 13px; }
body.compact-ui #btn-salir { padding: 5px 10px; font-size: 11px; }
body.compact-ui .monederito-icon { width: 28px; height: 28px; }
body.compact-ui #monederito { padding: 4px 8px 4px 4px; gap: 6px; font-size: 12px; }
body.compact-ui #hud { top: 6px; left: 8px; right: 8px; }
body.compact-ui #inv-bar {
  bottom: 4px;
  transform: translateX(-50%);
  max-width: calc(100vw - 8px);
}
body.compact-ui .inv-cell {
  min-width: 3.5em;
  padding: 6px 7px;
  font-size: 9px;
}
body.compact-ui #kitchen-bar { bottom: 52px; transform: translateX(-50%) scale(0.85); transform-origin: bottom center; }
body.compact-ui #btn-reset-rewards { top: 44px; bottom: auto; font-size: 9px; padding: 4px 8px; }

@media (pointer: coarse) {
  .paca-text { font-size: 18px; }
  .paca-panel { min-width: 0; width: min(100%, 420px); }
  #inv-bar { max-width: calc(100% - 12px); bottom: 8px; }
  #kitchen-bar { bottom: 76px; max-width: calc(100% - 12px); }
  #paca { bottom: 84px; left: 8px; }
  #hud { left: 8px; right: 8px; top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #world, #paca, .paca-head, .gigi, #blue-ghost, #welito-flaco, .hole .glow, #quest-board, #umbral-staff, #pg-serving, #about-overlay { transition: none; animation: none; }
}
