.choice-row { border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0 0; padding: 8px 14px 12px; }
.choice-row legend { color: var(--muted); padding: 0 6px; font-size: var(--fs-sm); }
.choice-row label { display: block; padding: 4px 0; }
.choice-row input { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; }

.hearts { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }

.chain { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.link {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; box-shadow: var(--shadow);
}
.link.you { border-left: 4px solid var(--good); }
.link.cpu { border-left: 4px solid var(--muted); }
.link.shown { border-left: 4px solid var(--bad); }
.link-head { display: flex; align-items: center; gap: 6px; }
.link-toggle {
  display: flex; align-items: center; gap: 10px; flex: 1; text-align: left; min-height: 44px;
  border: none; background: transparent; padding: 0; border-radius: 8px;
}
.chain-no { text-align: center; font-size: var(--fs-sm); }
.who { font-size: var(--fs-xs); color: var(--muted); min-width: 2.6em; }
.idiom { display: flex; gap: 2px; flex: 1; }
.idiom .c { display: flex; flex-direction: column; align-items: center; min-width: 2.2rem; }
.idiom .c .py { font-size: var(--fs-2xs); color: var(--muted); min-height: 1.2em; }
.idiom .c .hz { font-family: var(--kai); font-size: 1.75rem; line-height: 1.2; padding: 0 2px; border-radius: 6px; }
.idiom .c.join .hz { background: var(--mark); }
.link .speak { min-width: 44px; min-height: 44px; padding: 0; border: none; background: transparent; font-size: 1rem; }
.link .detail { margin: 6px 0 0; font-size: var(--fs-sm); }
.link .detail .en { color: var(--muted); font-style: italic; display: block; }
.link .detail .example, .past-list .example { display: block; margin-top: 4px; }
.example mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }

.past { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; opacity: 0.85; }
.past details { margin: 0; }
.past summary { color: var(--ink); font-weight: normal; }
.past-no { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; margin-right: 8px; }
.past-no .won { color: var(--good); }
.past-words { font-family: var(--kai); font-size: var(--fs-lead); color: var(--ink); }
.past-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.past-list b { font-family: var(--kai); font-size: var(--fs-lead); font-weight: normal; margin-right: 8px; }
.past-list .who { display: inline-block; }
.past-list .m { display: block; color: var(--muted); }

.turn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.prompt { margin: 0; font-size: var(--fs-body); line-height: 1.5; }
.prompt .big { font-family: var(--kai); font-size: 1.75rem; line-height: 1; color: var(--accent); vertical-align: -4px; margin: 0 4px; }
.msg { min-height: 1.6em; margin: 4px 0 8px; font-weight: 600; }
.msg.good { color: var(--good); }
.msg.bad { color: var(--bad); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { font-family: var(--kai); font-size: 1.7rem; padding: 8px 4px; line-height: 1.3; }
.choice { position: relative; }
.choice .py { display: block; font: var(--fs-2xs) system-ui, sans-serif; color: var(--muted); min-height: 1em; }
.choice .key { position: absolute; top: 4px; left: 8px; font: var(--fs-2xs) system-ui, sans-serif; color: var(--muted); }
.choice.good { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.choice.bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.typed { display: flex; gap: 8px; }
.typed input {
  flex: 1; min-width: 0; font: 1.6rem var(--kai); padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.turn-tools { display: flex; justify-content: space-between; margin-top: 10px; }
.turn-tools #giveup { margin-left: auto; }

@media (max-width: 380px) {
  .choice { font-size: 1.45rem; }
  .idiom .c { min-width: 1.9rem; }
  .idiom .c .hz { font-size: 1.5rem; }
}
