:root{
  --bg:#FFF8F0;
  --card:#fff;
  --accent:#FF8C42;
  --muted:#6b6b6b;
  --btn-bg:#fff;
  --btn-border:#EDD0B1;
}
*{box-sizing:border-box}
html,body,#app{height:100%;margin:0}
body{
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
#app{
  width:100%;
  max-width:560px;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
}

/* Scene: keep everything visible on one mobile screen */
#scene{
  width:100%;
  max-width:420px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:manipulation;
}
#mangoSvg{
  width:100%;
  height:auto;
  max-height:64vh;
  user-select:none;
  -webkit-user-select:none;
  display:block;
  /* ensure the mango sits on a subtle canvas so it reads clearly on light backgrounds */
  background: rgba(255,255,255,0.35);
  border-radius:10px;
  padding:6px;
}

/* Controls */
#controls{
  display:flex;
  gap:10px;
  justify-content:center;
  width:100%;
  padding:6px 0;
}
.btn{
  min-width:88px;
  min-height:44px;
  border-radius:10px;
  border:1px solid var(--btn-border);
  background:var(--btn-bg);
  color:#3b3b3b;
  font-weight:600;
  font-size:15px;
  padding:8px 12px;
  box-shadow:0 4px 8px rgba(0,0,0,0.06);
  touch-action:manipulation;
}
.btn:active{transform:translateY(1px)}

/* Info card */
#info{
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:12px;
  padding:10px 14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
  font-size:14px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:flex-start;
}
#info p{margin:0}

/* Fallback image styling: centered, responsive and visually consistent with the SVG canvas */
#fallback{
  display:block;
  max-width:320px;
  width:80%;
  height:auto;
  border-radius:10px;
  background: rgba(255,255,255,0.45);
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  margin-top:8px;
}