/* キョウテタンX — 見た目
   ・暗い地に、シアン→バイオレット→ピンクの光。状態の色は5つだけ（即答・遅い・怪しい・穴・回収）
   ・スマホの幅（390px）で横にはみ出さない。押せる所は 44px 以上 */
:root {
  --bg: #07070d;
  --bg2: #0d0e18;
  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --tx: #f3f4fa;
  --tx2: #a9adc4;
  --tx3: #6d7190;
  --c1: #00e5ff;
  --c2: #7c4dff;
  --c3: #ff3d81;
  --grad: linear-gradient(110deg, var(--c1), var(--c2) 52%, var(--c3));
  --ok: #22e39b;     /* 即答 */
  --slow: #ffd23f;   /* 遅い */
  --doubt: #ff9f43;  /* 怪しい */
  --hole: #ff4d6d;   /* 穴 */
  --fix: #38bdf8;    /* 回収（穴をつぶした） */
  --none: #1a1c29;
  --r: 18px;
  --en: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx); font-family: var(--ja); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--c1); text-decoration: none; }
b, strong { font-weight: 700; }
.en { font-family: var(--en); letter-spacing: -.01em; }
.num { font-family: var(--en); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* 背景のオーロラ */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(60% 45% at 15% 0%, rgba(0, 229, 255, .13), transparent 70%),
              radial-gradient(55% 40% at 95% 10%, rgba(255, 61, 129, .12), transparent 70%),
              radial-gradient(70% 50% at 50% 100%, rgba(124, 77, 255, .14), transparent 70%), var(--bg); }
#bg::after { content: ""; position: absolute; inset: -50%; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(600px) rotateX(58deg) translateY(-8%); mask-image: linear-gradient(to bottom, transparent 30%, #000 75%); }

/* 上のバー */
#top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(7, 7, 13, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: baseline; gap: 4px; font-family: var(--en); font-weight: 700; color: var(--tx); letter-spacing: .08em; font-size: 15px; }
.lg-x { font-size: 24px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(124, 77, 255, .6)); }
.top-r { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--tx2); white-space: nowrap; }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 90px; }
.boot { min-height: 60vh; display: grid; place-content: center; text-align: center; color: var(--tx3); }
.boot-x { font: 700 72px var(--en); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.94); } }

/* カード */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; }
.card.glow { border-color: transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
h2 { font-size: 17px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; }
h2 small { font-size: 12px; font-weight: 400; color: var(--tx3); }
.sub { color: var(--tx2); font-size: 13px; }
.mini { color: var(--tx3); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; background: var(--card2); border: 1px solid var(--line2); transition: transform .12s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 30px -8px rgba(124, 77, 255, .7); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn.big { min-height: 58px; font-size: 17px; width: 100%; border-radius: 16px; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns > .btn { flex: 1 1 140px; }

/* ===== ホーム ===== */
.hero { padding: 18px 16px 16px; overflow: hidden; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cd-lab { font-size: 12px; color: var(--tx2); }
.cd { display: flex; align-items: baseline; gap: 6px; }
.cd-d { font: 700 64px/1 var(--en); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-u { font-size: 16px; font-weight: 700; }
.cd-t { font: 500 13px var(--en); color: var(--tx3); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.seg button { padding: 6px 10px; font-size: 12px; border-radius: 9px; color: var(--tx2); white-space: nowrap; }
.seg button.on { background: var(--card2); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line2); }
.phase { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 229, 255, .07); border: 1px solid rgba(0, 229, 255, .22); font-size: 13px; }
.phase b { color: var(--c1); }

.gauge-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .g-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-pct { font: 700 34px/1 var(--en); letter-spacing: -.03em; }
.g-pct small { font-size: 16px; }
.g-lab { font-size: 11px; color: var(--tx2); margin-top: 4px; line-height: 1.3; }
.g-ticks { display: grid; gap: 6px; }
.tick { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--tx2); padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tick.done { color: var(--ok); border-color: rgba(34, 227, 155, .35); }
.tick b { font-family: var(--en); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.stat { text-align: center; padding: 8px 2px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.stat b { display: block; font: 700 20px/1.2 var(--en); }
.stat span { font-size: 10.5px; color: var(--tx3); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }

.mission { display: flex; gap: 12px; align-items: center; }
.mission .m-ring { flex: none; width: 54px; height: 54px; }
.m-list { font-size: 13px; color: var(--tx2); margin: 4px 0 0; padding: 0; list-style: none; }
.m-list li::before { content: "▸ "; color: var(--c2); }

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mode { position: relative; text-align: left; padding: 14px 13px 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; min-height: 112px; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, border-color .2s; }
.mode:hover { border-color: var(--line2); transform: translateY(-2px); }
.mode::before { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: var(--mc, var(--c2)); opacity: .18; filter: blur(18px); }
.mode .m-ico { font-size: 22px; line-height: 1; }
.mode .m-t { font-weight: 700; font-size: 15px; }
.mode .m-d { font-size: 11.5px; color: var(--tx2); line-height: 1.45; }
.mode .m-tag { position: absolute; top: 10px; right: 10px; font: 700 10px var(--en); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--tx2); letter-spacing: .04em; }
.mode.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.mode.wide .m-ico { font-size: 30px; }

.m2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.m2 > div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.m2 b { display: block; font: 700 28px/1.15 var(--en); margin: 2px 0 6px; }
.m2 b small { font-size: 15px; color: var(--tx3); }
.modes.four { grid-template-columns: repeat(2, 1fr); }
.modes.four .mode { min-height: 96px; }
@media (min-width: 640px) { .modes.four { grid-template-columns: repeat(4, 1fr); } }
.more { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.more button { padding: 9px 13px; border-radius: 12px; font-size: 13px; background: var(--card); border: 1px solid var(--line); color: var(--tx2); }
.more button:hover { color: var(--tx); border-color: var(--line2); }
.newb { font: 700 9.5px var(--en); padding: 1px 5px; border-radius: 5px; background: var(--grad); color: #fff; margin-left: 2px; vertical-align: 1px; }
.sets { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.sets::-webkit-scrollbar { display: none; }
.set { flex: none; width: 148px; text-align: left; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.set.on { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1) inset, 0 0 20px -6px var(--c1); }
.set .s-k { font: 700 11px var(--en); color: var(--c1); letter-spacing: .06em; }
.set .s-t { font-weight: 700; font-size: 14px; margin: 2px 0; }
.set .s-d { font-size: 11px; color: var(--tx3); line-height: 1.4; min-height: 31px; }
.set .bar { margin-top: 8px; }

.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }

/* 語彙マップ */
.map-wrap { position: relative; }
#map { display: block; width: 100%; touch-action: manipulation; cursor: crosshair; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--tx2); margin-top: 8px; }
.map-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 10px; background: rgba(13,14,24,.95); border: 1px solid var(--line2); font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); z-index: 3; }

.links { display: grid; gap: 8px; }
.lnk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--tx); }
.lnk .l-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); }
.lnk .l-t { font-weight: 700; font-size: 14px; }
.lnk .l-d { font-size: 11.5px; color: var(--tx2); line-height: 1.4; }
.lnk .l-go { margin-left: auto; color: var(--tx3); }
footer.foot { margin-top: 28px; font-size: 11.5px; color: var(--tx3); line-height: 1.8; }
footer.foot a { color: var(--tx2); text-decoration: underline; }

/* ===== 出題画面（共通） ===== */
.play { min-height: calc(100vh - 160px); display: flex; flex-direction: column; }
.p-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.p-head .x { width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 18px; color: var(--tx2); flex: none; }
.p-prog { flex: 1; height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.p-prog i { display: block; height: 100%; background: var(--grad); border-radius: 8px; transition: width .3s; }
.p-cnt { font: 500 13px var(--en); color: var(--tx2); min-width: 54px; text-align: right; }
.combo { font: 700 13px var(--en); color: var(--c3); min-width: 0; }

/* スキャンのカード */
.stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 360px; perspective: 1200px; }
.scard { position: relative; width: 100%; max-width: 440px; min-height: 340px; border-radius: 26px; padding: 22px 20px 18px; background: radial-gradient(120% 80% at 50% 0%, rgba(124,77,255,.20), transparent 60%), linear-gradient(180deg, #141527, #0c0d18); border: 1px solid var(--line2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset; display: flex; flex-direction: column; align-items: center; text-align: center; touch-action: pan-y; user-select: none; transition: transform .25s, opacity .25s; will-change: transform; }
.scard.drag { transition: none; }
.scard .tmr { position: absolute; left: 18px; right: 18px; top: 12px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.scard .tmr i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), var(--slow) 60%, var(--hole)); transform-origin: left; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; }
.bd { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--tx2); white-space: nowrap; }
.bd.hot { background: rgba(255, 61, 129, .16); color: #ff8fb5; }
.bd.key { background: rgba(255, 210, 63, .14); color: var(--slow); }
.bd.sh { background: rgba(0, 229, 255, .12); color: var(--c1); }
.bd.six { background: rgba(34, 227, 155, .13); color: var(--ok); }
.bd.x { background: var(--grad); color: #fff; }
.yrs { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.yrs span { width: 26px; text-align: center; font: 500 9.5px var(--en); color: var(--tx3); }
.yrs span i { display: block; height: 6px; border-radius: 3px; margin-bottom: 2px; background: rgba(255,255,255,.08); }
.yrs span.on i { background: var(--c1); box-shadow: 0 0 8px var(--c1); }
.yrs span.on { color: var(--tx2); }
.w-big { font: 700 clamp(34px, 11vw, 54px)/1.1 var(--en); letter-spacing: -.02em; margin: auto 0 0; padding-top: 20px; word-break: break-word; }
.w-big.ph { font-size: clamp(26px, 8vw, 38px); }
.w-pos { margin-top: 6px; font-size: 12px; color: var(--tx3); }
.w-ja { font-size: clamp(17px, 5vw, 21px); font-weight: 700; margin-top: 10px; line-height: 1.5; }
.w-ex { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); text-align: left; width: 100%; font-size: 14px; }
.w-ex .e-en { font-family: var(--en); line-height: 1.5; }
.w-ex .e-ja { color: var(--tx2); font-size: 12.5px; margin-top: 4px; }
.w-ex mark { background: none; color: var(--c1); font-weight: 700; }
.reveal { margin-top: auto; width: 100%; padding-top: 10px; }
.hint-sw { margin-top: auto; font-size: 11.5px; color: var(--tx3); padding-top: 12px; }
.say { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--line); margin-top: 12px; }
.say svg { width: 20px; height: 20px; }
.say.on { animation: ring 1s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.5); } 100% { box-shadow: 0 0 0 14px rgba(0,229,255,0); } }
.stamp { position: absolute; top: 34px; font: 700 22px var(--en); padding: 4px 14px; border: 3px solid; border-radius: 10px; opacity: 0; letter-spacing: .06em; pointer-events: none; }
.stamp.l { left: 18px; color: var(--hole); transform: rotate(-12deg); }
.stamp.r { right: 18px; color: var(--ok); transform: rotate(12deg); }
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cbtn { min-height: 64px; border-radius: 18px; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 1px solid var(--line2); background: var(--card); }
.cbtn small { font: 500 11px var(--en); color: var(--tx3); }
.cbtn.no { color: #ff9db0; border-color: rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .08); }
.cbtn.yes { color: #9df5cf; border-color: rgba(34, 227, 155, .4); background: rgba(34, 227, 155, .08); }
.cbtn:active { transform: scale(.97); }
.flashbar { display: flex; gap: 8px; margin-top: 12px; width: 100%; }
.flashbar .btn { flex: 1; }
.auto { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin-top: 10px; width: 100%; }
.auto i { display: block; height: 100%; background: var(--ok); transform-origin: left; }

/* 4択 */
.q { text-align: center; padding: 18px 8px 8px; }
.q-lab { font-size: 12px; color: var(--tx3); }
.q-main { font: 700 clamp(28px, 9vw, 44px)/1.15 var(--en); margin: 10px 0 4px; word-break: break-word; }
.q-main.ja { font-family: var(--ja); font-size: clamp(20px, 6vw, 26px); }
.q-sent { font: 500 17px/1.6 var(--en); text-align: left; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); margin-top: 10px; }
.q-sent .blank { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--c1); color: var(--c1); text-align: center; }
.opts { display: grid; gap: 9px; margin-top: 16px; }
.opt { text-align: left; min-height: 56px; padding: 12px 16px; border-radius: 15px; background: var(--card); border: 1px solid var(--line2); font-size: 15px; display: flex; align-items: center; gap: 12px; transition: background .15s, border-color .15s, transform .1s; }
.opt .k { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--en); background: rgba(255,255,255,.07); color: var(--tx3); }
.opt.en { font-family: var(--en); font-size: 17px; }
.opt:active { transform: scale(.985); }
.opt.right { background: rgba(34, 227, 155, .14); border-color: var(--ok); }
.opt.wrong { background: rgba(255, 77, 109, .14); border-color: var(--hole); }
.opt.dim { opacity: .45; }
.ear-big { width: 132px; height: 132px; border-radius: 50%; margin: 18px auto 6px; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,229,255,.25), rgba(124,77,255,.12) 60%, transparent 70%); border: 1px solid rgba(0,229,255,.35); }
.ear-big svg { width: 54px; height: 54px; }
.ear-big.on { animation: ring 1s ease-out infinite; }
.fb { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); font-size: 13.5px; }
.fb .src { font-size: 11.5px; color: var(--tx3); margin-top: 6px; }

/* 言い換え */
.para-from { text-align: left; padding: 16px; border-radius: 16px; background: rgba(255, 61, 129, .07); border: 1px solid rgba(255, 61, 129, .25); }
.para-from .pl { font-size: 11.5px; color: #ff8fb5; font-weight: 700; }
.para-from .pt { font: 500 18px/1.5 var(--en); margin-top: 4px; }
.timer-line { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 12px; }
.timer-line i { display: block; height: 100%; background: var(--grad); transform-origin: left; }

/* 結果 */
.res-hero { text-align: center; padding: 24px 16px; }
.res-big { font: 700 64px/1 var(--en); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-delta { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px; background: rgba(34, 227, 155, .12); color: var(--ok); font: 700 14px var(--en); }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 0; }
.cells { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 12px; }
.cells i { width: 12px; height: 12px; border-radius: 3px; }
.wl { display: grid; gap: 6px; }
.wi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; }
.wi .wi-w { font: 700 15px var(--en); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi .wi-j { font-size: 12.5px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi .wi-n { margin-left: auto; font: 500 12px var(--en); color: var(--tx3); flex: none; text-align: right; }

/* 一覧 */
.search { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); color: var(--tx); font-size: 16px; }
.search:focus { outline: 2px solid var(--c2); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { padding: 7px 12px; border-radius: 99px; font-size: 12.5px; background: var(--card); border: 1px solid var(--line); color: var(--tx2); }
.chip.on { background: rgba(124, 77, 255, .22); border-color: var(--c2); color: var(--tx); }

/* 単語シート */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sh-in { width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; background: #0e0f1b; border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.9,.3,1.1); }
@keyframes up { from { transform: translateY(40%); } }
.sh-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line2); margin: 0 auto 10px; }
.sh-w { font: 700 34px/1.15 var(--en); word-break: break-word; }
.sh-ipa { font: 500 14px var(--en); color: var(--tx3); }
.sh-sec { margin-top: 14px; }
.sh-sec h4 { margin: 0 0 6px; font-size: 12px; color: var(--tx3); font-weight: 700; letter-spacing: .04em; }
.hist { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 70px; }
.hist div { display: flex; flex-direction: column-reverse; height: 100%; gap: 1px; }
.hist i { display: block; border-radius: 2px; min-height: 0; }
.hist-lab { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; font: 500 8.5px var(--en); color: var(--tx3); text-align: center; margin-top: 3px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { font: 500 13px var(--en); padding: 4px 10px; border-radius: 9px; background: rgba(124, 77, 255, .14); }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 60; padding: 10px 18px; border-radius: 14px; background: rgba(20, 21, 39, .96); border: 1px solid var(--line2); font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.burst { position: fixed; pointer-events: none; z-index: 70; font: 700 22px var(--en); color: var(--ok); text-shadow: 0 0 12px currentColor; animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translateY(-60px) scale(1.3); opacity: 0; } }

.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.run-stage { text-align: center; padding: 26px 10px; }
.run-w { font: 700 clamp(36px, 12vw, 60px)/1.1 var(--en); }
.run-ja { font-size: 20px; font-weight: 700; margin-top: 10px; min-height: 32px; }
.run-ex { font: 500 16px/1.6 var(--en); color: var(--tx2); margin-top: 14px; min-height: 52px; }
.eq { display: flex; gap: 4px; justify-content: center; height: 28px; align-items: flex-end; margin-top: 18px; }
.eq i { width: 5px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.eq.off i { animation: none; height: 4px !important; }
@keyframes eq { 50% { height: 6px; } }

@media (min-width: 640px) {
  .modes { grid-template-columns: repeat(3, 1fr); }
  .gauge-wrap { grid-template-columns: 170px 1fr; }
  .gauge { width: 170px; height: 170px; }
}
@media (max-width: 380px) {
  .gauge-wrap { grid-template-columns: 1fr; justify-items: center; }
  .g-ticks { width: 100%; }
  .cd-d { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== スマホの操作（メニュー・下のタブ・上へ戻る） ===== */
main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.playing main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; }
.dr-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); overflow-y: auto; background: #0e0f1b; border-left: 1px solid var(--line2); padding: max(12px, env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)); animation: slide .25s cubic-bezier(.2,.9,.3,1); }
@keyframes slide { from { transform: translateX(100%); } }
.dr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dr-a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--tx); font-size: 15px; }
.dr-a:active, .dr-a:hover { background: var(--card2); }
.dr-pri { background: var(--grad); color: #fff; font-weight: 700; margin: 4px 0; }
.dr-sec { font-size: 11.5px; color: var(--tx3); font-weight: 700; margin: 16px 12px 4px; letter-spacing: .04em; }
body.lock { overflow: hidden; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 10, 18, .88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: 12px; font-size: 10.5px; color: var(--tx3); font-weight: 700; }
.tabbar span { font-size: 19px; line-height: 1.1; filter: grayscale(.6); }
.tabbar .on { color: var(--tx); }
.tabbar .on span { filter: none; }
.tabbar .tb-pri { color: #fff; }
.tabbar .tb-pri span { width: 40px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font-size: 14px; filter: none; box-shadow: 0 4px 16px -4px rgba(124,77,255,.8); }
.tabbar i { position: absolute; top: 4px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hole); color: #fff; font: 700 10.5px/18px var(--en); font-style: normal; }
body.playing .tabbar { display: none; }
@media (min-width: 900px) { .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 14px; border-radius: 20px; border: 1px solid var(--line2); padding-bottom: 6px; } }

.totop { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 31; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 21, 39, .92); border: 1px solid var(--line2); color: var(--tx); box-shadow: 0 8px 24px -6px rgba(0,0,0,.8), 0 0 0 1px rgba(0,229,255,.15); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s; }
.totop svg { width: 22px; height: 22px; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
body.playing .totop { bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .totop { bottom: 28px; right: 28px; } }

/* ===== シンプルなホーム（2026-11-20 「分かりにくい」→作り直し） ===== */
.hero2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 4px 2px 14px; flex-wrap: wrap; }
.hero2 .cd-d { font-size: 58px; }
.seg.yr button { display: flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 6px 10px; font-weight: 700; }
.seg.yr small { font-size: 10px; font-weight: 400; color: var(--tx3); }
.seg.yr button.on small { color: var(--tx2); }
.start { padding: 14px; }
.start-btn { width: 100%; min-height: 92px; border-radius: 20px; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 14px 40px -12px rgba(124, 77, 255, .85); text-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .12s; position: relative; overflow: hidden; }
.start-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.start-btn:active { transform: scale(.98); }
.sb-t { font: 700 26px/1.2 var(--ja); letter-spacing: .02em; }
.sb-d { font-size: 13px; opacity: .92; }
.start-how { margin: 12px 2px 0; font-size: 12.5px; color: var(--tx2); line-height: 1.75; }
.score { padding: 16px; }
.sc-lab { font-size: 12.5px; color: var(--tx2); }
.sc-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 2px; }
.sc-big { font: 700 52px/1 var(--en); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-big small { font-size: 22px; }
.sc-goal { text-align: right; font-size: 13px; color: var(--tx2); line-height: 1.3; }
.sc-goal b { color: var(--tx); font-size: 17px; }
.sc-bar { position: relative; height: 12px; border-radius: 12px; background: rgba(255,255,255,.07); margin: 12px 0 10px; }
.sc-bar i { display: block; height: 100%; border-radius: 12px; background: var(--grad); }
.sc-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; transform: translateX(-50%); }
.sc-seg { width: 100%; }
.sc-seg button { flex: 1; }
.stat-row.three { grid-template-columns: repeat(3, 1fr); }
.big3 { display: grid; gap: 10px; margin-bottom: 4px; }
.b3 { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color .2s, transform .12s; }
.b3:active { transform: scale(.985); }
.b3:hover { border-color: var(--line2); }
.b3-i { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; background: color-mix(in srgb, var(--bc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); }
.b3 .grow > b { display: block; font-size: 16.5px; }
.b3 .grow > span { display: block; font-size: 12.5px; color: var(--tx2); margin-top: 1px; }
.b3 .chev { font-size: 22px; color: var(--tx3); }

/* ロゴ「原田英語の KYOTETAN X」・何のアプリかの見出し */
.lg-by { font: 700 11px var(--ja); letter-spacing: 0; color: var(--tx2); margin-right: 2px; align-self: center; }
.what { margin: 6px 2px 16px; }
.w-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0, 229, 255, .1); border: 1px solid rgba(0, 229, 255, .35); color: var(--c1); }
.w-h1 { font-size: clamp(24px, 7vw, 32px); line-height: 1.35; margin: 10px 0 6px; letter-spacing: .01em; }
.w-p { margin: 0; font-size: 13px; color: var(--tx2); line-height: 1.75; }
.w-p b { color: var(--tx); }
.logo { white-space: nowrap; }
.lg-by { white-space: nowrap; }
@media (max-width: 400px) { #streak { display: none !important; } .logo { font-size: 14px; } .lg-x { font-size: 22px; } }

/* ===== 単語チェック＝4択（2026-11-20 「基本は4択アプリ」） ===== */
.stage4 { margin-bottom: 4px; }
.qcard { position: relative; border-radius: 24px; padding: 20px 18px 16px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, rgba(124,77,255,.20), transparent 60%), linear-gradient(180deg, #141527, #0c0d18); border: 1px solid var(--line2); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.qcard .tmr { position: absolute; left: 18px; right: 18px; top: 10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.qcard .tmr i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), var(--slow) 60%, var(--hole)); transform-origin: left; }
.qcard .w-big { margin: 0; padding-top: 14px; }
.qcard .w-pos { display: flex; align-items: center; justify-content: center; gap: 8px; }
.say.sm { width: 34px; height: 34px; margin: 0; }
.say.sm svg { width: 16px; height: 16px; }
.qcard .reveal:empty { display: none; }
.pass { width: 100%; min-height: 46px; margin-top: 9px; border-radius: 14px; border: 1px dashed var(--line2); color: var(--tx2); font-size: 14px; }
.pass small { color: var(--tx3); font-size: 11.5px; }
.pass:active { transform: scale(.985); }
.res-grid.three { grid-template-columns: repeat(3, 1fr); }
.learned .opt.dim { display: none; }

/* 目標カード：何点を目指す → この◯語を覚えよう */
.goal { padding: 16px; }
.g-q { font-size: 13px; color: var(--tx2); font-weight: 700; }
.g-seg { display: flex; width: 100%; margin: 8px 0 14px; }
.g-seg button { flex: 1; font-size: 15px; font-weight: 800; padding: 9px 0; }
.g-head { font-size: clamp(19px, 5.6vw, 23px); font-weight: 800; line-height: 1.5; }
.g-t { color: var(--c1); }
.g-n { font-size: 1.5em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.g-why { margin: 6px 0 14px; font-size: 13px; color: var(--tx2); line-height: 1.75; }
.g-why b { color: var(--tx); }
.g-lnk { color: var(--c1); white-space: nowrap; font-weight: 700; }
.g-pl { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--tx2); }
.g-pl b { font: 700 26px/1 var(--en); color: var(--ok); }
.g-pl .g-pct { margin-left: auto; font-size: 18px; color: var(--tx); }
.g-bar { height: 10px; margin-top: 8px; }
.g-bar i { background: var(--grad); }
.g-est { margin: 12px 0 0; font-size: 13px; line-height: 1.75; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.g-plan { margin-top: 12px; font-size: 14px; line-height: 1.7; padding: 12px; border-radius: 12px; background: rgba(0, 229, 255, .07); border: 1px solid rgba(0, 229, 255, .22); }
.g-note { margin: 8px 0 0; font-size: 11px; color: var(--tx3); }
.res-big small { font-size: .45em; margin-left: 2px; }

/* 目標カードの4択タイムトライアル */
.tt-btn { display: block; width: 100%; margin-top: 14px; padding: 14px 12px; border-radius: 16px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #ff3d81, #7c4dff 55%, #00e5ff); box-shadow: 0 8px 24px rgba(124, 77, 255, .35); }
.tt-btn:active { transform: scale(.98); }
.tt-t { display: block; font: 800 20px/1.3 var(--ja); letter-spacing: .02em; }
.tt-d { display: block; font-size: 12px; opacity: .92; margin-top: 3px; }
.tt-clock { text-align: center; font: 700 30px/1 var(--en); margin: 2px 0 8px; color: var(--tx); }
.tt-clock small { font-size: 13px; margin-left: 2px; color: var(--tx2); font-family: var(--ja); }
.tt-clock.pen { animation: ttpen .7s ease-out; }
@keyframes ttpen { 0% { color: var(--hole); transform: scale(1.18); } 100% { color: var(--tx); transform: none; } }
.tt-sub { margin-top: 10px; font-size: 14px; }
.ev { margin: 8px 0 0; padding: 8px 10px 8px 26px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 12.5px; color: var(--tx2); line-height: 1.8; }
.ev b { color: var(--tx); }

/* 目標点を目立たせる（STEP 1） */
.g-q { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--tx); }
.g-step { font: 800 11px/1 var(--en); letter-spacing: .08em; padding: 5px 8px; border-radius: 8px; background: var(--grad); color: #fff; }
.g-qs { font-size: 12.5px; color: var(--tx2); margin-top: 4px; }
.goal { border: 1px solid rgba(0, 229, 255, .35); box-shadow: 0 0 0 1px rgba(124, 77, 255, .15), 0 10px 30px rgba(0, 0, 0, .35); }
.g-seg { gap: 6px; padding: 5px; margin: 12px 0 16px; }
.g-seg button { font-size: 18px; padding: 13px 0; border-radius: 11px; }
.g-seg button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(124, 77, 255, .4); }
.start .g-q { margin-bottom: 10px; }
.w-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-how { font-size: 13px; font-weight: 700; color: var(--c1); padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(0, 229, 255, .35); white-space: nowrap; }

/* 使い方のページ */
.hw-top { padding: 18px 16px; }
.hw-lead { font-size: 17px; font-weight: 700; line-height: 1.7; margin: 0 0 8px; }
.hw-lead2 { font-size: 14px; line-height: 1.8; margin: 0; color: var(--tx2); }
.hw-lead2 b, .hw p b { color: var(--tx); }
.hw p { font-size: 14px; line-height: 1.8; margin: 8px 0 0; }
.hw-h { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.hw-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 15px var(--en); background: var(--grad); color: #fff; }
.hw-ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.hw-ul li + li { margin-top: 4px; }
.hw-goal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
.hw-goal div { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.hw-goal b { display: block; font-size: 16px; }
.hw-goal span { font: 700 18px var(--en); color: var(--c1); }
.hw-plan div, .hw-col div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; }
.hw-plan div:last-child, .hw-col div:last-child { border-bottom: 0; }
.hw-plan span, .hw-col span { color: var(--tx2); }
.hw-col div { grid-template-columns: 14px auto; column-gap: 8px; align-items: center; }
.hw-col span { grid-column: 2; }
.hw-qa details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hw-qa details:last-child { border-bottom: 0; }
.hw-qa summary { font-weight: 700; font-size: 14px; cursor: pointer; }
.hw-qa p { font-size: 13.5px; line-height: 1.8; color: var(--tx2); margin: 8px 0 0; }

/* メニューの効果音スイッチ */
.dr-btn { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; }
.dr-btn b { color: var(--c1); margin-left: 2px; }

/* 長い見出し語が途中で折れないように（スマホ幅） */
.sh-w.l1 { font-size: 27px; }
.sh-w.l2 { font-size: 22px; }

/* ホームの上：カウントダウンと年の切り替えを1段に（目標カードを早く見せる） */
.hero2 { flex-wrap: nowrap; align-items: center; margin-bottom: 12px; }
.h2-l { min-width: 0; }
.cd-lab { line-height: 1.5; }
.cd-lab small { font-size: 10.5px; color: var(--tx3); }
.seg.yr { flex: none; }

/* ===== 読みやすさの底上げ（2026-11-22 「めちゃくちゃ読みにくい」の声） =====
   ・文字を大きく（説明は 14px 以上、4択の選択肢は 18px）
   ・薄いグレーの文字をやめて、地との差をはっきり（どの文字も 7:1 以上）
   ・白い文字が乗るボタンの地は濃いグラデーション、色文字は明るいグラデーション
   ・背景の光と格子を控えめに。カードは透けない地にする */
:root {
  --bg: #0b0c14;
  --bg2: #141624;
  --card: #151725;
  --card2: #20233a;
  --line: rgba(255, 255, 255, .14);
  --line2: rgba(255, 255, 255, .28);
  --tx: #fff;
  --tx2: #d7daea;
  --tx3: #adb2ca;
  --gradt: linear-gradient(110deg, #5ee9ff, #b7a2ff 52%, #ff8ab3);   /* 色文字用（明るい） */
  --gradb: linear-gradient(110deg, #0b6fae, #6a3df0 52%, #d12566);   /* 白文字が乗る地用（濃い） */
}
body { font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#bg { background: radial-gradient(60% 40% at 15% 0%, rgba(0, 229, 255, .06), transparent 70%), radial-gradient(55% 35% at 95% 5%, rgba(255, 61, 129, .05), transparent 70%), var(--bg); }
#bg::after { display: none; }
#top { background: rgba(11, 12, 20, .94); }
.tabbar { background: rgba(13, 14, 24, .97); }

/* 色文字・ボタンの地 */
.lg-x, .boot-x, .cd-d, .res-big, .sc-big, .g-n { background: var(--gradt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-x { filter: none; }
.btn.pri, .bd.x, .newb, .start-btn, .dr-pri, .tabbar .tb-pri span, .g-step, .g-seg button.on, .hw-n { background: var(--gradb); color: #fff; }
.tt-btn { background: linear-gradient(135deg, #d12566, #6a3df0 55%, #0b6fae); }
.start-btn, .tt-btn, .btn.pri { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

/* 共通の小さい文字 */
.sub { font-size: 14.5px; }
.mini { font-size: 13.5px; color: var(--tx2); }
.pill { font-size: 13px; }
h2 { font-size: 19px; margin-top: 26px; }
h2 small { font-size: 13px; }
.btn.sm { font-size: 14px; min-height: 40px; }
.chip { font-size: 14px; padding: 8px 13px; }
.card { padding: 18px 16px; }

/* ホーム */
.lg-by { font-size: 12px; }
.w-tag { font-size: 13px; }
.w-how { font-size: 14px; }
.w-h1 { line-height: 1.4; margin: 12px 0 8px; }
.w-p { font-size: 15px; line-height: 1.8; }
.cd-lab { font-size: 14px; color: var(--tx2); }
.cd-lab small { font-size: 12px; }
.seg button { font-size: 13.5px; }
.g-seg button { font-size: 19px; }
.seg.yr button { font-size: 13.5px; }
.seg.yr small { font-size: 11.5px; color: var(--tx3); }
.g-qs { font-size: 14.5px; }
.g-head { line-height: 1.55; }
.g-why { font-size: 15px; line-height: 1.8; margin: 8px 0 16px; }
.g-lnk { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.g-pl { font-size: 15px; }
.g-bar { height: 12px; }
.g-est { font-size: 15px; line-height: 1.8; background: var(--card2); }
.g-plan { font-size: 15.5px; line-height: 1.8; padding: 13px 14px; }
.g-note { font-size: 13px; }
.tt-d { font-size: 13.5px; opacity: 1; }
.sb-d { font-size: 14.5px; opacity: 1; }
.start-how { font-size: 14.5px; line-height: 1.85; }
.b3 { min-height: 80px; }
.b3 .grow > b { font-size: 17.5px; }
.b3 .grow > span { font-size: 14px; line-height: 1.5; margin-top: 2px; }
.more button { font-size: 15px; min-height: 46px; padding: 9px 14px; color: var(--tx); }
.legend { font-size: 13px; gap: 6px 14px; }
.lnk .l-t { font-size: 16px; }
.lnk .l-d { font-size: 13.5px; line-height: 1.5; }
footer.foot { font-size: 13px; line-height: 1.85; }
.stat span { font-size: 12.5px; color: var(--tx2); }
.tick { font-size: 13.5px; }
.m-list { font-size: 14.5px; }
.mode .m-d { font-size: 13px; }
.mode .m-tag { font-size: 11.5px; }
.set { width: 168px; }
.set .s-k { font-size: 12px; }
.set .s-t { font-size: 15.5px; }
.set .s-d { font-size: 13px; min-height: 37px; color: var(--tx2); }
.map-tip { font-size: 13px; }
.tabbar a, .tabbar button { font-size: 11.5px; }
.tabbar span { filter: grayscale(.35); }

/* 出題画面：語と選択肢を主役に */
.p-cnt { font-size: 15px; color: var(--tx); }
.combo { font-size: 14px; }
.badges { gap: 6px; }
.bd { font-size: 13px; padding: 4px 10px; background: rgba(255, 255, 255, .1); color: var(--tx2); }
.bd.hot { background: rgba(255, 61, 129, .2); color: #ffb3cc; }
.bd.key { background: rgba(255, 210, 63, .16); color: #ffe07a; }
.bd.sh { background: rgba(0, 229, 255, .14); color: #7cf0ff; }
.bd.six { background: rgba(34, 227, 155, .15); color: #6ff0bf; }
.bd.x { color: #fff; }
.yrs span { font-size: 11px; width: 28px; }
.w-big { font-size: clamp(38px, 12.5vw, 60px); }
.w-big.ph { font-size: clamp(28px, 8.5vw, 40px); line-height: 1.25; }
.w-pos { font-size: 14px; color: var(--tx2); }
.w-ja { font-size: clamp(20px, 5.8vw, 24px); }
.w-ex { font-size: 16.5px; background: rgba(255, 255, 255, .07); padding: 13px 14px; }
.w-ex .e-en { line-height: 1.6; }
.w-ex .e-ja { font-size: 14.5px; margin-top: 5px; }
.w-ex mark { color: #5ee9ff; }
.hint-sw { font-size: 13px; }
.cbtn { font-size: 17px; }
.cbtn small { font-size: 12.5px; color: var(--tx2); }
.q-lab { font-size: 14px; color: var(--tx2); }
.q-sent { font-size: 18px; line-height: 1.7; background: rgba(255, 255, 255, .07); }
.opts { gap: 10px; }
.opt { min-height: 62px; padding: 12px 16px; font-size: 18px; font-weight: 600; line-height: 1.45; background: var(--card2); border: 1.5px solid var(--line2); }
.opt .k { width: 30px; height: 30px; font-size: 14px; background: rgba(255, 255, 255, .12); color: var(--tx2); }
.opt.en { font-size: 19px; }
.opt.right { background: rgba(34, 227, 155, .22); border-color: var(--ok); }
.opt.right .k { background: var(--ok); color: #04130c; }
.opt.wrong { background: rgba(255, 77, 109, .22); border-color: var(--hole); }
.opt.wrong .k { background: var(--hole); color: #fff; }
.opt.dim { opacity: .5; }
.pass { min-height: 52px; font-size: 16px; font-weight: 600; color: var(--tx); border: 1.5px dashed var(--line2); }
.pass small { font-size: 13px; color: var(--tx2); font-weight: 400; }
.fb { font-size: 15px; background: rgba(255, 255, 255, .07); }
.fb .src { font-size: 13px; }
.para-from .pl { font-size: 13px; color: #ffb3cc; }
.para-from .pt { font-size: 19px; }
.ev { font-size: 14px; }
.tt-sub { font-size: 15px; }
.run-ex { font-size: 17px; }

/* 結果・一覧・単語シート・メニュー・使い方 */
.wi { padding: 11px 13px; }
.wi .wi-w { font-size: 17px; }
.wi .wi-j { font-size: 14.5px; }
.wi .wi-n { font-size: 13px; }
.sh-ipa { font-size: 15px; }
.sh-sec h4 { font-size: 13.5px; color: var(--tx2); }
.hist-lab { font-size: 10px; }
.tag-list span { font-size: 14.5px; }
.dr-a, .dr-btn { font-size: 16px; }
.dr-sec { font-size: 13px; }
.hw p, .hw-lead2, .hw-ul { font-size: 15.5px; line-height: 1.85; }
.hw-plan div, .hw-col div { font-size: 15px; }
.hw-qa summary { font-size: 16px; }
.hw-qa p { font-size: 15px; }

/* ホームの流れ：STEP 1 目標 → STEP 2 今日の分 → おまけ（タイムトライアル）。おまけは STEP と見分けがつく札にする */
.g-step.om { background: var(--card2); border: 1px solid var(--line2); color: var(--tx2); font: 700 12px/1 var(--ja); letter-spacing: 0; }
.start .g-q { margin-bottom: 0; }
.start .g-qs, .ttc .g-qs { margin: 6px 0 12px; line-height: 1.7; }
.ttc .tt-btn { margin-top: 0; }
.start .g-plan { margin-top: 14px; }

/* 背の低い画面（スマホのブラウザは上下のバーで狭い）：4択と「分からない」までスクロールなしで見せる */
@media (max-height: 740px) {
  body.playing #top { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  body.playing main { padding-top: 10px; }
  .p-head { margin-bottom: 8px; }
  .qcard { padding: 16px 14px 12px; }
  .qcard .w-big { padding-top: 8px; font-size: clamp(34px, 11vw, 50px); }
  .qcard .w-big.ph { font-size: clamp(26px, 8vw, 36px); }
  .play > .mini { display: none; }
  .qcard .badges { margin-top: 6px; gap: 5px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .qcard .badges::-webkit-scrollbar { display: none; }
  .qcard .badges > :first-child { margin-left: auto; }
  .qcard .badges > :last-child { margin-right: auto; }
  .qcard .bd { font-size: 12.5px; padding: 3px 9px; }
  .qcard .w-pos { margin-top: 2px; }
  .opts { gap: 8px; margin-top: 12px; }
  .opt { min-height: 54px; padding: 8px 14px; font-size: 17px; line-height: 1.35; }
  .pass { min-height: 46px; margin-top: 8px; }
}
@media (max-width: 380px) {
  .opt { font-size: 17px; padding: 11px 13px; }
  .seg.yr button { font-size: 13px; padding: 6px 8px; }
}
