.project-wizard-dialog{margin:auto;color:inherit}.project-wizard-dialog::backdrop{background:rgba(3,8,18,.8)}:root{color-scheme:dark;--ink:#edf3ff;--muted:#92a4bd;--line:rgba(143,169,204,0.17);--panel:rgba(15,25,41,0.86);--panel-strong:#101b2d;--accent:#50e3c2;--accent-2:#7f8cff;--danger:#ff718c;--shadow:0 24px 80px rgba(0,0,0,0.34)}*{box-sizing:border-box}body,html{min-height:100%}body{margin:0;color:var(--ink);background:radial-gradient(circle at 8% -10%,rgba(80,227,194,.16),transparent 30rem),radial-gradient(circle at 98% 2%,rgba(127,140,255,.2),transparent 34rem),#08111f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{color:inherit}.builder-app{min-height:100vh;padding:20px 24px 32px}.topbar{justify-content:space-between;gap:20px;max-width:1800px;margin:0 auto;padding:8px 0 18px}.brand-block,.panel-heading,.profile-strip,.toolbar-actions,.topbar{display:flex;align-items:center}.brand-block{gap:14px}.brand-mark{display:grid;width:46px;height:46px;place-items:center;border:1px solid rgba(80,227,194,.5);border-radius:15px;background:linear-gradient(145deg,rgba(80,227,194,.16),rgba(127,140,255,.12));letter-spacing:-.04em;box-shadow:inset 0 1px rgba(255,255,255,.08)}.brand-mark,.eyebrow{color:var(--accent);font-weight:800}.eyebrow{margin:0 0 4px;font-size:11px;letter-spacing:.14em;text-transform:uppercase}h1,h2,p{margin-top:0}h1{font-size:22px;letter-spacing:-.03em}h1,h2{margin-bottom:0}h2{font-size:18px;letter-spacing:-.02em}.toolbar-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.button{min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.045);cursor:pointer;font-size:13px;font-weight:750;transition:.14s ease}.button:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08)}.button:disabled{opacity:.38;cursor:not-allowed}.button--primary{color:#071812;border-color:transparent;background:linear-gradient(135deg,#65eed0,#42c9b4)}.button--danger{color:#ffacbb}.button--quiet{color:#bdc9db}.validation-pill{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 11px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:rgba(0,0,0,.18);font-size:12px;font-weight:700}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 12px currentColor}.validation-pill--valid{color:var(--accent)}.validation-pill--invalid{color:var(--danger)}.profile-strip{position:relative;z-index:40;max-width:1800px;margin:0 auto 16px;padding:12px;gap:10px;border:1px solid var(--line);border-radius:14px;background:rgba(14,24,40,.72);backdrop-filter:blur(18px)}.storage-strip{display:flex;align-items:end;justify-content:space-between;gap:16px;max-width:1800px;margin:-6px auto 16px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(10,18,31,.66)}.saved-profile-controls{display:flex;align-items:end;gap:8px;min-width:0}.saved-profile-controls label{display:grid;gap:5px}.saved-profile-controls label>span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.saved-profile-controls select{width:min(460px,42vw);height:36px;padding:0 10px}.persistence-message{margin:0 0 3px;color:#8498b2;font-size:11px;text-align:right}.profile-strip label{display:grid;gap:5px}.profile-id>span,.profile-strip label>span{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}input,select,textarea{border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#0a1423;outline:none}input:focus,select:focus,textarea:focus{border-color:rgba(80,227,194,.68);box-shadow:0 0 0 3px rgba(80,227,194,.08)}.profile-strip input:not([type]),.profile-strip input[type=text]{width:240px}.profile-strip input{height:34px;padding:0 10px}.profile-strip input[type=number]{width:84px}.toggle-field{display:flex!important;grid-template-columns:auto 1fr;align-items:center;padding:17px 8px 0}.toggle-field input{width:16px;height:16px;accent-color:var(--accent)}.advanced-canvas-settings{position:relative;align-self:center}.advanced-canvas-settings>summary{min-height:36px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;color:#bdc9db;background:rgba(255,255,255,.045);cursor:pointer;font-size:12px;font-weight:750;list-style:none;white-space:nowrap}.advanced-canvas-settings>summary::-webkit-details-marker{display:none}.advanced-canvas-settings>summary:after{content:" ▾";color:var(--accent)}.advanced-canvas-settings[open]>summary:after{content:" ▴"}.advanced-canvas-fields{position:absolute;z-index:60;top:calc(100% + 8px);right:0;display:grid;width:300px;padding:14px;gap:10px;border:1px solid var(--line);border-radius:12px;background:#0e192a;box-shadow:var(--shadow)}.advanced-canvas-fields>p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.advanced-canvas-fields label{display:grid;gap:5px}.advanced-canvas-fields label>span{color:var(--muted);font-size:10px;font-weight:750}.advanced-canvas-fields input{width:100%;height:34px;padding:0 10px}.advanced-canvas-fields .button{justify-self:end}.canvas-size-error{color:#ff9daf!important}.canvas-scale-note{margin:4px 0 0;color:var(--muted);font-size:11px}.canvas-warning-dialog{max-width:560px}.canvas-warning-dialog h2{margin:0}.profile-id{display:grid;gap:5px;min-width:0;margin:0 0 0 auto}.profile-id code{max-width:280px;overflow:hidden;color:#c4cee0;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;max-width:1800px;margin:0 auto;align-items:start}.workspace-main{position:sticky;top:16px}.workspace-main,.workspace-side{display:grid;align-content:start;gap:16px;min-width:0}.canvas-panel,.inspector-panel,.role-panel,.validation-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:var(--shadow);backdrop-filter:blur(20px)}.canvas-panel{min-width:0;padding:16px}.panel-heading{justify-content:space-between;margin-bottom:12px}.panel-heading>span{color:var(--muted);font-size:12px}.inspector-panel{padding:18px}.inspector-title,.role-card-topline,.role-panel-heading,.validation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.selection-indicator{padding:5px 8px;border:1px solid rgba(80,227,194,.25);border-radius:999px;color:var(--accent);background:rgba(80,227,194,.07);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.muted-copy{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.empty-inspector-mark{display:grid;width:48px;height:48px;margin-top:28px;place-items:center;border:1px solid var(--line);border-radius:14px;color:var(--accent);background:rgba(80,227,194,.05);font-size:20px}.inspector-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.inspector-section h3{margin:0 0 12px;color:#b9c7da;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.form-grid--single{grid-template-columns:1fr}.field-control{display:grid;min-width:0;gap:5px}.field-control--wide{width:100%}.field-control>span,.identity-readout>span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.field-control input,.field-control select{width:100%;height:34px;min-width:0;padding:0 9px}.identity-readout{display:grid;gap:6px;margin-top:10px}.identity-readout code{overflow:hidden;color:#7187a3;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.role-panel{padding:16px}.role-panel-heading{margin-bottom:13px}.role-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}.role-card{position:relative;padding:13px;border:1px solid var(--line);border-radius:13px;background:rgba(6,14,26,.4)}.role-name-control{flex:1}.role-name-control input{font-weight:750}.icon-button{display:grid;width:30px;height:30px;flex:0 0 auto;padding:0;place-items:center;border:1px solid var(--line);border-radius:9px;color:#ff9aad;background:transparent;cursor:pointer;font-size:18px}.role-id{display:block;margin:7px 0 12px;overflow:hidden;color:#617790;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.role-controls{display:grid;grid-template-columns:1fr 1.3fr auto;gap:8px;align-items:end}.role-required{display:flex;align-items:center;gap:6px;height:34px;color:#aebdd0;font-size:11px}.role-required input{width:15px;height:15px;accent-color:var(--accent)}.binding-count{display:block;margin-top:10px;color:#657a94;font-size:10px}.role-empty{padding:20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px;line-height:1.55}.inline-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid rgba(255,113,140,.28);border-radius:10px;color:#ffc0cb;background:rgba(255,113,140,.07);font-size:11px}.inline-notice button{padding:0 4px;border:0;color:inherit;background:transparent;cursor:pointer;font-size:18px}.validation-panel{padding:16px}.validation-panel--invalid{border-color:rgba(255,113,140,.28)}.validation-symbol{display:grid;width:30px;height:30px;place-items:center;border:1px solid rgba(80,227,194,.24);border-radius:50%;color:var(--accent);background:rgba(80,227,194,.06);font-weight:800}.validation-panel--invalid .validation-symbol{border-color:rgba(255,113,140,.3);color:var(--danger);background:rgba(255,113,140,.06)}.validation-list{display:grid;max-height:350px;margin:14px 0 0;padding:0;gap:8px;overflow:auto;list-style:none}.validation-list li{display:grid;gap:4px;padding:9px 10px;border-left:2px solid var(--danger);border-radius:0 8px 8px 0;background:rgba(255,113,140,.055)}.validation-list code{color:#ff9daf;font-size:9px;font-weight:800}.validation-list strong{font-size:11px;line-height:1.35}.validation-list span{color:#788ba4;font-size:9px;word-break:break-all}.modal-backdrop{position:fixed;z-index:1000;inset:0;display:grid;padding:24px;place-items:center;background:rgba(2,7,14,.78);backdrop-filter:blur(9px)}.import-dialog{width:min(760px,100%);padding:20px;border:1px solid rgba(127,140,255,.32);border-radius:18px;background:#0e192a;box-shadow:0 32px 120px rgba(0,0,0,.6)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.import-dialog textarea{width:100%;min-height:310px;margin-top:16px;padding:13px;resize:vertical;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.import-errors{max-height:150px;margin:12px 0 0;padding:10px 10px 10px 28px;overflow:auto;border:1px solid rgba(255,113,140,.25);border-radius:10px;color:#ff9fb0;background:rgba(255,113,140,.055);font:10px/1.5 ui-monospace,monospace}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.canvas-shell{min-width:0}.canvas-ruler{display:flex;height:20px;flex:0 0 20px;align-items:center;justify-content:space-between;padding:0 0 7px 32px;color:#61738d;font:10px ui-monospace,SFMono-Regular,Menlo,monospace}.viewport-container{display:flex;flex-direction:column;width:100%;height:clamp(220px,calc(100dvh - 360px),860px);position:relative;overflow:hidden;border-radius:12px;background:rgba(6,12,22,.7);border:1px solid rgba(143,169,204,.15)}.viewport-stage-scroll{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.viewport-stage-scroll--fit{overflow:hidden!important}.canvas-stage-wrapper{flex-shrink:0;position:relative;margin:auto}.field-canvas{position:relative;border:1px solid rgba(143,169,204,.18);border-radius:13px;background-image:linear-gradient(rgba(133,159,194,.09) 1px,transparent 0),linear-gradient(90deg,rgba(133,159,194,.09) 1px,transparent 0),radial-gradient(circle at 50% 45%,rgba(79,102,142,.16),transparent 50%);background-size:var(--grid-size) var(--grid-size),var(--grid-size) var(--grid-size),auto;box-shadow:inset 0 0 80px rgba(0,0,0,.34);touch-action:none}.canvas-centerline{position:absolute;inset:50% 0 auto;border-top:1px dashed rgba(127,140,255,.22)}.field-zone{position:absolute;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:30px;min-height:30px;padding:10px 12px;overflow:hidden;border:1px solid rgba(141,169,206,.44);border-radius:10px;background:linear-gradient(155deg,rgba(37,55,82,.92),rgba(18,31,51,.92));box-shadow:0 12px 28px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.06);cursor:grab;user-select:none}.field-zone:active{cursor:grabbing}.field-zone--selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(80,227,194,.22),0 16px 35px rgba(0,0,0,.3)}.zone-accent{position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(var(--accent),var(--accent-2))}.field-zone strong{max-width:100%;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.zone-meta{margin-top:4px;color:#9db0c9;font-size:10px;text-transform:capitalize}.zone-id{max-width:100%;margin-top:7px;overflow:hidden;color:#607690;font:8px ui-monospace,monospace;text-overflow:ellipsis;white-space:nowrap}.resize-handle{position:absolute;right:0;bottom:0;width:18px;height:18px;padding:0;border:0;border-radius:8px 0 0;background:linear-gradient(135deg,transparent 48%,var(--accent) 50%);cursor:nwse-resize}.canvas-empty{position:absolute;inset:0;display:grid;place-content:center;place-items:center;color:#8193ad;text-align:center;pointer-events:none}.canvas-empty strong{margin-top:16px;color:#c1cede;font-size:16px}.canvas-empty p{max-width:320px;margin:7px 20px 0;font-size:12px;line-height:1.5}.empty-orbit{width:54px;height:54px;border:1px solid rgba(80,227,194,.4);border-radius:50%;box-shadow:0 0 0 10px rgba(80,227,194,.04),0 0 0 20px rgba(127,140,255,.025)}@media (max-width:980px){.topbar{align-items:flex-start}.workspace-grid{grid-template-columns:1fr}.workspace-main{position:static}.inspector-placeholder{min-height:auto}.profile-strip{flex-wrap:wrap}.storage-strip{align-items:stretch;flex-direction:column}.saved-profile-controls{flex-wrap:wrap}.saved-profile-controls select{width:min(100%,460px)}.persistence-message{text-align:left}.profile-id{width:100%;margin-left:0}}@media (max-width:680px){.builder-app{padding:12px}.topbar{display:grid}.toolbar-actions{justify-content:flex-start}.profile-strip{align-items:end}}.workspace-grid--card-studio{display:block}.card-studio-integrated{display:grid;grid-template-columns:minmax(440px,1.25fr) minmax(330px,.85fr);align-items:start;gap:14px;min-width:0;margin-top:12px}.card-studio-integrated--template{grid-template-columns:minmax(360px,1.2fr) minmax(300px,.78fr) minmax(280px,.8fr)}.card-studio-mode-tabs{display:inline-flex;gap:6px;margin:14px 0 2px;padding:4px;border:1px solid var(--line);border-radius:9px;background:#0b1422}.card-studio-mode-tabs button{padding:8px 13px;color:var(--muted);border:0;border-radius:6px;background:transparent;cursor:pointer}.card-studio-mode-tabs button.is-active{color:#fff;background:#263a50;box-shadow:inset 0 0 0 1px #45617b}.card-studio-database-pane,.card-studio-editor-sidebar,.card-studio-inspector,.card-studio-preview-area,.card-studio-tools{min-width:0}.card-studio-database-pane,.card-studio-editor-sidebar>section,.card-studio-preview-area{border:1px solid var(--line);border-radius:9px;padding:12px;background:#0d1725}.card-studio-database-pane .card-studio-tabs{margin-top:0}.card-studio-data-heading{margin:2px 0 10px;font-size:16px}.card-studio-preview-area{align-content:start;overflow:hidden}.card-studio-preview-area>.card-studio-editor-toolbar{justify-content:center;width:100%}.card-studio-scope-indicator{width:100%;margin:0;padding:7px 10px;border:1px solid #37506a;border-radius:7px;background:#15263a;color:#c9d9ed;font-size:12px}.card-studio-preview-scroll{display:grid;place-items:center;width:100%;max-height:calc(100vh - 310px);min-height:220px;overflow:auto;padding:6px}.card-studio-image-preview{display:grid;place-items:center;width:min(360px,100%);max-height:calc(100vh - 360px);overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#111c2b}.card-studio-image-preview img{width:100%;height:100%;object-fit:contain}.card-studio-image-preview p{color:var(--muted)}.card-studio-image-import{margin:8px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#101b2a}.card-studio-image-import>summary{cursor:pointer;font-weight:650}.card-studio-image-import>p{color:var(--muted);font-size:12px}.card-studio-image-import>strong{display:inline-block;margin:8px}.card-studio-image-import-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px;max-height:340px;overflow:auto}.card-studio-image-import-grid article{display:grid;gap:5px;min-width:0;padding:7px;border:1px solid var(--line);border-radius:7px;background:#0b1422}.card-studio-image-import-grid img{width:100%;height:112px;object-fit:contain;background:#172234}.card-studio-image-import-grid span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.card-studio-image-import-grid label{display:grid;gap:3px;font-size:11px}.card-studio-image-import-grid input{width:100%;min-width:0}.card-studio-eligibility{display:grid;gap:4px;padding:6px 9px;border:1px solid var(--line);border-radius:7px}.card-studio-eligibility>summary{cursor:pointer}.card-studio-eligibility label{display:flex;align-items:center;gap:5px;font-size:12px}.workspace-grid--manual-match{display:block}.manual-match-home,.manual-match-workspace{max-width:1440px;margin:0 auto;padding:22px;border:1px solid var(--line);border-radius:12px;background:#0d1725}.manual-match-home{display:grid;justify-items:center;gap:18px;min-height:420px;align-content:center}.manual-match-home header{text-align:center}.manual-match-home h2{margin:0;font-size:30px}.manual-match-home header p:last-child{color:var(--muted)}.manual-match-home-actions{display:grid;gap:10px;width:min(380px,100%)}.manual-match-home-actions button{min-height:48px;font-size:16px}.manual-match-home-actions button:first-child{min-height:58px;font-size:18px}.manual-match-save-hint{color:var(--muted);font-size:12px}.manual-match-binding-row,.manual-match-deck-controls,.manual-match-heading,.manual-match-rule-row{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.manual-match-heading{justify-content:space-between;align-items:flex-start;margin-bottom:16px}.manual-match-heading h2{margin:0}.manual-match-heading p:last-child{margin-bottom:0;color:var(--muted)}.manual-match-deck-controls{margin-bottom:12px}.manual-match-binding-row>label,.manual-match-card-library>label,.manual-match-deck-controls label,.manual-match-player-setup label,.manual-match-rule-row label,.manual-match-starting-player{display:grid;gap:4px;min-width:120px;color:#cad5e3;font-size:12px}.manual-match-binding-row input[type=number],.manual-match-binding-row select,.manual-match-card-library input,.manual-match-deck-controls input,.manual-match-deck-controls select,.manual-match-player-setup select,.manual-match-rule-row input,.manual-match-starting-player select{min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:#09111d}.manual-match-section-mapping,.manual-match-section-settings{margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#101b2a}.manual-match-section-settings>summary{cursor:pointer}.manual-match-rule-row{padding:9px 0;border-top:1px solid #263448}.manual-match-rule-row label:first-child{flex:1}.manual-match-rules-settings{margin-top:10px}.manual-match-config-section{padding:10px 0;border-top:1px solid #293a50}.manual-match-config-section>header{display:flex;justify-content:space-between;align-items:center;gap:8px}.manual-match-config-section h3{margin:0}.manual-match-config-indicator,.manual-match-config-row{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px 0;border-top:1px solid #263448}.manual-match-config-indicator>label,.manual-match-config-row label{display:grid;gap:4px;min-width:120px;color:var(--muted);font-size:11px}.manual-match-config-indicator input:not([type=checkbox]),.manual-match-config-indicator select,.manual-match-config-row input,.manual-match-config-row select{min-height:32px;padding:5px 8px;border:1px solid #3a4d64;border-radius:5px;background:#111e2e;color:#eef5fb}.manual-match-config-indicator>label:first-child{flex:1 1 180px}.manual-match-config-indicator .manual-match-config-check{display:flex;align-items:center;min-height:32px}.manual-match-config-check input{accent-color:#5fc6ee}.manual-match-deck-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(340px,1.15fr);gap:12px;align-items:start;margin-top:12px}.manual-match-card-library,.manual-match-deck-sections,.manual-match-player-setup{min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#101b2a}.manual-match-card-library h3,.manual-match-deck-sections>h3{margin:0 0 10px}.manual-match-card-list{display:grid;gap:7px;max-height:min(60vh,720px);margin-top:9px;overflow:auto}.manual-match-card-list>article{display:grid;grid-template-columns:46px minmax(100px,1fr);align-items:center;gap:8px;padding:7px;border:1px solid #293a50;border-radius:7px;background:#0b1422;cursor:grab}.manual-match-card-list>article:active{cursor:grabbing}.manual-match-card-thumb{display:grid;place-items:center;width:46px;height:60px;padding:0;overflow:hidden;border:0;border-radius:4px;background:#243247;cursor:pointer}.manual-match-card-thumb>.battle-card-fallback,.manual-match-card-thumb>img,.manual-match-card-thumb>svg{width:100%;height:100%;object-fit:cover}.manual-match-card-list img,.manual-match-card-placeholder{width:46px;height:60px;object-fit:cover;border-radius:4px;background:#243247}.manual-match-card-placeholder{display:grid;place-items:center;color:var(--muted);font-size:10px}.manual-match-card-copy{min-width:0}.manual-match-card-list small,.manual-match-card-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-match-card-name{max-width:100%;padding:0;border:0;background:transparent;color:#f0f6ff;font-weight:800;text-align:left;cursor:pointer}.manual-match-card-list small{color:var(--muted);font-size:9px}.manual-match-card-add-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px}.manual-match-card-add-actions button{min-height:28px;padding:4px 7px;font-size:11px}.manual-match-deck-entry-thumb{display:grid;place-items:center;width:34px;height:46px;padding:0;overflow:hidden;border:0;border-radius:4px;background:#243247;cursor:pointer}.manual-match-deck-entry-thumb>.battle-card-fallback,.manual-match-deck-entry-thumb>img,.manual-match-deck-entry-thumb>svg{width:100%;height:100%;object-fit:cover}.manual-match-deck-entry-name{min-width:0;padding:0;overflow:hidden;border:0;background:transparent;color:#e9f2fd;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.manual-match-section-valid{color:#8ee0ae;font-size:11px}.manual-match-section-invalid{color:#ffc46c;font-size:11px}.manual-match-deck-sections>section{min-height:92px;margin:8px 0;padding:9px;border:1px dashed #496079;border-radius:7px;background:#0a1421;transition:border-color .12s ease,background .12s ease}.manual-match-deck-sections>section.is-drop-target{border-color:var(--accent);background:#153044;box-shadow:inset 0 0 0 1px var(--accent)}.manual-match-deck-sections>section>header{display:flex;justify-content:space-between;align-items:center}.manual-match-deck-sections h4{margin:0}.manual-match-deck-sections>section>p{color:var(--muted);font-size:12px}.manual-match-deck-entry{display:grid;grid-template-columns:38px minmax(0,1fr) auto 30px 30px;align-items:center;gap:5px;padding:5px 0;border-top:1px solid #293a50}.manual-match-deck-entry>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-match-deck-entry button{min-height:28px;padding:3px}.manual-match-deck-issues{margin-top:10px;padding:9px;border:1px solid #805f35;border-radius:6px;color:#f5d7a3}.manual-match-deck-issues>summary{cursor:pointer}.manual-match-deck-issues ul{margin-bottom:0}.manual-match-card-detail-backdrop{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:20px;background:#020812d9;backdrop-filter:blur(5px)}.manual-match-card-detail{width:min(680px,100%);max-height:min(86dvh,760px);overflow:auto;padding:18px;border:1px solid #3a526d;border-radius:12px;background:#0d1928;box-shadow:0 20px 80px #000b}.manual-match-card-detail>footer,.manual-match-card-detail>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.manual-match-card-detail h3{margin:0}.manual-match-card-detail-body{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;margin:16px 0}.manual-match-card-detail-face{min-height:210px}.manual-match-card-detail-face>.battle-card-fallback,.manual-match-card-detail-face>img,.manual-match-card-detail-face>svg{width:100%;height:auto;max-height:250px;object-fit:contain}.manual-match-card-detail dl{display:grid;align-content:start;gap:7px;margin:0}.manual-match-card-detail dl>div{padding:7px;border-bottom:1px solid #28394d}.manual-match-card-detail dt{color:#9db1c9;font-size:11px}.manual-match-card-detail dd{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.manual-match-card-detail>footer{justify-content:flex-end;flex-wrap:wrap;padding-top:12px;border-top:1px solid #28394d}.manual-match-card-detail>footer>span{margin-right:auto;color:#bdcbdc;font-size:12px}.battle-card-fallback{display:flex;flex-direction:column;align-items:center;justify-content:space-between;box-sizing:border-box;padding:8px 5px;overflow:hidden;border:1px solid #98a9bb;border-radius:5px;color:#eaf3ff;background:radial-gradient(ellipse at 50% 35%,#3e5871,#101c2b 75%);text-align:center}.battle-card-fallback>span{max-width:100%;color:#9dd9f3;font-size:9px;text-transform:uppercase;overflow-wrap:anywhere}.battle-card-fallback>strong{max-width:100%;display:-webkit-box;overflow:hidden;font-size:11px;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:3}.battle-card-fallback>small{color:#9eafc2;font-size:8px}.manual-match-notice{min-height:20px;color:#f3bd74}.manual-match-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px}.manual-match-player-setup h3{margin-top:0}.companion-readiness,.manual-match-readiness{margin:14px 0;padding:12px;border:1px solid #31445a;border-radius:8px;background:#0a1421}.companion-readiness h3,.manual-match-readiness h3{margin:0 0 8px}.manual-match-readiness h4{margin:8px 0 3px}.companion-readiness ul,.manual-match-readiness ul{display:grid;gap:3px;margin:0 0 6px;padding-left:0;list-style:none}.companion-readiness li,.manual-match-readiness li{display:flex;align-items:baseline;gap:7px;padding:3px 0;color:#9ae2b1;font-size:12px}.companion-readiness li[data-ready=false],.manual-match-readiness li[data-ready=false]{color:#ffc46c}.companion-readiness>p,.manual-match-readiness>p{margin:8px 0;font-size:12px}.companion-match-launch{max-width:920px}.companion-deck-selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.companion-deck-selectors .manual-match-player-setup{padding:14px}.companion-deck-selectors label,.companion-starting-player{display:grid;gap:6px;color:#cad5e3;font-size:12px}.companion-deck-selectors select,.companion-starting-player select{min-height:38px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:#09111d}.companion-starting-player{max-width:440px;margin:14px 0}.companion-readiness-errors{color:#ffc46c;font-size:11px}.companion-trial-option{display:flex;align-items:center;gap:7px;margin:14px 0;color:#aab9ca;font-size:12px}.companion-start-button{min-width:180px;min-height:46px}.manual-match-starting-player{max-width:360px;margin:12px 0}.manual-match-section-mapping>div{margin-top:12px}.manual-match-section-mapping h4{margin:4px 0}.manual-match-binding-row{align-items:center;padding:8px 0;border-top:1px solid #293a50}.manual-match-binding-row>strong{min-width:120px}.manual-match-binding-row label:has(input[type=checkbox]){display:flex;align-items:center;gap:4px}.manual-match-binding-row input[type=number]{width:92px}.manual-match-live{max-width:none}.manual-match-board-log-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:10px;align-items:start}.manual-match-action-row,.manual-match-turnbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.manual-match-turnbar{justify-content:space-between;margin:10px 0;padding:9px 11px;border:1px solid #31445a;border-radius:8px;background:#111e2e}.manual-match-turnbar>div{display:flex;gap:6px}.manual-match-live-board{min-width:0}.manual-match-live-board .viewport-container{height:var(--manual-viewport-height,clamp(320px,64dvh,820px))}.manual-match-board-canvas{position:relative;overflow:hidden;border:1px solid #53657a;box-shadow:inset 0 0 50px rgba(0,0,0,.3)}.manual-match-zone{position:absolute;display:flex;flex-direction:column;min-width:0;min-height:0;padding:5px;overflow:hidden;border:1px solid rgba(164,193,221,.75);border-radius:8px;box-shadow:inset 0 0 18px rgba(0,0,0,.2)}.manual-match-zone.is-drop-target{outline:3px solid #69d4ff;outline-offset:-3px;background-color:rgba(30,112,140,.5)!important}.manual-match-zone.is-event-highlight{outline:3px solid #75e6ff;outline-offset:2px;box-shadow:0 0 18px rgba(92,220,255,.55),inset 0 0 20px rgba(92,220,255,.15)}.manual-match-zone.is-attack-target-candidate{outline:3px solid #7be6ad;outline-offset:-3px;box-shadow:inset 0 0 24px rgba(57,220,142,.22),0 0 14px rgba(57,220,142,.45);cursor:crosshair}.manual-match-zone.is-invalid-drop{outline-color:#ff6565;background-color:rgba(130,35,42,.58)!important}.manual-match-zone-label{display:flex;justify-content:space-between;align-items:center;gap:5px;width:100%;overflow:hidden;color:#eef5fb;font-size:11px;text-shadow:0 1px 2px #000}.manual-match-zone-label small{color:#bfd2e4;white-space:nowrap}.manual-match-zone-cards{display:flex;flex:1;align-items:flex-start;align-content:flex-start;gap:max(2px,min(8px,1vw));min-height:0;min-width:0;padding:5px 1px 1px;overflow:hidden}.manual-match-zone-cards--column{overflow-y:auto}.manual-match-zone-cards--stack{position:relative;display:block}.manual-match-card-instance{position:relative;display:grid;place-items:center;padding:2px;overflow:hidden;border:1px solid #d8e1ec;border-radius:5px;background-color:#d9e3ee;color:#172333;box-shadow:0 2px 5px rgba(0,0,0,.45);cursor:grab;font-size:9px;line-height:1.1;text-align:center}.manual-match-card-instance>span{display:-webkit-box;max-height:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}.manual-match-template-face{position:absolute;inset:0;overflow:hidden;border-radius:4px;pointer-events:none}.manual-match-template-element{position:absolute;display:flex;box-sizing:border-box;overflow:hidden;white-space:pre-wrap;line-height:1.1}.manual-match-template-element>span{display:-webkit-box;width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}.manual-match-template-element>img{display:block}.manual-match-card-instance:active{cursor:grabbing}.manual-match-card-instance.is-selected{outline:3px solid #ffd86b;outline-offset:1px}.manual-match-card-instance.is-attack-target-candidate{outline:3px solid #76e7a9;outline-offset:3px;box-shadow:0 0 17px rgba(68,223,137,.65);cursor:crosshair}.manual-match-card-instance.is-attackable{box-shadow:0 0 0 1px rgba(100,225,166,.48),0 2px 5px rgba(0,0,0,.45)}.manual-match-attack-handle{position:absolute;top:3px;right:3px;z-index:30;max-width:calc(100% - 6px);min-height:21px;padding:2px 5px;border:1px solid rgba(182,255,221,.72);border-radius:5px;background:rgba(7,34,28,.92);color:#d7ffec;font-size:9px;line-height:1;white-space:nowrap;cursor:grab;opacity:.48;transition:opacity .12s ease,transform .12s ease}.manual-match-card-instance.is-attackable:focus-within .manual-match-attack-handle,.manual-match-card-instance.is-attackable:hover .manual-match-attack-handle,.manual-match-card-instance.is-selected .manual-match-attack-handle{opacity:1}.manual-match-attack-handle:active{cursor:grabbing;transform:scale(.96)}.manual-match-transition-overlay{--transition-accent:#75b8e8;position:fixed;top:15vh;left:50%;z-index:10000;display:grid;width:min(680px,76vw);min-height:240px;max-height:54vh;transform:translateX(-50%);overflow:hidden;place-items:center;border:1px solid color-mix(in srgb,var(--transition-accent) 72%,white 28%);border-radius:18px;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--transition-accent) 24%,#101827),rgba(6,12,22,.97) 75%);box-shadow:0 22px 80px rgba(0,0,0,.55),inset 0 0 42px color-mix(in srgb,var(--transition-accent) 13%,transparent);color:#f4f8fc;pointer-events:none;animation:fb-match-transition-in .22s ease-out both}.manual-match-transition-image{position:absolute;inset:0;width:100%;height:100%;opacity:.28;pointer-events:none}.manual-match-transition-image.is-cover{object-fit:cover}.manual-match-transition-image.is-contain{object-fit:contain}.manual-match-transition-copy{position:relative;display:grid;gap:8px;justify-items:center;padding:28px;text-align:center;text-shadow:0 2px 12px #000}.manual-match-transition-copy>span{color:color-mix(in srgb,var(--transition-accent) 74%,white);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.manual-match-transition-copy>strong{font-size:clamp(28px,5vw,54px);line-height:1.08}.manual-match-transition-copy>small{color:#d6e0eb;font-size:15px}@keyframes fb-match-transition-in{0%{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}@media (prefers-reduced-motion:reduce){.manual-match-transition-overlay{animation:none}}.manual-match-player-identity{border-color:var(--player-accent,#75b8e8)}.manual-match-card-instance.is-event-highlight{outline:3px solid #75e6ff;outline-offset:3px;filter:drop-shadow(0 0 8px rgba(92,220,255,.9))}.manual-match-marquee-box{position:absolute;z-index:10000;border:1px dashed #69d4ff;background:rgba(105,212,255,.16);pointer-events:none}.manual-match-card-instance.is-attack-target{outline:3px solid #fc756d;outline-offset:1px}.manual-match-card-instance.is-attacking{filter:drop-shadow(0 0 8px #ff405c) drop-shadow(0 0 14px #fb9b33)}.manual-match-card-back{color:#f0f6ff;font-weight:800;letter-spacing:.08em}.manual-match-attack-marker{position:absolute;right:5px;bottom:5px;z-index:8;padding:3px 6px;border-radius:4px;background:#9c2f40;color:white;font-size:10px;font-weight:700}.manual-match-live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.manual-match-live-panel{min-width:0;padding:12px;border:1px solid #293a50;border-radius:8px;background:#0b1422}.manual-match-live-panel h3{margin:0 0 8px}.manual-match-live-panel p{color:var(--muted);font-size:12px}.manual-match-live-panel label{display:grid;gap:4px;min-width:100px;color:var(--muted);font-size:11px}.manual-match-live-panel input,.manual-match-live-panel select{min-height:32px;padding:5px 8px;border:1px solid #3a4d64;border-radius:5px;background:#111e2e;color:#eef5fb}.manual-match-action-row output{min-width:48px;text-align:center;font-weight:700}.manual-match-shortcuts{margin-top:10px}.manual-match-shortcuts>summary{cursor:pointer;color:#c0cfdf;font-size:12px}.manual-match-shortcuts>div{display:flex;flex-wrap:wrap;gap:7px;padding-top:8px}.manual-match-shortcuts label{min-width:120px}.manual-match-indicator{padding:8px 0;border-bottom:1px solid #263448}.manual-match-indicator.is-active{border-radius:5px;box-shadow:0 0 15px rgba(87,214,174,.16)}.manual-match-indicator>strong{display:block;margin-bottom:5px}.manual-match-indicator-lights{display:flex;flex-wrap:wrap;gap:5px}.manual-match-indicator-lights button{width:18px;height:18px;padding:0;border:1px solid #72839a;border-radius:50%;background:#182538}.manual-match-indicator-lights button.is-lit{border-color:#ffdb72;background:#ffca4c;box-shadow:0 0 9px rgba(255,202,76,.8)}.manual-match-indicator progress{width:min(260px,100%);accent-color:#58d2b1}.manual-match-action-log{position:sticky;top:12px;max-height:min(74vh,760px);padding:10px;overflow:hidden}.manual-match-action-log-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.manual-match-action-log-heading h3{margin:0}.manual-match-action-log-heading>span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.manual-match-log-filters{display:flex;flex-wrap:wrap;gap:4px;margin:9px 0}.manual-match-log-filters button{min-height:26px;padding:3px 7px;border:1px solid #35495f;border-radius:999px;background:#111e2e;color:#cad6e3;font-size:10px}.manual-match-log-filters button.is-active{border-color:#62cdec;background:#16384a;color:#e9faff}.manual-match-event-list{display:grid;gap:6px;max-height:calc(min(74vh, 760px) - 92px);margin:0;padding:0 3px 0 0;overflow:auto;list-style:none}.manual-match-event-card{display:grid;width:100%;gap:5px;padding:8px;border:1px solid #2e4156;border-radius:7px;background:#101b29;color:#e4edf6;text-align:left;cursor:pointer}.manual-match-event-card.is-active,.manual-match-event-card:hover{border-color:#5fcde9;background:#142a38}.manual-match-event-card.is-divider{gap:4px;padding-block:6px;border-style:dashed;background:#101a26}.manual-match-event-card.is-terminal{border-color:#a77b43;background:linear-gradient(120deg,#352918,#171e27 72%)}.manual-match-event-terminal-title{color:#ffd58f;font-size:13px}.manual-match-event-divider{display:block;height:1px;margin:1px 0;background:linear-gradient(90deg,transparent,#72879e,transparent)}.manual-match-event-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}.manual-match-event-meta strong{color:#f2f7fc;font-size:12px}.manual-match-event-meta time{flex:0 0 auto;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.manual-match-event-context,.manual-match-event-detail{color:#aebed0;font-size:10px;line-height:1.35}.manual-match-event-cards{display:flex;flex-wrap:wrap;gap:5px}.manual-match-event-thumbnail{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:6px;min-width:0;max-width:100%;padding:3px 6px 3px 3px;border-radius:5px;background:#19283a}.manual-match-event-thumbnail>img,.manual-match-event-thumbnail>span[aria-hidden=true]{display:grid;width:38px;height:53px;place-items:center;border-radius:3px;background:#24364b;color:#d6e7f5;object-fit:cover;font-size:10px;font-weight:800}.manual-match-event-thumbnail>img{width:38px;height:53px;border-radius:3px;background:#24364b;object-fit:cover}.manual-match-event-thumbnail>small{overflow:hidden;color:#d7e3ee;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.manual-match-event-thumbnail.is-private{border:1px dashed #4a5868;background:#151e29}.manual-match-event-thumbnail.is-private>small{color:#a8b4c1}.manual-match-event-stack{display:inline-flex;align-items:center;gap:8px;min-height:43px;padding:4px 8px;border-radius:6px;background:#182739;color:#e4edf6}.manual-match-event-stack-faces{position:relative;display:inline-block;width:38px;height:37px}.manual-match-event-stack-faces>i,.manual-match-event-stack-faces>img{position:absolute;top:0;left:5px;width:25px;height:35px;overflow:hidden;border:1px solid #7590a8;border-radius:3px;background:linear-gradient(145deg,#34526c,#14243a);object-fit:cover}.manual-match-event-stack-faces>i:first-child,.manual-match-event-stack-faces>img:first-child{transform:translateX(-5px) rotate(-8deg)}.manual-match-event-stack-faces>i:nth-child(2),.manual-match-event-stack-faces>img:nth-child(2){transform:translateX(0) rotate(0)}.manual-match-event-stack-faces>i:nth-child(3),.manual-match-event-stack-faces>img:nth-child(3){transform:translateX(5px) rotate(8deg)}.manual-match-event-stack>small{color:#d3e1ef;font-size:11px;font-weight:800}.manual-match-attack-relation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;padding:6px;border:1px solid #334d64;border-radius:7px;background:#0c1723}.manual-match-attack-side{display:flex;min-width:0;flex-wrap:wrap;justify-content:center;gap:4px}.manual-match-attack-arrow{color:#79d8f0;font-size:18px;font-weight:900}.manual-match-attack-player{padding:6px 8px;border:1px solid #53748c;border-radius:999px;background:#17283a;color:#e5f4ff;font-size:10px;font-weight:800}.manual-match-event-indicator{display:inline-flex;width:fit-content;gap:7px;padding:4px 8px;border-radius:5px;background:#203342;color:#d9f6ff;font-variant-numeric:tabular-nums;font-size:11px;font-weight:800}.manual-match-log-empty{margin:10px 2px}.manual-match-result{padding:8px;border-radius:6px;background:#20344a;color:#fff!important;font-weight:700}.workspace-grid--game-settings{display:block}.game-settings-workspace{max-width:1440px;margin:0 auto;padding:22px;border:1px solid var(--line);border-radius:12px;background:#0d1725}.game-audio-settings{margin:10px 0;padding:14px;border:1px solid #31465c;border-radius:9px;background:#111e2d}.game-audio-settings h2{margin:0;font-size:17px}.game-audio-volume-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;max-width:760px}.game-audio-volume-grid label{display:grid;gap:4px;color:#cad5e3;font-size:12px}.game-audio-slot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-audio-slot{min-width:0;margin:0;padding:10px;border:1px solid #28394d;border-radius:7px}.game-audio-assigned{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px}.game-audio-assigned>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-audio-assigned audio{grid-column:1/-1;width:100%}.game-audio-notice{min-height:1em;color:#ffadad}.game-export-targets{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.game-export-notice{min-height:1em;overflow-wrap:anywhere}.standalone-game-shell{min-height:100vh;padding:18px;background:#07111e;color:#eef5fb}.standalone-game-home{display:grid;align-content:center;justify-items:center;gap:14px;text-align:center}.standalone-game-home h1,.standalone-game-home p{margin:0}.standalone-game-home .button{min-width:180px;min-height:48px}.standalone-game-menu{display:grid;gap:10px;min-width:220px}.battle-audio-local-seat{display:flex;align-items:center;gap:6px}.game-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}.game-settings-grid>.game-settings-actions{grid-column:1/-1}.game-settings-player-bindings{margin:10px 0;padding:8px 0;border-top:1px solid #263448}.game-settings-player-bindings h4{margin:0 0 6px}.game-settings-binding,.game-settings-phase,.game-settings-zone-capacity{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px 0;border-top:1px solid #263448}.game-settings-binding>strong,.game-settings-zone-capacity>strong{flex:1 1 110px;align-self:center}.game-settings-action label,.game-settings-binding label,.game-settings-indicator label,.game-settings-phase label,.game-settings-step label,.game-settings-zone-capacity label{display:grid;gap:4px;min-width:105px;color:#cad5e3;font-size:11px}.game-settings-workspace input:not([type=checkbox]),.game-settings-workspace select{min-height:32px;padding:5px 8px;border:1px solid #3a4d64;border-radius:5px;background:#111e2e;color:#eef5fb}.game-settings-options{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;padding:10px;border:1px solid #33465c;border-radius:7px}.game-settings-options legend{padding:0 6px;color:#d9e6f3;font-weight:700}.game-settings-options>label:not(.manual-match-config-check){display:grid;gap:4px;min-width:100px;color:#cad5e3;font-size:11px}.game-settings-phase-list{margin:10px 0}.game-settings-phase label{flex:1 1 160px}.game-settings-phase{display:block}.game-settings-phase-main,.game-settings-phase-presentation,.game-settings-player-presentation{display:flex;flex-wrap:wrap;align-items:end;gap:8px;width:100%}.game-settings-phase-main>label:first-child{flex:1 1 145px}.game-settings-phase-main>.manual-match-config-check{display:flex;align-items:center;min-height:32px;gap:6px}.game-settings-phase-main>.manual-match-config-check input,.game-settings-phase-presentation>label:first-child input{accent-color:#5fc6ee}.game-settings-phase-presentation{margin-top:7px;padding:7px;border-radius:6px;background:rgba(5,12,20,.35)}.game-settings-phase-presentation>label{flex:1 1 130px}.game-settings-phase-presentation input[type=color],.game-settings-player-presentation input[type=color],.game-settings-transition-settings input[type=color]{min-height:32px;width:62px;padding:3px;border:1px solid #3a4d64;border-radius:5px;background:#111e2e}.game-settings-phase-presentation>label:first-child,.game-settings-player-presentation>label:nth-child(2){display:flex;flex-direction:row;align-items:center;gap:7px}.game-settings-transition-settings{align-items:end}.game-settings-transition-settings p{flex:1 1 100%;margin:0;color:var(--muted);font-size:11px}.game-settings-player-presentation{margin:7px 0;padding:7px 0;border-top:1px solid #263448}.game-settings-player-presentation>label:first-child{flex:1 1 145px}.game-settings-indicator{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:9px 0;border-top:1px solid #263448}.game-settings-indicator label:first-child{flex:1 1 160px}.game-settings-panel-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.game-settings-panel-header>div:last-child{display:flex;flex-wrap:wrap;gap:5px}.game-settings-panel-header h3{margin:0}.game-settings-action{margin-top:10px;padding:10px;border:1px solid #33465c;border-radius:8px;background:#091320}.game-settings-action>header{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding-bottom:9px;border-bottom:1px solid #263448}.game-settings-action>header label:first-child{flex:1 1 190px}.game-settings-step{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:9px 0;border-bottom:1px solid #263448}.game-settings-step>strong{align-self:center;min-width:75px;color:#e6edf6;font-size:12px}.game-settings-step label{flex:1 1 125px}.shared-play-surface{max-width:none}.runtime-preview-shell{display:flex;flex-direction:column;width:100%;height:100dvh;overflow:hidden;padding:14px 18px;box-sizing:border-box;background:#07101c;color:#ecf3fa}.runtime-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex:0 0 auto;padding-bottom:12px}.runtime-preview-heading h1{margin:0;font-size:20px}.runtime-preview-heading p:last-child{margin:4px 0 0;color:#adbdcf;font-size:12px}.runtime-preview-canvas{flex:1 1 auto;min-height:0}.runtime-preview-canvas .viewport-container{height:100%}.runtime-preview-field{overflow:hidden!important}.runtime-preview-shell>.manual-match-live{min-height:100vh;margin:0;padding:14px 18px;border:0;border-radius:0;background:#091321}.runtime-preview-shell>.manual-match-live>.manual-match-heading h2{font-size:20px;letter-spacing:.01em}.runtime-preview-shell>.manual-match-live>.manual-match-heading .eyebrow{margin:0 0 3px}.runtime-preview-shell .manual-match-live-board .viewport-container{height:clamp(180px,min(64dvh,calc(100dvh - 310px)),820px);border-radius:9px}.manual-match-player-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:7px;margin:8px 0;padding:8px;border:1px solid #293a50;border-radius:8px;background:#0b1422}.manual-play-mode-bar,.manual-play-selection,.manual-play-state-editor{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px 12px;border:1px solid #38536d;border-radius:8px;background:#0e1a2a;margin:8px 0}.manual-play-mode-bar p{flex-basis:100%;margin:0;color:#b7c8db;font-size:12px}.manual-play-mode-bar label{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:12px}.manual-play-mode-bar select,.manual-play-state-editor select{background:#142235;color:#eef4fb;border:1px solid #526881;border-radius:5px;padding:6px;max-width:240px}.manual-play-state-editor{display:block}.manual-play-state-editor summary{cursor:pointer;font-weight:600}.manual-play-state-editor .manual-match-action-row{margin-top:10px}.manual-play-mode-bar.is-override,.manual-play-state-editor.is-override{border-color:#dcaf67;background:#2a2116}.manual-play-selection{position:relative;min-height:58px;color:#e0ebf7;font-size:12px}.manual-play-notice{position:absolute;top:100%;left:0;right:0;z-index:10002;margin:4px 0;padding:8px 10px;border:1px solid #8d714a;border-radius:6px;background:#172335;box-shadow:0 4px 12px #0008}.manual-play-selection strong{max-width:55%;overflow-wrap:anywhere}.manual-match-zone.is-move-candidate{outline:2px dashed #779bb9;outline-offset:-3px;cursor:pointer}.manual-match-zone.is-move-candidate:hover{outline-color:#87d9f0}.manual-match-history-note{margin:8px 0;font-size:11px;color:#adbfd3}.manual-match-history-scope{font-size:10px;color:#b0c7df;letter-spacing:.05em}.manual-match-history-scope.is-override{color:#ffcf87;font-weight:700}.manual-match-player-toolbar label{display:grid;gap:4px;min-width:130px;color:#c9d7e5;font-size:11px}.manual-match-player-toolbar select{min-height:31px;padding:4px 7px;border:1px solid #3a4d64;border-radius:5px;background:#111e2e;color:#eef5fb}.manual-match-player-toolbar [data-testid=context-attack]{margin-left:auto}.manual-match-action-bar{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 10px;padding:8px;border:1px solid #293a50;border-radius:8px;background:linear-gradient(110deg,#0c1929,#142337)}.manual-match-action-bar button{min-height:36px;padding:7px 13px;border:1px solid #415a76;border-radius:7px;background:#18304a;color:#f2f7fc;font-weight:700}.manual-match-action-bar button:hover:not(:disabled){border-color:#67d1ee;background:#1d4260}.shared-phase-rail{flex-wrap:wrap;gap:10px}.shared-phase-rail>strong{flex:0 0 auto;color:#eff7ff}.shared-phase-list{flex:1 1 360px;flex-wrap:wrap;align-items:center;justify-content:center}.shared-phase-list>span{padding:5px 9px;border:1px solid #334961;border-radius:999px;background:#0c1827;color:#afbed0;font-size:12px;white-space:nowrap}.shared-phase-list>span+span:before{content:"›";display:inline-block;margin-left:-18px;padding-right:8px;color:#657e99}.shared-phase-list>span.is-current{border-color:#68d2ef;background:#164256;color:#f3fcff;box-shadow:0 0 12px #43c5e733;font-weight:800}.shared-phase-list>span.is-completed{opacity:.55}.manual-match-board-canvas .manual-match-player-identities{position:absolute;inset:0;z-index:10001;pointer-events:none}.manual-match-player-identity{position:absolute;display:inline-block;max-width:42%;overflow:hidden;padding:6px 10px;border:1px solid #5b7795;border-radius:999px;background:#0a1624e8;color:#eef7ff;font-size:16px;font-weight:800;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 4px 14px #0007}.manual-match-player-identity--top{top:8px;left:50%;transform:translateX(-50%)}.manual-match-player-identity--bottom{bottom:8px;left:50%;transform:translateX(-50%)}.manual-match-player-identity--me{border-color:#5db2ca}.manual-match-player-identities button.manual-match-player-identity{z-index:1;border-color:#5bcf8b;background:#123322ed;cursor:pointer;pointer-events:auto}.manual-match-player-identities button.manual-match-player-identity:disabled{border-color:#5b7795;background:#0a1624e8;cursor:not-allowed;opacity:.55}.manual-match-player-toolbar.is-selecting-attack-target{border-color:#53bf81;background:#11291f}.manual-match-attack-instruction{flex:1 1 260px;color:#bcebd0;font-size:12px}.shared-play-surface[data-play-mode=preview] .manual-match-live-grid{grid-template-columns:1fr}.manual-match-debug-inspector{border-color:#735c3d}.manual-match-debug-inspector>h3{color:#f4c983}.play-search-backdrop{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px;background:rgba(3,7,13,.78);backdrop-filter:blur(5px)}.play-search-dialog{display:grid;grid-template-rows:auto auto minmax(180px,1fr) auto;gap:9px;width:min(760px,100%);max-height:min(82vh,760px);padding:15px;border:1px solid #496783;border-radius:12px;background:#0c1725;color:#f0f6fc;box-shadow:0 24px 70px #000b}.play-search-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.play-search-dialog>header h3{margin:0}.play-search-dialog>header p:last-child{margin:5px 0 0;color:#acbdd0;font-size:12px}.play-search-selection-count{margin:0;color:#b9cada;font-size:12px}.play-search-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;min-height:0;overflow:auto;padding:2px}.play-search-card{position:relative;display:grid;justify-items:center;gap:6px;padding:8px;border:1px solid #30455c;border-radius:8px;background:#101e2e;color:#e6eef7;cursor:pointer;text-align:center}.play-search-card.is-selected{border-color:#f2d269;background:#2d2a1c}.play-search-card input{position:absolute;top:7px;left:7px;accent-color:#f2d269}.play-search-card img,.play-search-card-placeholder{width:78px;height:108px;border-radius:5px;background:#26384e;object-fit:cover}.play-search-card-placeholder{display:grid;place-items:center;color:#dce9f5;font-weight:800}.play-search-card>span:last-child{max-width:100%;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.play-search-dialog>footer{display:flex;justify-content:flex-end;gap:7px;padding-top:8px;border-top:1px solid #28394d}.manual-match-log-disabled{margin:0;padding:8px;color:#8b9bac;font-size:11px}@media (max-width:820px){.game-audio-slot-list,.game-audio-volume-grid,.game-settings-grid{grid-template-columns:1fr}.game-settings-grid>.game-settings-actions{grid-column:auto}.companion-deck-selectors,.manual-match-deck-layout,.manual-match-live-grid,.manual-match-setup-grid{grid-template-columns:1fr}.manual-match-card-detail-body{grid-template-columns:100px minmax(0,1fr);gap:10px}}@media (max-width:1100px){.manual-match-board-log-layout{grid-template-columns:minmax(0,1fr)}.manual-match-action-log{position:static;max-height:340px}.manual-match-event-list{max-height:240px}}.card-studio-editor-sidebar{display:grid;align-content:start;gap:12px;max-height:calc(100vh - 170px);overflow:auto}.card-studio-editor-sidebar .card-studio-tools ul{max-height:200px;overflow:auto}.card-studio-editor-sidebar .card-studio-inspector{padding:0;border:0;background:transparent}.card-studio-editor-sidebar .card-studio-actions button{min-height:34px}.card-studio-color-label{display:flex!important;align-items:center;justify-content:space-between;min-height:34px}.card-studio-color-label input[type=color]{width:46px;height:32px;padding:2px;border:1px solid var(--line);border-radius:6px;background:#0b1422}.card-studio-validation{margin-top:10px;padding:10px 12px;border:1px solid #bd625d;border-radius:8px;background:#3a2024;color:#ffe4df}.card-studio-validation details{margin-top:6px}.card-studio-validation li{overflow-wrap:anywhere;font-size:12px}.card-studio-element--editable{touch-action:none;user-select:none}.card-studio-element--editable .card-studio-placeholder,.card-studio-element--editable .card-studio-value,.card-studio-element--editable img{pointer-events:none}.card-studio-resize-handle{position:absolute;z-index:1000;width:12px;height:12px;padding:0;border:2px solid #fff;border-radius:3px;background:#008d78;touch-action:none;user-select:none}.card-studio-resize-handle--nw{top:-6px;left:-6px;cursor:nwse-resize}.card-studio-resize-handle--ne{top:-6px;right:-6px;cursor:nesw-resize}.card-studio-resize-handle--sw{bottom:-6px;left:-6px;cursor:nesw-resize}.card-studio-resize-handle--se{right:-6px;bottom:-6px;cursor:nwse-resize}.card-studio{min-width:0;width:100%;border:1px solid var(--line);border-radius:14px;background:var(--panel,#101b2c);padding:18px;color:var(--text,#edf2fa)}.card-studio-actions,.card-studio-add-row,.card-studio-bulk,.card-studio-editor-toolbar,.card-studio-heading,.card-studio-language-row,.card-studio-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.card-studio-heading{justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:14px}.card-studio-heading h2{margin:3px 0}.card-studio-heading p:last-child{margin:5px 0 0;color:var(--muted)}.card-studio-control,.card-studio-editor-toolbar label,.card-studio-inspector label,.card-studio-languages>label,.card-studio-toolbar label,.card-studio-translations>label{display:inline-grid;gap:5px;color:var(--muted);font-size:12px}.card-studio input:not([type=checkbox]):not([type=color]),.card-studio select,.card-studio textarea{min-width:110px;border:1px solid var(--line);border-radius:7px;background:#0b1422;color:var(--text,#edf2fa);padding:7px 9px}.card-studio input[type=checkbox]{accent-color:#65d3bd}.card-studio-tabs{display:flex;gap:7px;margin:14px 0;border-bottom:1px solid var(--line)}.card-studio-table th button,.card-studio-tabs button,.card-studio-tools li button{color:var(--muted);background:transparent;border:0;padding:9px 12px;cursor:pointer}.card-studio-tabs button.is-active,.card-studio-tools li button.is-active{color:#fff;border-bottom:2px solid #65d3bd}.card-studio-toolbar{margin-bottom:10px}.card-studio-toolbar select{max-width:190px}.card-studio-search{flex:1;min-width:170px}.card-studio-search input{width:100%}.card-studio-columns{position:relative}.card-studio-columns summary{padding:8px 10px;border:1px solid var(--line);border-radius:7px;cursor:pointer}.card-studio-columns>div{position:absolute;z-index:20;right:0;top:calc(100% + 4px);display:grid;min-width:170px;max-height:260px;overflow:auto;gap:5px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#101b2c;box-shadow:0 12px 32px #0009}.card-studio-columns label{display:flex;align-items:center;gap:7px}.card-studio-columns button{padding:5px;color:inherit;background:transparent;border:0;text-align:left;cursor:pointer}.card-studio-bulk{padding:9px;margin-bottom:9px;border:1px solid #42516a;border-radius:8px}.card-studio-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px}.card-studio-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.card-studio-table th{position:sticky;top:0;z-index:2;min-width:130px;max-width:340px;resize:horizontal;overflow:auto;background:#18253a;text-align:left}.card-studio-table td:first-child,.card-studio-table th:first-child{min-width:35px;width:35px;text-align:center}.card-studio-table td:nth-child(2),.card-studio-table th:nth-child(2){min-width:190px}.card-studio-table td,.card-studio-table th{padding:6px;border-bottom:1px solid #28354a;border-right:1px solid #28354a}.card-studio-table tbody tr.is-selected,.card-studio-table tbody tr:hover{background:#19283a}.card-studio-table td.is-active-cell{outline:2px solid #65d3bd;outline-offset:-2px}.card-studio-table td input:not([type=checkbox]),.card-studio-table td select,.card-studio-table td textarea{box-sizing:border-box;width:100%;min-width:90px;resize:vertical;font:inherit}.card-id-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-id-cell small{display:block;color:var(--muted)}.card-studio-empty,.card-studio-status{color:var(--muted);padding:10px}.card-studio-import-preview{margin-top:12px;padding:12px;border:1px solid #50617a;border-radius:9px;background:#101b2c}.card-studio-import-preview p{overflow-wrap:anywhere}.card-studio-fields,.card-studio-languages,.card-studio-translations{display:grid;gap:12px;padding:6px 0 14px}.card-studio-field-row{display:grid;grid-template-columns:minmax(125px,1fr) minmax(160px,1.4fr) minmax(110px,.7fr) auto auto auto;align-items:end;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.card-studio-field-row label{display:grid;gap:5px;color:var(--muted);font-size:11px}.card-studio-add-row{padding:12px 0;border-top:1px solid var(--line)}.card-studio-language-row{border-bottom:1px solid var(--line);padding:8px 0}.card-studio-language-row span{margin-left:auto;color:var(--muted)}.card-studio-translations>p{color:var(--muted)}.card-studio-editor-toolbar{padding:12px 0}.card-studio-editor-layout{display:grid;grid-template-columns:minmax(160px,220px) minmax(240px,1fr) minmax(230px,300px);gap:14px;align-items:start}.card-studio-inspector,.card-studio-preview-area,.card-studio-tools{min-width:0;border:1px solid var(--line);border-radius:9px;padding:12px;background:#0d1725}.card-studio-tools ul{list-style:none;padding:0}.card-studio-tools li button{width:100%;text-align:left;overflow-wrap:anywhere}.card-studio-tools li button[data-image-source]{display:grid;gap:3px}.card-studio-scope-layer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid var(--line)}.card-studio-scope-layer label{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}.card-studio-scope-layer button{width:auto!important;flex:0 0 auto;text-align:center}.card-studio-tools li button[data-image-source]:after{content:attr(data-image-source);display:block;color:var(--muted);font-size:11px;font-weight:400}.card-studio-inspector{display:grid;gap:9px}.card-studio-inspector h3,.card-studio-tools h3{margin:0 0 6px}.card-studio-geometry{display:grid;grid-template-columns:repeat(2,minmax(70px,1fr));gap:8px}.card-studio-preview-area{display:grid;justify-items:center;gap:10px;overflow:auto}.card-studio-live-label{display:flex;width:100%;justify-content:space-between;color:var(--muted)}.card-studio-live-label span{color:#65d3bd}.card-studio-two-sided{position:relative;width:min(100%,430px);perspective:1100px;touch-action:pan-y;user-select:none}.card-studio-two-sided.is-rotatable{cursor:grab}.card-studio-two-sided.is-rotatable.is-dragging{cursor:grabbing}.card-studio-card-rotor{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .28s cubic-bezier(.2,.7,.2,1);will-change:transform}.card-studio-two-sided.is-dragging .card-studio-card-rotor{transition:none}.card-studio-card-face{position:absolute;inset:0;overflow:hidden;border-radius:4px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#111b2a}.card-studio-card-face--front .card-studio-card,.card-studio-card-face--front .card-studio-image-preview{width:100%;height:100%;max-height:none;border-radius:inherit}.card-studio-card-face--back{display:grid;place-items:center;transform:rotateY(180deg);background:#142238}.card-studio-card-face--back>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.card-studio-back-placeholder{display:grid;place-items:center;box-sizing:border-box;width:100%;height:100%;padding:16px;border:1px dashed #66758b;color:#d5dce6;text-align:center}.card-studio-preview-controls,.card-studio-preview-mode,.card-studio-preview-sides{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}.card-studio-preview-controls{width:100%;color:var(--muted);font-size:12px}.card-studio-image-source-options button,.card-studio-preview-controls button{min-height:30px;padding:4px 10px;color:inherit;border:1px solid var(--line);border-radius:6px;background:#101c2b}.card-studio-image-source-options button.is-active,.card-studio-preview-controls button.is-active{color:#fff;border-color:#368c7e;background:#1b3b43}.card-studio-image-source-options button:focus-visible,.card-studio-preview-controls button:focus-visible{outline:2px solid #65d3bd;outline-offset:2px}.card-studio-preview-controls>span{color:#65d3bd}.card-studio-rotation-hint{margin:-4px 0 0;color:var(--muted);font-size:11px}.card-studio-image-source{display:grid;gap:6px;color:var(--muted);font-size:12px}.card-studio-image-source-help{margin:-3px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.card-studio-image-source-options{display:flex;flex-wrap:wrap;gap:6px}@media (prefers-reduced-motion:reduce){.card-studio-card-rotor{transition-duration:.01ms}}.card-studio-card{position:relative;container-type:inline-size;width:min(100%,430px);overflow:hidden;border:1px solid #9b9a92;border-radius:8px;box-shadow:0 16px 32px #0006}.card-studio-element{position:absolute;display:flex;box-sizing:border-box;white-space:pre-wrap}.card-studio-element--editable{cursor:pointer;outline:1px dashed #536a85}.card-studio-element--selected{outline:2px solid #2dc9aa}.card-studio-value{overflow:hidden;width:100%;white-space:pre-wrap}.card-studio-placeholder{align-self:center;margin:auto;color:#667080;font-size:10px}.card-studio-fallback{position:absolute;right:2px;bottom:2px;color:#735319;background:#ffeab6dd;font-size:8px}@media (max-width:1000px){.card-studio-integrated,.card-studio-integrated--template{grid-template-columns:minmax(0,1fr)}.card-studio-preview-area{grid-row:1}.card-studio-editor-sidebar{max-height:none;overflow:visible}.card-studio-editor-layout{grid-template-columns:minmax(140px,190px) minmax(220px,1fr)}.card-studio-inspector{grid-column:1/-1}.card-studio-field-row{grid-template-columns:repeat(2,minmax(120px,1fr))}}.deck-guard-dialog{width:min(580px,90vw);border:1px solid #6485a1;border-radius:14px;background:#122337;color:#edf4fa;padding:24px;box-shadow:0 20px 70px #0009}.deck-guard-dialog::backdrop{background:#020814c9}.deck-draft-toolbar button,.deck-filter-chip,.deck-filters button,.deck-guard-dialog button{padding:8px 12px;border:1px solid #51728e;border-radius:6px;background:#163550;color:#eef7ff;cursor:pointer}.deck-draft-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #405c77;border-radius:10px;margin:12px 0}.deck-draft-toolbar p{flex-basis:100%;margin:0;font-size:12px;color:#b8cadc}.deck-draft-toolbar button:disabled{opacity:.45;cursor:default}.deck-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:10px 0}.deck-filters label{flex:1 1 120px;font-size:12px}.deck-filters select{width:100%;max-width:220px}.manual-match-deck-sections h4 button{background:transparent;color:inherit;border:0;cursor:pointer;text-align:left;padding:4px}.manual-match-deck-sections h4 button[aria-pressed=true]{outline:2px solid #73caff;border-radius:4px}.leader-source-summary{border-top:1px solid #47627b;margin-top:10px}.leader-source-summary h4{margin-bottom:4px}