:root {
  --sand: #e3bd62;
  --ink: #4a3210;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  overflow: hidden;
  background: #ffb56b;
  font-family: 'Baloo Bhaijaan 2', 'Bricolage Grotesque', sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}
#canvas {
  display: block;
  position: fixed;
  inset: 0;
  cursor: grab;
}
#canvas:active { cursor: grabbing; }

/* HUD */
#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 5;
  direction: ltr;
}
.bars { display: flex; flex-direction: column; gap: 8px; }
.stat { display: flex; align-items: center; gap: 8px; }
.stat .ico { font-size: 20px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.bar-track {
  width: 130px; height: 14px;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(74,50,16,0.35);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(2px);
}
.bar-fill { height: 100%; width: 70%; border-radius: 8px; transition: width 0.2s linear; }
.bar-fill.hunger { background: linear-gradient(90deg, #8fd14f, #4e9a2a); }
.bar-fill.thirst { background: linear-gradient(90deg, #6fd6ff, #0e88c9); }

.score {
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(74,50,16,0.35);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

#muteBtn {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 6;
  width: 44px; height: 44px;
  border: 2px solid rgba(74,50,16,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
#muteBtn:active { transform: scale(0.92); }

/* Intro */
#intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(255,181,107,0.9), rgba(122,90,138,0.95));
  backdrop-filter: blur(3px);
}
.intro-card {
  text-align: center;
  padding: 30px 26px;
  max-width: 360px;
  background: rgba(255,248,232,0.92);
  border: 3px solid #c4915a;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(74,50,16,0.4);
  animation: pop 0.5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { transform: scale(0.7) translateY(20px); opacity: 0; } }
.camel-emoji { font-size: 64px; animation: sway 2s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.intro-card h1 {
  font-size: 34px;
  font-weight: 800;
  color: #8a5a2b;
  margin: 6px 0 12px;
}
.intro-card p { color: var(--ink); line-height: 1.7; margin-bottom: 10px; }
.intro-card .fa { font-size: 17px; }
.intro-card .en { font-size: 13px; opacity: 0.7; direction: ltr; font-family: 'Bricolage Grotesque', sans-serif; }
#startBtn {
  margin-top: 14px;
  padding: 14px 30px;
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, #f4a03c, #d9762a);
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 0 #a8551b, 0 10px 20px rgba(168,85,27,0.4);
  cursor: pointer;
  transition: transform 0.1s;
}
#startBtn:active { transform: translateY(4px); box-shadow: 0 2px 0 #a8551b; }

#remix {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 6;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  color: var(--ink);
  background: rgba(255,255,255,0.35);
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid rgba(74,50,16,0.25);
  backdrop-filter: blur(2px);
}
#remix:hover { background: rgba(255,255,255,0.6); }

@media (max-width: 600px) {
  .bar-track { width: 100px; }
  .score { font-size: 13px; padding: 5px 9px; }
  .intro-card h1 { font-size: 28px; }
}
</parameter>