/* One-time entry notice: notebook-like panel inside the 16:9 game viewport. */
#game .first-visit-overlay {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(8px,2cqw,22px);
  background: rgba(9,11,17,.90);
  color: #332c29;
  font-family: "DotGothic16",sans-serif;
}
#game .first-visit-panel {
  width: min(770px,100%);
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(14px,2.7cqw,32px);
  border: 1px solid #b7a994;
  border-radius: 10px;
  background: #f9f5eb;
  box-shadow: 0 16px 45px rgba(0,0,0,.55);
}
#game .first-visit-header {
  flex: none;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8cbb9;
}
#game .first-visit-eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(10px,1cqw,13px);
  letter-spacing: .22em;
  color: #7b6b61;
}
#game .first-visit-header h2 {
  margin: 0 0 8px;
  font-size: clamp(20px,2.7cqw,32px);
  font-weight: normal;
  letter-spacing: .08em;
}
#game .first-visit-header p {
  margin: 0;
  font-size: clamp(12px,1.4cqw,17px);
  line-height: 1.6;
}
#game .first-visit-notes {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 2px;
  font-size: clamp(12px,1.45cqw,17px);
  line-height: 1.55;
}
#game .first-visit-notes p {
  margin: 0;
  padding: 7px 0;
}
#game .first-visit-notes p + p { border-top: 1px dashed #d9cfc0; }
#game .first-visit-notes strong {
  display: block;
  margin-bottom: 3px;
  font-weight: normal;
  color: #7d5145;
}
#game .first-visit-footer {
  display: flex;
  flex: none;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid #d8cbb9;
}
#game .first-visit-footer button {
  min-height: 44px;
  min-width: min(260px,100%);
  padding: 8px 20px;
  border: 1px solid #876d5b;
  border-radius: 7px;
  background: #55483f;
  color: #fffaf0;
  font: clamp(13px,1.5cqw,18px) "DotGothic16",sans-serif;
  cursor: pointer;
}
#game .first-visit-footer button:hover { background: #705b4d; }
#game .first-visit-footer button:focus-visible {
  outline: 3px solid #296da4;
  outline-offset: 3px;
}
@container game-viewport (max-height: 500px) {
  #game .first-visit-panel { padding: 10px 18px; }
  #game .first-visit-header { padding-bottom: 5px; }
  #game .first-visit-header h2 { margin-bottom: 3px; font-size: 20px; }
  #game .first-visit-notes { padding: 4px 2px; font-size: 12px; line-height: 1.4; }
  #game .first-visit-notes p { padding: 4px 0; }
  #game .first-visit-footer { padding-top: 6px; }
}
