* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  font-family: "Trebuchet MS", "Comic Sans MS", "Chalkboard SE", sans-serif;
  background: #7ec8f7;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ---- grown-up gate ---- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #7ec8f7 0%, #4aa8e8 55%, #2f7fc4 100%);
}

.gate-card {
  background: #fffdf5;
  border-radius: 28px;
  padding: 32px 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(20, 60, 110, 0.35);
  border: 5px solid #ffd94d;
}

.gate-drop { font-size: 56px; }

.gate-card h1 {
  font-size: 26px;
  color: #14568a;
  margin: 8px 0;
}

.gate-card p { font-size: 15px; color: #4a6b8a; margin: 8px 0 14px; }

.gate-card label { display: block; font-size: 14px; color: #14568a; margin-bottom: 6px; }

.gate-card input {
  width: 100%;
  font-size: 22px;
  padding: 12px;
  border-radius: 14px;
  border: 3px solid #7ec8f7;
  text-align: center;
  font-family: inherit;
  margin-bottom: 12px;
}

.gate-card button {
  width: 100%;
  font-size: 20px;
  font-weight: bold;
  font-family: inherit;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: #2f9e5f;
  color: #fff;
  box-shadow: 0 4px 0 #1e6e42;
}

.gate-card button:active { transform: translateY(3px); box-shadow: none; }

.wrong { color: #d64545; font-weight: bold; }
