/* ============================================================
 * css/screens.css — 通用页面布局 + 壳层结构 + 各页面专属样式
 * 归属：壳层（app.js 作者）维护 §A~§E；各页面作者在 §F 之后追加自己页面的段落。
 *
 * 约定：
 *  - 画布固定 448×960，所有尺寸写死像素。
 *  - §A 的 :where(:root) 变量只是回退值；theme.css 定义的同名变量优先（特异性更高）。
 *  - §E 壳层回退组件（.fb-*）只在 window.C 未就绪时由 app.js 渲染；C 就绪后由 theme.css 负责样式。
 *  - 按钮基类 .btn / .btn-wood / .btn-red / .btn-stone 在此只给 :where() 零特异性回退，theme.css 一律覆盖。
 *  - 弹窗 DOM（.modal-mask/.modal/.modal-title/.modal-body/.modal-btns/.modal-close）、
 *    .toast、.ui-loading、.reward-* 由 app.js 生成（挂在 #ui-layer 下），样式归本文件所有。
 * ============================================================ */

/* ---------- §A 变量回退（theme.css 未加载时生效） ---------- */
:where(:root) {
  --wood-dark: #3a1d0c;
  --wood: #6b3a16;
  --paper: #e8d3a3;
  --paper-light: #f3e6c4;
  --paper-dark: #c9a96e;
  --red: #a8261b;
  --red-bright: #d8321f;
  --gold: #f2c245;
  --gold-dark: #b8860b;
  --ink: #2b1d12;
  --ink-soft: #5b4630;
  --jade: #3f8f5a;
  --purple: #7b3fb5;
  --blue: #2f6fb5;
  --q-jia: #f2c245;
  --q-yi: #9b59d6;
  --q-bing: #3b82f6;
  --q-ding: #4caf50;
  --font-brush: 'Ma Shan Zheng', 'Zhi Mang Xing', 'STKaiti', 'KaiTi', 'BiauKai', serif;
  --font-body: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
}

/* ---------- §B 舞台与缩放（结构，壳层所有） ---------- */
:where(html, body) {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  touch-action: manipulation;
}
#app {
  position: absolute;
  left: 0;
  top: 0;
  width: 448px;
  height: 960px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--paper);
  user-select: none;
  -webkit-user-select: none;
  contain: layout paint;
}
#app img { -webkit-user-drag: none; }
#app input, #app textarea { user-select: text; -webkit-user-select: text; }

/* 顶栏（广播 48 + 掌门信息 60 = 108）、内容区、底栏（72） */
#chrome-top {
  position: absolute;
  left: 0; top: 0;
  width: 448px; height: 108px;
  z-index: 20;
}
#screen {
  position: absolute;
  left: 0; top: 108px;
  width: 448px; height: 780px;
  z-index: 10;
  overflow: hidden;
}
#chrome-bottom {
  position: absolute;
  left: 0; bottom: 0;
  width: 448px; height: 72px;
  z-index: 20;
}
/* 无顶底栏页面（战斗/剧情）：app.js 给 #app 加 .no-chrome */
#app.no-chrome #chrome-top, #app.no-chrome #chrome-bottom { display: none; }
#app.no-chrome #screen { top: 0; height: 960px; }
/* #fx 画布与 #overlay（飘字/特效 DOM 层）归 fx.js / battle.css 所有，壳层不设样式。
 * 壳层的弹窗 / toast / loading 放在自己的 #ui-layer（app.js 启动时创建，位于 #overlay 之后），
 * 避免与 FX 的 pointer-events:none 冲突。 */
#ui-layer {
  position: absolute;
  left: 0; top: 0;
  width: 448px; height: 960px;
  z-index: 40;
  pointer-events: none;
}
#ui-layer > * { pointer-events: auto; }
#ui-layer > .toast-wrap { pointer-events: none; }

/* ---------- §C 通用页面内容区 ---------- */
.screen-content {
  position: relative;
  width: 448px;
  height: 780px;               /* 960 - 48 - 60 - 72 */
  overflow: hidden;
  background: var(--paper);
}
.screen-content.full { height: 960px; }
.scroll-y {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.scroll-y::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { width: 0; height: 0; }
.screen-enter { animation: screenFadeIn 150ms ease-out both; }
@keyframes screenFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 通用页面标题条（朱红横条 + 毛笔金字），页面可直接用 */
.page-title {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-family: var(--font-brush);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--gold);
  background: linear-gradient(#c23a24, #8f1d13);
  text-shadow: 0 1px 0 #5a0d06, 0 0 6px rgba(0,0,0,.35);
  border-top: 2px solid #5a2a10;
  border-bottom: 2px solid #5a2a10;
  box-shadow: inset 0 1px 0 rgba(255,220,150,.35), 0 2px 4px rgba(0,0,0,.35);
}
/* 页面内子标题（宣纸上的毛笔字） */
.sub-title {
  font-family: var(--font-brush);
  font-size: 22px;
  color: var(--ink);
  text-align: center;
  padding: 6px 0;
  letter-spacing: 3px;
}

/* ---------- §D 占位“施工中”页 ---------- */
.wip-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,250,230,.55), transparent 60%),
    linear-gradient(180deg, #ead7a9, #d9bf86);
  color: var(--ink);
}
.wip-page .wip-seal {
  width: 120px; height: 120px;
  border: 4px solid var(--red);
  border-radius: 12px;
  transform: rotate(-12deg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brush);
  font-size: 44px;
  color: var(--red);
  letter-spacing: 6px;
  text-indent: 6px;
  opacity: .85;
  box-shadow: inset 0 0 0 2px rgba(168,38,27,.25);
  margin-bottom: 26px;
}
.wip-page .wip-name {
  font-family: var(--font-brush);
  font-size: 34px;
  letter-spacing: 6px;
  color: var(--ink);
}
.wip-page .wip-tip {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}
.wip-page .wip-key {
  margin-top: 6px;
  font-size: 11px;
  color: #9a8460;
  font-family: monospace;
}
.wip-page .btn { margin-top: 28px; }

/* ---------- §E 壳层回退组件（window.C 未就绪时） ---------- */
/* E1 广播条 */
.fb-broadcast {
  position: relative;
  height: 48px;
  background: linear-gradient(90deg, #2a1608, #4a2a12 50%, #2a1608);
  border-bottom: 2px solid #1a0c04;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.45);
  overflow: hidden;
}
.fb-broadcast::before, .fb-broadcast::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 60px;
  background: radial-gradient(circle at 30% 50%, rgba(242,194,69,.18), transparent 60%);
  pointer-events: none;
}
.fb-broadcast::after { right: 0; transform: scaleX(-1); }
.fb-badge {
  position: absolute; left: 6px; top: 6px;
  width: 64px; height: 36px;
  background: linear-gradient(135deg, #d8321f, #8f1d13);
  border: 2px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--font-brush);
  font-size: 15px;
  line-height: 16px;
  text-align: center;
  padding-top: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
  z-index: 2;
}
.broadcast-track {
  position: absolute; left: 80px; right: 8px; top: 0; height: 48px;
  overflow: hidden;
}
.broadcast-text {
  position: absolute; left: 0; top: 0;
  height: 48px; line-height: 48px;
  white-space: nowrap;
  color: #fff8e6;
  font-size: 14px;
  text-shadow: 0 1px 2px #000;
  will-change: transform;
}
.broadcast-text b { color: var(--gold); font-weight: normal; }
.broadcast-text i { color: #ffb0a0; font-style: normal; }

/* E2 掌门信息条 */
.fb-master {
  position: relative;
  height: 60px;
  background: linear-gradient(180deg, #5a3416, #3a1d0c);
  border-bottom: 2px solid #1a0c04;
  color: #fff3d6;
  font-size: 13px;
}
.fb-master .fb-lv {
  position: absolute; left: 8px; top: 6px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe08a, #b8860b 65%, #6b3a16);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px #3a1d0c, 0 2px 4px rgba(0,0,0,.6);
  color: #3a1d0c;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  line-height: 46px;
}
.fb-master .fb-name {
  position: absolute; left: 62px; top: 6px;
  font-family: var(--font-brush);
  font-size: 18px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.fb-master .fb-vip {
  position: absolute; left: 130px; top: 8px;
  padding: 0 6px; height: 18px; line-height: 18px;
  border-radius: 9px;
  background: linear-gradient(#ffd868, #d99a0a);
  color: #6b1a0a;
  font-weight: 700;
  font-size: 11px;
}
.fb-master .fb-exp {
  position: absolute; left: 62px; top: 34px;
  width: 124px; height: 12px;
  border: 1px solid #1a0c04;
  border-radius: 6px;
  background: #2a1608;
  overflow: hidden;
}
.fb-master .fb-exp i {
  display: block; height: 100%;
  background: linear-gradient(#ff6a4a, #b71c0c);
  border-radius: 6px;
}
.fb-master .fb-exp b {
  position: absolute; left: 0; right: 0; top: 0;
  font-size: 9px; line-height: 12px;
  text-align: center; font-weight: normal;
  color: #fff; text-shadow: 0 0 2px #000;
}
.fb-master .fb-res {
  position: absolute; right: 6px; top: 6px;
  width: 244px; height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 6px;
}
.fb-master .fb-res > div {
  display: flex; align-items: center;
  height: 22px;
  white-space: nowrap;
  overflow: hidden;
}
.fb-master .fb-res .ico {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-right: 4px;
  flex: none;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.5);
}
.fb-master .ico.gold { background: radial-gradient(circle at 35% 30%, #fff2b0, #f2c245 45%, #b8860b); }
.fb-master .ico.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #d8dde6 45%, #7a8494); }
.fb-master .ico.ticket { background: radial-gradient(circle at 35% 30%, #ffd0c0, #d8321f 50%, #7a150a); }
.fb-master .ico.stamina { background: radial-gradient(circle at 35% 30%, #d8ffe0, #3f8f5a 50%, #1e5a33); }
.fb-master .fb-res .val { color: #fff; font-size: 13px; text-shadow: 0 1px 1px #000; }
.fb-master .fb-res .plus {
  margin-left: 4px;
  width: 16px; height: 16px; line-height: 15px;
  border-radius: 50%;
  background: linear-gradient(#ffd868, #d99a0a);
  color: #6b1a0a; font-weight: 700; font-size: 13px;
  text-align: center;
  flex: none;
}

/* E3 底部六大主菜单 */
.fb-nav {
  height: 72px;
  display: flex;
  background: linear-gradient(180deg, #7a1d12, #4a1008 60%, #2a0804);
  border-top: 3px solid #b8860b;
  box-shadow: inset 0 1px 0 rgba(255,230,160,.4);
}
.fb-nav .fb-nav-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4px;
  color: var(--gold);
  font-family: var(--font-brush);
  font-size: 17px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(0,0,0,.6);
  border-right: 1px solid rgba(0,0,0,.45);
  box-shadow: inset 1px 0 0 rgba(255,220,150,.12);
  cursor: pointer;
}
.fb-nav .fb-nav-item:last-child { border-right: 0; }
.fb-nav .fb-nav-item svg {
  width: 38px; height: 38px;
  margin-bottom: 1px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.6));
}
.fb-nav .fb-nav-item.active {
  background: linear-gradient(180deg, #d24a2c, #8f1d13 70%, #5a0d06);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 12px rgba(255,220,120,.35);
  color: #fff2b0;
}
.fb-nav .fb-nav-item .dot {
  position: absolute; right: 10px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red-bright);
  border: 1px solid #fff;
}

/* ---------- §E4 按钮回退（零特异性，theme.css 覆盖） ---------- */
:where(.btn) {
  display: inline-block;
  min-width: 96px;
  height: 40px;
  line-height: 38px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #2a1608;
  font-family: var(--font-brush);
  font-size: 20px;
  letter-spacing: 3px;
  text-indent: 3px;
  text-align: center;
  color: var(--gold);
  background: linear-gradient(180deg, #8a5a2b, #5a3212 55%, #3a1d0c);
  box-shadow: inset 0 1px 0 rgba(255,220,150,.45), inset 0 -2px 3px rgba(0,0,0,.45), 0 2px 3px rgba(0,0,0,.5);
  text-shadow: 0 1px 1px #000;
  cursor: pointer;
  vertical-align: middle;
}
:where(.btn:active) { transform: translateY(1px); filter: brightness(.9); }
:where(.btn.btn-red) {
  color: #ffe58a;
  background: linear-gradient(180deg, #e04a2a, #a8261b 55%, #6e1208);
  border-color: #4a0a04;
}
:where(.btn.btn-stone), :where(.btn[disabled]), :where(.btn.disabled) {
  color: #d9d4c8;
  background: linear-gradient(180deg, #8d8b85, #5e5c56 55%, #3c3a35);
  border-color: #2a2926;
  cursor: default;
}
:where(.btn.btn-sm) { min-width: 64px; height: 30px; line-height: 28px; font-size: 16px; padding: 0 10px; letter-spacing: 2px; }
:where(.btn.btn-lg) { min-width: 140px; height: 48px; line-height: 46px; font-size: 24px; }

/* ---------- §E5 弹窗 / 提示 / 加载 / 喜从天降（app.js 所有） ---------- */
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  animation: maskIn 150ms ease-out both;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal-mask.closing { animation: maskOut 120ms ease-in both; }
@keyframes maskOut { from { opacity: 1; } to { opacity: 0; } }
.modal {
  position: relative;
  width: 380px;
  max-height: 820px;
  display: flex; flex-direction: column;
  background:
    var(--tex-wood, none),
    linear-gradient(180deg, #7d4a26 0%, #5e3116 26%, #46220e 68%, #2e1508 100%);
  border: 3px solid #9c6733;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(247, 208, 110, .45),
    inset 0 2px 0 rgba(255, 224, 170, .3),
    inset 0 -3px 8px rgba(0, 0, 0, .5),
    0 0 0 2px #180b03, 0 10px 30px rgba(0, 0, 0, .8);
  padding: 0 8px 10px;
  box-sizing: border-box;
  animation: modalIn 180ms cubic-bezier(.2,.9,.3,1.2) both;
}
.modal.wide { width: 430px; }
@keyframes modalIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 四角金色包角 */
.modal::before, .modal::after,
.modal .corner-b::before, .modal .corner-b::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 3px solid var(--gold);
  pointer-events: none;
}
.modal::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.modal::after { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.modal .corner-b::before { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.modal .corner-b::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.modal-title {
  position: relative;
  height: 46px; line-height: 46px;
  margin: 0 -8px;
  text-align: center;
  font-family: var(--font-brush);
  font-size: 26px;
  letter-spacing: 4px;
  color: #ffeeb8;
  background:
    var(--tex-wood, none),
    linear-gradient(180deg, #d9482e 0%, #b52a1c 34%, #941c12 68%, #6b100a 100%);
  border-bottom: 2px solid #480904;
  border-radius: 5px 5px 0 0;
  text-shadow: 0 1px 0 #5a0d06, 0 2px 3px rgba(0,0,0,.5), 0 0 9px rgba(255,180,90,.35);
  box-shadow: inset 0 1px 0 rgba(255,220,150,.45), inset 0 -4px 8px rgba(0,0,0,.3);
  flex: none;
}
/* 红条两端祥云卷 */
.modal-title::before, .modal-title::after {
  content: '';
  position: absolute; top: 7px;
  width: 32px; height: 32px;
  opacity: .85; pointer-events: none;
  background: var(--tex-scroll-cloud) center / 100% 100% no-repeat;
}
.modal-title::before { left: 10px; }
.modal-title::after { right: 10px; transform: scaleX(-1); }
.modal-close {
  position: absolute; right: -8px; top: -9px;
  width: 38px; height: 38px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 80% 60% at 40% 24%, rgba(255,195,155,.55), transparent 70%),
    linear-gradient(180deg, #db4c31 0%, #b02419 42%, #7a120b 100%);
  border: 2px solid #f0cd6e;
  font-size: 0; color: transparent;
  box-shadow: 0 0 0 1px #3f0a06, inset 0 0 0 1px rgba(255,225,150,.4), inset 0 -3px 5px rgba(0,0,0,.45), 0 3px 6px rgba(0,0,0,.65);
  cursor: pointer;
  z-index: 3;
  transition: transform .1s, filter .12s;
}
.modal-close::before, .modal-close::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 4.5px;
  margin: -2.25px 0 0 -11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff6cf, #f2c245 55%, #b8860b);
  box-shadow: 0 0 0 1px rgba(70,20,4,.8), 0 1px 2px rgba(0,0,0,.5);
}
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:active { transform: scale(.92); }
.modal-body {
  margin-top: 8px;
  background:
    var(--tex-damask, none) center top / 150px 150px repeat,
    var(--tex-paper, none),
    linear-gradient(180deg, #f8eed3 0%, #f2e3bf 45%, #e7d3a6 100%);
  border: 1px solid #b8945a;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 232, .7),
    inset 0 0 22px rgba(150, 105, 45, .3),
    inset 0 0 60px rgba(180, 130, 60, .16);
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 40px;
}
.modal-body.no-pad { padding: 0; }
.modal-body p { margin: 0 0 6px; }
.modal-body .desc { font-size: 12px; color: var(--ink-soft); }
.modal-btns {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
}
.modal-btns:empty { display: none; }
.modal-input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 2px solid #b8945a;
  border-radius: 4px;
  background: #fffaf0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
}
.modal-input:focus { border-color: var(--red); }

/* 命名弹窗 */
.name-dialog .tip { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 10px; }
.name-dialog .name-suggest { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.name-dialog .name-suggest span {
  padding: 2px 8px; border-radius: 12px;
  background: #e2cfa0; color: var(--ink);
  font-size: 13px; cursor: pointer;
}

/* 喜从天降 */
.reward-body { text-align: center; }
.reward-body .reward-line { font-size: 16px; color: var(--ink); margin: 4px 0 12px; letter-spacing: 1px; }
.reward-body .reward-line b { color: var(--red); font-weight: 700; }
.reward-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.reward-item { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.reward-item .reward-ico {
  width: 64px; height: 64px; flex: none;
  border-radius: 9px;
  border: 2px solid #7a4f00;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 38%, #fdf6e0 0%, #ecdcb4 58%, #cfb37f 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brush);
  font-size: 30px; color: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 235, .85),
    inset 0 -6px 10px rgba(140, 95, 30, .28),
    0 0 0 1px #2b1d12, 0 2px 5px rgba(0, 0, 0, .5);
}
.reward-item .reward-ico img, .reward-item .reward-ico svg { width: 100%; height: 100%; object-fit: contain; }
.reward-item .reward-ico .cnt {
  position: absolute; right: 2px; bottom: 0;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000;
}
.reward-item.q-甲 .reward-ico { border-color: var(--q-jia); box-shadow: 0 0 8px var(--q-jia); }
.reward-item.q-乙 .reward-ico { border-color: var(--q-yi); }
.reward-item.q-丙 .reward-ico { border-color: var(--q-bing); }
.reward-item.q-丁 .reward-ico { border-color: var(--q-ding); }
.reward-item .reward-name { font-size: 15px; color: var(--ink); }
.reward-item .reward-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.reward-item.q-甲 .reward-name { color: #a06a00; }
.reward-item.q-乙 .reward-name { color: var(--q-yi); }
.reward-item.q-丙 .reward-name { color: var(--q-bing); }
.reward-item.q-丁 .reward-name { color: #2e7d32; }

/* toast */
.toast-wrap {
  position: absolute; left: 0; right: 0; top: 300px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  z-index: 60;
}
.toast {
  max-width: 380px;
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(30,16,6,.88);
  border: 1px solid var(--gold-dark);
  color: #fff3d6;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px #000;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  animation: toastIn 200ms ease-out both;
  pointer-events: none;
}
.toast.ok { color: #c8ffd0; border-color: var(--jade); }
.toast.warn { color: #ffe58a; border-color: var(--gold); }
.toast.error { color: #ffb0a0; border-color: var(--red-bright); }
.toast.out { animation: toastOut 300ms ease-in both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-16px); } }

/* loading */
.ui-loading {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 70;
}
.ui-loading .spin {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(242,194,69,.25);
  border-top-color: var(--gold);
  animation: spin 900ms linear infinite;
}
.ui-loading .txt {
  margin-top: 12px;
  font-family: var(--font-brush);
  font-size: 22px; letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 0 1px 2px #000;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 公告列表（左上角标点开） */
.notice-list { padding-left: 18px; margin: 0; }
.notice-list li { margin-bottom: 6px; font-size: 13px; }

/* ---------- §F 各页面专属样式（页面作者在此之后追加，段落用 /* == 页名 == */ 标注） ---------- */
