/* 16-type quiz: one question per screen, normal type sizes, no tight squeeze. */
.type16-card, .type16-page-card { padding-bottom: 28px; }
.type16-lead, .type16-one, .type16-about, .type16-p, .type16-note, .type16-q {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary, #F3F2EE);
  font-weight: 400;
}
.type16-note { color: var(--text-secondary, #9A9CA3); font-size: 12px; margin-top: 16px; }
.type16-choices { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 16px; }
.type16-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; box-sizing: border-box;
  min-height: 88px; padding: 16px 14px 14px;
  border-radius: 16px; border: 1px solid var(--border-hairline, rgba(255,255,255,.08));
  background: var(--bg-card, #14161A); color: inherit;
  text-align: left; cursor: pointer;
}
.type16-choice.is-deep { border-color: var(--border-accent, rgba(201,169,110,.45)); }
.type16-choice-kicker { font-size: 12px; font-weight: 500; color: var(--accent-gold, #C9A96E); }
.type16-choice-title { font-size: 15px; font-weight: 600; }
.type16-choice-sub { font-size: 12px; font-weight: 500; color: var(--text-secondary, #9A9CA3); line-height: 1.4; }
.type16-text-btn, .type16-cta-btn {
  display: block; margin: 8px 0 0; padding: 10px 0;
  min-height: 44px; border: 0; background: none;
  color: var(--accent-gold, #C9A96E); font-size: 15px; font-weight: 500;
  cursor: pointer; text-align: left;
}
.type16-actions .type16-text-btn { display: inline-block; margin: 8px 8px 0 0; }
.type16-progress {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 16px; font-size: 12px; color: var(--text-secondary, #9A9CA3);
}
.type16-progress-track, .type16-bar {
  flex: 1 1 auto; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.type16-progress-track i, .type16-bar i {
  display: block; height: 100%; background: var(--accent-gold, #C9A96E);
}
.type16-q { font-size: 16px; font-weight: 600; line-height: 1.55; margin: 0 0 16px; }
.type16-opts { display: flex; flex-direction: column; gap: 10px; }
.type16-opt {
  width: 100%; box-sizing: border-box;
  min-height: 56px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--border-hairline, rgba(255,255,255,.08));
  background: var(--bg-card, #14161A); color: var(--text-primary, #F3F2EE);
  font-size: 15px; line-height: 1.5; text-align: left; cursor: pointer;
}
.type16-opt.is-on, .type16-opt:active {
  border-color: var(--accent-gold, #C9A96E);
  background: rgba(201,169,110,.1);
}
.type16-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.type16-type {
  margin: 8px 0 0; font-size: 36px; font-weight: 650; letter-spacing: .06em;
  color: var(--accent-gold, #C9A96E); line-height: 1.2;
}
.type16-name { margin: 4px 0 12px; font-size: 15px; font-weight: 600; }
.type16-h { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--accent-gold, #C9A96E); }
.type16-list { margin: 0 0 8px; padding-left: 1.2em; font-size: 15px; line-height: 1.65; }
.type16-list li { margin: 0 0 6px; }
.type16-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.type16-actions-top { margin-top: 4px; margin-bottom: 8px; }
.type16-invite-wrap { margin: 0 0 8px; }
.type16-share {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--accent-gold, #C9A96E); color: var(--accent-gold-ink, #0B0C0E);
  font-size: 15px; font-weight: 600; cursor: pointer;
  max-width: 100%; box-sizing: border-box;
}
.type16-cta { margin: 18px 0 0; }
.type16-cta-btn { color: var(--text-secondary, #9A9CA3); font-size: 13px; font-weight: 500; }
.type16-bar-row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(72px,1.2fr) minmax(0,1fr);
  gap: 8px; align-items: center; margin: 8px 0;
  font-size: 12px; color: var(--text-secondary, #9A9CA3);
}
.type16-bar-lab { min-width: 0; }
.type16-bar-lab.is-r { text-align: right; }
.type16-toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 80;
  max-width: min(92vw, 360px); padding: 10px 14px; border-radius: 12px;
  background: rgba(20,19,17,.94); color: #f5f3ee; font-size: 14px; text-align: center;
}
.type16-toast[hidden] { display: none; }
.type16-page {
  min-height: 100dvh; margin: 0;
  background: #0B0C0E; color: #F3F2EE;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Inter", sans-serif;
}
.type16-page-wrap { max-width: 430px; margin: 0 auto; padding: 16px 16px 64px; box-sizing: border-box; }
.type16-page-brand { margin: 0 0 8px; font-size: 13px; color: #C9A96E; letter-spacing: .06em; text-decoration: none; }
.type16-rec-slot { margin-top: 8px; }

.type16-go {
  margin-top: 10px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--accent-gold, #C9A96E); color: var(--accent-gold-ink, #0B0C0E);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.type16-go.is-quiet {
  background: transparent; color: var(--accent-gold, #C9A96E);
  border: 1px solid rgba(201,169,110,.45); font-weight: 500;
}
.type16-last { margin: 4px 0 0; }
.type16-last-btn {
  display: inline-block; margin: 0; padding: 8px 0;
  min-height: 44px; border: 0; background: none;
  color: var(--text-secondary, #9A9CA3); font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left;
}
.type16-home-wrap { margin: 10px 0 0; }
.type16-home {
  display: inline-block; min-height: 44px; padding: 10px 0;
  color: var(--text-secondary, #9A9CA3); font-size: 13px;
  text-decoration: none; border-bottom: 1px solid rgba(154,156,163,.3);
}
.type16-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin: 0 0 8px;
}
.type16-logo { display: block; line-height: 0; }
.type16-logo img {
  width: 80px; height: 80px; display: block;
  background: #0B0C0E;
}
.type16-page .type16-hero #type16Title,
.type16-page #type16Title {
  margin: 10px 0 0;
  font-size: 24px; font-weight: 650; letter-spacing: .04em;
  color: #F3F2EE; line-height: 1.25;
}
.type16-page.is-busy .type16-logo img { width: 40px; height: 40px; }
.type16-page.is-busy .type16-hero { margin-bottom: 4px; }
.type16-page.is-busy #type16Title { font-size: 18px; margin-top: 6px; }

@media (max-width: 370px) {
  .type16-page.is-chooser .type16-logo img { width: 64px; height: 64px; }
  .type16-page.is-chooser #type16Title { font-size: 22px; }
}

.type16-gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.55);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.type16-gate.hidden { display: none; }
.type16-gate-card {
  position: relative;
  width: 100%; max-width: 430px;
  max-height: min(86dvh, 640px); overflow: auto;
  padding: 20px 16px 24px;
  border-radius: 20px 20px 16px 16px;
  background: #14161A; color: #F3F2EE;
  box-sizing: border-box;
}
.type16-gate-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: #C9A96E;
  font-size: 24px; line-height: 1; cursor: pointer;
}
#type16GateTitle { margin: 8px 32px 10px 0; font-size: 18px; font-weight: 650; }
.type16-gate-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.65; font-weight: 400; }
.type16-gate-label { display: block; margin: 0 0 6px; font-size: 13px; color: #9A9CA3; }
.type16-gate-input {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 44px; margin: 0 0 12px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: #0B0C0E; color: #F3F2EE; font-size: 15px;
}
.type16-gate .type16-go { width: 100%; }
.type16-gate-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; color: #9A9CA3; }
.type16-gate-msg.is-err { color: #E8A0A0; }
body.is-gate { overflow: hidden; }
@media (min-height: 700px) {
  .type16-gate { align-items: center; }
  .type16-gate-card { border-radius: 20px; }
}
