/* 精神年齢あてっこ（部屋の種類 ate）。テーマ色は精神年齢診断と同じ1色（--c-seishin #6c4bff）
   ボタンはどれも 44px 以上。320px の幅でも横にはみ出さない */
.ate-btn { background: var(--c-seishin); }
.ate-make { background: #fff; border: 1.5px solid color-mix(in srgb, var(--c-seishin) 30%, #fff); border-radius: 18px; padding: 16px; }
.ate-make > h2 { font-size: 20px; }
.ate-make .eyebrow { color: var(--c-seishin); }
.ate-truth { font-size: 14.5px; color: var(--ink2); }
.ate-truth b { font-family: var(--f-round); font-size: 18px; color: var(--c-seishin); margin: 0 2px; }
.ate-warn { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink2); }
.ate-make .field input:focus { border-color: var(--c-seishin); }

/* 友達の答える画面 */
.ate-q { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.ate-q h2 { font-size: 18px; }
.ate-no { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--c-seishin); }
.ate-sub { font-size: 13.5px; color: var(--muted); }
.ate-pick { min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .12s, color .12s, border-color .12s; }
.ate-pick[aria-pressed="true"] { background: var(--c-seishin); border-color: var(--c-seishin); color: #fff; }
.ate-pick[disabled] { cursor: default; opacity: .45; }
.ate-ranges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ate-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.ate-age { font-family: var(--f-round); font-size: 17px; font-variant-numeric: tabular-nums; }
.ate-guess { font-weight: 700; }
.ate-guess b { font-family: var(--f-round); font-size: 20px; color: var(--c-seishin); margin-left: 4px; }
.ate-opts { display: grid; gap: 8px; }
.ate-opts .ate-pick { display: grid; gap: 2px; text-align: left; padding: 10px 14px; min-height: 48px; }
.ate-opts .ate-pick small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ate-opts .ate-pick[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.ate-opts .ate-pick .same-note { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.ate-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.ate-marks .ate-pick { border-radius: 999px; padding: 8px 14px; }
.ate-sees { margin-top: 16px; background: var(--c-seishin-t); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.ate-sees h2 { font-size: 16px; }
.ate-sees ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; color: var(--ink2); }
.ate-foot { margin-top: 22px; display: grid; gap: 4px; }
.ate-foot a { color: var(--ink2); font-weight: 700; }

/* 答え合わせ（精神年齢の結果と同じ部品だが、見出しから左にそろえる） */
.sn-result.ate-check { justify-items: stretch; text-align: left; }
.ate-again { font-size: clamp(22px, 6.2vw, 28px); justify-self: stretch; text-align: left; }
.ate-tier { justify-self: stretch; text-align: left; display: grid; gap: 4px; margin-top: 6px; }
.ate-tier b { font-family: var(--f-round); font-size: clamp(26px, 7.4vw, 32px); color: var(--c-seishin); line-height: 1.25; }
.ate-tier p { font-size: 16.5px; font-weight: 700; }
.ate-dir { justify-self: stretch; text-align: left; font-size: 15.5px; color: var(--ink2); }
.ate-check .note { justify-self: stretch; text-align: left; }
.ate-bonus { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.ate-bonus > span { font-size: 12.5px; color: var(--muted); }
.ate-bonus b { font-family: var(--f-round); }
.ate-bonus p { font-size: 14.5px; color: var(--ink2); }
.ate-bonus.hit { border-color: var(--c-seishin); }
.ate-bonus.hit p { color: var(--c-seishin); font-weight: 700; }
.ate-how { margin-top: 18px; }

/* 本人の画面 */
.ate-dots { display: flex; gap: 12px; justify-content: center; padding: 8px 0; }
.ate-dots i { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed var(--line); background: #fff; display: grid; place-items: center; font-style: normal; font-family: var(--f-round); font-weight: 700; color: var(--muted); }
.ate-dots i.on { border: 0; background: var(--c-seishin); color: #fff; }
.ate-callout { border-color: var(--c-seishin); }
.ate-owner { padding-top: 12px; }
.ate-facts { margin-top: 14px; }
.ate-facts .fact.wide { grid-column: 1 / -1; }
.ate-bars { display: grid; gap: 8px; }
.ate-bar { display: grid; grid-template-columns: minmax(5.6em, 7.4em) minmax(0, 1fr) 3.2em; gap: 10px; align-items: center; font-size: 14px; }
.ate-bar-name { font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; line-height: 1.3; }
.ate-bar-name em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--c-seishin); border-radius: 999px; padding: 1px 7px; }
.ate-bar-track { height: 12px; border-radius: 6px; background: #efefeb; overflow: hidden; }
.ate-bar-track i { display: block; height: 100%; border-radius: 6px; background: color-mix(in srgb, var(--c-seishin) 45%, #fff); }
.ate-bar.top .ate-bar-track i, .ate-bar.truth .ate-bar-track i { background: var(--c-seishin); }
.ate-bar b { text-align: right; font-family: var(--f-round); font-variant-numeric: tabular-nums; }
.ate-match { font-weight: 700; }
.ate-match.hit { color: var(--c-seishin); }
.ate-closed { font-weight: 700; color: var(--ink2); }

/* このページの共通の小さなボタンも、押しやすい 44px に（コピー・画像の形・自分用のリンク・消す） */
.ate-page .share-url button, .ate-page .seg button, .ate-page .linklike { min-height: 44px; }
.ate-page .danger-zone .linklike { padding: 0 2px; }
/* 見出しの下に入れる「友達を呼ぶ」ブロックは、上の余白を詰める */
.ate-page .section > .invite, .ate-page .callout > .invite { margin-top: 0; }

/* 入口のページ */
.ate-intro .rcard .num { font-size: clamp(76px, 24vw, 108px); }
/* 一番上のボタン（下の「まずは精神年齢診断から」「前回の結果で作る」へ飛ぶ）が1画面目に入るように、背の低いスマホでは見本の ?? も小さく（app.css の .sn-lead-card と同じ） */
@media (max-height: 640px) and (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .ate-intro .rcard .num { font-size: clamp(56px, 17vw, 76px); }
}
.ate-steps li::before { background: var(--c-seishin); }
.ate-mine a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.ate-mine a b { font-family: var(--f-round); }
@media (min-width: 560px) {
  .ate-ranges { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
