/* 11/11 参加の道（入口の作り直し。本人「ページ作り直した方がいい…デザインも含めて」）。
   サイト（app.js：ログイン・エントリー・/first・成績）と Discord のつなぐページ（discord/connect.js）で同じ形。色は変数だけ（asu-tokens.css） */
.rd { max-width: 480px; margin: 0 auto; padding: 4px 0 calc(32px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.rd *, .rd *::before { box-sizing: border-box; }

/* 上の番号の列：済んだ番号は丸に ✓、今の番号だけ光る */
.rd-rail { display: flex; list-style: none; margin: 0 0 20px; padding: 0; }
.rd-rail li { flex: 1; position: relative; height: 28px; }
.rd-rail li::before { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--asu-line); }
.rd-rail li:first-child::before { display: none; }
.rd-rail li.is-done::before, .rd-rail li.is-now::before { background: var(--asu-success); }
.rd-rail b { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto; border-radius: 50%;
  border: 2px solid var(--asu-line); background: var(--asu-bg); color: var(--asu-muted); font: 800 13px/1 var(--asu-font-num, inherit); }
.rd-rail .is-done b { border-color: var(--asu-success); background: var(--asu-success); color: var(--asu-bg); }
.rd-rail .is-now b { border-color: var(--asu-accent-ink); color: var(--asu-text); box-shadow: 0 0 0 4px var(--asu-accent-soft); }
.rd-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* だれの道か（役・ID・チーム） */
.rd-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.rd-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--asu-line);
  font-size: 12px; font-weight: 700; color: var(--asu-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-chip--role { border-color: transparent; background: var(--asu-accent-soft); color: var(--asu-accent-ink); }

/* 1画面に1つの問い */
.rd-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--asu-accent-ink); }
.rd-q { margin: 0 0 6px; font-size: 26px; line-height: 1.3; font-weight: 900; color: var(--asu-text); }
.rd-sub { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--asu-muted); }
.rd-q + .rd-body, .rd-q + form { margin-top: 20px; }
.rd-note { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--asu-muted); }
.rd-go { margin-top: 24px; }
.rd-back { display: flex; justify-content: center; margin-top: 8px; }
.rd-err { margin: 12px 0 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--asu-danger); min-height: 1em; }
.rd .asu-field, .rd-f { display: block; margin: 0 0 16px; }
.rd-f > label, .rd-lab { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--asu-text); }
.rd-f > label small, .rd-lab small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--asu-muted); }
.rd-f input, .rd-f textarea { width: 100%; font-size: 16px; }
.rd-count { display: block; margin-top: 4px; text-align: right; font-size: 12px; color: var(--asu-muted); }

/* 2つの入口（リーダー／メンバー）・できた後の「次にする事」 */
.rd-doors { display: grid; gap: 12px; margin: 20px 0 0; }
.rd-door { position: relative; display: block; padding: 16px 44px 16px 16px; border-radius: var(--asu-radius, 16px); border: 1px solid var(--asu-line);
  border-left: 4px solid var(--asu-accent-ink); background: var(--asu-surface); color: var(--asu-text); text-decoration: none; text-align: left; font: inherit; width: 100%; cursor: pointer; }
.rd-door b { display: block; font-size: 18px; font-weight: 900; }
.rd-door small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--asu-muted); }
.rd-door::after { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--asu-accent-ink); }
.rd-door:active { background: var(--asu-surface-2); }
.rd-door--warm { border-left-color: var(--asu-focus); }
.rd-door--warm::after { color: var(--asu-focus); }

/* 済んだ事の並び */
.rd-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.rd-list li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.6; color: var(--asu-text); }
.rd-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--asu-success); color: var(--asu-bg); font-size: 13px; font-weight: 900; }
.rd-list li.is-yet { color: var(--asu-muted); }
.rd-list li.is-yet::before { content: ''; background: transparent; border: 2px solid var(--asu-line); }

/* メンバーのトレーナーID の行（エントリー） */
.rd-idrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.rd-idrow .asu-input { flex: 1; min-width: 0; }
.rd-idrow i { flex: none; width: 24px; text-align: center; font: 800 13px/1 var(--asu-font-num, inherit); color: var(--asu-muted); font-style: normal; }
.rd-idrow__x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--asu-line); background: transparent; color: var(--asu-muted); font-size: 18px; cursor: pointer; }
.rd-add { margin-top: 12px; }
.rd-add[hidden] { display: none; }

/* 成績：スクショの枠（えらぶと、その下の数字を入れる所の上に大きく出る） */
.rd-sec { margin: 0 0 20px; padding: 16px; border-radius: var(--asu-radius, 16px); background: var(--asu-surface); border: 1px solid var(--asu-line); }
.rd-sec__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 900; color: var(--asu-text); }
.rd-sec__h button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--asu-line); background: transparent; color: var(--asu-accent-ink); font: 700 13px/1 inherit; cursor: pointer; }
.rd-shot { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 20 / 9; border-radius: 12px; border: 2px dashed var(--asu-line);
  background: var(--asu-bg); color: var(--asu-muted); font-size: 14px; font-weight: 700; overflow: hidden; cursor: pointer; }
.rd-shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rd-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.rd-shot.is-set { border-style: solid; border-color: var(--asu-success); }
.rd-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rd-num > span { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--asu-muted); }
.rd-num input { width: 100%; font-size: 16px; font-family: var(--asu-font-num, inherit); }
.rd-pick { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.rd-pick input { width: 100%; min-width: 0; font-size: 16px; padding-left: 10px; padding-right: 6px; }
.rd-pick__h { font-size: 12px; font-weight: 700; color: var(--asu-muted); margin-top: 12px; }

/* 成績のカード（出した後の見え方） */
.rd-card { margin: 20px 0 0; padding: 16px; border-radius: var(--asu-radius, 16px); background: var(--asu-surface); border: 1px solid var(--asu-line); border-left: 4px solid var(--asu-accent-ink); }
.rd-card__name { margin: 0; font-size: 20px; font-weight: 900; color: var(--asu-text); }
.rd-card__name small { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--asu-muted); }
.rd-card__title { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--asu-focus); }
.rd-card__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rd-card__two div { padding: 10px 12px; border-radius: 12px; background: var(--asu-bg); }
.rd-card__two span { display: block; font-size: 12px; font-weight: 700; color: var(--asu-muted); }
.rd-card__two b { display: block; margin-top: 2px; font: 900 22px/1.2 var(--asu-font-num, inherit); color: var(--asu-text); }
.rd-card__two b small { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--asu-muted); }
.rd-card__picks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.rd-card__picks li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--asu-text); }
.rd-card__picks li span:last-child { color: var(--asu-muted); font-family: var(--asu-font-num, inherit); white-space: nowrap; }
.rd-f .rd-note { display: block; }
.rd-f .c-pw { display: block; }
.rd-back .asu-btn, .rd-sec__h button { min-height: 44px; }

/* 11/14 デュオの締め切り（ゆな華杯） */
.rd-closed { display: grid; gap: 2px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 196, 77, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 196, 77, .6); font-size: .86rem; }
.rd-closed b { font-size: 1rem; color: #ffc44d; }
