.cl-app{--cl-bg: #0f172a;--cl-bg-elevated: #1e293b;--cl-bg-card: #162033;--cl-border: #2d3c56;--cl-text: #f1f5f9;--cl-text-muted: #94a3b8;--cl-primary: #3b82f6;--cl-primary-hover: #2563eb;--cl-danger: #ef4444;--cl-danger-hover: #dc2626;--cl-success: #10b981;--cl-warning: #f59e0b;--cl-radius: 12px;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45;color:var(--cl-text);background:radial-gradient(circle at top,#172554 0%,var(--cl-bg) 52%);border:1px solid var(--cl-border);border-radius:16px;padding:16px;margin:1.5rem 0;box-shadow:0 16px 40px #02061759;container-type:inline-size;box-sizing:border-box}.cl-app *,.cl-app *:before,.cl-app *:after,.cl-modal *,.cl-modal *:before,.cl-modal *:after{box-sizing:border-box}.cl-app h1,.cl-app h2,.cl-app h3,.cl-modal h2{font-family:inherit;color:var(--cl-text);line-height:1.25}.cl-app p,.cl-modal p{margin:0}.cl-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--cl-border);margin-bottom:16px}.cl-brand{display:flex;align-items:center;gap:12px}.cl-brand-dots{display:grid;grid-template-columns:repeat(3,10px);gap:5px}.cl-brand-dots span{width:10px;height:10px;border-radius:50%;display:block}.cl-brand-title{margin:0;font-size:1.35rem;font-weight:800;letter-spacing:-.02em}.cl-subtitle{margin-top:2px;font-size:.82rem;color:var(--cl-text-muted)}.cl-topbar-actions{display:flex;gap:8px;flex-wrap:wrap}.cl-workspace{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}@container (min-width: 1020px){.cl-workspace{grid-template-columns:270px minmax(400px,1fr) 260px;gap:16px}}.cl-card{background:var(--cl-bg-card);border:1px solid var(--cl-border);border-radius:var(--cl-radius);padding:14px;box-shadow:0 8px 22px #00000038}.cl-panel{display:flex;flex-direction:column;gap:14px}.cl-card h2{margin:0 0 10px;font-size:.96rem;font-weight:700;color:#e2e8f0}.cl-setup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}@container (min-width: 1020px){.cl-setup-grid{grid-template-columns:1fr}}.cl-field{display:flex;flex-direction:column;gap:5px;margin-bottom:0;font-size:.82rem;color:var(--cl-text-muted)}.cl-field select,.cl-field input[type=number],.cl-field textarea{width:100%;background:#0f172a;color:var(--cl-text);border:1px solid var(--cl-border);border-radius:8px;padding:7px 10px;font-size:.86rem;font-family:inherit}.cl-field textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.35}.cl-checkbox-field{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--cl-text-muted);cursor:pointer;margin-top:8px}.cl-hint-text{margin-top:8px!important;font-size:.78rem;color:var(--cl-text-muted);line-height:1.4}.cl-rules-card ul{margin:0;padding-left:18px;font-size:.8rem;color:var(--cl-text-muted);line-height:1.55;list-style:disc}.cl-rules-card li+li{margin-top:5px}.cl-app code,.cl-modal code{background:#94a3b829;padding:1px 5px;border-radius:4px;color:#e2e8f0;font-size:.85em}.cl-btn{border:1px solid transparent;border-radius:8px;padding:7px 12px;font-size:.84rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s ease,transform .1s ease,opacity .15s ease;color:var(--cl-text);line-height:1.25}.cl-btn:active:not(:disabled){transform:translateY(1px)}.cl-btn:disabled{opacity:.45;cursor:not-allowed}.cl-btn-sm{padding:5px 10px;font-size:.78rem}.cl-btn-primary{background:var(--cl-primary)}.cl-btn-primary:hover:not(:disabled){background:var(--cl-primary-hover)}.cl-btn-secondary{background:#334155;border-color:#475569}.cl-btn-secondary:hover:not(:disabled){background:#475569}.cl-btn-danger{background:var(--cl-danger)}.cl-btn-danger:hover:not(:disabled){background:var(--cl-danger-hover)}.cl-btn-help{background:#0d9488;border-color:#14b8a6}.cl-btn-help:hover:not(:disabled){background:#0f766e}.cl-btn-ghost{background:transparent;border-color:var(--cl-border);color:var(--cl-text-muted)}.cl-btn-ghost:hover:not(:disabled){background:#94a3b81f;color:var(--cl-text)}.cl-playback-buttons{display:flex;gap:8px}.cl-playback-buttons .cl-btn{flex:1}.cl-board-area{display:flex;flex-direction:column;gap:12px;min-width:0}.cl-status-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;background:var(--cl-bg-card);border:1px solid var(--cl-border);border-radius:var(--cl-radius);padding:10px 14px}.cl-status-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cl-badge{background:#3b82f633;color:#93c5fd;border:1px solid rgba(59,130,246,.4);padding:2px 9px;border-radius:999px;font-size:.76rem;font-weight:700}.cl-status-text{font-weight:600;font-size:.92rem}.cl-stats-pill{font-size:.8rem;color:var(--cl-text-muted)}.cl-verdict-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:var(--cl-radius);font-size:.88rem;font-weight:600;line-height:1.45}.cl-btn-dismiss{flex-shrink:0;background:#0f172a8c;border:1px solid currentColor;color:inherit;border-radius:7px;padding:4px 10px;font-size:.78rem;font-weight:600;cursor:pointer}.cl-btn-dismiss:hover{background:#0f172ad9}.cl-verdict-banner.win{background:#10b98129;border:1px solid rgba(16,185,129,.45);color:#a7f3d0}.cl-verdict-banner.info{background:#3b82f629;border:1px solid rgba(59,130,246,.45);color:#bfdbfe}.cl-board-frame{background:#0b1220;border:1px solid var(--cl-border);border-radius:14px;padding:16px;display:flex;justify-content:center;align-items:center;overflow-x:auto;min-height:240px}.cl-board-container{position:relative;display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cl-board-grid{display:grid;gap:4px;position:relative;z-index:1}.cl-cell{width:var(--cl-cell-size, 52px);height:var(--cl-cell-size, 52px);border-radius:9px;display:flex;align-items:center;justify-content:center;position:relative;font-weight:800;font-size:1.1rem;border:1px solid #26344b;background:#162238;transition:transform .12s ease,border-color .15s ease,background .15s ease}.cl-cell.empty.interactive{cursor:pointer}.cl-cell.empty.interactive:hover{border-color:#60a5fa;background:#1e3152;transform:scale(1.03)}.cl-cell.blocked{background:repeating-linear-gradient(-45deg,#0b1120,#0b1120 6px,#161f32 6px 12px);border-color:#1a2436;cursor:not-allowed}.cl-cell.last-move{box-shadow:0 0 0 2px #facc15 inset,0 0 12px #facc1559}.cl-cell.pending{cursor:pointer;border:2px dashed #facc15}.cl-stone-disc{width:74%;height:74%;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45);box-shadow:0 4px 10px #00000059,inset 0 2px 4px #ffffff40;position:relative;z-index:3}.cl-cell.pending .cl-stone-disc{opacity:.85;transform:scale(.94)}.cl-path-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.cl-action-bar{display:flex;flex-direction:column;gap:12px}.cl-action-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.cl-prompt-text{font-size:.88rem;color:var(--cl-text)}.cl-pending-summary{display:inline-block;margin-left:8px;font-size:.82rem;color:#fbbf24;font-weight:600}.cl-action-buttons{display:flex;gap:7px;flex-wrap:wrap}.cl-palette-label{font-size:.76rem;color:var(--cl-text-muted);margin-bottom:8px}.cl-letter-palette{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px}@container (max-width: 520px){.cl-letter-palette{grid-template-columns:repeat(7,minmax(0,1fr))}}.cl-letter-btn{position:relative;height:34px;border-radius:8px;border:2px solid transparent;color:#fff;font-weight:800;font-size:.86rem;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s ease,opacity .15s ease;padding:0}.cl-letter-btn:hover:not(:disabled){transform:translateY(-1px)}.cl-letter-btn.selected{border-color:#fff;box-shadow:0 0 0 2px #facc15}.cl-letter-btn.unpaired:after{content:"";position:absolute;bottom:2px;width:14px;height:3px;border-radius:2px;background:#fde047}.cl-letter-btn:disabled{opacity:.22;cursor:not-allowed}.cl-letter-count{position:absolute;top:-5px;right:-5px;width:16px;height:16px;border-radius:50%;background:#0f172a;border:1px solid #475569;color:#e2e8f0;font-size:.64rem;display:flex;align-items:center;justify-content:center}.cl-log-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.cl-log-header h2{margin:0}.cl-move-log{max-height:320px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}@container (min-width: 1020px){.cl-move-log{max-height:540px}}.cl-log-empty{color:var(--cl-text-muted);font-size:.82rem;text-align:center;padding:18px 0}.cl-log-item{background:#0f172a;border:1px solid #24324a;border-radius:8px;padding:8px 10px;font-size:.8rem;line-height:1.45}.cl-log-item.challenge-win{border-color:#10b9818c;background:#10b98114}.cl-log-item.challenge-lose{border-color:#ef44448c;background:#ef444414}.cl-log-meta{display:flex;justify-content:space-between;color:var(--cl-text-muted);font-size:.72rem;margin-bottom:3px}.cl-log-detail{color:#94a3b8;font-size:.75rem;margin-top:3px}.cl-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45;color:#f1f5f9}.cl-modal-backdrop{position:absolute;inset:0;background:#020617c7}.cl-modal-content{position:relative;z-index:1;width:min(820px,100%);max-height:90vh;overflow-y:auto;background:#162033;border:1px solid #2d3c56;border-radius:14px;padding:18px 20px;box-shadow:0 24px 60px #00000080;--cl-bg: #0f172a;--cl-border: #2d3c56;--cl-text: #f1f5f9;--cl-text-muted: #94a3b8;--cl-primary: #3b82f6;--cl-primary-hover: #2563eb}.cl-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.cl-modal-header h2{margin:0;font-size:1.1rem;font-weight:700}.cl-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:8px}.cl-inline-field{display:flex;align-items:center;gap:6px;font-size:.82rem;color:#94a3b8}.cl-inline-field input{width:64px;background:#0f172a;color:#f1f5f9;border:1px solid #2d3c56;border-radius:6px;padding:5px 8px;font-size:.86rem}.cl-editor-body{display:grid;grid-template-columns:1fr 270px;gap:16px;margin-top:12px;align-items:start}@media(max-width:760px){.cl-editor-body{grid-template-columns:1fr}}.cl-editor-grid{display:grid;gap:4px;background:#0b1220;padding:12px;border-radius:10px;border:1px solid #2d3c56;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-x:auto}.cl-editor-cell{width:36px;height:36px;border-radius:6px;border:1px solid #2a3a54;background:#17253e;color:#e2e8f0;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer}.cl-editor-cell.blocked{background:repeating-linear-gradient(-45deg,#0b1120,#0b1120 5px,#1c273d 5px 10px);color:#64748b}.cl-error-text{color:#fca5a5;font-size:.8rem;margin:6px 0}.cl-modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid #2d3c56}
