html, body { margin: 0; height: 100%; background: #0a0a0c; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
canvas { display: block; outline: none; cursor: none; touch-action: none; }
#msg { position: fixed; inset: 0; display: grid; place-items: center; color: #9a9; font: 15px ui-monospace, Menlo, Consolas, monospace; text-align: center; padding: 16px; }
#signin { position: fixed; left: 50%; bottom: 22%; transform: translateX(-50%); padding: 10px 18px; border-radius: 6px; background: #2da44e; color: #fff; font: 600 15px ui-monospace, Menlo, Consolas, monospace; text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,.5); }
/* The phone keyboard's target for the search line: there, but not seen
   (16px so iOS doesn't zoom in on focus). */
#type { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; font-size: 16px; border: 0; padding: 0; }
/* snek is played sideways: a phone or tablet held upright gets this
   instead (a run pauses meanwhile, in lib.rs). */
#rotate { display: none; position: fixed; inset: 0; z-index: 10; background: #0a0a0c; color: #cdd; font: 17px ui-monospace, Menlo, Consolas, monospace; text-align: center; line-height: 1.6; place-items: center; }
#rotate span { color: #788; font-size: 14px; }
#rotate .phone { width: 34px; height: 60px; margin: 0 auto 22px; border: 3px solid #5bd16b; border-radius: 7px; animation: turn 2.4s ease-in-out infinite; }
@keyframes turn { 0%, 25% { transform: rotate(0); } 55%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: grid; } }
