/* 梦回石光远古乐园 · 游戏界面共用组件（荒野幸存者、兽王之路）。
   面板沿用两款游戏原来的像素风（深色半透明底 + 深色外框 + 双层内描边）；按钮一类的控件做成有质感的立体按钮：
   圆角、上亮下暗的渐变、上半截高光、底部深色厚边与投影；大按钮加白色内描边和斜纹；红点角标带白圈；页签是胶囊分段。
   颜色用变量：每个游戏在自己的舞台上定义面板色（幸存者金棕描边，兽王之路紫色描边）。尺寸都是逻辑像素（舞台 480×270，整体 zoom 放大）。
   手机防闪屏：悬停效果只写在鼠标设备的媒体查询里；不给大量元素常驻 will-change / filter。 */

.sv-stage {
  --px-bg: rgba(26, 20, 40, .94); --px-well: rgba(0, 0, 0, .38); --px-edge: #06041a; --px-hi: #e8c27a; --px-lo: #7a5a2a;
  --px-text: #f4ead2; --px-gold: #ffd257; --px-sub: #c9a2ff;
}
.bw-stage {
  --px-bg: rgba(28, 22, 58, .95); --px-well: rgba(0, 0, 0, .34); --px-edge: #06041a; --px-hi: #b8acff; --px-lo: #5a4ea8;
  --px-text: #f4ead2; --px-gold: #ffd257; --px-sub: #c9a2ff;
}
.sv-stage, .bw-stage {
  /* 按钮质感：上半截高光、斜纹、圆角 */
  --gx-gloss: linear-gradient(180deg, rgba(255, 255, 255, .34) 0, rgba(255, 255, 255, .1) 47%, rgba(255, 255, 255, 0) 50%);
  --gx-stripe: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 5px, rgba(255, 255, 255, 0) 5px 10px);
}

/* 通用像素面板 */
.gx-card { color: var(--px-text); background: var(--px-bg); box-shadow: 0 0 0 1px var(--px-edge), inset 0 0 0 1px var(--px-hi), inset 0 0 0 2px var(--px-lo); }
.gx-well { background: var(--px-well); box-shadow: inset 0 0 0 1px rgba(244, 234, 210, .14); }

/* ================= 首页大按钮（红色立体按钮：白色内描边 + 斜纹 + 厚底边） ================= */
.gx-cta {
  position: relative; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 8px 2px; overflow: hidden; color: #fff; font: inherit; text-align: left;
  background: var(--gx-stripe), var(--gx-gloss), linear-gradient(180deg, #ff8e7e 0, #ef4f50 60%, #d8383f 100%);
  border: 0; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), inset 0 -4px 0 rgba(120, 10, 30, .35), 0 0 0 1px #8a1e2a, 0 3px 0 #8a1e2a, 0 5px 8px rgba(6, 4, 26, .55);
}
.gx-cta .ball {
  display: grid; flex: none; place-items: center; width: 36px; height: 36px; background: radial-gradient(circle at 50% 35%, #fff 0, #f2ecff 60%, #d8cff0 100%); border-radius: 50%;
  box-shadow: 0 2px 0 rgba(120, 20, 30, .45), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.gx-cta .txt { display: flex; flex-direction: column; min-width: 0; }
.gx-cta .txt b { font-size: 19px; line-height: 1.05; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 1px 0 #9a1e30, 1px 0 0 #9a1e30, -1px 0 0 #9a1e30, 0 -1px 0 #9a1e30, 0 2px 0 #7a1222; }
.gx-cta .txt small { margin-top: 2px; color: #fff0ec; font-size: 7.5px; font-weight: bold; white-space: nowrap; text-shadow: 0 1px 0 rgba(120, 10, 30, .5); }
.gx-cta .art { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; background: linear-gradient(180deg, #fff, #f1eafc); border-radius: 8px; box-shadow: 0 2px 0 rgba(120, 20, 30, .4); }
.gx-cta .gx-badge { top: 4px; right: 4px; }
.gx-cta:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), inset 0 -4px 0 rgba(120, 10, 30, .35), 0 0 0 1px #8a1e2a, 0 1px 0 #8a1e2a, 0 2px 4px rgba(6, 4, 26, .55); }

/* 模式卡：彩色立体按钮 + 斜纹 */
.gx-mode {
  position: relative; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 2px 6px 3px; overflow: hidden; color: #fff; font: inherit; text-align: left;
  background: var(--gx-stripe), var(--gx-gloss), linear-gradient(180deg, var(--m1, #a98cff), var(--m2, #6a48c8)); border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 0 0 1px var(--m3, #3a2480), 0 2px 0 var(--m3, #3a2480), 0 3px 5px rgba(6, 4, 26, .5);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gx-mode b { font-size: 9px; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.gx-mode small { overflow: hidden; color: rgba(255, 255, 255, .92); font-size: 7px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.gx-mode.purple { --m1: #b99cff; --m2: #6e46d0; --m3: #3a1e88; }
.gx-mode.red { --m1: #ff9a8e; --m2: #d83c4c; --m3: #7e1424; }
.gx-mode.blue { --m1: #8cc6ff; --m2: #3478dc; --m3: #183e8e; }
.gx-mode.green { --m1: #8ee69c; --m2: #2f9a52; --m3: #145a2c; }
.gx-mode.orange { --m1: #ffc87a; --m2: #ea8226; --m3: #8a420a; }
.gx-mode.locked { filter: saturate(.55) brightness(.92); }
.gx-mode .lock { position: absolute; right: 4px; top: 3px; font-size: 7px; font-style: normal; }
.gx-mode:active { transform: translateY(1px); }

/* ================= 功能方块（浅色立体方块 + 彩色厚底边 + 红点角标） ================= */
.gx-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin: 0; padding: 2px 1px 5px; color: #2c2547; font: inherit;
  background: var(--gx-gloss), linear-gradient(180deg, #ffffff 0, #f1ecfb 100%); border: 0; border-radius: 9px; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 -3px 0 var(--tc, #8a62e0), 0 0 0 1px rgba(6, 4, 26, .7), 0 2px 0 rgba(6, 4, 26, .55), 0 3px 5px rgba(6, 4, 26, .45);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gx-tile .ic { display: grid; place-items: center; width: 22px; height: 22px; background: radial-gradient(circle at 50% 35%, #fff 0, var(--tb, #ece4fd) 75%); border-radius: 50%; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.gx-tile b { font-size: 8px; line-height: 1.15; white-space: nowrap; }
.gx-tile small { color: #6c6390; font-size: 6.5px; line-height: 1.1; white-space: nowrap; }
.gx-tile:active { transform: translateY(1px); }
.gx-tile.t-blue { --tc: #3f84e6; --tb: #d6e7fd; } .gx-tile.t-purple { --tc: #8a58e0; --tb: #e8dcfd; } .gx-tile.t-pink { --tc: #e0569b; --tb: #fde0ee; }
.gx-tile.t-gold { --tc: #e8a51e; --tb: #fdefc8; } .gx-tile.t-green { --tc: #36a656; --tb: #d6f3dd; } .gx-tile.t-red { --tc: #e04a50; --tb: #fddcdc; }
.gx-tile.t-cyan { --tc: #22a0c4; --tb: #d4f0f8; } .gx-tile.t-orange { --tc: #ec8428; --tb: #fde4cc; }
@media (hover: hover) and (pointer: fine) {
  .gx-tile:hover, .gx-mode:hover, .gx-cta:hover { filter: brightness(1.07); }
}
/* 红点角标：带白圈的圆点 */
.gx-badge {
  position: absolute; z-index: 2; top: -4px; right: -4px; display: grid; place-items: center; min-width: 11px; height: 11px; padding: 0 2px; color: #fff;
  font-size: 7px; font-weight: bold; line-height: 1; text-shadow: none; background: linear-gradient(180deg, #ff7a70, #e2303a); border-radius: 6px;
  box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(80, 0, 10, .5); pointer-events: none;
}

/* ================= 资源条、小按钮、玩家名牌 ================= */
.gx-pill {
  display: inline-flex; flex: none; align-items: center; gap: 2px; height: 15px; padding: 0 6px 0 1px; color: var(--px-text); white-space: nowrap;
  background: linear-gradient(180deg, rgba(70, 56, 120, .95), rgba(18, 12, 40, .95)); border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(6, 4, 26, .85);
}
.gx-pill b { color: #fff1c8; font-size: 8.5px; }
.gx-chip {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 1px; min-width: 16px; height: 15px; margin: 0; padding: 0 5px; color: #2c2547; font: inherit; font-size: 8px; font-weight: bold;
  background: var(--gx-gloss), linear-gradient(180deg, #fff, #e6def8); border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(6, 4, 26, .8), 0 2px 0 #8a80b0, 0 2px 4px rgba(6, 4, 26, .4); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gx-chip.color { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); background: var(--gx-gloss), linear-gradient(180deg, var(--m1, #b99cff), var(--m2, #6e46d0)); box-shadow: 0 0 0 1px rgba(6, 4, 26, .8), 0 2px 0 var(--m3, #3a1e88), 0 2px 4px rgba(6, 4, 26, .4); }
.gx-chip.purple { --m1: #c4a2ff; --m2: #7a44d4; --m3: #3a1e88; } .gx-chip.green { --m1: #8ee69c; --m2: #2f9a52; --m3: #145a2c; }
.gx-chip.wide { padding: 0 6px 0 2px; }
.gx-chip.on { background: var(--gx-gloss), linear-gradient(180deg, #fff6c8, #ffd257); box-shadow: 0 0 0 1px rgba(6, 4, 26, .8), 0 2px 0 #b8800f, 0 2px 4px rgba(6, 4, 26, .4); }
.gx-chip:active { transform: translateY(1px); }
.gx-me {
  display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 7px 0 2px;
  background: linear-gradient(180deg, rgba(70, 56, 120, .95), rgba(18, 12, 40, .95)); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(6, 4, 26, .85);
}
.gx-me .av { display: grid; place-items: center; width: 16px; height: 16px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #5a4a8e, #1a1236); border-radius: 50%; box-shadow: 0 0 0 1px var(--px-gold); }
.gx-me .nm { display: flex; flex-direction: column; line-height: 1.05; }
.gx-me .nm b { max-width: 70px; overflow: hidden; color: var(--px-gold); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.gx-me .nm small { color: var(--px-text); font-size: 6.5px; white-space: nowrap; }

/* ================= 子页面：返回按钮 + 橙色斜标题牌 ================= */
.gx-esc {
  display: inline-flex; flex: none; align-items: center; gap: 3px; height: 15px; margin: 0; padding: 0 6px 0 2px; color: #2c2547; font: inherit; font-size: 8px; font-weight: bold;
  background: var(--gx-gloss), linear-gradient(180deg, #fff, #e6def8); border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(6, 4, 26, .8), 0 2px 0 #8a80b0, 0 2px 4px rgba(6, 4, 26, .4); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gx-esc kbd { display: grid; place-items: center; height: 10px; padding: 0 3px; color: #fff; font: inherit; font-size: 6.5px; background: #2c2547; border-radius: 3px; }
.gx-esc:active { transform: translateY(1px); }
.gx-ribbon {
  position: relative; display: inline-flex; flex: none; align-items: baseline; gap: 4px; height: 16px; margin: 0 2px; padding: 0 10px; overflow: hidden;
  background: var(--gx-stripe), var(--gx-gloss), linear-gradient(180deg, #ff9a6a, #ea5444); border-radius: 5px; transform: skewX(-8deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px #8a2a1a, 0 2px 0 #8a2a1a;
}
.gx-ribbon > * { transform: skewX(8deg); }
.gx-ribbon b { align-self: center; color: #fff; font-size: 10px; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 1px 0 #9a2e1e, 1px 0 0 #9a2e1e, -1px 0 0 #9a2e1e, 0 -1px 0 #9a2e1e; }
.gx-ribbon small { color: #fff0e6; font-size: 7px; white-space: nowrap; text-shadow: 0 1px 0 rgba(120, 30, 20, .5); }

/* 分段页签：深色凹槽里放胶囊，选中的是亮色胶囊 */
.gx-seg { display: inline-flex; flex: none; gap: 1px; padding: 2px; background: rgba(0, 0, 0, .42); border-radius: 9px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .08); }
.gx-seg > button {
  height: 13px; margin: 0; padding: 0 6px; color: var(--px-text); font: inherit; font-size: 8px; font-weight: bold; white-space: nowrap; background: transparent; border: 0; border-radius: 7px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gx-seg > button.on { color: #3a2400; background: var(--gx-gloss), linear-gradient(180deg, #fff6c8, #ffd257); box-shadow: 0 1px 0 #b8800f, 0 1px 3px rgba(0, 0, 0, .4); }

.gx-bar { position: relative; display: block; height: 4px; overflow: hidden; background: #1a1030; border-radius: 2px; box-shadow: 0 0 0 1px #07051a; }
.gx-bar > i { display: block; height: 100%; background: var(--bc, #7fe3ff); border-radius: 2px; }

/* ================= 排行卡（像素面板，表头是金色斜纹条） ================= */
.gx-lb { display: flex; flex-direction: column; overflow: hidden; }
.gx-lb-head {
  display: flex; align-items: center; gap: 4px; margin: 3px 3px 0; padding: 3px 6px; border-radius: 6px;
  background: var(--gx-stripe), var(--gx-gloss), linear-gradient(180deg, #ffd25a, #e8961c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 0 #8a5208;
}
.gx-lb-head b { color: #fff; font-size: 11px; letter-spacing: 1px; text-shadow: 0 1px 0 #a05a00, 1px 0 0 #a05a00, -1px 0 0 #a05a00, 0 -1px 0 #a05a00; }
.gx-lb-head small { display: block; color: #5a3200; font-size: 7px; font-weight: bold; }
.gx-lb-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-height: 0; padding: 5px 5px 4px; overflow: auto; }
.gx-lb-row { display: flex; align-items: center; gap: 4px; min-height: 13px; padding: 1px 5px 1px 1px; background: rgba(0, 0, 0, .35); border-radius: 4px; }
.gx-lb-row .no { display: grid; flex: none; place-items: center; width: 12px; height: 12px; color: #fff; font-size: 7px; font-weight: bold; background: rgba(255, 255, 255, .15); border-radius: 50%; }
.gx-lb-row .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--px-text); font-size: 8px; white-space: nowrap; }
.gx-lb-row .v { flex: none; color: var(--px-gold); font-size: 8px; font-weight: bold; }
.gx-lb-row .v small { margin-left: 2px; color: #7fe3ff; font-size: 7px; font-weight: normal; }
.gx-lb-row.top { min-height: 18px; }
.gx-lb-row.top .no { width: 14px; height: 14px; font-size: 8px; }
.gx-lb-row.top .nm { font-size: 9px; }
.gx-lb-row.r1 { background: linear-gradient(90deg, rgba(255, 210, 87, .32), rgba(0, 0, 0, .35)); box-shadow: inset 0 0 0 1px rgba(255, 210, 87, .7); } .gx-lb-row.r1 .no { background: linear-gradient(180deg, #ffe07a, #e8a51e); }
.gx-lb-row.r2 { background: linear-gradient(90deg, rgba(200, 220, 255, .24), rgba(0, 0, 0, .35)); box-shadow: inset 0 0 0 1px rgba(200, 220, 255, .6); } .gx-lb-row.r2 .no { background: linear-gradient(180deg, #e0e8ff, #8aa0d0); }
.gx-lb-row.r3 { background: linear-gradient(90deg, rgba(255, 160, 90, .24), rgba(0, 0, 0, .35)); box-shadow: inset 0 0 0 1px rgba(255, 174, 107, .6); } .gx-lb-row.r3 .no { background: linear-gradient(180deg, #ffc08a, #d2763a); }
.gx-lb-row.me { box-shadow: inset 0 0 0 1px #7fe3ff; }
.gx-lb-foot { padding: 0 5px 6px; }
.gx-lb-foot > button { width: 100%; }

/* ================= 首页标志 ================= */
.gx-logo { color: var(--px-gold); font-weight: bold; line-height: 1; letter-spacing: 3px; text-shadow: 1px 1px 0 #6a3a00, 2px 2px 0 #0b0820, 3px 3px 0 rgba(11, 8, 32, .6); }
.gx-logo em { color: #fff1c8; font-style: normal; }
.gx-ver { display: inline-block; padding: 0 5px; color: #fff; font-size: 7.5px; font-weight: bold; line-height: 12px; background: var(--gx-gloss), linear-gradient(180deg, #ff8a7a, #d8404a); border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 0 #7a1222; }
