/* en-abc（英語 アルファベット）。正かい＝みどり、まちがい＝赤、えらんでいる＝オレンジ。4本線の ゆか＝オレンジの 太い 線 */
.ea { --ea-ok: #10b981; --ea-okd: #047857; --ea-ng: #ef4444; --ea-ngd: #b91c1c; --ea-o: #f59e0b; --ea-b: #1e3a8a; font-size: 1.05rem; }
.ea [hidden] { display: none !important; }
.ea-q { background: linear-gradient(180deg, #eef6ff, #f8fbff); border: 2px solid #93c5fd; border-radius: 16px; padding: 8px 14px; margin-bottom: 10px; font-weight: 700; line-height: 1.7; }
.ea-q rt { font-size: .5em; font-weight: 500; }
.ea-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.ea-b { font: 700 1rem/1.3 inherit; font-family: inherit; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; color: #1f2937; padding: 8px 16px; min-height: 44px; cursor: pointer;
  box-shadow: 0 3px 0 #e2e8f0; touch-action: manipulation; display: inline-flex; align-items: center; gap: 6px; }
.ea-b:active { transform: translateY(2px); box-shadow: none; }
.ea-b:disabled { opacity: .55; cursor: default; }
.ea-play { border-color: #2563eb; color: #2563eb; box-shadow: 0 3px 0 #bfdbfe; }
.ea-slow { border-color: #0f8a72; color: #0f8a72; box-shadow: 0 3px 0 #a7f3d0; }
.ea-b.small { padding: 6px 10px; min-height: 40px; }
.ea-pick { border-color: #f59e0b; box-shadow: 0 3px 0 #fde68a; }
.ea-pick.sub { border-color: #cbd5e1; box-shadow: 0 3px 0 #e2e8f0; color: #475569; }
.ea-pick.ok { border-color: var(--ea-ok); color: var(--ea-okd); box-shadow: 0 3px 0 #a7f3d0; }
.ea-next { border-color: var(--ea-ok); background: var(--ea-ok); color: #fff; box-shadow: 0 3px 0 var(--ea-okd); margin-left: 8px; }
.ea-cnt { margin-left: auto; color: #64748b; font-weight: 700; }
.ea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.ea-cell { justify-content: center; border-radius: 14px; padding: 4px; min-height: 60px; color: var(--ea-b);
  background: linear-gradient(180deg, #fff, #f8fafc); border: 2px solid #dbe3ee; box-shadow: 0 3px 0 #e2e8f0; }
.ea-cell.small { min-height: 48px; padding: 2px 6px; }
.ea-cell.sel { border-color: var(--ea-o); background: #fff7e6; transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(245, 158, 11, .3); }
.ea-cell.ok { border-color: var(--ea-ok); background: #ecfdf5; color: var(--ea-okd); }
.ea-cell.ng { border-color: var(--ea-ng); background: #fef2f2; color: var(--ea-ngd); animation: ea-shake .35s; }
@keyframes ea-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ea-cell.ng { animation: none; } }
.ea-tile { display: block; width: auto; }
.ea-fb { min-height: 1.6em; margin: 8px 0; padding: 6px 10px; border-radius: 12px; font-weight: 700; line-height: 1.7; }
.ea-fb.ok { background: #ecfdf5; color: var(--ea-okd); }
.ea-fb.ng { background: #fef2f2; color: var(--ea-ngd); }
.ea-cmp { display: flex; gap: 12px; flex-wrap: wrap; }
.ea-cbox { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border: 2px solid var(--ea-ng); border-radius: 14px; color: var(--ea-ngd); background: #fff; }
.ea-cbox.want { border-color: #2563eb; color: var(--ea-b); }
.ea-cl { font-size: .85rem; font-weight: 700; }
.ea-inl { display: inline-block; vertical-align: middle; color: var(--ea-b); }
.ea-board { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px auto; background: #fff; border-radius: 12px; }
.ea-2box, .ea-3box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ea-3box { grid-template-columns: repeat(3, 1fr); }
.ea-box, .ea-rbox { border: 2px dashed #94a3b8; border-radius: 14px; padding: 6px; min-height: 90px; background: #f8fafc; }
.ea-box.s { border-color: #10b981; } .ea-box.d { border-color: #f59e0b; }
.ea-box b, .ea-rbox b { display: block; font-size: .9rem; text-align: center; }
.ea-in { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.ea-chip { display: inline-flex; gap: 2px; padding: 2px 6px; background: #fff; border-radius: 10px; color: var(--ea-b); border: 1px solid #e2e8f0; }
.ea-rbox { cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.ea-rbox:focus-visible { outline: 3px solid #93c5fd; }
.ea-mini { width: 40px; height: 80px; }
.ea-pile { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 6px; border-radius: 12px; background: #f1f5f9; }
.ea-mirst { display: flex; align-items: center; gap: 12px; justify-content: center; }
.ea-mirst .ea-board { max-width: 220px; }
.ea-name { color: var(--ea-b); min-width: 50px; }
.ea-pred { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px; border-radius: 12px; background: #fff7e6; font-weight: 700; }
.ea-sub { font-weight: 700; margin: 10px 0 4px; display: flex; align-items: center; gap: 6px; }
.ea-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ea-cap, .ea-ask, .ea-place { margin-top: 12px; padding-top: 8px; border-top: 2px dotted #e2e8f0; }
.ea-cap .ea-board { max-width: 260px; }
.ea-pst .ea-board { max-width: 240px; }
.ea-tr { max-width: 340px; cursor: crosshair; }
.ea-note { color: #64748b; font-size: .85rem; }
@media (max-width: 420px) { .ea-3box { grid-template-columns: 1fr; } .ea-rbox { flex-direction: row; flex-wrap: wrap; gap: 6px; } .ea-mini { width: 30px; height: 60px; } }
/* shape・spell・count（2026-11-14 追加） */
.ea-mirror { margin-top: 12px; padding-top: 8px; border-top: 2px dotted #e2e8f0; }
.ea-mgrid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); margin-bottom: 8px; }
.ea-ax { stroke: #a78bfa; stroke-width: 2; stroke-dasharray: 5 4; opacity: 0; }
.ea-mg { opacity: 0; transition: opacity .6s; }
.ea-mirror.shown .ea-ax { opacity: 1; }
.ea-mirror.shown .ea-mg { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .ea-mg { transition: none; } }
.ea-spr { justify-content: center; margin: 6px 0; }
.ea-spdemo, .ea-spmk { margin-top: 10px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fafc); border: 2px solid #e2e8f0; }
.ea-sprow { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 6px 0; min-height: 10px; }
.ea-spc { display: inline-flex; padding: 4px 6px; border-radius: 12px; background: #fff; border: 2px solid #e2e8f0; color: var(--ea-b); transition: transform .15s, background .15s; }
.ea-spc.on { background: #fef3c7; border-color: #f59e0b; transform: translateY(-4px); box-shadow: 0 4px 0 #fde68a; }
.ea-spout .ea-board { max-width: 340px; }
.ea-spe { text-align: center; color: #94a3b8; font-weight: 700; margin: 10px 0; }
.ea-kb { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ea-key { min-height: 44px; padding: 2px; }
.ea-cnst { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ea-cimg { width: 110px; height: 110px; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
.ea-cword { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ea-cl2 { position: relative; min-width: 46px; flex-direction: column; padding-bottom: 18px; }
.ea-cl2:disabled { opacity: 1; }
.ea-cn { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-weight: 800; color: var(--ea-okd); font-size: .9rem; }
.ea-nums { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 10px 0 4px; }
.ea-nums .ea-sub { margin: 0; }
.ea-num { min-width: 44px; font-size: 1.15rem; }
.ea-num.sel { opacity: 1; }
.ea-cacts { justify-content: center; }
.ea-spdemo .ea-sub { display: block; text-align: center; }
