/* Flashcards 게임 (/wman/fs.jsp). ps2.css, ps2-legacy.css, ps2-word.css 다음에 불러온다. 모든 규칙은 #fc 안에서만 적용된다. */

#main:has(#fc) { overflow: visible; }

#fc {
    --fc-night: #0b1324;
    --fc-night-2: #111c36;
    --fc-green: #22c55e;
    --fc-mint: #86efac;
    --fc-amber: #ffd76a;
    --fc-red: #ff6b6b;
    color: var(--ps-ink);
}
#fc * { box-sizing: border-box; }
#fc button { font: inherit; color: inherit; cursor: pointer; }
#fc p { margin: 0; }
#fc [hidden] { display: none !important; }
#fc svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#fc a { text-decoration: none; }

/* ───────── 로비 ───────── */
#fc .fc-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 36px; align-items: center; padding: 34px; border-radius: 30px; overflow: hidden;
    background: radial-gradient(520px 300px at 100% 0%, rgba(34, 197, 94, .34), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(124, 58, 237, .28), transparent 70%), var(--fc-night);
    color: #fff;
}
#fc .fc-eyebrow { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--fc-mint); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
#fc .fc-hero h1 { margin: 14px 0 10px; color: #fff; font-size: clamp(27px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
#fc .fc-hero p { max-width: 520px; color: rgba(255, 255, 255, .76); font-size: 15.5px; line-height: 1.7; }
#fc .fc-me { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); }
#fc .fc-level { position: relative; flex: none; width: 96px; height: 96px; }
#fc .fc-level svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#fc .fc-level circle { fill: none; stroke-width: 8; }
#fc .fc-level .bg { stroke: rgba(255, 255, 255, .14); }
#fc .fc-level .fg { stroke: var(--fc-green); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ps-ease); }
#fc .fc-level b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 800; line-height: 1; }
#fc .fc-level small { margin-bottom: 4px; color: rgba(255, 255, 255, .6); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; }
#fc .fc-me dl { display: grid; gap: 7px; margin: 0; }
#fc .fc-me dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
#fc .fc-me dt { color: rgba(255, 255, 255, .62); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#fc .fc-me dd { margin: 0; color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

#fc .fc-h { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
#fc .fc-h i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ps-ink); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }

#fc .fc-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
#fc .fc-deck { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 86px; padding: 16px 18px; border: 1.5px solid var(--ps-line); border-radius: 18px; background: #fff; text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ps-ease), box-shadow .2s; }
#fc .fc-deck:hover { border-color: var(--ps-line-strong); transform: translateY(-2px); box-shadow: var(--ps-shadow-sm); }
#fc .fc-deck strong { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
#fc .fc-deck span { color: var(--ps-ink-3); font-size: 13px; line-height: 1.5; }
#fc .fc-deck.is-on { border-color: var(--ps-ink); background: var(--ps-ink); color: #fff; box-shadow: var(--ps-shadow); }
#fc .fc-deck.is-on span { color: rgba(255, 255, 255, .7); }
#fc .fc-deck.is-on::after { content: "✓"; position: absolute; top: 12px; right: 14px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fc-green); color: #fff; font-size: 12px; font-weight: 800; }
#fc .fc-deck--lock { border-style: dashed; }
#fc .fc-deckinfo { min-height: 22px; margin-top: 10px; color: var(--ps-ink-2); font-size: 14px; }
#fc .fc-deckinfo b { color: var(--ps-brand-strong); }

#fc .fc-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#fc .fc-mode { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1.5px solid var(--ps-line); border-radius: 22px; background: #fff; text-align: left; transition: border-color .2s, transform .25s var(--ps-ease), box-shadow .25s; }
#fc .fc-mode:hover:not([disabled]) { transform: translateY(-3px); box-shadow: var(--ps-shadow); }
#fc .fc-mode__ico { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 14px; background: var(--ps-brand-soft); color: var(--ps-brand-strong); }
#fc .fc-mode__ico svg { width: 23px; height: 23px; }
#fc .fc-mode--quiz .fc-mode__ico { background: #e8f0fe; color: #1d4ed8; }
#fc .fc-mode--spell .fc-mode__ico { background: #f1eafe; color: #6d28d9; }
#fc .fc-mode--match .fc-mode__ico { background: #fff3d6; color: #a85a00; }
#fc .fc-mode strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
#fc .fc-mode span:not(.fc-mode__ico) { color: var(--ps-ink-2); font-size: 13.5px; line-height: 1.6; }
#fc .fc-mode.is-on { border-color: var(--ps-brand); box-shadow: 0 0 0 4px rgba(14, 138, 67, .14); }
#fc .fc-mode.is-on::after { content: "✓"; position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ps-brand); color: #fff; font-size: 13px; font-weight: 800; }
#fc .fc-mode[disabled] { opacity: .45; cursor: default; }

#fc .fc-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; padding: 14px; border: 1px solid var(--ps-line); border-radius: 22px; background: var(--ps-bg-soft); }
#fc .fc-size { display: inline-flex; padding: 4px; border-radius: 14px; background: #fff; }
#fc .fc-size button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ps-ink-2); font-size: 14.5px; font-weight: 700; }
#fc .fc-size button.is-on { background: var(--ps-ink); color: #fff; }
#fc .fc-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ps-ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
#fc .fc-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--ps-brand); }
#fc .fc-start { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin-left: auto; padding: 0 30px; border: 0; border-radius: 16px; background: var(--ps-brand); color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 14px 28px -14px rgba(14, 138, 67, .8); transition: transform .2s var(--ps-ease), background .2s, opacity .2s; }
#fc .fc-start svg { fill: currentColor; stroke: none; }
#fc .fc-start:hover:not([disabled]) { background: var(--ps-brand-strong); transform: translateY(-2px); }
#fc .fc-start:active:not([disabled]) { transform: scale(.97); }
#fc .fc-start[disabled] { opacity: .4; cursor: default; box-shadow: none; }
#fc .fc-foot { margin-top: 16px; color: var(--ps-ink-3); font-size: 13.5px; }
#fc .fc-foot a { color: var(--ps-ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ───────── 게임 무대 ───────── */
#fc .fc-stage {
    position: relative; display: flex; flex-direction: column; min-height: 640px; padding: 22px 24px 30px; border-radius: 32px; overflow: hidden; color: #fff;
    background: radial-gradient(600px 340px at 85% -10%, rgba(34, 197, 94, .26), transparent 70%), radial-gradient(520px 320px at 0% 110%, rgba(37, 99, 235, .26), transparent 70%), var(--fc-night);
    scroll-margin-top: calc(var(--ps-header-h) + 16px);
}
#fc .fc-hud { display: flex; align-items: center; gap: 14px; }
#fc .fc-iconbtn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s; }
#fc .fc-iconbtn:hover { background: rgba(255, 255, 255, .2); }
#fc .fc-iconbtn.is-off { color: rgba(255, 255, 255, .45); }
#fc .fc-prog { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
#fc .fc-prog i { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--fc-green), var(--fc-mint)); transition: width .45s var(--ps-ease); }
#fc .fc-count { color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#fc .fc-hearts { display: inline-flex; gap: 3px; color: var(--fc-red); }
#fc .fc-hearts svg { width: 20px; height: 20px; fill: currentColor; stroke: none; transition: transform .3s var(--ps-ease), opacity .3s; }
#fc .fc-hearts svg.is-lost { opacity: .2; transform: scale(.8); }
#fc .fc-combo { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 215, 106, .16); color: var(--fc-amber); font-size: 14px; font-weight: 800; white-space: nowrap; }
#fc .fc-combo svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
#fc .fc-combo.is-pop { animation: fc-pop .4s var(--ps-ease); }
#fc .fc-xp { min-width: 74px; color: var(--fc-mint); font-size: 15px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes fc-pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes fc-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes fc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

#fc .fc-play { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 26px 0 6px; }
#fc .fc-play > * { animation: fc-in .35s var(--ps-ease) both; }
#fc .fc-tip { color: rgba(255, 255, 255, .55); font-size: 13px; text-align: center; }
#fc .fc-tip kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font: inherit; font-size: 12px; font-weight: 700; text-align: center; }

/* 카드 넘기기 */
#fc .fc-card { position: relative; width: min(540px, 100%); height: 330px; perspective: 1400px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#fc .fc-card__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s var(--ps-ease); }
#fc .fc-card.is-flip .fc-card__in { transform: rotateY(180deg); }
#fc .fc-card.is-drag .fc-card__in { transition: none; }
#fc .fc-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; border-radius: 30px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); text-align: center; }
#fc .fc-face--front { background: linear-gradient(160deg, #fff, #f1f6f3); color: var(--ps-ink); }
#fc .fc-face--back { background: linear-gradient(160deg, #eafbf0, #d7f5e2); color: var(--ps-ink); transform: rotateY(180deg); }
#fc .fc-word { max-width: 100%; font-family: var(--ps-serif); font-size: clamp(34px, 7vw, 54px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; overflow-wrap: anywhere; }
#fc .fc-meaning { max-width: 100%; max-height: 190px; overflow-y: auto; font-size: clamp(18px, 3.2vw, 23px); font-weight: 700; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
#fc .fc-meaning.is-empty { color: var(--ps-ink-3); font-size: 16px; font-weight: 500; }
#fc .fc-face small { color: var(--ps-ink-3); font-size: 13px; font-weight: 600; }
#fc .fc-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ps-bg-soft); color: var(--ps-ink-2); font-size: 12px; font-weight: 700; }
#fc .fc-chip--new { background: #e8f0fe; color: #1d4ed8; }
#fc .fc-facebtns { display: flex; gap: 8px; }
#fc .fc-mini { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--ps-line-strong); border-radius: 999px; background: #fff; color: var(--ps-ink); font-size: 13px; font-weight: 700; }
#fc .fc-mini:hover { border-color: var(--ps-ink); }
#fc .fc-mini svg { width: 16px; height: 16px; }
#fc .fc-mini.is-playing { border-color: var(--ps-brand); background: var(--ps-brand); color: #fff; }
#fc .fc-stamp { position: absolute; top: 22px; z-index: 2; padding: 6px 14px; border: 3px solid; border-radius: 12px; font-size: 20px; font-weight: 900; letter-spacing: .04em; opacity: 0; pointer-events: none; }
#fc .fc-stamp--yes { left: 22px; color: var(--ps-brand); transform: rotate(-10deg); }
#fc .fc-stamp--no { right: 22px; color: #e5484d; transform: rotate(10deg); }

#fc .fc-answer { display: flex; gap: 14px; width: min(540px, 100%); }
#fc .fc-big { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border: 0; border-radius: 20px; font-size: 17px; font-weight: 800; transition: transform .15s var(--ps-ease), background .2s, box-shadow .2s; }
#fc .fc-big:active { transform: scale(.96); }
#fc .fc-big--no { background: rgba(255, 107, 107, .16); color: #ffb3b3; box-shadow: inset 0 0 0 1.5px rgba(255, 107, 107, .5); }
#fc .fc-big--no:hover { background: rgba(255, 107, 107, .26); }
#fc .fc-big--yes { background: var(--fc-green); color: #06240f; box-shadow: 0 16px 30px -16px rgba(34, 197, 94, .9); }
#fc .fc-big--yes:hover { background: #3fd874; }
#fc .fc-big--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
#fc .fc-big--ghost:hover { background: rgba(255, 255, 255, .18); }
#fc .fc-big[disabled] { opacity: .45; cursor: default; }

/* 뜻 고르기 */
#fc .fc-q { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; text-align: center; }
#fc .fc-q .fc-word { color: #fff; }
#fc .fc-q .fc-mini { border-color: rgba(255, 255, 255, .28); background: transparent; color: #fff; }
#fc .fc-q .fc-mini:hover { border-color: #fff; }
#fc .fc-timer { width: min(420px, 100%); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
#fc .fc-timer i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--fc-amber); transform-origin: left; }
#fc .fc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(760px, 100%); }
#fc .fc-opt { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 14px 18px; border: 2px solid transparent; border-radius: 20px; background: #fff; color: var(--ps-ink); font-size: 16.5px; font-weight: 700; line-height: 1.45; text-align: left; transition: transform .15s var(--ps-ease), border-color .2s, background .2s, opacity .2s; }
#fc .fc-opt:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--fc-mint); }
#fc .fc-opt i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ps-bg-soft); color: var(--ps-ink-2); font-size: 14px; font-style: normal; font-weight: 800; }
#fc .fc-opt[disabled] { cursor: default; }
#fc .fc-opt.is-right { border-color: var(--fc-green); background: #dcfce7; }
#fc .fc-opt.is-right i { background: var(--fc-green); color: #fff; }
#fc .fc-opt.is-wrong { border-color: var(--fc-red); background: #ffe3e3; animation: fc-shake .4s; }
#fc .fc-opt.is-wrong i { background: var(--fc-red); color: #fff; }
#fc .fc-opt.is-dim { opacity: .45; }

/* 철자 쓰기 */
#fc .fc-prompt { width: min(560px, 100%); padding: 26px 28px; border-radius: 26px; background: #fff; color: var(--ps-ink); text-align: center; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); }
#fc .fc-prompt .fc-meaning { max-height: 150px; }
#fc .fc-prompt .fc-facebtns { justify-content: center; margin-top: 14px; }
#fc input.fc-type { width: min(560px, 100%); height: 68px; padding: 0 22px; border: 2px solid rgba(255, 255, 255, .22); border-radius: 20px; outline: 0; background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--ps-serif); font-size: 30px; font-weight: 700; letter-spacing: .06em; text-align: center; transition: border-color .2s, background .2s; }
#fc input.fc-type::placeholder { color: rgba(255, 255, 255, .3); font-family: var(--ps-font); font-size: 16px; font-weight: 500; letter-spacing: 0; }
#fc input.fc-type:focus { border-color: var(--fc-mint) !important; background: rgba(255, 255, 255, .12); box-shadow: none; }
#fc input.fc-type.is-right { border-color: var(--fc-green) !important; background: rgba(34, 197, 94, .2); }
#fc input.fc-type.is-wrong { border-color: var(--fc-red) !important; background: rgba(255, 107, 107, .16); animation: fc-shake .4s; }
#fc .fc-reveal { min-height: 30px; color: var(--fc-mint); font-family: var(--ps-serif); font-size: 24px; font-weight: 700; letter-spacing: .08em; text-align: center; }
#fc .fc-reveal span { color: rgba(255, 255, 255, .28); }
#fc .fc-reveal.is-answer { color: var(--fc-amber); }

/* 짝 맞추기 */
#fc .fc-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(860px, 100%); }
#fc .fc-tile { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 12px 14px; border: 2.5px solid transparent; border-radius: 20px; background: #fff; color: var(--ps-ink); font-size: 15.5px; font-weight: 700; line-height: 1.45; text-align: center; overflow-wrap: anywhere; transition: transform .18s var(--ps-ease), border-color .15s, background .2s, opacity .35s; }
#fc .fc-tile--w { background: linear-gradient(160deg, #fff, #eef4ff); font-family: var(--ps-serif); font-size: 21px; }
#fc .fc-tile:hover:not(.is-gone) { transform: translateY(-3px); }
#fc .fc-tile.is-on { border-color: var(--fc-green); transform: scale(1.04); box-shadow: 0 0 0 5px rgba(34, 197, 94, .25); }
#fc .fc-tile.is-bad { border-color: var(--fc-red); background: #ffe3e3; animation: fc-shake .4s; }
#fc .fc-tile.is-good { border-color: var(--fc-green); background: #dcfce7; }
#fc .fc-tile.is-gone { opacity: 0; transform: scale(.8); pointer-events: none; }
#fc .fc-clock { color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 그만둘지 묻는 창 */
#fc .fc-ask { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 19, 36, .72); backdrop-filter: blur(6px); animation: fc-in .2s both; }
#fc .fc-ask__box { width: min(360px, 100%); padding: 26px; border-radius: 24px; background: #fff; color: var(--ps-ink); text-align: center; }
#fc .fc-ask__box strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
#fc .fc-ask__box p { margin-top: 6px; color: var(--ps-ink-2); font-size: 14.5px; }
#fc .fc-ask__box div { display: flex; gap: 8px; margin-top: 20px; }
#fc .fc-ask__box .fc-big { height: 50px; font-size: 15.5px; }
#fc .fc-ask__box .fc-big--ghost { background: var(--ps-bg-soft); color: var(--ps-ink); }

/* 결과 */
#fc .fc-stage--result { align-items: center; padding: 40px 24px 36px; text-align: center; }
#fc .fc-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#fc .fc-stars { display: flex; gap: 10px; }
#fc .fc-stars svg { width: 46px; height: 46px; fill: rgba(255, 255, 255, .14); stroke: none; }
#fc .fc-stars svg.is-on { fill: var(--fc-amber); animation: fc-pop .5s var(--ps-ease) both; }
#fc .fc-stars svg.is-on:nth-child(2) { animation-delay: .15s; }
#fc .fc-stars svg.is-on:nth-child(3) { animation-delay: .3s; }
#fc .fc-result__title { margin: 18px 0 6px; color: #fff; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.04em; }
#fc .fc-result__sub { color: rgba(255, 255, 255, .7); font-size: 15.5px; }
#fc .fc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(680px, 100%); margin: 26px 0 0; }
#fc .fc-stat { padding: 16px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .07); }
#fc .fc-stat b { display: block; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#fc .fc-stat span { color: rgba(255, 255, 255, .6); font-size: 12.5px; font-weight: 600; }
#fc .fc-stat--xp b { color: var(--fc-mint); }
#fc .fc-lvbar { width: min(680px, 100%); margin-top: 18px; padding: 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .07); text-align: left; }
#fc .fc-lvbar__top { display: flex; justify-content: space-between; gap: 10px; color: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 700; }
#fc .fc-lvbar__top b { color: #fff; }
#fc .fc-lvbar__bar { height: 10px; margin-top: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
#fc .fc-lvbar__bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--fc-amber), #ffb347); transition: width 1.1s var(--ps-ease); }
#fc .fc-lvup { margin-top: 8px; color: var(--fc-amber); font-size: 14px; font-weight: 800; }
#fc .fc-missed { width: min(680px, 100%); margin-top: 18px; padding: 18px 20px; border-radius: 22px; background: #fff; color: var(--ps-ink); text-align: left; }
#fc .fc-missed h3 { margin: 0 0 8px; color: var(--ps-ink); font-size: 15.5px; font-weight: 800; }
#fc .fc-missed ul { margin: 0; padding: 0; list-style: none; }
#fc .fc-missed li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--ps-line); line-height: 1.5; }
#fc .fc-missed li:first-child { border-top: 0; }
#fc .fc-missed b { font-family: var(--ps-serif); font-size: 18px; font-weight: 700; }
#fc .fc-missed em { flex: 1 1 160px; color: var(--ps-ink-2); font-size: 14px; font-style: normal; }
#fc .fc-missed .fc-mini { height: 30px; padding: 0 12px; font-size: 12.5px; }
#fc .fc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(680px, 100%); margin-top: 24px; }
#fc .fc-actions .fc-big { flex: 1 1 160px; height: 54px; font-size: 16px; }
#fc .fc-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255, 255, 255, .7); font-size: 15px; }
#fc .fc-spin { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--fc-green); border-radius: 50%; animation: fc-spin .8s linear infinite; }
@keyframes fc-spin { to { transform: rotate(360deg); } }

/* ───────── 좁은 화면 ───────── */
@media (max-width: 1100px) {
    #fc .fc-hero { grid-template-columns: minmax(0, 1fr); }
    #fc .fc-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    #fc .fc-hero { padding: 24px 20px; border-radius: 24px; }
    #fc .fc-me { gap: 14px; padding: 14px 16px; }
    #fc .fc-level { width: 78px; height: 78px; }
    #fc .fc-level b { font-size: 24px; }
    #fc .fc-modes { grid-template-columns: minmax(0, 1fr); }
    #fc .fc-mode { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; }
    #fc .fc-mode__ico { margin: 0; }
    #fc .fc-mode span:not(.fc-mode__ico) { flex: 1 1 100%; }
    #fc .fc-start { flex: 1 1 100%; margin-left: 0; }
    #fc .fc-stage { min-height: 560px; padding: 16px 14px 22px; border-radius: 24px; }
    #fc .fc-hud { gap: 8px; }
    #fc .fc-xp { min-width: 0; font-size: 13.5px; }
    #fc .fc-card { height: 290px; }
    #fc .fc-opts { grid-template-columns: minmax(0, 1fr); }
    #fc .fc-opt { min-height: 60px; }
    #fc .fc-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    #fc .fc-tile { min-height: 84px; padding: 8px; font-size: 13.5px; border-radius: 16px; }
    #fc .fc-tile--w { font-size: 17px; }
    #fc .fc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #fc .fc-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #fc .fc-card__in, #fc .fc-play > * { transition: none; animation: none; }
}

/* ---------- 단어 비행기 (2026-10-11) ---------- */
#fc .fc-mode--fly .fc-mode__ico { background: #e0f2fe; color: #0369a1; }
#fc .fc-fly { display: grid; gap: 12px; justify-items: center; width: 100%; }
#fc .fc-fly__target { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; color: #fff; letter-spacing: -0.01em; text-align: center; }
#fc .fc-fly__target b { padding: 6px 16px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
#fc .fc-fly__sky { display: block; width: 100%; max-width: 760px; border-radius: 18px; touch-action: none; cursor: crosshair; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.fc-h__sub { font-size: 13px; font-weight: 500; color: #64748b; margin-left: 8px; }
