/* 英語シューティング */
.sh-page { padding-bottom: 40px; }
.sh-how { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: sh; }
.sh-how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; font-size: .9rem; line-height: 1.6; color: var(--ink2); counter-increment: sh; }
.sh-how b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1rem; }
.sh-how b::before { content: counter(sh); font: 800 .8rem/1 var(--en); color: #fff; background: var(--brand); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sh-how .ic { width: 20px; height: 20px; color: var(--brand); }
.sh-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ink3); margin: 0 0 16px; line-height: 1.9; }
.sh-keys kbd { font: 700 .74rem/1 var(--en); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; margin: 0 2px; background: var(--card); color: var(--ink); }

/* 外枠（ゲームの部分は暗い色で固定） */
.sh { --g-bg: #0d1120; --g-card: #161c30; --g-line: #2a3350; --g-ink: #eef2fb; --g-ink2: #aab4cc; --g-acc: #ffd34d; position: relative; background: radial-gradient(120% 80% at 50% 0%, #1c2442 0%, #0d1120 60%); color: var(--g-ink); border-radius: 22px; padding: 18px; box-shadow: var(--sh2); margin-bottom: 36px; overflow: hidden; }
.sh-load { min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--g-ink2); }
.sh-shell { position: relative; }
.sh-k { font: 800 .74rem/1.4 var(--en); letter-spacing: .22em; color: var(--g-acc); margin: 0 0 2px; }
.sh .sh-title { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin: 0; line-height: 1.3; color: #fff; padding: 0; border: 0; }
.sh .sh-review h3 { border: 0; padding: 0; }
.sh-sub { margin: 4px 0 0; color: var(--g-ink2); font-size: .88rem; }
.sh-ic { width: 20px; height: 20px; flex: none; }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ステージ選択 */
.sh-menu-hd { text-align: center; margin: 4px 0 14px; }
.sh-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.sh-opt { background: rgba(255, 255, 255, .04); border: 1px solid var(--g-line); border-radius: 16px; padding: 12px 14px; }
.sh-opt-t { margin: 0 0 8px; font-weight: 800; font-size: .86rem; color: var(--g-ink2); }
.sh-opt-n { margin: 8px 0 0; font-size: .76rem; color: var(--g-ink2); line-height: 1.6; }
.sh-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-seg button { border: 1.5px solid var(--g-line); background: var(--g-card); color: var(--g-ink); border-radius: 12px; padding: 9px 6px; display: grid; gap: 2px; text-align: center; min-height: 58px; cursor: pointer; font-family: inherit; }
.sh-seg b { font-size: .95rem; }
.sh-seg small { font-size: .66rem; color: var(--g-ink2); line-height: 1.35; }
.sh-seg [aria-checked="true"] { border-color: var(--g-acc); background: #3a3214; box-shadow: inset 0 0 0 1px var(--g-acc); }
.sh-seg [aria-checked="true"] b::before { content: "● "; color: var(--g-acc); font-size: .7em; vertical-align: middle; }
.sh-tgs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.sh-tgs-c { justify-content: center; margin-top: 14px; }
.sh-tg { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--g-line); background: var(--g-card); color: var(--g-ink2); border-radius: 999px; padding: 7px 12px; font: 700 .8rem/1.2 var(--jp); cursor: pointer; min-height: 38px; }
.sh-tg .sh-ic { width: 17px; height: 17px; }
.sh-tg[aria-pressed="true"] { color: #10131f; background: #9ff3ff; border-color: #9ff3ff; }
.sh-tg[aria-pressed="false"] span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sh-vol { display: inline-flex; align-items: center; gap: 6px; }
.sh-vol input { width: 84px; accent-color: #9ff3ff; }
.sh-vol .sh-ic { width: 18px; height: 18px; color: var(--g-ink2); flex: none; }
.sh-snd { display: inline-flex; }
.sh-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sh-st { position: relative; text-align: left; border: 0; border-radius: 16px; padding: 14px 14px 12px; color: #fff; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); display: grid; gap: 3px; cursor: pointer; font-family: var(--jp); overflow: hidden; min-height: 132px; transition: transform .12s, box-shadow .12s; }
.sh-st::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .18; filter: blur(4px); }
.sh-st:hover, .sh-st:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--c), 0 8px 20px rgba(0, 0, 0, .35); }
.sh-st:focus-visible { outline: 3px solid var(--g-acc); outline-offset: 2px; }
.sh-st-n { font: 800 .72rem/1.3 var(--en); letter-spacing: .16em; color: var(--c); display: flex; justify-content: space-between; gap: 6px; }
.sh-st-n i { font-style: normal; font-family: var(--jp); letter-spacing: 0; color: rgba(255, 255, 255, .8); font-weight: 700; }
.sh-st-t { font-size: 1.12rem; line-height: 1.35; }
.sh-st-d { font-size: .76rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.sh-st-f { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .74rem; color: rgba(255, 255, 255, .85); flex-wrap: wrap; }
.sh-st-f .sh-ic { width: 15px; height: 15px; }
.sh-st.is-lock { cursor: not-allowed; filter: grayscale(.85) brightness(.7); }
.sh-st.is-lock:hover { transform: none; }
.sh-stars { margin-left: auto; display: inline-flex; gap: 1px; }
.sh-stars i { color: rgba(255, 255, 255, .22); display: inline-flex; }
.sh-stars i.on { color: var(--g-acc); }
.sh-stars .sh-ic { width: 15px; height: 15px; }
.sh-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; font: 900 .9rem/1 var(--en); color: #10131f; background: #c7cfe0; }
.sh-rank.r-S { background: linear-gradient(135deg, #ffe66b, #ff9f3a); }
.sh-rank.r-A { background: #8ff0b5; }
.sh-rank.r-B { background: #9fd0ff; }
.sh-menu-ft { text-align: center; margin: 12px 0 0; }
.sh-link { background: none; border: 0; color: var(--g-ink2); text-decoration: underline; font: inherit; font-size: .8rem; cursor: pointer; padding: 6px; }

/* 遊ぶ画面 */
.sh-game { display: flex; justify-content: center; }
.sh-box { margin: 0 auto; max-width: 100%; display: flex; flex-direction: column; }
.sh-q { height: 104px; box-sizing: border-box; background: #0a0d18; border: 1.5px solid var(--g-line); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 8px 14px 8px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; transition: background .2s, border-color .2s; }
.sh-q-k { margin: 0; display: flex; gap: 10px; font: 800 .7rem/1.5 var(--en), var(--jp); letter-spacing: .08em; color: var(--g-ink2); }
.sh-q-k span:first-child { color: var(--g-acc); }
.sh-tag-boss { color: #ff7b8f !important; }
.sh-q-t { margin: 2px 0 0; font-size: 1.04rem; font-weight: 700; line-height: 1.45; color: #fff; }
.sh-q-t .en { font-size: 1.14rem; }
.sh-q-big { font-size: 1.25rem; }
.sh-q-ja { margin: 2px 0 0; font-size: .8rem; line-height: 1.45; color: var(--g-ink2); }
.sh-q.is-long .sh-q-t { font-size: .9rem; } .sh-q.is-long .sh-q-t .en { font-size: .98rem; } .sh-q.is-long .sh-q-ja { font-size: .72rem; }
.sh-blank { display: inline-block; min-width: 3.4em; border-bottom: 3px solid var(--g-acc); color: var(--g-acc); text-align: center; line-height: 1.1; }
.sh-fill { display: inline-block; padding: 0 6px; border-radius: 6px; font-family: var(--en); }
.sh-fill.ok { background: #1d5b3a; color: #c9ffd9; box-shadow: inset 0 -3px 0 #6ff0a0; }
.sh-q.is-ok { background: #0b2219; border-color: #2c7a52; }
.sh-q.is-ng { background: #2a0f15; border-color: #8a3040; }
.sh-q.is-boss { background: #2a0b16; border-color: #a02848; }
.sh-res { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 800; padding: 1px 9px 1px 6px; border-radius: 999px; vertical-align: 2px; }
.sh-res .sh-ic { width: 15px; height: 15px; stroke-width: 3; }
.sh-res-ok { background: #6ff0a0; color: #0b2219; }
.sh-res-ng { background: #ff8b9b; color: #2a0f15; }
.sh-cv { position: relative; line-height: 0; border: 1.5px solid var(--g-line); border-top: 0; border-bottom: 0; background: #05070e; }
.sh-cv canvas { display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: crosshair; }
.sh-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 14, .78); line-height: 1.6; padding: 16px; z-index: 2; }
.sh-ov-in { text-align: center; max-width: 340px; }
.sh-ov-in h3 { margin: 0 0 6px; font-size: 1.4rem; color: #fff; }
.sh-ov-n { color: var(--g-ink2); font-size: .85rem; margin: 0 0 6px; }
.sh-ov-btns { display: grid; gap: 10px; margin-top: 14px; }
.sh-ov-btns .btn-ghost, .sh-res-btns .btn-ghost { background: var(--g-card); color: var(--g-ink); box-shadow: inset 0 0 0 1.5px var(--g-line); }
.sh-bar { display: flex; gap: 6px; background: #0a0d18; border: 1.5px solid var(--g-line); border-top: 0; border-radius: 0 0 16px 16px; padding: 8px; }
.sh-b { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1.5px solid var(--g-line); background: var(--g-card); color: var(--g-ink); border-radius: 11px; padding: 8px 4px; font: 700 .76rem/1.2 var(--jp); cursor: pointer; min-height: 44px; }
.sh-b .sh-ic { width: 18px; height: 18px; }
.sh-b span { white-space: nowrap; }
.sh-ans { font-size: .72rem; color: var(--g-ink2); margin-right: 4px; }
.sh-w .sh-ans { color: var(--ink3); }
.sh-b[data-act="pause"] { flex-grow: 1.3; background: #2a3150; }
.sh-b[aria-pressed="false"][data-tg] { color: var(--g-ink2); }
.sh-b[aria-pressed="false"][data-tg] span { text-decoration: line-through; }
.sh-b[aria-pressed="true"][data-tg] { border-color: #4b8fa0; }
.sh-b:focus-visible, .sh-tg:focus-visible, .sh-seg button:focus-visible { outline: 3px solid var(--g-acc); outline-offset: 2px; }

/* 大きく遊ぶ */
.sh.is-max { position: fixed; inset: 0; z-index: 1000; border-radius: 0; margin: 0; padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; }
.sh.is-full { border-radius: 0; margin: 0; padding: 6px; display: flex; align-items: center; justify-content: center; }
.sh.is-max .sh-shell, .sh.is-full .sh-shell { width: 100%; }
html.sh-noscroll, html.sh-noscroll body { overflow: hidden; overscroll-behavior: none; }
html.sh-playing body { overscroll-behavior-y: contain; }

/* 結果 */
.sh-res-hd { text-align: center; padding: 6px 0 4px; }
.sh-rk { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 10px; }
.sh-rank-big { width: 78px; height: 78px; border-radius: 20px; font-size: 2.8rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); animation: sh-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.sh-rk-t { text-align: left; font-weight: 800; font-size: 1.05rem; display: grid; }
.sh-rk-t small { font-weight: 600; font-size: .8rem; color: var(--g-ink2); }
@keyframes sh-pop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.sh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px auto; max-width: 620px; }
.sh-stats div { background: rgba(255, 255, 255, .05); border: 1px solid var(--g-line); border-radius: 14px; padding: 10px 6px; }
.sh-stats dt { font-size: .74rem; color: var(--g-ink2); font-weight: 700; }
.sh-stats dd { margin: 2px 0 0; font: 800 1.35rem/1.2 var(--en); color: #fff; }
.sh-stats dd small { font-size: .7rem; color: var(--g-ink2); font-family: var(--jp); }
.sh-stats em { display: block; font: 800 .66rem/1.3 var(--jp); font-style: normal; color: #10131f; background: var(--g-acc); border-radius: 99px; margin: 4px auto 0; width: max-content; padding: 1px 8px; }
.sh-stats em.is-in { animation: sh-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.sh-unlock { display: inline-flex; align-items: center; gap: 6px; color: var(--g-acc); font-weight: 800; margin: 4px 0 8px; }
.sh-res-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 6px; }
.sh-res-hd.is-over .sh-title { color: #ffb3bf; }
.sh-review { margin-top: 18px; background: var(--card); color: var(--ink); border-radius: 16px; padding: 16px; }
.sh-review h3 { margin: 0 0 4px; font-size: 1.1rem; }
.sh-review-n { margin: 0 0 12px; font-size: .86rem; color: var(--ink2); }
.sh-wl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: w; }
.sh-w { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); counter-increment: w; position: relative; }
.sh-w-q { margin: 0; font-weight: 700; line-height: 1.55; padding-left: 28px; }
.sh-w-q::before { content: counter(w); position: absolute; left: 12px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 .75rem/22px var(--en); text-align: center; }
.sh-w-q .en { font-size: 1.06rem; }
.sh-w .sh-fill.ok { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 -3px 0 var(--ok); }
.sh-w-ja { margin: 2px 0 0 28px; font-size: .84rem; color: var(--ink2); }
.sh-w-a { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; }
.sh-w-a span { display: inline-flex; align-items: center; gap: 4px; }
.sh-w-a .sh-ic { width: 16px; height: 16px; stroke-width: 3; }
.sh-w-ok { color: var(--ok); font-weight: 700; }
.sh-w-ng { color: var(--ng); font-weight: 700; }
.sh-w-ex { margin: 6px 0 8px; font-size: .88rem; line-height: 1.7; color: var(--ink2); }
.sh-w .chip .sh-ic { width: 16px; height: 16px; }

/* ページ下の説明 */
.sh-learn h2 { font-size: 1.25rem; margin: 26px 0 10px; }
.sh-gain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-gain li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; line-height: 1.7; color: var(--ink2); }
.sh-gain b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.sh-ranges { display: grid; gap: 8px; }
.sh-range { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sh-range-t { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1.5; }
.sh-range-n { font: 800 .72rem/1 var(--en); letter-spacing: .12em; color: var(--brand-d); }
.sh-range-t small { color: var(--ink3); font-size: .78rem; }
.sh-range-l { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-range-l .chip { font-size: .78rem; padding: 5px 10px; }
.sh-more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 760px) {
  .sh { padding: 12px 10px; border-radius: 18px; margin-inline: -6px; }
  .sh-how { grid-template-columns: 1fr; }
  .sh-how li { padding: 10px 14px; }
  .sh-opts { grid-template-columns: 1fr; }
  .sh-stages { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sh-st { min-height: 120px; padding: 12px 11px 10px; }
  .sh-st-t { font-size: 1rem; }
  .sh-st-d { font-size: .7rem; }
  .sh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-gain { grid-template-columns: 1fr; }
  .sh-q { height: 96px; padding: 6px 10px; }
  .sh-q-t { font-size: .95rem; } .sh-q-t .en { font-size: 1.04rem; }
  .sh-b span { font-size: .7rem; }
  .sh-keys { font-size: .76rem; }
}
@media (max-width: 480px) {
  .sh-b { flex-direction: column; gap: 1px; padding: 5px 2px; }
  .sh-vol input { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-st, .sh-q { transition: none; }
  .sh-rank-big, .sh-stats em.is-in { animation: none; }
}
