html, body {
  margin: 0;
  padding: 0;
  height: 100%;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

body {
  background: #d9d6cf;
  overflow: hidden;
}

#game {
  display: block;
  position: absolute;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

#hud {
  position: fixed;
  padding: 8px 12px;
  font: 20px Arial, sans-serif;
  color: #000;
  pointer-events: none;
  z-index: 1;
}

#rotate {
  display: none;
}

@media (orientation: portrait) and (pointer: coarse) {
  #rotate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #d9d6cf;
    font: 22px Arial, sans-serif;
    text-align: center;
  }
}

#GuiControls {
  position: fixed;
  bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

#GuiControls > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

[hidden] { display: none !important; }

#guide { position: fixed; z-index: 5; top: 10px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 8px 16px; border-radius: 12px; color: #1f2937; background: rgba(255,255,255,.92); box-shadow: 0 4px 18px rgba(0,0,0,.18); font: 13px/1.4 system-ui, sans-serif; text-align: center; }
#guide h1 { margin: 0; font-size: 15px; }
#guide p { margin: 2px 0 0; }
#guide a { color: #9a3412; }
#guide small { display: block; margin-top: 2px; color: #4b5563; font-size: 11px; }
@media (max-width: 600px), (max-height: 420px) { #guide { top: 4px; padding: 4px 10px; font-size: 11px; } #guide h1 { font-size: 13px; } #guide .long { display: none; } }
