/* ============================================================
   もすにゃん恋愛偏差値診断 v3 追加スタイル
   love-score.css の後に読み込む。既存の変数をそのまま使う。
   スマホ最優先（375〜430px）
   ============================================================ */

/* ===== 20秒タイマー ===== */
.timer {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 14px;
  margin: 0 -16px 12px;
  background: linear-gradient(180deg, rgba(20,7,10,0.97) 70%, rgba(20,7,10,0));
  backdrop-filter: blur(3px);
  font-weight: 900;
}
.timer-icon { font-size: 1.05rem; }
.timer-text { font-size: 0.82rem; color: rgba(255,246,236,0.7); letter-spacing: 0.06em; }
.timer-num {
  font-size: 2rem;
  line-height: 1;
  min-width: 2.2ch;
  text-align: right;
  color: var(--ls-gold-light);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, transform 0.15s ease;
}
.timer-unit { font-size: 0.9rem; color: rgba(255,246,236,0.7); }
.timer-bar {
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,246,236,0.14);
  overflow: hidden;
}
.timer-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ls-gold-light), var(--ls-orange));
  transition: width 0.1s linear;
}
.timer.is-warn .timer-num { color: var(--ls-orange); }
.timer.is-danger .timer-num { color: #FF9A3C; font-size: 2.4rem; }
.timer.is-danger .timer-bar > span { background: var(--ls-orange); }
.timer.is-critical .timer-num {
  color: #FF5A44; font-size: 2.9rem;
  animation: tick 0.5s steps(2) infinite;
}
.timer.is-critical .timer-bar > span { background: var(--ls-red); }
@keyframes tick { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); } }

/* ===== 進捗 ===== */
.progress { margin: 10px 0 4px; }
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.76rem; letter-spacing: 0.08em; margin-bottom: 6px;
}
.progress-label { font-weight: 900; color: var(--ls-gold-light); }
.progress-dungeon { color: rgba(255,246,236,0.6); }
.progress-bar { height: 6px; border-radius: 3px; background: rgba(255,246,236,0.14); overflow: hidden; }
.progress-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ls-gold), var(--ls-orange));
  transition: width 0.35s ease;
}
.progress.is-practical .progress-label { color: #FF9A3C; }
.progress.is-practical .progress-bar > span { background: linear-gradient(90deg, var(--ls-orange), var(--ls-red)); }

/* ===== 出題カード ===== */
.qcard { margin-bottom: 10px; }
.qcard-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.qcard-mos { flex-shrink: 0; width: 96px; }
.qcard-mos img, .qcard-mos svg { width: 100%; height: auto; display: block; }
.qcard-bubble {
  position: relative; flex: 1;
  background: var(--ls-paper); color: var(--ls-ink);
  border-radius: 14px; padding: 13px 15px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.6;
}
.qcard-bubble::before {
  content: ''; position: absolute; left: -9px; top: 22px;
  border: 6px solid transparent; border-right-color: var(--ls-paper);
}
.qcard-ask {
  font-weight: 900; font-size: 1.02rem; color: var(--ls-gold-light);
  margin: 12px 0 10px; text-align: center;
}
.line-bubble {
  position: relative;
  margin: 0 0 4px 24px;
  background: #2FB44E; color: #fff;
  border-radius: 16px; padding: 12px 15px;
  font-size: 0.95rem; line-height: 1.6; font-weight: 500;
}
.line-bubble::before {
  content: ''; position: absolute; left: -8px; top: 16px;
  border: 6px solid transparent; border-right-color: #2FB44E;
}
.line-who {
  display: block; font-size: 0.68rem; font-weight: 900;
  opacity: 0.85; letter-spacing: 0.1em; margin-bottom: 2px;
}
.line-note { font-size: 0.85rem; color: rgba(255,246,236,0.6); text-align: center; margin: 4px 0; }

.answers { display: grid; gap: 9px; }
.answer {
  width: 100%; font-family: inherit; text-align: left;
  background: var(--ls-paper); color: var(--ls-ink);
  border: 2.5px solid var(--ls-black-2); border-radius: 13px;
  padding: 14px 16px; font-size: 0.96rem; font-weight: 700; line-height: 1.55;
  cursor: pointer; box-shadow: 0 5px 0 rgba(20,7,10,0.5);
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 56px;
}
.answer:hover:not(:disabled) { background: #FFF4E2; border-color: var(--ls-red); }
.answer:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(20,7,10,0.5); }
.answer:disabled { opacity: 0.55; cursor: default; }

#quiz-foot { min-height: 44px; margin-top: 12px; }
.press, .reaction {
  text-align: center; font-weight: 900; color: var(--ls-gold-light);
  font-size: 0.95rem; animation: pop 0.3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.timeup { text-align: center; animation: pop 0.3s ease; }
.timeup-title { font-size: 1.5rem; font-weight: 900; color: #FF5A44; }
.timeup-sub { font-size: 0.92rem; color: var(--ls-cream); font-weight: 700; }

/* ===== FINAL BATTLE ===== */
#screen-battle { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.fb { position: relative; text-align: center; padding: 30px 0; animation: fbIn 0.5s ease; }
@keyframes fbIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.fb-flames {
  position: absolute; inset: -40px -20px;
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(255,122,24,0.55), transparent 70%),
    radial-gradient(70% 50% at 50% 0%, rgba(217,48,37,0.45), transparent 70%);
  animation: flame 1.1s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes flame { from { opacity: 0.6; transform: scaleY(0.96); } to { opacity: 1; transform: scaleY(1.04); } }
.fb-label {
  font-size: 1.05rem; font-weight: 900; letter-spacing: 0.16em;
  color: #FF9A3C; margin-bottom: 4px;
}
.fb-title {
  font-size: 2rem; font-weight: 900; line-height: 1.25;
  background: linear-gradient(180deg, var(--ls-gold-light), var(--ls-orange) 60%, var(--ls-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.fb-mos { width: 128px; margin: 0 auto 12px; }
.fb-mos img, .fb-mos svg { width: 100%; height: auto; display: block; }
.fb-line { font-size: 1.06rem; font-weight: 900; line-height: 1.6; }

/* ===== 結果：開封演出 ===== */
.rv { opacity: 0; transform: translateY(14px); }
.rv-in { animation: rvIn 0.42s ease forwards; }
@keyframes rvIn { to { opacity: 1; transform: none; } }

.card {
  background: rgba(255,251,244,0.06);
  border: 2px solid rgba(233,168,44,0.30);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
}
.card-weak { border-color: rgba(217,48,37,0.5); background: rgba(217,48,37,0.10); }
.sec-title {
  font-size: 0.95rem; font-weight: 900; letter-spacing: 0.06em;
  color: var(--ls-gold-light); margin-bottom: 12px;
  padding-left: 10px; border-left: 4px solid var(--ls-orange);
}

.rv-score { text-align: center; padding: 8px 0 18px; }
.result-lead { font-size: 0.95rem; font-weight: 700; color: rgba(255,246,236,0.8); }
.result-score { line-height: 1; margin: 2px 0 6px; }
.result-score-num {
  font-size: 6.2rem; font-weight: 900;
  background: linear-gradient(180deg, var(--ls-gold-light), var(--ls-orange) 55%, var(--ls-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(20,7,10,0.55));
}
.result-rank {
  display: inline-block; font-size: 1.2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--ls-orange), var(--ls-red));
  border: 3px solid var(--ls-gold-light); border-radius: 999px;
  padding: 8px 24px; box-shadow: 0 5px 0 var(--ls-red-dark);
}
.combat {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 16px; padding: 8px 18px;
  background: rgba(20,7,10,0.55); border: 2px solid rgba(233,168,44,0.5);
  border-radius: 12px;
}
.combat-label { font-size: 0.8rem; font-weight: 700; color: var(--ls-gold-light); }
.combat-num {
  font-size: 1.9rem; font-weight: 900; color: var(--ls-cream);
  font-variant-numeric: tabular-nums;
}

/* ===== 8ステータス ===== */
.stats { list-style: none; display: grid; gap: 9px; }
.stat {
  display: grid; grid-template-columns: 7.6em 1fr 2.6em;
  align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 700;
}
.stat-name { white-space: nowrap; }
.stat-bar {
  height: 11px; border-radius: 6px; background: rgba(255,246,236,0.14); overflow: hidden;
}
.stat-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ls-gold), var(--ls-orange));
  border-radius: 6px;
  animation: grow 0.8s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes grow { to { width: var(--v); } }
.stat.is-extra .stat-bar > i { background: linear-gradient(90deg, var(--ls-orange), var(--ls-red)); }
.stat-val { text-align: right; font-weight: 900; font-size: 1rem; color: var(--ls-gold-light); }
.stat.is-grade { grid-template-columns: 7.6em 2.4rem 1fr; }
/* ★バッジの大きさは rem で決める。em にすると親のfont-sizeが縮む狭い画面で
   列幅より大きくなり、右の説明文に重なってしまう（320pxで発生していた）。 */
.stat-grade {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 8px;
  font-weight: 900; font-size: 1.05rem; color: var(--ls-black);
}
.grade-S { background: linear-gradient(135deg, #FFE9A8, var(--ls-gold)); }
.grade-A { background: linear-gradient(135deg, #FFC97A, var(--ls-orange)); }
.grade-B { background: linear-gradient(135deg, #FFB39A, #E06A4A); color: #fff; }
.grade-C { background: rgba(255,246,236,0.28); color: var(--ls-cream); }
.grade-D { background: rgba(255,246,236,0.16); color: rgba(255,246,236,0.8); }
.stat-note { font-size: 0.76rem; font-weight: 500; color: rgba(255,246,236,0.65); }
.stat-type {
  margin-top: 12px; text-align: center; font-size: 0.85rem;
  font-weight: 900; color: var(--ls-gold-light);
}

/* ===== 恋愛傾向 ===== */
.insight { font-size: 0.92rem; line-height: 1.9; }

/* ===== 弱点 ===== */
.weak-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 12px; }
.weak-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.weak-mos { flex-shrink: 0; width: 92px; }
.weak-mos img, .weak-mos svg { width: 100%; height: auto; display: block; }
.weak-bubble {
  position: relative; flex: 1;
  background: var(--ls-paper); color: var(--ls-ink);
  border-radius: 14px; padding: 12px 14px; font-weight: 900; font-size: 0.96rem;
}
.weak-bubble::before {
  content: ''; position: absolute; left: -9px; top: 20px;
  border: 6px solid transparent; border-right-color: var(--ls-paper);
}
.weak-body { font-size: 0.9rem; line-height: 1.85; }
.mission {
  margin-top: 14px; padding: 13px 15px;
  border: 2px dashed var(--ls-gold); border-radius: 12px;
  background: rgba(233,168,44,0.10);
}
.mission-label { font-size: 0.78rem; font-weight: 900; color: var(--ls-gold-light); margin-bottom: 4px; }
.mission-text { font-size: 1.02rem; font-weight: 900; }

/* ===== もすにゃんの一撃 ===== */
.punch {
  text-align: center; margin-bottom: 14px; padding: 18px 16px;
  background: var(--ls-paper); color: var(--ls-ink);
  border-radius: 16px; box-shadow: 0 6px 0 rgba(20,7,10,0.55);
}
.punch-label {
  display: inline-block; font-size: 0.74rem; font-weight: 900;
  letter-spacing: 0.1em; color: var(--ls-red); margin-bottom: 6px;
}
.punch-text { font-size: 1.15rem; font-weight: 900; line-height: 1.6; }

/* ===== 称号 ===== */
.titles { list-style: none; display: grid; gap: 10px; }
.title-card {
  display: grid; grid-template-columns: 2.4em 1fr; gap: 4px 10px;
  align-items: center; padding: 11px 13px; border-radius: 12px;
  border: 2px solid rgba(233,168,44,0.35); background: rgba(20,7,10,0.4);
  position: relative; overflow: hidden;
}
.title-rar {
  position: absolute; top: 0; right: 0;
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 0 0 0 8px;
  background: rgba(255,246,236,0.2); color: var(--ls-cream);
}
.title-emoji { grid-row: span 2; font-size: 1.9rem; text-align: center; }
.title-name { font-size: 1.02rem; font-weight: 900; padding-right: 4.5em; }
.title-flavor { font-size: 0.76rem; color: rgba(255,246,236,0.72); }
.rar-RARE { border-color: rgba(90,190,255,0.6); background: rgba(30,90,140,0.28); }
.rar-RARE .title-rar { background: #2E86C1; }
.rar-SSR { border-color: rgba(200,130,255,0.7); background: rgba(90,40,140,0.30); }
.rar-SSR .title-rar { background: #8E44AD; }
.rar-LEGEND {
  border-color: var(--ls-gold-light);
  background: linear-gradient(135deg, rgba(233,168,44,0.28), rgba(217,48,37,0.28));
  box-shadow: 0 0 0 2px rgba(255,216,115,0.35);
}
.rar-LEGEND .title-rar { background: linear-gradient(90deg, var(--ls-gold), var(--ls-red)); }
.title-rest {
  margin-top: 11px; text-align: center; font-size: 0.82rem;
  color: rgba(255,246,236,0.72);
}
.title-rest b { color: var(--ls-gold-light); font-size: 1rem; }

/* ===== 順位 ===== */
.myrank {
  text-align: center; margin-bottom: 14px; padding: 16px;
  border: 2px solid rgba(233,168,44,0.45); border-radius: 16px;
  background: rgba(233,168,44,0.08);
}
.myrank-first { font-weight: 900; color: var(--ls-gold-light); margin-bottom: 6px; }
.myrank-compare {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  font-size: 0.8rem; margin-bottom: 8px; color: rgba(255,246,236,0.8);
}
.myrank-compare b { font-size: 1.1rem; color: var(--ls-cream); }
.myrank-compare .is-rank b { color: var(--ls-gold-light); }
.myrank-lead { font-size: 0.82rem; color: rgba(255,246,236,0.75); }
.myrank-main { font-size: 1.02rem; font-weight: 700; }
.myrank-total, .myrank-pos { font-size: 1.9rem; font-weight: 900; color: var(--ls-gold-light); }
.myrank-pct {
  display: inline-block; margin-top: 6px; padding: 4px 16px;
  border-radius: 999px; background: var(--ls-red); font-weight: 900; font-size: 0.9rem;
}
.ranking { list-style: none; display: grid; gap: 6px; }
.rank-row {
  display: grid; grid-template-columns: 2.4em 1fr 2.6em; align-items: center;
  gap: 8px; padding: 9px 11px; border-radius: 10px;
  background: rgba(20,7,10,0.4); font-size: 0.86rem; font-weight: 700;
}
.rank-pos { text-align: center; font-size: 1.05rem; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-dev { text-align: right; font-weight: 900; color: var(--ls-gold-light); font-size: 1.02rem; }
/* 2行目：呼び名（恋愛小隊長など）＋ 獲得称号（誘い上手など）＋ 戦闘力 */
.rank-title {
  grid-column: 2 / -1; font-size: 0.7rem; font-weight: 500; color: rgba(255,246,236,0.6);
  display: flex; justify-content: space-between; align-items: center; gap: 4px 8px;
  /* 3つ並ぶので、狭い画面では折り返して全部見えるようにする */
  flex-wrap: wrap; white-space: normal; min-width: 0;
}
.rank-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; min-width: 0;
}
.rank-rankname { color: rgba(255,246,236,0.72); }
/* 称号は呼び名と見分けが付くように、枠つきの小さなバッジにする */
.rank-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(255,246,236,0.28);
  background: rgba(255,246,236,0.06);
  font-weight: 700; color: rgba(255,246,236,0.85);
  line-height: 1.5;
}
.rank-badge.rar-RARE { border-color: rgba(90,190,255,0.6); color: #9ED8FF; background: rgba(30,90,140,0.28); }
.rank-badge.rar-SSR { border-color: rgba(200,130,255,0.7); color: #FFB4E1; background: rgba(90,40,140,0.30); }
.rank-badge.rar-LEGEND {
  border-color: var(--ls-gold-light); color: var(--ls-gold-light);
  background: rgba(233,168,44,0.18);
}
.rank-cp { flex: none; color: rgba(233,168,44,0.75); font-weight: 700; margin-left: auto; }

@media (max-width: 360px) {
  .rank-title { font-size: 0.66rem; }
  .rank-badge { padding: 1px 6px; }
}
.rank-row.is-top1 { background: linear-gradient(90deg, rgba(233,168,44,0.35), rgba(20,7,10,0.4)); }
.rank-row.is-top2 { background: linear-gradient(90deg, rgba(200,200,210,0.24), rgba(20,7,10,0.4)); }
.rank-row.is-top3 { background: linear-gradient(90deg, rgba(190,120,70,0.28), rgba(20,7,10,0.4)); }
.rank-row.is-me { outline: 2px solid var(--ls-gold-light); }
.rank-row.is-outside { border: 1px dashed rgba(233,168,44,0.5); background: transparent; }
.rank-note, .rank-skeleton, .rank-error {
  margin-top: 8px; text-align: center; font-size: 0.78rem; color: rgba(255,246,236,0.62);
}

/* ===== Instagram CTA ===== */
.insta {
  margin-bottom: 14px; padding: 18px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(214,41,118,0.22), rgba(255,122,24,0.20));
  border: 2px solid rgba(255,216,115,0.45);
}
.insta-label { font-size: 0.82rem; font-weight: 900; color: var(--ls-gold-light); margin-bottom: 10px; }
.insta-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.insta-mos { flex-shrink: 0; width: 76px; }
.insta-mos img, .insta-mos svg { width: 100%; height: auto; display: block; }
.insta-bubble {
  position: relative; flex: 1; background: var(--ls-paper); color: var(--ls-ink);
  border-radius: 13px; padding: 11px 13px; font-weight: 900; font-size: 0.94rem;
}
.insta-bubble::before {
  content: ''; position: absolute; left: -9px; top: 18px;
  border: 6px solid transparent; border-right-color: var(--ls-paper);
}
.insta-body { font-size: 0.88rem; margin-bottom: 12px; }
.btn-insta {
  background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF);
  color: #fff; border-color: #fff; box-shadow: 0 5px 0 rgba(20,7,10,0.55);
}
.insta-id { margin-top: 8px; text-align: center; font-size: 0.82rem; color: rgba(255,246,236,0.8); }
.insta-id b { color: var(--ls-gold-light); }

/* ===== 共有 ===== */
.share-preview {
  border-radius: 12px; overflow: hidden; margin-bottom: 12px;
  border: 2px solid rgba(233,168,44,0.35); background: var(--ls-black);
}
.share-preview canvas { width: 100%; height: auto; display: block; }
.share-note { margin-top: 8px; text-align: center; font-size: 0.76rem; color: rgba(255,246,236,0.6); }
.btn-gold {
  background: linear-gradient(135deg, var(--ls-gold-light), var(--ls-gold));
  color: var(--ls-black); border-color: var(--ls-black-2);
}
.btn-dark { background: #14181C; color: #fff; border-color: #fff; }

/* ===== MOST導線 ===== */
.most-cta {
  text-align: center; padding: 18px 16px; margin-bottom: 12px;
  border: 2px solid rgba(233,168,44,0.45); border-radius: 16px;
  background: rgba(233,168,44,0.08);
}
.most-label { font-size: 0.86rem; font-weight: 900; color: var(--ls-gold-light); }
.most-text { font-size: 1.02rem; font-weight: 900; margin: 8px 0 14px; line-height: 1.6; }
.most-note { margin-top: 8px; font-size: 0.74rem; color: rgba(255,246,236,0.6); }

/* ===== 入力画面の補助 ===== */
.field-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-hint.is-error { color: #FF9A8A; }
.entry-note { margin-top: 10px; text-align: center; font-size: 0.76rem; color: rgba(255,246,236,0.6); line-height: 1.7; }

/* ===== 小さい画面 ===== */
@media (max-width: 380px) {
  .qcard-mos { width: 78px; }
  .answer { font-size: 0.9rem; padding: 12px 13px; }
  .result-score-num { font-size: 5rem; }
  .stat { grid-template-columns: 6.8em 1fr 2.4em; font-size: 0.8rem; }
  .stat.is-grade { grid-template-columns: 6.8em 2.4rem 1fr; }
}

/* ===== 動きを減らす設定 ===== */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .rv-in, .stat-bar > i, .timer.is-critical .timer-num, .fb-flames { animation: none; }
  .stat-bar > i { width: var(--v); }
}

/* ============================================================
   友達への挑戦状（仕様§78）
   ============================================================ */
.challenge-banner {
  margin: 0 0 18px; padding: 16px 14px; text-align: center;
  border: 2px solid rgba(255,90,60,0.55); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,90,60,0.16), rgba(255,90,60,0.04));
  box-shadow: 0 0 22px rgba(255,90,60,0.18);
}
.ch-label { font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; color: #FFB4A2; }
.ch-from { margin-top: 6px; font-size: 1.02rem; font-weight: 900; }
.ch-from b { color: var(--ls-gold-light); }
.ch-stats { display: flex; justify-content: center; gap: 22px; margin: 12px 0 6px; }
.ch-stat { display: flex; flex-direction: column; gap: 2px; }
.ch-stat-label { font-size: 0.68rem; color: rgba(255,246,236,0.62); }
.ch-stat-num { font-size: 1.7rem; font-weight: 900; line-height: 1; color: var(--ls-gold-light); }
.ch-rankname { font-size: 0.86rem; font-weight: 700; color: rgba(255,246,236,0.86); }
.ch-call { margin-top: 8px; font-size: 0.94rem; font-weight: 900; color: #FF8A70; }

/* 結果画面の勝敗 */
.challenge-result { text-align: center; }
.challenge-result.is-win { border-color: rgba(233,168,44,0.6); background: rgba(233,168,44,0.09); }
.challenge-result.is-lose { border-color: rgba(120,130,160,0.45); background: rgba(120,130,160,0.08); }
.challenge-result.is-draw { border-color: rgba(255,246,236,0.3); }
.chr-head { font-size: 1.24rem; font-weight: 900; }
.challenge-result.is-win .chr-head { color: var(--ls-gold-light); }
.challenge-result.is-lose .chr-head { color: #AFB8CC; }
.chr-vs { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0 10px; }
.chr-side { display: flex; flex-direction: column; gap: 2px; min-width: 5.4em; }
.chr-name {
  font-size: 0.72rem; color: rgba(255,246,236,0.66);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chr-num { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.chr-vs-mark { font-size: 0.9rem; font-weight: 900; color: rgba(255,246,236,0.5); }
.chr-line { font-size: 0.86rem; line-height: 1.7; color: rgba(255,246,236,0.86); }

/* 挑戦URLの発行ブロック */
.challenge-link { margin-top: 10px; }
.chl-note { font-size: 0.76rem; color: rgba(255,246,236,0.68); margin-bottom: 6px; }
.chl-url {
  width: 100%; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid rgba(255,246,236,0.24); border-radius: 10px;
  background: rgba(0,0,0,0.32); color: #FFF6EC;
  font-size: 0.78rem; font-family: inherit;
}

/* ランキング対象外（サーバー判定） */
.myrank.is-norank { padding: 14px 12px; }
.myrank-norank {
  font-size: 0.86rem; line-height: 1.8; text-align: center;
  color: rgba(255,246,236,0.78);
}

/* ============================================================
   LINE公式アカウント導線（仕様§1〜§8）
   ★Instagram＝ピンク／LINE＝グリーン／MOST＝ゴールド。
     3枚の色を変えて「同じところへ3回誘導された」感を消す。
   ============================================================ */
.line-cta {
  background: linear-gradient(135deg, rgba(6,199,85,0.16), rgba(6,199,85,0.05));
  border-color: rgba(6,199,85,0.55);
}
.lcta-label { font-size: 0.82rem; font-weight: 900; color: #6FE6A5; margin-bottom: 10px; }
.lcta-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.lcta-mos { flex-shrink: 0; width: 72px; }
.lcta-mos img, .lcta-mos svg { width: 100%; height: auto; display: block; }
.lcta-bubble {
  position: relative; flex: 1; background: var(--ls-paper); color: var(--ls-ink);
  border-radius: 13px; padding: 11px 13px; font-weight: 900; font-size: 0.92rem;
}
.lcta-bubble::before {
  content: ''; position: absolute; left: -9px; top: 18px;
  border: 6px solid transparent; border-right-color: var(--ls-paper);
}
.lcta-body { font-size: 0.88rem; margin-bottom: 12px; }
.btn-line {
  background: linear-gradient(135deg, #06C755, #04A445);
  color: #fff; border-color: #fff; box-shadow: 0 5px 0 rgba(3,90,38,0.9);
}
.btn-line:hover { filter: brightness(1.06); }
.lcta-role {
  margin-top: 10px; text-align: center; font-size: 0.74rem; line-height: 1.7;
  color: rgba(255,246,236,0.62);
}

/* QR：スマホは控えめ、PCは大きく（仕様§5・§18） */
.lcta-qr { margin: 12px auto 0; text-align: center; }
.lcta-qr img {
  width: 140px; height: 140px; display: block; margin: 0 auto;
  background: #fff; border-radius: 10px; padding: 8px;
}
.lcta-qr-note { display: none; }

@media (min-width: 768px) {
  .lcta-qr img { width: 220px; height: 220px; padding: 12px; }
  .lcta-qr-note {
    display: block; margin-top: 8px; font-size: 0.8rem; font-weight: 700;
    color: rgba(255,246,236,0.78);
  }
}

/* ============================================================
   もすにゃんって誰？（TOP・仕様§10〜§11）
   ============================================================ */
.who {
  margin: 20px 0 14px; padding: 16px 14px; border-radius: 16px;
  background: rgba(255,251,244,0.05);
  border: 2px dashed rgba(233,168,44,0.45);
}
.who-title { font-size: 1rem; font-weight: 900; color: var(--ls-gold-light); margin-bottom: 12px; }
.who-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.who-mos { flex-shrink: 0; width: 78px; }
.who-mos img, .who-mos svg { width: 100%; height: auto; display: block; }
.who-lead { flex: 1; font-size: 0.88rem; font-weight: 700; line-height: 1.7; text-align: left; }
.who-body {
  font-size: 0.84rem; line-height: 1.8; text-align: left;
  color: rgba(255,246,236,0.82); margin-bottom: 12px;
}

/* 結果画面の小さな再導線（仕様§15） */
.link-profile {
  display: block; width: 100%; margin-top: 10px; padding: 6px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  color: rgba(255,216,115,0.85); text-decoration: underline;
}

/* ============================================================
   TOPページの全国TOP3（仕様§23）
   ============================================================ */
.toprank {
  margin: 10px auto 4px; padding: 12px 14px; max-width: 420px;
  border-radius: 14px; background: rgba(20,7,10,0.45);
  border: 1px solid rgba(233,168,44,0.35);
}
.toprank-title { font-size: 0.8rem; font-weight: 900; color: var(--ls-gold-light); margin-bottom: 8px; }
.toprank-list { list-style: none; display: grid; gap: 4px; }
.toprank-row {
  display: grid; grid-template-columns: 2em 1fr 2.6em; align-items: center;
  gap: 8px; font-size: 0.84rem; font-weight: 700;
}
.toprank-pos { text-align: center; }
.toprank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.toprank-dev { text-align: right; font-weight: 900; color: var(--ls-gold-light); }
.toprank-note { margin-top: 8px; font-size: 0.72rem; color: rgba(255,246,236,0.6); }

/* ============================================================
   プロフィールモーダル（仕様§12）
   ============================================================ */
body.is-modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,3,5,0.82); }
.modal-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--ls-black-2); color: var(--ls-cream);
  border: 2px solid rgba(233,168,44,0.5); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: modalIn 0.24s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.modal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 10px; border-bottom: 1px solid rgba(233,168,44,0.28);
}
.modal-title { flex: 1; font-size: 0.94rem; font-weight: 900; color: var(--ls-gold-light); }
.modal-close {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,246,236,0.1); border: 1px solid rgba(255,246,236,0.3);
  color: var(--ls-cream); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: rgba(255,246,236,0.2); }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 4px; }
.modal-foot { padding: 10px 14px 14px; border-top: 1px solid rgba(233,168,44,0.2); }

.pf-figure { margin-bottom: 14px; }
.pf-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; background: #FFF8EE;
}
.pf-text { display: grid; gap: 8px; }
.pf-row { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; align-items: baseline; }
.pf-key {
  font-size: 0.76rem; font-weight: 900; color: var(--ls-gold-light);
  border-left: 3px solid var(--ls-orange); padding-left: 7px;
}
.pf-val { font-size: 0.86rem; line-height: 1.8; }
.pf-li { display: block; }
.pf-catch {
  margin-top: 14px; padding: 12px; text-align: center;
  font-size: 0.96rem; font-weight: 900; color: var(--ls-gold-light);
  background: rgba(233,168,44,0.1); border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .modal-panel { animation: none; }
}

/* ============================================================
   もすにゃん杯（月例キャンペーン）
   ============================================================ */
.cp {
  margin: 16px 0 14px; padding: 16px 14px; border-radius: 18px; text-align: center;
  background: linear-gradient(160deg, rgba(233,168,44,0.20), rgba(217,48,37,0.16));
  border: 2px solid var(--ls-gold-light);
  box-shadow: 0 0 26px rgba(233,168,44,0.22);
}
.cp.is-ended { border-color: rgba(255,246,236,0.3); background: rgba(255,251,244,0.05); box-shadow: none; }
.cp-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(20,7,10,0.55); border: 1px solid rgba(255,216,115,0.55);
  font-size: 0.74rem; font-weight: 900; color: var(--ls-gold-light);
}
.cp-name {
  margin-top: 10px; font-size: 1.32rem; font-weight: 900; line-height: 1.3;
  background: linear-gradient(180deg, var(--ls-gold-light), var(--ls-orange) 60%, var(--ls-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* .cp-lead はファイル末尾で定義（賞品の一言を大きく見せるため） */
.cp-title { margin-top: 2px; font-size: 1rem; font-weight: 900; }
.cp-points { list-style: none; display: grid; gap: 5px; margin: 12px 0 10px; }
.cp-points li {
  padding: 7px 10px; border-radius: 10px; background: rgba(20,7,10,0.4);
  font-size: 0.86rem; font-weight: 700;
}
.cp-joined { margin-top: 8px; font-size: 0.8rem; color: rgba(255,246,236,0.78); }
.cp-joined b { color: var(--ls-gold-light); font-size: 1.02rem; }
.cp-tagline { margin-top: 8px; font-size: 0.94rem; font-weight: 900; color: var(--ls-gold-light); }
.cp-ended-note { margin: 10px 0; font-size: 0.84rem; line-height: 1.7; color: rgba(255,246,236,0.8); }
.cp-free { margin-top: 8px; font-size: 0.7rem; line-height: 1.6; color: rgba(255,246,236,0.6); }
.btn-sm { margin-top: 10px; padding: 9px 14px; font-size: 0.84rem; }

/* カウントダウン */
.cd {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 10px 0; padding: 9px 10px; border-radius: 12px;
  background: rgba(20,7,10,0.5); border: 1px solid rgba(255,216,115,0.35);
}
.cd-label { font-size: 0.74rem; font-weight: 700; color: rgba(255,246,236,0.78); }
.cd-value {
  font-size: 1.18rem; font-weight: 900; letter-spacing: 0.02em; color: var(--ls-gold-light);
  font-variant-numeric: tabular-nums;
}
.cd.is-warn { border-color: var(--ls-orange); }
.cd.is-warn .cd-label, .cd.is-warn .cd-value { color: var(--ls-orange); }
.cd.is-critical { border-color: var(--ls-red); background: rgba(217,48,37,0.18); }
.cd.is-critical .cd-label, .cd.is-critical .cd-value { color: #FF8A70; }
.cd.is-critical .cd-value { animation: cdPulse 1s ease-in-out infinite; }
@keyframes cdPulse { 50% { opacity: 0.55; } }

/* 入力画面の「初回だけが記録される」 */
.cp-notice {
  margin-bottom: 14px; padding: 13px 12px; border-radius: 14px;
  background: rgba(255,122,24,0.10); border: 1px dashed rgba(255,122,24,0.55);
}
.cp-notice-title { font-size: 0.86rem; font-weight: 900; line-height: 1.6; color: var(--ls-gold-light); }
.cp-notice-body { display: flex; align-items: center; gap: 9px; margin: 8px 0 6px; }
.cp-notice-mos { flex: none; width: 54px; }
.cp-notice-mos img, .cp-notice-mos svg { width: 100%; height: auto; display: block; }
.cp-notice-line {
  flex: 1; background: var(--ls-paper); color: var(--ls-ink);
  border-radius: 11px; padding: 8px 11px; font-size: 0.86rem; font-weight: 900;
}
.cp-notice-sub { font-size: 0.72rem; line-height: 1.7; color: rgba(255,246,236,0.66); }

/* 大会ルールのモーダル */
.cr-sec { margin-bottom: 16px; }
.cr-head {
  font-size: 0.9rem; font-weight: 900; color: var(--ls-gold-light);
  padding-left: 8px; border-left: 3px solid var(--ls-orange); margin-bottom: 7px;
}
.cr-period { font-size: 0.96rem; font-weight: 900; }
.cr-note, .cr-list { font-size: 0.82rem; line-height: 1.85; color: rgba(255,246,236,0.86); }
.cr-list { list-style: none; display: grid; gap: 6px; }
.cr-list li { padding-left: 1em; text-indent: -1em; }
.cr-list li::before { content: '・'; }
.cr-list b { color: var(--ls-gold-light); }
.cr-prizes { list-style: none; display: grid; gap: 4px; }
.cr-prizes li {
  display: grid; grid-template-columns: 2.6em 1fr; gap: 8px; align-items: center;
  padding: 6px 9px; border-radius: 8px; background: rgba(20,7,10,0.4); font-size: 0.84rem;
}
.cr-rank { text-align: center; font-weight: 900; }
.cr-prize { font-weight: 700; }
.cr-disclaimer {
  margin-top: 14px; padding: 10px; border-radius: 10px;
  background: rgba(255,246,236,0.06);
  font-size: 0.68rem; line-height: 1.75; color: rgba(255,246,236,0.6);
}
.cr-terms { margin-top: 10px; text-align: center; font-size: 0.8rem; }
.cr-terms a { color: var(--ls-gold-light); }

/* 結果画面の大会パネル */
.cup { border-color: rgba(233,168,44,0.55); }
.cup-name { text-align: center; font-size: 0.86rem; font-weight: 900; color: var(--ls-gold-light); margin-bottom: 8px; }
.cup-registered {
  text-align: center; font-size: 0.86rem; font-weight: 900; color: var(--ls-gold-light);
  margin-bottom: 6px;
}
.cup-note {
  text-align: center; font-size: 0.76rem; line-height: 1.7;
  color: rgba(255,246,236,0.68); margin-bottom: 8px;
}
.cup-rank { text-align: center; font-size: 1rem; font-weight: 700; margin: 6px 0; }
.cup-rank-total { font-size: 1.5rem; font-weight: 900; color: var(--ls-gold-light); }
.cup-rank-pos { font-size: 2.2rem; font-weight: 900; color: var(--ls-gold-light); }
.cup-title {
  text-align: center; font-size: 0.94rem; font-weight: 900; margin: 4px 0 10px;
}
.cup-rarity {
  display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 900; background: rgba(20,7,10,0.5);
}
.cup-gap {
  margin: 10px 0; padding: 12px 10px; border-radius: 12px; text-align: center;
  background: rgba(20,7,10,0.4); border: 1px solid rgba(255,216,115,0.35);
}
.cup-gap.is-in { border-color: var(--ls-gold-light); background: rgba(233,168,44,0.12); }
.cup-vs { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.cup-side { display: flex; flex-direction: column; gap: 2px; min-width: 5.6em; }
.cup-side span { font-size: 0.7rem; color: rgba(255,246,236,0.66); }
.cup-side b { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.cup-vs-mark { font-size: 0.86rem; font-weight: 900; color: rgba(255,246,236,0.5); }
.cup-gap-main { font-size: 1rem; font-weight: 900; color: var(--ls-gold-light); }
.cup-gap-mosu { margin-top: 4px; font-size: 0.82rem; color: rgba(255,246,236,0.82); }
.cup-border {
  margin-top: 9px; text-align: center; font-size: 0.82rem; font-weight: 700;
  color: rgba(255,246,236,0.8);
}
.cup-border b { font-size: 1.1rem; color: var(--ls-gold-light); }
.cup-border.is-all { color: var(--ls-gold-light); font-weight: 900; }
.cup-badge-title { font-weight: 700; }
.cup-badge-title.rar-LEGEND, .cup-title.rar-LEGEND { color: var(--ls-gold-light); }
.cup-badge-title.rar-SSR, .cup-title.rar-SSR { color: #FFB4E1; }
.cup-badge-title.rar-RARE, .cup-title.rar-RARE { color: #9ED8FF; }

@media (max-width: 380px) {
  .cp-name { font-size: 1.16rem; }
  .cd-value { font-size: 1.04rem; }
  .cup-rank-pos { font-size: 1.9rem; }
  .cup-side b { font-size: 1.6rem; }
}

/* ===== 3人撃破チャレンジ ===== */
.bt { border-color: rgba(255,122,24,0.5); }
.bt.is-done {
  border-color: var(--ls-gold-light);
  background: linear-gradient(160deg, rgba(233,168,44,0.18), rgba(217,48,37,0.10));
  box-shadow: 0 0 24px rgba(233,168,44,0.22);
}
.bt-last {
  text-align: center; font-size: 0.94rem; font-weight: 900;
  padding: 8px; border-radius: 10px; margin-bottom: 10px;
}
.bt-last.is-win { color: var(--ls-gold-light); background: rgba(233,168,44,0.14); }
.bt-last.is-lose { color: #AFB8CC; background: rgba(120,130,160,0.14); }
.bt-last.is-draw { color: rgba(255,246,236,0.85); background: rgba(255,246,236,0.08); }
.bt-lead { text-align: center; font-size: 0.8rem; color: rgba(255,246,236,0.72); }
.bt-count { text-align: center; font-size: 1.02rem; font-weight: 700; margin: 2px 0 8px; }
.bt-count b { font-size: 2.2rem; font-weight: 900; color: var(--ls-gold-light); }
.bt-slash { color: rgba(255,246,236,0.45); margin: 0 2px; }
.bt-gauge { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.bt-cell {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 1.4rem;
  background: rgba(20,7,10,0.45); border: 2px dashed rgba(255,246,236,0.25);
  color: rgba(255,246,236,0.35);
}
.bt-cell.is-on {
  border-style: solid; border-color: var(--ls-gold-light);
  background: linear-gradient(160deg, rgba(233,168,44,0.35), rgba(217,48,37,0.2));
  color: #fff;
}
.bt-remain { text-align: center; font-size: 0.98rem; font-weight: 900; color: var(--ls-gold-light); }
.bt-start { text-align: center; font-size: 0.84rem; margin: 6px 0 10px; color: rgba(255,246,236,0.82); }
.bt-note { margin-top: 9px; text-align: center; font-size: 0.7rem; line-height: 1.7; color: rgba(255,246,236,0.58); }
.bt-done { margin: 10px 0 12px; text-align: center; }
.bt-done-title { font-size: 1.3rem; font-weight: 900; color: var(--ls-gold-light); }
.bt-done-sub { margin-top: 2px; font-size: 1rem; font-weight: 900; }
.bt-prize {
  display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(20,7,10,0.5); border: 1px solid rgba(255,216,115,0.5);
  font-size: 0.84rem; font-weight: 700;
}
.bt-done-mosu { margin-top: 10px; font-size: 0.9rem; font-weight: 700; color: rgba(255,246,236,0.88); }
.bt-card {
  margin: 12px auto 10px; max-width: 300px; border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(233,168,44,0.4);
}
.bt-card canvas { width: 100%; height: auto; display: block; }

/* ===== プレゼント応募 ===== */
.ap { border-color: rgba(255,246,236,0.25); }
.ap.is-eligible {
  border-color: var(--ls-gold-light);
  background: linear-gradient(160deg, rgba(233,168,44,0.16), rgba(233,168,44,0.04));
}
.ap-none { text-align: center; font-size: 0.94rem; font-weight: 900; }
.ap-how { margin-top: 6px; text-align: center; font-size: 0.84rem; color: rgba(255,246,236,0.78); }
.ap-badge {
  text-align: center; font-size: 1rem; font-weight: 900; color: var(--ls-gold-light);
  padding: 9px; border-radius: 10px; background: rgba(233,168,44,0.12); margin-bottom: 6px;
}
.ap-note { text-align: center; font-size: 0.72rem; line-height: 1.7; color: rgba(255,246,236,0.62); }
.ap-error { text-align: center; font-size: 0.8rem; color: #FF9A8A; padding: 8px 0; }
.ap-code-box {
  margin: 12px 0; padding: 14px 12px; border-radius: 14px; text-align: center;
  background: rgba(20,7,10,0.55); border: 2px solid var(--ls-gold-light);
}
.ap-code-label { font-size: 0.74rem; font-weight: 700; color: rgba(255,246,236,0.72); }
.ap-code {
  margin: 6px 0 10px; font-size: 1.9rem; font-weight: 900; letter-spacing: 0.12em;
  color: var(--ls-gold-light); font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.ap-secret { margin-top: 9px; font-size: 0.68rem; line-height: 1.7; color: #FFB4A2; }
.ap-steps {
  margin: 12px 0; padding: 12px; border-radius: 12px;
  background: rgba(20,7,10,0.35); border: 1px dashed rgba(255,216,115,0.4);
}
.ap-steps-title { font-size: 0.82rem; font-weight: 900; color: var(--ls-gold-light); margin-bottom: 6px; }
.ap-step-list { list-style: none; counter-reset: apstep; display: grid; gap: 7px; }
.ap-step-list li {
  counter-increment: apstep; position: relative; padding-left: 1.9em;
  font-size: 0.84rem; line-height: 1.7;
}
.ap-step-list li::before {
  content: counter(apstep); position: absolute; left: 0; top: 0.1em;
  width: 1.4em; height: 1.4em; border-radius: 50%;
  background: var(--ls-gold); color: var(--ls-black);
  font-size: 0.74rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.ap-step-list b { color: var(--ls-gold-light); }
.ap-deadline { margin-top: 10px; text-align: center; font-size: 0.8rem; font-weight: 700; }
.ap-free { margin-top: 8px; text-align: center; font-size: 0.68rem; line-height: 1.6; color: rgba(255,246,236,0.58); }

/* ===== キャンペーン規約ページ ===== */
.terms { padding-bottom: 60px; }
.terms-title {
  font-size: 1.3rem; font-weight: 900; text-align: center; margin: 18px 0 14px;
  color: var(--ls-gold-light);
}
.terms-lead { font-size: 0.86rem; line-height: 1.9; color: rgba(255,246,236,0.88); }
.terms-free {
  margin: 14px 0 20px; padding: 13px; border-radius: 12px;
  background: rgba(233,168,44,0.12); border: 1px solid var(--ls-gold-light);
  font-size: 0.86rem; line-height: 1.8;
}
.terms-free b { color: var(--ls-gold-light); }
.terms-sec { margin-bottom: 22px; }
.terms-sec h2 {
  font-size: 0.98rem; font-weight: 900; color: var(--ls-gold-light);
  padding-left: 9px; border-left: 4px solid var(--ls-orange); margin-bottom: 8px;
}
.terms-sec p, .terms-sec li { font-size: 0.84rem; line-height: 1.9; color: rgba(255,246,236,0.88); }
.terms-sec ul, .terms-sec ol { padding-left: 1.4em; display: grid; gap: 4px; }
.terms-sec ul { list-style: disc; }
.terms-sec ol { list-style: decimal; }
.terms-sec b { color: var(--ls-gold-light); }
.terms-note { margin-top: 8px; font-size: 0.78rem !important; color: rgba(255,246,236,0.72) !important; }
.terms-disclaimer {
  margin-top: 26px; padding: 14px; border-radius: 12px;
  background: rgba(255,246,236,0.06);
  font-size: 0.72rem; line-height: 1.8; color: rgba(255,246,236,0.66);
}
.terms-disclaimer p + p { margin-top: 8px; }
.terms-back { margin-top: 24px; text-align: center; font-size: 0.86rem; }
.terms-back a { color: var(--ls-gold-light); }

/* ============================================================
   共通サイトナビ（道場・初参加ガイドと同じ形）
   ============================================================ */
.ls-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  max-width: none;
  padding: 0;
  background: rgba(20, 7, 10, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 246, 236, 0.16);
}
.ls-head-in {
  max-width: var(--ls-max);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ls-header .ls-logo {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ls-cream);
  border-bottom: 0;
  padding: 8px 2px;
  white-space: nowrap;
  text-decoration: none;
}
.ls-header .ls-logo:hover { color: var(--ls-gold-light); }

.ls-sitenav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ls-sitenav::-webkit-scrollbar { display: none; }
.ls-sitenav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 246, 236, 0.16);
  border-radius: 999px;
  background: rgba(255, 246, 236, 0.05);
  color: var(--ls-cream);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ls-sitenav a:hover, .ls-sitenav a:focus-visible {
  border-color: var(--ls-gold);
  color: var(--ls-gold-light);
}
.ls-sitenav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--ls-red), var(--ls-red-dark));
  border-color: transparent;
  color: #FFF;
}

/* 出題中のタイマーがヘッダーに隠れないようにする */
.timer { top: 56px; }

@media (max-width: 359px) {
  .ls-header .ls-logo { font-size: 0.9rem; }
  .ls-sitenav a { padding: 0 9px; font-size: 0.72rem; }
}

/* ============================================================
   もすにゃん杯カードを目立たせる（背景に埋もれる問題の対策）
   ------------------------------------------------------------
   ページ背景が「暗い赤茶」なので、同系色の半透明パネルだと
   境界が見えなくなっていた。
   → カード側を「ほぼ黒」にして、金〜赤のグラデーション枠と
     外側の光で、背景から完全に切り離す。
   ★ここは love-score-v3.css の最後なので、上の .cp 定義を上書きします
   ============================================================ */
.cp {
  position: relative;
  margin: 22px 0 14px;
  padding: 22px 14px 16px;
  border-radius: 20px;
  border: 2px solid transparent;
  /* 内側＝ほぼ黒 / 外周＝金〜赤のグラデーション枠 */
  background:
    linear-gradient(180deg, #0C0507 0%, #170A0C 100%) padding-box,
    linear-gradient(135deg, #FFD873 0%, #FF7A18 40%, #D93025 70%, #FFD873 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(255, 122, 24, 0.30);
  animation: cpGlow 3s ease-in-out infinite alternate;
}
@keyframes cpGlow {
  from { box-shadow: 0 0 0 1px rgba(0,0,0,0.55), 0 14px 40px rgba(0,0,0,0.55), 0 0 24px rgba(255,122,24,0.22); }
  to   { box-shadow: 0 0 0 1px rgba(0,0,0,0.55), 0 14px 40px rgba(0,0,0,0.55), 0 0 46px rgba(255,122,24,0.45); }
}

/* 「開催中 ● 大会終了まで ◯日◯時間」の帯（2026-08-22 作り直し）
   ★以前はCSSの飾り（::before）で「開催中」だけを出し、
     残り時間はカードの下に別の行として出していた。
     ご指示により、帯の中に横一列でまとめる。
   ★1秒ごとに書き換えるので本物の要素にしている。
   ★絶対に改行させない。狭い画面では文字を縮めて1行に収める。 */
.cp-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 7px;
  max-width: calc(100% - 16px);
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF7A18, #D93025);
  color: #FFF;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(217, 48, 37, 0.6);
}
.cp-ribbon-now {
  font-size: 0.95rem; font-weight: 900; letter-spacing: 0.1em;
}
.cp-ribbon-sep { font-size: 0.5rem; opacity: 0.7; }
.cp-ribbon .cd-label { font-size: 0.74rem; font-weight: 700; opacity: 0.95; }
.cp-ribbon .cd-value {
  font-size: 0.92rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
/* 残り24時間 / 3時間で色を変える（今までと同じ考え方） */
.cp-ribbon.is-warn { background: linear-gradient(180deg, #FF9A18, #E5501F); }
.cp-ribbon.is-critical {
  background: linear-gradient(180deg, #FF3B30, #B3160D);
  animation: cpGlow 1.4s ease-in-out infinite alternate;
}
.cp-ribbon.is-ended {
  background: rgba(255, 246, 236, 0.22);
  box-shadow: none;
}

/* 狭い画面でも1行に収める */
@media (max-width: 400px) {
  .cp-ribbon { gap: 5px; padding: 5px 12px; }
  .cp-ribbon-now { font-size: 0.86rem; letter-spacing: 0.04em; }
  .cp-ribbon .cd-label { font-size: 0.66rem; }
  .cp-ribbon .cd-value { font-size: 0.82rem; }
}
@media (max-width: 340px) {
  .cp-ribbon { gap: 4px; padding: 5px 9px; }
  .cp-ribbon-now { font-size: 0.8rem; }
  .cp-ribbon .cd-label { font-size: 0.6rem; }
  .cp-ribbon .cd-value { font-size: 0.76rem; }
}

/* 賞品の一言。押すと大会ルールが開く */
.cp-lead.is-clickable { cursor: pointer; transition: transform .1s, filter .15s; }
.cp-lead.is-clickable:hover { filter: brightness(1.08); }
.cp-lead.is-clickable:active { transform: scale(0.99); }
.cp-lead.is-clickable:focus-visible {
  outline: 2px solid var(--ls-gold-light); outline-offset: 3px;
}
.cp.is-ended {
  border: 2px solid rgba(255, 246, 236, 0.28);
  background: #120A0B;
  box-shadow: none;
  animation: none;
}

/* バッジは塗りにして、黒地からしっかり浮かせる */
.cp-badge {
  background: linear-gradient(180deg, #FFE9AE, #E9A82C);
  border: 0;
  color: #14070A;
  box-shadow: 0 2px 8px rgba(233, 168, 44, 0.35);
}

.cp-title { margin-top: 4px; font-size: 1.05rem; }

/* 特典の2行。黒地の上でも読めるよう、金の枠つきカードにする */
.cp-points { gap: 8px; margin: 14px 0 12px; }
.cp-points li {
  position: relative;
  padding: 11px 12px 11px 16px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(233, 168, 44, 0.30), rgba(217, 48, 37, 0.20));
  border: 1px solid rgba(255, 216, 115, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  font-weight: 900;
  color: #FFF6EC;
}
/* 行の左端に金の帯を入れて、2つの特典が並んでいることを分かりやすくする */
.cp-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ls-gold-light), var(--ls-orange));
}

/* カウントダウンは、この中で一番強く見せる */
.cd {
  margin: 12px 0;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 216, 115, 0.10);
  border: 2px solid rgba(255, 216, 115, 0.55);
  box-shadow: inset 0 0 24px rgba(233, 168, 44, 0.14);
}
.cd-label { font-size: 0.76rem; color: var(--ls-gold-light); }
.cd-value {
  font-size: 1.5rem;
  text-shadow: 0 0 16px rgba(233, 168, 44, 0.55);
}

.cp-joined { margin-top: 10px; font-size: 0.84rem; }
.cp-tagline { margin-top: 10px; font-size: 1rem; }

/* ルールを見るボタンも、黒地で埋もれないように枠をはっきりさせる */
.cp .btn-ghost {
  border-color: rgba(255, 216, 115, 0.5);
  background: rgba(255, 246, 236, 0.04);
  color: var(--ls-cream);
}
.cp-free { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .cp { animation: none; }
}

/* =========================================================
   再挑戦パネル（無制限再挑戦 / 自己ベスト更新）
   ★結果画面のいちばん上に出るCTA。
   ★320px幅でも崩れないように、数値は折り返し可能な横並びにする。
   ========================================================= */
.rtk { text-align: center; }

.rtk-badge {
  display: inline-block; margin: 0 auto 10px;
  padding: 5px 16px; border-radius: 999px;
  background: rgba(20,7,10,0.45); border: 1px solid rgba(255,214,138,0.45);
  font-weight: 900; font-size: 0.88rem; color: var(--ls-cream);
}
.rtk-badge.is-new {
  background: var(--ls-red); border-color: var(--ls-gold-light);
  color: #FFF6EC;
}

.rtk-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 10px;
}
.rtk-cell {
  flex: 1 1 84px; min-width: 84px; max-width: 140px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; border-radius: 11px;
  background: rgba(20,7,10,0.4);
}
.rtk-cell i {
  font-style: normal; font-size: 0.72rem; font-weight: 700;
  color: rgba(255,246,236,0.75);
}
.rtk-cell b { font-size: 1.5rem; font-weight: 900; color: var(--ls-cream); line-height: 1.1; }
.rtk-cell.is-best b { color: var(--ls-gold-light); }
.rtk-cell.is-cup b { color: var(--ls-orange); }
.rtk-cell.is-diff.is-up b { color: #7BE3A0; }
.rtk-cell.is-diff.is-down b { color: rgba(255,246,236,0.6); }

.rtk-grown, .rtk-advice {
  font-size: 0.84rem; line-height: 1.6; margin-bottom: 8px;
  color: rgba(255,246,236,0.9);
}
.rtk-grown b, .rtk-advice b { color: var(--ls-gold-light); font-weight: 900; }

.rtk .btn { margin-top: 4px; }
.rtk-note {
  margin-top: 8px; font-size: 0.72rem; line-height: 1.55;
  color: rgba(255,246,236,0.65);
}

@media (max-width: 360px) {
  .rtk-cell { flex-basis: 72px; min-width: 72px; padding: 7px 4px; }
  .rtk-cell b { font-size: 1.28rem; }
}

/* =========================================================
   もすにゃん杯 参加手順（Instagram → LINE → 挑戦）
   ★1・2を押していなくても3から参加できます。
     見た目でも「順番の案内」であって「関門」ではないと分かるよう、
     3つを同じ大きさで等しく並べています。
   ========================================================= */

/* 賞品が限定であることのバッジ。参加そのものは限定ではない */
.cp-limited {
  margin: 10px auto 0;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE9AE, #E9A82C);
  color: #14070A;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(233, 168, 44, 0.4);
}

.cps {
  margin-top: 14px;
  padding: 14px 12px 12px;
  border-radius: 14px;
  background: rgba(20, 7, 10, 0.42);
  border: 1px solid rgba(255, 216, 115, 0.35);
  text-align: left;
}
.cps-lead {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--ls-gold-light);
  margin-bottom: 12px;
}
.cps-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.cps-item { margin: 0; }
.cps-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
}
.cps-no {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: linear-gradient(180deg, #FFE9AE, #E9A82C);
  color: #14070A;
  font-size: 0.86rem; font-weight: 900;
}
.cps-title {
  font-size: 0.9rem; font-weight: 900; color: #FFF6EC;
  /* 320pxでも折り返して収まるようにする */
  min-width: 0; word-break: break-word;
}
.cps-btn {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  /* 長い文言でも押しつぶされないよう、折り返しを許す */
  white-space: normal; line-height: 1.35;
  padding-left: 10px; padding-right: 10px;
}
/* 矢印は文字と同じ流れに置く（別要素として横に並べない） */
.cps-label { display: inline; }
.cps-ext { font-size: 0.82em; opacity: 0.9; }

.cps-notice {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 216, 115, 0.10);
  border: 1px solid rgba(255, 216, 115, 0.4);
  font-size: 0.78rem; line-height: 1.6; font-weight: 700;
  color: #FFF6EC;
}
.cps-open, .cps-ext-note {
  margin-top: 7px;
  font-size: 0.72rem; line-height: 1.6;
  color: rgba(255, 246, 236, 0.7);
}

/* 読み上げだけに使う文字（画面には出さない） */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 320px でも1行に収めたいので、狭い画面では素直に小さくする */
@media (max-width: 380px) {
  .cps { padding: 12px 8px 10px; }
  .cps-btn { font-size: 0.82rem; padding-left: 6px; padding-right: 6px; }
  .cps-title { font-size: 0.84rem; }
  .cps-no { width: 1.45rem; height: 1.45rem; font-size: 0.8rem; }
  .cp-limited { font-size: 0.74rem; padding: 6px 11px; }
}
@media (max-width: 340px) {
  .cps-btn { font-size: 0.76rem; padding-left: 4px; padding-right: 4px; }
}

/* 「当選候補」であって当選確定ではないことの注意書き */
.cup-candidate, .ap-candidate {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 246, 236, 0.06);
  border: 1px solid rgba(255, 216, 115, 0.35);
  font-size: 0.74rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 246, 236, 0.86);
  text-align: left;
}

/* ============================================================
   もすにゃん杯カードの配色（2026-08-20）
   ------------------------------------------------------------
   「黒くて目立たない」というご指摘への対応。
   カードの内側を “ほぼ黒” から “濃い赤” に変え、
   ページ背景（暗い赤茶）から浮かせつつ、文字は生成りで読めるようにする。
   ★中の小パネル（特典・カウントダウン・参加手順）は逆に暗くして、
     赤地の上でも境目がはっきり見えるようにしている。
   ★ここはファイル末尾なので、上の .cp 定義を上書きします
   ============================================================ */
.cp {
  background:
    linear-gradient(165deg, #8C1B22 0%, #B3341B 52%, #8C1B22 100%) padding-box,
    linear-gradient(135deg, #FFD873 0%, #FF7A18 40%, #D93025 70%, #FFD873 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 14px 40px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(255, 122, 24, 0.40);
  color: #FFF6EC;
}
@keyframes cpGlow {
  from { box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 14px 40px rgba(0,0,0,0.5), 0 0 24px rgba(255,122,24,0.30); }
  to   { box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 14px 40px rgba(0,0,0,0.5), 0 0 48px rgba(255,122,24,0.55); }
}

/* 大会名。赤地では金→赤のグラデ文字が沈むので、生成りの塗りにする */
.cp-name {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  color: #FFF6EC;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* ★賞品の一言。カードで一番読ませたい行。
   初参加ガイドの特典バナー（.mf-gift）と同じ見た目・大きさに揃えている。
   ・金枠 2px ＋ 角丸16px ＋ 外側の光
   ・3行に分けて組み、金額（<em>）だけ一段大きく金色に
   ★中の色だけはカード本体より濃くしている。
     カード自体が同じ赤なので、同色にすると境目が消えてしまうため。 */
.cp-lead {
  margin: 12px auto 0;
  max-width: 30em;
  padding: 13px 14px 11px;
  border-radius: 16px;
  border: 2px solid var(--ls-gold-light);
  background: linear-gradient(165deg, #5E0D14 0%, #7A1620 55%, #5E0D14 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 122, 24, 0.35);
  text-align: center;
  font-size: clamp(1.02rem, 4.6vw, 1.32rem);
  font-weight: 900;
  line-height: 1.42;
  color: var(--ls-cream);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
/* 金額だけさらに大きく、金色で。
   ★ここは inline-block。改行は前後の <br> が作るので、
     block にすると <br> と二重になって余計な空行が出る。 */
.cp-lead em {
  font-style: normal;
  display: inline-block;
  font-size: 1.24em;
  line-height: 1.3;
  color: var(--ls-gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* 中の小パネルは暗めにして、赤地の上で境目を出す */
.cp-points li {
  background: linear-gradient(180deg, rgba(20, 7, 10, 0.55), rgba(20, 7, 10, 0.38));
  border-color: rgba(255, 216, 115, 0.7);
  color: #FFF6EC;
}
.cd {
  background: rgba(20, 7, 10, 0.46);
  border-color: rgba(255, 216, 115, 0.7);
}
.cps {
  background: rgba(20, 7, 10, 0.48);
  border-color: rgba(255, 216, 115, 0.5);
}
.cp .btn-ghost {
  border-color: rgba(255, 240, 200, 0.75);
  background: rgba(20, 7, 10, 0.35);
  color: #FFF6EC;
}
.cp-free { color: rgba(255, 246, 236, 0.78); }
.cps-open, .cps-ext-note { color: rgba(255, 246, 236, 0.78); }

@media (max-width: 380px) {
  .cp-lead { padding: 12px 11px 10px; }
}

/* ============================================================
   大会ランキング反映の残り回数（2026-08-21）
   ------------------------------------------------------------
   ★お知らせであって、止めるための表示ではない。
     5回を使い切っても診断は続けられるので、
     赤い警告色ではなく落ち着いた見た目にしている。
   ============================================================ */
.quota {
  margin: 10px auto 0;
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 7, 10, 0.42);
  border: 1px solid rgba(255, 216, 115, 0.5);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.5;
  color: #FFE9AE;
  text-align: center;
}
/* 残り1回。使い切る前に気づけるよう、少しだけ強める */
.quota.is-last {
  border-color: var(--ls-gold-light);
  background: rgba(255, 216, 115, 0.16);
}
/* まだサーバーから取れていないとき。推測値は出さない */
.quota.is-loading {
  border-style: dashed;
  border-color: rgba(255, 246, 236, 0.32);
  color: rgba(255, 246, 236, 0.7);
  font-weight: 700;
}
/* 使い切ったあと。責める見た目にしない */
.quota.is-used-up {
  border-color: rgba(255, 246, 236, 0.4);
  background: rgba(255, 246, 236, 0.07);
  color: rgba(255, 246, 236, 0.9);
}
.quota-note {
  margin: 7px auto 0;
  max-width: 30em;
  font-size: 0.74rem;
  line-height: 1.65;
  color: rgba(255, 246, 236, 0.78);
  text-align: center;
}

/* 結果画面のバッジ */
.rtk-counted, .rtk-practice {
  display: inline-block;
  margin: 10px auto 0;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.5;
}
.rtk-counted {
  background: rgba(255, 216, 115, 0.18);
  border: 1px solid var(--ls-gold-light);
  color: var(--ls-gold-light);
}
.rtk-practice {
  background: rgba(255, 246, 236, 0.09);
  border: 1px solid rgba(255, 246, 236, 0.4);
  color: rgba(255, 246, 236, 0.88);
}

@media (max-width: 360px) {
  .quota { font-size: 0.78rem; padding: 7px 10px; }
}

/* ============================================================
   ランキング ベスト50モーダル（2026-08-22 追加）
   ★全国TOP3の枠を押すと開く。中は「もすにゃん杯」と「全国」の2タブ。
   ============================================================ */

/* 押せることが分かるようにする（TOP3の枠） */
.toprank.is-clickable { cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.toprank.is-clickable:hover,
.toprank.is-clickable:focus-visible {
  border-color: rgba(233,168,44,0.8);
  background: rgba(30,11,15,0.6);
}
.toprank.is-clickable:focus-visible { outline: 2px solid var(--ls-gold-light); outline-offset: 2px; }
.toprank.is-clickable:active { transform: scale(0.995); }
.toprank.is-clickable .toprank-note { color: var(--ls-gold-light); font-weight: 700; }

/* ★2026-08-22：全国タブは「賞品と紛らわしい」とのご指摘により廃止。
   もすにゃん杯のベスト50だけを出すのでタブは無い。 */

.rb-note {
  font-size: 0.74rem; line-height: 1.6; color: rgba(255,246,236,0.7);
  margin-bottom: 10px;
}
.rb-note b { color: var(--ls-gold-light); }

/* 50件並ぶので、モーダルの中だけスクロールさせる */
.rb-body { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ranking.rank50 { list-style: none; display: grid; gap: 6px; }

/* 賞品（大会タブの1〜10位だけに出る） */
.rank-prize {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
  font-size: 0.7rem; font-weight: 800; line-height: 1.3;
  color: #2a1607;
  background: linear-gradient(180deg, #f4cf7a, #e9a82c);
  border-radius: 999px; padding: 3px 9px;
}

/* 320pxでも崩れないように */
@media (max-width: 360px) {
  .rb-tab { font-size: 0.72rem; padding: 8px 4px; }
  .rb-body { max-height: 58vh; }
  .rank-prize { font-size: 0.66rem; padding: 2px 7px; }
}

/* ------------------------------------------------------------
   ベスト50の1行の中身（2026-08-22 拡張）
   獲得称号4つ・実戦/地雷回避/決断力・もすにゃんの一言
   ★行がタテに伸びるので、狭い画面でも折り返して収まるようにする。
   ------------------------------------------------------------ */

/* 獲得称号（最大4つ） */
.rank-titles {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 4px;
}
.rank-titles .rank-badge { font-size: 0.66rem; }

/* 実戦 / 地雷回避 / 決断力 */
.rank-stats {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 4px 6px;
  margin-top: 5px;
}
.rank-stat {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(255,246,236,0.06);
  border: 1px solid rgba(255,246,236,0.1);
  font-size: 0.66rem; line-height: 1.4;
}
.rank-stat i { font-style: normal; color: rgba(255,246,236,0.55); font-weight: 500; }
.rank-stat b { color: var(--ls-gold-light); font-weight: 900; font-size: 0.72rem; }

/* もすにゃんの一言 */
.rank-punch {
  grid-column: 1 / -1;
  margin-top: 5px;
  font-size: 0.68rem; line-height: 1.5; font-weight: 500;
  color: rgba(255,246,236,0.66);
  /* 長い一言でも2行までにして、行の高さが暴れないようにする */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 50件×多行なので、狭い画面では少しだけ詰める */
@media (max-width: 360px) {
  .rank-titles .rank-badge { font-size: 0.62rem; }
  .rank-stat { font-size: 0.62rem; padding: 2px 6px; }
  .rank-punch { font-size: 0.64rem; }
}

/* ------------------------------------------------------------
   TOPページのランキング枠：大会中は TOP10（2026-08-22）
   ★10行に増えるので、行間を少し詰めて上位3位を目立たせる。
   ------------------------------------------------------------ */
.toprank.is-cup .toprank-list { gap: 3px; }
.toprank.is-cup .toprank-row {
  padding: 3px 6px; border-radius: 7px;
  font-size: 0.82rem;
}
/* 上位3位だけ色をつける（4位以降は素のまま） */
.toprank-row.is-top1 { background: rgba(233,168,44,0.16); }
.toprank-row.is-top2 { background: rgba(255,246,236,0.07); }
.toprank-row.is-top3 { background: rgba(205,127,50,0.13); }

@media (max-width: 360px) {
  .toprank.is-cup .toprank-row { font-size: 0.78rem; padding: 2px 5px; }
}

/* ------------------------------------------------------------
   結果画面：大会中の表示（2026-08-22）
   ------------------------------------------------------------ */

/* 大会の順位パネル（全国版と同じ形。見出しだけ大会名になる） */
.myrank.is-cup .myrank-lead {
  color: var(--ls-gold-light); font-weight: 900;
}

/* 大会TOP10の枠。押すとベスト50が開く */
.cup-board.is-clickable {
  cursor: pointer; border-radius: 12px; padding: 2px;
  transition: background .15s;
}
.cup-board.is-clickable:hover { background: rgba(255,246,236,0.04); }
.cup-board.is-clickable:focus-visible {
  outline: 2px solid var(--ls-gold-light); outline-offset: 2px;
}
.cup-board-more {
  margin-top: 8px; text-align: center;
  font-size: 0.72rem; font-weight: 800; color: var(--ls-gold-light);
}
.cup-board-more::after { content: ' ▸'; }

/* 賞品一覧の「抽選（3人撃破チャレンジ）」の行（2026-08-22 追加）
   ★1〜10位とは性質が違うので、上に区切り線を入れて見分けやすくする */
.cr-prizes li.is-lottery {
  margin-top: 6px;
  border-top: 1px dashed rgba(233,168,44,0.35);
  border-radius: 8px;
  background: rgba(233,168,44,0.1);
}
.cr-prizes li.is-lottery .cr-rank { color: var(--ls-gold-light); font-size: 0.78rem; }
/* 注記は <ul> の外の <p>。CSSが当たらなくても普通の段落として読める。
   ここでの指定は「見た目を整えるだけ」で、レイアウトの前提にはしない。 */
.cr-lottery-note {
  margin-top: 6px; padding: 0 4px;
  font-size: 0.68rem; line-height: 1.6; font-weight: 500;
  color: rgba(255,246,236,0.6);
}

/* ============================================================
   大会終了後の「最終結果発表」（2026-09-13 追加）
   ------------------------------------------------------------
   ★1〜10位を一目で追えるように、順位・名前・偏差値・賞品を
     1行にまとめる。狭い画面では賞品だけ2段目に落とす。
   ★受け取り方（LINE）は結果のすぐ下に置く。
     結果だけ見て連絡方法が分からない状態を作らない。
   ============================================================ */
.cpr {
  margin: 14px 0 12px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  background: rgba(255, 216, 115, 0.07);
  border: 1px solid rgba(255, 216, 115, 0.38);
  text-align: left;
}
.cpr-title {
  text-align: center;
  font-size: 1.05rem; font-weight: 900;
  color: var(--ls-gold-light);
}
.cpr-lead {
  text-align: center;
  margin-top: 5px;
  font-size: 0.78rem; line-height: 1.6;
  color: rgba(255, 246, 236, 0.82);
}
.cpr-empty {
  margin-top: 10px; text-align: center;
  font-size: 0.82rem; color: rgba(255, 246, 236, 0.75);
}
.cpr-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.cpr-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 246, 236, 0.12);
}
.cpr-row.is-top1 { border-color: rgba(255, 216, 115, 0.75); background: rgba(255, 216, 115, 0.12); }
.cpr-row.is-top2 { border-color: rgba(206, 212, 226, 0.6); }
.cpr-row.is-top3 { border-color: rgba(226, 158, 100, 0.6); }
.cpr-pos {
  font-size: 1.05rem; font-weight: 900; text-align: center;
  color: var(--ls-gold-light);
}
.cpr-main { min-width: 0; }
.cpr-name {
  display: block;
  font-size: 1rem; font-weight: 900; color: #FFF6EC;
  overflow-wrap: anywhere;
}
.cpr-rankname {
  display: block;
  font-size: 0.68rem; font-weight: 700;
  color: rgba(255, 216, 115, 0.9);
}
.cpr-dev { text-align: right; white-space: nowrap; }
.cpr-dev i {
  display: block; font-style: normal;
  font-size: 0.6rem; color: rgba(255, 246, 236, 0.65);
}
.cpr-dev b {
  font-size: 1.16rem; font-weight: 900;
  color: var(--ls-gold-light);
  font-variant-numeric: tabular-nums;
}
.cpr-prize {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE9AE, #E9A82C);
  color: #14070A;
  font-size: 0.72rem; font-weight: 900;
  white-space: nowrap;
}
.cpr .btn-sm { margin-top: 12px; }

/* 賞品の受け取り方（LINEで連絡） */
.cpc {
  margin: 12px 0;
  padding: 14px 10px 12px;
  border-radius: 14px;
  background: rgba(6, 199, 85, 0.08);
  border: 1px solid rgba(6, 199, 85, 0.45);
  text-align: left;
}
.cpc-title {
  text-align: center;
  font-size: 1rem; font-weight: 900; color: #FFF6EC;
}
.cpc-lead {
  margin: 6px 0 12px;
  font-size: 0.8rem; line-height: 1.7;
  color: rgba(255, 246, 236, 0.9);
}
.cpc-lead b { color: #7BE6A4; }
.cpc-body {
  margin-bottom: 8px;
  font-size: 0.78rem; line-height: 1.65;
  color: rgba(255, 246, 236, 0.85);
}
.cpc-body b { color: #FFF6EC; }
.cpc-send {
  margin: 0 0 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 246, 236, 0.35);
}
.cpc-send-title {
  font-size: 0.74rem; font-weight: 900;
  color: var(--ls-gold-light);
  margin-bottom: 6px;
}
.cpc-send-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.cpc-send-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem; font-weight: 700; line-height: 1.5;
  color: #FFF6EC;
  overflow-wrap: anywhere;
}
.cpc-send-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: #7BE6A4; font-weight: 900;
}
.cpc-send-ex {
  margin-top: 7px;
  font-size: 0.7rem; line-height: 1.5;
  color: rgba(255, 246, 236, 0.65);
  overflow-wrap: anywhere;
}
.cpc-deadline {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(217, 48, 37, 0.18);
  border: 1px solid rgba(255, 122, 24, 0.55);
  text-align: center;
  font-size: 0.82rem; font-weight: 900;
  color: #FFF6EC;
}
.cpc-note {
  margin-top: 7px;
  font-size: 0.7rem; line-height: 1.6;
  color: rgba(255, 246, 236, 0.68);
}

@media (max-width: 380px) {
  .cpr { padding: 12px 7px 10px; }
  .cpr-row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 6px; padding: 7px 7px; }
  .cpr-name { font-size: 0.92rem; }
  .cpr-dev b { font-size: 1.05rem; }
  .cpr-prize { font-size: 0.68rem; padding: 3px 7px; }
  .cpc { padding: 12px 8px 10px; }
}
