/* 学びタッチ ローマ字（kaku.css・abc.css の上に重ねる） */
.rstage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 14px 16px; max-width: 1000px; margin: 0 auto; }
.word { display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; }
.word .mo { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.word .k { font-size: clamp(34px, 6vw, 48px); font-weight: 700; line-height: 1.15; }
.word .r { font-size: clamp(22px, 4vw, 30px); font-weight: 700; color: var(--blue); min-height: 1.3em; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: .04em; }
.word.nor .r::after { content: "？"; color: #d6d3d1; }
.cellsw { position: relative; width: 100%; display: flex; justify-content: center; }
.cells { --rc: 100px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rc { position: relative; width: var(--rc); height: var(--rc); flex: none; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.rc svg, .rc canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rc canvas { cursor: crosshair; touch-action: none; }
.rc .g-frame { stroke-width: 1.6; }
.rc .st-faint { stroke-width: 5; }
.rc .cmp .st-faint { stroke: #fca5a5; opacity: .6; }
.rc.ok .g-frame { stroke: var(--ok); stroke-width: 3; fill: #f0fdf4; }
.rc.bad .g-frame { stroke: var(--red); stroke-width: 3; fill: #fff7f7; }
.rc.ask .g-frame, .rc.focus .g-frame { stroke: var(--next); stroke-width: 3.4; }
.rc.empty .g-frame { stroke: var(--next); stroke-width: 3.4; fill: #fff7ed; }
.cellsw .over { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; }
.rstage .msg { width: 100%; max-width: 720px; }
.big4 { font-size: 26px; font-weight: 700; color: var(--blue); font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; margin-left: 6px; }
.wchip { width: auto; padding: 4px 10px 6px; }
.wchip b { font-size: 20px; font-weight: 700; }
@media (max-width: 600px) and (orientation: portrait) {
  .word .k { font-size: 30px; }
  .word .r { font-size: 20px; }
  .word { gap: 2px 8px; }
}
