/* 小菜鸟宇宙 / 菜鸟星球共用样式 */
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  :root { --dock-h: 96px; --top-h: 64px; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #0b0a2a;
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #fff;
    user-select: none; -webkit-user-select: none; touch-action: none; }
  #bg { position: fixed; inset: 0; background:
      radial-gradient(ellipse at 20% 30%, rgba(255,107,53,.22), transparent 55%),
      radial-gradient(ellipse at 80% 70%, rgba(120,90,255,.28), transparent 55%),
      radial-gradient(ellipse at 50% 100%, rgba(40,180,255,.18), transparent 60%),
      linear-gradient(#0b0a2a, #120e3a); }
  canvas#scene { position: fixed; inset: 0; display: block; }
  canvas#warp { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; }
  #flash { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 18%, var(--c, #ffb36b) 55%, rgba(20,10,60,.95) 100%);
    transition: opacity .5s ease-out; }
  #flash.on { opacity: 1; transition: opacity .12s ease-in; }

  /* 顶部：左 Logo + 静音，右 金币（不可点） */
  .hud-top { position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; pointer-events: none; z-index: 10; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
  .brand .dot { width: 34px; height: 34px; border-radius: 50%; background: #FF6B35; display: grid; place-items: center;
    font-size: 20px; box-shadow: 0 0 18px rgba(255,107,53,.8); }
  .brand .where { font-size: 15px; font-weight: 700; opacity: .9; }
  #mute { pointer-events: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%;
    font-size: 16px; cursor: pointer; margin-left: 4px; }
  .coin-hud { background: rgba(10,8,40,.6); border: 1px solid rgba(255,210,63,.5); padding: 7px 16px; border-radius: 999px;
    font-size: 17px; font-weight: 800; color: #ffd23f; backdrop-filter: blur(6px); white-space: nowrap; }

  .hint { position: fixed; top: var(--top-h); left: 50%; transform: translateX(-50%); font-size: 14px; opacity: .85;
    background: rgba(0,0,0,.28); padding: 6px 14px; border-radius: 999px; pointer-events: none; z-index: 5; white-space: nowrap; transition: opacity .6s; }

  .label { position: fixed; left: 0; top: 0; pointer-events: auto; cursor: pointer; text-align: center; z-index: 4; transition: opacity .2s; }
  .label .name { display: inline-block; background: rgba(15,12,50,.72); border: 2px solid var(--c); padding: 5px 12px;
    border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 0 14px var(--c); }
  .label.far .sub { display: none; }
  .label .sub { font-size: 12px; opacity: .85; margin-top: 3px; text-shadow: 0 1px 4px #000; white-space: nowrap; }

  .dock { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
    background: rgba(10,8,40,.7); padding: 8px; border-radius: 22px; border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px); max-width: calc(100vw - 24px); }
  .dock button { border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 16px; padding: 8px 12px;
    font-size: 13px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 64px; transition: transform .15s, background .15s, opacity .2s; font-family: inherit; }
  .dock button .e { font-size: 22px; }
  .dock button:hover, .dock button.active { background: var(--c); transform: translateY(-3px); }
  .dock .sep { width: 1px; background: rgba(255,255,255,.18); margin: 6px 2px; }
  .dock button.takeoff { --c: #FF6B35; background: rgba(255,107,53,.25); }
  .dock button.takeoff.ready { background: #FF6B35; animation: glow 1.6s infinite; }
  .dock button.takeoff:disabled { opacity: .35; cursor: default; transform: none; background: rgba(255,255,255,.08); animation: none; }
  @keyframes glow { 50% { box-shadow: 0 0 18px rgba(255,107,53,.9); } }

  #stick { position: fixed; left: 22px; bottom: 120px; width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); z-index: 6; display: none; touch-action: none; }
  #stick .knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
    background: rgba(255,107,53,.85); box-shadow: 0 0 16px rgba(255,107,53,.8); }
  #boost { position: fixed; right: 26px; bottom: 130px; width: 84px; height: 84px; border-radius: 50%; border: 0;
    background: rgba(255,107,53,.85); color: #fff; font-size: 15px; font-weight: 800; z-index: 6; display: none;
    box-shadow: 0 0 18px rgba(255,107,53,.7); font-family: inherit; }
  body.touch.flying #stick, body.touch.flying #boost { display: block; }

  /* 星球广场 */
  #station { position: fixed; top: var(--top-h); bottom: calc(var(--dock-h) + 8px); left: 16px; right: 16px; z-index: 8;
    background: rgba(14,11,48,.88); border: 2px solid var(--c, #FF6B35); border-radius: 26px; backdrop-filter: blur(14px);
    display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none;
    transform: scale(.94) translateY(16px); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.3,1.2);
    box-shadow: 0 0 60px color-mix(in srgb, var(--c, #FF6B35) 35%, transparent); user-select: text; -webkit-user-select: text; }
  #station.show { opacity: 1; pointer-events: auto; transform: none; }
  .st-head { padding: 20px 26px 14px; display: flex; align-items: center; gap: 16px; flex: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); }
  .st-head .big { font-size: 46px; filter: drop-shadow(0 0 12px var(--c)); }
  .st-head h2 { font-size: 26px; font-weight: 900; }
  .st-head p { opacity: .85; font-size: 14px; margin-top: 4px; }
  .st-head .count { margin-left: auto; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
  .st-head .count:empty { display: none; }
  #stBody { overflow-y: auto; padding: 6px 26px 26px; flex: 1; touch-action: pan-y; }
  .st-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
  .st-tabs button { border: 0; background: rgba(255,255,255,.1); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .st-tabs button.on { background: var(--c); color: #1a1240; }
  .st-h { margin: 22px 0 10px; font-size: 17px; }
  .st-note { opacity: .7; font-size: 13px; margin-top: 16px; }
  .games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .game-card { background: #fff; border-radius: 20px; overflow: hidden; color: #2d3436; text-decoration: none; display: block;
    border: 3px solid transparent; box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: all .4s cubic-bezier(.175,.885,.32,1.275); opacity: 0; animation: pop .5s forwards; }
  @keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
  .game-card:hover { transform: translateY(-8px) scale(1.03); border-color: #FF6B35; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
  .card-cover { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; overflow: hidden; }
  .card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .card-info { padding: 14px 16px; }
  .card-info h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: #636e72; font-weight: 600; }
  .card-meta .rating, .card-meta .free { color: #FF6B35; font-weight: 800; background: rgba(255,107,53,.1); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
  .card-meta .free { color: #b8860b; background: rgba(255,210,63,.25); }
  .card-meta .author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card-meta .st { padding: 2px 8px; border-radius: 10px; font-weight: 800; white-space: nowrap; }
  .st.ok { background: #e6f9ee; color: #1f9d55; } .st.wait { background: #fff4d6; color: #b7791f; }
  .st.draft { background: #eef0ff; color: #5a67d8; } .st.off { background: #f1f1f1; color: #888; }
  .empty { opacity: .8; font-size: 15px; padding: 40px 0; text-align: center; grid-column: 1 / -1; }

  .coin-rule { display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, rgba(255,210,63,.25), rgba(255,210,63,.05));
    border: 2px dashed rgba(255,210,63,.6); border-radius: 18px; padding: 14px 18px; margin-bottom: 18px; }
  .coin-rule .big { font-size: 44px; } .coin-rule b { font-size: 17px; } .coin-rule div div { opacity: .85; font-size: 14px; margin-top: 4px; }
  .coin-rule .mine { margin-left: auto; text-align: center; font-size: 13px; opacity: .9; white-space: nowrap; }
  .coin-rule .mine b { display: block; font-size: 26px; color: #ffd23f; }

  .create-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
  .big-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: var(--g); color: #fff; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s; }
  .big-card:hover { transform: translateY(-5px) scale(1.02); }
  .big-card .ic { font-size: 54px; } .big-card h3 { font-size: 22px; } .big-card p { opacity: .9; font-size: 14px; margin-top: 4px; }
  .big-card .go, .draft .go { margin-left: auto; background: rgba(255,255,255,.25); padding: 8px 14px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
  .draft-list { display: flex; flex-direction: column; gap: 10px; }
  .draft { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); padding: 12px 16px; border-radius: 14px; color: #fff; text-decoration: none; }
  .draft:hover { background: rgba(255,255,255,.15); } .draft span { opacity: .7; font-size: 13px; } .draft .go { opacity: 1; background: #8b6bff; }

  .home-card { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.07); border-radius: 20px; padding: 18px; margin-bottom: 14px; flex-wrap: wrap; }
  .home-card .av { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--c); background: #fff; object-fit: cover; }
  .home-card h3 { font-size: 22px; } .home-card .coins { color: #ffd23f; font-size: 16px; margin-top: 4px; } .home-card .coins b { font-size: 24px; }
  .home-card .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
  .home-card .acts > * { border: 0; background: rgba(255,255,255,.14); color: #fff; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
  .home-card .acts .out { background: rgba(255,93,93,.25); }
  .av-pick { display: none; grid-template-columns: repeat(auto-fill, 56px); gap: 10px; margin-bottom: 14px; }
  .av-pick.show { display: grid; }
  .av-pick img { width: 56px; height: 56px; border-radius: 50%; background: #fff; cursor: pointer; border: 3px solid transparent; }
  .av-pick img.on { border-color: var(--c); }
  .tx-list { display: flex; flex-direction: column; gap: 6px; }
  .tx { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
  .tx .d { flex: 1; } .tx .t { opacity: .6; font-size: 12px; } .tx b { min-width: 46px; text-align: right; font-size: 16px; }
  .tx .plus { color: #6ee7a8; } .tx .minus { color: #ff8a8a; }

  /* 登录弹窗 */
  #loginModal { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; background: rgba(5,3,25,.6); backdrop-filter: blur(6px); user-select: text; }
  #loginModal.show { display: grid; }
  .lm-box { width: min(380px, calc(100vw - 32px)); background: #1a1446; border: 2px solid var(--c); border-radius: 24px; padding: 22px; box-shadow: 0 0 50px color-mix(in srgb, var(--c) 40%, transparent); }
  .lm-planet { text-align: center; margin-bottom: 14px; font-size: 15px; }
  .lm-tabs { display: flex; background: rgba(255,255,255,.08); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
  .lm-tabs button { flex: 1; border: 0; background: none; color: #fff; padding: 8px; border-radius: 9px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
  .lm-tabs button.on { background: var(--c); color: #1a1240; }
  #loginModal label { display: block; font-size: 13px; opacity: .9; margin-bottom: 10px; }
  #loginModal input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08); color: #fff; font-size: 16px; outline: none; font-family: inherit; }
  #loginModal input:focus { border-color: var(--c); }
  .lm-reg { display: none; } #loginModal.reg .lm-reg { display: block; }
  .lm-sub { font-size: 12px; opacity: .7; margin: 6px 0; }
  .lm-avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .lm-avatars img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid transparent; cursor: pointer; }
  .lm-avatars img.on { border-color: var(--c); }
  .lm-err { color: #ff8a8a; font-size: 13px; min-height: 18px; margin: 6px 0; }
  .lm-go { width: 100%; border: 0; background: var(--c); color: #1a1240; font-size: 17px; font-weight: 900; padding: 12px; border-radius: 14px; cursor: pointer; font-family: inherit; }
  .lm-cancel { width: 100%; border: 0; background: none; color: #fff; opacity: .7; margin-top: 8px; padding: 8px; cursor: pointer; font-family: inherit; }

  #loading { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #0b0a2a; transition: opacity .6s; }
  #loading .box { text-align: center; }
  #loading .rocket { font-size: 64px; animation: shake .15s infinite; }
  @keyframes shake { 50% { transform: translate(1px, -2px) rotate(-2deg); } }
  #loading .bar { width: 220px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.15); margin: 16px auto 8px; overflow: hidden; }
  #loading .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FF6B35, #ffcf4d); transition: width .3s; }

  @media (max-width: 640px) {
    :root { --dock-h: 84px; --top-h: 56px; }
    .hud-top { padding: 0 12px; } .brand { font-size: 16px; gap: 6px; } .brand .where { display: none; }
    .coin-hud { font-size: 15px; padding: 6px 12px; }
    .hint { font-size: 12px; white-space: normal; width: max-content; max-width: 92vw; text-align: center; border-radius: 14px; }
    .label .name { font-size: 13px; padding: 4px 9px; }
    .label .sub { display: none; }
    .dock { gap: 4px; padding: 6px; bottom: 10px; }
    .dock button { min-width: 32px; flex: 1; padding: 6px 3px; font-size: 0; white-space: nowrap; }
    .dock button .e { font-size: 19px; } .dock .sep { display: none; }
    #stick { bottom: 108px; width: 104px; height: 104px; } #boost { bottom: 118px; width: 72px; height: 72px; }
    #station { left: 8px; right: 8px; bottom: calc(var(--dock-h) + 4px); border-radius: 20px; }
    .st-head { padding: 14px 16px 10px; gap: 10px; } .st-head .big { font-size: 34px; } .st-head h2 { font-size: 20px; }
    .st-head p { font-size: 12px; } .st-head .count { display: none; }
    #stBody { padding: 4px 14px 18px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-cover { height: 100px; font-size: 40px; } .card-info { padding: 10px 12px; } .card-info h3 { font-size: 14px; }
    .card-meta { font-size: 11px; } .card-meta .author { display: none; }
    .coin-rule { flex-wrap: wrap; } .coin-rule .mine { margin-left: 0; }
    .big-card { padding: 16px; } .big-card .ic { font-size: 40px; } .big-card h3 { font-size: 18px; }
    .home-card .acts { margin-left: 0; }
  }

/* ===== 多人：名字标签 / 武器按钮 / 提示条 ===== */
#mpTags { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.mp-tag { position: fixed; left: 0; top: 0; white-space: nowrap; background: rgba(20,16,60,.72); color: #fff; font-weight: 800; font-size: 13px;
  padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--c, #fff); opacity: 0; transition: opacity .2s; will-change: transform; }
.mp-tag.ice::before { content: '❄️ '; }
.mp-tag.npc { background: rgba(25,95,150,.6); font-size: 12px; font-weight: 700; }
.mp-tag.aim { background: #fff; color: #1a1446; box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
#weaponHud { position: fixed; right: 18px; bottom: calc(var(--dock-h, 96px) + 26px); z-index: 6; display: none; gap: 10px; align-items: flex-end; }
#weaponHud.show { display: flex; }
#weaponHud button { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(20,16,60,.7);
  color: #fff; font-size: 26px; cursor: pointer; font-family: inherit; padding: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
#weaponHud button small { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 11px; font-weight: 800; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px #000; }
#weaponHud button.on { border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255,210,63,.35); }
#weaponHud #fireBtn { width: 74px; height: 74px; font-size: 32px; background: rgba(224,49,49,.85); border-color: #ffb3b3; }
#weaponHud #shieldBtn.cd { opacity: .55; }
body.touch #weaponHud { flex-direction: column-reverse; align-items: center; right: 22px; bottom: 240px; gap: 22px; }
#toast { position: fixed; left: 50%; top: 30%; transform: translate(-50%, 10px); z-index: 20; background: rgba(26,20,70,.92); color: #fff; padding: 12px 22px; border-radius: 18px;
  font-weight: 800; font-size: 16px; opacity: 0; pointer-events: none; transition: all .25s; text-align: center; max-width: 86vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { body.touch #weaponHud { bottom: 220px; right: 14px; } #weaponHud button { width: 50px; height: 50px; font-size: 22px; } #weaponHud #fireBtn { width: 64px; height: 64px; } }

/* 右上角登录按钮 */
.hud-right { display: flex; align-items: center; gap: 8px; }
.login-btn { pointer-events: auto; border: 0; background: #ff6b35; color: #fff; font: 800 15px inherit; font-family: inherit; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 4px 12px rgba(255,107,53,.45); white-space: nowrap; }
.login-btn:hover { transform: translateY(-1px); }
.login-btn[hidden] { display: none; }
@media (max-width: 640px) { .login-btn { font-size: 13px; padding: 6px 11px; } }
