/* ============================================================
   dynamic.css —— 界面动感层（最后加载）
   1) 会呼吸的大厅背景：缓慢流光 / 云影 / 灯笼轻摆
   2) 底部公告条：连续滚动，不抢注意力
   3) 顶栏：小而精致的图标按钮，替换原来的大按键
   4) 登录卡 / 排行榜新增控件的样式
   全部尊重 prefers-reduced-motion。
   ============================================================ */

/* ---------- 1. 动态背景 ---------- */
@keyframes ddzGlow {
  0%   { background-position: 0% 50%; opacity: .55 }
  50%  { background-position: 100% 50%; opacity: .9 }
  100% { background-position: 0% 50%; opacity: .55 }
}
@keyframes ddzRays {
  from { transform: rotate(0deg) scale(1) }
  to   { transform: rotate(360deg) scale(1) }
}
@keyframes ddzCloud {
  0%   { transform: translate3d(-4%, 0, 0); opacity: .18 }
  50%  { transform: translate3d(6%, -8px, 0); opacity: .34 }
  100% { transform: translate3d(-4%, 0, 0); opacity: .18 }
}
@keyframes ddzSway {
  0%,100% { transform: rotate(-2.5deg) }
  50%     { transform: rotate(2.5deg) }
}
@keyframes ddzTicker {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* 一层很淡的流动暖光，铺在舞台最底层 */
#screen-lobby .lobby-bg {
  background-image:
    radial-gradient(ellipse at 18% 22%, rgba(255, 206, 120, .16), transparent 56%),
    radial-gradient(ellipse at 82% 78%, rgba(226, 72, 47, .13), transparent 58%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 236, 190, .07), transparent 70%);
  background-size: 180% 180%, 200% 200%, 160% 160%;
  animation: ddzGlow 22s ease-in-out infinite;
}
#screen-lobby .lobby-bg__rays {
  animation: ddzRays 90s linear infinite;
  opacity: .3;
  transform-origin: 50% 42%;
}
#screen-lobby .lobby-lantern {
  animation: ddzSway 7s ease-in-out infinite;
  opacity: .62;
  transform-origin: 50% 0;
}
#screen-lobby .lobby-lantern--r { animation-delay: -3.5s }
#screen-lobby .lobby-cloud {
  display: block;
  animation: ddzCloud 26s ease-in-out infinite;
}
#screen-lobby .lobby-cloud--2 { animation-duration: 34s; animation-delay: -9s }
#screen-lobby .lobby-cloud--3 { animation-duration: 30s; animation-delay: -17s }

/* 浅色主题下把光收得更淡，保证文字对比度 */
[data-theme="light"] #screen-lobby .lobby-bg { opacity: .5 }
[data-theme="light"] #screen-lobby .lobby-bg__rays { opacity: .16 }
[data-theme="light"] #screen-lobby .lobby-lantern { opacity: .42 }

/* ---------- 2. 底部公告条：连续滚动 ---------- */
.notice-bar { overflow: hidden }
.notice-bar__viewport { overflow: hidden; flex: 1 1 auto; min-width: 0 }
.notice-bar .notice-bar__track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
  letter-spacing: .2px;
  animation: ddzTicker 42s linear infinite;
}
.notice-bar__track span { flex: 0 0 auto }
.notice-bar:hover .notice-bar__track { animation-play-state: paused }
.notice-bar__track span::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  vertical-align: 2px;
}

/* ---------- 3. 顶栏：紧凑但一眼看得见 ----------
   上一版把 style.css 的金色实底刷成半透明白，深红背景下几乎融进背景；
   这里保留「小尺寸 + 图标 + 短标签」，同时恢复实底高对比。 */
.dock { gap: 6px }
.dock .dock__btn {
  position: relative;
  min-width: 54px;
  height: 46px;
  padding: 5px 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--gold-2, #b06f10);
  background: linear-gradient(180deg, var(--gold-3, #ffd98a) 0%, var(--gold, #d98f1f) 100%);
  color: #4b2a06;
  box-shadow: 0 3px 0 rgba(92, 50, 6, .55), 0 7px 16px rgba(48, 6, 4, .38),
              inset 0 1px rgba(255, 255, 255, .75);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 246, 218, .6);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.dock .dock__btn svg { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.9 }
.dock .dock__btn span { font-size: 11px; font-weight: 700 }
@media (hover: hover) {
  .dock .dock__btn:hover {
    filter: brightness(1.09);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(92, 50, 6, .5), 0 10px 20px rgba(48, 6, 4, .42),
                inset 0 1px rgba(255, 255, 255, .85);
  }
}
.dock .dock__btn:active,
.dock .dock__btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(92, 50, 6, .55), 0 2px 6px rgba(48, 6, 4, .3),
              inset 0 1px rgba(255, 255, 255, .6);
}
.dock .dock__btn:focus-visible { outline: 2px solid var(--cta, #e8482f); outline-offset: 2px }

/* 退出入口稍收敛，但仍是实底、仍然读得清 */
.dock .dock__btn--muted { filter: saturate(.7) brightness(.97) }
.dock .dock__btn--muted:hover { filter: saturate(.85) brightness(1.05) }

/* 后台入口单独提亮，避免被通用规则压暗 */
.dock .dock__btn--admin {
  background: linear-gradient(180deg, #fff2c8 0%, #ffcb52 100%);
  border-color: #966008;
  box-shadow: 0 3px 0 rgba(92, 50, 6, .55), 0 7px 18px rgba(255, 190, 60, .35),
              inset 0 1px rgba(255, 255, 255, .9);
}

/* 浅色主题：仍是实体金色，只把外阴影收轻一点 */
[data-theme="light"] .dock .dock__btn {
  border-color: #a87410;
  box-shadow: 0 3px 0 rgba(120, 80, 10, .4), 0 6px 14px rgba(60, 70, 95, .22),
              inset 0 1px rgba(255, 255, 255, .8);
}
[data-theme="light"] .dock .dock__btn:hover { filter: brightness(1.06) }

@media (max-width: 560px) {
  .dock { gap: 5px }
  .dock .dock__btn {
    height: 46px;
    padding: 5px 2px;
    min-width: 0;
    font-size: 10.5px;
  }
  .dock .dock__btn svg { width: 18px; height: 18px }
  .dock .dock__btn span { font-size: 10.5px }
}

/* ---------- 4. 登录卡新增控件 ---------- */
.ddz-remember {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin: 0 0 12px; font-size: 12px; line-height: 1.4; cursor: pointer;
  color: inherit; opacity: .9;
}
.ddz-remember input {
  width: 15px; height: 15px; flex: 0 0 auto;
  accent-color: #e8482f; cursor: pointer;
}
.ddz-remember small {
  display: block; width: 100%; margin-left: 22px;
  font-size: 11px; font-weight: 400; opacity: .62;
}
.ddz-captcha {
  margin: 0 0 12px; padding: 10px 11px;
  border: 1px dashed rgba(255, 214, 130, .45);
  border-radius: 10px;
  background: rgba(255, 214, 130, .07);
}
.ddz-captcha__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; opacity: .78; margin-bottom: 6px;
}
.ddz-captcha__head button {
  border: 0; background: none; color: #e8482f;
  font-size: 11px; cursor: pointer; padding: 2px 4px;
}
.ddz-captcha__q { font-size: 13px; font-weight: 700; margin-bottom: 7px }
.ddz-captcha input {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(150, 108, 44, .3);
  background: rgba(255, 255, 255, .7);
  color: #3a2a14; font-size: 16px;
}
[data-theme="dark"] .ddz-captcha input,
[data-theme="ocean"] .ddz-captcha input,
[data-theme="forest"] .ddz-captcha input {
  background: rgba(255, 255, 255, .09); color: inherit;
  border-color: rgba(255, 255, 255, .18);
}
.ddz-reg { font-size: 11px; opacity: .68; margin-top: 2px; font-weight: 400 }
.ddz-lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; opacity: .72; margin: 0 0 10px;
}
.ddz-lb-bar button {
  border: 1px solid rgba(150, 108, 44, .35); background: rgba(255, 255, 255, .08);
  color: inherit; border-radius: 8px; padding: 5px 10px; font-size: 11px; cursor: pointer;
}
.ddz-lb-bar button:hover { background: rgba(255, 214, 130, .18) }

/* ---------- 5. 设置浮层里的账号区 ---------- */
.ddz-acct {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line, rgba(150, 108, 44, .28));
}
.ddz-acct__label {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: var(--muted, #8a7350); margin-bottom: 6px;
}
.ddz-acct__hint {
  margin: 0 0 10px; font-size: 11.5px; line-height: 1.55;
  color: var(--muted, #8a7350);
}
.ddz-acct__del {
  width: 100%; padding: 8px; font-size: 12.5px; font-weight: 700;
  border-radius: 11px; cursor: pointer; letter-spacing: 0; text-shadow: none;
  border: 1px solid rgba(226, 60, 60, .5);
  background: rgba(226, 60, 60, .09);
  color: #d8413a; box-shadow: none;
}
.ddz-acct__del:hover { background: rgba(226, 60, 60, .18); border-color: #d8413a }

/* ---------- 6. 通用弹窗：登录更新公告 / 注销确认 ---------- */
.ddz-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(6, 8, 14, .62);
  opacity: 0; transition: opacity .2s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.ddz-modal.is-open { opacity: 1 }
.ddz-modal__card {
  width: min(460px, 100%); max-height: min(82vh, 640px); overflow-y: auto;
  box-sizing: border-box; padding: 20px 20px 16px;
  background: var(--panel-2, #fffcf3); color: var(--text, #43301a);
  border: 1px solid var(--line-2, rgba(212, 152, 62, .55)); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  transform: translateY(10px) scale(.98);
  transition: transform .22s cubic-bezier(.2, 1.2, .4, 1);
}
.ddz-modal.is-open .ddz-modal__card { transform: none }
.ddz-modal__head {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.ddz-modal__head h3 {
  margin: 0; font-size: 17px; font-weight: 800;
  line-height: 1.35; word-break: break-word;
}
.ddz-modal__badge {
  font-size: 11px; font-weight: 800; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(217, 143, 31, .16); border: 1px solid rgba(217, 143, 31, .5);
  color: var(--gold-2, #b06f10);
}
.ddz-modal__badge--danger {
  background: rgba(226, 60, 60, .12); border-color: rgba(226, 60, 60, .45); color: #d33b34;
}
.ddz-modal__meta { font-size: 11.5px; color: var(--muted, #8a7350); margin-bottom: 12px }
.ddz-modal__body {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13.5px; line-height: 1.75;
  padding: 12px 14px; margin-bottom: 16px; max-height: 44vh; overflow-y: auto;
  border-radius: 12px; background: rgba(128, 128, 128, .08);
  border: 1px solid var(--line, rgba(150, 108, 44, .22));
}
.ddz-modal__note {
  font-size: 12.5px; line-height: 1.7; color: var(--muted, #8a7350); margin: 0 0 14px;
}
.ddz-modal__field { margin-bottom: 12px }
.ddz-modal__field label {
  display: block; font-size: 12px; color: var(--muted, #8a7350); margin-bottom: 6px;
}
.ddz-modal__input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 14px;
  border-radius: 10px; outline: none;
  border: 1px solid var(--line-2, rgba(212, 152, 62, .55));
  background: var(--panel, #fff); color: var(--text, #43301a);
}
[data-theme="dark"] .ddz-modal__input,
[data-theme="ocean"] .ddz-modal__input,
[data-theme="forest"] .ddz-modal__input {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2);
}
.ddz-modal__input:focus {
  border-color: var(--gold-2, #b06f10); box-shadow: 0 0 0 3px rgba(217, 143, 31, .18);
}
.ddz-modal__check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12.5px; color: var(--text, #43301a); margin-bottom: 10px;
}
.ddz-modal__check input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #e8482f }
.ddz-modal__err { min-height: 18px; margin-bottom: 8px; font-size: 12px; color: #d33b34 }
.ddz-modal__foot { display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap }
.ddz-modal__foot button {
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  border-radius: 11px; cursor: pointer;
  letter-spacing: 0; text-shadow: none; box-shadow: none;
}
.ddz-modal__cancel {
  border: 1px solid var(--line-2, rgba(212, 152, 62, .55));
  background: transparent; color: var(--muted, #8a7350);
}
.ddz-modal__ok {
  border: 1px solid #b06f10; color: #4b2a06;
  background: linear-gradient(180deg, var(--gold-3, #ffd98a), var(--gold, #d98f1f));
}
.ddz-modal__danger {
  border: 1px solid #b52a22; color: #fff;
  background: linear-gradient(180deg, #ef5a4c, #c62f24);
}
.ddz-modal__foot button:disabled { opacity: .55; cursor: wait }

@media (max-width: 560px) {
  .theme-pop { max-height: 82vh; overflow-y: auto }
  .ddz-modal { padding: 12px }
  .ddz-modal__card { width: 100%; max-height: 84vh; padding: 18px 16px 14px }
  .ddz-modal__foot button { flex: 1 1 0 }
}

/* ---------- 8. CF 币图标 ---------- */
.bean-coin {
  display: inline-block; width: 15px; height: 15px; flex: 0 0 auto;
  vertical-align: -2px; margin-right: 3px; border-radius: 50%;
  background: linear-gradient(180deg, #f6cf6a, #d99420);
  border: 1px solid #b8791d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  position: relative;
}
.bean-coin::after {
  content: "C"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 9px/1 system-ui, sans-serif; color: #7d4e10;
}
svg.coin {
  width: 1.05em; height: 1.05em; display: inline-block;
  vertical-align: -.16em; margin-right: 2px; flex: 0 0 auto;
}
.beans-mini, .lb-beans, .lb-me-beans, .player-chip__beans {
  display: inline-flex; align-items: center; gap: 2px;
}

/* ---------- 9. 成长中心 ---------- */
.pg-fab {
  position: fixed; right: 14px; bottom: 58px; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 52px; padding: 7px 6px 6px;
  border: 1px solid #b8791d; border-radius: 14px;
  color: #4b2a06; background: linear-gradient(180deg, var(--gold-3, #ffd98a), var(--gold, #d98f1f));
  box-shadow: 0 4px 12px rgba(90, 55, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
  cursor: pointer; font: 700 11px/1.1 system-ui, sans-serif;
  transition: transform .16s ease, filter .16s ease;
}
.pg-fab:hover { transform: translateY(-2px); filter: brightness(1.05) }
.pg-fab:active { transform: translateY(0) }
.pg-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px }
/* 弹层使用独立的不透明配色：不复用半透明的 --card-bg，避免大厅内容透出影响阅读 */
.pg-panel {
  --pg-bg:#fff8e9; --pg-soft:rgba(120,80,20,.08); --pg-text:#3a2915;
  --pg-muted:#725a34; --pg-line:rgba(142,96,31,.28); --pg-gold:#b87816;
  position: fixed; inset: 0; z-index: 60; display: none; color: var(--pg-text)
}
[data-theme="dark"] .pg-panel {
  --pg-bg:#20232b; --pg-soft:rgba(255,255,255,.07); --pg-text:#f3ede0;
  --pg-muted:#c0b7a7; --pg-line:rgba(255,255,255,.16); --pg-gold:#e9b84a
}
[data-theme="ocean"] .pg-panel {
  --pg-bg:#102f4d; --pg-soft:rgba(255,255,255,.07); --pg-text:#eaf6ff;
  --pg-muted:#a9c8dc; --pg-line:rgba(160,215,240,.22); --pg-gold:#f0c24a
}
[data-theme="forest"] .pg-panel {
  --pg-bg:#1d3c26; --pg-soft:rgba(255,255,255,.07); --pg-text:#eef7e0;
  --pg-muted:#b9d0ae; --pg-line:rgba(190,225,160,.22); --pg-gold:#e7b53a
}
[data-theme="light"] .pg-panel {
  --pg-bg:#ffffff; --pg-soft:rgba(60,70,95,.06); --pg-text:#2a2f3a;
  --pg-muted:#5f6b7a; --pg-line:rgba(60,70,95,.18); --pg-gold:#a87410
}
.pg-panel.on { display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box }
.pg-mask {
  position: absolute; inset: 0; background: rgba(10, 6, 4, .68);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px)
}
.pg-card {
  position: relative; z-index: 1;
  width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--pg-bg); color: var(--pg-text);
  border: 1px solid var(--pg-line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.pg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px }
.pg-head h3 { margin: 0; font-size: 17px; font-weight: 800 }
.pg-x { border: 0; background: transparent; color: var(--pg-muted); font-size: 24px; line-height: 1; cursor: pointer }
.pg-tabs { display: flex; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--pg-line) }
.pg-tabs button {
  flex: 1 1 0; padding: 8px 6px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--pg-muted); font: 600 13px/1 system-ui, sans-serif;
}
.pg-tabs button.on { color: #4b2a06; background: linear-gradient(180deg, #ffd98a, #d98f1f) }
.pg-body { padding: 14px 18px 20px; overflow-y: auto; min-height: 180px }
.pg-loading, .pg-empty { padding: 30px 10px; text-align: center; color: var(--pg-muted); font-size: 13px }
.pg-hint { margin: 0 0 12px; font-size: 12.5px; color: var(--pg-muted) }
.pg-subtitle { margin: 16px 0 8px; font-size: 13px; font-weight: 800 }
.pg-tier { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; background: var(--pg-soft) }
.pg-tier-badge {
  flex: 0 0 auto; min-width: 74px; padding: 14px 10px; text-align: center;
  border-radius: 12px; color: #4b2a06; font: 800 15px/1.2 system-ui, sans-serif;
  background: linear-gradient(180deg, #ffd98a, #d98f1f);
}
.pg-tier-meta { flex: 1 1 auto; min-width: 0 }
.pg-tier-points { font-size: 14px } .pg-tier-points b { font-size: 19px }
.pg-tier-next { margin-top: 3px; font-size: 12px; color: var(--pg-muted) }
.pg-bar { height: 7px; margin-top: 8px; border-radius: 5px; background: var(--pg-soft); overflow: hidden }
.pg-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #d98f1f, #f6cf6a) }
.pg-list { display: flex; flex-direction: column; gap: 7px }
.pg-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--pg-line); border-radius: 11px; font-size: 13px }
.pg-row.me { border-color: var(--pg-gold); background: var(--pg-soft) }
.pg-rank { flex: 0 0 26px; font-weight: 800; color: var(--pg-gold) }
.pg-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pg-tier-mini { font-size: 11px; color: var(--pg-muted) }
.pg-num { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums }
.pg-ach-icon { flex: 0 0 30px; font-size: 20px; text-align: center }
.pg-ach-main { flex: 1 1 auto; min-width: 0 }
.pg-ach-name { font-weight: 700 } .pg-rew { color: var(--pg-gold); font-size: 12px }
.pg-ach-desc { margin: 2px 0; font-size: 12px; color: var(--pg-muted) }
.pg-ach-prog { margin-top: 3px; font-size: 11px; color: var(--pg-muted) }
.pg-act { flex: 0 0 auto }
.pg-btn {
  padding: 6px 12px; border: 1px solid #b8791d; border-radius: 9px; cursor: pointer;
  color: #4b2a06; background: linear-gradient(180deg, #ffd98a, #d98f1f);
  font: 700 12px/1 system-ui, sans-serif;
}
.pg-btn.primary { padding: 9px 16px }
.pg-btn:disabled { opacity: .55; cursor: wait }
.pg-claimed, .pg-locked { font-size: 12px; color: var(--pg-muted) }
.pg-rewards { display: flex; flex-wrap: wrap; gap: 6px }
.pg-reward { padding: 5px 10px; border: 1px solid var(--pg-line); border-radius: 8px; font-size: 12px }
.pg-fb-form { display: flex; flex-direction: column; gap: 8px }
.pg-fb-form select, .pg-fb-form input, .pg-fb-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--pg-line); border-radius: 9px;
  background: var(--pg-bg); color: var(--pg-text); font: 13px/1.5 system-ui, sans-serif;
  box-sizing: border-box;
}
.pg-fb-form .pg-btn { align-self: flex-end }
.pg-fb-status { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(180, 120, 29, .16); color: var(--pg-gold) }
.pg-fb-status.ok { background: rgba(46, 139, 87, .16); color: #2e8b57 }
.pg-fb-reply { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--pg-soft); font-size: 12px }
.pg-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90;
  padding: 10px 18px; border-radius: 10px; color: #fff; font-size: 13px;
  background: #3c8c5a; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: opacity .4s ease;
}
.pg-toast.bad { background: #c0392b } .pg-toast.out { opacity: 0 }
@media (max-width: 560px) {
  .pg-fab { right: 10px; bottom: 52px; min-width: 48px }
  .pg-card { width: 100%; max-height: 92vh; border-radius: 14px }
  .pg-body { padding: 12px }
  .pg-tabs button { font-size: 12px }
  .pg-tier { gap: 10px; padding: 10px }
}

/* ---------- 7. 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  #screen-lobby .lobby-bg,
  #screen-lobby .lobby-bg__rays,
  #screen-lobby .lobby-lantern,
  #screen-lobby .lobby-cloud,
  .notice-bar .notice-bar__track { animation: none }
  .dock .dock__btn { transition: none }
  .ddz-modal, .ddz-modal__card { transition: none }
  .notice-bar__viewport { overflow-x: auto }
}

/* ---------- 8. 人机强度 / 对局赠币 ---------- */
.difficulty-box { margin-top: 14px }
.difficulty-pick { display: flex; gap: 8px; margin-top: 6px }
.difficulty-pick button {
  flex: 1 1 0; padding: 9px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border, rgba(128,96,40,.28));
  background: var(--panel-2, rgba(255,255,255,.5)); color: var(--text, #4a3110);
  font: 600 13px/1 system-ui, sans-serif; transition: transform .12s, box-shadow .12s;
}
.difficulty-pick button:hover { transform: translateY(-1px) }
.difficulty-pick button.is-on {
  border-color: #d98f1f; color: #5a3600;
  background: linear-gradient(180deg, #ffe2a0, #f0b443);
  box-shadow: 0 2px 10px rgba(217,143,31,.35);
}
.bonus-tip {
  position: fixed; left: 50%; top: 18%; transform: translate(-50%, -14px) scale(.94);
  z-index: 9999; display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; pointer-events: none;
  color: #5a3600; font: 700 15px/1.3 system-ui, sans-serif;
  background: linear-gradient(180deg, #fff0c4, #f4c65e);
  border: 1px solid #d98f1f; box-shadow: 0 10px 34px rgba(120,72,10,.4);
  opacity: 0; transition: opacity .35s, transform .35s;
}
.bonus-tip.is-on { opacity: 1; transform: translate(-50%, 0) scale(1) }
.bonus-tip b { font-size: 18px; color: #a54b00 }
.bonus-tip__coin, .bonus-line .coin {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block; vertical-align: -3px;
  background: radial-gradient(circle at 35% 30%, #fff2b8, #f5c451 60%, #c8912f);
  box-shadow: inset 0 0 0 1px #c8912f;
}
.bonus-line {
  margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  color: #6b4400; font: 700 13px/1.4 system-ui, sans-serif;
  background: linear-gradient(180deg, rgba(255,232,170,.9), rgba(244,198,94,.9));
  border: 1px solid #e0a93a;
}
.bonus-line b { color: #a54b00; font-size: 16px }
@media (prefers-reduced-motion: reduce) {
  .bonus-tip, .difficulty-pick button { transition: none }
}
