/* Pages of the game masters' site. The shared look is in shared/styles.css. */

.terms-text { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px; margin-top: 14px; background: var(--surface-soft); font-size: 13px; }
.terms-text h2, .terms-text h3, .terms-text h4 { margin: 14px 0 6px; font-size: 15px; }
.terms-text p, .terms-text li { color: #3d5361; }

/* Editor */
.editor-heading { align-items: center; }
.title-input { font-size: 24px; font-weight: 650; border: 1px solid transparent; background: transparent; padding: 4px 6px; margin: 2px 0 0 -6px; }
.title-input:hover { border-color: var(--line); background: #fff; }
.title-input:focus { background: #fff; }
.editor-grid { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.map-column { position: sticky; top: 78px; }
.checkpoint-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 300px; overflow: auto; }
.checkpoint-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #edf0f2; cursor: pointer; }
.checkpoint-row:last-child { border-bottom: 0; }
.checkpoint-row:hover { background: #f7fafc; }
.checkpoint-row.selected { background: #eef6fc; box-shadow: inset 3px 0 var(--blue); }
.checkpoint-number { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.checkpoint-row.selected .checkpoint-number { background: #d14b1f; }
.checkpoint-text { display: grid; min-width: 0; }
.checkpoint-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkpoint-tools { display: flex; align-items: center; gap: 2px; }
.checkpoint-tools .icon-button { min-width: 30px; min-height: 30px; font-size: 14px; color: #557080; }
.checkpoint-tools .icon-button:disabled { opacity: .3; cursor: default; }
.option-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.media-field { display: grid; gap: 6px; }
.media-current { display: flex; gap: 10px; align-items: center; min-height: 0; }
.template-results { display: grid; gap: 10px; max-height: 55vh; overflow: auto; }

/* Hunt page */
.join-code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 34px; font-weight: 700; letter-spacing: .14em; margin: 6px 0 10px; }
.team-list { display: grid; gap: 4px; }
.team-block { padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.team-block:last-child { border-bottom: 0; }
.review-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.review-item .media-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.product { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }

/* Replay */
.replay-controls { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.replay-controls input[type="range"] { flex: 1; }
.replay-controls select { width: auto; }

/* Account */
.avatar-large { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); display: grid; place-items: center; font-size: 32px; font-weight: 700; color: var(--blue-dark); flex: none; }
.avatar-large img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1050px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .map-column { position: static; order: -1; }
}
