/* Общий вид страниц для людей: главная, загрузка с телефона, «не найдено». */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 17px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e9f7ff;
  background: radial-gradient(120% 80% at 50% 0%, #14607f 0%, #0a3348 45%, #051a26 100%) fixed;
  padding: max(20px, env(safe-area-inset-top)) 16px 32px;
}
main { max-width: 460px; margin: 0 auto; }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 6px; }
p { margin: 6px 0; }
.muted { color: #9cc3d6; font-size: 15px; }

.card {
  margin-top: 18px; padding: 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; margin-top: 12px; padding: 14px 18px;
  border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 700; text-decoration: none;
  color: #1b0d02; background: #ff8a3d;
  box-shadow: 0 6px 18px rgba(255, 138, 61, 0.28);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.secondary {
  min-height: 48px; font-size: 16px; font-weight: 600;
  color: #e9f7ff; background: rgba(255, 255, 255, 0.1); box-shadow: none;
}

.code-form { display: flex; gap: 8px; margin-top: 12px; }
.code-form input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.25); color: inherit;
  font: inherit; font-size: 22px; letter-spacing: .15em; text-transform: uppercase;
}
.code-form .btn { width: auto; margin-top: 0; min-height: 0; font-size: 17px; }

.error { color: #ffb4a8; }
.notice {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 15px;
  background: rgba(255, 138, 61, 0.14); border: 1px solid rgba(255, 138, 61, 0.45);
}

a:not(.btn) { color: #8fd8ff; }
[hidden] { display: none !important; }
.back { display: inline-block; margin: 2px 0 4px; font-size: 15px; text-decoration: none; }

/* Coloring page cards (coloring-cards.js). */
.sheet-card {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
}
.sheet {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 297 / 210; padding: 8px; border-radius: 10px; background: #fff;
}
.sheet img { max-width: 100%; max-height: 100%; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .btn { margin-top: 0; min-height: 52px; font-size: 18px; }
.sheet-actions .btn.secondary { flex: 0 0 auto; width: auto; padding: 10px 14px; }
