html,body{background:#0f0f0f;width:100%;height:100%;margin:0;padding:0}#root{width:100%;height:100%}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%;overflow:hidden}body{color:#edf4ff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:radial-gradient(circle at top,#2a67d8f6,#0000 42%),linear-gradient(#8fc7d8 0%,#00256d 100%);font-family:Segoe UI,Helvetica Neue,sans-serif;line-height:1.4}button{font:inherit}.app{width:100%;height:100dvh;min-height:100vh;overflow:hidden}.app-container{grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(8px,1vw,12px);width:min(1400px,100%);height:100%;margin:0 auto;padding:clamp(8px,1vw,14px);display:grid;overflow:hidden}.app-header,.section,.dashboard{background:linear-gradient(#3037a5f5,#455b8ff5);border:1px solid #67a8ff2e;border-radius:14px;box-shadow:0 18px 40px #00000047}.app-header{text-align:center;background:linear-gradient(135deg,#1f89e570,#00c85314),linear-gradient(#0e1a30f5,#080e1cf5);padding:10px 16px}.app-title{letter-spacing:.02em;color:#f7fbff;font-size:clamp(1.25rem,1.8vw,1.8rem);font-weight:800}.app-subtitle{color:#9ec9ff;margin-top:2px;font-size:clamp(.68rem,.85vw,.82rem)}.main-content{grid-template-columns:minmax(0,1.55fr) minmax(300px,.95fr);gap:clamp(8px,1vw,12px);min-height:0;display:grid}.section{flex-direction:column;min-height:0;display:flex;overflow:hidden}.section-header{background:linear-gradient(#274b8a,#0a1222e6);border-bottom:1px solid #67a8ff24;padding:8px 12px}.section-header h2{color:#74d6ff;font-size:.92rem;font-weight:700}.section-hint{color:#8fb4e3;margin-top:2px;font-size:.68rem}.section-3d{min-height:0}.viewport-3d{background:radial-gradient(circle at top,#1e88e524,#0000 48%),linear-gradient(#1a4aa3 0%,#0b1222 100%);flex:1;min-height:0;position:relative}.cube-renderer,.viewport-3d canvas,.cube-renderer canvas{width:100%;height:100%}.viewport-3d canvas,.cube-renderer canvas{display:block}.dashboard{flex-direction:column;gap:8px;height:100%;min-height:0;max-height:100%;padding:10px;display:flex;overflow:hidden auto}.dashboard::-webkit-scrollbar{width:8px}.dashboard::-webkit-scrollbar-track{background:#0003;border-radius:10px}.dashboard::-webkit-scrollbar-thumb{background:#67a8ff80;border:2px solid #08101f;border-radius:10px}.dashboard-title{color:#74d6ff;border-bottom:1px solid #67a8ff24;padding-bottom:6px;font-size:.96rem;font-weight:700}.dashboard-box,.controls-box,.solver-box,.solve-menu-box,.action-box,.hint-box,.status-box{flex-shrink:0}.dashboard-box{background:#183e80b8;border:1px solid #67a8ff24;border-radius:10px;padding:8px}.dashboard-box h3,.dashboard-box h4{color:#8ad3ff;margin-bottom:6px;font-size:.8rem;font-weight:700}.status-header{border-bottom:1px solid #67a8ff1f;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;padding-bottom:8px;display:flex}.status-header h3{margin:0;font-size:.9rem}.status-header h3.solved{color:#5ef0a3}.status-header h3.unsolved{color:#ffc15c}.connection-badge{letter-spacing:.04em;color:#5ef0a3;background:#41e08b94;border:1px solid #5ef0a33d;border-radius:999px;align-items:center;gap:4px;padding:2px 7px;font-size:.64rem;font-weight:700;animation:2s ease-in-out infinite pulse-online;display:inline-flex}.connection-badge.warming{color:#ffc15c;background:#ffc15c1f;border-color:#ffc15c3d}.connection-badge.busy{color:#74d6ff;background:#74d6ff1f;border-color:#74d6ff3d}.connection-badge.error{color:#ff8b8b;background:#f25e571f;border-color:#f25e573d}@keyframes pulse-online{0%,to{box-shadow:0 0 #5ef0a340}50%{box-shadow:0 0 0 4px #5ef0a314}}.status-info{gap:5px;display:grid}.stat-row{justify-content:space-between;align-items:center;gap:12px;font-size:.78rem;display:flex}.stat-label{color:#9fc8ff}.stat-value{color:#74d6ff;font-family:Consolas,Courier New,monospace;font-size:.9rem}.stat-value-secondary{text-align:right;color:#d9e6ff;font-size:.72rem;line-height:1.35}.hint-box h4{color:#ffc15c}.hint-text{color:#d9e6ff;font-size:.75rem;line-height:1.35}.solver-box{flex-direction:column;flex-shrink:0;min-height:0;display:flex}.solver-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.solver-pill{letter-spacing:.04em;color:#74d6ff;background:#1e88e524;border:1px solid #74d6ff2e;border-radius:999px;padding:2px 8px;font-size:.62rem;font-weight:700}.solver-status,.solver-empty{color:#d9e6ff;font-size:.72rem;line-height:1.4}.solver-loading-box{align-items:flex-start;gap:12px;display:flex}.solver-loading-spinner{border:2px solid #74d6ff38;border-top-color:#74d6ff;border-radius:999px;width:18px;height:18px;margin-top:2px;animation:.85s linear infinite solver-spin}.solver-loading-copy{gap:4px;display:grid}.solver-loading-copy h4{margin:0}.solver-loading-copy p{color:#d9e6ff;font-size:.72rem;line-height:1.45}.solver-loading-detail{color:#9fc8ff}.solver-badge-strip{gap:8px;margin-top:10px;padding-bottom:4px;display:flex;overflow-x:auto}.solver-badge-strip::-webkit-scrollbar{height:6px}.solver-badge-strip::-webkit-scrollbar-thumb{background:#74d6ff59;border-radius:999px}.solver-badge{color:#f7fbff;text-align:center;background:#091223d1;border:1px solid #67a8ff2e;border-radius:999px;flex:none;min-width:44px;padding:8px 12px;font-family:Consolas,Courier New,monospace;font-size:.84rem;font-weight:700}.solver-badge.active{background:#12305ceb;border-color:#74d6ff73;box-shadow:0 0 0 1px #74d6ff24}.solver-stats-line{color:#9fc8ff;margin-top:8px;font-size:.72rem}.playback-controls{gap:8px;margin-top:12px;display:grid}.playback-label{color:#9fc8ff;font-size:.72rem;font-weight:700}.playback-speed-group{flex-wrap:wrap;gap:8px;display:flex}.playback-speed-chip,.solver-run-btn{color:#edf4ff;cursor:pointer;background:#0d1d37eb;border:1px solid #67a8ff2e;border-radius:10px;transition:transform .16s,filter .16s,border-color .16s}.playback-speed-chip{min-width:64px;padding:8px 12px;font-size:.74rem;font-weight:700}.playback-speed-chip.active{background:linear-gradient(#1e88e5 0%,#1154a2 100%);border-color:#7ec6ff94}.solver-action-row{margin-top:12px}.solver-run-btn{text-transform:uppercase;letter-spacing:.04em;color:#04101c;background:linear-gradient(#62d7f8 0%,#1976d2 100%);width:100%;min-height:42px;padding:10px 12px;font-size:.82rem;font-weight:800}.playback-speed-chip:hover,.solver-run-btn:hover{filter:brightness(1.05);transform:translateY(-1px)}.playback-speed-chip:disabled,.solver-run-btn:disabled{cursor:not-allowed;opacity:.58;filter:grayscale(.2);transform:none}@keyframes solver-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.solver-steps{background:#08101f66;border-radius:6px;gap:6px;max-height:380px;margin-top:8px;padding:8px 4px;list-style:none;display:grid;overflow-y:auto}.solver-steps::-webkit-scrollbar{width:6px}.solver-steps::-webkit-scrollbar-track{background:#67a8ff14;border-radius:999px;margin:4px 0}.solver-steps::-webkit-scrollbar-thumb{background:#74d6ff59;border-radius:999px;transition:background .2s}.solver-steps::-webkit-scrollbar-thumb:hover{background:#74d6ff94}.solver-step{background:#091223a3;border:1px solid #67a8ff1a;border-radius:8px;align-items:center;gap:8px;padding:6px 8px;display:flex}.solver-step.active{background:#12305cc7;border-color:#74d6ff61}.solver-step-number{color:#74d6ff;background:#74d6ff29;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;font-size:.68rem;font-weight:700;display:inline-flex}.solver-step-move{color:#f7fbff;font-family:Consolas,Courier New,monospace;font-size:.82rem;font-weight:700}.solve-menu-box{z-index:100;gap:8px;max-height:600px;display:grid;overflow-y:auto}.solve-menu-box::-webkit-scrollbar{width:6px}.solve-menu-box::-webkit-scrollbar-track{background:#67a8ff14;border-radius:10px}.solve-menu-box::-webkit-scrollbar-thumb{background:#74d6ff59;border-radius:999px}.solve-menu-box::-webkit-scrollbar-thumb:hover{background:#74d6ff94}.solve-menu-toggle{color:#f7fbff;cursor:pointer;background:linear-gradient(#13284b 0%,#0d1d37 100%);border:1px solid #89e1ff3d;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:48px;padding:10px 12px;font-size:.84rem;font-weight:800;display:flex}.solve-menu-toggle:hover{filter:brightness(1.06)}.solver-box-inline{min-height:0;max-height:360px;padding-top:2px;padding-right:4px;overflow-y:auto}.solver-box-inline::-webkit-scrollbar{width:6px}.solver-box-inline::-webkit-scrollbar-thumb{background:#74d6ff59;border-radius:999px}.solve-menu-closed{color:#8fb4e3;font-size:.72rem;line-height:1.4}.controls-box{flex-direction:column;flex-shrink:0;min-height:0;display:flex}.button-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.move-btn{color:#fff;cursor:pointer;background:linear-gradient(#1e88e5 0%,#1154a2 100%);border:1px solid #56a7ff47;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:72px;padding:6px 4px;transition:transform .16s,border-color .16s,filter .16s;display:flex}.move-btn:hover{filter:brightness(1.05);border-color:#7ec6ff94;transform:translateY(-1px)}.move-btn:disabled,.action-btn:disabled{cursor:not-allowed;filter:grayscale(.2);opacity:.6;transform:none}.move-btn:active{transform:translateY(0)}.move-label{font-size:.9rem;font-weight:800}.move-key{opacity:.8;font-size:.78rem}.action-box{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.action-box h4{display:none}.action-btn{letter-spacing:.03em;text-transform:uppercase;cursor:pointer;border:1px solid #0000;border-radius:8px;min-height:50px;padding:6px 8px;font-size:.9rem;font-weight:800;transition:transform .16s,filter .16s,border-color .16s}.action-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}.scramble-btn{color:#fff;background:linear-gradient(#ff9b29 0%,#cc5e00 100%);border-color:#ffc47033}.hint-btn{color:#111827;background:linear-gradient(#ffd84a 0%,#ffb400 100%);border-color:#ffe68642}.reset-btn{color:#fff;background:linear-gradient(#f25e57 0%,#bd231d 100%);border-color:#ffa0a038}.view-btn{color:#06111d;background:linear-gradient(#62d7f8 0%,#1976d2 100%);border-color:#89e1ff3d}.iso-btn{color:#06110b;background:linear-gradient(#8fd18e 0%,#2e8b57 100%);border-color:#ade9ab3d}.auto-solve-btn{color:#fff7ff;background:linear-gradient(#c98ed1 0%,#c73dc7 100%);border-color:#f1baff3d}.dashboard-note{color:#8fb4e3;font-size:.68rem;line-height:1.35}.section-2d{overflow:hidden}.faces-grid{grid-template-columns:repeat(6,minmax(0,1fr));justify-items:center;gap:8px;padding:8px 10px 10px;display:grid}.face{background:#111f38ad;border:1px solid #67a8ff24;border-radius:10px;flex-direction:column;align-items:center;gap:5px;width:min(100%,92px);padding:7px 6px;display:flex}.face-label{color:#8ad3ff;letter-spacing:.08em;font-size:.7rem;font-weight:800}.face-grid{grid-template-columns:repeat(3,1fr);gap:2px;display:grid}.sticker{border:1px solid #00000057;border-radius:4px;width:18px;height:18px;box-shadow:inset 0 1px 2px #0000004d}.sticker-white{background:linear-gradient(#fff 0%,#ebeff5 100%)}.sticker-yellow{background:linear-gradient(#ffd84a 0%,#ffbf00 100%)}.sticker-red{background:linear-gradient(#f25e57 0%,#c8251e 100%)}.sticker-orange{background:linear-gradient(#ff9b29 0%,#d86200 100%)}.sticker-green{background:linear-gradient(#41e594 0%,#00b96c 100%)}.sticker-blue{background:linear-gradient(#47a7ff 0%,#1561c2 100%)}@media (width<=1180px){.main-content{grid-template-columns:minmax(0,1.35fr) minmax(280px,.9fr)}.faces-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.app-container{padding:8px}.main-content{grid-template-columns:minmax(0,1.16fr) minmax(250px,.84fr)}}@media (width<=760px){html,body,#root{overflow:hidden auto}.app{height:auto;overflow:visible}.app-container{grid-template-rows:auto auto auto;height:auto;min-height:100dvh}.main-content{grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr)}.dashboard{flex-direction:column;display:flex;overflow:visible}.section-3d{min-height:auto}.viewport-3d{flex:none;height:min(72vw,360px);min-height:260px;max-height:46dvh}.section-2d{overflow:visible}.faces-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=680px){.app-header{padding:8px 12px}.dashboard{padding:8px}.button-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.action-box{grid-template-columns:repeat(2,minmax(0,1fr))}.faces-grid{gap:6px}.face{width:min(100%,86px)}.sticker{width:16px;height:16px}}@media (width<=480px){.app-container{gap:8px;padding:8px 6px 10px}.app-title{font-size:1.05rem}.app-subtitle,.section-hint,.dashboard-note{font-size:.64rem}.section-header,.dashboard-box{padding:8px 10px}.status-header,.solver-header{flex-direction:column;align-items:flex-start}.solve-menu-toggle{font-size:.76rem}.button-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.move-btn{min-height:56px;padding:8px 6px}.move-key{font-size:.5rem}.action-btn{min-height:44px;font-size:.66rem}.faces-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.face{width:min(100%,108px)}.sticker{width:17px;height:17px}}
