/* 論述（2026-11-05 → 11/22 黒と金）：問いの一覧（92回目①A 縦の一覧）→ 書く（84回目③D 資料の地図を見ながら）→ AI が採点中 → 結果（84回目④C 点数の輪）→ 正解の流れとくらべる。
   色と字は css/memq.css（テーマの中）と同じ（黒い地・金・白）。手本＝世界史_一問一答/案/out82q の y1a・p9d・p11cg・p11cr（作りは op82q の i92b_1.js・i82q_9.js・i82q_11.js）。
   採点アニメ（11/23）：11/5 の試作（答案に読む順に線と○△×・点が増える）を黒と金で。結果＝線と印が出るたびに点が数え上がる／くらべる＝自分の流れが正解の流れに直る。
   下の :root の青（--ra など）は、ホームと演習の画面（home.css・app.css）が使うので残す。 */
:root {
  --ra: #2C64B0; --ra2: #1B4A8A; --rbg: #EAF2FC; --rpa: #7F9CC4; --rng: #E0443A; --rtrk: #DFE7F2; --rarw: #B8C7DB; --rpg: #F0F4F9; --rybd: #DCE4EF; --rcell: #E6EBF2;
}
@media (prefers-color-scheme: dark) {
  :root { --ra: #7AA5E8; --ra2: #C2D5F4; --rbg: rgba(122,165,232,.16); --rpa: #8EA9CF; --rng: #FF6B61; --rtrk: rgba(255,255,255,.12); --rarw: rgba(255,255,255,.3); --rpg: #1C1C1E; --rybd: rgba(255,255,255,.14); --rcell: rgba(255,255,255,.1); }
}

/* ---------- 地と色（memq.css の .mq と同じ値・黒い地・金・白） ---------- */
.ron {
  --mq-bg: #0A0B0E; --mq-w: #F2F3F5; --mq-sub: rgba(255,255,255,.6); --mq-dim: rgba(255,255,255,.42); --mq-ln: rgba(255,255,255,.14);
  --mq-g: #FFD46A; --mq-g2: #E3B35C; --mq-gt: #E6C35C; --mq-ink: #1A1406; --mq-blue: #8DB4EC; --mq-red: #FF7A70; --mq-ok: #7CCB9C;
  --mq-gls: rgba(18,20,25,.55); --mq-card: #17181C;
  position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; color: var(--mq-w); color-scheme: dark;
  background: radial-gradient(120% 48% at 50% -6%, rgba(141,184,245,.07), rgba(10,11,14,0) 70%), linear-gradient(180deg, #0D0E12, #0A0B0E 45%);
}
.ron .rv { position: relative; width: 100%; max-width: 480px; height: 100%; display: flex; flex-direction: column; }
.ron .rv.pin { animation: ronin .4s cubic-bezier(.2,.8,.2,1); }
@keyframes ronin { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }   /* ふわっと浮かぶ（111回目② C・11/27） */
.ron button { color: inherit; }
.ron button:disabled { opacity: .35; cursor: default; }
.ron .gls { background: var(--mq-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.ron .mq-ib svg { width: 20px; height: 20px; }
.ron .rsc { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; }
.ron .rsc > * { flex: none; }
.ron .rin { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
.ron .rin.on { opacity: 1; transform: none; }
.ron .rin:not(.on) { pointer-events: none; }

/* ---------- 上の帯（左の丸いボタン・小さな青い字・題・右の札） ---------- */
.ron .rbar { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 8px) 12px 6px; min-height: calc(var(--sat) + 58px); }
.ron .rbar .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ron .rbar .tt small { font-size: 11px; font-weight: 700; color: var(--mq-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ron .rbar .tt b { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ron .rbar.c { padding-left: 16px; padding-right: 16px; }
.ron .rbar.c .tt { align-items: center; text-align: center; }
.ron .rbar.c .tt b { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.ron .rbar .rsp { flex: none; width: 40px; }
.ron .rpill { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.82); white-space: nowrap; }
.ron .rpill i { font-style: normal; opacity: .5; margin: 0 3px; }
.ron .rpill b { font-size: 15px; font-weight: 800; color: var(--mq-g); }

/* ---------- 問いの一覧（92回目①A 縦の一覧） ---------- */
.ron .rlist .rsc { padding: 12px 20px calc(var(--sab) + 30px) 24px; }
.ron .rlhd { display: flex; align-items: baseline; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--mq-ln); }
.ron .rlhd span { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--mq-sub); }
.ron .rlhd b { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.ron .rlhd b i { font-style: normal; opacity: .5; margin: 0 3px; }
.ron .rlhd small { font-size: 11px; font-weight: 600; color: var(--mq-dim); margin-left: -4px; white-space: nowrap; }
.ron .rqi { width: 100%; display: flex; align-items: flex-start; gap: 13px; padding: 15px 0 14px; text-align: left; }
.ron .rqi + .rqi { border-top: 1px solid var(--mq-ln); }
.ron .rqi:active { background: rgba(255,255,255,.03); }
.ron .rqi .no { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.28); }
.ron .rqi.done .no { background: var(--mq-g); color: var(--mq-ink); box-shadow: none; }
.ron .rqi .no svg { width: 14px; height: 14px; stroke-width: 3; }
.ron .rqi .tx { flex: 1; min-width: 0; }
.ron .rqi .tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.55; }
.ron .rqi .tx small { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--mq-dim); white-space: nowrap; }
.ron .rqi .tx em { font-style: normal; color: var(--mq-g); }
.ron .rqi .tx em .mq-num { font-weight: 800; }
.ron .rqi .cv { flex: none; display: flex; padding-top: 6px; opacity: .42; }
.ron .cv svg { width: 12px; height: 12px; stroke-width: 3.4; }

/* ---------- 書く（84回目③D 資料の地図を見ながら） ---------- */
.ron .rwrite .rsc { padding: 2px 12px 4px; gap: 10px; }
.ron .rmapc { position: relative; border-radius: 20px; overflow: hidden; background: #090B10; }
.ron .rmapc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); pointer-events: none; }
.ron .rmapc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ron .rmapc .sea { fill: #090B10; }
.ron .rmapc .land { fill: #1E2128; stroke: rgba(255,255,255,.24); stroke-width: .8px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ron .rmapc .cres { fill: none; stroke: rgba(255,212,106,.11); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.ron .rmapc .riv { fill: none; stroke: rgba(141,184,245,.72); stroke-width: 1.7px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ron .rmapc .riv.minor { stroke: rgba(141,184,245,.38); stroke-width: 1.1px; }
.ron .rmapc .reg { fill: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .08em; stroke: #090B10; stroke-width: 3; paint-order: stroke; stroke-linejoin: round; }
.ron .rmapc .seal { fill: rgba(141,184,245,.55); font-style: italic; font-weight: 500; letter-spacing: .1em; }
.ron .rmapc .cap { position: absolute; left: 0; right: 0; top: 0; height: 46px; padding: 10px 12px 0; display: flex; align-items: baseline; gap: 7px; background: linear-gradient(rgba(5,6,10,.7), rgba(5,6,10,0)); }
.ron .rmapc .cap b { flex: none; font-size: 12px; font-weight: 800; color: #fff; }
.ron .rmapc .cap span { min-width: 0; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ron .rmapc .pin { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 5px; background: var(--mq-g); box-shadow: 0 0 0 2px rgba(10,11,14,.85), 0 0 10px rgba(255,212,106,.9); }
.ron .rmapc .lab { position: absolute; font-size: 12px; font-weight: 800; line-height: 18px; color: #fff; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.8); }
.ron .rqc { border-radius: 20px; padding: 13px 15px 14px; }
.ron .rqc .hd { display: flex; align-items: center; gap: 8px; }
.ron .rqc .hd > span:first-child, .ron .rac .hd, .ron .rro .hd { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.ron .rqc .lim { flex: none; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(230,195,92,.14); display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--mq-gt); }
.ron .rqc .q { margin: 7px 0 0; font-size: 15px; font-weight: 700; line-height: 1.62; letter-spacing: .01em; color: var(--mq-w); text-wrap: pretty; }
.ron .rqc .hn { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.ron .rqc .hn > span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); margin-right: 2px; }
.ron .rchip { flex: none; height: 27px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: rgba(255,255,255,.9) !important; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); }
.ron .rchip:active { transform: scale(.96); background: rgba(255,212,106,.13); }
.ron .rqc.big { padding: 15px 16px 16px; }
.ron .rqc.big .q { margin-top: 9px; font-size: 17px; }
.ron .rqc.big .hn { margin-top: 15px; }
.ron .rqc.big .rchip { height: 30px; border-radius: 15px; font-size: 13.5px; }
.ron .rac { flex: 1 0 auto; min-height: 168px; border-radius: 20px; padding: 15px 16px 14px; display: flex; flex-direction: column; }
.ron .rac .rta { flex: 1 1 auto; display: block; width: 100%; min-height: 84px; margin: 8px 0 0; padding: 0; border: 0; outline: 0; resize: none; background: none; border-radius: 0;
  color: var(--mq-w); caret-color: var(--mq-g); font: 500 15.5px/1.85 var(--font); -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; }
.ron .rqc.big + .rac .rta { font-size: 16px; }
.ron .rac .rta::placeholder { color: var(--mq-dim); }
.ron .rac .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin-top: 4px; }
.ron .rac .ct { margin-left: auto; display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.ron .rac .ct b { font-size: 15px; font-weight: 800; color: #fff; }
.ron .rac .ct b.over { color: var(--mq-red); }
.ron .rac .ct small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); }
.ron .rprev { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--mq-g) !important; }
.ron .rprev i { display: flex; }
.ron .rprev svg { width: 14px; height: 14px; }

/* ---------- 下（ひとことと大きなボタン） ---------- */
.ron .rft { flex: none; padding: 16px 24px max(var(--sab), 16px); }
.ron .rnote { margin: 0 0 16px; text-align: center; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.ron .rgo { width: 100%; height: 54px; border-radius: 27px; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--mq-w); color: #0A0B0E !important; font-size: 16px; font-weight: 700; }
.ron .rgo i, .ron .rb2 i { display: flex; }
.ron .rgo svg { width: 16px; height: 16px; }
.ron .rgo:active:not(:disabled), .ron .rb2:active, .ron .rlink:active { transform: scale(.98); }
.ron .rft .r2 { display: flex; gap: 10px; }
.ron .rres .rft, .ron .rp2 .rft { padding: 12px 16px max(var(--sab), 16px); }
.ron .rb2 { flex: 1; min-width: 0; height: 52px; border-radius: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ron .rb2.d { color: #fff !important; }
.ron .rb2.d svg { width: 15px; height: 15px; }
.ron .rb2.w { background: var(--mq-w); color: #0A0B0E !important; gap: 6px; }
.ron .rb2.w svg { width: 13px; height: 13px; }
.ron .rb2.w .cv svg { width: 12px; height: 12px; stroke-width: 3.4; }

/* ---------- AI が採点しています・結果（84回目④C 点数の輪） ---------- */
.ron .rrg svg { display: block; }
.ron .rrg .t { fill: none; stroke: rgba(255,255,255,.1); }
.ron .rrg .a { fill: none; stroke: url(#ron-rg); stroke-linecap: round; }
.ron .rrg .a.gl { opacity: .55; }
.ron .rring { position: relative; }
.ron .rring > i, .ron .rring .n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ron .rring > i { color: var(--mq-g); }
.ron .rring > i svg { width: 34px; height: 34px; }
.ron .rwait .rsc { padding: 0 12px 8px; }
.ron .rgw { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 38px; }
.ron .rgw h3 { margin: 22px 0 0; font-size: 18px; font-weight: 800; letter-spacing: .03em; }
.ron .rgw p { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55); }
.ron .rwait .rring > i { animation: ronpulse 1.6s ease-in-out infinite; }
@keyframes ronpulse { 0%, 100% { opacity: .72; transform: scale(.92); } 50% { opacity: 1; transform: none; } }
.ron .rro { margin-top: clamp(28px, 13vh, 116px); border-radius: 20px; padding: 14px 16px 15px; }
.ron .rro .hd { display: flex; justify-content: space-between; align-items: center; }
.ron .rro .hd .mq-num { font-size: 12.5px; color: rgba(255,255,255,.5); }
.ron .rro .tx { margin-top: 6px; font-size: 14.5px; font-weight: 500; line-height: 1.8; color: rgba(242,243,245,.82); word-break: break-all; }
.ron .rwait .rft { padding-bottom: calc(max(var(--sab), 16px) + 14px); }
.ron .rwait .rnote { margin: 0; font-size: 13px; }
.ron .rres .rsc { padding: 0 12px 10px; gap: 10px; }
.ron .rsr { display: flex; flex-direction: column; align-items: center; }
.ron .rring .sc { display: inline-flex; align-items: baseline; gap: 2px; padding-top: 2px; }
.ron .rring .sc b { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; transition: color .5s; }
.ron .rring .sc small { font-size: 17px; font-weight: 700; line-height: 1; color: rgba(255,255,255,.55); }
.ron .rsr > small { margin-top: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); }
.ron .rfb { border-radius: 20px; padding: 14px 16px 15px; }
.ron .rfb h4 { margin: 0; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); }
.ron .rfb ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ron .rfb ul + h4 { margin-top: 13px; }
.ron .rfb li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: rgba(242,243,245,.92); }
.ron .rfb li > i { flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.ron .rfb li.ok > i { background: rgba(124,203,156,.18); color: var(--mq-ok); }
.ron .rfb li.ng > i { background: rgba(255,122,112,.18); color: #FF8A80; }
.ron .rfb li > i svg { width: 11px; height: 11px; }
.ron .rfb li.ok > i svg { stroke-width: 3.4; }
.ron .rai { border-radius: 20px; padding: 13px 16px 14px; background: linear-gradient(180deg, rgba(230,195,92,.13), rgba(230,195,92,.06)); box-shadow: inset 0 0 0 .5px rgba(230,195,92,.32); }
.ron .rai b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--mq-g); }
.ron .rai b svg { width: 14px; height: 14px; }
.ron .rai p { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.65; color: rgba(242,243,245,.94); }
.ron .rlink { width: 100%; height: 52px; border-radius: 18px; padding: 0 16px; display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14.5px; font-weight: 700; }
.ron .rlink > i { flex: none; display: flex; color: rgba(255,255,255,.8); }
.ron .rlink > i svg { width: 18px; height: 18px; }
.ron .rlink > span { flex: 1; min-width: 0; }
.ron .rlink > .mq-prem { flex: none; }   /* くらべるのプレミアムの札（11/30） */
.ron .rlink > .cv { opacity: .5; }
.ron .rlink > .cv svg { width: 12px; height: 12px; }

/* ---------- あなたの答えの線と印（結果のページで順に引く・くらべるページは引いたまま） ---------- */
.ron .rcard { border-radius: 20px; padding: 14px 16px 15px; }
.ron .rlh { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.ron .rans { font-size: 15px; font-weight: 500; line-height: 2.05; color: var(--mq-w); word-break: break-all; }
/* 線は 11/5 の採点アニメの形（左から右へ、行をまたいでのびる・24回目 細く）：書けている＝金の下線／おしい＝金のなみ線／まちがい＝赤い下線で字も赤くなる。
   .on で引く。--d＝引く長さ（字の数で決める＝app.js の ronP1）。なみ線は、柄（10px）の大きさを変えずに幅だけのびる絵 */
.ron .m { padding-bottom: 3px; background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size var(--d, .8s) cubic-bezier(.45,.05,.3,1), color var(--d, .8s) ease; }
.ron .m.ok { background-image: linear-gradient(var(--mq-g), var(--mq-g)); }
.ron .m.ng { background-image: linear-gradient(var(--mq-red), var(--mq-red)); }
.ron .m.on { background-size: 100% 2px; }
.ron .m.ng.on { color: #FF9A90; }
.ron .m.part { padding-bottom: 5px; background-size: 0% 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='w' width='10' height='6' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 3q2.5-2.6 5 0t5 0' fill='none' stroke='%23FFD46A' stroke-opacity='.75' stroke-width='1.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23w)'/%3E%3C/svg%3E"); }
.ron .m.part.on { background-size: 100% 6px; }
.ron .bd { display: inline-block; width: 15px; height: 15px; vertical-align: 4px; margin: 0 2px; }
.ron .bd path { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s; }
.ron .bd.on path, .ron .rbx.on .bd path { stroke-dashoffset: 0; }
.ron .bd path + path { transition-delay: .2s; }
.ron .rbx.on .bd path { transition-delay: .3s; }   /* くらべるページの箱の印は、箱が出てから描く */
.ron .rbx.on .bd path + path { transition-delay: .5s; }
/* 結果のページのあなたの答え・減点の札（順番 −1）・数え上がる数（数えている間は金） */
.ron .rmine .rlh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.ron .rmine .rleg { margin-top: 0; gap: 4px 10px; font-size: 11.5px; }
.ron .rmine .rleg .bd { width: 13px; height: 13px; }
.ron .rsr > .rded { margin-top: 2px; color: #FF9A90; }
.ron .rring .sc b.up { color: var(--mq-g); transition-duration: .12s; }

/* ---------- 正解の流れとくらべる（前の「論理」のページ） ---------- */
.ron .rp2 .rsc { padding: 0 12px 12px; gap: 10px; }
.ron .bd.ok path { stroke: var(--mq-g); }
.ron .bd.part path { stroke: rgba(255,212,106,.7); }
.ron .bd.ng path { stroke: var(--mq-red); }
.ron .rleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--mq-sub); }
.ron .rleg span { display: inline-flex; align-items: center; gap: 4px; }
.ron .rleg .bd { width: 14px; height: 14px; margin: 0; vertical-align: 0; }
.ron .rbx { border-radius: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.ron .rbx.on { opacity: 1; transform: none; }
.ron .rbx.yb { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); }
.ron .rbx.cb { background: rgba(255,212,106,.1); box-shadow: inset 0 0 0 .5px rgba(255,212,106,.42); color: #FFE7AE; font-weight: 600; }
.ron .rbx.cb small { display: block; font-size: 11px; font-weight: 700; color: var(--mq-red); margin: 0 0 2px; }
.ron .rbx.er { background: rgba(255,122,112,.06); box-shadow: inset 0 0 0 .5px rgba(255,122,112,.45); }
.ron .rsn { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; font-weight: 700; color: var(--mq-sub); margin-bottom: 4px; }
.ron .rsn span { display: inline-flex; align-items: center; gap: 3px; }
.ron .rsn svg { width: 15px; height: 15px; }
.ron .rsn em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--mq-red); background: rgba(255,122,112,.12); border-radius: 999px; padding: 1px 8px; }
.ron .rqt { font-size: 13.5px; line-height: 1.6; color: rgba(242,243,245,.92); }
.ron .rqt.rsame { font-size: 12.5px; color: var(--mq-sub); }
/* 直し（おしい所・まちがい）：閉じた所から開いて入り、色のついた語に金の線が引かれる（開く高さは app.js が入れる） */
.ron .rfx { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s cubic-bezier(.3,.7,.3,1), opacity .45s .12s; }
.ron .rfx.on { opacity: 1; }
.ron .rfx > .in { margin-top: 7px; padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12.5px; line-height: 1.6; color: rgba(242,243,245,.9); }
.ron .rfx .rlk { display: block; font-size: 12px; color: var(--mq-g); margin-bottom: 2px; }
.ron .rfx .rlk.ng { color: var(--mq-red); }
.ron .rk { color: var(--mq-g); font-weight: 800; }
.ron .rfx .rk, .ron .rbx.cb .rk { padding-bottom: 1px; background: linear-gradient(var(--mq-g), var(--mq-g)) no-repeat 0 100% / 0% 1.5px; transition: background-size .5s .5s; }
.ron .rfx.on .rk { background-size: 100% 1.5px; }
.ron .rbx.cb .rk { color: #fff; background-size: 0% 2px; transition-delay: .8s; }
.ron .rins.on .rbx.cb .rk { background-size: 100% 2px; }
/* ぬけていた一歩（25回目 C）：流れの間があいて、金の箱が右からすべりこみ、ふちが一度だけ光る。矢印もそのとき引く */
.ron .rins { max-height: 0; overflow: hidden; transition: max-height .7s cubic-bezier(.3,.7,.3,1); }
.ron .rins .rbx { transform: translateX(26px); }
.ron .rins.on .rbx { opacity: 1; transform: none; transition-delay: .2s; }
.ron .rins.on .rbx.cb { animation: rongold 1.6s .45s ease-out both; }
.ron .rins.on .rar path { stroke-dashoffset: 0; transition-delay: .15s; }
@keyframes rongold {
  0%, 100% { box-shadow: inset 0 0 0 .5px rgba(255,212,106,.42), inset 0 0 0 rgba(255,212,106,0); }
  35% { box-shadow: inset 0 0 0 1px rgba(255,212,106,.85), inset 0 0 22px rgba(255,212,106,.2); }
}
.ron .rar { display: flex; justify-content: center; height: 20px; }
.ron .rar svg { width: 14px; height: 20px; }
.ron .rar.rcmp { height: 12px; }
.ron .rar path { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s; }
.ron .rar.on path { stroke-dashoffset: 0; }
.ron .rmsg { margin: 2px 4px 0; min-height: 20px; font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--mq-g); }
.ron .rp2 .rnote { margin-bottom: 12px; }

/* 広告（いまは仮の画面。AdMob のリワード広告はオーナーの了承の後につなぐ） */
.ron .rad { position: fixed; inset: 0; z-index: 3; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
.ron .rad b { font-size: 13px; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.16); }
.ron .rad span { font-family: var(--num); font-size: 13px; opacity: .7; }

/* 採点の動きを押して飛ばした・もどってきた時は、線・印・箱・直しを動かさずに終わりの形に（下のボタンなどは短く入る） */
.ron .rv.fin .m, .ron .rv.fin .bd path, .ron .rv.fin .rbx, .ron .rv.fin .rfx, .ron .rv.fin .rins, .ron .rv.fin .rar path, .ron .rv.fin .rk, .ron .rv.fin .rring .sc b { transition: none !important; animation: none !important; }
.ron .rv.fin .rin { transition-duration: .2s; }

@media (prefers-reduced-motion: reduce) {
  .ron .rv.pin, .ron .rwait .rring > i, .ron .rins.on .rbx.cb { animation: none; }
  .ron .rin, .ron .rbx, .ron .rfx, .ron .rins, .ron .bd path, .ron .rar path, .ron .m, .ron .rk, .ron .rring .sc b { transition: none; }
}
/* ひとことが無い時はすき間も残さない（11/30） */
.ron .rmsg:empty { min-height: 0; margin: 0; }
/* 書く画面・キーボードが出ている間（11/30）：問題の箱を上にとめ、資料の地図はしまう。答えの欄は残りの高さ */
.ron.kb .rwrite .rmapc { display: none; }
/* キーボードの間（11/30 点検：長い問題とヒントの箱が見える所をほぼ取り、書く欄が1行〜0行・書いた字が箱の後ろに透けていた）：
   上の帯をしまい（時計の下から）、問題の箱は小さな字で、見える高さの3分の1まで（長い時は箱の中で送る）・ヒントは横1列・背景は透けない。
   書く欄は残りの高さいっぱいで、書く欄の中で送る（カーソルが箱やボタンの後ろに入らない） */
.ron.kb .rwrite { padding-top: var(--sat); }
.ron.kb .rwrite .rbar { display: none; }
.ron.kb .rwrite .rsc { overflow: hidden; padding-top: 6px; }
.ron.kb .rwrite .rqc { flex: none; max-height: var(--rqmax, 34%); overflow-y: auto; overscroll-behavior: contain; padding: 10px 13px 11px; background: #16181D; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ron.kb .rwrite .rqc .q { margin-top: 5px; font-size: 14px; line-height: 1.55; }
.ron.kb .rwrite .rqc .hn { flex-wrap: nowrap; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.ron.kb .rwrite .rqc .hn::-webkit-scrollbar { display: none; }
.ron.kb .rwrite .rqc .hn > span { flex: none; white-space: nowrap; }
.ron.kb .rwrite .rqc .rchip { flex: none; height: 26px; font-size: 12.5px; }
.ron.kb .rwrite .rac { flex: 1 1 0; min-height: 0; padding: 10px 14px 8px; }
.ron.kb .rwrite .rac > .hd { display: none; }
.ron.kb .rwrite .rac .rta { min-height: 0; margin-top: 0; overflow-y: auto; }
.ron.kb .rwrite .rft { padding-top: 8px; padding-bottom: 8px; }
.ron.kb .rwrite .rft .rnote { display: none; }
