:root{--paper:#fffdf5;--ink:#4d453a;--green:#617d68;--line:#dfd9c9;--muted:#918b7d;--purple:#8c779d}*{box-sizing:border-box}body{margin:0;background:#eeeada;color:var(--ink);font:14px/1.65,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}button,input,select{font:inherit}button,select{cursor:pointer}button{border:1px solid #d9cfbc;background:var(--paper);border-radius:13px;padding:10px 13px;color:var(--ink);font-weight:600;box-shadow:0 2px 0 #d1c9b43d}button:hover{background:#f5efdf}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a0b6af;outline-offset:3px}.topbar{display:flex;align-items:center;gap:18px;padding:20px 28px;background:#fffbf0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.paw{display:grid;place-items:center;background:#6e8972;border-radius:20px 15px 22px 14px;color:white;width:52px;height:52px;font-size:26px;transform:rotate(-7deg)}h1{font-size:22px;letter-spacing:.06em;margin:2px 0 0}.brand small{font-size:10px;letter-spacing:.15em;color:#a19075}.private-badge{background:#ede8f2;color:#7c678d;border:1px solid #d5c9e0;border-radius:20px;padding:5px 12px;font-size:12px;white-space:nowrap}.header-actions{display:flex;gap:8px;margin-left:auto}.header-actions button{font-size:12px}main{display:grid;grid-template-columns:330px minmax(0,1fr);gap:19px;padding:22px;max-width:1920px;margin:auto}.notebook{background:var(--paper);border:1px solid var(--line);border-radius:23px;box-shadow:0 7px 20px #65583d09;overflow:hidden;align-self:start;max-height:calc(100dvh - 145px);overflow-y:auto}.connection{padding:20px;background:#f1f3e8}.connection>div{display:flex;align-items:center;gap:8px}.connection b{font-size:14px}#lamp{width:9px;height:9px;background:#c2b08b;border-radius:50%;flex:none}#lamp.connected{background:#83a286;box-shadow:0 0 0 4px #83a28620}.connection p{font-size:12px;margin:10px 0}.connection small{display:block;font-size:10px;line-height:1.8;color:#87917e;margin-top:10px}.connection label{font-size:11px;display:block;color:#7a8575}select,input[type=number]{width:100%;border:1px solid #dcd6c7;background:white;border-radius:9px;padding:8px 10px;color:var(--ink);min-width:0}.connection select{font-size:12px;margin-top:4px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:13px 13px 0}.tabs button{border-color:transparent;box-shadow:none;font-size:12px;padding:9px 4px;background:transparent;border-radius:12px}.tabs button.active{background:#6e8972;color:white}.empty{color:var(--muted);padding:20px}#editor{padding:18px}#editor h2{font-size:18px;margin:0 0 4px}#editor h3{font-size:13px;margin:20px 0 8px}#editor p.help{font-size:11px;color:var(--muted);margin:4px 0 14px}form label,.field label{display:block;font-size:11px;margin-bottom:4px;color:#837562}.fields{display:grid;grid-template-columns:1fr 1fr;gap:11px 12px}.field.full{grid-column:1/-1}.field input,.field select{height:38px;font-size:13px}.apply{background:#6e8972;color:white;border-color:#6e8972;width:100%;margin-top:15px}.apply:hover{background:#5e7862}.quick-tools{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.quick-tools button{font-size:11px;padding:8px 10px;background:#f6f2e5}.check{display:flex!important;align-items:center;gap:8px;background:#f4f3e8;padding:10px;border-radius:10px}.check input{height:auto}.item-controls{display:grid;grid-template-columns:1fr 72px;gap:8px;margin-top:10px}.scenario-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.scenario-grid button{text-align:left;min-height:82px;padding:11px;background:#fcf9f1;font-size:12px}.scenario-grid button small{display:block;color:#9a8c76;font-weight:400;font-size:10px;margin-top:4px}.scenario-grid .sensitive{background:#f3edf5;border-color:#dbd1e2}.notebook-footer{padding:0 18px 18px}.notebook-footer>button{width:100%;border-style:dashed;background:#fff9eb}.notebook-footer details{margin-top:13px;color:#9b8c76;font-size:11px}.notebook-footer details p{line-height:1.9}.game-column{min-width:0;align-self:start}.game-caption{display:flex;gap:12px;align-items:center;padding:0 3px 13px}.game-caption>div{margin-right:auto}.eyebrow{display:block;letter-spacing:.2em;font-size:9px;color:#a19075}.game-caption b{font-size:14px}.game-caption button{font-size:11px;padding:7px 10px}.test-chip{background:#e3ece5;color:#6c8371;font-size:10px;white-space:nowrap;border-radius:20px;padding:5px 9px}.game-frame-wrap{border:8px solid #fffbf1;border-radius:24px;overflow:hidden;box-shadow:0 8px 25px #73603d15;background:#faf7ed}iframe{width:100%;height:max(660px,calc(100dvh - 245px));border:0;display:block}#notice{margin:10px 6px;color:#7f8371;font-size:12px}#notice.error{color:#9f6058}.log-list{list-style:none;padding:0;margin:12px 0}.log-list li{font-size:11px;padding:11px 0;border-bottom:1px dashed var(--line)}.log-list small{display:block;color:#a4947b;margin-bottom:3px}.fullgame main{grid-template-columns:1fr}.fullgame .notebook{display:none}.fullgame iframe{height:calc(100dvh - 230px)}.scenario-section{margin-top:20px}.data-note{background:#f2edf6;padding:10px;border-radius:12px;color:#8e7a9f;font-size:11px;margin-top:12px}.stat-summary{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.stat-summary span{background:#f1efdf;border-radius:15px;padding:3px 8px;font-size:11px}@media(max-width:1100px){.topbar{padding:14px;flex-wrap:wrap;gap:10px}.brand h1{font-size:18px}.header-actions{margin-left:0}.private-badge{margin-left:auto}main{padding:12px;gap:12px;grid-template-columns:295px minmax(0,1fr)}.notebook{max-height:calc(100dvh - 180px)}.game-caption{flex-wrap:wrap;gap:7px}.test-chip{display:none}.game-caption b{font-size:12px}}@media(max-width:760px){main{display:block}.notebook{max-height:420px;margin-bottom:18px}.game-caption b{font-size:14px}.header-actions button{font-size:10px;padding:8px}.game-frame-wrap{border-width:4px;border-radius:15px}iframe{height:650px}}

.tabs{position:sticky;top:0;background:var(--paper);z-index:2}
