/* ============================================================
   polish.css —— 界面收敛层
   在 style.css / theme.css 之后加载：只调观感与可用性，
   不改结构、不覆盖主题配色语义，6 套主题均照常工作。
   ============================================================ */

/* ---------- 1. 少一点光效与动效，久看不累 ---------- */
.lobby-bg__rays{animation:none;opacity:.32}
.lobby-lantern{animation:none;opacity:.5;box-shadow:none}
.lobby-cloud{display:none}
.brand h1{
  filter:drop-shadow(0 2px 0 rgba(110,40,10,.5)) drop-shadow(0 6px 14px rgba(60,6,4,.3));
}
.guest-card,.mode-card{backdrop-filter:none;-webkit-backdrop-filter:none}
/* 卡片不再「上跳」，改成轻微提亮，点击反馈更稳 */
.mode-card:hover:not(:disabled),
.room-card:hover:not(:disabled){transform:none;filter:brightness(1.06)}
.mode-card__icon{border-radius:12px;box-shadow:none;border-color:rgba(180,118,20,.5)}

/* ---------- 2. 按钮：去掉厚底阴影、发光与大字距 ---------- */
button{letter-spacing:0}
/* style.css 用的是 button.primary（0,2,0），这里必须同特异性才能覆盖 */
button.primary,.primary{
  letter-spacing:0;font-weight:700;border-radius:12px;text-shadow:none;
  box-shadow:0 2px 8px rgba(150,40,20,.25);
}
button.primary:active:not(:disabled),.primary:active:not(:disabled){
  box-shadow:0 1px 4px rgba(150,40,20,.25);
}
.dock__btn{
  letter-spacing:0;font-weight:600;border-radius:12px;text-shadow:none;
  box-shadow:0 2px 8px rgba(60,6,4,.25);
}
.dock__btn:active:not(:disabled){box-shadow:0 1px 4px rgba(60,6,4,.25)}
.room-card{box-shadow:0 3px 12px rgba(60,6,4,.22)}
.room-card.active{box-shadow:0 0 0 2px rgba(255,246,216,.9),0 4px 14px rgba(60,6,4,.3)}
/* hero 卡片用的是 .mode-card--hero .mode-card__go（0,2,0），这里要同特异性 */
.mode-card .mode-card__go{letter-spacing:0;font-weight:700;text-shadow:none;box-shadow:none}
.mode-card--hero .mode-card__title,
.mode-card--hero .mode-card__desc{text-shadow:none}
.mode-card__tag{
  letter-spacing:0;font-weight:600;opacity:.85;
  background:rgba(0,0,0,.3);border-color:rgba(255,206,110,.3);
  color:#ffdca0;box-shadow:none;
}
[data-theme="light"] .mode-card__tag{
  background:rgba(60,70,95,.09);border-color:rgba(60,70,95,.2);color:#6b7280;
}

/* ---------- 3. 信息层级：标题像标题，说明像说明 ---------- */
.section-title{font-size:13px;font-weight:700;letter-spacing:1px;text-shadow:none;gap:10px}
.section-title:before{display:none}
.section-title:after{height:1px}
.guest-card{border-radius:16px;box-shadow:0 10px 28px rgba(60,8,6,.32)}
.auth-tabs{margin-bottom:14px}
.field{margin-bottom:14px}
.field label{font-size:13px;font-weight:600;letter-spacing:0;margin-bottom:6px}
.auth-tip{font-size:12px;line-height:1.6;letter-spacing:0}
.mode-card__title{font-size:16px;font-weight:700;letter-spacing:0}
.mode-card__desc{font-size:12.5px;line-height:1.6}
.room-tip{font-size:12px;letter-spacing:0;text-shadow:none}
.dock__btn{font-size:11px}
.sub{letter-spacing:1px;font-size:12px;background:rgba(96,12,10,.4)}
/* 跑马灯改为一句静态提示，不抢注意力 */
.notice-bar__track{
  animation:none;display:block;text-align:center;
  font-size:12px;letter-spacing:.2px;
}
/* 经典主题下，米色卡片上的浅棕小字偏淡，单独加深 */
[data-theme="classic"] .field label,
[data-theme="classic"] .auth-tip{color:#6b4f2a}
/* 在线状态用一枚小圆点，替代 emoji */
#online-pill:before{
  content:"";width:7px;height:7px;border-radius:50%;flex:0 0 auto;
  background:#43c07a;box-shadow:0 0 0 2px rgba(67,192,122,.2);
}

/* ---------- 3b. 浅色主题的可读性修正 ---------- */
[data-theme="light"] .brand h1{
  background:linear-gradient(180deg,#e0871a,#b45309);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:none;
}
[data-theme="light"] .sub{
  background:rgba(60,70,95,.07);border-color:rgba(60,70,95,.18);color:#6b5423;
}
[data-theme="light"] .section-title,
[data-theme="light"] .room-tip{color:#8a5a08}
[data-theme="light"] .notice-bar{
  background:rgba(255,255,255,.85);border-color:rgba(60,70,95,.18);
}
[data-theme="light"] .notice-bar__track{color:#5a4a2a}
[data-theme="light"] .notice-bar__horn{color:#a87410}

/* ============================================================
   4. 手机端：不溢出、点得到、看得清
   ============================================================ */
@media (max-width:560px){
  html,body,#app,.screen{max-width:100%;overflow-x:hidden}
  .lobby-top,.lobby-stage,.lobby-stage__inner,.lobby-bottom{
    max-width:100%;min-width:0;box-sizing:border-box;
  }
  .lobby-stage__inner{padding:2px 12px 16px}
  .guest-card{max-width:100%;box-sizing:border-box;padding:16px 14px}
  .mode-card{max-width:100%;min-width:0;box-sizing:border-box}
  .mode-card__body{min-width:0}

  /* 顶栏一次放全，不用「横滑找按钮」 */
  .lobby-top{
    flex-wrap:wrap;gap:6px;align-items:center;
    padding:calc(8px + env(safe-area-inset-top)) 10px 4px;
  }
  .lobby-top>.spacer{display:none}
  #online-pill{order:1;flex:0 0 auto}
  .dock{
    order:2;width:100%;max-width:100%;min-width:0;
    justify-content:space-between;gap:4px;
    overflow:visible;padding:0;flex-wrap:nowrap;
  }
  .dock__btn{flex:1 1 0;min-width:0;width:auto;height:50px;padding:6px 2px;font-size:10px}
  .dock__btn svg{width:17px;height:17px}

  /* 首屏就能看到主入口 */
  .brand{margin:0 0 6px}
  .brand h1{font-size:30px}
  .section-title{margin:10px 0 6px}
  .mode-cards{gap:8px;margin:6px 0 10px}
  .mode-card{min-height:64px;padding:13px 12px}
  .mode-card__go{padding:8px 12px;min-height:36px;display:inline-flex;align-items:center}

  /* 输入框 ≥16px，iOS 不会自动放大整页 */
  input,textarea,select{font-size:16px}
  .field label{font-size:13px}
  .primary{min-height:44px}
  .actions button{min-height:46px}
  .notice-bar{padding:8px 12px}
  .notice-bar__track{font-size:11.5px}
}
