body{background:#edf1f3;color:#18242d}.demo-header{height:78px;padding:0 max(24px,calc((100% - 1400px)/2));background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe5e8}.demo-header img{width:134px;height:58px;object-fit:contain}.demo-header nav{display:flex;gap:28px;font-size:.95rem}.demo-app{max-width:1448px;margin:auto;padding:40px 24px}.demo-title{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.demo-kicker{font:700 .75rem ChillDIN,sans-serif;letter-spacing:.16em;color:#637b8c}.demo-title h1{font-size:clamp(1.8rem,3vw,2.8rem);margin:10px 0 12px;line-height:1.3}.demo-title p{color:#63727c;font-size:1rem;line-height:1.65;margin:0}.model-switch{display:flex;background:#dfe6ea;border-radius:8px;padding:4px;flex-shrink:0}.model-switch button{font:700 1rem ChillDIN,sans-serif;min-width:110px;min-height:44px;border:0;background:none;cursor:pointer;border-radius:5px}.model-switch button[aria-pressed=true]{background:#263e4e;color:#fff;box-shadow:0 2px 6px #15293622}.demo-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.screen-tools{display:flex;flex-wrap:wrap;gap:8px}.demo-toolbar button,.bank-controls button,.event-panel button{border:1px solid #cdd8df;background:#fff;border-radius:6px;padding:10px 14px;font-size:.9rem;cursor:pointer}.demo-toolbar button:hover,.bank-controls button:hover{border-color:#3b8fb9;color:#227ca6}.workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:20px;align-items:stretch}.device-panel{padding:30px 16px 18px;background:radial-gradient(ellipse at 50% 36%,#385463,#263e4e 52%,#152936);border-radius:12px;display:flex;flex-direction:column;justify-content:center;min-width:0}.device-stage{position:relative;width:100%;margin:auto}.device-stage>img{width:100%;height:auto}.device-stage canvas{image-rendering:pixelated;position:absolute;left:35.79%;top:26.44%;width:28.08%;height:47.66%;touch-action:none}.device-stage[data-model="6"] canvas{left:35.96%;top:34.24%;width:27.82%;height:31.32%}.foot-hit{position:absolute;left:var(--x);top:var(--y);width:10%;aspect-ratio:1;border:0;background:transparent;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer;touch-action:none;color:transparent;font-size:0}.foot-hit:hover,.foot-hit:focus-visible{outline:2px solid #98deff;outline-offset:2px}.foot-hit.is-down{box-shadow:0 0 0 4px #8edcf880,0 0 28px #51d3ff70;background:#90d5ff22}.bank-controls{display:flex;justify-content:center;gap:12px;margin-top:16px}.bank-controls button{font-family:ChillDIN,sans-serif;background:#ffffff10;border-color:#aac5d333;color:#e3eef5}.device-help{margin:16px 0 0;text-align:center;color:#b9cbd5;font-size:.875rem;line-height:1.6}.screen-panel{background:#fff;border:1px solid #dce4e9;border-radius:12px;padding:24px;display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0}.screen-panel-heading{display:flex;justify-content:space-between;align-items:center;width:100%;gap:12px}.screen-panel h2,.demo-bottom h2{font-size:1.1rem;margin:0}.screen-panel-heading span{font-size:.8rem;color:#527588}.lcd-frame{background:#0c1115;padding:12px;border-radius:9px;box-shadow:0 10px 25px #1c304b18;max-width:100%}.lcd-frame canvas{display:block;width:288px;max-width:100%;height:auto;touch-action:none;cursor:pointer;background:black;image-rendering:pixelated}.screen-panel[data-model="6"] .lcd-frame canvas{width:384px}.screen-panel>p{max-width:380px;font-size:.875rem;line-height:1.75;color:#73818b;margin:0}.runtime-state{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;font:500 .9rem ChillDIN,sans-serif}.demo-only{font-family:"HanChan Gothic",sans-serif;color:#69818f;font-size:.8rem}#loop-status{display:flex;gap:12px;font:500 .8rem ChillDIN,sans-serif}#loop-status[hidden]{display:none}#loop-status span{padding:7px 12px;border-radius:5px;background:#e9eef1;color:#617683}#loop-status span.on{background:#d5f1e1;color:#257348}.demo-bottom{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.try-guide,.event-panel{background:#fff;border:1px solid #dce4e9;border-radius:10px;padding:24px}.try-guide ol{padding-left:22px;color:#5b6e7b;font-size:.95rem;line-height:1.8;margin:16px 0 20px}.expression-control{display:block;border-top:1px solid #e1e7eb;padding-top:16px;font-size:.9rem}.expression-control output{float:right;font:700 1rem ChillDIN,sans-serif}.expression-control input{display:block;width:100%;margin-top:16px;accent-color:#347dd1}.event-panel>div{display:flex;justify-content:space-between;align-items:center}.event-panel button{padding:5px 10px;font-size:.8rem}.event-panel ol{list-style:none;padding:0;margin:14px 0 0;max-height:260px;overflow:auto;min-height:140px;font:400 .9rem ChillDIN,"HanChan Gothic",sans-serif}.event-panel li{padding:10px 0;border-bottom:1px solid #e8edf0;line-height:1.5}.event-panel time{color:#9aa7ae;margin-right:12px;font-size:.8rem}.event-panel .empty-log{color:#8c9aa4;font-family:"HanChan Gothic",sans-serif}.demo-disclaimer{color:#7b8a94;font-size:.85rem;line-height:1.8;margin:24px 0 0}.demo-footer{display:flex;justify-content:space-between;gap:24px;padding:24px max(24px,calc((100% - 1400px)/2));border-top:1px solid #dbe3e8;color:#718491;background:#e6ecef;font:400 .85rem ChillDIN,"HanChan Gothic",sans-serif}.demo-app button:focus-visible{outline:3px solid #347dd166;outline-offset:3px}[hidden]{display:none!important}@media(max-width:980px){.workspace{grid-template-columns:1fr 1fr}.device-panel{padding:20px 8px}.screen-panel{padding:18px}.demo-title{align-items:flex-start}.model-switch button{min-width:95px}.device-help{font-size:.8rem}.bank-controls{gap:6px}.bank-controls button{padding:9px;font-size:.8rem}}@media(max-width:700px){.demo-header{height:66px;padding:0 18px}.demo-header img{width:110px}.demo-app{padding:28px 16px}.demo-title{flex-direction:column}.demo-toolbar{align-items:flex-start}.demo-toolbar button{font-size:.8rem;padding:9px 10px}.workspace{display:flex;flex-direction:column}.screen-panel{order:-1}.lcd-frame canvas{width:240px}.screen-panel[data-model="6"] .lcd-frame canvas{width:320px}.screen-panel>p{font-size:.85rem}.device-panel{padding:20px 14px}.demo-bottom{grid-template-columns:1fr}.demo-header nav{gap:18px;font-size:.85rem}.screen-panel-heading h2{font-size:1rem}}
.operation-help{margin-top:20px;padding:22px 26px;background:#e2edf2;border:1px solid #c8dce5;border-left:4px solid #347dd1;border-radius:10px;min-height:128px}.operation-help>span{font-size:.8rem;color:#54798d}.operation-help h2{font-size:1.2rem;margin:8px 0}.operation-help p{margin:0;color:#476474;line-height:1.8;font-size:.95rem}
.workspace{grid-template-columns:minmax(0,1.45fr) minmax(340px,1fr)}.screen-panel>.operation-help{width:100%;margin:0;padding:16px 18px;min-height:138px;background:#f2f6f8;border:1px solid #e0e8ed;border-left:3px solid #347dd1;border-radius:7px;text-align:left}.operation-help>span{display:block;font-size:.75rem;color:#708591}.operation-help h2{font-size:1rem;line-height:1.5;margin:6px 0}.operation-help p{font-size:.875rem;line-height:1.8;color:#5b7180}@media(max-width:980px){.workspace{grid-template-columns:minmax(0,1fr) minmax(300px,1fr)}}@media(max-width:700px){.workspace{display:flex}.screen-panel>.operation-help{min-height:126px;padding:14px 16px}.screen-panel{order:-1}}

.screen-size-button{border:1px solid #cdd8df;background:#fff;border-radius:5px;padding:6px 8px;font-size:.75rem;color:#527588;cursor:pointer;white-space:nowrap}.screen-panel-heading{flex-wrap:wrap}
