:root{color-scheme:dark;--bg:#020204;--panel:#08080c;--panel2:#0c0c13;--line:#20202d;--muted:#747489;--text:#f4f4f7;--pink:#ff2a68;--cyan:#00f0ff;--gold:#ffd05a}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:radial-gradient(circle at 50% 18%,#100914 0,#040407 38%,#020204 70%);color:var(--text);font-family:"Yu Gothic",Meiryo,system-ui,sans-serif;min-height:100vh}
main{width:min(100%,504px);margin:0 auto;padding:12px 12px 48px}
.game-shell{position:relative;padding:10px;border:1px solid #171720;border-radius:0;background:linear-gradient(180deg,rgba(10,10,16,.98),rgba(3,3,6,.99));box-shadow:0 28px 80px rgba(0,0,0,.7)}
.game-header{min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.72)}
.game-header h1{margin:0;color:var(--pink);font-family:Georgia,"Yu Mincho",serif;font-size:12px;line-height:1.3;letter-spacing:.04em}
.game-header h1 span{color:#fff}.game-header p{margin:2px 0 0;color:#555566;font-size:8px;letter-spacing:.16em}
.game-header nav{display:flex;gap:6px}.game-header a{display:grid;place-items:center;width:42px;height:30px;border:1px solid #29293a;border-radius:5px;background:#080810;color:#9999aa;text-decoration:none;font-size:8px;font-weight:900;letter-spacing:.08em}
.status-line{display:flex;justify-content:space-between;align-items:center;margin:8px 0 6px;padding:0 3px;color:#545464;font-size:8px;letter-spacing:.12em}.status-line span{color:#9a6680}.status-line b{color:#525268}
.hud{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0 0}
.hud>div,.hud>button{min-width:0;min-height:48px;padding:7px 8px;border:1px solid var(--line);border-radius:6px;background:#030306;color:#fff;text-align:center}
.hud>div:nth-child(4),.hud>div:nth-child(5){min-height:38px}.hud>button{min-height:38px;cursor:pointer;color:#9090a0;font-size:10px}
.hud span{display:block;overflow:hidden;color:#606070;font-size:8px;font-weight:700;white-space:nowrap}.hud strong{display:block;margin-top:2px;color:#fff;font-family:Consolas,monospace;font-size:16px;line-height:1;text-shadow:0 0 9px rgba(0,240,255,.3)}
.hud>div:nth-child(2) strong{color:#49ff7c}.hud>div:nth-child(3) strong{color:var(--cyan)}.hud>div:nth-child(5) strong{color:var(--pink)}
.machine-wrap{display:flex;justify-content:center;padding:3px;border:1px solid #242432;border-radius:10px;background:#07070b}
.machine{position:relative;flex:none;width:100%;max-width:458px;min-width:0;aspect-ratio:2/3;overflow:hidden;border:1px solid #393346;border-radius:8px;box-shadow:0 0 0 3px #09090e,0 0 22px rgba(255,42,104,.12)}
.machine>img,.machine>canvas{position:absolute;inset:0;width:100%;height:100%}.machine>img{object-fit:cover}.machine canvas{z-index:3;pointer-events:none;touch-action:none}
.message{position:absolute;z-index:4;left:50%;top:38%;transform:translate(-50%,-50%);width:max-content;max-width:82%;padding:8px 14px;border:1px solid rgba(255,255,255,.16);border-radius:5px;background:rgba(2,2,5,.86);font-size:12px;font-weight:900;text-align:center;pointer-events:none;opacity:1;transition:opacity .25s}.message.hide{opacity:0}
.controls{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.power{display:block;padding:8px 10px 5px;border:1px solid var(--line);border-radius:6px;background:#050509}.power span{display:flex;justify-content:space-between;color:#777788;font-size:8px;font-weight:800;letter-spacing:.1em}.power strong{color:var(--pink)!important;font-family:Consolas,monospace;font-size:11px}.power input[type="range"]{width:100%;height:22px;margin:3px 0 0;accent-color:var(--pink)}
.action-row{display:grid;grid-template-columns:72px 1fr 72px;gap:7px;align-items:end}.action-row button{height:52px;border-radius:7px;font-weight:900;cursor:pointer}.action-row button span{display:block;margin-bottom:2px;font-size:8px;letter-spacing:.12em}
.launch{border:1px solid rgba(255,255,255,.2);background:linear-gradient(100deg,#ed2637,#e92577 48%,#555cff);color:#fff;font-size:14px;letter-spacing:.06em;box-shadow:0 8px 22px rgba(233,37,119,.26);transform:translateY(-3px)}.launch:active{transform:translateY(0)!important}.launch:disabled{opacity:.4;cursor:not-allowed}
.auto-launch,.sub{border:1px solid #272738;background:#0c0c16;color:#9292a6;font-size:10px}.auto-launch{padding:0 7px}.auto-launch[aria-pressed="true"]{border-color:#1f80b0;background:#092237;color:#7eeeff;box-shadow:0 0 14px rgba(0,240,255,.18)}
.idol-spin{display:none!important}.control-help{margin:0;color:#474758;font-size:8px;text-align:center;letter-spacing:.05em}
.machine-footer{display:flex;justify-content:space-between;margin-top:12px;padding:6px 4px 0;border-top:1px solid #111118;color:#34343f;font-size:7px;letter-spacing:.1em}
.guide{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:8px;background:#08080c;color:#aaaaba;font-size:13px;line-height:1.8}.guide h2{margin:24px 0 8px;padding-left:10px;border-left:3px solid var(--pink);color:#fff;font-size:16px}.guide h2:first-child{margin-top:0}.guide ol{padding-left:20px}.related{display:grid;gap:7px;margin-top:18px}.related a{padding:9px 10px;border:1px solid var(--line);border-radius:5px;color:#b8b8c8;text-decoration:none;font-size:11px}
@media(max-width:520px){main{padding:0 0 36px}.game-shell{padding:8px;border-left:0;border-right:0}.game-header{border-radius:6px}.machine{border-radius:6px}.guide{margin:14px 8px 0}.hud>div,.hud>button{padding-left:4px;padding-right:4px}}
@media(max-width:370px){.hud{grid-template-columns:repeat(2,1fr)}.action-row{grid-template-columns:62px 1fr 62px}.game-header a{width:36px}}
