/* sci-river（流れる水）。水＝青、正かい＝みどり、外がわ＝オレンジ・内がわ＝みどり（S-074）。字は 16px 以上 */
.rv { font-size: 1.05rem; }
.rv-ask { font-weight: 700; font-size: 1.1rem; margin: 0 0 8px; background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px; min-height: 1.6em; }
.rv-sm { font-size: .95rem; font-weight: 400; color: var(--sub, #4b5563); }
.rv-stage { position: relative; }
.rv-svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: none; border-radius: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); background: #fff; }
.rv-svg text { font-family: inherit; }
.rv-lab { font-size: 16px; font-weight: 800; fill: #374151; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.rv-sm2 { font-size: 14px; font-weight: 700; fill: #4b5563; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.rv-ml { font-size: 15px; font-weight: 800; fill: #1f2937; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.rv-rank { font-size: 17px; font-weight: 800; fill: #0f8a72; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.rv-tag { font-size: 13px; font-weight: 800; fill: #1f2937; }
.rv-x { font-size: 13px; font-weight: 900; fill: #dc2626; }
.rv-okm { font-size: 13px; font-weight: 900; fill: #16a34a; }
.rv-h { cursor: ns-resize; outline: none; }
.rv-h:focus-visible circle:nth-child(2) { stroke: #f59e0b; }
.rv-cup, .rv-mk { cursor: pointer; outline: none; }
.rv-cup.on > rect:nth-of-type(5), .rv-cup:focus-visible > rect:nth-of-type(5) { stroke: #f59e0b; stroke-width: 4; }
.rv-mk.on circle:nth-child(2) { stroke: #f59e0b; stroke-width: 4; }
.rv-ring { animation: rv-pulse 1.2s ease-in-out infinite; }
@keyframes rv-pulse { 50% { opacity: .45; } }
.rv-wet rect { fill: #cfe6f5; }
.rv-flood { mix-blend-mode: multiply; }
.rv-ctl, .rv-gb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 10px 0; }
.rv-gb:empty { display: none; }
.rv-b, .rv-g { min-height: 50px; min-width: 50px; padding: 4px 14px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 12px; font-weight: 700; font-size: 1.05rem; color: var(--ink, #1f2937); cursor: pointer; }
.rv-b:disabled { opacity: .45; cursor: default; }
.rv-g { font-size: 1.1rem; }
.rv-g.on, .rv-tg.on { background: #e7f6f1; border-color: var(--teal-d, #0f8a72); color: var(--teal-d, #0f8a72); box-shadow: inset 0 0 0 2px var(--teal-d, #0f8a72); }
.rv-go { background: var(--teal-d, #0f8a72); border-color: var(--teal-d, #0f8a72); color: #fff; box-shadow: 0 3px 0 #0a6553; }
.rv-sl { display: flex; flex-direction: column; width: 100%; max-width: 440px; gap: 2px; font-weight: 700; }
.rv-sl input { width: 100%; height: 40px; accent-color: var(--teal-d, #0f8a72); }
.rv-sll { font-size: 1rem; }
.rv-ends { display: flex; justify-content: space-between; font-size: .9rem; color: var(--sub, #4b5563); font-weight: 400; }
.rv-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.rv-read p { margin: 4px 0; }
.rv-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.rv-res.ng { color: #c2410c; }
.rv-o { color: #c2410c; }
.rv-g2 { color: #2f7d32; }
.rv-tbl { width: 100%; max-width: 440px; margin: 6px auto; border-collapse: separate; border-spacing: 0 4px; }
.rv-tbl th { text-align: left; font-weight: 700; padding: 4px 8px; background: #f7f9fb; border-radius: 8px 0 0 8px; }
.rv-tbl td { text-align: center; font-weight: 800; padding: 4px 8px; min-width: 6.5em; background: #f7f9fb; border-radius: 0 8px 8px 0; color: #6b7280; }
.rv-tbl td.bad { background: #fde2e1; color: #b91c1c; }
.rv-tbl td.good { background: #dff3e4; color: #15803d; }
.rv-ctl[hidden] { display: none; }
