html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0f1418;
  color: #f4eee6;
  -webkit-text-size-adjust: 100%;
}

.ploot-feedback-consent {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #6a5741;
  border-radius: 14px;
  background: #181e23;
  color: #f4eee6;
  font: 16px/1.5 system-ui, sans-serif;
}
.ploot-feedback-consent::backdrop { background: #0009; }
.ploot-feedback-consent h2 { margin: 0 0 12px; font-size: 22px; }
.ploot-feedback-consent label { display: block; margin: 16px 0; }
.ploot-feedback-consent input { width: 18px; height: 18px; vertical-align: middle; }
.ploot-feedback-consent textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #7c6249;
  border-radius: 5px;
  background: #101519;
  color: inherit;
  font: inherit;
}
.ploot-feedback-consent > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ploot-feedback-consent button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #7c6249;
  border-radius: 7px;
  background: #2b343c;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ploot-feedback-consent button:first-child { background: #97501c; }
.ploot-feedback-consent button:disabled { opacity: .45; cursor: default; }
.ploot-feedback-consent button:focus-visible { outline: 2px solid #ffb775; outline-offset: 2px; }
.ploot-feedback-notice {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: min(600px, calc(100vw - 24px));
  z-index: 2147483647;
  margin: 0;
  padding: 12px;
  border: 1px solid #ad7954;
  border-radius: 8px;
  background: #201c19;
  color: #ffe6cd;
  font: 14px/1.45 system-ui, sans-serif;
  pointer-events: none;
}

body {
  position: fixed;
  inset: 0;
}

#ploot {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  background: radial-gradient(ellipse at 50% 35%, #2a3640 0%, #0f1418 70%);
}

#status {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100vw - 48px);
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(17, 23, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font: 500 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  pointer-events: none;
}

#status[data-state="error"] {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  padding: 16px 22px;
  border-color: rgba(232, 87, 74, 0.6);
  color: #ffe1dc;
}

/* Hidden text-input proxy for IME and mobile keyboards (positioned by the game). */
#ploot-text-proxy {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  color: transparent;
  background: transparent;
  caret-color: transparent;
  pointer-events: none;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font: 500 16px system-ui, sans-serif;
}
