:root{--cf-bg: #0b1120;--cf-surface: rgba(15, 23, 42, .88);--cf-surface-solid: #0f172a;--cf-border: rgba(148, 163, 184, .22);--cf-text: #f1f5f9;--cf-muted: #94a3b8;--cf-accent: #38bdf8;--cf-accent-soft: rgba(56, 189, 248, .18);--cf-green: #22c55e;--cf-red: #ef4444;--cf-radius: 12px;--cf-shadow: 0 12px 32px rgba(2, 6, 23, .52)}*{box-sizing:border-box;user-select:none;-webkit-user-select:none}html,body,.cf-app{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:var(--cf-bg);color:var(--cf-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;touch-action:none}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.cf-app:not(.cf-transparent){background:radial-gradient(circle at 50% 35%,#111b33,#0b1120 68%,#070c17)}.cf-app.cf-transparent{background:transparent}.cf-canvas{position:fixed;top:0;right:0;bottom:0;left:0;display:block}#active-canvas{pointer-events:none}.cf-ui-root,.cf-toast-root,.cf-hud-root{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:20}.cf-pill{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;padding:6px 8px;background:#0f172ac7;backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15);border:1px solid rgba(148,163,184,.16);border-radius:14px;box-shadow:0 12px 32px #0206178c,inset 0 1px #ffffff0f}.cf-seg{background:#02061773;border-radius:10px;padding:2px;display:inline-flex;gap:2px}.cf-seg .cf-btn{border-radius:8px}.cf-top-center{position:fixed;top:14px;left:12px;right:12px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.cf-top-center .cf-pill{flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 24px)}.cf-top-right{position:fixed;top:14px;right:14px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}.cf-bottom-left{position:fixed;bottom:14px;left:14px;pointer-events:none}.cf-bottom-right{position:fixed;bottom:14px;right:14px;pointer-events:none}.cf-divider{width:1px;height:20px;background:var(--cf-border);margin:0 2px}.cf-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;background:transparent;color:var(--cf-text);font-size:12px;font-weight:500;padding:5px 9px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;transition:background .14s ease,border-color .14s ease,color .14s ease}.cf-btn:hover{background:#94a3b824}.cf-btn.active{background:var(--cf-accent-soft);border-color:#38bdf87a;color:#bae6fd}.cf-btn.active-cyan{background:#22d3ee29;border-color:#22d3ee8c;color:#67e8f9}.cf-btn.active-amber{background:#fbbf2429;border-color:#fbbf248c;color:#fde68a}.cf-btn.active-purple{background:#c084fc29;border-color:#c084fc8c;color:#e9d5ff}.cf-btn.active-blue{background:#3b82f62e;border-color:#3b82f694;color:#bfdbfe}.cf-btn.active-green{background:#22c55e29;border-color:#22c55e8c;color:#86efac}.cf-btn.primary{background:#0284c7;color:#f8fafc}.cf-btn.primary:hover{background:#0369a1}.cf-btn.danger{color:#fca5a5}.cf-btn.danger:hover{background:#ef44442e}.cf-btn:disabled{opacity:.4;cursor:not-allowed}.cf-icon{width:14px;height:14px;flex-shrink:0;display:inline-block}.cf-market-bar,.cf-sub-bar{flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100vw - 24px);padding:5px 8px;gap:5px}.cf-tool-hint-text{font-size:11px;color:var(--cf-muted);line-height:1.35;max-width:420px;white-space:normal}.cf-slider-group{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--cf-muted);white-space:nowrap}.cf-slider-value{font-variant-numeric:tabular-nums;font-size:11px;color:#cbd5e1;min-width:30px}.cf-dot{width:6px;height:6px;border-radius:999px;flex-shrink:0;display:inline-block}.cf-slider-group input[type=range]{width:56px;accent-color:var(--cf-accent);cursor:pointer}.cf-swatch{width:18px;height:18px;border-radius:999px;border:2px solid transparent;cursor:pointer;padding:0}.cf-swatch.active{border-color:var(--cf-accent);transform:scale(1.12)}.cf-dot-status{width:8px;height:8px;border-radius:999px;background:#64748b}.cf-dot-status.online{background:var(--cf-green);box-shadow:0 0 8px #22c55eb3}.cf-dot-status.connecting{background:#fbbf24;box-shadow:0 0 8px #fbbf24b3;animation:cf-pulse 1.1s ease-in-out infinite}.cf-dot-status.syncing{background:var(--cf-accent);box-shadow:0 0 8px #38bdf8b3;animation:cf-pulse .9s ease-in-out infinite}@keyframes cf-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.86)}}.cf-sync-status{pointer-events:auto;width:240px;max-width:calc(100vw - 28px);background:var(--cf-surface-solid);border:1px solid var(--cf-border);border-radius:12px;box-shadow:var(--cf-shadow);padding:10px 12px;display:flex;flex-direction:column;gap:6px}.cf-sync-status-label{font-size:12px;font-weight:600;color:#e2e8f0}.cf-room-action{justify-content:center}.cf-room-status-heading{display:flex;align-items:center;justify-content:space-between}.cf-room-role{font-size:11px;padding:2px 8px;border-radius:99px;border:1px solid rgba(148,163,184,.3)}.cf-room-role--host{background:#fbbf2424;border-color:#fbbf248c;color:#fde68a}.cf-room-role--view{background:#94a3b81f;color:#cbd5e1}.cf-sync-status-hint{font-size:11px;color:var(--cf-muted)}.cf-dot-status.waiting{background:#fbbf24;box-shadow:0 0 8px #fbbf24b3;animation:cf-pulse 1.4s ease-in-out infinite}.cf-sync-status--connecting,.cf-sync-status--waiting{border-color:#fbbf2459}.cf-sync-status--syncing{border-color:#38bdf866}.cf-sync-status--ready{border-color:#22c55e59}.cf-sync-progress{height:4px;border-radius:999px;background:#94a3b82e;overflow:hidden}.cf-sync-progress-fill{height:100%;border-radius:999px;background:var(--cf-accent);transition:width .2s ease}.cf-session-inspector{display:flex;flex-direction:column;gap:6px}.cf-session-inspector label{font-size:11px;color:var(--cf-muted)}.cf-people{list-style:none;margin:0;padding:0;font-size:11px}.cf-people li{padding:5px 6px;border-bottom:1px solid rgba(148,163,184,.14)}.cf-people li.self{color:#bae6fd}.cf-session-note{font-size:10.5px;color:var(--cf-muted)}.cf-sync-sheet{display:contents}.cf-sync-popover{pointer-events:auto;width:400px;max-width:calc(100vw - 28px);background:var(--cf-surface-solid);border:1px solid var(--cf-border);border-radius:14px;box-shadow:var(--cf-shadow);padding:14px;display:flex;flex-direction:column;gap:10px;user-select:text;-webkit-user-select:text;max-height:calc(100dvh - 80px);overflow-y:auto;touch-action:pan-y}.cf-sync-popover h3{margin:0;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-field label{font-size:11px;color:var(--cf-muted)}.cf-input-row{display:flex;gap:6px}.cf-toggle-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--cf-muted)}.cf-toast{pointer-events:auto;position:fixed;bottom:66px;left:50%;transform:translate(-50%);background:var(--cf-surface);border:1px solid var(--cf-border);border-radius:999px;padding:6px 12px;font-size:12px;display:inline-flex;align-items:center;gap:8px;box-shadow:var(--cf-shadow)}.cf-hud-card{position:fixed;top:112px;left:14px;pointer-events:none;background:var(--cf-surface);border:1px solid var(--cf-border);border-radius:10px;padding:8px 10px;font-size:11px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5;box-shadow:var(--cf-shadow)}.cf-viewer-badge{position:fixed;bottom:14px;left:50%;transform:translate(-50%)}.cf-welcome{position:fixed;left:14px;bottom:68px;width:340px;max-width:calc(100vw - 28px);padding:11px 12px 12px 13px;background:#0f172ac7;backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15);border:1px solid rgba(148,163,184,.16);border-radius:14px;box-shadow:0 12px 32px #0206178c,inset 0 1px #ffffff0f;pointer-events:none;opacity:1;transition:opacity .25s ease}.cf-welcome.cf-welcome--hidden{opacity:0}.cf-welcome-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.cf-welcome-dot{width:7px;height:7px;border-radius:999px;background:#22c55e;box-shadow:0 0 8px #22c55eb3;flex-shrink:0}.cf-welcome-title{flex:1;font-size:12.5px;font-weight:600;letter-spacing:-.01em;color:#e2e8f0}.cf-welcome-close{pointer-events:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent;color:#94a3b8;width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.cf-welcome.cf-welcome--hidden .cf-welcome-close{pointer-events:none}.cf-welcome-close:hover{background:#94a3b829;color:#e2e8f0}.cf-welcome-body{margin:0;font-size:12px;line-height:1.55;color:#94a3b8}.cf-welcome-body kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px;padding:1px 5px;color:#cbd5e1;background:#02061799;border:1px solid rgba(148,163,184,.25);border-bottom-width:2px;border-radius:5px}.cf-c-green{color:#4ade80;font-weight:600}.cf-c-cyan{color:#22d3ee;font-weight:600}.cf-c-blue{color:#60a5fa;font-weight:600}.cf-btn-icon{padding:5px 7px}.cf-btn.active-solid{background:#f8fafc;border-color:#f8fafc;color:#0f172a}.cf-zoom-readout{min-width:46px;justify-content:center;font-variant-numeric:tabular-nums}@media(max-width:1400px){.cf-hud-card{top:auto;bottom:68px}}.cf-quick-corner{display:none}@media(max-width:760px){.cf-top-center{top:60px}.cf-top-center .cf-divider{display:none}.cf-bottom-right{bottom:62px;left:14px;display:flex;justify-content:flex-end}.cf-bottom-right .cf-pill{flex-wrap:wrap;justify-content:flex-end;gap:3px;padding:5px 6px;max-width:100%}.cf-bottom-right .cf-btn{padding:5px 6px}.cf-bottom-right .cf-divider{margin:0}.cf-top-right{top:10px;right:10px;z-index:5}.cf-top-right>.cf-pill{padding:3px;border-radius:12px}.cf-top-right .cf-sync-label{display:none}.cf-top-right>.cf-pill .cf-btn{padding:6px 8px}.cf-sync-sheet{display:flex;flex-direction:column;gap:8px;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));max-height:60vh;max-height:60dvh;pointer-events:none}.cf-sync-sheet .cf-sync-status{width:100%;max-width:none;flex:0 0 auto}.cf-sync-sheet .cf-room-state-card{max-width:calc(100vw - 82px)}.cf-room-action{min-height:44px}.cf-sync-sheet .cf-sync-popover{width:100%;max-width:none;max-height:none;flex:1 1 auto;min-height:0}.cf-welcome,.cf-hud-card{bottom:116px}.cf-toast{bottom:170px}}@media(max-width:759.98px){.cf-ui-root{display:flex;flex-direction:column-reverse;align-items:stretch;gap:8px;padding:0 calc(64px + env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom,0px)) 14px}.cf-bottom-left,.cf-bottom-right{position:static;display:flex}.cf-bottom-left .cf-pill{flex-wrap:wrap;gap:3px;max-width:100%}.cf-hud-card{bottom:142px}.cf-app:has(.cf-ui-root.cf-menu-compact) .cf-hud-card{bottom:100px}.cf-quick-corner{position:fixed;right:calc(10px + env(safe-area-inset-right,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:4;display:flex;flex-direction:column;gap:8px;pointer-events:none}.cf-quick-btn{pointer-events:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:44px;height:44px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--cf-text);background:#0f172ac7;backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15);border:1px solid rgba(148,163,184,.16);box-shadow:0 8px 20px #0206178c,inset 0 1px #ffffff0f;cursor:pointer}.cf-quick-btn .cf-icon{width:22px;height:22px}.cf-quick-btn:disabled{opacity:.4;cursor:default}.cf-quick-btn.active{background:#f8fafc;border-color:#f8fafc;color:#0f172a}.cf-quick-switch{border-color:var(--cf-accent);color:var(--cf-accent)}.cf-quick-btn{position:relative}.cf-pen-mark{position:absolute;left:15px;bottom:4px;width:14px;height:4px;color:#0f172a}.cf-pen-notch{position:absolute;left:4px;top:16px;width:3px;height:12px;border-radius:2px;background:#0284c7}.cf-pen-row{position:fixed;z-index:4;display:flex;gap:8px;align-items:flex-start;pointer-events:none;transform:translate(calc(-1*env(safe-area-inset-right,0px)),calc(-1*env(safe-area-inset-bottom,0px)))}.cf-pen-stack{pointer-events:none;width:44px;padding:2px;border-radius:14px;background:#0f172ac7;backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15);border:1px solid rgba(148,163,184,.16);box-shadow:0 8px 20px #0206178c,inset 0 1px #ffffff0f;display:flex;flex-direction:column}.cf-pen-seg{pointer-events:auto;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:40px;height:40px;padding:0;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--cf-text);background:transparent;border:1px solid transparent;cursor:pointer}.cf-pen-seg:after{content:"";position:absolute;top:-1px;right:-2px;bottom:-1px;left:-4px}.cf-pen-seg:first-child:after{border-radius:10px 10px 0 0}.cf-pen-seg:last-child:after{border-radius:0 0 10px 10px}.cf-pen-seg .cf-icon{width:20px;height:20px}.cf-pen-seg.on{background:var(--cf-accent-soft);border-color:#38bdf87a;color:#bae6fd}.cf-pen-hint{position:fixed;left:50%;bottom:110px;transform:translate(-50%);z-index:6;background:var(--cf-surface);border:1px solid var(--cf-border);border-radius:999px;padding:6px 12px;font-size:12px;line-height:18px;white-space:nowrap;box-shadow:0 12px 32px #02061785;pointer-events:none}}@media(max-width:759.98px)and (max-height:400px){.cf-quick-corner{gap:2px}}.cf-game-held{display:flex;position:fixed;right:calc(10px + env(safe-area-inset-right,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:4}.cf-game-held .cf-quick-btn{position:relative;width:44px;height:44px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#0f172ac7;box-shadow:0 8px 20px #0206178c;cursor:pointer}.cf-btn.cf-game-btn{pointer-events:auto;height:30px;padding:0 10px;gap:6px;font-weight:600;border-color:#fbbf2499;background:#fbbf241f;color:#fde68a}.cf-btn.cf-game-btn.cf-game-on{border-color:#fbbf24;background:#fbbf24;color:#0f172a}.cf-quick-game{pointer-events:auto;border-color:#fbbf2499;color:#fbbf24}.cf-quick-game.cf-game-on{background:#fbbf24;border-color:#fbbf24;color:#0f172a;box-shadow:0 0 0 4px #fbbf2440,0 8px 20px #0206178c}.cf-game-chip{position:absolute;top:6px;right:calc(100% + 10px);width:max-content;max-width:240px;padding:8px 12px;border-radius:12px;background:#0f172af0;border:1px solid rgba(251,191,36,.55);color:#fde68a;font-size:12px;line-height:1.35;text-align:left;pointer-events:none}
