:root{--bg:#121214;--surface:#1c1c21;--surface-hover:#26262d;--border:#2e2e36;--text:#f4f4f6;--text-muted:#9ca3af;--accent:#f97316;--accent-hover:#ea580c}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);flex-direction:column;min-height:100vh;font-family:system-ui,-apple-system,sans-serif;display:flex}.topbar{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;height:56px;padding:0 24px;display:flex}.logo{letter-spacing:.08em;color:var(--accent);font-weight:800}.breadcrumb{color:var(--text-muted);font-size:.85rem}#app{flex-direction:column;flex:1;display:flex}button{font:inherit;cursor:pointer;border:none;border-radius:8px}.btn-primary{background:var(--accent);color:#fff;padding:12px 24px;font-weight:600;transition:background .15s}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--surface-hover);color:var(--text);border:1px solid var(--border);padding:10px 18px}.credits-badge{border:1px solid var(--accent);color:var(--accent);background:#f9731626;border-radius:99px;padding:5px 12px;font-size:.85rem;font-weight:700}.wizard-container{width:100%;max-width:820px;margin:60px auto;padding:0 20px}.wizard-title{margin-bottom:8px;font-size:1.8rem}.wizard-subtitle{color:var(--text-muted);margin-bottom:32px}.cards-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;display:grid}.choice-card{background:var(--surface);border:2px solid var(--border);text-align:left;color:var(--text);border-radius:12px;padding:28px 24px;transition:border-color .15s,transform .15s;position:relative}.choice-card:hover:not(.locked){border-color:var(--accent);transform:translateY(-2px)}.choice-card.locked{opacity:.45;cursor:not-allowed}.choice-card h3{margin-bottom:8px;font-size:1.25rem}.choice-card p{color:var(--text-muted);font-size:.92rem;line-height:1.4}.badge-soon{background:var(--border);border-radius:99px;padding:3px 8px;font-size:.75rem;position:absolute;top:14px;right:14px}.config-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:20px;padding:28px;display:flex}.form-group{flex-direction:column;gap:8px;display:flex}.form-group label{color:var(--text-muted);font-size:.9rem}.form-group select,.form-group input{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:10px 14px;font-size:1rem}.wizard-actions{justify-content:space-between;margin-top:24px;display:flex}.mobile-only-notice{background:var(--surface);border:1px solid var(--border);color:var(--text-muted);border-radius:10px;margin-bottom:20px;padding:14px 16px;font-size:.9rem;display:none}@media (width<=768px){.desktop-only-card{display:none!important}.mobile-only-notice{display:block}}.studio-layout{flex:1;grid-template-columns:300px 1fr;height:calc(100vh - 56px);display:grid}.studio-sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:18px;padding:20px;display:flex;overflow-y:auto}.studio-sidebar h2{border-bottom:1px solid var(--border);padding-bottom:10px;font-size:1.05rem}.control-row{flex-direction:column;gap:6px;font-size:.88rem;display:flex}.control-row.checkbox{cursor:pointer;flex-direction:row;align-items:center;gap:10px}.control-row select,.control-row input[type=range]{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px}.studio-workspace{background:#0b0b0d;justify-content:center;align-items:flex-start;padding:36px;display:flex;overflow:auto}.sheet{color:#111;background:#fff;flex-direction:column;flex-shrink:0;display:flex;overflow:hidden;box-shadow:0 20px 50px #0009}.sheet.A4{width:210mm;height:297mm}.sheet.KDP_6x9{width:152.4mm;height:228.6mm}.sheet-header{border-bottom:1.5px solid #222;flex-shrink:0;justify-content:space-between;margin-bottom:10px;padding-bottom:5px;font-size:10pt;font-weight:700;display:flex}.puzzles-grid{flex:1;grid-auto-rows:minmax(0,1fr);place-items:center;gap:10px;min-height:0;display:grid}.puzzle-cell{flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;height:100%;min-height:0;display:flex}.puzzle-cell svg{object-fit:contain;flex:1;min-height:0;width:auto!important;max-width:100%!important;max-height:100%!important}.puzzle-label{color:#333;flex-shrink:0;font-size:8.5pt;font-weight:600}.puzzle-cell.bordered{border:1px solid #d4d4d8;border-radius:6px;padding:6px}.duel-container{width:100%;max-width:960px;margin:20px auto;padding:0 16px 40px}.duel-topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.duel-stage{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;align-items:center;gap:16px;margin-top:20px;padding:20px;display:flex}.duel-stage-header{justify-content:space-between;align-items:center;width:100%;font-size:1.05rem;font-weight:700;display:flex}.timer-pill{background:var(--bg);border:1px solid var(--border);font-variant-numeric:tabular-nums;color:var(--accent);border-radius:99px;padding:6px 14px}.board-wrapper{justify-content:center;width:100%;display:flex}.board-wrapper svg{touch-action:none;background:#fff;border-radius:10px;width:100%;max-width:min(560px,88vw);height:auto;max-height:68vh}.recap-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;width:100%;margin-top:12px;display:grid}.recap-card{background:var(--bg);border:1px solid var(--border);border-radius:10px;flex-direction:column;align-items:center;gap:10px;padding:14px;display:flex}.recap-card svg{background:#fff;border-radius:8px;max-width:240px}.vote-buttons{flex-wrap:wrap;justify-content:center;gap:14px;width:100%;margin-top:16px;display:flex}
