/* en-order（英語 文の ならび）。役わりの 色：だれが＝青・する＝オレンジ・なにを＝みどり・いつ／どこで＝むらさき。正かい＝みどり・まちがい＝赤 */
.eo { --eo-who: #2563eb; --eo-do: #ea580c; --eo-what: #059669; --eo-when: #7c3aed; --eo-ok: #10b981; --eo-okd: #047857; --eo-ng: #ef4444; --eo-ngd: #b91c1c;
  font-size: 1.05rem; }
.eo [hidden] { display: none !important; }
.eo [lang="en"], .eo .eo-t, .eo .eo-in, .eo .eo-w { font-family: "Andika", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.eo-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; }
.eo-q rt, .eo-ja rt, .eo-jw rt, .eo-fb rt, .eo-gq rt { font-size: .5em; font-weight: 500; }
.eo-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; }
.eo-b:active { transform: translateY(2px); box-shadow: none; }
.eo-b:disabled { cursor: default; }
.eo-play { border-color: #2563eb; color: #2563eb; box-shadow: 0 3px 0 #bfdbfe; padding: 6px 12px; }
.eo-slow { border-color: #0f8a72; color: #0f8a72; box-shadow: 0 3px 0 #a7f3d0; padding: 6px 10px; font-size: .85rem; }
.eo-pb { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.eo-go { border-color: var(--eo-ok); background: linear-gradient(180deg, #34d399, #10b981); color: #fff; box-shadow: 0 3px 0 var(--eo-okd); }
.eo-re { border-color: #94a3b8; color: #334155; }
.eo-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; min-height: 44px; }
.eo-rest { color: #64748b; font-weight: 700; }
/* よそう */
.eo-guess { background: #fff7e6; border: 2px solid #fcd34d; border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; }
.eo-gq { font-weight: 700; line-height: 1.7; margin-bottom: 6px; }
.eo-gl { display: inline-block; background: #f59e0b; color: #fff; border-radius: 999px; padding: 0 10px; margin-right: 6px; font-size: .85rem; }
.eo-gch { display: flex; flex-wrap: wrap; gap: 8px; }
.eo-gb.ok { border-color: var(--eo-ok); background: #ecfdf5; color: var(--eo-okd); }
.eo-gb.ng { border-color: var(--eo-ng); background: #fef2f2; color: var(--eo-ngd); }
.eo-gr { margin-top: 6px; font-weight: 700; line-height: 1.7; }
.eo-gr.ok { color: var(--eo-okd); } .eo-gr.ng { color: #92400e; }
.eo-body.eo-wait { opacity: .35; pointer-events: none; filter: grayscale(.4); }
/* カード */
.eo-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 6px; margin-top: 10px; border-radius: 16px;
  background: repeating-linear-gradient(135deg, #f8fafc 0 10px, #f1f5f9 10px 20px); min-height: 64px; }
.eo-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 52px;
  padding: 6px 12px; border-radius: 14px; border: 2px solid #cbd5e1; border-top: 6px solid #94a3b8; background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 4px 0 #e2e8f0, 0 6px 14px rgba(15, 23, 42, .08); cursor: pointer; touch-action: none; color: #0f172a; font: inherit; user-select: none; -webkit-user-select: none; }
.eo-card .eo-t { font-size: 1.3rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.eo-card .eo-img { width: 64px; height: 64px; object-fit: contain; pointer-events: none; }
.eo-card .eo-sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 0 0 2px #fff, 0 0 0 3px #cbd5e1; }
.eo-card.r-who { border-top-color: var(--eo-who); } .eo-card.r-do { border-top-color: var(--eo-do); }
.eo-card.r-what { border-top-color: var(--eo-what); } .eo-card.r-when { border-top-color: var(--eo-when); }
.eo-card.sel { border-color: #f59e0b; transform: translateY(-4px); box-shadow: 0 0 0 4px rgba(245, 158, 11, .35), 0 6px 0 #fde68a; }
.eo-card.on { border-color: var(--eo-ok); background: #ecfdf5; }
.eo-card.used::after { content: ""; position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--eo-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.eo-card.ng { border-color: var(--eo-ng); background: #fef2f2; animation: eo-shake .4s; }
.eo-card.saying, .eo-slot.saying, .eo-sent.saying, .eo-bline.saying { box-shadow: 0 0 0 3px #fbbf24; }
.eo-card.eo-dragging { opacity: .35; }
.eo-ghost { position: fixed; z-index: 9999; pointer-events: none; opacity: .92; box-shadow: 0 12px 28px rgba(15, 23, 42, .25); }
/* 文の 行 */
.eo-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eo-pic { width: 150px; height: 150px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #fff, #eef2ff); border: 2px solid #c7d2fe;
  display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 -6px 0 rgba(99, 102, 241, .08); }
.eo-pic img { max-width: 92%; max-height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.eo-pic .eo-shirt { width: 86%; height: auto; }
.eo-pq { font-size: 3rem; font-weight: 800; color: #a5b4fc; }
.eo-pq.ng { color: #fca5a5; }
.eo-sline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 10px 10px; border-radius: 18px; background: #fff;
  border: 2px solid #e2e8f0; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); max-width: 100%; }
.eo-sline.eo-want .eo-slot { box-shadow: 0 0 0 4px rgba(245, 158, 11, .35); }
.eo-sent { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 2px 4px; }
.eo-w { font-size: 1.55rem; font-weight: 700; line-height: 1.2; padding: 2px 4px; border-bottom: 4px solid transparent; }
.eo-w.r-who { color: var(--eo-who); border-color: var(--eo-who); } .eo-w.r-do { color: var(--eo-do); border-color: var(--eo-do); }
.eo-w.r-what { color: var(--eo-what); border-color: var(--eo-what); } .eo-w.r-when { color: var(--eo-when); border-color: var(--eo-when); }
.eo-pu { margin-left: -6px; color: #0f172a; }
.eo-slot { min-width: 84px; min-height: 52px; padding: 4px 10px; border-radius: 14px; border: 3px dashed #94a3b8; background: #f8fafc; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center; }
.eo-slot.r-who { border-color: var(--eo-who); background: #eff6ff; } .eo-slot.r-do { border-color: var(--eo-do); background: #fff7ed; }
.eo-slot.r-what { border-color: var(--eo-what); background: #ecfdf5; } .eo-slot.r-when { border-color: var(--eo-when); background: #f5f3ff; }
.eo-slot.full { border-style: solid; }
.eo-slot .eo-blank { font-size: 1.5rem; color: #94a3b8; font-weight: 800; }
.eo-slot .eo-in { font-size: 1.55rem; font-weight: 700; color: #0f172a; white-space: nowrap; }
.eo-slot.r-who .eo-in { color: var(--eo-who); } .eo-slot.r-do .eo-in { color: var(--eo-do); } .eo-slot.r-what .eo-in { color: var(--eo-what); } .eo-slot.r-when .eo-in { color: var(--eo-when); }
.eo-add { background: #fde68a; color: #92400e; border-radius: 6px; padding: 0 2px; animation: eo-glow 1.2s ease 2; }
.eo-slot.ng { border-color: var(--eo-ng); background: #fef2f2; animation: eo-shake .4s; }
.eo-pop { animation: eo-pop .35s ease; }
.eo-along { margin: 10px auto 0; width: max-content; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: #fffbeb; border: 2px solid #fcd34d; color: #92400e; font-weight: 700; animation: eo-pop .35s ease; transition: opacity .6s; }
.eo-along.out { opacity: 0; }
/* ひとこと */
.eo-fb { display: flex; gap: 6px; align-items: flex-start; min-height: 1.6em; margin: 10px 0 0; padding: 0; border-radius: 12px; font-weight: 700; line-height: 1.7; }
.eo-fb.ok, .eo-fb.ng, .eo-fb.hint { padding: 6px 10px; }
.eo-fb.ok { background: #ecfdf5; color: var(--eo-okd); }
.eo-fb.ng { background: #fef2f2; color: var(--eo-ngd); }
.eo-fb.hint { background: #fff7e6; color: #92400e; }
.eo-mi { flex: none; display: inline-flex; padding-top: 3px; }
.eo-cnt { display: inline-block; background: #fff; border: 2px solid #a7f3d0; border-radius: 999px; padding: 0 8px; margin-right: 4px; }
.eo-shk { animation: eo-shake .4s; }
/* build */
.eo-jas { text-align: center; font-weight: 700; margin-bottom: 6px; line-height: 1.8; }
.eo-bstage { display: flex; flex-direction: column; align-items: stretch; padding: 10px 8px; border-radius: 18px; background: #fff; border: 2px solid #e2e8f0; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.eo-bline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; }
.eo-box { min-width: 64px; min-height: 60px; border: 3px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; display: flex; align-items: center; justify-content: center; padding: 2px; }
.eo-box .eo-card { box-shadow: 0 2px 0 #e2e8f0; }
.eo-box.ok { border-color: var(--eo-ok); border-style: solid; background: #ecfdf5; }
.eo-box.ng { border-color: var(--eo-ng); border-style: solid; background: #fef2f2; }
.eo-box.ng .eo-card { animation: eo-shake .4s; }
.eo-card.lock { cursor: default; }
.eo-auto { font-size: 1.3rem; font-weight: 700; color: var(--eo-do); background: #fff7ed; border: 2px solid #fdba74; border-radius: 10px; padding: 2px 8px; animation: eo-pop .4s ease; }
.eo-bpb { display: flex; justify-content: center; margin-top: 8px; }
.eo-box .eo-card { padding: 4px 8px; min-width: 44px; }
.eo-bstage { position: relative; }
.eo-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.eo-gap { height: 54px; }
.eo-bline, .eo-jrow { position: relative; z-index: 1; }
.eo-box { background-clip: padding-box; }
.eo-ln { stroke-dasharray: 200; stroke-dashoffset: 200; animation: eo-draw .7s ease forwards; }
.eo-jrow { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eo-jlab { font-size: .8rem; color: #64748b; font-weight: 700; order: 2; }
.eo-jline { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.eo-jw { font-weight: 700; padding: 3px 7px; font-size: .95rem; border-radius: 12px; background: #f8fafc; border: 2px solid #cbd5e1; line-height: 1.6; }
.eo-jw.r-who { border-color: var(--eo-who); color: #1e40af; } .eo-jw.r-do { border-color: var(--eo-do); color: #9a3412; }
.eo-jw.r-what { border-color: var(--eo-what); color: #065f46; } .eo-jw.r-when { border-color: var(--eo-when); color: #5b21b6; }
/* swap */
.eo-wstage { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eo-scene { position: relative; width: 100%; max-width: 420px; height: 190px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 62%, #fff 100%); border: 2px solid #bae6fd; }
.eo-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px; }
.eo-arrow { position: absolute; left: 36%; top: 92px; width: 28%; height: 34px; }
.eo-ani { position: absolute; bottom: 18px; width: 36%; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transition: left .7s cubic-bezier(.5, 1.5, .5, 1); }
.eo-ani img { max-width: 100%; max-height: 118px; object-fit: contain; pointer-events: none; mix-blend-mode: multiply; }
.eo-ani img.flip, .eo-abtn img.flip { transform: scaleX(-1); }
.eo-ani.chaser { left: 2%; } .eo-ani.runner { left: 62%; }
.eo-ani.chaser img { animation: eo-hop .6s ease-in-out infinite alternate; }
.eo-ani.runner img { animation: eo-hop .5s ease-in-out infinite alternate-reverse; }
.eo-tag { font-size: .8rem; font-weight: 800; color: #fff; border-radius: 999px; padding: 1px 10px; margin-bottom: 2px; }
.eo-ani.chaser .eo-tag { background: var(--eo-who); } .eo-ani.runner .eo-tag { background: var(--eo-what); }
.eo-speed { position: absolute; left: -6px; top: 70px; display: none; flex-direction: column; gap: 9px; }
.eo-speed i { display: block; height: 4px; width: 22px; border-radius: 4px; background: #94a3b8; opacity: .7; }
.eo-speed i:nth-child(2) { width: 30px; margin-left: -8px; }
.eo-ani.chaser .eo-speed, .eo-ani.runner .eo-speed { display: flex; }
.eo-ja { font-weight: 700; font-size: 1.05rem; line-height: 1.8; background: #f8fafc; border-radius: 12px; padding: 2px 12px; }
.eo-ja .p { color: #64748b; }
.eo-nm { min-width: 0; }
.eo-wbar { display: flex; justify-content: center; margin-top: 10px; }
.eo-swapb { font-size: 1.1rem; padding: 10px 22px; }
.eo-ask { margin-top: 12px; padding-top: 10px; border-top: 2px dotted #e2e8f0; }
.eo-ach { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.eo-abtn { flex-direction: column; border-radius: 18px; padding: 6px 14px; }
.eo-abtn img { width: 76px; height: 76px; object-fit: contain; }
.eo-abtn.ok { border-color: var(--eo-ok); background: #ecfdf5; box-shadow: 0 3px 0 #a7f3d0; }
.eo-abtn.ng { border-color: var(--eo-ng); background: #fef2f2; animation: eo-shake .4s; }
.eo-done .eo-sline { border-color: #a7f3d0; }
.eo-askl .eo-w { display: inline-block; }
.eo-w.eo-mv { background: #fff7ed; border-radius: 10px 10px 0 0; }
.eo-pu.eo-qm { color: var(--eo-do); }
.eo-gb .en-s { font-size: 1.1em; }
@keyframes eo-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes eo-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes eo-glow { 50% { background: #fbbf24; } }
@keyframes eo-draw { to { stroke-dashoffset: 0; } }
@keyframes eo-hop { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.eo-ani.chaser img.flip, .eo-ani.runner img.flip { animation-name: eo-hopf; }
@keyframes eo-hopf { from { transform: scaleX(-1) translateY(0); } to { transform: scaleX(-1) translateY(-6px); } }
@media (max-width: 420px) {
  .eo-w, .eo-slot .eo-in { font-size: 1.3rem; }
  .eo-card .eo-t { font-size: 1.15rem; }
  .eo-card .eo-img { width: 54px; height: 54px; }
  .eo-box { min-width: 52px; }
  .eo-scene { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .eo-card.ng, .eo-slot.ng, .eo-box.ng .eo-card, .eo-abtn.ng, .eo-shk, .eo-pop, .eo-along, .eo-auto, .eo-add { animation: none; }
  .eo-ln { animation: none; stroke-dashoffset: 0; }
  .eo-ani, .eo-ani img { transition: none; animation: none !important; }
}
