/* JLPT-GO — 日本語タイピング練習（ADR 0038）。色は /jlpt/ のページ（home.css の変数）に合わせる */
#typing-app { margin: 20px 0 8px; }
#typing-app .en { color: var(--muted); font-size: 0.85em; font-weight: 400; }
#typing-app a { color: var(--blue); }
.howto { line-height: 1.9; color: var(--ink-2); font-size: 14.5px; }
.notice { background: var(--orange-soft); border-radius: 10px; padding: 10px 14px; line-height: 1.8; }
.steps { display: grid; gap: 14px; margin-top: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.step h2 { font-size: 19px; margin: 0 0 4px; }
.step p { margin: 0 0 8px; line-height: 1.8; color: var(--ink-2); font-size: 14.5px; }
.step-no { color: var(--blue) !important; font-weight: 700; font-size: 13px !important; margin: 0 0 2px !important; }
.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.choices a { display: inline-block; border: 1px solid var(--blue); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; }
.choices a:hover { background: var(--blue-soft); }
.rec { font-size: 12.5px; color: var(--muted); margin-left: -6px; }
.play { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px 22px; }
.play-head { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.play-head .esc { margin-left: auto; }
.target { font-size: 30px; line-height: 1.6; margin: 0 0 8px; color: var(--ink); }
.target.big { font-size: 64px; text-align: center; margin: 10px 0; }
.target.longtext { font-size: 19px; line-height: 2; }
.reading { font-size: 18px; line-height: 1.9; color: var(--muted); margin: 0 0 8px; word-break: break-all; }
.guide { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 20px; line-height: 1.8; color: #9aa9b8; margin: 0 0 8px; word-break: break-all; }
.play.center .guide, .target.big + .guide { text-align: center; }
.done { color: var(--green); }
.sub { color: var(--ink-2); margin: 8px 0 0; }
.message { min-height: 1.8em; color: var(--pink); font-weight: 600; margin: 10px 0 0; }
.result { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; text-align: center; }
.result h2 { margin: 0 0 12px; }
.result dl { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 6px 18px; font-size: 17px; }
.result dd { margin: 0; font-weight: 700; text-align: left; }
.result dt { text-align: right; color: var(--ink-2); }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.actions a { border: 1px solid var(--blue); border-radius: 999px; padding: 8px 18px; text-decoration: none; font-weight: 700; }

/* ゲーム（ADR 0038 追記） */
.games-title { font-size: 21px; margin: 30px 0 4px; }
.game-mole .holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; margin: 10px auto 14px; }
.hole { height: 92px; border-radius: 50% 50% 14px 14px; background: #eef2f5; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--ink); transition: background 0.1s; }
.hole.up { background: var(--orange-soft); border-color: var(--orange); }
.hole.hit { background: var(--green-soft); border-color: var(--green); }
.game-mole .guide, .game-rain .guide { text-align: center; min-height: 1.8em; }
.meaning { font-size: 24px; }
.match-choices { list-style: none; padding: 0; display: grid; gap: 10px; margin: 14px 0; }
.match-choices button { width: 100%; text-align: left; font: inherit; font-size: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--ink); }
.match-choices button:hover { border-color: var(--blue); background: var(--blue-soft); }
.match-choices .no { display: inline-block; width: 1.6em; color: var(--blue); font-weight: 700; }
.match-choices small { color: var(--muted); font-size: 14px; margin-left: 6px; }
.ok { color: var(--green); }
.sky { position: relative; overflow: hidden; background: linear-gradient(#f4f8fb, #e8f1f7); border-radius: 12px; border: 1px solid var(--line); margin: 6px 0 12px; }
.drop { position: absolute; top: 0; padding: 4px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 20px; line-height: 1.3; text-align: center; white-space: nowrap; }
.drop small { display: block; font-size: 12px; color: var(--muted); }
.drop.target { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }

/* 効果音のオン・オフ */
.sound-row { margin: 0 0 4px; }
.sound-toggle { font: inherit; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink-2); cursor: pointer; }
.sound-toggle[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.play-head .sound-toggle { font-size: 12px; padding: 1px 10px; }
