/* Patch 3 styles */
:root { color-scheme: light dark; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #aee2ff; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; overflow: hidden; color: #fff; }

/* Make canvas sit under UI panels */
#game {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw; height: 100vh; display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

[hidden]{ display: none !important; }

#sharePanel {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + 8px);
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.35);
  padding: 10px 12px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  z-index: 10000;             /* above everything */
  pointer-events: auto;       /* ensure clicks pass here */
}
#shareBtn {
  appearance: none; border: 0;
  background: #ff3f92; color: #fff; font-weight: 700;
  padding: 10px 14px; border-radius: 10px;
}
#shareBtn:active { transform: scale(0.98); }
#shareStatus { font-size: 12px; opacity: 0.95; }
