* { margin:0; padding:0; box-sizing:border-box; }
  html, body { width:100%; height:100%; overflow:hidden; }
  body { font-family:'Segoe UI','Microsoft YaHei',sans-serif; background:#0b1622; color:#eaf6ff; user-select:none; }

  /* ---------- 背景 ---------- */
  .bg { position:fixed; inset:0; z-index:-2;
    background:linear-gradient(180deg,#1a2a4a 0%,#2a4a6a 25%,#6a8aaa 50%,#d8b88a 75%,#f0d8b0 100%);
    background-size:100% 200%; animation:skyShift 20s ease-in-out infinite alternate; }
  @keyframes skyShift { 0%{background-position:0% 0%} 100%{background-position:0% 100%} }
  .sun { position:fixed; top:18%; left:50%; width:340px; height:340px; transform:translateX(-50%);
    background:radial-gradient(circle,rgba(255,240,200,.9) 0%,rgba(255,200,120,.35) 35%,transparent 70%);
    border-radius:50%; z-index:-1; animation:sunPulse 8s ease-in-out infinite; }
  @keyframes sunPulse { 0%,100%{opacity:.7;transform:translateX(-50%) scale(1)} 50%{opacity:1;transform:translateX(-50%) scale(1.12)} }
  .cloud { position:fixed; background:rgba(255,255,255,.28); border-radius:50%; filter:blur(18px); z-index:-1; }
  .cloud1 { width:260px;height:90px;top:22%;left:-260px;animation:drift1 38s linear infinite; }
  .cloud2 { width:380px;height:120px;top:12%;left:-380px;animation:drift2 55s linear infinite; }
  .cloud3 { width:200px;height:70px;top:32%;left:-200px;animation:drift1 46s linear infinite;animation-delay:-12s; }
  @keyframes drift1 { from{transform:translateX(0)} to{transform:translateX(120vw)} }
  @keyframes drift2 { from{transform:translateX(0)} to{transform:translateX(130vw)} }
  .sparkle { position:fixed; width:4px; height:4px; background:rgba(255,255,220,.9); border-radius:50%;
    box-shadow:0 0 8px rgba(255,255,200,.9); z-index:-1; animation:floatUp linear infinite; }
  @keyframes floatUp { 0%{transform:translateY(0) scale(1);opacity:0} 15%{opacity:1} 85%{opacity:1} 100%{transform:translateY(-110vh) scale(.4);opacity:0} }

  /* ---------- 主菜单 ---------- */
  .menu-screen { position:relative; width:100%; height:100%; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:48px; transition:opacity .45s ease,transform .45s ease; }
  .menu-screen.fade-out { opacity:0; transform:scale(1.05); pointer-events:none; }
  .title { font-size:54px; font-weight:800; letter-spacing:12px; color:#fff;
    text-shadow:0 0 24px rgba(255,240,200,.9),0 0 60px rgba(255,200,120,.6); animation:titleGlow 4s ease-in-out infinite; }
  @keyframes titleGlow { 0%,100%{text-shadow:0 0 24px rgba(255,240,200,.8),0 0 60px rgba(255,200,120,.5)} 50%{text-shadow:0 0 40px rgba(255,240,200,1),0 0 90px rgba(255,200,120,.8)} }
  .subtitle { margin-top:6px; font-size:14px; letter-spacing:6px; color:rgba(255,255,255,.75); text-transform:uppercase; }
  .btn-group { display:flex; gap:22px; flex-wrap:wrap; justify-content:center; }
  .menu-btn { width:128px; height:128px; border-radius:26px; border:2px solid rgba(255,255,255,.45);
    background:rgba(255,255,255,.14); backdrop-filter:blur(10px); color:#fff; font-size:20px; font-weight:700;
    letter-spacing:3px; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
    transition:all .28s cubic-bezier(.2,.8,.3,1); box-shadow:0 8px 32px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.35); }
  .menu-btn .icon { font-size:34px; }
  .menu-btn:hover { transform:translateY(-10px) scale(1.06); background:rgba(255,255,255,.28); border-color:#fff;
    box-shadow:0 18px 44px rgba(255,200,120,.45),inset 0 1px 0 rgba(255,255,255,.6); }
  .menu-btn:active { transform:translateY(-4px) scale(.98); }

  .creator-badge { position:fixed; top:18px; left:50%; transform:translateX(-50%); z-index:200;
    padding:8px 26px; border-radius:12px; background:linear-gradient(135deg,#ff6bd6,#b06bff);
    color:#fff; font-size:13px; font-weight:800; letter-spacing:3px; box-shadow:0 0 30px rgba(180,100,255,.8);
    display:none; }
  .creator-badge.show { display:block; animation:badgePulse 2s ease-in-out infinite; }
  @keyframes badgePulse { 0%,100%{box-shadow:0 0 20px rgba(180,100,255,.6)} 50%{box-shadow:0 0 45px rgba(180,100,255,1)} }

  /* ---------- 通用 ---------- */
  .screen { position:fixed; inset:0; display:none; flex-direction:column; padding:28px 36px; overflow-y:auto; animation:screenIn .4s ease; }
  .screen.active { display:flex; }
  @keyframes screenIn { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
  .screen-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; flex-shrink:0; gap:14px; flex-wrap:wrap; }
  .back-btn { padding:10px 22px; border-radius:12px; border:2px solid rgba(255,255,255,.4);
    background:rgba(255,255,255,.12); backdrop-filter:blur(8px); color:#fff; font-size:15px; font-weight:600;
    cursor:pointer; transition:all .2s; white-space:nowrap; }
  .back-btn:hover { background:rgba(255,255,255,.28); transform:translateX(-4px); }
  .screen-title { font-size:30px; font-weight:800; letter-spacing:6px; color:#fff; text-shadow:0 0 20px rgba(255,255,255,.5); }

  .modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
    display:none; align-items:center; justify-content:center; z-index:100; padding:20px; }
  .modal-mask.active { display:flex; }
  .modal { width:460px; max-width:94vw; max-height:90vh; overflow-y:auto; position:relative;
    background:linear-gradient(160deg,rgba(40,60,90,.97),rgba(20,30,50,.99));
    border:1.5px solid rgba(255,255,255,.25); border-radius:22px; padding:30px;
    box-shadow:0 24px 80px rgba(0,0,0,.6); animation:modalIn .3s cubic-bezier(.2,.8,.3,1.2); color:#eaf6ff; }
  @keyframes modalIn { from{opacity:0;transform:scale(.86)} to{opacity:1;transform:scale(1)} }
  .modal h2 { font-size:23px; letter-spacing:4px; margin-bottom:24px; text-align:center; color:#fff; }
  .close-x { position:absolute; top:16px; right:20px; font-size:22px; color:rgba(255,255,255,.6); cursor:pointer; line-height:1; }
  .close-x:hover { color:#fff; }

  /* ---------- 设置 ---------- */
  .setting-row { margin-bottom:24px; }
  .setting-row label { display:flex; justify-content:space-between; margin-bottom:10px; font-size:15px; color:rgba(255,255,255,.85); letter-spacing:1px; }
  .setting-row input[type=range] { width:100%; height:8px; -webkit-appearance:none; appearance:none;
    background:rgba(255,255,255,.18); border-radius:6px; outline:none; cursor:pointer; }
  .setting-row input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:50%;
    background:linear-gradient(135deg,#ffd98a,#ffb84d); box-shadow:0 0 14px rgba(255,200,120,.9); cursor:pointer; }
  .setting-row input[type=range]::-moz-range-thumb { width:22px; height:22px; border:none; border-radius:50%;
    background:linear-gradient(135deg,#ffd98a,#ffb84d); box-shadow:0 0 14px rgba(255,200,120,.9); cursor:pointer; }

  .creator-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:14px;
    padding:16px; border-radius:14px; background:rgba(180,100,255,.12); border:1.5px solid rgba(180,100,255,.4); margin-bottom:14px; }
  .creator-toggle-row .ct-info { flex:1; }
  .creator-toggle-row .ct-title { font-size:15px; font-weight:800; color:#d0b0ff; letter-spacing:2px; }
  .creator-toggle-row .ct-desc { font-size:12px; color:rgba(255,255,255,.55); margin-top:4px; line-height:1.5; }
  .switch { position:relative; width:56px; height:30px; flex-shrink:0; cursor:pointer; }
  .switch input { display:none; }
  .switch .slider { position:absolute; inset:0; border-radius:30px; background:rgba(255,255,255,.2); transition:.3s; }
  .switch .slider::before { content:''; position:absolute; width:24px; height:24px; left:3px; top:3px; border-radius:50%;
    background:#fff; transition:.3s; box-shadow:0 2px 6px rgba(0,0,0,.3); }
  .switch input:checked + .slider { background:linear-gradient(135deg,#ff6bd6,#b06bff); }
  .switch input:checked + .slider::before { transform:translateX(26px); }

  /* ---------- 角色 ---------- */
  .char-screen { background:linear-gradient(180deg,rgba(30,40,70,.96),rgba(15,20,40,.99)); }
  .char-toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
  .tool-btn { padding:12px 24px; border-radius:14px; border:none; cursor:pointer; font-size:15px; font-weight:800;
    letter-spacing:2px; transition:all .2s; white-space:nowrap; }
  .tool-btn.gold { background:linear-gradient(135deg,#ffd98a,#ff9f4d); color:#3a2200; box-shadow:0 0 24px rgba(255,180,80,.7); }
  .tool-btn.gold:hover { transform:translateY(-3px) scale(1.04); box-shadow:0 0 40px rgba(255,180,80,1); }
  .tool-btn.ghost { background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.35); color:#fff; }
  .tool-btn.ghost:hover { background:rgba(255,255,255,.24); }
  .tool-btn:active { transform:scale(.96); }
  .tool-btn:disabled { opacity:.4; cursor:not-allowed; transform:none !important; }

  .char-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:22px;
    max-width:1150px; margin:0 auto; width:100%; }
  .char-card { aspect-ratio:3/4; border-radius:18px; background:rgba(255,255,255,.07);
    border:1.5px solid rgba(255,255,255,.18); display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; cursor:pointer; transition:all .26s cubic-bezier(.2,.8,.3,1); position:relative; overflow:hidden; }
  .char-card:hover { transform:translateY(-8px); border-color:rgba(255,215,140,.9); box-shadow:0 18px 40px rgba(255,200,120,.3); }
  .char-card.rarity-5 { border-color:rgba(255,200,60,.7); box-shadow:0 0 22px rgba(255,200,60,.35); }
  .char-card.rarity-5:hover { box-shadow:0 18px 50px rgba(255,200,60,.7); }
  .char-card.rarity-4 { border-color:rgba(150,200,255,.7); box-shadow:0 0 18px rgba(150,200,255,.3); }
  .char-card .img { width:100%; height:78%; object-fit:cover; display:block; background:rgba(0,0,0,.25); }
  .char-card .img-placeholder { width:100%; height:78%; display:flex; align-items:center; justify-content:center;
    font-size:52px; opacity:.5; background:rgba(0,0,0,.2); }
  .char-card .name { width:100%; text-align:center; font-size:15px; font-weight:600; letter-spacing:1px;
    color:rgba(255,255,255,.9); padding:6px 4px; background:rgba(0,0,0,.25); }
  .char-card .locked { position:absolute; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; font-size:34px; }
  .char-card .star-badge { position:absolute; top:8px; left:8px; padding:3px 9px; border-radius:8px;
    font-size:11px; font-weight:800; letter-spacing:1px; z-index:2; }
  .star-badge.s5 { background:linear-gradient(135deg,#ffd93c,#ff9f1c); color:#3a2200; }
  .star-badge.s4 { background:linear-gradient(135deg,#a0d0ff,#5a9aff); color:#0a2a4a; }

  .char-detail { width:720px; max-width:94vw; }
  .char-detail-body { display:flex; gap:24px; }
  @media (max-width:600px){ .char-detail-body { flex-direction:column; } }
  .char-detail-left { flex:0 0 240px; border-radius:16px; overflow:hidden; background:rgba(0,0,0,.3);
    border:1.5px solid rgba(255,255,255,.2); min-height:300px; display:flex; align-items:center; justify-content:center; }
  .char-detail-left img { width:100%; height:100%; object-fit:cover; display:block; }
  .char-detail-left .ph { font-size:70px; opacity:.5; }
  .char-detail-right { flex:1; min-width:0; }
  .char-detail-right .dname { font-size:26px; font-weight:800; color:#5fffd0; margin-bottom:6px; letter-spacing:2px; }
  .char-detail-right .dstars { font-size:15px; margin-bottom:16px; }
  .char-detail-right .dstars.s5 { color:#ffd93c; }
  .char-detail-right .dstars.s4 { color:#a0d0ff; }
  .char-detail-right .dfield { margin-bottom:14px; }
  .char-detail-right .dlabel { font-size:12px; color:rgba(255,255,255,.55); letter-spacing:2px; margin-bottom:5px; }
  .char-detail-right .dtext { font-size:15px; line-height:1.8; color:rgba(255,255,255,.9); white-space:pre-wrap; }

  .char-set-modal { width:720px; max-width:94vw; }
  .cs-form { display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
  .cs-form input, .cs-form textarea, .cs-form select {
    width:100%; padding:11px 14px; border-radius:11px; border:1.5px solid rgba(255,255,255,.25);
    background:rgba(0,0,0,.25); color:#fff; font-size:14px; font-family:inherit; outline:none; resize:vertical; }
  .cs-form input:focus, .cs-form textarea:focus, .cs-form select:focus { border-color:#5fffd0; }
  .cs-form input::placeholder, .cs-form textarea::placeholder { color:rgba(255,255,255,.35); }
  .cs-form select option { background:#1a2a4a; color:#fff; }
  .cs-row { display:flex; gap:12px; }
  .cs-row > * { flex:1; }
  .cs-list { border-top:1px dashed rgba(255,255,255,.2); padding-top:14px; max-height:280px; overflow-y:auto; }
  .cs-item { display:flex; justify-content:space-between; align-items:center; gap:10px;
    padding:10px 14px; border-radius:11px; background:rgba(255,255,255,.06); margin-bottom:8px;
    font-size:14px; color:rgba(255,255,255,.9); }
  .cs-item .ops { display:flex; gap:8px; flex-shrink:0; }
  .cs-item .ops button { padding:6px 12px; border-radius:8px; border:none; cursor:pointer; font-size:12px; font-weight:700; transition:all .2s; }
  .ops .edit { background:rgba(95,255,208,.18); color:#5fffd0; }
  .ops .del { background:rgba(216,74,74,.18); color:#ff7a7a; }
  .ops button:hover { filter:brightness(1.3); }

  /* ---------- 答题 ---------- */
  .quiz-screen { background:linear-gradient(160deg,#dcecff 0%,#fdf6d8 55%,#ffe9b8 100%); color:#234; }
  .quiz-screen .screen-title { color:#1a3a5c; text-shadow:0 0 16px rgba(120,170,255,.5); }
  .quiz-screen .back-btn { color:#1a3a5c; border-color:rgba(30,70,120,.35); background:rgba(255,255,255,.5); }
  .quiz-screen .back-btn:hover { background:rgba(255,255,255,.8); }
  .quiz-topbar { max-width:760px; width:100%; margin:0 auto 18px; display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
  .score-badge { display:flex; align-items:center; gap:10px; padding:12px 26px; border-radius:16px;
    background:rgba(255,255,255,.8); border:2px solid rgba(120,170,255,.5); box-shadow:0 8px 26px rgba(80,140,220,.22);
    font-size:16px; font-weight:700; color:#1a3a5c; }
  .score-badge .score-num { font-size:26px; color:#ff8a2a; text-shadow:0 0 12px rgba(255,160,60,.5); font-variant-numeric:tabular-nums; }
  .bank-btn { padding:12px 28px; border-radius:14px; border:2px solid rgba(120,170,255,.6);
    background:rgba(255,255,255,.75); color:#1a3a5c; font-size:16px; font-weight:700; letter-spacing:2px; cursor:pointer; transition:all .2s; }
  .bank-btn:hover { background:#fff; border-color:#7aaaff; transform:translateY(-2px); }
  .quiz-wrap { max-width:760px; width:100%; margin:0 auto; display:flex; flex-direction:column; gap:26px; }
  .quiz-card { background:rgba(255,255,255,.72); border:2px solid rgba(120,170,255,.35); border-radius:24px;
    padding:40px; box-shadow:0 16px 50px rgba(80,140,220,.18); }
  .quiz-progress { font-size:14px; color:#4a7aaa; letter-spacing:2px; margin-bottom:18px; }
  .quiz-question { font-size:22px; font-weight:700; color:#1a3a5c; margin-bottom:28px; line-height:1.6; }
  .quiz-options { display:flex; flex-direction:column; gap:14px; }
  .quiz-option { padding:16px 22px; border-radius:14px; border:2px solid rgba(120,170,255,.4);
    background:rgba(255,255,255,.65); font-size:16px; color:#234; cursor:pointer; transition:all .2s; }
  .quiz-option:hover { background:rgba(180,210,255,.7); border-color:#7aaaff; transform:translateX(6px); }
  .quiz-option.correct { background:rgba(160,230,170,.85); border-color:#3aa85a; color:#0a3a1a; }
  .quiz-option.wrong { background:rgba(255,170,170,.85); border-color:#d84a4a; color:#4a0a0a; }
  .quiz-option.disabled { pointer-events:none; opacity:.85; }
  .quiz-feedback { margin-top:22px; font-size:17px; font-weight:700; min-height:26px; }
  .quiz-feedback.ok { color:#2a9a4a; }
  .quiz-feedback.no { color:#d84a4a; }
  .quiz-next { margin-top:22px; padding:14px 40px; border-radius:14px; border:none;
    background:linear-gradient(135deg,#7ab8ff,#4a8ae0); color:#fff; font-size:17px; font-weight:700; letter-spacing:2px;
    cursor:pointer; box-shadow:0 8px 24px rgba(80,140,220,.4); transition:all .2s; display:none; }
  .quiz-next.show { display:inline-block; }
  .quiz-next:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(80,140,220,.6); }

  .bank-modal { width:640px; max-width:94vw; max-height:90vh; overflow-y:auto;
    background:linear-gradient(160deg,rgba(220,236,255,.98),rgba(253,246,216,.98));
    border:2px solid rgba(120,170,255,.5); border-radius:22px; padding:30px; box-shadow:0 24px 80px rgba(0,0,0,.4);
    animation:modalIn .3s cubic-bezier(.2,.8,.3,1.2); color:#1a3a5c; position:relative; }
  .bank-modal h2 { font-size:23px; letter-spacing:4px; margin-bottom:22px; text-align:center; color:#1a3a5c; }
  .bank-field { margin-bottom:18px; }
  .bank-field label { display:block; font-size:14px; font-weight:700; color:#2a5a8a; margin-bottom:8px; letter-spacing:1px; }
  .bank-field input[type=text], .bank-field textarea { width:100%; padding:12px 16px; border-radius:12px;
    border:2px solid rgba(120,170,255,.45); background:rgba(255,255,255,.8); color:#1a3a5c; font-size:15px; font-family:inherit; outline:none; resize:vertical; }
  .bank-field input:focus, .bank-field textarea:focus { border-color:#7aaaff; background:#fff; }
  .bank-options { display:flex; flex-direction:column; gap:10px; margin-bottom:6px; }
  .bank-option-row { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.6);
    border-radius:12px; padding:8px 12px; border:2px solid rgba(120,170,255,.3); }
  .bank-option-row.correct { border-color:#3aa85a; background:rgba(160,230,170,.4); }
  .bank-option-row .tag { width:30px; height:30px; border-radius:50%; flex-shrink:0; display:flex;
    align-items:center; justify-content:center; background:rgba(120,170,255,.35); color:#1a3a5c; font-weight:800; font-size:14px; }
  .bank-option-row.correct .tag { background:#3aa85a; color:#fff; }
  .bank-option-row input { flex:1; padding:9px 12px; border-radius:8px; border:1.5px solid rgba(120,170,255,.35);
    background:rgba(255,255,255,.85); color:#1a3a5c; font-size:14px; outline:none; font-family:inherit; }
  .bank-option-row input:focus { border-color:#7aaaff; }
  .bank-option-row .set-correct { padding:7px 14px; border-radius:8px; border:none; cursor:pointer;
    background:rgba(120,170,255,.3); color:#1a3a5c; font-size:12px; font-weight:700; white-space:nowrap; transition:all .2s; }
  .bank-option-row.correct .set-correct { background:#3aa85a; color:#fff; }
  .bank-option-row .set-correct:hover { filter:brightness(1.08); }
  .bank-actions { display:flex; gap:12px; margin-top:20px; flex-wrap:wrap; }
  .bank-save { flex:1; padding:14px; border-radius:12px; border:none; background:linear-gradient(135deg,#7ab8ff,#4a8ae0);
    color:#fff; font-size:16px; font-weight:700; letter-spacing:2px; cursor:pointer; transition:all .2s; }
  .bank-save:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(80,140,220,.5); }
  .bank-close { flex:1; padding:14px; border-radius:12px; border:2px solid rgba(120,170,255,.6);
    background:rgba(255,255,255,.7); color:#1a3a5c; font-size:16px; font-weight:700; letter-spacing:2px; cursor:pointer; transition:all .2s; }
  .bank-close:hover { background:#fff; }
  .bank-list { margin-top:26px; border-top:2px dashed rgba(120,170,255,.4); padding-top:20px; }
  .bank-list h3 { font-size:16px; color:#2a5a8a; margin-bottom:12px; letter-spacing:2px; }
  .bank-list-item { background:rgba(255,255,255,.6); border-radius:10px; padding:10px 14px; margin-bottom:8px;
    font-size:13px; color:#234; display:flex; justify-content:space-between; gap:10px; align-items:center; }
  .bank-list-item .del { padding:5px 12px; border-radius:7px; border:none; cursor:pointer;
    background:rgba(216,74,74,.15); color:#d84a4a; font-size:12px; font-weight:700; flex-shrink:0; }
  .bank-list-item .del:hover { background:rgba(216,74,74,.3); }

  /* ---------- 抽卡 ---------- */
  .gacha-modal { width:600px; max-width:94vw; text-align:center; }
  .gacha-cost { font-size:14px; color:rgba(255,255,255,.6); margin-bottom:18px; letter-spacing:1px; line-height:1.8; }
  .gacha-cost b { color:#ffd98a; }
  .gacha-pity { font-size:12px; color:#ff9f4d; margin-bottom:16px; letter-spacing:1px; }
  .gacha-stage { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:18px; min-height:120px; align-items:center; }
  .gacha-slot { width:100px; height:100px; border-radius:18px; border:2px solid rgba(255,215,140,.4);
    background:rgba(0,0,0,.3); display:flex; flex-direction:column; align-items:center; justify-content:center;
    font-size:38px; transition:all .3s; position:relative; }
  .gacha-slot.single { width:180px; height:180px; font-size:80px; }
  .gacha-slot.rolling { animation:gachaRoll .12s linear infinite; }
  @keyframes gachaRoll { 0%{transform:rotate(-4deg) scale(1.02)} 50%{transform:rotate(4deg) scale(.98)} 100%{transform:rotate(-4deg) scale(1.02)} }
  .gacha-slot.reveal { animation:gachaReveal .5s cubic-bezier(.2,.8,.3,1.4); }
  @keyframes gachaReveal { 0%{transform:scale(.6);opacity:.4} 60%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
  .gacha-slot.r5 { border-color:#ffd93c; box-shadow:0 0 30px rgba(255,217,60,.8); }
  .gacha-slot.r4 { border-color:#a0d0ff; box-shadow:0 0 24px rgba(160,208,255,.7); }
  .gacha-slot.r3 { border-color:#b06bff; box-shadow:0 0 20px rgba(176,107,255,.6); }
  .gacha-slot.r2 { border-color:#7ab8ff; box-shadow:0 0 16px rgba(122,184,255,.5); }
  .gacha-slot.r1 { border-color:#888; box-shadow:0 0 12px rgba(150,150,150,.4); }
  .gacha-slot .slot-label { position:absolute; bottom:4px; left:0; right:0; font-size:10px; color:rgba(255,255,255,.8);
    font-weight:700; letter-spacing:1px; text-align:center; }
  .gacha-slot.single .slot-label { font-size:13px; bottom:8px; }
  .gacha-result-name { font-size:18px; font-weight:800; color:#ffd98a; margin-bottom:8px; letter-spacing:2px; min-height:24px; }
  .gacha-result-desc { font-size:13px; color:rgba(255,255,255,.7); min-height:20px; margin-bottom:18px; line-height:1.6; }
  .gacha-result-desc.rare { color:#5fffd0; font-weight:700; }
  .gacha-btns { display:flex; gap:12px; flex-wrap:wrap; }
  .gacha-btns .tool-btn { flex:1; padding:14px; }
  .gacha-stats { font-size:12px; color:rgba(255,255,255,.55); margin-top:14px; letter-spacing:1px; line-height:1.7; }

  /* ---------- 世界 ---------- */
  .world-screen { background:linear-gradient(180deg,#0f1a12 0%,#16281a 50%,#0e1a10 100%); padding:0; overflow:hidden; }
  .world-bg-layer { position:absolute; inset:0; z-index:0; pointer-events:none;
    background-image:
      linear-gradient(rgba(0,0,0,.18) 1px,transparent 1px),
      linear-gradient(90deg,rgba(0,0,0,.18) 1px,transparent 1px),
      linear-gradient(180deg,#2a4a6a 0%,#4a7a8a 40%,#6a9a6a 65%,#3a5a3a 100%);
    background-size:32px 32px,32px 32px,100% 100%; image-rendering:pixelated; opacity:.35; }
  .world-inner { position:relative; z-index:1; width:100%; height:100%; overflow-y:auto; padding:28px 36px; }
  .world-header-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:22px; flex-wrap:wrap; }
  .world-header-row .screen-title { font-family:'Courier New',monospace; color:#aaffcc; letter-spacing:6px; text-shadow:0 0 14px rgba(120,255,160,.9); }
  .world-header-row .back-btn { font-family:'Courier New',monospace; color:#aaffcc; border-color:rgba(120,255,160,.5); background:rgba(0,0,0,.4); }

  .level-panel { max-width:900px; margin:0 auto 22px; padding:20px 24px; border-radius:18px;
    background:rgba(0,0,0,.45); border:1.5px solid rgba(120,255,160,.35);
    box-shadow:0 8px 32px rgba(0,0,0,.4), inset 0 0 40px rgba(120,255,160,.05); }
  .level-top { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:12px; flex-wrap:wrap; gap:10px; }
  .level-badge { font-family:'Courier New',monospace; font-size:28px; font-weight:900; color:#aaffcc;
    text-shadow:0 0 16px rgba(120,255,160,.9); letter-spacing:2px; }
  .level-exp-text { font-family:'Courier New',monospace; font-size:13px; color:rgba(170,255,204,.7); letter-spacing:1px; }
  .exp-bar-wrap { width:100%; height:18px; border-radius:10px; background:rgba(0,0,0,.5);
    border:1.5px solid rgba(120,255,160,.4); overflow:hidden; position:relative; }
  .exp-bar { height:100%; width:0%; border-radius:8px;
    background:linear-gradient(90deg,#3affa0,#a0ffd0); box-shadow:0 0 18px rgba(120,255,160,.8);
    transition:width .5s cubic-bezier(.2,.8,.3,1); }
  .exp-bar-text { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-family:'Courier New',monospace; font-size:11px; font-weight:800; color:#0a2a1a; letter-spacing:1px; }

  /* 世界功能入口 */
  .world-func-grid { max-width:900px; margin:0 auto 22px; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
  .world-func-card { padding:22px 20px; border-radius:18px; cursor:pointer; text-align:center;
    background:rgba(0,0,0,.5); border:1.5px solid rgba(120,255,160,.35);
    transition:all .26s cubic-bezier(.2,.8,.3,1); box-shadow:0 8px 32px rgba(0,0,0,.4); }
  .world-func-card:hover { transform:translateY(-6px); border-color:rgba(120,255,160,.8);
    box-shadow:0 16px 40px rgba(60,255,160,.25); }
  .world-func-card .wf-icon { font-size:40px; margin-bottom:10px; }
  .world-func-card .wf-title { font-family:'Courier New',monospace; font-size:17px; font-weight:800;
    color:#aaffcc; letter-spacing:2px; margin-bottom:6px; }
  .world-func-card .wf-desc { font-size:12px; color:rgba(170,255,204,.6); line-height:1.6; }

  /* 任务栏 */
  .task-panel { max-width:900px; margin:0 auto 22px; padding:24px; border-radius:18px;
    background:rgba(0,0,0,.5); border:1.5px solid rgba(120,255,160,.35);
    box-shadow:0 8px 32px rgba(0,0,0,.4); }
  .task-panel-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
  .task-panel-head h3 { font-family:'Courier New',monospace; font-size:20px; color:#aaffcc; letter-spacing:3px;
    text-shadow:0 0 12px rgba(120,255,160,.7); }
  .task-reward-info { font-family:'Courier New',monospace; font-size:12px; color:rgba(170,255,204,.7); letter-spacing:1px; }
  .task-reward-info b { color:#ffd98a; }
  .task-list { display:flex; flex-direction:column; gap:12px; }
  .task-item { display:flex; align-items:flex-start; gap:14px; padding:16px 18px; border-radius:14px;
    background:rgba(120,255,160,.06); border:1.5px solid rgba(120,255,160,.22);
    transition:all .25s; position:relative; }
  .task-item.done { background:rgba(120,255,160,.14); border-color:rgba(120,255,160,.55); }
  .task-item.done .task-name { text-decoration:line-through; color:rgba(170,255,204,.6); }
  .task-check { flex-shrink:0; width:28px; height:28px; border-radius:9px; border:2px solid rgba(120,255,160,.6);
    background:rgba(0,0,0,.3); cursor:pointer; display:flex; align-items:center; justify-content:center;
    font-size:16px; color:#aaffcc; transition:all .2s; margin-top:2px; }
  .task-check:hover { background:rgba(120,255,160,.2); transform:scale(1.08); }
  .task-item.done .task-check { background:#3affa0; border-color:#3affa0; color:#0a2a1a; }
  .task-body { flex:1; min-width:0; }
  .task-name { font-size:15px; font-weight:700; color:#e0fff0; letter-spacing:1px; margin-bottom:4px; }
  .task-note { font-size:12px; color:rgba(170,255,204,.65); line-height:1.6; white-space:pre-wrap; word-break:break-word; }
  .task-note.empty { font-style:italic; color:rgba(170,255,204,.35); }
  .task-del { flex-shrink:0; padding:6px 12px; border-radius:8px; border:none; cursor:pointer;
    background:rgba(216,74,74,.18); color:#ff7a7a; font-size:12px; font-weight:700; transition:all .2s; }
  .task-del:hover { background:rgba(216,74,74,.35); }
  .task-actions-row { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
  .task-add-btn { flex:1; padding:13px; border-radius:12px; border:none; cursor:pointer;
    background:linear-gradient(135deg,#3affa0,#00c878); color:#0a2a1a; font-family:'Courier New',monospace;
    font-size:15px; font-weight:900; letter-spacing:2px; transition:all .2s;
    box-shadow:0 0 24px rgba(60,255,160,.5); }
  .task-add-btn:hover { transform:translateY(-2px); box-shadow:0 0 38px rgba(60,255,160,.9); }
  .task-reward-btn { flex:1; padding:13px; border-radius:12px; border:2px solid rgba(255,215,140,.5);
    background:rgba(255,215,140,.12); color:#ffd98a; font-family:'Courier New',monospace;
    font-size:15px; font-weight:900; letter-spacing:2px; cursor:pointer; transition:all .2s; }
  .task-reward-btn:hover:not(:disabled) { background:rgba(255,215,140,.25); transform:translateY(-2px); }
  .task-reward-btn:disabled { opacity:.4; cursor:not-allowed; }
  .task-reward-btn.claimed { opacity:.6; cursor:default; background:rgba(120,255,160,.1); border-color:rgba(120,255,160,.4); color:rgba(170,255,204,.7); }
  .task-progress-info { font-family:'Courier New',monospace; font-size:12px; color:rgba(170,255,204,.7);
    letter-spacing:1px; margin-top:12px; text-align:center; }
  .task-progress-info b { color:#ffd98a; }

  /* 任务感想弹窗 */
  .task-note-modal { width: 560px; max-width:94vw; }
  .tnm-task-name { font-size:17px; font-weight:800; color:#5fffd0; margin-bottom:18px; letter-spacing:1px; text-align:center; }
  .tnm-input { width:100%; min-height:110px; padding:14px 16px; border-radius:12px;
    border:1.5px solid rgba(95,255,208,.4); background:rgba(0,0,0,.3); color:#eaf6ff;
    font-size:14px; font-family:inherit; outline:none; resize:vertical; line-height:1.7; }
  .tnm-input:focus { border-color:#5fffd0; }
  .tnm-input::placeholder { color:rgba(255,255,255,.3); }
  .tnm-btns { display:flex; gap:12px; margin-top:18px; }
  .tnm-btns button { flex:1; padding:13px; border-radius:12px; border:none; cursor:pointer;
    font-size:15px; font-weight:800; letter-spacing:2px; transition:all .2s; }
  .tnm-ok { background:linear-gradient(135deg,#3affa0,#00c878); color:#0a2a1a; }
  .tnm-ok:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(60,255,160,.5); }
  .tnm-cancel { background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.3); color:#fff; }
  .tnm-cancel:hover { background:rgba(255,255,255,.24); }

  .task-add-modal { width: 480px; max-width:94vw; }
  .tam-input { width:100%; padding:13px 16px; border-radius:12px;
    border:1.5px solid rgba(95,255,208,.4); background:rgba(0,0,0,.3); color:#eaf6ff;
    font-size:15px; font-family:inherit; outline:none; }
  .tam-input:focus { border-color:#5fffd0; }
  .tam-input::placeholder { color:rgba(255,255,255,.3); }

  /* ---------- 小游戏通用 ---------- */
  .game-screen { background:linear-gradient(160deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%); }
  .game-screen .screen-title { color:#7ad0ff; text-shadow:0 0 20px rgba(80,180,255,.7); font-family:'Courier New',monospace; }
  .game-screen .back-btn { color:#7ad0ff; border-color:rgba(80,180,255,.5); background:rgba(0,0,0,.3); }
  .game-wrap { max-width:760px; width:100%; margin:0 auto; display:flex; flex-direction:column; gap:22px; }
  .game-status { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; }
  .game-stat { flex:1; min-width:120px; padding:14px 20px; border-radius:14px;
    background:rgba(0,0,0,.4); border:1.5px solid rgba(80,180,255,.4); text-align:center; }
  .game-stat .gs-label { font-size:11px; color:rgba(122,208,255,.7); letter-spacing:2px; font-family:'Courier New',monospace; }
  .game-stat .gs-val { font-size:24px; font-weight:900; color:#7ad0ff; font-family:'Courier New',monospace;
    text-shadow:0 0 14px rgba(80,180,255,.7); }
  .game-card { background:rgba(0,0,0,.45); border:2px solid rgba(80,180,255,.35); border-radius:22px;
    padding:36px; box-shadow:0 16px 50px rgba(0,0,0,.4); }
  .game-question { font-size:20px; font-weight:700; color:#e0f4ff; line-height:1.7; margin-bottom:24px;
    white-space:pre-wrap; }
  .game-options { display:flex; flex-direction:column; gap:12px; }
  .game-option { padding:15px 20px; border-radius:12px; border:2px solid rgba(80,180,255,.35);
    background:rgba(80,180,255,.08); font-size:16px; color:#c0e8ff; cursor:pointer; transition:all .2s; }
  .game-option:hover { background:rgba(80,180,255,.2); border-color:#7ad0ff; transform:translateX(6px); }
  .game-option.correct { background:rgba(80,255,150,.25); border-color:#3affa0; color:#a0ffd0; }
  .game-option.wrong { background:rgba(255,100,100,.25); border-color:#ff6a6a; color:#ffb0b0; }
  .game-option.disabled { pointer-events:none; opacity:.85; }
  .game-feedback { margin-top:20px; font-size:16px; font-weight:700; min-height:24px; }
  .game-feedback.ok { color:#3affa0; }
  .game-feedback.no { color:#ff6a6a; }
  .game-next { margin-top:20px; padding:13px 36px; border-radius:12px; border:none;
    background:linear-gradient(135deg,#7ad0ff,#3a8ae0); color:#0a1a2a; font-size:16px; font-weight:800;
    letter-spacing:2px; cursor:pointer; display:none; }
  .game-next.show { display:inline-block; }
  .game-next:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(80,180,255,.5); }
  .game-poem { font-size:22px; line-height:2; color:#e0f4ff; text-align:center; margin-bottom:24px;
    font-family:'KaiTi','STKaiti',serif; letter-spacing:2px; }
  .game-poem .blank { color:#7ad0ff; border-bottom:2px solid #7ad0ff; padding:0 12px; }

  /* ---------- 日记本 ---------- */
  .diary-screen { background:linear-gradient(180deg,#2a1f3a 0%,#3a2a4a 50%,#4a3555 100%); }
  .diary-screen .screen-title { color:#e0b0ff; text-shadow:0 0 20px rgba(200,120,255,.6); }
  .diary-screen .back-btn { color:#e0b0ff; border-color:rgba(200,120,255,.4); background:rgba(0,0,0,.3); }
  .diary-wrap { max-width:900px; width:100%; margin:0 auto; display:flex; flex-direction:column; gap:20px; }
  .diary-tabs { display:flex; gap:10px; flex-wrap:wrap; }
  .diary-tab { padding:12px 26px; border-radius:14px; border:2px solid rgba(200,120,255,.35);
    background:rgba(0,0,0,.3); color:rgba(224,176,255,.8); font-size:15px; font-weight:800;
    letter-spacing:2px; cursor:pointer; transition:all .2s; }
  .diary-tab.active { background:rgba(200,120,255,.25); border-color:#e0b0ff; color:#fff;
    box-shadow:0 0 20px rgba(200,120,255,.5); }
  .diary-tab:hover:not(.active) { background:rgba(200,120,255,.12); }
  .diary-panel { display:none; }
  .diary-panel.active { display:block; animation:screenIn .3s ease; }
  .diary-form { display:flex; flex-direction:column; gap:14px; background:rgba(0,0,0,.4);
    border:1.5px solid rgba(200,120,255,.3); border-radius:18px; padding:24px; }
  .diary-form label { font-size:13px; color:rgba(224,176,255,.8); letter-spacing:1px; font-weight:700; }
  .diary-form input, .diary-form textarea, .diary-form select {
    width:100%; padding:12px 16px; border-radius:12px; border:1.5px solid rgba(200,120,255,.35);
    background:rgba(0,0,0,.3); color:#fff; font-size:14px; font-family:inherit; outline:none; resize:vertical; }
  .diary-form input:focus, .diary-form textarea:focus, .diary-form select:focus { border-color:#e0b0ff; }
  .diary-form input::placeholder, .diary-form textarea::placeholder { color:rgba(255,255,255,.3); }
  .diary-form select option { background:#2a1f3a; color:#fff; }
  .diary-submit { padding:13px; border-radius:12px; border:none; cursor:pointer;
    background:linear-gradient(135deg,#e0b0ff,#a06bff); color:#2a0a3a;
    font-size:15px; font-weight:900; letter-spacing:2px; transition:all .2s; }
  .diary-submit:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(200,120,255,.5); }
  .diary-list { display:flex; flex-direction:column; gap:14px; margin-top:18px; }
  .diary-entry { background:rgba(0,0,0,.4); border:1.5px solid rgba(200,120,255,.3);
    border-radius:16px; padding:18px 20px; }
  .diary-entry-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
  .diary-entry-title { font-size:17px; font-weight:800; color:#e0b0ff; letter-spacing:1px; }
  .diary-entry-date { font-size:12px; color:rgba(224,176,255,.55); font-family:'Courier New',monospace; white-space:nowrap; }
  .diary-entry-body { font-size:14px; color:rgba(255,255,255,.85); line-height:1.8; white-space:pre-wrap; word-break:break-word; }
  .diary-entry-img { max-width:100%; max-height:300px; border-radius:10px; margin-top:12px; display:block;
    border:1.5px solid rgba(200,120,255,.3); }
  .diary-entry-del { padding:6px 12px; border-radius:8px; border:none; cursor:pointer;
    background:rgba(216,74,74,.18); color:#ff7a7a; font-size:12px; font-weight:700; flex-shrink:0; }
  .diary-entry-del:hover { background:rgba(216,74,74,.35); }
  .diary-empty { text-align:center; color:rgba(224,176,255,.5); font-size:14px; padding:40px 0; font-style:italic; }
  .diary-img-preview { max-width:200px; max-height:200px; border-radius:10px; margin-top:8px;
    border:1.5px solid rgba(200,120,255,.3); display:none; }
  .diary-img-preview.show { display:block; }
  .diary-reward-hint { font-size:12px; color:rgba(255,215,140,.8); text-align:center; margin-top:8px; letter-spacing:1px; }
  .diary-reward-hint.claimed { color:rgba(170,255,204,.6); }

  /* ---------- 家园 ---------- */
  .home-screen { background:linear-gradient(180deg,#3a2a1a 0%,#5a3a22 50%,#7a5a3a 100%); }
  .home-wrap { max-width:1050px; width:100%; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:26px; }
  @media (max-width:820px){ .home-wrap { grid-template-columns:1fr; } }
  .home-panel { background:rgba(60,40,24,.75); border:2px solid rgba(255,200,120,.35); border-radius:20px;
    padding:26px; backdrop-filter:blur(6px); box-shadow:0 12px 40px rgba(0,0,0,.35); }
  .home-panel h3 { font-size:19px; letter-spacing:3px; color:#ffd98a; margin-bottom:20px;
    border-bottom:1px solid rgba(255,200,120,.3); padding-bottom:12px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
  .avatar-box { width:130px; height:130px; border-radius:50%; border:3px solid rgba(255,200,120,.6);
    background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-size:52px;
    margin:0 auto 20px; box-shadow:0 0 30px rgba(255,200,120,.35); }
  .info-row { display:flex; justify-content:space-between; padding:11px 0; font-size:15px;
    border-bottom:1px dashed rgba(255,200,120,.18); color:rgba(255,255,255,.85); }
  .info-row:last-child { border-bottom:none; }
  .info-row b { color:#ffd98a; font-weight:700; }
  .nick-edit { display:flex; gap:10px; margin-bottom:18px; }
  .nick-edit input { flex:1; padding:11px 16px; border-radius:10px; border:1.5px solid rgba(255,200,120,.45);
    background:rgba(0,0,0,.25); color:#fff; font-size:15px; outline:none; }
  .nick-edit input:focus { border-color:#ffd98a; }
  .nick-edit button { padding:11px 20px; border-radius:10px; border:none;
    background:linear-gradient(135deg,#ffd98a,#ff9f4d); color:#3a2200; font-weight:700; cursor:pointer; transition:all .2s; }
  .nick-edit button:hover { transform:scale(1.05); }
  .skin-grid { display:flex; gap:14px; flex-wrap:wrap; }
  .skin-item { width:64px; height:64px; border-radius:14px; border:2px solid rgba(255,200,120,.35);
    background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-size:28px;
    cursor:pointer; transition:all .2s; }
  .skin-item:hover { border-color:#ffd98a; transform:scale(1.08); }
  .skin-item.selected { border-color:#ffd98a; background:rgba(255,200,120,.25); box-shadow:0 0 18px rgba(255,200,120,.6); }
  .inv-grid { display:flex; flex-direction:column; gap:10px; }
  .inv-row { display:flex; align-items:center; justify-content:space-between; gap:10px;
    background:rgba(255,255,255,.06); border-radius:12px; padding:10px 14px; border:1px solid rgba(255,200,120,.2); }
  .inv-row .left { display:flex; align-items:center; gap:10px; min-width:0; }
  .inv-row .emoji { font-size:22px; }
  .inv-row .label { font-size:14px; color:rgba(255,255,255,.9); }
  .inv-row .count { font-size:14px; font-weight:800; color:#ffd98a; font-variant-numeric:tabular-nums;
    background:rgba(0,0,0,.25); padding:4px 12px; border-radius:8px; flex-shrink:0; }
  .inv-row .redeem { padding:7px 14px; border-radius:9px; border:none; cursor:pointer; font-size:12px;
    font-weight:800; white-space:nowrap; flex-shrink:0; background:linear-gradient(135deg,#ffd98a,#ff9f4d); color:#3a2200; }
  .inv-row .redeem:disabled { opacity:.35; cursor:not-allowed; filter:grayscale(.6); }
  .inv-row .redeem:not(:disabled):hover { transform:scale(1.06); }
  .emotion-exchange { margin-top:16px; padding:16px; border-radius:14px; background:rgba(255,255,255,.06);
    border:1px dashed rgba(255,200,120,.4); text-align:center; color:rgba(255,255,255,.75); font-size:13px; line-height:1.8; }
  .emotion-exchange b { color:#ffd98a; }

  .emotion-modal { width:560px; max-width:94vw; }
  .emo-list { display:flex; flex-direction:column; gap:10px; }
  .emo-item { display:flex; align-items:center; justify-content:space-between; gap:12px;
    background:rgba(255,255,255,.06); border-radius:12px; padding:12px 16px; border:1px solid rgba(255,200,120,.25); }
  .emo-item .left { display:flex; align-items:center; gap:12px; }
  .emo-item .big { font-size:28px; }
  .emo-item .name { font-size:15px; color:#fff; font-weight:600; }
  .emo-item .sub { font-size:12px; color:rgba(255,255,255,.55); }
  .emo-item .ops { display:flex; gap:8px; align-items:center; }
  .emo-item .full { font-size:12px; font-weight:800; color:#5fffd0; background:rgba(95,255,208,.15); padding:5px 12px; border-radius:8px; }
  .emo-item .redeem { padding:8px 16px; border-radius:9px; border:none; cursor:pointer; font-size:13px;
    font-weight:800; white-space:nowrap; background:linear-gradient(135deg,#ffd98a,#ff9f4d); color:#3a2200; }
  .emo-item .redeem:disabled { opacity:.35; cursor:not-allowed; filter:grayscale(.6); }

  .home-level { margin-top:14px; }
  .home-level .hl-top { display:flex; justify-content:space-between; font-size:12px; color:rgba(255,200,120,.75);
    margin-bottom:6px; font-family:'Courier New',monospace; }
  .home-level .hl-bar-wrap { width:100%; height:12px; border-radius:8px; background:rgba(0,0,0,.35);
    border:1px solid rgba(255,200,120,.35); overflow:hidden; }
  .home-level .hl-bar { height:100%; width:0%; border-radius:8px;
    background:linear-gradient(90deg,#ffb84d,#ffd98a); box-shadow:0 0 14px rgba(255,200,120,.7); transition:width .5s; }

/* ================= 登录态 / 同步 / 排行榜（新增） ================= */
[hidden] { display:none !important; }

.boot-overlay { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#1a2a4a 0%,#2a4a6a 45%,#d8b88a 100%);
  transition:opacity .45s ease; }
.boot-overlay.done { opacity:0; pointer-events:none; }
.boot-card { text-align:center; }
.boot-logo { font-size:44px; font-weight:800; letter-spacing:14px; color:#fff;
  text-shadow:0 0 28px rgba(255,240,200,.9),0 0 70px rgba(255,200,120,.6); }
.boot-spinner { width:34px; height:34px; margin:26px auto 0; border-radius:50%;
  border:3px solid rgba(255,255,255,.25); border-top-color:#ffd98a; animation:bootSpin .9s linear infinite; }
@keyframes bootSpin { to { transform:rotate(360deg); } }
.boot-text { margin-top:16px; font-size:13px; letter-spacing:3px; color:rgba(255,255,255,.82); }

.user-chip { position:fixed; top:18px; right:22px; z-index:90; display:flex; align-items:center; gap:10px;
  padding:8px 14px; border-radius:999px; background:rgba(8,22,36,.46); border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(12px); color:#fff; font-size:13px; box-shadow:0 8px 26px rgba(0,0,0,.22); }
.user-chip .uc-avatar { font-size:16px; }
.user-chip #userChipName { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.uc-admin { color:#ffd98a; font-size:12px; text-decoration:none; padding:3px 8px; border-radius:999px;
  border:1px solid rgba(255,217,138,.45); }
.uc-admin:hover { background:rgba(255,217,138,.16); }
.uc-logout { border:0; background:rgba(255,255,255,.14); color:#fff; font-size:12px; padding:5px 11px;
  border-radius:999px; cursor:pointer; font-family:inherit; }
.uc-logout:hover { background:rgba(255,120,120,.35); }
@media (max-width:700px){
  .user-chip { top:auto; bottom:14px; right:14px; padding:7px 11px; font-size:12px; gap:7px; }
  .user-chip #userChipName { max-width:90px; }
}

.account-box { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px;
  margin-bottom:14px; border-radius:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); }
.account-btns { display:flex; gap:8px; flex-wrap:wrap; }

.pwd-form { display:flex; flex-direction:column; gap:12px; }
.pwd-form input { padding:13px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.1); color:#fff; font-size:14px; font-family:inherit; outline:none; }
.pwd-form input:focus { border-color:#ffd98a; box-shadow:0 0 0 3px rgba(255,217,138,.16); }
.pwd-form input::placeholder { color:rgba(255,255,255,.45); }
.pwd-error { min-height:18px; font-size:12px; color:#ff9b9b; }
.pwd-modal { max-width:420px; width:92%; }

.sync-status { position:fixed; left:18px; bottom:16px; z-index:90; display:none; align-items:center; gap:7px;
  font-size:12px; color:rgba(255,255,255,.82); background:rgba(8,20,32,.46); padding:6px 12px;
  border-radius:999px; backdrop-filter:blur(8px); }
.sync-status.show { display:flex; }
.sync-status .dot { width:7px; height:7px; border-radius:50%; background:#6ee7a8; }
.sync-status.pending .dot { background:#ffd166; animation:syncPulse 1s ease-in-out infinite; }
.sync-status.error .dot { background:#ff6b6b; }
@keyframes syncPulse { 0%,100%{opacity:.45} 50%{opacity:1} }

.bank-tip { margin:-6px 0 12px; font-size:12px; line-height:1.7; color:#5a7a9a; }

.leaderboard-screen { background:linear-gradient(180deg,rgba(10,28,46,.35),rgba(10,28,46,.7)); }
.lb-wrap { width:min(760px,100%); margin:0 auto; display:flex; flex-direction:column; gap:14px; padding-bottom:50px; }
.lb-me { padding:14px 20px; border-radius:16px; background:linear-gradient(135deg,rgba(255,217,138,.2),rgba(255,160,90,.12));
  border:1px solid rgba(255,217,138,.45); font-size:14px; color:#ffe7b0; }
.lb-list { display:flex; flex-direction:column; gap:8px; }
.lb-row { display:grid; grid-template-columns:54px 1fr auto; align-items:center; gap:14px; padding:13px 18px;
  border-radius:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); }
.lb-row.me { border-color:#ffd98a; background:rgba(255,217,138,.14); }
.lb-rank { font-weight:800; font-size:18px; color:#ffd98a; text-align:center; font-variant-numeric:tabular-nums; }
.lb-name { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lb-sub { font-size:12px; color:rgba(255,255,255,.55); margin-top:3px; }
.lb-score { font-weight:800; color:#ffd98a; font-variant-numeric:tabular-nums; font-size:17px; }
.lb-empty { padding:40px; text-align:center; color:rgba(255,255,255,.6); }
.lb-hint { text-align:center; font-size:12px; color:rgba(255,255,255,.45); }

/* 移动端菜单：按钮缩小、可滚动、避开底部用户条 */
@media (max-width: 700px) {
  .menu-screen { padding: 20px 12px 96px; gap: 30px; }
  .menu-btn { width: 108px; height: 108px; border-radius: 22px; font-size: 17px; gap: 5px; }
  .menu-btn .icon { font-size: 28px; }
  .title { font-size: 42px; letter-spacing: 10px; }
  .subtitle { font-size: 11px; letter-spacing: 4px; }
  .btn-group { gap: 14px; }
  .user-chip { bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 680px) {
  .menu-screen { justify-content: flex-start; overflow-y: auto; padding-top: 34px; }
  .menu-btn { width: 96px; height: 96px; font-size: 15px; }
  .menu-btn .icon { font-size: 24px; }
}
