.fo-stage { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 24px; align-items: center; padding: 8px 0 16px; }
.fo-draw svg { width: 100%; height: auto; display: block; }
.fo-draw svg * { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fo-draw .fo-gallows { stroke: #6b4f2c; stroke-width: 7; }
.fo-draw .fo-x { stroke-width: 2.5; }
.fo-draw.shake { animation: fo-shake .35s ease; }
@keyframes fo-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.fo-lost .fo-draw svg * { stroke: #c8323a; }
.fo-lost .fo-draw .fo-gallows { stroke: #6b4f2c; }
.fo-main { text-align: center; }
.fo-cat { margin: 0 0 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.fo-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 14px; }
.fo-group { display: inline-flex; gap: 6px; }
.fo-slot { width: clamp(24px, 6vw, 40px); height: clamp(34px, 8vw, 52px); border-bottom: 4px solid var(--ink); display: grid; place-items: end center; font: 800 clamp(1.3rem, 5vw, 2rem)/1.1 var(--font-display); color: var(--ink); }
.fo-slot.on { animation: fo-pop .25s ease; }
.fo-slot.missed { color: #c8323a; border-color: #c8323a; }
.fo-sep { font: 800 clamp(1.3rem, 5vw, 2rem)/1 var(--font-display); align-self: end; padding-bottom: 6px; }
@keyframes fo-pop { from { transform: scale(.6); opacity: 0; } }
.fo-won .fo-slot { color: var(--felt, #0d6b57); border-color: var(--felt, #0d6b57); }
.fo-msg { min-height: 1.5em; font-weight: 700; }
.fo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fo-kb { display: grid; gap: 7px; max-width: 640px; margin: 8px auto 0; touch-action: manipulation; }
.fo-row { display: flex; justify-content: center; gap: 6px; }
.fo-key { flex: 1 1 0; max-width: 54px; min-width: 0; height: 52px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface, #fff); font: 800 1.1rem var(--font-display); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--line-strong); }
.fo-key:hover:not(:disabled) { border-color: var(--ink); }
.fo-key:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.fo-key:disabled { cursor: default; box-shadow: none; }
.fo-key.hit { background: var(--felt, #0d6b57); border-color: var(--felt, #0d6b57); color: #fff; }
.fo-key.miss { background: var(--subtle, #eef0f2); color: #a3a9b1; text-decoration: line-through; }
@media (max-width: 640px) {
  .fo-stage { grid-template-columns: 1fr; gap: 6px; }
  .fo-draw { width: 120px; margin: 0 auto; }
  .fo-row { gap: 4px; }
  .fo-key { height: 46px; font-size: 1rem; border-radius: 8px; }
}
