/* Full-screen pixel game. Every browser gesture is switched off so little fingers can't zoom, scroll,
   pull-to-refresh, select text or open long-press menus by accident. */
html, body { margin: 0; height: 100%; background: #120a1c; overflow: hidden; overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html { position: fixed; inset: 0; } /* no rubber-band bounce on iPad */
body { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
canvas { display: block; flex: none; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; box-shadow: 0 0 40px rgba(255, 107, 157, 0.25); cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; outline: none; }
#loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffd23f; font: 16px "Press Start 2P", monospace; background: #120a1c; }
#rotate { display: none; position: fixed; inset: 0; z-index: 5; flex-direction: column; gap: 28px; align-items: center; justify-content: center; text-align: center;
  line-height: 2; color: #ffd23f; font: 16px "Press Start 2P", monospace; background: #120a1c; padding: 24px; box-sizing: border-box; }
#rotate p { margin: 0; }
#rotate svg { image-rendering: pixelated; }
#rotate .tablet { transform-origin: 16px 10px; animation: turn 2.4s ease-in-out infinite; }
@keyframes turn { 0%, 30% { transform: rotate(0deg); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(-90deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #rotate .tablet { animation: none; } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: flex; } }

.exit { position: fixed; top: 8px; left: 10px; z-index: 6; color: #fff8; font: 22px/1 sans-serif; text-decoration: none; }
.exit:hover { color: #fff; }
#install { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgb(18 10 28 / .88); padding: 16px; touch-action: auto; }
#install[hidden] { display: none; }
#install .box { max-width: 460px; max-height: 100%; overflow: auto; background: #fff4dc; color: #22163a; border: 4px solid #120a1c; box-shadow: 6px 6px 0 #000; padding: 18px 20px; font: 15px/1.5 system-ui, sans-serif; -webkit-user-select: text; user-select: text; }
#install h2 { font: 14px/1.4 "Press Start 2P", monospace; color: #c9407a; margin: 0 0 10px; }
#install ol { margin: 8px 0 14px; padding-left: 22px; } #install li { margin: 4px 0; }
#install .share { display: inline-block; width: 12px; height: 14px; border: 2px solid currentColor; border-top: 0; vertical-align: -2px; position: relative; }
#install button { font: 12px "Press Start 2P", monospace; color: #fff; background: #ff6b9d; border: 3px solid #120a1c; box-shadow: inset 0 -4px 0 #c9407a; padding: 12px 16px 10px; cursor: pointer; }
