/* 격투 전용 스타일 (fight.php 에서만 불러옴)
   게임 화면(캔버스·오버레이)은 노을 옥상 색을 고정으로 쓰고, 그 밖의 안내 영역은 사이트 공통 토큰을 따름 */
.ft-app {
    --ft-night: #110d1f; --ft-dusk: #241838; --ft-line: #3a2b52;
    --ft-paper: #f3e9dc; --ft-muted: #a99bbd; --ft-ember: #ff8a4c;
    --ft-p1: #3d9bff; --ft-p2: #ff4560;
    --ft-display: "Black Han Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    display: flex; flex-direction: column; gap: 14px; max-width: 1100px;
}
.ft-app *, .ft-app *::before, .ft-app *::after { box-sizing: border-box; }
.ft-app button { font-family: inherit; }
.ft-app [hidden] { display: none !important; }

.ft-bar { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ft-btn {
    font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface);
    border: 1px solid var(--line-input); border-radius: 6px; padding: 7px 14px; cursor: pointer;
}
.ft-btn:hover { background: var(--hover-bg); }
.ft-app button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

/* 게임 화면 */
.ft-stage {
    position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
    border-radius: 10px; overflow: hidden; background: var(--ft-dusk);
    box-shadow: 0 8px 24px -12px var(--shadow-color), 0 0 0 1px var(--line);
}
#ft-game { display: block; width: 100%; height: 100%; }
.ft-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(17, 13, 31, .6); overflow: auto; padding: 12px; color: var(--ft-paper);
}
.ft-card { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 2vw, 16px); text-align: center; max-width: 520px; width: 100%; }
.ft-card h2 {
    font-family: var(--ft-display); font-weight: 400; font-size: clamp(28px, 7vw, 64px); line-height: 1; margin: 0;
    color: var(--ft-paper); text-shadow: 0 0 24px rgba(255, 138, 76, .5);
}
.ft-card p { margin: 0; color: var(--ft-muted); font-size: clamp(12px, 1.6vw, 15px); }
.ft-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ft-label { font-size: 11px; letter-spacing: .12em; color: var(--ft-muted); }
.ft-chip {
    font-size: clamp(12px, 1.6vw, 15px); font-weight: 600; color: var(--ft-paper); background: transparent;
    border: 1px solid var(--ft-line); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.ft-chip[aria-pressed="true"] { background: var(--ft-ember); border-color: var(--ft-ember); color: var(--ft-night); }
.ft-go {
    font-family: var(--ft-display); font-size: clamp(18px, 3vw, 26px); letter-spacing: .04em;
    background: var(--ft-ember); color: var(--ft-night); border: 0; border-radius: 6px; padding: 8px 28px; cursor: pointer;
}
.ft-go:hover { filter: brightness(1.08); }
.ft-go:disabled { opacity: .7; cursor: wait; font-size: clamp(14px, 2vw, 18px); }
.ft-overlay .ft-btn { background: var(--ft-dusk); color: var(--ft-paper); border-color: var(--ft-line); }

/* 터치 버튼 */
.ft-touch { display: none; justify-content: space-between; gap: 12px; user-select: none; -webkit-user-select: none; }
@media (hover: none) and (pointer: coarse) { .ft-touch { display: flex; } }
.ft-pad, .ft-acts { display: grid; gap: 8px; }
.ft-pad { grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 56px); }
.ft-acts { grid-template-columns: repeat(3, 64px); grid-template-rows: 56px; }
.ft-tbtn {
    touch-action: none; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface);
    border: 1px solid var(--line-input); border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.ft-tbtn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ft-tbtn.ft-sp { border-color: var(--ft-p1); }

/* 조작법 */
.ft-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ft-pl {
    min-width: 0; background: var(--surface); border: 1px solid var(--line-soft); border-top: 3px solid var(--ft-p1);
    border-radius: 0 0 12px 12px; padding: 14px 16px;
}
.ft-pl.ft-two { border-top-color: var(--ft-p2); }
.ft-pl h3 { margin: 0 0 10px; font-family: var(--ft-display); font-weight: 400; font-size: 21px; color: var(--text); display: flex; gap: 10px; align-items: baseline; }
.ft-pl h3 small { font-family: inherit; font-size: 12px; color: var(--muted); }
.ft-pl dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; align-items: center; }
.ft-pl dt { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.ft-pl dd { margin: 0; color: var(--text-3); font-size: 14px; }
.ft-app kbd {
    display: inline-block; min-width: 1.6em; text-align: center; padding: 1px 6px;
    font: 12px ui-monospace, Menlo, Consolas, monospace; color: var(--text-2);
    background: var(--th-bg); border: 1px solid var(--line-input); border-bottom-width: 2px; border-radius: 4px;
}
.ft-help { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 75ch; }
.ft-help b { color: var(--text-2); }
