:root {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;}

html[data-theme=dark] {color-scheme: dark;}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--act-text);
  background:
    radial-gradient(circle at 82% -10%, color-mix(in srgb, var(--act-green) 15%, transparent), transparent 34rem),
    radial-gradient(circle at 12% 40%, color-mix(in srgb, var(--act-gold) 6%, transparent), transparent 28rem),
    var(--act-bg);
  font-size: 14px;
}

.activity-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--act-line);
  background: color-mix(in srgb, var(--act-panel) 91%, transparent);
  backdrop-filter: blur(16px);
}

.activity-brand { display: flex; align-items: center; gap: 9px; color: var(--act-text); font-weight: 850; text-decoration: none; }
.activity-brand img { width: 38px; height: 30px; object-fit: contain; }
.activity-topbar nav { display: flex; align-items: center; gap: 6px; }
.activity-topbar nav a, .activity-topbar nav button { padding: 8px 11px; border: 0; border-radius: 8px; color: var(--act-muted); background: transparent; text-decoration: none; cursor: pointer; }
.activity-topbar nav a:hover, .activity-topbar nav button:hover { color: var(--act-green); background: var(--act-soft); }

.activity-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 22px 60px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.activity-rail {
  position: sticky;
  top: 76px;
  display: grid;
  align-content: start;
  gap: 0;
}

.activity-rail > small {
  color: var(--act-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.activity-rail h1 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.8px;
}

.activity-rail > p {
  margin: 0 0 16px;
  color: var(--act-muted);
  font-size: 13px;
  line-height: 1.55;
}

.activity-pick { display: grid; gap: 8px; }
.activity-pick button {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid var(--act-line);
  border-radius: 12px;
  background: var(--act-panel);
  color: var(--act-text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--act-shadow);
}

.activity-pick button em {
  width: fit-content;
  padding: 1px 6px;
  border-radius: 99px;
  color: var(--act-green);
  background: var(--act-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.activity-pick button em.soon {
  color: var(--act-muted);
  background: color-mix(in srgb, var(--act-muted) 12%, var(--act-panel));
}

.activity-pick button b { font-size: 15px; }
.activity-pick button small { color: var(--act-muted); font-size: 12px; line-height: 1.4; }
.activity-pick button:hover { border-color: color-mix(in srgb, var(--act-green) 45%, var(--act-line)); }
.activity-pick button.on {
  border-color: color-mix(in srgb, var(--act-green) 55%, var(--act-line));
  background: linear-gradient(180deg, var(--act-soft), var(--act-panel));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--act-green) 16%, transparent);
}

.activity-rail-foot {
  margin: 16px 0 0;
  color: var(--act-muted);
  font-size: 12px;
}

.activity-rail-foot b { color: var(--act-text); }

.activity-stage { min-width: 0; }
.activity-pane { display: grid; gap: 16px; }
.activity-pane[data-pane="checkin"] { min-height: calc(100vh - 88px); align-content: start; }
.activity-pane[data-pane="checkin"] .checkin-board { flex: 1; }
.activity-pane[data-pane="checkin"] .shop-board,
.activity-pane[data-pane="checkin"] .shop-shelf { min-height: 0; }
.activity-pane[data-pane="checkin"] .shop-shelf { min-height: 280px; }

.game-hero small {
  color: var(--act-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.game-hero h2 { margin: 4px 0 8px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.game-hero p { max-width: 42em; margin: 0; color: var(--act-muted); font-size: 14px; line-height: 1.65; }
.game-hero p b { color: var(--act-gold); }

.checkin-board { display: grid; gap: 14px; }
.checkin-claim {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--act-green) 34%, var(--act-line));
  border-radius: 16px;
  background: linear-gradient(110deg, var(--act-soft), var(--act-panel) 62%);
  box-shadow: var(--act-shadow);
}
.checkin-copy { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.checkin-tag { color: var(--act-green); font-size: 11px; font-weight: 800; }
.checkin-copy b { font-size: 22px; letter-spacing: -.4px; }
.checkin-copy small { color: var(--act-muted); font-size: 13px; }
.checkin-week { display: flex; gap: 6px; }
.checkin-week i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--act-line);
  border-radius: 7px;
  background: var(--act-panel);
  color: var(--act-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.checkin-week i.done { color: var(--on-accent, #fff); border-color: var(--act-green); background: var(--act-green); }
.checkin-week i.today { box-shadow: 0 0 0 2px color-mix(in srgb, var(--act-green) 28%, transparent); }
.checkin-claim .primary-button {
  min-width: 140px;
  padding: 12px 18px;
  border: 1px solid var(--act-green);
  border-radius: 10px;
  color: var(--on-accent, #fff);
  background: var(--act-green);
  font-weight: 800;
  cursor: pointer;
}
.checkin-claim .primary-button:disabled { filter: grayscale(.55); opacity: .55; cursor: not-allowed; }
.checkin-claim.is-capped { background: var(--act-panel); }
.checkin-claim .wechat-login { width: min(360px, 100%); }
.checkin-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkin-rules li {
  padding: 14px 16px;
  border: 1px solid var(--act-line);
  border-radius: 12px;
  background: var(--act-panel);
  box-shadow: var(--act-shadow);
}
.checkin-rules b { display: block; margin-bottom: 4px; color: var(--act-gold); font-size: 18px; }
.checkin-rules span { color: var(--act-muted); font-size: 12px; }

.shop-board { display: grid; gap: 14px; }
.shop-shelf {
  min-height: 320px;
  padding: 18px 20px 16px;
  border: 1px solid var(--act-line);
  border-radius: 16px;
  background: var(--act-panel);
  box-shadow: var(--act-shadow);
}
.shop-shelf header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.shop-shelf small {
  color: var(--act-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.shop-shelf h3 { margin: 2px 0 0; font-size: 18px; }
.shop-shelf header span { color: var(--act-muted); font-size: 12px; }
.shop-list { display: grid; gap: 8px; }
.shop-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid var(--act-line);
  border-radius: 12px;
  background: var(--act-soft);
}
.shop-item b { font-size: 15px; }
.shop-item small { display: block; margin-top: 2px; color: var(--act-muted); font-size: 12px; }
.shop-item .shop-price { margin-left: auto; color: var(--act-gold); font-weight: 800; }
.shop-item button {
  padding: 8px 14px;
  border: 1px solid var(--act-green);
  border-radius: 8px;
  color: var(--on-accent, #fff);
  background: var(--act-green);
  font-weight: 800;
  cursor: pointer;
}
.shop-item button.ghost {
  color: var(--act-text);
  background: transparent;
  border-color: var(--act-line);
}
.shop-item button:disabled { filter: grayscale(.55); opacity: .55; cursor: not-allowed; }
.shop-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--act-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ==================================================================
   积分小游戏 · Minecraft 风格
   方块是真 3D：六个面 + preserve-3d，纹理全部 CSS 画，没有一张图。
   按钮/面板按 MC GUI 的斜面来：左上高光、右下阴影、底下一条硬投影。
   ================================================================== */
.activity-pane[data-pane="games"] {
  --mcg-sky1: #6ea6ff; --mcg-sky2: #cfe4ff;
  --mcg-grass: #62a83b; --mcg-grass-hi: #7fc653; --mcg-grass-lo: #4c8a2c;
  --mcg-dirt: #8a5a2b; --mcg-dirt-hi: #a26b36; --mcg-dirt-lo: #654120;
  --mcg-stone: #8a8a8a; --mcg-stone-hi: #a5a5a5; --mcg-stone-lo: #5f5f5f;
  --mcg-gold: #f7d34b; --mcg-gold-hi: #fff0a0; --mcg-gold-lo: #b9901a;
  --mcg-obsidian: #1c1226; --mcg-obsidian-hi: #3a2650;
  --mcg-ink: #1a1a1a; --mcg-text-shadow: #3f3f3f;
  --mcg-panel: #c6c6c6; --mcg-panel-hi: #ffffff; --mcg-panel-lo: #555555; --mcg-title: #3f3f3f; --mcg-muted: #5e5e5e;
  --mcg-slot: #8b8b8b; --mcg-slot-hi: #ffffff; --mcg-slot-lo: #373737;
}
html[data-theme=dark] .activity-pane[data-pane="games"] {
  --mcg-panel: #303030; --mcg-panel-hi: #4d4d4d; --mcg-panel-lo: #0f0f0f; --mcg-title: #e6e6e6; --mcg-muted: #a8a8a8;
  --mcg-slot: #1e1e1e; --mcg-slot-hi: #3d3d3d; --mcg-slot-lo: #0a0a0a;
}

/* 像素噪点：两层不同步长的棋盘叠在底色上，看着像 16x 贴图 */
.px-tex {
  background-image:
    repeating-conic-gradient(rgba(255,255,255,.09) 0 25%, transparent 0 50%),
    repeating-conic-gradient(rgba(0,0,0,.12) 0 25%, transparent 0 50%);
  background-size: 12px 12px, 20px 20px;
  background-position: 0 0, 6px 4px;
}

/* ---- MC 按钮 ---- */
.mcg-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
  padding: 11px 16px;
  border: 2px solid var(--mcg-ink);
  border-radius: 0;
  background: linear-gradient(#a9a9a9, #8b8b8b);
  box-shadow: inset 2px 2px 0 #d2d2d2, inset -2px -2px 0 #4b4b4b, 0 3px 0 var(--mcg-ink);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, background .12s ease;
}
.mcg-btn:hover:not(:disabled) { background: linear-gradient(#7f98e6, #5f7ad3); border-color: #fff; color: #ffffa0; }
.mcg-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 2px 2px 0 #d2d2d2, inset -2px -2px 0 #4b4b4b, 0 0 0 var(--mcg-ink); }
.mcg-btn:disabled { color: #a0a0a0; background: #4f4f4f; text-shadow: none; box-shadow: inset 2px 2px 0 #6a6a6a, inset -2px -2px 0 #2c2c2c, 0 3px 0 var(--mcg-ink); cursor: not-allowed; }
.mcg-btn.gold { color: #3b2a00; text-shadow: 1px 1px 0 rgba(255,255,255,.45); background: linear-gradient(#ffe27a, #e2b62f); box-shadow: inset 2px 2px 0 #fff3b8, inset -2px -2px 0 #9c7410, 0 3px 0 var(--mcg-ink); }
.mcg-btn.gold:hover:not(:disabled) { background: linear-gradient(#fff0a8, #f0c84a); color: #3b2a00; }
.mcg-btn.ghost { background: linear-gradient(#5c5c5c, #444); box-shadow: inset 2px 2px 0 #7a7a7a, inset -2px -2px 0 #222, 0 3px 0 var(--mcg-ink); padding: 7px 12px; font-size: 12px; }

/* ---- 3D 方块 ---- */
.mc-cube { --s: 96px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; }
.mc-cube .f {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18);
}
.mc-cube .front  { transform: translateZ(calc(var(--s) / 2)); }
.mc-cube .back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.mc-cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
/* 光照：顶面亮、右侧暗一点、底面最暗 */
.mc-cube .right::after, .mc-cube .left::after, .mc-cube .back::after, .mc-cube .bottom::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.mc-cube .right::after { background: rgba(0,0,0,.22); }
.mc-cube .left::after, .mc-cube .back::after { background: rgba(0,0,0,.34); }
.mc-cube .bottom::after { background: rgba(0,0,0,.5); }

/* 草方块 */
.mc-cube.grass .f { background-color: var(--mcg-dirt); }
.mc-cube.grass .top { background-color: var(--mcg-grass); }
.mc-cube.grass .front, .mc-cube.grass .back, .mc-cube.grass .left, .mc-cube.grass .right {
  background-image:
    linear-gradient(var(--mcg-grass) 0 18%, transparent 18%),
    repeating-linear-gradient(90deg, var(--mcg-grass) 0 14%, transparent 14% 28%),
    repeating-conic-gradient(rgba(255,255,255,.09) 0 25%, transparent 0 50%),
    repeating-conic-gradient(rgba(0,0,0,.14) 0 25%, transparent 0 50%);
  background-size: 100% 100%, 100% 30%, 12px 12px, 20px 20px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}
/* 金块 */
.mc-cube.gold .f {
  background-color: var(--mcg-gold);
  background-image:
    linear-gradient(135deg, var(--mcg-gold-hi) 0 12%, transparent 12% 88%, var(--mcg-gold-lo) 88%),
    repeating-conic-gradient(rgba(255,255,255,.12) 0 25%, transparent 0 50%);
  background-size: 100% 100%, 16px 16px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), inset 12px 12px 0 -8px var(--mcg-gold-hi), inset -12px -12px 0 -8px var(--mcg-gold-lo);
}
/* 石头 */
.mc-cube.stone .f { background-color: var(--mcg-stone); }
/* 黑曜石（庄家的谜方块） */
.mc-cube.obsidian .f { background-color: var(--mcg-obsidian); background-image: repeating-conic-gradient(rgba(140,90,200,.22) 0 25%, transparent 0 50%), repeating-conic-gradient(rgba(0,0,0,.35) 0 25%, transparent 0 50%); background-size: 14px 14px, 26px 26px; }
.mc-cube.obsidian .f span { color: #c9a5ff; font-size: 44px; font-weight: 900; text-shadow: 0 0 14px #9b5cff, 2px 2px 0 #000; animation: mystery-glow 1.6s ease-in-out infinite; }
@keyframes mystery-glow { 0%,100% { opacity: .75; } 50% { opacity: 1; text-shadow: 0 0 22px #b98cff, 2px 2px 0 #000; } }
/* 骰子：象牙面 + 像素点 */
.mc-cube.die .f {
  background-color: #f4efe2;
  background-image: repeating-conic-gradient(rgba(0,0,0,.05) 0 25%, transparent 0 50%);
  background-size: 14px 14px;
  box-shadow: inset 0 0 0 3px #1a1a1a, inset 0 0 0 6px #d9d0bd;
}
.mc-cube.die .f i { position: absolute; width: 18%; height: 18%; background: #1a1a1a; box-shadow: inset -3px -3px 0 rgba(255,255,255,.12); }
.mc-cube.die .f i:nth-child(1) { left: 16%; top: 16%; }
.mc-cube.die .f i:nth-child(2) { right: 16%; top: 16%; }
.mc-cube.die .f i:nth-child(3) { left: 16%; bottom: 16%; }
.mc-cube.die .f i:nth-child(4) { right: 16%; bottom: 16%; }
.mc-cube.die .f i:nth-child(5) { left: 41%; top: 41%; }
.mc-cube.die .f i:nth-child(6) { left: 16%; top: 41%; }
.mc-cube.die .f i:nth-child(7) { right: 16%; top: 41%; }
.mc-cube.die .f[data-pips="1"] i { display: none; } .mc-cube.die .f[data-pips="1"] i:nth-child(5) { display: block; background: #c0392b; }
.mc-cube.die .f[data-pips="2"] i:not(:nth-child(1)):not(:nth-child(4)) { display: none; }
.mc-cube.die .f[data-pips="3"] i:not(:nth-child(1)):not(:nth-child(4)):not(:nth-child(5)) { display: none; }
.mc-cube.die .f[data-pips="4"] i:nth-child(n+5) { display: none; }
.mc-cube.die .f[data-pips="5"] i:nth-child(n+6) { display: none; }
.mc-cube.die .f[data-pips="6"] i:nth-child(5) { display: none; }
/* 方块上的图标 */
.mc-cube .f span.pick { font-size: 46px; line-height: 1; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.5)); }
.cube-shadow {
  position: absolute; left: 50%; bottom: 0;
  width: calc(var(--s, 96px) * 1.25); height: 14px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.35);
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}

/* ---- 券栏：MC 物品栏 ---- */
.games-wallet {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 8px 10px;
  border: 2px solid var(--mcg-ink); border-radius: 0;
  background: var(--mcg-panel);
  box-shadow: inset 2px 2px 0 var(--mcg-panel-hi), inset -2px -2px 0 var(--mcg-panel-lo), 0 3px 0 var(--mcg-ink);
  color: var(--mcg-title); font-size: 13px; font-weight: 700;
}
.wallet-slots { display: inline-flex; gap: 4px; }
.wallet-slots i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--mcg-slot);
  box-shadow: inset 2px 2px 0 var(--mcg-slot-lo), inset -2px -2px 0 var(--mcg-slot-hi);
}
.wallet-slots i.has::before {
  content: '券';
  width: 22px; height: 26px;
  display: grid; place-items: center;
  background: linear-gradient(#fff4c2, #f0c14a);
  box-shadow: inset 0 0 0 2px #7a5a10, 2px 2px 0 rgba(0,0,0,.35);
  color: #5a3f05; font-size: 12px; font-weight: 900;
  animation: item-bob 2.4s ease-in-out infinite;
}
@keyframes item-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.wallet-slots i.has:nth-child(2)::before { animation-delay: .3s; }
.wallet-slots i.has:nth-child(3)::before { animation-delay: .6s; }
.wallet-slots i.has:nth-child(4)::before { animation-delay: .9s; }

/* ---- 封面卡 ---- */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* 选择器带上 pane 前缀：skins.css 在后面还会给 .game-slot 套一层皮，这里要压过它 */
.activity-pane[data-pane="games"] .game-slot.cover {
  position: relative;
  display: grid; align-content: start; gap: 0;
  min-height: 0; padding: 0;
  border: 2px solid var(--mcg-ink); border-radius: 0;
  background: var(--mcg-panel);
  box-shadow: inset 3px 3px 0 var(--mcg-panel-hi), inset -3px -3px 0 var(--mcg-panel-lo), 0 5px 0 var(--mcg-ink);
  overflow: visible;
  transition: transform .18s ease, box-shadow .18s ease;
}
.activity-pane[data-pane="games"] .game-slot.cover:hover { transform: translateY(-5px); box-shadow: inset 3px 3px 0 var(--mcg-panel-hi), inset -3px -3px 0 var(--mcg-panel-lo), 0 10px 0 var(--mcg-ink); }
.cover-sky {
  position: relative; height: 176px; margin: 3px 3px 0;
  overflow: hidden;
  background: linear-gradient(var(--mcg-sky1), var(--mcg-sky2));
  perspective: 620px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.cover-sun { position: absolute; right: 18px; top: 14px; width: 22px; height: 22px; background: #fff4a3; box-shadow: 0 0 0 4px rgba(255,244,163,.35), 0 0 24px #fff4a3; }
.cloud { position: absolute; top: 22px; width: 18px; height: 10px; background: #fff; opacity: .92; animation: cloud-drift linear infinite; }
.cloud::before { content: ''; position: absolute; left: -14px; top: 4px; width: 46px; height: 8px; background: #fff; }
.cloud::after { content: ''; position: absolute; left: 8px; top: -6px; width: 18px; height: 8px; background: #fff; }
.cloud.c1 { left: 10%; animation-duration: 22s; }
.cloud.c2 { left: 60%; top: 44px; transform: scale(.7); animation-duration: 30s; animation-delay: -12s; }
@keyframes cloud-drift { from { translate: -80px 0; } to { translate: 320px 0; } }
.cover-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background-color: var(--mcg-dirt);
  background-image:
    linear-gradient(var(--mcg-grass-hi) 0 4px, var(--mcg-grass) 4px 10px, transparent 10px),
    repeating-linear-gradient(90deg, var(--mcg-grass) 0 8px, transparent 8px 16px),
    repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%),
    repeating-conic-gradient(rgba(0,0,0,.14) 0 25%, transparent 0 50%);
  background-size: 100% 100%, 100% 14px, 12px 12px, 20px 20px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}
.cover-scene { position: absolute; left: 50%; bottom: 34px; width: 120px; height: 130px; transform: translateX(-50%); transform-style: preserve-3d; }
.cover-scene .mc-cube { --s: 74px; position: absolute; left: 50%; bottom: 26px; margin-left: calc(var(--s) / -2); animation: cube-hover 4.2s ease-in-out infinite; }
.cover-scene .cube-shadow { --s: 74px; animation: shadow-breathe 4.2s ease-in-out infinite; }
.game-slot.cover[data-game="dice"] .cover-scene .mc-cube, .game-slot.cover[data-game="dice"] .cube-shadow { animation-delay: -1.4s; }
.game-slot.cover[data-game="wheel"] .cover-scene .mc-cube, .game-slot.cover[data-game="wheel"] .cube-shadow { animation-delay: -2.8s; }
.game-slot.cover:hover .cover-scene .mc-cube { animation-duration: 1.6s; }
@keyframes cube-hover {
  0% { transform: translateY(0) rotateX(-26deg) rotateY(0deg); }
  50% { transform: translateY(-16px) rotateX(-22deg) rotateY(180deg); }
  100% { transform: translateY(0) rotateX(-26deg) rotateY(360deg); }
}
@keyframes shadow-breathe { 0%,100% { transform: translateX(-50%) scale(1); opacity: .35; } 50% { transform: translateX(-50%) scale(.72); opacity: .2; } }
.cover-body { display: grid; gap: 6px; padding: 14px 16px 18px; color: var(--mcg-title); }
.cover-body .mc-tag {
  justify-self: start;
  padding: 2px 8px;
  background: var(--mcg-ink); color: #ffffa0;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-shadow: 1px 1px 0 #3f3f3f;
}
.cover-body b { font-size: 19px; text-shadow: 2px 2px 0 rgba(0,0,0,.12); }
.cover-body small { min-height: 34px; color: var(--mcg-muted); font-size: 12.5px; line-height: 1.5; }
.cover-body .mcg-btn { margin-top: 8px; width: 100%; }

/* ---- 舞台 ---- */
.game-stage {
  position: relative;
  min-height: 440px;
  border: 3px solid var(--mcg-ink); border-radius: 0;
  overflow: hidden;
  background-color: #2a2a2e;
  background-image:
    repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%),
    repeating-conic-gradient(rgba(0,0,0,.22) 0 25%, transparent 0 50%),
    linear-gradient(180deg, #34343a, #1f1f24 65%, #17171b);
  background-size: 24px 24px, 40px 40px, 100% 100%;
  background-position: 0 0, 12px 8px, 0 0;
  box-shadow: inset 4px 4px 0 #4a4a50, inset -4px -4px 0 #0c0c0e, 0 6px 0 var(--mcg-ink);
}
.game-stage.shake { animation: stage-shake .45s ease-out; }
@keyframes stage-shake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-6px,3px); } 40% { transform: translate(6px,-3px); } 60% { transform: translate(-4px,2px); } 80% { transform: translate(3px,-1px); } }
/* 火把 */
.torch { position: absolute; top: 58px; width: 10px; height: 44px; z-index: 1; pointer-events: none; }
.torch.l { left: 26px; } .torch.r { right: 26px; }
.torch::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(90deg, #6b4423, #8a5a2b 50%, #4d3016); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.torch::after {
  content: ''; position: absolute; left: -2px; top: 0; width: 14px; height: 16px;
  background: linear-gradient(#fff2a8, #ffb020 55%, #ff6a00);
  box-shadow: 0 0 18px 6px rgba(255,170,40,.55), 0 0 70px 30px rgba(255,140,20,.18);
  animation: torch-flicker 1.1s ease-in-out infinite alternate;
}
.torch.r::after { animation-delay: -.5s; }
@keyframes torch-flicker { 0% { transform: scaleY(1) translateY(0); opacity: .9; } 50% { transform: scaleY(1.15) translateY(-2px); opacity: 1; } 100% { transform: scaleY(.92) translateY(1px); opacity: .85; } }
.game-arena { position: relative; min-height: 440px; padding: 16px 18px 22px; color: #f3f6f0; }
.game-arena::before { content: ''; position: absolute; inset: 0; background: rgba(200,0,0,0); pointer-events: none; z-index: 6; }
.game-arena.is-lose::before { animation: hurt-flash .7s ease-out forwards; }
@keyframes hurt-flash { 0% { background: rgba(220,20,20,.45); } 100% { background: rgba(220,20,20,0); } }
.game-arena.is-win::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 55%, rgba(255,214,90,.28), transparent 55%); animation: win-glow 1.2s ease-out forwards; }
@keyframes win-glow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.game-hud {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 8px 12px;
  background: rgba(0,0,0,.45);
  box-shadow: inset 0 0 0 2px #1a1a1a, inset 0 0 0 4px #5a5a5a;
}
.game-hud small { color: #ffffa0; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-shadow: 2px 2px 0 #3f3f3f; }
.game-hud b { margin-left: auto; font-size: 16px; color: #e6e6e6; text-shadow: 2px 2px 0 #3f3f3f; }
/* 命：MC 那排心 */
.game-hearts { display: inline-flex; gap: 3px; margin-left: 6px; font-size: 20px; line-height: 1; }
.game-hearts i { font-style: normal; color: #ff3b3b; text-shadow: 2px 2px 0 #4a0a0a, 0 0 0 2px #1a1a1a; transition: color .2s ease, transform .2s ease; }
.game-hearts i.empty { color: #3a3a3a; text-shadow: 2px 2px 0 #111; }
.game-hearts i.breaking { animation: heart-break .65s ease-in forwards; }
@keyframes heart-break {
  0% { transform: scale(1); color: #ff3b3b; }
  25% { transform: scale(1.5) rotate(-10deg); color: #fff; }
  55% { transform: scale(1.2) rotate(12deg); color: #ff3b3b; }
  100% { transform: scale(.7); color: #3a3a3a; opacity: .9; }
}
.game-pop.hurt { color: #ff5a5a; text-shadow: 3px 3px 0 #4a0a0a, 0 0 24px rgba(255,80,80,.5); font-size: 34px; }
.game-hud em { color: #7dff4a; font-style: normal; font-weight: 900; text-shadow: 2px 2px 0 #1f4d10; }
.game-board { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: center; min-height: 300px; align-content: start; }
/* 选择栏：MC 背包格子 */
.game-picks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 8px; background: var(--mcg-panel); border: 2px solid var(--mcg-ink); box-shadow: inset 2px 2px 0 var(--mcg-panel-hi), inset -2px -2px 0 var(--mcg-panel-lo), 0 4px 0 var(--mcg-ink); }
.game-picks button {
  min-width: 96px; min-height: 96px;
  display: grid; place-content: center; gap: 6px;
  padding: 10px;
  border: 0; border-radius: 0;
  color: #fff;
  background: var(--mcg-slot);
  box-shadow: inset 3px 3px 0 var(--mcg-slot-lo), inset -3px -3px 0 var(--mcg-slot-hi);
  font: inherit; font-weight: 800; font-size: 13px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.game-picks button i { font-size: 38px; font-style: normal; line-height: 1; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.game-picks button:hover:not(:disabled) { transform: translateY(-4px); background: color-mix(in srgb, var(--mcg-slot) 55%, #fff); }
.game-picks button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.game-fx { pointer-events: none; position: absolute; inset: 0; z-index: 5; overflow: hidden; }
/* 粒子：方块碎屑 / 经验球 */
.px { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--sz, 8px); height: var(--sz, 8px); background: var(--c, #fff); animation: px-fly var(--t, .9s) cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes px-fly { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(120deg) scale(.5); opacity: 0; } }
.px.orb { border-radius: 50%; box-shadow: 0 0 10px var(--c), 0 0 2px #fff; animation: orb-fly var(--t, 1.1s) ease-out forwards; }
@keyframes orb-fly { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translate(calc(var(--dx) * .3), calc(var(--dy) * .3)) scale(1); } 100% { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
.game-pop {
  position: absolute; left: 50%; top: 22%;
  color: #7dff4a; font-size: 54px; font-weight: 900;
  text-shadow: 3px 3px 0 #1f4d10, 0 0 24px rgba(125,255,74,.6);
  animation: pop-up 1.1s ease-out forwards;
  z-index: 7;
}
@keyframes pop-up { 0% { transform: translate(-50%, 20px) scale(.5); opacity: 0; } 25% { transform: translate(-50%, -10px) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }

/* 猜拳：你 vs 庄，两个方块对撞 */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; width: min(100%, 560px); min-height: 200px; perspective: 760px; }
.duel-side { position: relative; display: grid; justify-items: center; gap: 14px; padding-bottom: 8px; }
.duel-side small { color: #e6e6e6; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-shadow: 2px 2px 0 #3f3f3f; }
.duel-side .mc-cube { --s: 92px; transition: transform .35s ease, opacity .35s ease, filter .35s ease; }
.duel-side.you .mc-cube { transform: rotateX(-22deg) rotateY(-28deg); }
.duel-side.house .mc-cube { transform: rotateX(-22deg) rotateY(28deg); }
.duel-vs { align-self: center; color: #ffffa0; font-size: 26px; font-weight: 900; text-shadow: 3px 3px 0 #3f3f3f; transition: transform .2s ease; }
.game-arena.is-roll .duel-side.you .mc-cube { animation: duel-you .82s cubic-bezier(.4,0,.2,1); }
.game-arena.is-roll .duel-side.house .mc-cube { animation: duel-house .82s cubic-bezier(.4,0,.2,1); }
.game-arena.is-roll .duel-vs { animation: vs-pulse .82s ease-in-out; }
@keyframes duel-you { 0% { transform: rotateX(-22deg) rotateY(-28deg); } 40% { transform: translate(-30px,-40px) rotateX(-22deg) rotateY(-200deg); } 75% { transform: translate(56px,0) rotateX(-22deg) rotateY(-388deg); } 100% { transform: rotateX(-22deg) rotateY(-388deg); } }
@keyframes duel-house { 0% { transform: rotateX(-22deg) rotateY(28deg); } 40% { transform: translate(30px,-40px) rotateX(-22deg) rotateY(200deg); } 75% { transform: translate(-56px,0) rotateX(-22deg) rotateY(388deg); } 100% { transform: rotateX(-22deg) rotateY(388deg); } }
@keyframes vs-pulse { 0%,100% { transform: scale(1); } 75% { transform: scale(1.8); color: #fff; } }
.game-arena.is-win .duel-side.house .mc-cube { animation: cube-break .8s ease-in forwards; }
.game-arena.is-lose .duel-side.you .mc-cube { animation: cube-break .8s ease-in forwards; }
.game-arena.is-draw .duel-side .mc-cube { animation: cube-bump .5s ease-out; }
@keyframes cube-break { 0% { filter: brightness(1); } 30% { filter: brightness(1.6) contrast(1.2); transform: rotateX(-22deg) rotateY(28deg) scale(1.08); } 100% { transform: translateY(60px) rotateX(40deg) rotateY(120deg) scale(.1); opacity: 0; } }
@keyframes cube-bump { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.duel-side.house .mc-cube.reveal .f span { animation: none; color: #fff; text-shadow: 2px 2px 0 #000; }

/* 骰子桌 */
.dice-table { position: relative; display: grid; place-items: center; width: min(100%, 420px); height: 230px; perspective: 900px; }
.dice-table::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 10px; height: 46px; background: linear-gradient(#2d5a24, #1e3f18); box-shadow: inset 0 0 0 3px #143010, 0 6px 0 #0c1c0a; }
.dice-table .mc-cube.die { --s: 108px; position: relative; top: -18px; transform: rotateX(-24deg) rotateY(32deg); transition: transform .55s cubic-bezier(.2,.9,.25,1.05); }
.game-arena.is-roll .dice-table .mc-cube.die { animation: die-tumble .95s cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes die-tumble {
  0% { transform: translateY(0) rotateX(-24deg) rotateY(32deg); }
  28% { transform: translateY(-110px) rotateX(210deg) rotateY(170deg); }
  58% { transform: translateY(-36px) rotateX(430deg) rotateY(390deg); }
  82% { transform: translateY(0) rotateX(700deg) rotateY(690deg); }
  100% { transform: translateY(0) rotateX(696deg) rotateY(752deg); }
}
.dice-call { min-height: 30px; color: #ffffa0; font-size: 18px; font-weight: 900; letter-spacing: .1em; text-shadow: 2px 2px 0 #3f3f3f; }
.game-arena.is-lose .dice-table .mc-cube.die { filter: grayscale(.5) brightness(.7); }

/* 结束面板：MC 对话框 */
.game-over {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-content: center;
  padding: 20px;
  background: rgba(10,10,12,.62);
  backdrop-filter: blur(3px);
  animation: over-in .3s ease-out;
}
@keyframes over-in { from { opacity: 0; } to { opacity: 1; } }
.game-arena.is-lose .game-over { background: rgba(120,10,10,.62); }
.game-arena.is-win .game-over { background: rgba(70,52,4,.62); }
.game-over > * { position: relative; z-index: 1; }
.game-over-box {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  width: min(380px, calc(100vw - 80px));
  padding: 22px 26px 24px;
  background: var(--mcg-panel);
  border: 2px solid var(--mcg-ink);
  box-shadow: inset 3px 3px 0 var(--mcg-panel-hi), inset -3px -3px 0 var(--mcg-panel-lo), 0 6px 0 var(--mcg-ink);
  color: var(--mcg-title);
  animation: box-drop .35s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes box-drop { from { transform: translateY(-40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.game-over small { color: #b02020; letter-spacing: .2em; font-weight: 900; font-size: 12px; text-shadow: 1px 1px 0 rgba(255,255,255,.4); }
.game-arena.is-win .game-over small { color: #b7860b; }
.game-over b { font-size: 28px; line-height: 1.2; text-shadow: 2px 2px 0 rgba(0,0,0,.15); }
.game-over p { margin: 0 0 8px; color: var(--mcg-muted); font-size: 14px; }
.game-over em { color: #2f8a1c; font-style: normal; font-weight: 900; }
.game-over-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* 大转盘 */
.wheel-wrap { position: relative; display: grid; justify-items: center; gap: 26px; padding: 18px 0 12px; }
.wheel-spin { font-size: 16px; padding: 14px 34px; }
.wheel-pointer {
  position: absolute; top: 0; left: 50%; z-index: 3;
  width: 30px; height: 36px; transform: translateX(-50%);
  background: linear-gradient(#ffffff, #d9d9d9);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 80% 35%, 80% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 20% 60%, 20% 35%, 0 35%);
  filter: drop-shadow(0 3px 0 #1a1a1a);
}
.wheel {
  position: relative;
  width: min(360px, 84vw); aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #e5bb3a;
  box-shadow: 0 0 0 4px #1a1a1a, inset 0 0 0 4px #1a1a1a, 0 14px 0 #7a5a10, 0 26px 40px rgba(0,0,0,.5), inset 0 0 60px rgba(0,0,0,.4);
  will-change: transform;
}
.wheel-label { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.wheel-label span {
  margin-top: 16px;
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 12px; font-weight: 900; letter-spacing: .06em; line-height: 1;
  color: #f4f4f4; text-shadow: 2px 2px 0 rgba(0,0,0,.7);
  max-height: 44%;
}
.wheel-label.tier span { color: #2b1d00; text-shadow: 1px 1px 0 rgba(255,255,255,.45); }
.wheel-hub {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 66px; height: 66px; margin: -33px 0 0 -33px;
  display: grid; place-items: center;
  border: 3px solid #1a1a1a;
  background: linear-gradient(135deg, #fff0a0 0 14%, #f7d34b 14% 86%, #b9901a 86%);
  box-shadow: inset 8px 8px 0 -4px #fff0a0, inset -8px -8px 0 -4px #b9901a, 0 5px 0 #1a1a1a;
  color: #3b2a00; font-size: 15px; font-weight: 900; letter-spacing: .08em;
}
.game-arena.is-spin .wheel-pointer { animation: pointer-tick .12s ease-in-out infinite alternate; }
@keyframes pointer-tick { from { transform: translateX(-50%) rotate(-8deg); } to { transform: translateX(-50%) rotate(8deg); } }
.game-arena.is-win .wheel { box-shadow: 0 0 0 4px #1a1a1a, inset 0 0 0 4px #1a1a1a, 0 14px 0 #7a5a10, 0 0 70px rgba(247,211,75,.7), inset 0 0 60px rgba(0,0,0,.4); }

/* ================= 新封面物件 ================= */
/* 靶子方块：白红同心环 */
.mc-cube.target .f { background-color: #e8e2cf; background-image: radial-gradient(circle, #d92b2b 0 18%, #f4efe2 18% 34%, #d92b2b 34% 50%, #f4efe2 50% 66%, #d92b2b 66% 82%, #f4efe2 82%); }
.mc-cube.target .top, .mc-cube.target .bottom { background-image: repeating-linear-gradient(90deg, #a67c52 0 25%, #8a5a2b 25% 50%); }
.cover-arrow { position: absolute; left: 50%; bottom: 62px; width: 70px; height: 4px; margin-left: -6px; background: linear-gradient(90deg, #f0f0f0 0 14%, #8a5a2b 14% 100%); transform: rotate(-32deg); transform-origin: left center; box-shadow: 0 2px 0 rgba(0,0,0,.35); z-index: 2; animation: arrow-stick 4.2s ease-in-out infinite; }
.cover-arrow::after { content: ''; position: absolute; right: -2px; top: -6px; width: 14px; height: 16px; background: linear-gradient(135deg, #f4f4f4 0 50%, #c0c0c0 50%); clip-path: polygon(0 0, 100% 50%, 0 100%, 40% 50%); }
@keyframes arrow-stick { 0%,100% { transform: translateY(0) rotate(-32deg); } 50% { transform: translateY(-16px) rotate(-30deg); } }
/* 钻石矿：石头底 + 青蓝矿点 */
.mc-cube.diamond_ore .f { background-color: var(--mcg-stone, #8b8b8b); background-image: radial-gradient(circle at 25% 30%, #5fe9e2 0 9%, transparent 10%), radial-gradient(circle at 70% 28%, #7ff5ee 0 8%, transparent 9%), radial-gradient(circle at 45% 65%, #43d3cc 0 10%, transparent 11%), radial-gradient(circle at 78% 72%, #8bfff7 0 7%, transparent 8%), repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%), repeating-conic-gradient(rgba(0,0,0,.14) 0 25%, transparent 0 50%); background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 12px 12px, 20px 20px; }
.cover-pick { position: absolute; right: -6px; bottom: 70px; font-size: 40px; font-style: normal; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); transform-origin: 80% 90%; animation: pick-swing 1.4s ease-in-out infinite; z-index: 2; }
@keyframes pick-swing { 0%,100% { transform: rotate(-30deg); } 50% { transform: rotate(18deg); } }
/* 钓鱼封面：一小片水 + 浮标 */
.cover-pond { position: absolute; left: -20px; right: -20px; bottom: 0; height: 64px; background: linear-gradient(#3f76e4, #2a56b8); box-shadow: inset 0 3px 0 rgba(255,255,255,.35); overflow: hidden; }
.cover-wave { position: absolute; left: -40px; right: -40px; top: 14px; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 18px, transparent 18px 40px); animation: wave-drift 3.4s linear infinite; }
.cover-wave.w2 { top: 34px; opacity: .6; animation-duration: 5s; animation-direction: reverse; }
@keyframes wave-drift { from { translate: 0 0; } to { translate: 40px 0; } }
.cover-bobber { position: absolute; left: 62px; top: 4px; width: 14px; height: 22px; background: linear-gradient(#e33 0 50%, #f4f4f4 50%); box-shadow: inset 0 0 0 2px #1a1a1a; animation: bobber-float 2.2s ease-in-out infinite; }
.cover-bobber::before { content: ''; position: absolute; left: 5px; top: -8px; width: 4px; height: 8px; background: #1a1a1a; }
@keyframes bobber-float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(4px) rotate(6deg); } }
.cover-line { position: absolute; left: 69px; top: -120px; width: 2px; height: 122px; background: rgba(255,255,255,.75); transform: rotate(24deg); transform-origin: bottom center; }
.game-slot.cover[data-game="fishing"] .cover-scene { height: 64px; width: 200px; bottom: 18px; }
.game-slot.cover[data-game="fishing"] .cover-pond { left: 0; right: 0; box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 0 0 3px #2a4d1a; }
.game-slot.cover[data-game="archery"] .cover-arrow { bottom: 78px; margin-left: -70px; }

/* ================= 射箭场 ================= */
.range { position: relative; width: min(100%, 720px); height: 300px; overflow: hidden; background: linear-gradient(#78a7ff 0, #b9d4ff 48%, #6fa84e 48% 60%, #4f8a35 60%); box-shadow: inset 0 0 0 3px #1a1a1a, 0 5px 0 #1a1a1a; perspective: 800px; }
.range-far { position: absolute; left: 0; right: 0; top: 40%; height: 9%; background: repeating-linear-gradient(90deg, #3f6d2b 0 26px, #365d24 26px 52px); clip-path: polygon(0 100%, 8% 30%, 15% 100%, 23% 20%, 33% 100%, 40% 45%, 50% 100%, 58% 10%, 70% 100%, 78% 35%, 88% 100%, 94% 40%, 100% 100%); }
.range-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background-image: repeating-conic-gradient(rgba(255,255,255,.06) 0 25%, transparent 0 50%), repeating-conic-gradient(rgba(0,0,0,.12) 0 25%, transparent 0 50%); background-size: 14px 14px, 24px 24px; pointer-events: none; }
.range-targets { position: absolute; inset: 0; z-index: 2; }
.target { position: absolute; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; transform-style: preserve-3d; }
.target:disabled { cursor: default; }
.target-body { position: relative; width: var(--s); height: calc(var(--s) + 14px); transform-style: preserve-3d; transition: transform .15s ease; }
.target-body .mc-cube { --s: inherit; position: absolute; left: 0; bottom: 14px; transform: rotateX(-18deg) rotateY(-26deg); }
.target-body .cube-shadow { --s: inherit; }
.target:hover:not(:disabled) .target-body { transform: translateY(-6px) scale(1.04); }
.target-tag { display: grid; justify-items: center; line-height: 1.05; padding: 3px 7px; background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 2px #1a1a1a; font-weight: 900; text-shadow: 1px 1px 0 #000; }
.target-tag b { font-size: 12px; color: #ffffa0; }
.target-tag em { font-style: normal; font-size: 13px; color: #7dff4a; }
.target-tag small { font-size: 10px; color: #ddd; font-weight: 700; }
/* 五个靶子的位置和远近：--s 越小越远 */
.target.t-pumpkin { --s: 74px; left: 6%; bottom: 8%; }
.target.t-zombie  { --s: 60px; left: 28%; bottom: 22%; }
.target.t-creeper { --s: 54px; left: 50%; bottom: 30%; }
.target.t-chicken { --s: 34px; left: 68%; bottom: 40%; }
.target.t-phantom { --s: 40px; left: 85%; top: 4%; }
.target.t-phantom .target-body { animation: phantom-fly 3.2s ease-in-out infinite; }
.target.t-phantom .cube-shadow { display: none; }
@keyframes phantom-fly { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(-40px,14px) rotate(5deg); } }
.target.t-chicken .target-body { animation: chicken-peck 1.6s ease-in-out infinite; }
@keyframes chicken-peck { 0%,100% { transform: translateX(0); } 30% { transform: translateX(6px); } 60% { transform: translateX(-4px); } }
.target.hit .target-body .mc-cube { animation: cube-break .7s ease-in forwards; }
.target.dodge .target-body { animation: target-dodge .5s ease-out; }
@keyframes target-dodge { 0%,100% { translate: 0 0; } 30% { translate: 14px -6px; } 70% { translate: -8px 0; } }
/* 靶子皮肤 */
.mc-cube.pumpkin .f { background-color: #d97a1f; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 6px, transparent 6px 16px), repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%); background-size: 100% 100%, 12px 12px; }
.mc-cube.pumpkin .f span.pick { font-size: calc(var(--s) * .62); }
.mc-cube.zombie .f { background-color: #4c8a3c; background-image: repeating-conic-gradient(rgba(0,0,0,.14) 0 25%, transparent 0 50%); background-size: 12px 12px; }
.mc-cube.zombie .f span.pick { font-size: calc(var(--s) * .6); }
.mc-cube.creeper .f { background-color: #55b944; background-image: repeating-conic-gradient(rgba(0,0,0,.18) 0 25%, transparent 0 50%), repeating-conic-gradient(rgba(255,255,255,.12) 0 25%, transparent 0 50%); background-size: 10px 10px, 18px 18px; }
.creeper-face { position: relative; width: 70%; height: 70%; display: block; }
.creeper-face i { position: absolute; top: 18%; width: 28%; height: 24%; background: #0a0a0a; }
.creeper-face i:first-child { left: 6%; } .creeper-face i:nth-child(2) { right: 6%; }
.creeper-face b { position: absolute; left: 34%; top: 42%; width: 32%; height: 48%; background: #0a0a0a; clip-path: polygon(20% 0, 80% 0, 80% 40%, 100% 40%, 100% 100%, 70% 100%, 70% 70%, 30% 70%, 30% 100%, 0 100%, 0 40%, 20% 40%); }
.mc-cube.chicken .f { background-color: #f3f3f3; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), inset 0 -6px 0 #f0b400; }
.mc-cube.chicken .f span.pick { font-size: calc(var(--s) * .7); }
.mc-cube.phantom .f { background-color: #3d5a8a; background-image: repeating-conic-gradient(rgba(140,200,255,.25) 0 25%, transparent 0 50%); background-size: 10px 10px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.3), 0 0 22px rgba(120,180,255,.45); }
.mc-cube.phantom .f span.pick { font-size: calc(var(--s) * .55); filter: drop-shadow(0 0 8px #9cf) hue-rotate(160deg); }
/* 弓和箭 */
.bow { position: absolute; left: 50%; bottom: -8px; width: 54px; height: 120px; margin-left: -27px; z-index: 4; transform-origin: 50% 90%; transform: rotate(-20deg); transition: transform .3s ease; }
.bow-arc { position: absolute; left: 20px; top: 0; width: 26px; height: 120px; border: 6px solid #8a5a2b; border-left: 0; border-radius: 0 60px 60px 0 / 0 100% 100% 0; box-shadow: 2px 0 0 #4d3016, inset -2px 0 0 #a67c52; }
.bow-string { position: absolute; left: 20px; top: 4px; width: 2px; height: 112px; background: #eee; transform-origin: 50% 0; transition: transform .25s ease; }
.bow.draw { transform: rotate(-26deg) translateY(6px); }
.bow.draw .bow-string { transform: skewX(-18deg); }
.bow.loose .bow-string { animation: string-snap .3s ease-out; }
@keyframes string-snap { 0% { transform: skewX(-18deg); } 40% { transform: skewX(8deg); } 100% { transform: skewX(0); } }
.arrow { position: absolute; z-index: 5; width: 58px; height: 4px; margin-top: -2px; background: linear-gradient(90deg, #f0f0f0 0 16%, #8a5a2b 16% 100%); transform-origin: left center; transform: rotate(var(--rot, -60deg)); pointer-events: none; }
.arrow::after { content: ''; position: absolute; right: -4px; top: -5px; width: 14px; height: 14px; background: #d0d0d0; clip-path: polygon(0 0, 100% 50%, 0 100%, 40% 50%); }
.arrow.fly { animation: arrow-fly .5s cubic-bezier(.3,.6,.6,1) forwards; }
.arrow.fly.miss { animation: arrow-miss .62s cubic-bezier(.3,.6,.6,1) forwards; }
@keyframes arrow-fly { 0% { transform: translate(0,0) rotate(var(--rot)); } 50% { transform: translate(calc(var(--tx) * .5), calc(var(--ty) * .5 - 50px)) rotate(calc(var(--rot) + 10deg)); } 100% { transform: translate(var(--tx), var(--ty)) rotate(calc(var(--rot) + 20deg)); } }
@keyframes arrow-miss { 0% { transform: translate(0,0) rotate(var(--rot)); } 50% { transform: translate(calc(var(--tx) * .55), calc(var(--ty) * .55 - 60px)) rotate(calc(var(--rot) + 10deg)); } 100% { transform: translate(calc(var(--tx) * 1.25 + 40px), calc(var(--ty) * .9 + 90px)) rotate(calc(var(--rot) + 45deg)); opacity: .6; } }
.range-call { min-height: 28px; color: #ffffa0; font-size: 16px; font-weight: 900; letter-spacing: .08em; text-shadow: 2px 2px 0 #3f3f3f; text-align: center; }
.game-arena.is-miss::before { animation: miss-flash .5s ease-out forwards; }
@keyframes miss-flash { 0% { background: rgba(40,40,60,.35); } 100% { background: rgba(0,0,0,0); } }
.game-hearts.arrows i { color: #e8dcc0; text-shadow: 2px 2px 0 #3a2a10, 0 0 0 2px #1a1a1a; font-size: 22px; }
.game-hearts.arrows i.empty { color: #3a3a3a; }

/* ================= 矿洞 ================= */
.mine { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; width: min(100%, 640px); align-items: start; }
.mine-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; padding: 10px; background: #2b2b30; box-shadow: inset 0 0 0 3px #1a1a1a, inset 0 0 0 5px #4a4a50, 0 5px 0 #1a1a1a; }
.ore { position: relative; aspect-ratio: 1; border: 0; border-radius: 0; padding: 0; cursor: pointer; overflow: hidden; background-color: #8b8b8b; background-image: repeating-conic-gradient(rgba(255,255,255,.10) 0 25%, transparent 0 50%), repeating-conic-gradient(rgba(0,0,0,.16) 0 25%, transparent 0 50%); background-size: 12px 12px, 20px 20px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.22), inset -3px -3px 0 rgba(0,0,0,.4); transition: transform .1s ease, filter .2s ease; image-rendering: pixelated; }
.ore:hover:not(:disabled):not(.open) { transform: translateY(-3px); filter: brightness(1.15); }
.ore:disabled:not(.open) { cursor: not-allowed; filter: brightness(.8); }
.ore .crack { position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(35deg, transparent 0 9px, rgba(0,0,0,.6) 9px 11px), repeating-linear-gradient(-50deg, transparent 0 13px, rgba(0,0,0,.5) 13px 15px); }
.ore.digging { animation: dig-shake .56s linear; }
.ore.digging .crack { animation: crack-grow .56s steps(4) forwards; }
@keyframes dig-shake { 0%,100% { translate: 0 0; } 20% { translate: -2px 1px; } 40% { translate: 2px -1px; } 60% { translate: -1px 2px; } 80% { translate: 1px -2px; } }
@keyframes crack-grow { from { opacity: 0; } to { opacity: 1; } }
.ore .ore-face { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.ore.open { cursor: default; background-color: #6a6a6e; box-shadow: inset 3px 3px 0 rgba(0,0,0,.45), inset -3px -3px 0 rgba(255,255,255,.08); animation: ore-open .3s ease-out; }
@keyframes ore-open { 0% { transform: scale(.9); filter: brightness(2); } 100% { transform: scale(1); filter: brightness(1); } }
.ore.open .ore-face { opacity: 1; }
.ore.open.dim { filter: brightness(.55) saturate(.6); animation: none; }
/* 挖开后的样子：石头就是更暗的石头；矿是石头底上撒矿点 */
.ore.open.stone { background-color: #6f6f6f; }
.ore.coal .ore-face, .ore.iron .ore-face, .ore.gold .ore-face, .ore.diamond .ore-face { background-image: radial-gradient(circle at 22% 26%, var(--ore) 0 10%, transparent 11%), radial-gradient(circle at 68% 24%, var(--ore-hi) 0 8%, transparent 9%), radial-gradient(circle at 40% 62%, var(--ore) 0 11%, transparent 12%), radial-gradient(circle at 78% 70%, var(--ore-hi) 0 8%, transparent 9%), radial-gradient(circle at 18% 78%, var(--ore-hi) 0 6%, transparent 7%); }
.ore.coal { --ore: #1b1b1b; --ore-hi: #3a3a3a; }
.ore.iron { --ore: #d8af93; --ore-hi: #f0cbb0; }
.ore.gold { --ore: #f7d34b; --ore-hi: #fff0a0; }
.ore.diamond { --ore: #43d3cc; --ore-hi: #a8fff8; }
.ore.open.diamond { box-shadow: inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.5), 0 0 22px rgba(95,233,226,.7); }
.ore.open.gold { box-shadow: inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.5), 0 0 16px rgba(247,211,75,.55); }
.ore.open.lava { background-color: #c2410c; background-image: repeating-conic-gradient(rgba(255,210,60,.55) 0 25%, transparent 0 50%), repeating-conic-gradient(rgba(120,20,0,.5) 0 25%, transparent 0 50%); background-size: 14px 14px, 22px 22px; box-shadow: inset 0 0 0 3px #7a1d00, 0 0 28px rgba(255,120,20,.8); animation: lava-glow 1s ease-in-out infinite alternate; }
@keyframes lava-glow { from { filter: brightness(1); } to { filter: brightness(1.35); } }
.mine-side { display: grid; gap: 10px; }
.mine-pending { display: grid; gap: 2px; padding: 10px 12px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px #1a1a1a, inset 0 0 0 4px #5a5a5a; }
.mine-pending small { color: #ffffa0; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.mine-pending b { font-size: 28px; color: #7dff4a; text-shadow: 2px 2px 0 #1f4d10; }
.mine-pending span { font-size: 11px; color: #bbb; }
.mine-key { display: grid; gap: 4px; padding: 8px 10px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px #1a1a1a; font-size: 12px; font-weight: 800; color: #e6e6e6; }
.ore-key { display: flex; align-items: center; gap: 8px; }
.ore-key i { width: 16px; height: 16px; background: #8b8b8b; box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.4); background-image: radial-gradient(circle at 35% 35%, var(--ore, #1b1b1b) 0 25%, transparent 27%), radial-gradient(circle at 70% 70%, var(--ore-hi, #3a3a3a) 0 20%, transparent 22%); }
.ore-key.lava i { background: #c2410c; box-shadow: inset 0 0 0 2px #7a1d00, 0 0 8px rgba(255,120,20,.8); background-image: none; }
.mine-call { min-height: 26px; color: #ffffa0; font-size: 15px; font-weight: 900; letter-spacing: .06em; text-shadow: 2px 2px 0 #3f3f3f; text-align: center; }
.game-pop.plain { color: #ddd; text-shadow: 3px 3px 0 #333; font-size: 34px; }

/* ================= 池塘 ================= */
.pond { position: relative; width: min(100%, 720px); height: 300px; overflow: hidden; background: linear-gradient(#78a7ff, #c4dbff 60%); box-shadow: inset 0 0 0 3px #1a1a1a, 0 5px 0 #1a1a1a; }
.pond-sun { position: absolute; right: 26px; top: 18px; width: 26px; height: 26px; background: #fff4a3; box-shadow: 0 0 0 4px rgba(255,244,163,.35), 0 0 28px #fff4a3; }
.pond-water { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; background: linear-gradient(#3f76e4, #2a56b8 70%, #1d3f8f); box-shadow: inset 0 4px 0 rgba(255,255,255,.4); overflow: hidden; }
.pond-water .wave { position: absolute; left: -60px; right: -60px; top: 16px; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 22px, transparent 22px 52px); animation: wave-drift 3.6s linear infinite; }
.pond-water .wave.w2 { top: 46px; opacity: .55; animation-duration: 5.2s; animation-direction: reverse; }
.pond-water .wave.w3 { top: 84px; opacity: .35; animation-duration: 6.4s; }
.dock { position: absolute; left: 0; bottom: 0; width: 34%; height: 50%; background-color: #8a5a2b; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 3px, transparent 3px 26px), repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 60px); box-shadow: inset 0 4px 0 #a67c52, inset -4px 0 0 #4d3016; }
.dock::after { content: ''; position: absolute; right: -14px; bottom: 0; width: 14px; height: 100%; background: #4d3016; }
.angler { position: absolute; left: 18%; bottom: 50%; width: 40px; height: 90px; transform-origin: 50% 100%; transition: transform .25s ease; }
.angler::before { content: ''; position: absolute; left: 6px; bottom: 0; width: 28px; height: 62px; background: linear-gradient(#3a8ad8 0 55%, #2d3a6b 55%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.angler::after { content: ''; position: absolute; left: 6px; bottom: 60px; width: 28px; height: 28px; background: #d9a066; box-shadow: inset 0 0 0 2px rgba(0,0,0,.3), inset 0 -10px 0 #6b3d12; }
.angler .rod { position: absolute; left: 30px; bottom: 44px; width: 6px; height: 130px; background: linear-gradient(#4d3016, #8a5a2b); transform-origin: 50% 100%; transform: rotate(40deg); transition: transform .35s cubic-bezier(.3,.8,.4,1.4); }
.angler.cast .rod { transform: rotate(62deg); }
.angler.reel .rod { animation: rod-reel .6s ease-in-out; }
@keyframes rod-reel { 0% { transform: rotate(62deg); } 50% { transform: rotate(10deg); } 100% { transform: rotate(40deg); } }
.line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.line path { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.5; }
.bobber { position: absolute; z-index: 4; width: 14px; height: 22px; margin: -22px 0 0 -7px; background: linear-gradient(#e33 0 50%, #f4f4f4 50%); box-shadow: inset 0 0 0 2px #1a1a1a; }
.bobber::before { content: ''; position: absolute; left: 5px; top: -8px; width: 4px; height: 8px; background: #1a1a1a; }
.bobber.throw { animation: bobber-throw .65s cubic-bezier(.3,.5,.6,1) forwards; }
@keyframes bobber-throw { 0% { transform: translate(0,0); } 50% { transform: translate(calc(var(--lx) * .5), calc(var(--ly) * .5 - 90px)); } 100% { transform: translate(var(--lx), var(--ly)); } }
.bobber.float { animation: bobber-float 2s ease-in-out infinite; }
.bobber.bite { animation: bobber-bite .35s ease-in-out infinite alternate; }
@keyframes bobber-bite { from { transform: translateY(4px) rotate(-10deg); } to { transform: translateY(16px) rotate(10deg); } }
.bobber.reel { animation: bobber-reel .5s ease-in forwards; }
@keyframes bobber-reel { to { transform: translate(-60px,-80px) scale(.6); opacity: 0; } }
.ripple { position: absolute; z-index: 2; width: 40px; height: 12px; margin: -6px 0 0 -20px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; }
.ripple.idle { animation: ripple-out 2s ease-out infinite; }
.ripple.bite { animation: ripple-out .6s ease-out infinite; border-color: #fff; }
.ripple.splash { animation: ripple-out .5s ease-out 2; border-width: 4px; }
@keyframes ripple-out { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.catch { position: absolute; z-index: 6; font-size: 44px; line-height: 1; margin: -22px 0 0 -22px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.catch.fly { animation: catch-fly .9s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes catch-fly { 0% { transform: translate(0,20px) scale(.4) rotate(0); opacity: 0; } 20% { opacity: 1; } 50% { transform: translate(calc(var(--lx) * .5), calc(var(--ly) * .5 - 110px)) scale(1.2) rotate(180deg); } 100% { transform: translate(var(--lx), var(--ly)) scale(1) rotate(360deg); } }
.catch.treasure { filter: drop-shadow(0 0 16px #ffe27a) drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.game-arena.is-bite .pond { animation: bite-nudge .35s ease-in-out infinite alternate; }
@keyframes bite-nudge { from { translate: 0 0; } to { translate: 0 2px; } }
.pond-call { min-height: 26px; color: #ffffa0; font-size: 16px; font-weight: 900; letter-spacing: .08em; text-shadow: 2px 2px 0 #3f3f3f; text-align: center; }
.cast-btn { font-size: 16px; padding: 14px 34px; }
/* 鱼的颜色区分：同一个 🐟 换色 */
.loot-salmon span, .over-icon.loot-salmon { filter: hue-rotate(150deg) saturate(1.4) drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.loot-rotten span, .over-icon.loot-rotten { filter: hue-rotate(80deg) saturate(.7) drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.loot-book span, .over-icon.loot-book { filter: drop-shadow(0 0 10px #b98cff) drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.over-icon { font-size: 34px; vertical-align: -6px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.25)); }
/* 图鉴 */
.album { display: grid; gap: 10px; width: min(100%, 720px); }
.album-row { padding: 10px 12px; background: var(--mcg-panel); border: 2px solid var(--mcg-ink); box-shadow: inset 2px 2px 0 var(--mcg-panel-hi), inset -2px -2px 0 var(--mcg-panel-lo), 0 4px 0 var(--mcg-ink); color: var(--mcg-title); }
.album-row.done { box-shadow: inset 2px 2px 0 var(--mcg-panel-hi), inset -2px -2px 0 var(--mcg-panel-lo), 0 4px 0 var(--mcg-ink), 0 0 18px rgba(247,211,75,.5); }
.album-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.album-head b { font-size: 14px; }
.album-head small { color: var(--mcg-muted); font-size: 12px; font-weight: 700; }
.album-row.done .album-head small { color: #b7860b; }
.album-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.album-slot { display: grid; justify-items: center; gap: 2px; width: 72px; padding: 6px 4px; background: var(--mcg-slot); box-shadow: inset 2px 2px 0 var(--mcg-slot-lo), inset -2px -2px 0 var(--mcg-slot-hi); font-style: normal; }
.album-slot span { font-size: 26px; line-height: 1.1; filter: grayscale(1) brightness(.35); transition: filter .3s ease; }
.album-slot small { font-size: 10px; color: #bbb; font-weight: 800; }
.album-slot.got span { filter: drop-shadow(1px 2px 0 rgba(0,0,0,.4)); }
.album-slot.got small { color: #fff; }
.album-slot.got.loot-salmon span { filter: hue-rotate(150deg) saturate(1.4) drop-shadow(1px 2px 0 rgba(0,0,0,.4)); }
.album-slot.got.loot-book span { filter: drop-shadow(0 0 8px #b98cff); }

@media (max-width: 760px) {
  .mine { grid-template-columns: 1fr; }
  .range, .pond { height: 240px; }
  .target.t-pumpkin { --s: 56px; } .target.t-zombie { --s: 46px; } .target.t-creeper { --s: 42px; }
}

.activity-pane[data-pane="games"].in-play .game-hero,
.activity-pane[data-pane="games"].in-play .games-wallet,
.activity-pane[data-pane="games"].in-play .game-grid,
.activity-pane[data-pane="games"].in-play #gamesLogin { display: none !important; }

@media (max-width: 760px) {
  .game-grid { grid-template-columns: 1fr; }
  .duel { grid-template-columns: 1fr auto 1fr; gap: 4px; }
  .duel-side .mc-cube { --s: 72px; }
  .torch { display: none; }
}

.activity-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 4px 0 0;
}

.activity-hero small, .activity-panel header small, .works-heading small, .podium-section header small, .gallery-heading small { color: var(--act-green); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.activity-hero h2 { margin: 4px 0 7px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -1.2px; }
.activity-hero p { max-width: 700px; margin: 0; color: var(--act-muted); font-size: 14px; }
.activity-hero p.hero-formula { color: var(--act-text); font-size: 15px; line-height: 1.65; }
.activity-hero p.hero-formula b { color: var(--act-gold); font-size: 20px; font-weight: 900; }
.activity-metrics { flex: none; display: flex; overflow: hidden; border: 1px solid var(--act-line); border-radius: 12px; background: var(--act-panel); box-shadow: var(--act-shadow); }
.activity-metrics span { min-width: 100px; padding: 11px 14px; color: var(--act-muted); font-size: 10px; border-left: 1px solid var(--act-line); }
.activity-metrics span:first-child { border: 0; }
.activity-metrics b { display: block; margin-bottom: 1px; color: var(--act-gold); font-size: 21px; }

/* 登录后置顶的收益条：已到账多少、还能再拿多少、什么时候发。 */
.earnings-wrap { margin: 0; padding: 0; }
.earnings-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding: 14px 20px;
  border: 1px solid color-mix(in srgb, var(--act-green) 34%, var(--act-line));
  border-radius: 14px;
  background: linear-gradient(100deg, var(--act-soft), var(--act-panel) 62%);
  box-shadow: var(--act-shadow);
}
.earn-item { display: flex; align-items: baseline; gap: 6px; }
.earn-item small { color: var(--act-muted); font-size: 11px; }
.earn-item b { color: var(--act-gold); font-size: 26px; line-height: 1; letter-spacing: -.5px; }
.earn-item span { color: var(--act-muted); font-size: 11px; }
.earn-note { flex: 1; min-width: 180px; margin: 0; text-align: right; color: var(--act-muted); font-size: 11px; }

.activity-layout {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.activity-left {
  position: static;
  max-height: none;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--act-green) 28%, transparent) transparent;
}

.activity-left::-webkit-scrollbar { width: 5px; }
.activity-left::-webkit-scrollbar-thumb { border-radius: 9px; background: color-mix(in srgb, var(--act-green) 28%, transparent); }

.activity-panel { overflow: hidden; border: 1px solid var(--act-line); border-radius: 14px; background: var(--act-panel); box-shadow: var(--act-shadow); }
.activity-panel > header { padding: 13px 15px 10px; border-bottom: 1px solid var(--act-line); }
.activity-panel h2, .works-heading h2 { margin: 2px 0 0; font-size: 17px; }
.rules-panel ol { list-style: none; margin: 0; padding: 6px 15px; }
.rules-panel li { display: grid; grid-template-columns: 88px 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--act-line); }
.rules-panel li:last-child { border: 0; }
.rules-panel li b { color: var(--act-green); font-size: 11px; }
.rules-panel li span { color: var(--act-muted); font-size: 11px; line-height: 1.5; }
.rules-note { padding: 10px 15px 12px; background: var(--act-soft); color: var(--act-muted); font-size: 11px; line-height: 1.5; }
.activity-panel button, .video-url-row button { border: 1px solid var(--act-line); border-radius: 8px; background: var(--act-panel); color: var(--act-text); padding: 7px 10px; cursor: pointer; }
.activity-panel button:hover { border-color: var(--act-green); color: var(--act-green); }

#videoForm { padding: 14px 15px; }
#videoForm label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.video-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.video-url-row input { min-width: 0; padding: 9px 10px; border: 1px solid var(--act-line); border-radius: 9px; outline: 0; color: var(--act-text); background: var(--act-bg); }
.video-url-row input:focus { border-color: var(--act-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--act-green) 15%, transparent); }
.video-url-row button { color: var(--on-accent); background: var(--act-green); border-color: var(--act-green); font-weight: 700; }
#videoForm > small { display: block; margin-top: 7px; color: var(--act-muted); font-size: 9px; }
#loginGate { padding: 14px 15px; }
#loginGate > p { margin: 0 0 8px; color: var(--act-muted); }
#loginGate .wechat-qr-shell { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
#loginGate .wechat-qr-stage { width: 120px; height: 120px; }
#loginGate .wechat-qr-image { width: 104px; height: 104px; }
#loginGate .wechat-login-copy > b { font-size: 14px; }
.video-preview { margin: 0 14px 14px; overflow: hidden; border: 1px solid var(--act-line); border-radius: 11px; }
.video-preview > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-preview-body { padding: 11px; }
.video-preview-body h3 { margin: 0 0 4px; font-size: 14px; }
.video-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--act-muted); font-size: 9px; }
.video-preview-warning { margin: 9px 0 0; padding: 7px 9px; color: var(--act-gold); background: color-mix(in srgb, var(--act-gold) 10%, var(--act-panel)); font-size: 10px; }
.video-preview-reward { margin: 9px 0 0; padding: 7px 9px; border-radius: 7px; color: var(--act-text); background: var(--act-soft); font-size: 10px; line-height: 1.6; }
.video-preview-reward b { color: var(--act-gold); font-size: 13px; }
.confirm-row { display: grid; gap: 7px; margin-top: 11px; }
.confirm-row label { display: flex; gap: 7px; color: var(--act-muted); font-size: 10px; }
.confirm-row button { color: var(--on-accent); background: var(--act-green); border-color: var(--act-green); font-weight: 750; }
.submission-list { border-top: 1px solid var(--act-line); }
.submission-item { padding: 11px 14px; border-bottom: 1px solid var(--act-line); }
.submission-item:last-child { border: 0; }
.submission-item > div { display: flex; align-items: center; gap: 7px; }
.submission-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.submission-item small { display: block; margin-top: 4px; color: var(--act-muted); font-size: 9px; }
.submission-status { flex: none; padding: 3px 6px; border-radius: 5px; color: var(--act-green); background: var(--act-soft); font-size: 9px; }
.submission-item.failed .submission-status { color: var(--act-bad); }
.share-panel { padding-bottom: 11px; }
.invite-summary { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin: 11px 13px; padding: 9px; border: 1px solid var(--act-line); border-radius: 9px; background: var(--act-soft); }
.invite-summary span { font-size: 10px; }
.invite-summary b { color: var(--act-green); font-family: ui-monospace, monospace; }
.copy-template { width: calc(100% - 26px); display: flex; align-items: center; justify-content: space-between; margin: 7px 13px !important; text-align: left; }
.copy-template small { color: var(--act-muted); }

.activity-right { min-width: 0; }
.works-heading, .gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 2px 2px 12px; }
.works-heading span, .gallery-heading span { color: var(--act-muted); font-size: 10px; }
.gallery-heading { margin-top: 18px; }
.gallery-heading h3, .podium-section h3 { margin: 2px 0 0; font-size: 17px; }

.podium-section {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 0;
  border: 1px solid var(--act-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--act-gold) 9%, var(--act-panel)), var(--act-panel) 42%),
    var(--act-panel);
  box-shadow: var(--act-shadow);
}

.podium-section::after {
  content: "";
  position: absolute;
  right: -65px;
  top: -85px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--act-gold) 8%, transparent);
  pointer-events: none;
}

.podium-section > header { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px 14px; }
.podium-section > header span { color: var(--act-muted); font-size: 10px; }
.featured-podium { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding-top: 23px; }

.podium-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--act-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  color: var(--act-text);
  background: color-mix(in srgb, var(--act-panel) 96%, var(--act-soft));
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(29, 42, 24, .10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.podium-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(29, 42, 24, .16); }
.podium-card.rank-1 { z-index: 3; border-color: color-mix(in srgb, #d8a51e 60%, var(--act-line)); }
.podium-card.rank-2 { border-color: color-mix(in srgb, #9aa6ad 55%, var(--act-line)); }
.podium-card.rank-3 { border-color: color-mix(in srgb, #b87548 55%, var(--act-line)); }
.podium-rank { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; align-items: center; gap: 5px; padding: 4px 7px 4px 5px; border: 1px solid rgba(255,255,255,.36); border-radius: 99px; color: #fff; background: rgba(20, 24, 18, .72); box-shadow: 0 4px 16px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.podium-rank i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #382800; background: #e6b928; font-size: 11px; font-style: normal; font-weight: 900; }
.rank-2 .podium-rank i { color: #263036; background: #c5cdd1; }
.rank-3 .podium-rank i { color: #402415; background: #ca895b; }
.podium-rank span { font-size: 9px; font-weight: 800; }
.podium-cover { position: relative; overflow: hidden; background: var(--act-soft); }
.podium-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.podium-card:hover .podium-cover img { transform: scale(1.035); }
.podium-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10, 13, 9, .55)); pointer-events: none; }
.podium-body { padding: 10px 11px 11px; }
.podium-body > small { color: var(--act-muted); font-size: 9px; }
.podium-body h3 { min-height: 34px; margin: 3px 0 8px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; }
.podium-body > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid var(--act-line); }
.podium-body > div span { color: var(--act-muted); font-size: 9px; }
.podium-body > div b { color: var(--act-gold); font-size: clamp(13px, 1.4vw, 18px); white-space: nowrap; }
.podium-step { height: 52px; display: grid; place-items: center; border-top: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.82); background: linear-gradient(150deg, #8c969c, #68747b); }
.rank-1 .podium-step { height: 76px; background: linear-gradient(150deg, #d7aa28, #a97b13); }
.rank-3 .podium-step { height: 39px; background: linear-gradient(150deg, #b9784b, #8d5332); }
.podium-step strong { font-family: Georgia, serif; font-size: 28px; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.16); }
.rank-1 .podium-step strong { font-size: 40px; }

.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.work-card { min-width: 0; overflow: hidden; border: 1px solid var(--act-line); border-radius: 12px; color: var(--act-text); background: var(--act-panel); box-shadow: 0 8px 24px rgba(31,53,25,.06); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--act-green) 45%, var(--act-line)); box-shadow: var(--act-shadow); }
.work-cover { position: relative; overflow: hidden; background: var(--act-soft); }
.work-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.work-card:hover .work-cover img { transform: scale(1.035); }
.work-rank { position: absolute; bottom: 7px; left: 7px; z-index: 2; padding: 3px 6px; border-radius: 5px; color: #fff; background: rgba(10,13,9,.66); font-size: 9px; font-weight: 800; backdrop-filter: blur(6px); }
.work-card-body { padding: 9px 10px 10px; }
.work-card h3 { margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.work-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--act-muted); font-size: 9px; }
.work-card-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-card-meta b { flex: none; color: var(--act-gold); font-size: 11px; }
.works-empty { grid-column: 1 / -1; min-height: 280px; display: grid; place-content: center; text-align: center; border: 2px dashed var(--act-line); border-radius: 14px; color: var(--act-muted); background: color-mix(in srgb, var(--act-panel) 65%, transparent); }
.compact-empty { min-height: 120px; }

/* ---- 榜单：Tab、倒计时、名次变动、擂主、前 20 列表 ---- */
.board-heading { align-items: center; }
.board-clock { display: flex; align-items: baseline; gap: 6px; padding: 6px 11px; border: 1px solid var(--act-line); border-radius: 99px; background: var(--act-panel); }
.board-clock small { color: var(--act-muted); font-size: 10px; }
.board-clock b { color: var(--act-gold); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.board-clock span { color: var(--act-muted); font-size: 10px; }
.board-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.board-tabs button { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--act-line); border-radius: 11px; background: var(--act-panel); color: var(--act-text); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.board-tabs button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--act-green) 45%, var(--act-line)); }
.board-tabs button.on { border-color: var(--act-green); background: color-mix(in srgb, var(--act-green) 10%, var(--act-panel)); box-shadow: inset 0 0 0 1px var(--act-green); }
.board-tabs b { font-size: 13px; }
.board-tabs small { color: var(--act-muted); font-size: 9px; }
.board-desc { margin: 0 2px 10px; color: var(--act-muted); font-size: 10.5px; }
.mv { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 6px; font-size: 9.5px; font-style: normal; font-weight: 800; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.mv.up { color: #fff; background: #2f9a4d; }
.mv.down { color: #fff; background: #c4553a; }
.mv.new { color: #2a2000; background: #f0c14a; }
.mv.same { color: var(--act-muted); background: color-mix(in srgb, var(--act-muted) 14%, transparent); }
.mv.me { color: #fff; background: #3a6ea5; }
.crown { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 4px; padding: 3px 8px; border-radius: 99px; color: #4a3300; background: linear-gradient(120deg, #ffe08a, #f0c14a); font-size: 9.5px; font-style: normal; font-weight: 900; white-space: nowrap; }
.podium-tags { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; gap: 4px; }
.podium-card.mine { box-shadow: 0 0 0 2px #3a6ea5, 0 12px 32px rgba(29, 42, 24, .10); }
.podium-body > div span em { display: block; margin-top: 1px; color: var(--act-muted); font-size: 8.5px; font-style: normal; }
.board-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.board-row { display: grid; grid-template-columns: 30px 88px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 10px 7px 6px; border: 1px solid var(--act-line); border-radius: 11px; background: var(--act-panel); transition: border-color .15s ease, transform .15s ease; }
.board-row:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--act-green) 45%, var(--act-line)); }
.board-row.mine { border-color: #3a6ea5; background: color-mix(in srgb, #3a6ea5 7%, var(--act-panel)); }
.board-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--act-muted); background: var(--act-soft); font-family: Georgia, serif; font-size: 14px; font-weight: 800; }
.board-cover { display: block; overflow: hidden; border-radius: 7px; background: var(--act-soft); }
.board-cover img { display: block; width: 88px; aspect-ratio: 16 / 9; object-fit: cover; }
.board-main { min-width: 0; display: grid; gap: 2px; }
.board-main a { color: inherit; text-decoration: none; }
.board-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.board-main small { color: var(--act-muted); font-size: 9.5px; }
.board-move { min-width: 34px; text-align: center; }
.board-score { text-align: right; }
.board-score b { display: block; color: var(--act-gold); font-size: 14px; white-space: nowrap; }
.board-score small { color: var(--act-muted); font-size: 8.5px; white-space: nowrap; }
.board-rules { margin: 14px 0 0; padding: 0 12px; border: 1px dashed var(--act-line); border-radius: 11px; background: color-mix(in srgb, var(--act-panel) 70%, transparent); }
.board-rules summary { padding: 9px 0; color: var(--act-muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.board-rules ul { margin: 0; padding: 0 0 10px 16px; color: var(--act-muted); font-size: 10.5px; line-height: 1.6; }
.board-rules b { color: var(--act-text); }
.activity-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); padding: 10px 16px; border: 2px solid var(--act-green); border-radius: 9px; color: #fff; background: #243423; box-shadow: var(--act-shadow); }

@media (max-width: 1180px) {
  .activity-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .activity-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: 1fr; }
  .checkin-rules { grid-template-columns: 1fr; }
  .shop-item .shop-price { margin-left: 0; }
  .podium-body h3 { font-size: 12px; }
  .podium-body > div { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 930px) {
  .activity-shell { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .activity-rail { position: static; }
  .activity-rail h1 { font-size: 24px; }
  .activity-pick { grid-template-columns: 1fr 1fr; }
  .activity-hero { align-items: flex-start; flex-direction: column; }
  .activity-layout { grid-template-columns: minmax(0, 1fr); }
  .activity-left { min-width: 0; position: static; max-height: none; grid-template-columns: 1fr 1fr; overflow: visible; }
  .submit-panel, .share-panel { grid-column: 2; }
  .rules-panel { grid-row: 1 / 3; }
  .podium-body > div { align-items: flex-end; flex-direction: row; }
  .board-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-row { grid-template-columns: 26px 72px minmax(0, 1fr) auto; }
  .board-row .board-move { display: none; }
  .board-cover img { width: 72px; }
  .board-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 680px) {
  .activity-topbar { padding-inline: 12px; }
  .activity-topbar nav a:first-child { display: none; }
  .activity-shell { padding: 12px 12px 40px; }
  .activity-pick { grid-template-columns: 1fr; }
  .activity-hero { padding: 0; }
  .activity-hero h2 { font-size: 28px; }
  .checkin-claim { padding: 16px; }
  .checkin-copy b { font-size: 18px; }
  .checkin-claim .primary-button { width: 100%; }
  .activity-metrics { width: 100%; }
  .activity-metrics span { min-width: 0; flex: 1; padding: 9px 6px; font-size: 9px; }
  .activity-metrics b { font-size: 16px; }
  .earnings-wrap { padding-inline: 0; }
  .earnings-bar { gap: 10px 20px; padding: 12px 14px; }
  .earn-item b { font-size: 21px; }
  .earn-note { min-width: 100%; text-align: left; }
  .activity-layout { padding-inline: 0; gap: 18px; }
  .activity-right { order: -1; }
  .activity-left { grid-template-columns: 1fr; }
  .activity-panel, #loginGate { min-width: 0; }
  .rules-panel, .submit-panel, .share-panel { grid-column: auto; grid-row: auto; }
  .works-heading { align-items: flex-start; }
  .works-heading > span { display: none; }
  .podium-section { padding: 14px 9px 0; border-radius: 15px; }
  .podium-section > header { padding-inline: 4px; }
  .featured-podium { gap: 5px; padding-top: 10px; }
  .featured-podium { width: 100%; grid-template-columns: repeat(3, calc((100% - 10px) / 3)); }
  .podium-rank { top: 5px; left: 5px; padding: 2px; }
  .podium-rank i { width: 18px; height: 18px; font-size: 9px; }
  .podium-rank span { display: none; }
  .podium-body { padding: 7px; }
  .podium-body > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
  .podium-body h3 { min-height: 30px; margin: 2px 0 6px; font-size: 10px; }
  .podium-body > div { align-items: flex-start; flex-direction: column; gap: 2px; padding-top: 6px; }
  .podium-body > div span { font-size: 7px; }
  .podium-body > div b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
  .podium-step { height: 35px; }
  .rank-1 .podium-step { height: 52px; }
  .rank-3 .podium-step { height: 27px; }
  .podium-step strong { font-size: 19px; }
  .rank-1 .podium-step strong { font-size: 27px; }
  .gallery-heading { margin-top: 15px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .work-card-body { padding: 7px; }
  .work-card h3 { font-size: 10px; }
  .work-card-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .work-card-meta b { font-size: 9px; }
}

@media (max-width: 400px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   原版素材版的小游戏
   =====================================================================
   上面那套画面是用 CSS 渐变和 emoji 拼的：靶子是同心圆渐变、矿是色块、鱼是
   字符。换成 `frontend/assets/mc/` 里的真材质之后，这一节把那些假件全盖掉。
   素材来源和更新方式见 `scripts/fetch-mc-assets.py`。

   放在文件末尾是故意的：同样特异度下后面的规则赢，不用给每条都加前缀去压
   上面的旧规则和 skins.css。 */

/* ---- 基本件 ---- */
/* 16×16 的材质放大必须最近邻，双线性一插值就糊成一团油画 */
.mck {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  user-select: none; -webkit-user-drag: none;
}
/* 摆一件东西：方块是等轴渲染图，物品是平面图，共用同一套投影和影子 */
.mc-thing { position: relative; width: var(--s, 96px); height: var(--s, 96px); }
.mc-thing > .mck { filter: drop-shadow(3px 4px 0 rgba(0,0,0,.32)); }
.mc-thing.float { animation: thing-hover 4.2s ease-in-out infinite; }
@keyframes thing-hover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
/* 影子跟着等轴方块的六边形轮廓走，圆的一看就不是 MC */
.mc-shade {
  position: absolute; left: 50%; bottom: -4px; z-index: -1;
  width: calc(var(--s, 96px) * .78); height: 12px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.34);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}
.mc-shade.breathe { animation: shade-breathe 4.2s ease-in-out infinite; }
@keyframes shade-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .34; }
  50% { transform: translateX(-50%) scale(.7); opacity: .18; }
}
/* 破坏：MC 里方块碎掉是一下变亮再塌下去，碎屑由 burst() 另外撒 */
@keyframes thing-break {
  0% { transform: none; filter: brightness(1); }
  30% { transform: scale(1.14); filter: brightness(2) contrast(1.3); }
  100% { transform: translateY(46px) scale(.15) rotate(24deg); opacity: 0; }
}
/* 物品格：原版背包那个凹陷的灰格子 */
.mck-slot {
  position: relative;
  display: grid; place-items: center;
  width: var(--s, 56px); height: var(--s, 56px);
  padding: calc(var(--s, 56px) * .12);
  background: var(--mcg-slot, #8b8b8b);
  box-shadow: inset 3px 3px 0 var(--mcg-slot-lo, #373737), inset -3px -3px 0 var(--mcg-slot-hi, #fff);
}
.mck-slot > .mck { filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35)); }

/* ---- 命：换成原版的心 ---- */
.game-hearts { display: inline-flex; gap: 2px; margin-left: 6px; font-size: 0; }
.game-hearts i { display: block; width: 20px; height: 20px; font-style: normal; color: transparent; text-shadow: none; }
.game-hearts i .mck { filter: drop-shadow(1px 1px 0 rgba(0,0,0,.7)); }
/* 空的一格：原版是暗底的心形容器，这里把白模压黑当容器用 */
.game-hearts i.empty .mck { filter: brightness(0) opacity(.55); }
.game-hearts i.breaking { animation: heart-pop .65s ease-in forwards; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  25% { transform: scale(1.6) rotate(-12deg); filter: brightness(2.4); }
  55% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(.8); opacity: .5; }
}
/* 箭当命用的时候格子窄一点，箭本来就是竖的。箭杆细，暗底上得描一圈才看得见 */
.game-hearts.arrows i { width: 18px; height: 24px; }
.game-hearts.arrows i .mck { filter: drop-shadow(0 0 2px rgba(255,255,255,.55)) drop-shadow(1px 1px 0 rgba(0,0,0,.9)); }
.game-hearts.arrows i.empty .mck { filter: brightness(0) opacity(.45); }

/* ---- 粒子：碎屑就是从方块材质上裁下来的小方片 ---- */
/* MC 破坏方块时飞出来的碎屑是材质本身的小块，所以这里同一张图放大四倍，
   每片随机取一处。取样范围限制在中间，避开等轴方块图四角的透明区。 */
.px {
  background-color: transparent;
  background-size: 400% 400%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  box-shadow: 1px 1px 0 rgba(0,0,0,.35);
}
.px.orb {
  border-radius: 0;
  background-size: 100% 100%;
  box-shadow: none;
  filter: drop-shadow(0 0 6px rgba(125,255,74,.9));
}

/* ---- 券栏：券换成真的纸 ---- */
.wallet-slots i.has::before {
  content: '';
  width: 24px; height: 24px;
  background: url('assets/mc/items/paper.png') center / contain no-repeat;
  image-rendering: pixelated;
  box-shadow: none;
  filter: drop-shadow(1px 2px 0 rgba(0,0,0,.35));
}

/* ---- 选择栏：图标换贴图 ---- */
.game-picks button i { display: block; width: 46px; height: 46px; }
.game-picks button i .mck { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }

/* ---- 封面 ---- */
/* 地面：一排真的草方块。等轴方块图是六边形轮廓，横排铺开顶面会留出小豁口，
   底下垫一层泥土色把豁口填上，看着就是一条方块地面。 */
.cover-ground {
  height: 42px;
  background-color: #6b4a2b;
  background-image: url('assets/mc/blocks/grass-block.png');
  background-repeat: repeat-x;
  background-position: center bottom -6px;
  background-size: 42px 42px;
  image-rendering: pixelated;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.28);
}
.cover-scene { bottom: 40px; height: 120px; }
.cover-scene .mc-thing { position: absolute; left: 50%; bottom: 8px; transform-origin: 50% 90%; margin-left: calc(var(--s) / -2); }
/* 每张封面错开一点相位，一排看过去不会齐刷刷地上下动 */
.game-slot.cover[data-game="dice"] .cover-scene .mc-thing { animation-delay: -1.4s; }
.game-slot.cover[data-game="wheel"] .cover-scene .mc-thing { animation-delay: -2.8s; }
.game-slot.cover[data-game="mining"] .cover-scene .mc-thing { animation-delay: -.7s; }
.game-slot.cover[data-game="fishing"] .cover-scene .mc-thing { animation-delay: -2.1s; }
.game-slot.cover:hover .cover-scene .mc-thing { animation-duration: 1.8s; }
/* 封面上挂的第二件东西：镐、箭、鱼 */
.cover-extra { position: absolute; z-index: 3; display: block; width: 44px; height: 44px; }
.cover-extra .mck { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.4)); }
.cover-extra.pick { right: 8px; bottom: 58px; transform-origin: 70% 80%; animation: pick-swing 1.5s ease-in-out infinite; }
@keyframes pick-swing { 0%, 100% { transform: rotate(-38deg); } 50% { transform: rotate(14deg); } }
.cover-extra.stuck { right: 12px; bottom: 62px; width: 52px; height: 52px; transform: rotate(-28deg); animation: thing-hover 4.2s ease-in-out infinite; }
.cover-extra.jump { left: 6px; bottom: 46px; width: 36px; height: 36px; animation: fish-jump 2.4s ease-in-out infinite; }
@keyframes fish-jump {
  0%, 100% { transform: translateY(10px) rotate(-20deg); opacity: .35; }
  50% { transform: translateY(-26px) rotate(24deg); opacity: 1; }
}
.cover-extra.side { left: 4px; bottom: 52px; width: 38px; height: 38px; animation: thing-hover 3.6s ease-in-out infinite -1.2s; }
.cover-extra.side2 { right: 4px; bottom: 52px; width: 38px; height: 38px; animation: thing-hover 3.6s ease-in-out infinite -2.4s; }

/* ---- 舞台底：别再用棋盘格 ---- */
/* 原来那层浅色棋盘格一眼看着像 PS 的透明背景。换成暗色岩壁：底一层渐变，
   上面压一层很淡的 8px 噪点当材质颗粒，不抢前景。 */
.game-stage {
  background-color: #1d1d22;
  background-image:
    repeating-conic-gradient(rgba(255,255,255,.035) 0 25%, transparent 0 50%),
    radial-gradient(120% 90% at 50% 0%, rgba(90,90,110,.22), transparent 60%),
    linear-gradient(180deg, #2a2a31, #1a1a1f 60%, #131317);
  background-size: 8px 8px, 100% 100%, 100% 100%;
}

/* ---- 射箭场 ---- */
/* 地面是一排真草方块；远处的树线换成一排橡树叶，比原来那排绿三角像样 */
.range { height: 320px; }
.range-ground {
  height: 52px;
  background-color: #4f8a35;
  background-image: url('assets/mc/blocks/grass-block.png');
  background-repeat: repeat-x;
  background-position: left bottom -10px;
  background-size: 52px 52px;
  image-rendering: pixelated;
  z-index: 1;
}
.range-far {
  top: 36%; height: 44px;
  background: url('assets/mc/blocks/oak-leaves.png') repeat-x left bottom / 44px 44px;
  image-rendering: pixelated;
  clip-path: none;
  opacity: .85;
}
.range-far::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 22px;
  background: url('assets/mc/blocks/oak-log.png') repeat-x left top / 22px 22px;
  image-rendering: pixelated;
  opacity: .7;
}
.range-targets { z-index: 3; }
.target { transform-style: flat; }
.target-art { position: relative; display: block; width: var(--s); height: var(--s); }
.target-art .mck { filter: drop-shadow(3px 4px 0 rgba(0,0,0,.35)); }
.target-art::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; z-index: -1;
  width: 72%; height: 9px; transform: translateX(-50%);
  background: rgba(0,0,0,.3);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}
.target:hover:not(:disabled) .target-art { transform: translateY(-6px) scale(1.05); transition: transform .15s ease; }
/* 标签压在靶子上方，不占位；不然靶子一大一小，下面的标签会互相顶。 */
.target-tag {
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,.72);
}
.target-tag b { font-size: 11px; }
.target-tag em { font-size: 12px; }
.target:hover:not(:disabled) .target-tag { background: rgba(20,40,10,.9); box-shadow: inset 0 0 0 2px #7dff4a; }
/* 越远的靶子越小、越高。弓在右下角，所以靶子整体往左排，别压在弓上。 */
.target.t-pumpkin { --s: 84px; left: 3%; bottom: 8%; }
.target.t-zombie  { --s: 72px; left: 21%; bottom: 20%; }
.target.t-creeper { --s: 60px; left: 39%; bottom: 29%; }
.target.t-chicken { --s: 42px; left: 55%; bottom: 38%; }
.target.t-phantom { --s: 56px; left: 72%; top: 8%; bottom: auto; }
.target.t-phantom .target-art { animation: phantom-fly 3.4s ease-in-out infinite; }
.target.t-phantom .target-art::after { display: none; }
/* 幻翼在天上，标签往上放会被射击场上边裁掉，改挂在下面 */
.target.t-phantom .target-tag { bottom: auto; top: calc(100% + 4px); }
.target.t-chicken .target-art { animation: chicken-hop 1.8s ease-in-out infinite; }
@keyframes chicken-hop {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(7px, -5px); }
  70% { transform: translate(-5px, 0); }
}
.target.hit .target-art { animation: thing-break .7s ease-in forwards; }
.target.dodge .target-art { animation: target-dodge .5s ease-out; }
/* 弓：原版的 bow_pulling_0/1/2 三帧，按拉弓进度换，跟游戏里一模一样。
   位置照第一人称：贴在右下角，弓身斜着往左上，箭从弓口飞出去。 */
.archer { position: absolute; right: -14px; bottom: -22px; z-index: 4; width: 208px; height: 208px; transform-origin: 70% 80%; transform: rotate(-6deg); transition: transform .18s ease; }
.archer .mck { filter: drop-shadow(4px 5px 0 rgba(0,0,0,.5)); }
.archer.draw-1 { transform: rotate(-9deg) translate(6px, 4px) scale(1.04); }
.archer.draw-2 { transform: rotate(-12deg) translate(12px, 8px) scale(1.08); }
.archer.full { animation: bow-strain .5s ease-in-out infinite alternate; }
@keyframes bow-strain { from { transform: rotate(-12deg) translate(12px, 8px) scale(1.08); } to { transform: rotate(-13deg) translate(14px, 9px) scale(1.1); } }
.archer.loose { animation: bow-loose .26s ease-out; }
@keyframes bow-loose {
  0% { transform: rotate(-12deg) translate(12px, 8px) scale(1.08); }
  40% { transform: rotate(-2deg) translate(-8px, -6px) scale(.96); }
  100% { transform: rotate(-6deg); }
}
/* 拉弓进度条：拉满才放得出去，免得看着像"松得准就中得多" */
.draw-meter {
  position: absolute; left: 50%; bottom: 8px; z-index: 6;
  width: 120px; height: 10px; margin-left: -60px;
  background: rgba(0,0,0,.55);
  box-shadow: inset 0 0 0 2px #1a1a1a, inset 0 0 0 3px #5a5a5a;
  opacity: 0; transition: opacity .15s ease;
}
.draw-meter.on { opacity: 1; }
.draw-meter i { display: block; width: 0; height: 100%; background: linear-gradient(#7dff4a, #2f8a1c); transition: width .05s linear; }
.draw-meter.ready i { background: linear-gradient(#fff0a0, #f0c14a); }
.arrow-shot { position: absolute; z-index: 5; display: block; width: 48px; height: 48px; margin: -24px 0 0 -24px; transform-origin: 50% 50%; pointer-events: none; }
.arrow-shot .mck { filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
.arrow-shot.fly { animation: shot-fly .5s cubic-bezier(.3,.6,.6,1) forwards; }
.arrow-shot.fly.miss { animation: shot-miss .62s cubic-bezier(.3,.6,.6,1) forwards; }
@keyframes shot-fly {
  0% { transform: translate(0, 0) rotate(var(--rot)); }
  50% { transform: translate(calc(var(--tx) * .5), calc(var(--ty) * .5 - 46px)) rotate(calc(var(--rot) + 8deg)); }
  100% { transform: translate(var(--tx), var(--ty)) rotate(calc(var(--rot) + 16deg)); }
}
@keyframes shot-miss {
  0% { transform: translate(0, 0) rotate(var(--rot)); }
  50% { transform: translate(calc(var(--tx) * .55), calc(var(--ty) * .55 - 56px)) rotate(calc(var(--rot) + 8deg)); }
  100% { transform: translate(calc(var(--tx) * 1.25 + 40px), calc(var(--ty) * .9 + 96px)) rotate(calc(var(--rot) + 46deg)); opacity: .5; }
}
/* 中了以后钉在靶子上的那支箭 */
.arrow-stuck { position: absolute; z-index: 5; display: block; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; animation: stuck-in .2s ease-out; }
@keyframes stuck-in { from { transform: scale(1.5) rotate(var(--rot)); } to { transform: scale(1) rotate(var(--rot)); } }

/* ---- 矿洞 ---- */
/* 格子就是原版的物品格，里面摆真方块。越往下两排换深层岩，看着像在往下挖。 */
.mine-grid { gap: 5px; background: #23232a; }
.ore {
  background: var(--mcg-slot, #8b8b8b);
  background-image: none;
  box-shadow: inset 3px 3px 0 var(--mcg-slot-hi, #fff), inset -3px -3px 0 var(--mcg-slot-lo, #373737);
  display: grid; place-items: center;
  padding: 4px;
}
.ore-art { position: relative; display: block; width: 100%; height: 100%; }
.ore-art .mck { filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.ore:hover:not(:disabled):not(.open) { transform: translateY(-3px); filter: brightness(1.12); }
.ore:hover:not(:disabled):not(.open) .ore-art { animation: ore-nudge .4s ease-in-out infinite alternate; }
@keyframes ore-nudge { from { transform: translateY(0); } to { transform: translateY(-2px); } }
/* 裂纹：原版是十级的 destroy_stage 贴图，站里没有，用暗线叠上去顶替 */
.ore .crack {
  position: absolute; inset: 0; z-index: 2; opacity: 0;
  background:
    repeating-linear-gradient(38deg, transparent 0 9px, rgba(0,0,0,.65) 9px 11px),
    repeating-linear-gradient(-52deg, transparent 0 13px, rgba(0,0,0,.5) 13px 15px);
}
.ore.open {
  background: #4a4a52;
  background-image: none;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), inset -3px -3px 0 rgba(255,255,255,.06);
  animation: ore-open .3s ease-out;
}
.ore.open.dim .ore-art { filter: brightness(.6) saturate(.65); }
/* 挖出好矿的时候格子自己发光，不用再靠文字提示 */
.ore.open.diamond { box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), 0 0 22px rgba(95,233,226,.75); }
.ore.open.gold { box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), 0 0 18px rgba(247,211,75,.6); }
.ore.open.lava {
  background: #5a1400;
  box-shadow: inset 0 0 0 3px #7a1d00, 0 0 30px rgba(255,120,20,.85);
  animation: lava-glow 1s ease-in-out infinite alternate;
}
.ore.open.lava .ore-art { animation: lava-bob .9s ease-in-out infinite alternate; }
@keyframes lava-bob { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.06); } }
/* 图例里的小方块也用真贴图 */
.ore-key i {
  width: 22px; height: 22px;
  background: none !important;
  box-shadow: none;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  image-rendering: pixelated;
}
.ore-key.coal i { background-image: url('assets/mc/blocks/coal-ore.png') !important; }
.ore-key.iron i { background-image: url('assets/mc/blocks/iron-ore.png') !important; }
.ore-key.gold i { background-image: url('assets/mc/blocks/gold-ore.png') !important; }
.ore-key.diamond i { background-image: url('assets/mc/blocks/diamond-ore.png') !important; }
.ore-key.lava i { background-image: url('assets/mc/blocks/magma-block.png') !important; }
/* 侧栏顶上摆一把镐，敲下去跟着晃 */
.mine-tool { display: grid; place-items: center; padding: 6px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 2px #1a1a1a; }
.mine-tool span { display: block; width: 54px; height: 54px; transform-origin: 70% 80%; }
.mine-tool .mck { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.mine-tool.swing span { animation: pick-hit .5s ease-in-out; }
@keyframes pick-hit {
  0% { transform: rotate(-30deg); }
  35% { transform: rotate(22deg); }
  70% { transform: rotate(-12deg); }
  100% { transform: rotate(-30deg); }
}

/* ---- 池塘 ---- */
.pond { height: 320px; }
/* 码头：等轴木板方块铺一行当台面，下面用木色实底当侧面。
   整片都铺方块会变成一堆叠起来的箱子，反而不像一块平台。 */
.dock {
  width: 28%; height: 42%;
  background-color: #6b4a2b;
  background-image:
    linear-gradient(rgba(0,0,0,0) 0 46px, rgba(0,0,0,.45) 46px),
    url('assets/mc/blocks/oak-planks.png');
  background-repeat: no-repeat, repeat-x;
  background-position: left top, left top;
  background-size: 100% 100%, 46px 46px;
  image-rendering: pixelated;
  box-shadow: inset -3px 0 0 rgba(0,0,0,.4);
}
/* 码头上摆个木桶和一盏灯，不然那片木板太空 */
.dock-prop { position: absolute; z-index: 3; display: block; width: 46px; height: 46px; }
.dock-prop .mck { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.4)); }
.dock-prop.barrel { left: 3%; bottom: 40%; }
.dock-prop.lantern { left: 18%; bottom: 41%; width: 38px; height: 38px; filter: drop-shadow(0 0 14px rgba(255,190,80,.85)); }
/* 钓竿照第一人称摆右下角，和射箭那把弓一个路子：不用画小人，视角还统一。
   抛出去之后换成 fishing_rod_cast 那一帧，跟游戏里一致。 */
.rod-hand { position: absolute; right: -6px; bottom: -10px; z-index: 4; width: 168px; height: 168px; transform-origin: 78% 82%; transform: rotate(-4deg); transition: transform .3s cubic-bezier(.3,.8,.4,1.4); }
.rod-hand .mck { filter: drop-shadow(3px 4px 0 rgba(0,0,0,.5)); }
.rod-hand.cast { transform: rotate(-26deg) translate(-10px, -12px); }
.rod-hand.reel { animation: rod-reel .6s ease-in-out; }
@keyframes rod-reel {
  0% { transform: rotate(-26deg) translate(-10px, -12px); }
  50% { transform: rotate(10deg) translate(6px, -4px); }
  100% { transform: rotate(-4deg); }
}
/* 水里的杂草和荷叶：这些是平面物品图，浮在水面上正好 */
.pond-weed { position: absolute; z-index: 1; display: block; width: 30px; height: 30px; opacity: .8; }
.pond-weed.w1 { left: 58%; bottom: 6px; }
.pond-weed.w2 { left: 74%; bottom: 18px; width: 24px; height: 24px; opacity: .6; }
.pond-pad { position: absolute; z-index: 2; display: block; width: 46px; height: 46px; }
.pond-pad.p1 { left: 44%; bottom: 30px; animation: pad-drift 5s ease-in-out infinite; }
.pond-pad.p2 { left: 84%; bottom: 46px; width: 34px; height: 34px; animation: pad-drift 6.5s ease-in-out infinite reverse; }
@keyframes pad-drift { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(-8px, 3px) rotate(3deg); } }
/* 钓上来的东西：真物品图，飞到手上 */
.catch { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 0; }
.catch .mck { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.catch.treasure .mck { filter: drop-shadow(0 0 18px #ffe27a) drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
/* 结算面板上那个小图标 */
.over-icon { display: inline-block; width: 34px; height: 34px; vertical-align: -8px; font-size: 0; }
.over-icon .mck { filter: drop-shadow(1px 2px 0 rgba(0,0,0,.3)); }
/* 图鉴：格子换成原版成就框，钓到的亮，没钓到的是空框。
   底板得是暗的——成就框本来是画在深色提示框上的，铺在浅灰面板上边都看不见。 */
.album-row {
  background: rgba(0,0,0,.5);
  box-shadow: inset 0 0 0 2px #1a1a1a, inset 0 0 0 4px #4a4a50, 0 4px 0 #1a1a1a;
  color: #e6e6e6;
}
.album-row.done { box-shadow: inset 0 0 0 2px #1a1a1a, inset 0 0 0 4px #7a5a10, 0 4px 0 #1a1a1a, 0 0 18px rgba(247,211,75,.4); }
.album-head b { color: #ffffa0; }
.album-head small { color: #bbb; }
.album-row.done .album-head small { color: #ffd24a; }
.album-slot {
  width: 76px; padding: 8px 4px 6px;
  background: none;
  box-shadow: none;
}
.album-slot > span {
  position: relative;
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: 0 auto 3px;
  padding: 9px;
  background: url('assets/mc/ui/frame-goal-empty.png') center / contain no-repeat;
  image-rendering: pixelated;
  font-size: 0;
  filter: none;
}
/* 没钓到的：灰掉压暗就行。压成纯黑剪影会糊在成就框的浅灰底上，什么都看不出来。 */
.album-slot > span .mck { filter: grayscale(1) brightness(.5) contrast(1.4); transition: filter .3s ease; }
.album-slot.got > span { background-image: url('assets/mc/ui/frame-goal.png'); }
.album-slot.got > span .mck { filter: drop-shadow(1px 2px 0 rgba(0,0,0,.45)); }
.album-row.done .album-slot.got > span { background-image: url('assets/mc/ui/frame-challenge.png'); }
.album-slot small { font-size: 10px; color: #9a9a9a; font-weight: 800; }
.album-slot.got small { color: #fff; }

/* ---- 猜拳：剪刀 / 圆石 / 白羊毛 ---- */
/* 试过在脚下垫一排石砖，但对局区是上下居中的，那排砖看着像半空中的架子，
   反而不如让两件东西直接浮在暗处（读起来就是个山洞）。 */
.duel { perspective: none; }
.duel-side .hand { position: relative; display: block; width: 104px; height: 104px; transition: transform .3s ease; }
.duel-side .hand .mck { filter: drop-shadow(3px 4px 0 rgba(0,0,0,.4)); }
.duel-side.you .hand { transform: rotate(-6deg); }
.duel-side.house .hand { transform: rotate(6deg); }
/* 庄家没亮牌之前是一块黑曜石，紫光一闪一闪 */
.duel-side.house .hand.hidden-pick .mck { filter: drop-shadow(0 0 14px #9b5cff) drop-shadow(3px 4px 0 rgba(0,0,0,.4)); animation: mystery-pulse 1.6s ease-in-out infinite; }
@keyframes mystery-pulse { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.game-arena.is-roll .duel-side.you .hand { animation: hand-clash-you .82s cubic-bezier(.4,0,.2,1); }
.game-arena.is-roll .duel-side.house .hand { animation: hand-clash-house .82s cubic-bezier(.4,0,.2,1); }
@keyframes hand-clash-you {
  0% { transform: rotate(-6deg); }
  40% { transform: translate(-26px, -36px) rotate(-24deg) scale(1.08); }
  75% { transform: translate(52px, 0) rotate(12deg); }
  100% { transform: rotate(-6deg); }
}
@keyframes hand-clash-house {
  0% { transform: rotate(6deg); }
  40% { transform: translate(26px, -36px) rotate(24deg) scale(1.08); }
  75% { transform: translate(-52px, 0) rotate(-12deg); }
  100% { transform: rotate(6deg); }
}
.game-arena.is-win .duel-side.house .hand { animation: thing-break .8s ease-in forwards; }
.game-arena.is-lose .duel-side.you .hand { animation: thing-break .8s ease-in forwards; }
.game-arena.is-draw .duel-side .hand { animation: hand-bump .5s ease-out; }
@keyframes hand-bump { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---- 猜大小：改成开箱子看开出什么矿 ---- */
/* MC 里没有骰子，掷骰的画面怎么做都不像。1–6 换成六种矿：煤/铜/铁 算小，
   金/绿宝石/钻石 算大，越往后越值钱，一眼就知道自己押的是哪半边。
   服务端还是只回输赢，开出哪一种是从输赢反推的，跟原来一样。 */
.vault { position: relative; display: grid; justify-items: center; gap: 10px; width: min(100%, 640px); height: 250px; align-content: end; }
.vault-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background-color: #3a3a42;
  background-image: url('assets/mc/blocks/stone-bricks.png');
  background-repeat: repeat-x;
  background-position: center bottom -10px;
  background-size: 46px 46px;
  image-rendering: pixelated;
}
/* 箱子要坐在地面上，不能悬着：往下压过地面顶边一点点 */
.vault-chest { position: relative; z-index: 2; width: 132px; height: 132px; margin-bottom: 12px; transform-origin: 50% 90%; }
.vault-chest .mck { filter: drop-shadow(4px 5px 0 rgba(0,0,0,.45)); }
.game-arena.is-roll .vault-chest { animation: chest-rattle .9s ease-in-out; }
@keyframes chest-rattle {
  0%, 100% { transform: none; }
  15% { transform: translate(-4px, 0) rotate(-3deg); }
  30% { transform: translate(4px, -2px) rotate(3deg); }
  45% { transform: translate(-3px, 0) rotate(-2deg); }
  60% { transform: translate(3px, -3px) rotate(2deg); }
  80% { transform: translateY(-8px) scale(1.05); }
}
/* 开出来的矿从箱子里飞出来停在半空 */
.vault-drop { position: absolute; left: 50%; bottom: 96px; z-index: 3; width: 96px; height: 96px; margin-left: -48px; opacity: 0; }
.vault-drop .mck { filter: drop-shadow(3px 4px 0 rgba(0,0,0,.4)); }
.vault-drop.show { animation: drop-out .7s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes drop-out {
  0% { transform: translateY(40px) scale(.3) rotate(-20deg); opacity: 0; }
  45% { transform: translateY(-26px) scale(1.15) rotate(12deg); opacity: 1; }
  100% { transform: translateY(-10px) scale(1) rotate(0deg); opacity: 1; }
}
.vault-drop.big .mck { filter: drop-shadow(0 0 20px rgba(247,211,75,.8)) drop-shadow(3px 4px 0 rgba(0,0,0,.4)); }

/* ---- 大转盘：扇区里摆真物品 ---- */
/* 盘面还是转盘（MC 里没有这东西，但这个交互大家都懂），奖品图标换成真的锭、
   附魔之瓶和纸，转到哪一格一眼看得出中了什么。 */
.wheel { border-color: #8a5a2b; box-shadow: 0 0 0 4px #1a1a1a, inset 0 0 0 4px #1a1a1a, 0 14px 0 #4d3016, 0 26px 40px rgba(0,0,0,.5), inset 0 0 60px rgba(0,0,0,.35); }
.wheel-label { align-items: flex-start; }
/* 图标压在扇区外圈，名字接在它下面，一格从外往里读 */
.wheel-label span { margin-top: 50px; max-height: 34%; font-size: 11px; }
.wheel-icon {
  position: absolute; left: 50%; top: 12px;
  display: block; width: 32px; height: 32px; margin-left: -16px;
  font-size: 0;
}
.wheel-icon .mck { filter: drop-shadow(1px 2px 0 rgba(0,0,0,.6)); }
.wheel-hub { background-image: url('assets/mc/blocks/oak-planks.png'); background-size: 34px 34px; image-rendering: pixelated; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.7); }

/* ---- 声音开关 ---- */
.sfx-btn { padding: 7px 10px; font-size: 12px; line-height: 1; }
.sfx-btn::before { content: '🔇'; margin-right: 4px; font-size: 13px; }
.sfx-btn.on::before { content: '🔊'; }

@media (max-width: 760px) {
  .target.t-pumpkin { --s: 62px; }
  .target.t-zombie { --s: 54px; }
  .target.t-creeper { --s: 46px; }
  .target.t-chicken { --s: 34px; }
  .target.t-phantom { --s: 44px; }
  .archer { width: 104px; height: 104px; margin-left: -52px; }
  .duel-side .hand { width: 78px; height: 78px; }
  .vault-chest { width: 104px; height: 104px; }
  .rod-hand { width: 72px; height: 72px; }
}

/* ---------- 2026-10-06 投稿加抖音 / 小红书 ---------- */
.platform-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 15px 9px; }
.platform-chips span, .pf-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px;
  font-size: 9px; font-style: normal; font-weight: 700; color: #fff; flex: none;
}
.platform-chips small { color: var(--act-muted); font-size: 9px; }
.pf-bilibili { background: #00a1d6; }
.pf-douyin { background: #161823; }
.pf-xiaohongshu { background: #ff2442; }
[data-theme="dark"] .pf-douyin { background: #3a3d4a; }
.social-preview-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 14px 12px; color: #fff;
}
.social-preview-head b { font-size: 15px; }
.social-preview-head span { font-size: 10px; opacity: .85; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.video-meta a { color: var(--act-green); }
.social-title-field { display: grid; gap: 5px; margin-top: 10px; color: var(--act-muted); font-size: 10px; }
.social-title-field input, .likes-form input {
  min-width: 0; padding: 8px 9px; border: 1px solid var(--act-line); border-radius: 8px;
  outline: 0; color: var(--act-text); background: var(--act-bg); font: inherit; font-size: 12px;
}
.social-title-field input:focus, .likes-form input:focus { border-color: var(--act-green); }
.likes-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; margin-top: 8px; }
.likes-form button { color: var(--on-accent); background: var(--act-green); border-color: var(--act-green); font-weight: 700; font-size: 11px; }
.likes-form a { color: var(--act-green); font-size: 10px; white-space: nowrap; }
@media (max-width: 520px) { .likes-form { grid-template-columns: minmax(0, 1fr) auto; } .likes-form a { grid-column: 1 / -1; } }
