/* Mobile web shell (docs/MOBILE.md): no page bounce or text selection over the game, and a rotate prompt that
   covers the page in portrait on touch screens (landscape only; iOS ignores the manifest orientation). */
html, body {
  background: #1b1611;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
input { -webkit-user-select: text; user-select: text; }
#sow-rotate {
  display: none; position: fixed; inset: 0; z-index: 50;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #1b1611; color: #f6ecd4; text-align: center; padding: 24px;
  font: 18px/1.5 SowInput, sans-serif;
}
#sow-rotate svg { width: 72px; height: 72px; }
@media (orientation: portrait) and (pointer: coarse) { #sow-rotate { display: flex; } }
.sow-gated #sow-rotate { display: none !important; }
/* Install gate: phones and tablets in a browser tab are asked to install the app first (docs/MOBILE.md). */
#sow-gate {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(circle at 50% 30%, #4a1712 0%, #1b1611 70%);
  color: #f6ecd4; font: 16px/1.5 SowInput, sans-serif; -webkit-user-select: none; user-select: none;
}
#sow-gate .sow-card {
  width: 100%; max-width: 420px; margin: auto; padding: 20px; box-sizing: border-box; text-align: center;
  background: rgba(27, 22, 17, 0.92); border: 2px solid #ffd98a;
}
#sow-gate .sow-icon { width: 88px; height: 88px; border-radius: 20px; }
#sow-gate h1 { margin: 8px 0 4px; font-size: 24px; color: #ffd98a; }
#sow-gate p { margin: 8px 0; }
#sow-gate .sow-lede { color: #f6ecd4; }
#sow-gate .sow-note { font-size: 14px; color: #c9b99a; }
#sow-gate .sow-done { color: #ffd98a; }
#sow-gate ol { margin: 8px 0; padding-left: 24px; text-align: left; }
#sow-gate li { margin: 4px 0; }
#sow-gate b { color: #ffd98a; }
#sow-gate .sow-share { display: inline-block; padding: 0 4px; border: 1px solid #ffd98a; font-size: 13px; }
#sow-gate button, #sow-gate a.sow-primary {
  display: block; width: 100%; min-height: 48px; margin: 12px 0 0; box-sizing: border-box; border: 0;
  font: inherit; font-size: 18px; line-height: 48px; text-decoration: none; color: #1c2530; background: #ffd98a;
}
#sow-gate button.sow-secondary {
  min-height: 40px; line-height: 40px; font-size: 14px; color: #c9b99a; background: transparent; text-decoration: underline;
}
@media (orientation: landscape) and (max-height: 500px) {
  #sow-gate .sow-card { max-width: 560px; padding: 12px 16px; }
  #sow-gate .sow-icon { width: 56px; height: 56px; border-radius: 12px; }
  #sow-gate h1 { font-size: 20px; margin: 4px 0 0; }
}
/* Update banner (pwa_shell.js): a new version is ready while the player is in the field. */
#sow-update {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px;
  background: rgba(27, 22, 17, 0.92); color: #f6ecd4; border: 2px solid #ffd98a;
  font: 14px/1.4 SowInput, sans-serif;
}
#sow-update button {
  font: inherit; min-height: 36px; padding: 0 12px; border: 0; color: #1c2530; background: #ffd98a;
}
