/* 名言シューティング（WORD STRIKE）。黒・金・明朝。絵は canvas、文字の帯と画面の切り替えは DOM */
.gm-stage[data-game="shooter"] { aspect-ratio: 4 / 3; max-height: 86vh; min-height: 480px; background: #07070a; }
.gm-stage[data-game="shooter"]:fullscreen { aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.sh.is-play, .sh.is-play .sh-cv { touch-action: none; }
.sh-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── 上の帯：和訳と英文の進み具合 */
.sh-band { position: absolute; left: 0; right: 0; top: 0; z-index: 5; padding: 8px 16px 11px; text-align: center; background: linear-gradient(180deg, rgba(9, 9, 12, 0.97), rgba(13, 12, 17, 0.88)); border-bottom: 1px solid rgba(201, 162, 74, 0.4); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.95); visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0.35s; }
.sh-band.on { visibility: visible; opacity: 1; }
.sh-band::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(241, 220, 160, 0.85), transparent); }
.sh-band.ng { animation: sh-ng 0.4s; }
@keyframes sh-ng { 30% { box-shadow: inset 0 -3px 0 rgba(214, 84, 74, 0.85), 0 12px 30px -16px rgba(0, 0, 0, 0.95); } }
.sh-hud { display: flex; align-items: center; gap: 14px; margin-bottom: 5px; font: 600 11px/1 'Poppins', var(--jp), sans-serif; letter-spacing: 0.18em; color: rgba(225, 196, 126, 0.85); }
.sh-stg b { margin-left: 4px; font-weight: 700; letter-spacing: 0.04em; color: #f3ede2; font-size: 13px; }
.sh-band.boss .sh-stg::after { content: 'BOSS'; margin-left: 8px; padding: 2px 7px 1px; border: 1px solid rgba(229, 139, 120, 0.7); border-radius: 3px; color: #eda08e; letter-spacing: 0.16em; }
.sh-sc { margin-left: auto; }
.sh-sc small { font-size: 10px; opacity: 0.8; }
.sh-sc b { font: 700 16px 'Poppins', sans-serif; letter-spacing: 0.03em; color: #f3ede2; font-variant-numeric: tabular-nums; }
.sh-lv { display: flex; gap: 3px; }
.sh-lv svg { width: 15px; height: 14px; fill: #e1c47e; filter: drop-shadow(0 0 4px rgba(225, 196, 126, 0.5)); }
.sh-lv svg.off { fill: rgba(243, 237, 226, 0.14); filter: none; }
.sh-pz { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 26px; padding: 0; border-radius: 8px; border: 1px solid rgba(243, 237, 226, 0.28); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.sh-pz:hover { border-color: rgba(225, 196, 126, 0.7); }
.sh-pz i { width: 3px; height: 11px; border-radius: 1px; background: #f3ede2; }
.sh-ja { margin: 0 auto 3px; max-width: 46em; font: 700 15px/1.6 'Shippori Mincho B1', var(--jp), serif; color: rgba(243, 237, 226, 0.94); }
.sh-en { margin: 0 auto; max-width: 42em; font: italic 600 21px/1.5 'Playfair Display', Georgia, serif; color: #f3ede2; }
.sh-en.long { font-size: 18px; line-height: 1.45; }
.sh-en .w { display: inline-block; white-space: nowrap; }
.sh-en .p { color: rgba(243, 237, 226, 0.5); }
.sh-en .c { display: inline-block; padding: 0 1px; line-height: 1.15; color: transparent; border-bottom: 1.5px solid rgba(225, 196, 126, 0.32); transition: color 0.25s, border-color 0.25s; }
.sh-en .c.now { border-bottom-color: #e1c47e; box-shadow: 0 7px 10px -8px rgba(225, 196, 126, 0.95); animation: sh-now 1.1s ease-in-out infinite; }
.sh-en .c.on { color: #e1c47e; border-bottom-color: transparent; text-shadow: 0 0 14px rgba(225, 196, 126, 0.45); animation: none; }
.sh-en .c.on.pop { animation: sh-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes sh-now { 50% { border-bottom-color: rgba(225, 196, 126, 0.28); box-shadow: none; } }
@keyframes sh-pop { from { transform: scale(1.5); } to { transform: none; } }

/* ── 撃ち抜いた語が空欄へ飛ぶ */
.sh-fx { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
.sh-fly { position: absolute; left: 0; top: 0; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; line-height: 1; white-space: nowrap; color: #fff6dc; text-shadow: 0 0 10px rgba(225, 196, 126, 0.95), 0 0 26px rgba(201, 162, 74, 0.6); transition: transform 0.55s cubic-bezier(0.55, 0, 0.25, 1); will-change: transform; }

/* ── 面の始まりの文字 */
.sh-banner { position: absolute; left: 0; right: 0; z-index: 6; text-align: center; pointer-events: none; opacity: 0; transform: translateY(-50%); }
.sh-banner.go { animation: sh-ban 2.4s ease forwards; }
.sh-banner b { display: block; font: italic 700 clamp(30px, 6vw, 56px) / 1.1 'Playfair Display', Georgia, serif; letter-spacing: 0.12em; color: #e1c47e; text-shadow: 0 0 30px rgba(201, 162, 74, 0.45); }
.sh-banner small { display: block; margin-top: 10px; font: 700 13px/1.6 'Shippori Mincho B1', var(--jp), serif; letter-spacing: 0.2em; color: rgba(243, 237, 226, 0.86); }
.sh-banner.warn b { color: #ec9784; text-shadow: 0 0 30px rgba(214, 84, 74, 0.6); animation: sh-blink 0.5s steps(2) 4; }
.sh-banner.warn::before, .sh-banner.warn::after { content: ''; display: block; width: min(70%, 440px); height: 1px; margin: 12px auto; background: linear-gradient(90deg, transparent, rgba(236, 151, 132, 0.85), transparent); }
@keyframes sh-ban { 0% { opacity: 0; transform: translateY(-50%) scale(1.14); letter-spacing: 0.3em; } 14% { opacity: 1; transform: translateY(-50%); } 78% { opacity: 1; transform: translateY(-50%); } 100% { opacity: 0; transform: translateY(calc(-50% - 12px)); } }
@keyframes sh-blink { 50% { opacity: 0.35; } }

/* ── 画面（タイトル・一時停止・完成・結果） */
.sh-ov { z-index: 20; }
.sh-ov .sh-in { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin: auto 0; }
.sh-ov .sh-in > p { margin: 0; }
.sh-title { background: radial-gradient(circle at 50% 36%, rgba(24, 21, 30, 0.42), rgba(6, 6, 8, 0.8)); }
.sh-kick { font: 600 11px 'Poppins', sans-serif !important; letter-spacing: 0.34em; color: #c9a24a; opacity: 1 !important; }
.gm-ov h2.sh-logo { margin: 0; font: italic 700 clamp(42px, 8.4vw, 78px) / 1 'Playfair Display', Georgia, serif; letter-spacing: 0.04em; color: transparent; background: linear-gradient(180deg, #fff4d2 12%, #e1c47e 48%, #9c762a 96%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 26px rgba(201, 162, 74, 0.3)); }
.gm-ov h2.sh-logo small { margin-top: 12px; font: 800 clamp(16px, 2.4vw, 21px) / 1.3 'Shippori Mincho B1', var(--jp), serif; letter-spacing: 0.32em; color: #f3ede2; -webkit-text-fill-color: #f3ede2; }
.sh-lead { max-width: 30em !important; font-size: 14.5px !important; line-height: 1.85 !important; }
.sh-lead b, .sh-rules b { color: #e1c47e; font-weight: 700; }
.sh-rules { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; text-align: left; font-size: 13.5px; line-height: 1.7; color: rgba(243, 237, 226, 0.82); }
.sh-rules li::before { content: '◆'; margin-right: 9px; font-size: 8px; vertical-align: 2px; color: #c9a24a; }
.sh-keys p { max-width: none !important; font-size: 12.5px !important; line-height: 2.1 !important; color: rgba(243, 237, 226, 0.72); }
.sh-keys kbd { display: inline-block; min-width: 1.8em; margin: 0 2px; padding: 1px 6px; border: 1px solid rgba(243, 237, 226, 0.3); border-bottom-width: 2px; border-radius: 5px; background: rgba(255, 255, 255, 0.04); font: 600 11px/1.5 'Poppins', sans-serif; color: #f3ede2; text-align: center; }
.sh-best { font: 600 11.5px 'Poppins', var(--jp), sans-serif !important; letter-spacing: 0.12em; color: rgba(243, 237, 226, 0.72); }
.sh-best b { margin-left: 4px; font-size: 16px; color: #e1c47e; letter-spacing: 0.04em; }
.sh-go { min-width: 210px; padding: 14px 30px; font-size: 16px; letter-spacing: 0.08em; }
.sh-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sh-row .gm-btn small { margin-left: 8px; font: 600 10px 'Poppins', sans-serif; letter-spacing: 0.1em; opacity: 0.6; }

.sh-ov-card { background: radial-gradient(circle at 50% 46%, rgba(10, 10, 14, 0.5), rgba(4, 4, 6, 0.82)); }
.sh-card { position: relative; width: min(570px, 100%); padding: 26px 26px 22px; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 27, 36, 0.94), rgba(14, 13, 18, 0.96)); border: 1px solid rgba(201, 162, 74, 0.45); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.sh-card::before { content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #f1dca0, transparent); }
.sh-card p { max-width: none !important; opacity: 1 !important; }
.sh-ck { margin: 0 0 12px !important; font: 600 11.5px 'Poppins', sans-serif !important; letter-spacing: 0.36em; color: #c9a24a; }
.sh-card .gm-en { margin: 0 0 10px; color: #f7ecd0; }
.sh-card .gm-ja { margin: 0 0 6px; color: rgba(243, 237, 226, 0.92); }
.sh-who { margin: 0 0 14px !important; font-size: 13px !important; color: rgba(243, 237, 226, 0.68); }
.sh-who i, .sh-list .lw i { font-family: 'Playfair Display', Georgia, serif; }
.sh-bonus { max-width: 300px; margin: 0 auto 16px; padding: 10px 0 0; list-style: none; border-top: 1px solid rgba(201, 162, 74, 0.22); font-size: 13px; }
.sh-bonus li { display: flex; justify-content: space-between; padding: 2px 0; color: rgba(243, 237, 226, 0.78); }
.sh-bonus b { font: 700 13.5px 'Poppins', sans-serif; color: #e1c47e; }
.sh-tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(201, 162, 74, 0.14); }
.sh-tbar i { display: block; height: 100%; background: linear-gradient(90deg, #a07a2c, #f1dca0); transform-origin: left; }

.sh-result { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.sh-sl { font: 600 11px 'Poppins', sans-serif !important; letter-spacing: 0.3em; color: rgba(243, 237, 226, 0.6); margin-top: 4px !important; }
.sh-big { font: italic 700 clamp(46px, 8vw, 74px) / 1 'Playfair Display', Georgia, serif !important; color: #e1c47e; letter-spacing: 0.02em; opacity: 1 !important; text-shadow: 0 0 34px rgba(201, 162, 74, 0.35); }
.sh-new { padding: 4px 14px; border-radius: 999px; background: linear-gradient(180deg, #f1dca0, #b8913c); color: #141217; font: 700 11px 'Poppins', sans-serif !important; letter-spacing: 0.24em; opacity: 1 !important; animation: sh-blink 1.2s ease-in-out infinite; }
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin: 4px 0; }
.sh-stats div { padding: 10px 6px; border: 1px solid rgba(201, 162, 74, 0.22); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.sh-stats dt { font-size: 11.5px; color: rgba(243, 237, 226, 0.62); }
.sh-stats dd { margin: 4px 0 0; font: 700 21px 'Poppins', sans-serif; color: #f3ede2; }
.sh-stats dd small { font-size: 12px; margin-left: 1px; opacity: 0.7; }
.sh-h3 { margin: 10px 0 0; font: 800 16px 'Shippori Mincho B1', var(--jp), serif; letter-spacing: 0.12em; color: #f3ede2; }
.sh-list { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.sh-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(243, 237, 226, 0.08); transition: border-color 0.2s, background 0.2s; }
.sh-list li:hover { border-color: rgba(201, 162, 74, 0.45); background: rgba(201, 162, 74, 0.06); }
.sh-list a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.sh-list .gm-en { display: block; font-size: 16px; color: #f3ede2; }
.sh-list .lj { display: block; margin-top: 2px; font: 600 12.5px/1.6 'Shippori Mincho B1', var(--jp), serif; color: rgba(243, 237, 226, 0.75); }
.sh-list .lw { display: block; font-size: 11.5px; color: rgba(225, 196, 126, 0.8); }
.sh-list li.mid { opacity: 0.78; }
.sh-tag { flex: none; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(243, 237, 226, 0.3); font: 700 10.5px var(--jp); font-style: normal; color: rgba(243, 237, 226, 0.75); }
.sh-say { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid rgba(225, 196, 126, 0.5); background: transparent; color: #e1c47e; font-size: 12px; cursor: pointer; }
.sh-say:hover { background: rgba(225, 196, 126, 0.12); }
.sh-ov-pause h2 { color: #f3ede2; }

@media (hover: none) and (pointer: coarse) { .sh .pc, .sh-row .gm-btn small { display: none; } }
@media (max-width: 640px) {
  .gm-stage[data-game="shooter"] { aspect-ratio: 9 / 16; max-height: calc(100svh - 64px); min-height: 520px; margin: 0 -14px; width: calc(100% + 28px); }
  .sh-band { padding: 6px 12px 9px; }
  .sh-hud { gap: 9px; letter-spacing: 0.12em; font-size: 10px; margin-bottom: 4px; }
  .sh-sc small { display: none; }
  .sh-sc b { font-size: 15px; }
  .sh-ja { font-size: 13px; line-height: 1.55; margin-bottom: 2px; }
  .sh-en { font-size: 17px; line-height: 1.45; }
  .sh-en.long { font-size: 15px; }
  .sh-ov .sh-in { gap: 10px; }
  .sh-lead { font-size: 13.5px !important; }
  .sh-rules { font-size: 12.5px; }
  .sh-keys p { font-size: 12px !important; line-height: 1.9 !important; }
  .sh-card { padding: 20px 16px 18px; }
  .sh-stats { grid-template-columns: repeat(2, 1fr); }
  .sh-row .gm-btn { min-width: 0; padding: 11px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-en .c.now, .sh-new, .sh-banner.warn b { animation: none; }
  .sh-banner.go { animation-duration: 2.4s; }
}
