/* 石器勇者：横版动作闯关。关卡选择页沿用乐园 Q 版风格；游戏层全屏深色，画面 16:9 等比缩放，
   HUD 与触屏按钮用容器单位（cqh）随画面大小缩放。手机防闪屏：按钮去点击高亮、禁用双击缩放与长按菜单。 */
.hero-page .fun-main { width: min(100% - 20px, 1180px); }
.hero-page .fun-title img { width: 38px; height: 38px; object-fit: contain; }

/* ---------- 横幅 ---------- */
.hero-banner {
  position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center;
  margin-bottom: 18px; padding: 18px 22px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 12% 30%, rgba(255, 213, 102, .45), transparent 45%),
    linear-gradient(135deg, #2b3b7a 0%, #4c3b8f 48%, #b1486e 100%);
  border: 4px solid #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
}
.hero-banner::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 200, 90, .35), transparent 65%); pointer-events: none;
}
.hb-art { width: 180px; max-height: 250px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); animation: hb-float 3.2s ease-in-out infinite; }
@keyframes hb-float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.hb-kicker { margin: 0; color: #ffd76a; font-size: 13px; font-weight: 800; letter-spacing: 3px; }
.hb-text h2 { margin: 2px 0 6px; font-family: var(--font-title); font-size: clamp(30px, 5vw, 46px); letter-spacing: 6px; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.hb-desc { margin: 0 0 12px; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.75; }
.hb-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hb-bar { position: relative; flex: 1 1 240px; height: 26px; overflow: hidden; background: rgba(0, 0, 0, .28); border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; }
.hb-bar i { display: block; width: var(--p, 0%); height: 100%; background: linear-gradient(90deg, #ffcf4a, #ff8a3d); border-radius: 999px; transition: width .8s var(--out); }
.hb-bar span { position: absolute; inset: 0; font-size: 13px; font-weight: 800; line-height: 22px; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hb-reward .rewards { gap: 6px; }
.hb-reward .reward { color: var(--ink); }
.hb-reward .done { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; color: #1f6e4d; font-weight: 800; background: #d9ffe9; border-radius: 999px; }
.hero-banner .hint { color: rgba(255, 255, 255, .72); }

/* ---------- 关卡卡片 ---------- */
.hero-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stage-card {
  position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 12px; overflow: hidden;
  color: #fff; text-align: left; background: #2a2f47 var(--bg) center / cover no-repeat; border: 4px solid #fff;
  border-radius: 22px; box-shadow: var(--shadow); cursor: pointer; font: inherit; isolation: isolate;
  transition: transform .25s var(--jelly), box-shadow .25s;
  animation: fun-rise .5s var(--out) both; animation-delay: var(--d, 0s);
}
.stage-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 30, .1) 20%, rgba(10, 14, 30, .82) 100%); }
.stage-card .sc-no { align-self: flex-start; padding: 2px 10px; color: #5a2c05; font-size: 12px; font-weight: 900; background: #ffd76a; border-radius: 999px; box-shadow: 0 3px 0 #d88a1b; }
.stage-card .sc-boss { display: block; width: 100%; height: 92px; margin: 8px 0 4px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.stage-card h3 { margin: auto 0 2px; font-family: var(--font-title); font-size: 20px; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.stage-card .sc-bossname { margin: 0; color: #ffd9e6; font-size: 12px; font-weight: 700; }
.stage-card .sc-state { margin-top: 8px; padding: 6px 8px; font-size: 12.5px; font-weight: 800; text-align: center; background: rgba(255, 255, 255, .18); border-radius: 12px; backdrop-filter: blur(2px); }
.stage-card.open .sc-state { color: #3a2400; background: linear-gradient(180deg, #ffe066, #ffb238); box-shadow: 0 3px 0 #c9771b; }
.stage-card.done .sc-state { color: #0f5a3d; background: #c8f7df; }
.stage-card.locked { cursor: not-allowed; }
.stage-card.locked > * { opacity: .55; }
.stage-card.locked .sc-state { opacity: 1; background: rgba(0, 0, 0, .45); }
@media (hover: hover) and (pointer: fine) {
  .stage-card:not(.locked):hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
}
@media (max-width: 900px) {
  .hero-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hero-banner { grid-template-columns: 1fr; text-align: center; }
  .hb-art { justify-self: center; width: 130px; }
  .hero-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-card { min-height: 220px; }
}

/* ---------- 职业选择 ---------- */
.hero-classes { margin-bottom: 18px; }
.hero-classes h2 small { color: var(--muted); font-size: 13px; font-weight: 700; }
.cls-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cls-card {
  position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; padding: 12px 12px 14px;
  overflow: hidden; color: var(--ink); text-align: left; font: inherit; background: #fff; border: 4px solid #efe3f7;
  border-radius: 22px; box-shadow: var(--shadow); cursor: pointer; isolation: isolate;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .25s var(--jelly), border-color .2s, box-shadow .25s;
  animation: fun-rise .5s var(--out) both; animation-delay: var(--d, 0s);
}
.cls-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; }
.cls-warrior::before { background: radial-gradient(circle at 12% 20%, #ffe0a6, transparent 60%); }
.cls-archer::before { background: radial-gradient(circle at 12% 20%, #c9f5c0, transparent 60%); }
.cls-mage::before { background: radial-gradient(circle at 12% 20%, #cfe3ff, transparent 60%); }
.cls-card.on { border-color: #ffb238; box-shadow: 0 0 0 4px rgba(255, 178, 56, .25), var(--shadow-lg); }
.cls-art { width: 96px; height: 132px; object-fit: contain; object-position: 50% 0; filter: drop-shadow(0 6px 8px rgba(60, 30, 80, .3)); }
.cls-card.on .cls-art { animation: hb-float 2.6s ease-in-out infinite; }
.cls-title { margin: 0; color: #c9771b; font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.cls-body h3 { margin: 0 0 6px; font-family: var(--font-title); font-size: 22px; letter-spacing: 2px; }
.cls-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cls-tags span { padding: 1px 8px; color: #6b4a8a; font-size: 11.5px; font-weight: 800; background: #f3eafa; border-radius: 999px; }
.cls-desc { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.cls-skills { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cls-skills li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.cls-skills img { width: 26px; height: 26px; object-fit: contain; }
.cls-check {
  position: absolute; right: 10px; top: 10px; padding: 2px 10px; color: #8a7c8f; font-size: 11.5px; font-weight: 900;
  background: #f6f0fb; border-radius: 999px;
}
.cls-card.on .cls-check { color: #5a2c05; background: #ffd76a; box-shadow: 0 3px 0 #d88a1b; }
@media (hover: hover) and (pointer: fine) {
  .cls-card:hover { transform: translateY(-4px); border-color: #ffd28a; }
}
@media (max-width: 900px) {
  .cls-list { grid-template-columns: 1fr; }
  .cls-card { grid-template-columns: 78px 1fr; }
  .cls-art { width: 78px; height: 108px; }
}

.stage-card .sc-gems { display: flex; gap: 4px; margin-top: 6px; }
.stage-card .sc-gems i {
  width: 20px; height: 20px; background: url("/static/hero-icon-gem.webp?v=20260928-2") center / contain no-repeat;
  filter: grayscale(1) brightness(.7); opacity: .55;
}
.stage-card .sc-gems i.on { filter: drop-shadow(0 0 4px rgba(255, 230, 120, .9)); opacity: 1; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.key-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.key-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13.5px; }
.key-list span { margin-left: 6px; color: var(--muted); }
kbd {
  display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 7px; color: var(--ink);
  font: 800 12px var(--font-body); background: #fff; border: 2px solid #e3d6ee; border-bottom-width: 4px; border-radius: 8px;
}

/* ---------- 游戏层 ---------- */
.hero-play {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #0a0d18;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.hp-stage {
  position: relative; width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden;
  container-type: size; background: #000;
}
@supports (height: 100dvh) { .hp-stage { width: min(100vw, calc(100dvh * 16 / 9)); } }
#hero-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-body); color: #fff; }
.hud-me { position: absolute; left: 1.6cqh; top: 1.6cqh; display: flex; align-items: flex-start; gap: 1.2cqh; }
.hud-face {
  width: 10cqh; height: 10cqh; overflow: hidden; background: radial-gradient(circle at 40% 30%, #ffe9a8, #ff9b3b);
  border: .6cqh solid #fff; border-radius: 50%; box-shadow: 0 .6cqh 0 rgba(0, 0, 0, .35);
}
.hud-face img { width: 100%; height: 170%; object-fit: cover; object-position: 50% 0; }
.hud-bars { display: grid; gap: .6cqh; width: 30cqh; padding-top: .4cqh; }
.bar-hp, .bar-rage { position: relative; overflow: hidden; background: rgba(0, 0, 0, .55); border: .35cqh solid rgba(255, 255, 255, .85); border-radius: 99px; }
.bar-hp { height: 3.4cqh; }
.bar-rage { height: 2.2cqh; }
.bar-hp i, .bar-rage i { position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); transition: width .18s linear; }
.bar-hp i { background: linear-gradient(180deg, #ff8b8b, #e8293b); }
.bar-hp.low i { animation: hp-low .6s steps(2) infinite; }
@keyframes hp-low { 50% { filter: brightness(1.6); } }
.bar-hp b { position: absolute; inset: 0; font-size: 2.2cqh; line-height: 2.7cqh; text-align: center; text-shadow: 0 1px 2px #000; }
.bar-rage i { background: linear-gradient(90deg, #ffb300, #ff5a1f); }
.bar-rage.full i { background: linear-gradient(90deg, #ffe34d, #ff3d6e, #ffe34d); background-size: 200% 100%; animation: rage-full .8s linear infinite; }
@keyframes rage-full { to { background-position: 200% 0; } }
.bar-rage em { position: absolute; top: 0; bottom: 0; width: .3cqh; background: rgba(255, 255, 255, .55); }
.bar-rage em:nth-of-type(1) { left: 25%; }
.bar-rage em:nth-of-type(2) { left: 35%; }
.bar-rage em:nth-of-type(3) { left: 99.6%; display: none; }
.hud-lives { display: flex; gap: .5cqh; font-size: 2.4cqh; line-height: 1; filter: drop-shadow(0 1px 1px #000); }
.hud-lives i { font-style: normal; }
.hud-lives i.lost { opacity: .25; filter: grayscale(1); }
.hud-mid { position: absolute; left: 50%; top: 1.6cqh; display: grid; justify-items: center; transform: translateX(-50%); text-shadow: 0 .3cqh 0 rgba(0, 0, 0, .5); }
.hud-mid b { font-family: var(--font-title); font-size: 3.4cqh; letter-spacing: .3cqh; }
.hud-mid span { font-size: 2.4cqh; font-weight: 800; font-variant-numeric: tabular-nums; }
.hud-gems { display: flex; align-items: center; gap: .5cqh; margin-top: .3cqh; font-style: normal; }
.hud-gems img { width: 3.2cqh; height: 3.2cqh; object-fit: contain; filter: drop-shadow(0 0 .6cqh rgba(255, 230, 120, .8)); }
.hud-gems span { font-size: 2.2cqh; }
.hud-gems.pop { animation: gem-pop .45s var(--jelly); }
@keyframes gem-pop { 40% { transform: scale(1.35); } }
.hud-btns { position: absolute; right: 1.6cqh; top: 1.6cqh; display: flex; gap: 1cqh; pointer-events: auto; }
.hud-btn {
  display: grid; place-items: center; width: 7cqh; height: 7cqh; padding: 0; color: #fff; font-size: 3cqh; font-weight: 900;
  background: rgba(0, 0, 0, .45); border: .4cqh solid rgba(255, 255, 255, .8); border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hud-combo { position: absolute; right: 3cqh; top: 26cqh; display: grid; justify-items: end; color: #ffe24d; text-shadow: 0 .4cqh 0 #b04a00, 0 0 2cqh rgba(255, 120, 0, .6); }
.hud-combo b { font-family: var(--font-title); font-size: 9cqh; line-height: 1; }
.hud-combo span { font-size: 2.8cqh; font-weight: 900; letter-spacing: .4cqh; }
.hud-combo.pop b { animation: combo-pop .22s var(--jelly); }
@keyframes combo-pop { from { transform: scale(1.5); } }
.hud-boss { position: absolute; left: 50%; bottom: 3cqh; width: 58cqh; transform: translateX(-50%); animation: boss-in .6s var(--out); }
@keyframes boss-in { from { opacity: 0; transform: translate(-50%, 4cqh); } }
.hb-name { display: flex; align-items: baseline; justify-content: center; gap: 1cqh; margin-bottom: .6cqh; text-shadow: 0 .3cqh 0 #000; }
.hb-name b { font-family: var(--font-title); font-size: 3.4cqh; letter-spacing: .3cqh; }
.hb-name small { color: #ffc2d2; font-size: 2cqh; font-weight: 800; }
.boss-bar { position: relative; height: 2.8cqh; overflow: hidden; background: rgba(0, 0, 0, .6); border: .4cqh solid #fff; border-radius: 99px; box-shadow: 0 0 2cqh rgba(255, 60, 90, .45); }
.boss-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); background: linear-gradient(180deg, #ff6b8b, #c3143a); }
.boss-bar i.lag { background: #ffd9a8; transition: width .8s ease-out .25s; }
.hud-skills { position: absolute; left: 2cqh; bottom: 2cqh; display: flex; gap: 1.2cqh; }
.sk { position: relative; width: 9cqh; height: 9cqh; overflow: hidden; background: rgba(0, 0, 0, .55); border: .45cqh solid #fff; border-radius: 1.8cqh; }
.sk img { width: 100%; height: 100%; object-fit: cover; }
.sk.off img { filter: grayscale(1) brightness(.6); }
.sk.ready { box-shadow: 0 0 2.2cqh #ffcf4a; }
.sk::after { content: ""; position: absolute; inset: 0; background: conic-gradient(rgba(0, 0, 0, .62) var(--cd, 0%), transparent 0); }
.sk kbd { position: absolute; right: .4cqh; bottom: .4cqh; min-width: 3cqh; height: 3cqh; padding: 0 .5cqh; font-size: 1.8cqh; border-width: .2cqh; border-bottom-width: .4cqh; border-radius: .8cqh; }
.sk small { position: absolute; left: .4cqh; top: .2cqh; font-size: 1.8cqh; font-weight: 900; text-shadow: 0 1px 2px #000; }
.hud-banner {
  position: absolute; left: 50%; top: 30%; padding: 1.4cqh 5cqh; color: #fff; font-family: var(--font-title);
  font-size: 6.4cqh; letter-spacing: .8cqh; white-space: nowrap; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .6) 20%, rgba(0, 0, 0, .6) 80%, transparent);
  transform: translateX(-50%); text-shadow: 0 .5cqh 0 rgba(0, 0, 0, .4); animation: banner-in .5s var(--jelly);
}
.hud-banner small { display: block; color: #ffd76a; font-family: var(--font-body); font-size: 2.6cqh; font-weight: 800; letter-spacing: .5cqh; text-align: center; }
.hud-banner.warn { color: #ffdf5a; background: linear-gradient(90deg, transparent, rgba(160, 10, 30, .7) 20%, rgba(160, 10, 30, .7) 80%, transparent); }
@keyframes banner-in { from { opacity: 0; transform: translateX(-50%) scale(1.6); } }

/* ---------- 触屏按键 ---------- */
.touch { position: absolute; inset: 0; pointer-events: none; }
.touch.on .hud-skills, .touch-mode .hud-skills { display: none; }
.stick-zone { position: absolute; left: 0; bottom: 0; width: 45%; height: 70%; pointer-events: auto; touch-action: none; }
.stick {
  position: absolute; left: var(--sx, 16cqh); top: var(--sy, 60%); width: 24cqh; height: 24cqh; margin: -12cqh 0 0 -12cqh;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), rgba(255, 255, 255, .25)); border: .5cqh solid rgba(255, 255, 255, .55); border-radius: 50%;
}
.stick i {
  position: absolute; left: 50%; top: 50%; width: 11cqh; height: 11cqh; margin: -5.5cqh 0 0 -5.5cqh;
  background: radial-gradient(circle at 40% 35%, #fff, #cfd8ff); border-radius: 50%; box-shadow: 0 .6cqh 1.2cqh rgba(0, 0, 0, .4);
  transform: translate(var(--kx, 0), var(--ky, 0));
}
.pad { position: absolute; right: 0; bottom: 0; width: 46%; height: 62%; pointer-events: none; }
.tb {
  position: absolute; display: grid; place-items: center; padding: 0; color: #fff; font: 900 2.6cqh var(--font-body);
  background: rgba(20, 24, 44, .45); border: .5cqh solid rgba(255, 255, 255, .8); border-radius: 50%;
  pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.tb.down { background: rgba(255, 190, 60, .6); transform: scale(.92); }
.tb-atk { right: 5cqh; bottom: 6cqh; width: 20cqh; height: 20cqh; font-size: 3.4cqh; background: rgba(230, 70, 60, .5); }
.tb-jump { right: 27cqh; bottom: 3cqh; width: 14cqh; height: 14cqh; background: rgba(60, 140, 240, .5); }
.tb-dash { right: 7cqh; bottom: 28cqh; width: 13cqh; height: 13cqh; background: rgba(40, 180, 150, .5); }
/* 攻击 / 跳跃 / 冲刺：图标铺满圆形按钮，下方一行小字 */
.tb-main { overflow: hidden; }
.tb-main img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.tb-main span {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); padding: 0 .8cqh; font-size: 1.9cqh;
  line-height: 1.5; white-space: nowrap; background: rgba(0, 0, 0, .45); border-radius: 99px; pointer-events: none;
}
.tb-sk { width: 11.5cqh; height: 11.5cqh; overflow: hidden; }
.tb-sk img { width: 100%; height: 100%; object-fit: cover; }
.tb-sk i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(0, 0, 0, .65) var(--cd, 0%), transparent 0); }
.tb-sk.off img { filter: grayscale(1) brightness(.6); }
.tb-sk.ready { box-shadow: 0 0 2.4cqh #ffcf4a; }
.tb-s1 { right: 43cqh; bottom: 17cqh; }
.tb-s2 { right: 30cqh; bottom: 22cqh; }
.tb-s3 { right: 22cqh; bottom: 36cqh; }

/* ---------- 遮罩层 ---------- */
.ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 3cqh; background: rgba(8, 10, 22, .62); }
.ov-card {
  width: min(92%, 86cqh); max-height: 94cqh; overflow: auto; padding: 3cqh 4cqh; color: var(--ink); text-align: center;
  background: var(--card); border: .8cqh solid #fff; border-radius: 4cqh; box-shadow: var(--shadow-lg); animation: fun-pop .4s var(--jelly);
}
.ov-card h3 { margin: 0 0 1.6cqh; font-family: var(--font-title); font-size: 5cqh; letter-spacing: .5cqh; }
.ov-kicker { margin: 0; color: var(--orange-deep); font-size: 2.4cqh; font-weight: 800; letter-spacing: .4cqh; }
.ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6cqh; margin-top: 2cqh; }
.ov-actions .btn { height: 7.6cqh; padding: 0 3.4cqh; font-size: 2.8cqh; }
.load-bar { height: 2.4cqh; overflow: hidden; background: #efe6f7; border-radius: 99px; }
.load-bar i { display: block; width: var(--p, 0%); height: 100%; background: linear-gradient(90deg, #ffcf4a, #ff7a55); transition: width .2s; }
.ov-result .res-grade {
  display: grid; place-items: center; width: 14cqh; height: 14cqh; margin: -1cqh auto 1cqh; color: #fff; font-family: var(--font-title);
  font-size: 9cqh; background: radial-gradient(circle at 35% 30%, #ffe27a, #ff8a1c); border: .6cqh solid #fff; border-radius: 50%;
  box-shadow: 0 .8cqh 0 #c95f0a; animation: grade-in .7s var(--jelly);
}
.ov-result .res-grade.g-A { background: radial-gradient(circle at 35% 30%, #c9f0ff, #3b9cf3); box-shadow: 0 .8cqh 0 #256fb8; }
.ov-result .res-grade.g-B { background: radial-gradient(circle at 35% 30%, #d8ffe9, #22c3a3); box-shadow: 0 .8cqh 0 #178b74; }
.ov-result .res-grade.g-C { background: radial-gradient(circle at 35% 30%, #eee, #9a8aa8); box-shadow: 0 .8cqh 0 #6e6178; }
.ov-result .res-grade.g-X { background: radial-gradient(circle at 35% 30%, #ddd, #555); box-shadow: 0 .8cqh 0 #333; font-size: 6cqh; }
@keyframes grade-in { from { transform: scale(2.4) rotate(-20deg); opacity: 0; } }
.res-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(15cqh, 1fr)); gap: 1.2cqh; margin: 0 0 1.6cqh; padding: 0; list-style: none; }
.res-stats li { padding: 1.2cqh; background: #f6f0fb; border-radius: 2cqh; }
.res-stats b { display: block; font-size: 3.6cqh; }
.res-stats span { color: var(--muted); font-size: 2cqh; font-weight: 700; }
#res-reward .rewards { justify-content: center; }
.rotate-tip { position: absolute; inset: 0; z-index: 9; display: none; place-items: center; color: #fff; text-align: center; background: #0a0d18; }
.rotate-tip b { display: block; font-size: 60px; animation: rot-tip 1.6s ease-in-out infinite; }
@keyframes rot-tip { 50% { transform: rotate(90deg); } }
@media (orientation: portrait) and (pointer: coarse) {
  .hero-play .rotate-tip { display: grid; }
}
