*{box-sizing:border-box}html,body,#app{color:#fff;background:#1b1f2a;width:100%;height:100%;margin:0;font-family:system-ui,Hiragino Sans,Yu Gothic UI,Meiryo,sans-serif;overflow:hidden}button{font:inherit;cursor:pointer}.title-screen{text-align:center;background:linear-gradient(#5a8fd6,#2b4a7a 60%,#1b1f2a);height:100%;padding:48px 24px;overflow-y:auto}.logo{letter-spacing:4px;text-shadow:4px 4px #1b2a44;margin:0;font-size:64px}.tagline{opacity:.85;margin:8px 0 24px}.name-field{align-items:center;gap:8px;margin-bottom:18px;display:inline-flex}.name-input{color:#fff;font:inherit;background:#0a101e99;border:1px solid #556;border-radius:6px;width:180px;padding:6px 10px}.world-list{gap:14px;max-width:640px;margin:0 auto;display:grid}.world-card{text-align:left;background:#0a101e99;border:2px solid #ffffff26;border-radius:10px;grid-template-columns:1fr auto;gap:4px 16px;padding:16px 20px;display:grid}.world-name{font-size:20px;font-weight:700}.world-desc{opacity:.75;grid-column:1;font-size:14px}.world-buttons{grid-area:1/2/span 2;align-items:center;gap:8px;display:flex}.world-buttons button{color:#fff;background:#4caf50;border:0;border-radius:6px;padding:10px 18px;font-weight:700}.world-buttons .reset{background:#6b3a3a}.section{text-align:left;opacity:.85;max-width:640px;margin:22px auto 10px;font-size:16px}.world-card.multi{max-width:640px;margin:0 auto}.addr-input,.pass-input{color:#fff;font:inherit;background:#0a101e99;border:1px solid #556;border-radius:6px;width:200px;padding:9px 10px}.pass-input{width:130px}.pack-info{opacity:.6;margin-top:24px;font-size:13px}.loading{text-align:center;place-items:center;height:100%;font-size:20px;display:grid}.game{width:100%;height:100%;position:relative}.game canvas{display:block}.hud{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0}.hidden{display:none!important}.crosshair{mix-blend-mode:difference;width:18px;height:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.crosshair:before,.crosshair:after{content:"";background:#fff;position:absolute}.crosshair:before{width:2px;height:18px;top:0;left:8px}.crosshair:after{width:18px;height:2px;top:8px;left:0}.crosshair.hit,.crosshair.kill{mix-blend-mode:normal;animation:.35s ease-out hitmark;transform:translate(-50%,-50%)rotate(45deg)}.crosshair.kill{animation-duration:.7s}.crosshair.hit:before,.crosshair.hit:after,.crosshair.kill:before,.crosshair.kill:after{background:#ff1744;box-shadow:0 0 3px #000}@keyframes hitmark{0%{transform:translate(-50%,-50%)rotate(45deg)scale(1.5)}to{transform:translate(-50%,-50%)rotate(45deg)scale(1)}}.debug{background:#0006;padding:4px 8px;font:12px monospace;display:none;position:absolute;top:8px;left:8px}.debug.show{display:block}.hud-panel{background:#00000073;border-radius:6px;min-width:160px;padding:8px 14px;display:none;position:absolute;top:12px;right:12px}.hud-line{text-shadow:1px 1px #000;font-size:15px;line-height:1.6}.chat-log{flex-direction:column;gap:2px;max-width:60%;display:flex;position:absolute;bottom:90px;left:12px}.chat-line{text-shadow:1px 1px #000;background:#00000073;padding:3px 8px;font-size:14px;transition:opacity 1s}.chat-line.fade{opacity:0}.chat-input{pointer-events:auto;color:#fff;background:#000000b3;border:1px solid #888;outline:none;padding:8px 10px;font-size:15px;position:absolute;bottom:60px;left:12px;right:12px}.big-title{text-align:center;opacity:0;transition:opacity .3s;position:absolute;top:28%;left:0;right:0}.big-title.show{opacity:1}.big-title-main{text-shadow:3px 3px #000;font-size:56px;font-weight:900}.big-title-sub{text-shadow:2px 2px #000;margin-top:6px;font-size:22px}.break-bar{background:#00000080;width:60px;height:5px;display:none;position:absolute;top:calc(50% + 22px);left:50%;transform:translate(-50%)}.break-fill{background:#fff;width:0;height:100%}.item-name{text-align:center;text-shadow:1px 1px #000;opacity:0;transition:opacity .3s;position:absolute;bottom:88px;left:0;right:0}.item-name.show{opacity:1}.hotbar{background:#00000073;border-radius:4px;gap:2px;padding:3px;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.slot{background:#0000004d;border:2px solid #ffffff40;place-items:center;width:44px;height:44px;display:grid;position:relative}.slot.selected{border-color:#fff;box-shadow:inset 0 0 0 2px #000}.slot .icon{width:32px;height:32px;image-rendering:pixelated}.slot .count{text-shadow:1px 1px #000;font-size:13px;font-weight:700;position:absolute;bottom:1px;right:3px}.modal{pointer-events:auto;background:#0000008c;place-items:center;display:grid;position:absolute;inset:0}.panel{background:#2a3040;border:2px solid #555f78;border-radius:10px;max-width:90vw;max-height:85vh;padding:18px 22px;overflow-y:auto}.panel h2{margin:0 0 12px;font-size:18px}.panel .desc{opacity:.8;white-space:pre-line;margin:0 0 12px}.panel .grid{grid-template-columns:repeat(9,44px);gap:3px;display:grid}.panel .grid.palette{grid-template-columns:repeat(9,44px);max-height:45vh;overflow-y:auto}.panel .grid .slot{cursor:pointer}.panel .grid .slot:hover{border-color:#ffd54f}.panel .label{opacity:.8;margin:14px 0 6px;font-size:13px}.panel .hint{opacity:.6;margin-top:12px;font-size:12px}.choices{flex-direction:column;gap:6px;min-width:260px;display:flex}.choice{color:#fff;text-align:left;background:#3f6fd8;border:0;border-radius:6px;padding:10px 14px;font-size:15px}.choice:hover{background:#5a86ea}.choice.cancel{text-align:center;background:#555}.pause{pointer-events:auto;cursor:pointer;background:#00000080;place-items:center;display:grid;position:absolute;inset:0}.pause-box{text-align:center}.pause-box h1{margin:0 0 6px}.pause-box .keys{opacity:.85;margin:18px auto;font-size:14px;line-height:1.8}.title-btn{color:#fff;background:#6b3a3a;border:0;border-radius:6px;padding:10px 18px}.inventory-panel{align-items:flex-start;gap:22px;display:flex}.craft-col{border-left:1px solid #555f78;width:380px;padding-left:20px}.craft-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.craft-head h2{margin:0}.craft-toggle{cursor:pointer;opacity:.85;align-items:center;gap:4px;font-size:13px;display:flex}.craft-list{flex-direction:column;gap:4px;max-height:52vh;padding-right:4px;display:flex;overflow-y:auto}.craft-row{cursor:pointer;background:#343b4f;border-radius:6px;align-items:center;gap:10px;padding:6px 8px;display:flex}.craft-row:hover{background:#46507a}.craft-row.disabled{opacity:.45}.craft-row.disabled:hover{background:#3a4055}.slot.small{flex:none;width:40px;height:40px}.craft-body{flex:1;min-width:0}.craft-name{font-size:14px;font-weight:700}.craft-ing{flex-wrap:wrap;gap:4px;margin-top:3px;display:flex}.chip{background:#0000004d;border-radius:4px;align-items:center;gap:3px;padding:1px 6px 1px 3px;font-size:12px;display:inline-flex}.chip.lack{color:#ff9c9c}.chip.station{padding-left:6px}.chip-icon{width:16px;height:16px;image-rendering:pixelated;display:inline-block}.craft-times{opacity:.8;font-size:13px}.craft-empty{opacity:.6;padding:8px;font-size:14px}.touch-mode{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.touch-layer{touch-action:none;position:absolute;inset:0}.touch-pad{left:calc(18px + env(safe-area-inset-left));grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);gap:4px;width:168px;height:168px;display:grid;position:absolute;bottom:18px}.touch-cell{color:#ffffffd9;background:#ffffff29;border:2px solid #ffffff47;border-radius:8px;place-items:center;font-size:20px;display:grid}.touch-cell.diag{background:0 0;border-color:#0000}.touch-cell.cell-c{border-radius:50%;font-size:14px}.touch-cell.toggled{background:#ffd54f73;border-color:#ffd54f}.touch-cell.on{background:#ffffff6b}.touch-cell.diag.on{background:#ffffff2e}.touch-btn{color:#fff;background:#ffffff29;border:2px solid #ffffff4d;border-radius:50%;place-items:center;font-size:30px;display:grid}.touch-btn.on{background:#ffffff6b}.touch-jump{right:calc(28px + env(safe-area-inset-right));width:76px;height:76px;position:absolute;bottom:40px}.touch-top{left:calc(10px + env(safe-area-inset-left));gap:8px;display:flex;position:absolute;top:10px}.touch-btn.small{border-radius:10px;width:44px;height:44px;font-size:18px}.touch-mode .hotbar{pointer-events:auto}.touch-mode .slot.more{color:#fff;font-size:24px}.touch-mode .chat-log{max-width:45%;top:64px;bottom:auto}.touch-mode .chat-input{font-size:16px;top:10px;bottom:auto}.touch-mode .debug{top:62px}.touch-mode .pause-box .keys{padding:0 16px;font-size:13px}@media (height<=500px),(width<=700px){.slot{width:38px;height:38px}.slot .icon{width:26px;height:26px}.panel{max-height:92vh;padding:12px 14px}.panel .grid,.panel .grid.palette{grid-template-columns:repeat(9,38px)}.panel .grid.palette{max-height:38vh}.inventory-panel{gap:12px}.craft-col{width:300px;padding-left:12px}.craft-list{max-height:60vh}.big-title-main{font-size:36px}.big-title-sub{font-size:16px}.hud-panel{min-width:0;padding:5px 10px}.hud-line{font-size:13px}.touch-pad{width:144px;height:144px;bottom:12px}.touch-jump{width:66px;height:66px;bottom:28px}.touch-mode .hotbar .slot{width:34px;height:34px}.touch-mode .hotbar .slot .icon{width:24px;height:24px}}@media (orientation:portrait) and (pointer:coarse){.touch-mode .pause-box p:after{content:"　※ 横向きにすると遊びやすくなります";color:#ffd54f;margin-top:4px;display:block}.touch-mode .hotbar{bottom:200px}}.craft-all{color:#fff;font:inherit;background:#3f6fd8;border:0;border-radius:6px;flex:none;padding:6px 10px;font-size:13px}.hearts{gap:1px;display:none;position:absolute;bottom:62px;left:50%;transform:translate(-50%)}.heart{width:16px;height:16px;image-rendering:pixelated;clip-path:polygon(50% 100%,6% 55%,0 30%,8% 8%,28% 0,50% 18%,72% 0,92% 8%,100% 30%,94% 55%);background:linear-gradient(90deg,#3a1010 50% 50%);box-shadow:inset 0 0 0 2px #000}.heart.full{background:#e53935}.heart.half{background:linear-gradient(90deg,#e53935 50%,#3a1010 50%)}.hearts.low .heart{animation:.5s infinite heart-shake}@keyframes heart-shake{0%,to{transform:translateY(0)}50%{transform:translateY(-2px)}}.hurt-flash{pointer-events:none;opacity:0;background:radial-gradient(#0000 40%,#dc00008c);position:absolute;inset:0}.hurt-flash.on{animation:.45s ease-out hurt}@keyframes hurt{0%{opacity:1}to{opacity:0}}@media (height<=500px),(width<=700px){.hearts{bottom:54px}.heart{width:12px;height:12px}.item-name{bottom:74px}}
