
.fwc-check{display:flex;align-items:center;gap:10px;margin:10px 0}
.fwc-check input[type=checkbox],.fwc-check input[type=radio]{width:auto;margin:0;flex:0 0 auto}
.fwc-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.fwc-win{border-top:1px solid var(--line,#ddd);padding:16px 0}
.fwc-join-qr{width:160px;margin:16px 0}
.fwc-join-qr svg{width:100%;height:auto;background:white}
.fwc-questions fieldset{margin:16px 0;padding:16px;border:1px solid var(--line,#ddd);border-radius:12px}
.fwc-editor-options input:not([type=radio]){flex:1;min-width:0}
.fwc-alert{padding:12px;background:#60222c;color:white;border-radius:12px}
.fwc-choice{position:relative;overflow:hidden;display:flex;align-items:center;gap:20px;min-height:110px;padding:24px;border:3px solid transparent;border-radius:20px;color:#fff;text-align:left;font:inherit;isolation:isolate}
.fwc-choice>span{font-size:1.2em}
.fwc-choice strong{flex:1;overflow-wrap:anywhere}
.fwc-color-0{background:#ac2038}
.fwc-color-1{background:#185ac0}
.fwc-color-2{background:#956400}
.fwc-color-3{background:#146d50}
.fwc-choice:disabled{cursor:default;opacity:.65}
.fwc-choice.fwc-correct{border-color:#fff;box-shadow:0 0 30px #8affb788;opacity:1}
.fwc-choice.fwc-dim{opacity:.4}
.fwc-choice i{position:absolute;bottom:0;left:0;height:10px;width:var(--fill);background:#ffffffb0;transition:width .5s}
.fwc-choice small{font-size:.65em}
.fwc-ranks{max-width:1200px;margin:20px auto}
.fwc-rank{display:flex;align-items:center;gap:24px;background:#ffffff0c;border:1px solid #ffffff16;padding:16px 24px;border-radius:16px;margin:8px 0;animation:fwc-rise .5s both;animation-delay:calc(var(--row)*30ms)}
.fwc-rank b{min-width:2ch;color:#f6ce71}
.fwc-rank span{flex:1;min-width:0;overflow-wrap:anywhere}
.fwc-rank small{display:block;font-size:.5em;color:#b6bfdb}
.fwc-rank strong{font-variant-numeric:tabular-nums}
.fwc-note{font-size:90px;animation:fwc-beat .6s infinite alternate}
.fwc-playing{overflow:hidden}
.fwc-mobile-game{position:fixed;inset:0;z-index:3000;overflow:auto;box-sizing:border-box;padding:16px 16px max(20px,env(safe-area-inset-bottom));background:#101529;color:#fff;max-width:none;font-size:20px}
.fwc-mobile-game button{color:#fff;border-color:#59627d}
.fwc-mobile-top{display:flex;gap:12px;align-items:center;justify-content:space-between}
.fwc-mobile-top>span{overflow-wrap:anywhere;min-width:0}
.fwc-mobile-center{text-align:center;padding:30px 0}
.fwc-mobile-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fwc-mobile-choices .fwc-choice{min-height:140px;padding:16px;gap:10px;font-size:clamp(18px,5vw,28px);touch-action:manipulation}
.fwc-mobile-game h2[data-fwc-mobile-clock]{text-align:center;font-size:40px}
.fwc-mobile-game .fwc-rank{padding:12px;font-size:18px}
.fwc-stage-body{margin:0;background:#0a1024;color:#fff;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;min-height:100vh}
.fwc-stage-body *{box-sizing:border-box}
.fwc-stage-body button,.fwc-stage-body input,.fwc-stage-body textarea{font:inherit}
.fwc-stage-body button,.fwc-stage-body .button-link{border:1px solid #6f7a9d;border-radius:10px;padding:10px 16px;background:#242f50;color:white;cursor:pointer;text-decoration:none}
.fwc-stage-body button:disabled{opacity:.45;cursor:default}
.fwc-stage-body input,.fwc-stage-body textarea{width:100%;padding:12px;border-radius:8px;border:1px solid #657196;background:#151d35;color:white}
.fwc-stage-body label{display:block;margin:14px 0}
.fwc-stage-body a{color:#b4d3ff}
.fwc-stage-toolbar{position:fixed;top:16px;right:16px;z-index:20;display:flex;gap:8px}
.fwc-stage-main{min-height:100vh;padding:6vh 5vw 220px;background:radial-gradient(ellipse at 50% 0,#28214d 0,transparent 65%)}
.fwc-stage-main h1{font-size:clamp(42px,4.8vw,100px);line-height:1.3;margin:20px 0}
.fwc-stage-main p{font-size:clamp(22px,2.5vw,48px)}
.fwc-stage-main h2{font-size:clamp(32px,3.8vw,72px)}
.fwc-stage-main .fwc-rank{font-size:clamp(24px,2.6vw,48px)}
.fwc-stage-choices{display:grid;grid-template-columns:1fr 1fr;gap:24px;font-size:clamp(26px,3vw,58px)}
.fwc-stage-question{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}
.fwc-stage-question img{max-width:35vw;max-height:28vh;border-radius:16px}
.fwc-clock{display:grid;place-items:center;width:150px;height:150px;border-radius:50%;background:conic-gradient(#f6ce71 var(--clock,100%),#ffffff18 0);position:relative;font-size:64px;font-weight:900;isolation:isolate}
.fwc-clock:before{content:"";position:absolute;inset:10px;border-radius:50%;background:#10172e;z-index:-1}
.fwc-lobby{display:grid;grid-template-columns:1fr minmax(220px,28vw);gap:40px;align-items:center}
.fwc-stage-qr{background:#fff;padding:14px;border-radius:22px}
.fwc-stage-qr svg{display:block;width:100%;height:auto}
.fwc-stage-url{font-size:16px;overflow-wrap:anywhere;display:block;margin-top:12px}
.fwc-joined{display:flex;gap:12px;flex-wrap:wrap}
.fwc-joined span{font-size:28px;padding:10px 20px;border:1px solid #ffffff38;border-radius:100px;background:#ffffff12;animation:fwc-rise .55s both}
.fwc-host-controls{position:fixed;bottom:0;left:0;right:0;z-index:25;padding:18px 24px max(18px,env(safe-area-inset-bottom));border-top:1px solid #ffffff30;background:#0d142df2;backdrop-filter:blur(18px)}
.fwc-host-buttons{display:flex;flex-wrap:wrap;gap:10px}
.fwc-host-note{margin:10px 0 0;color:#f6ce71;white-space:pre-wrap;filter:blur(7px);transition:filter .2s;user-select:none}
@media print{.fwc-host-controls,.fwc-host-note{display:none!important}}
.fwc-host-note:hover,.fwc-host-note:focus{filter:none}
.fwc-host-status{font-size:15px;color:#b9c7e5;margin:8px 0 0}
.fwc-controls-hidden .fwc-host-controls{display:none}
.fwc-controls-hidden .fwc-stage-main{padding-bottom:6vh}
.fwc-controls-hidden .fwc-stage-toolbar [data-fwc-screen=full]{display:none}
.fwc-podium{display:flex;justify-content:center;align-items:flex-end;gap:24px;margin:40px auto}
.fwc-podium article{display:flex;flex-direction:column;justify-content:center;flex:1;text-align:center;background:linear-gradient(#4c3b75,#1a2444);border:2px solid #f6ce7160;border-radius:24px 24px 0 0;min-height:220px;padding:24px;overflow-wrap:anywhere}
.fwc-podium article:first-child{min-height:320px;background:linear-gradient(#8a5b24,#27223f)}
.fwc-podium h2{margin:10px 0}
.fwc-podium small{font-size:26px}
.fwc-stage-body dialog{max-width:720px;width:calc(100% - 40px);max-height:90vh;overflow:auto;background:#111a33;color:white;border:1px solid #62708f;border-radius:20px;padding:28px}
.fwc-stage-body dialog::backdrop{background:#000b}
.fwc-prize-row{display:grid;grid-template-columns:1fr 100px auto;gap:12px;align-items:end}
.fwc-stage-error{position:fixed;left:20px;top:15px;max-width:65%;z-index:30;background:#802c3e;padding:12px 20px;border-radius:12px}
.fwc-stage-error:empty{display:none}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #edca72;outline-offset:4px}
@keyframes fwc-rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes fwc-beat{to{transform:translateY(-10px) rotate(8deg)}}
@media(max-width:700px){
  .fwc-lobby{grid-template-columns:1fr}
  .fwc-stage-qr{width:220px;margin:auto}
  .fwc-stage-main{padding:80px 20px 250px}
  .fwc-stage-choices{gap:12px}
  .fwc-choice{padding:16px;min-height:100px}
  .fwc-stage-question{grid-template-columns:1fr auto}
  .fwc-clock{width:90px;height:90px;font-size:36px}
  .fwc-podium{gap:8px}
  .fwc-podium article{padding:8px}
  .fwc-podium small{font-size:18px}
  .fwc-prize-row{grid-template-columns:1fr 80px auto}
}
@media(prefers-reduced-motion:reduce){
  .fwc-rank,.fwc-note,.fwc-joined span{animation:none}
  .fwc-choice i,.fwc-host-note{transition:none}
}
