html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
}

#wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  flex: none; /* в повёрнутом режиме холст шире экрана — не даём flex его сжать */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  image-rendering: auto;
}

/* Форма «Написать авторам» — в стиле плашек «Версии-24» */
.fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fb-panel {
  box-sizing: border-box;
  width: min(520px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #10142a;
  border: 3px solid #ffd84a;
  border-radius: 12px;
  padding: 20px 22px;
  color: #e8ecff;
  font: 16px "PT Sans", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-panel h2 {
  margin: 0;
  font: 26px "Russo One", Impact, sans-serif;
  color: #ffd84a;
}

.fb-lead { margin: 0 0 6px; color: #c9d4ff; }

.fb-label { font-weight: 700; font-size: 14px; }
.fb-label span { font-weight: 400; color: #8f9cc8; }

.fb-panel textarea,
.fb-panel input {
  box-sizing: border-box;
  width: 100%;
  border: 3px solid #1a1024;
  border-radius: 8px;
  background: #fff7e8;
  color: #1a1024;
  font: 16px "PT Sans", Arial, sans-serif;
  padding: 10px 12px;
  resize: vertical;
}

.fb-panel textarea:focus,
.fb-panel input:focus { outline: 3px solid #ffd84a; outline-offset: 1px; }

.fb-status { min-height: 20px; font-size: 14px; color: #c9d4ff; }
.fb-status.fb-error { color: #ff8a8a; font-weight: 700; }

.fb-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.fb-buttons button {
  flex: 1 1 140px;
  border: 3px solid #1a1024;
  border-radius: 8px;
  padding: 12px 16px;
  font: 18px "Russo One", Impact, sans-serif;
  cursor: pointer;
  background: #ffd84a;
  color: #1a1024;
}

.fb-buttons .fb-close { background: #c9d4ff; }
.fb-buttons button:hover { background: #fff; }
.fb-buttons button:disabled { opacity: .5; cursor: default; }
.fb-buttons button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
