/*styles.css — Tamagotchi chrome: transparent stage, screens, HUD panel*/
html, body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #000; /*transparent on the additive display*/
  font-family: ui-monospace, Menlo, monospace;
}

#stage canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#hud {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 8px 10px;
  background: #0a0a0f;
  color: #00ff88;
  font-size: 13px;
  line-height: 1.4;
  max-width: 566px;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 8px;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
}

#hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  opacity: 0.4; /*dim via opacity, never a mid-grey — waveguide legibility rule*/
  font-size: 16px;
  letter-spacing: 3px;
}

#name {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
}

#mess-dots {
  position: absolute;
  bottom: 130px;
  left: 0;
  right: 0;
  text-align: center;
}

.mess-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 4px;
  border-radius: 50%;
  background: #cc7a2e; /*saturated "dirt" tone, not a mid-grey*/
  opacity: 1;
  transition: opacity 0.5s; /*clean's sweep-fade — opacity only, no transform*/
}

.mess-dot.fading {
  opacity: 0;
}

#flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: #fff;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

#flash.show {
  opacity: 0.7;
}

#icon-strip {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 36px;
}

.icon {
  font-size: 32px;
  opacity: 0.8; /*idle state — dim via opacity, per Meta interaction guidelines*/
}

.icon.focused {
  font-size: 40px; /*"slight scale" via font-size, not a CSS transform — no waveguide shimmer*/
  opacity: 1;
}

.icon.disabled {
  opacity: 0.35; /*medicine while healthy — pressing it shows a NOT SICK toast*/
}

#toast {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

#toast.show {
  opacity: 0.9;
}

#dashboard {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 150px;
  padding: 14px 12px;
  background: #14161a; /*dark-gray surface, never #000 on a visible surface*/
  border-radius: 12px;
  color: #fff;
}

.dash-row {
  padding: 5px 0;
}

.dash-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 3px;
}

.dash-track {
  height: 10px;
  border-radius: 5px;
  background: #24282e;
  overflow: hidden;
}

.dash-fill {
  height: 100%;
  border-radius: 5px;
}

#fill-food { background: #ffaa00; }
#fill-happy { background: #ff5ec4; }
#fill-clean { background: #4dd7ff; }
#fill-health { background: #00ff88; }

#dash-mood {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #fff;
}

#care-counts {
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 1px;
  line-height: 1.6;
}

#loading {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  color: #e4e6eb;
  font-size: 16px;
  letter-spacing: 4px;
}

#fatal {
  position: absolute;
  top: 40%;
  left: 24px;
  right: 24px;
  text-align: center;
  color: #ff5566;
  font-size: 15px;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}
