:root{
    --panel-bg: rgba(0,0,0,0.55);
    --panel-border: rgba(255,255,255,0.14);
    --text: #eaf1ff;
    --muted: #8ea3c8;
    --accent: #4da3ff;
    --accent2: #7b6bff;
  }
  *{ box-sizing:border-box; margin:0; padding:0; }
  html,body{ width:100%; height:100%; overflow:hidden; background:#000; }
  body{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color:var(--text); -webkit-font-smoothing:antialiased;
  }
  #scene{ position:fixed; inset:0; }
  canvas{ display:block; }

  #loader{
    position:fixed; inset:0; z-index:50;
    background:#000;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    transition:opacity 1s ease, visibility 1s ease;
  }
  #loader.hidden{ opacity:0; visibility:hidden; }
  .loader-logo{
    width:130px; height:130px; object-fit:contain; margin-bottom:28px;
    filter:drop-shadow(0 0 24px rgba(255,255,255,.12));
  }
  .loadbar-wrap{ width:240px; height:5px; border-radius:3px; background:rgba(255,255,255,.16); overflow:hidden; }
  #loadbar{ height:100%; width:0%; border-radius:3px; background:#fff; transition:width .25s ease; }
  #loadpct{ margin-top:14px; font-size:24px; font-weight:800; color:#fff; letter-spacing:2px; }

  #toggleUI{
    position:fixed; top:20px; left:20px; z-index:11; width:42px; height:42px;
    display:none; align-items:center; justify-content:center; cursor:pointer;
    background:var(--panel-bg); border:1px solid var(--panel-border); border-radius:12px;
    backdrop-filter:blur(16px); color:#dce9ff; font-size:16px;
  }
  #toggleUI.show{ display:flex; }
  #hint{
    position:fixed; right:22px; top:22px; z-index:10; text-align:right;
    font-size:10px; color:rgba(200,215,245,.5); line-height:1.8; letter-spacing:.5px;
  }
  #hint b{ color:rgba(220,233,255,.8); font-weight:500; }

  #toast{
    position:fixed; left:50%; top:26px; transform:translateX(-50%); z-index:20;
    padding:9px 16px; border-radius:10px; font-size:11px; letter-spacing:.5px;
    background:rgba(12,18,34,.82); border:1px solid rgba(120,170,255,.28);
    backdrop-filter:blur(12px); opacity:0; transition:opacity .35s; pointer-events:none;
  }
  #toast.show{ opacity:1; }
