/* Mia 游戏厅：网站里的游戏目录（深色游戏厅皮肤，荧光黄绿是品牌色）。中文厅 /zh/games/ 和英文厅 /games/ 共用这一份：
   站内用相对路径，右上角和页脚回各自语言的主站（/zh/、/）；英文页正文换成 Inter。 */
:root {
  --bg: #0d0f1e;
  --bg2: #13162b;
  --card: #1a1e3a;
  --card2: #222750;
  --line: #2e3466;
  --text: #f3efe6;
  --muted: #a4a3bd;
  --lime: #c8f03c;
  --coral: #ff6a55;
  --sky: #8cc8f2;
  --ink: #0b0c16;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --r: 18px;
}
html:lang(en) { --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(200, 240, 60, .10), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(140, 200, 242, .12), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(13, 15, 30, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo .wm { font-family: "Inter", var(--display); font-weight: 900; font-size: 28px; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.logo .cap { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .14em; line-height: 1; color: var(--ink); background: var(--lime); border: 2px solid #000; border-radius: 7px; padding: 6px 9px 5px 11px; transform: rotate(-5deg); box-shadow: 3px 3px 0 #000; }
.logo .zh { font-weight: 800; font-size: 14px; color: var(--muted); letter-spacing: .2em; padding-left: 4px; border-left: 1px solid var(--line); margin-left: 4px; padding-left: 12px; }
.nav .right { margin-left: auto; }
.chan { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--bg2); white-space: nowrap; }
.chan:hover { border-color: var(--lime); }
.chan img { width: 22px; height: 22px; border-radius: 50%; }

/* 按钮、标签 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 17px; text-decoration: none; border-radius: 14px; padding: 13px 22px; border: 2px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn-play { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 0 rgba(200, 240, 60, .5), 0 8px 30px rgba(200, 240, 60, .25); }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(200, 240, 60, .38); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .04); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--ink); background: var(--lime); border-radius: 7px; padding: 3px 10px; }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .16em; color: var(--lime); text-transform: uppercase; }

/* 首页：头条 */
.feature { position: relative; margin: 28px 0 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); min-height: 470px; display: flex; align-items: flex-end; background: #000; }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 24, .95) 0%, rgba(10, 11, 24, .82) 38%, rgba(10, 11, 24, .1) 75%), linear-gradient(0deg, rgba(10, 11, 24, .7), transparent 50%); }
.feature .info { position: relative; z-index: 1; padding: 40px 44px; max-width: 600px; }
.feature h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 62px); line-height: 1.02; margin: 14px 0 12px; letter-spacing: -.02em; }
.feature p { font-size: 18px; color: #e6e3da; margin: 0 0 16px; }
.feature .chips { margin-bottom: 22px; }
.feature .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feature .credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* 游戏列表 */
.sec { margin: 54px 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: 28px; line-height: 1.2; margin: 6px 0 0; font-weight: 900; }
.sec-head .count { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.game:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.game .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game .thumb .badge { position: absolute; left: 12px; top: 12px; }
.game .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game h3 { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 0; }
.game .by { font-size: 14px; color: var(--muted); }
.game .desc { font-size: 15px; color: #d9d6cd; margin: 0; }
.game .chips { margin-top: auto; padding-top: 6px; }
/* 详情页 */
.crumb { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--text); }
.store { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin: 16px 0 0; align-items: start; }
.media { min-width: 0; }
.media .main { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.media .main img { width: 100%; height: 100%; object-fit: cover; }
.cap { font-size: 12px; color: var(--muted); margin: 8px 0 0; min-height: 1.7em; }
.panel { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; }
.panel h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 12px 0 10px; letter-spacing: -.02em; }
.panel .tag { font-size: 16px; color: #e0ddd4; margin: 0 0 14px; }
.panel .btn-play { width: 100%; font-size: 19px; padding: 15px 22px; margin: 18px 0 10px; }
.panel .btn-ghost { width: 100%; }
.facts { margin: 20px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; }
.about { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin: 56px 0 0; align-items: start; }
.about .text { min-width: 0; max-width: 680px; }
.about h2 { font-size: 28px; line-height: 1.25; margin: 6px 0 14px; font-weight: 900; }
.about .text p { color: #dedbd2; font-size: 16.5px; margin: 0 0 14px; }
.about figure { margin: 0; }
.about figure img { border-radius: 14px; border: 1px solid var(--line); }
.about figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.side { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.box h3 { margin: 0 0 10px; font-size: 18px; }
kbd { font-family: var(--display); font-weight: 800; font-size: 13px; background: var(--card2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; padding: 1px 8px; white-space: nowrap; }
.mia { border-color: rgba(200, 240, 60, .45); }
.mia p { margin: 0 0 8px; color: #e6e3da; }
.mia .sig { color: var(--lime); font-weight: 800; margin: 0; }

/* 页脚 */
.foot { margin: 70px 0 0; border-top: 1px solid var(--line); padding: 26px 0 calc(34px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot a { color: var(--text); text-decoration: none; }
.foot .lang-link { color: var(--muted); font-size: 13px; }
.foot .lang-link:hover { color: var(--text); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store, .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav .wrap { gap: 14px; height: 60px; }
  .logo .zh { display: none; }
  .chan span { display: none; }
  .feature { min-height: 0; flex-direction: column; align-items: stretch; }
  .feature > img { position: relative; height: 220px; }
  .feature::after { background: linear-gradient(0deg, rgba(10, 11, 24, 1) 45%, rgba(10, 11, 24, 0) 70%); }
  .feature .info { padding: 0 22px 26px; margin-top: -40px; }
  .feature .credit { top: 10px; right: 12px; bottom: auto; text-shadow: 0 1px 3px #000; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 20px 20px; }
}

/* 详情页：上手指南 */
.block { margin: 56px 0 0; }
.block > .sec-head p { margin: 4px 0 0; color: var(--muted); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.guide .box h3 { margin-bottom: 12px; }
.ctrl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ctrl th, .ctrl td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctrl th { color: var(--muted); font-weight: 700; }
.terms { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; }
.terms code { font-family: var(--display); font-weight: 800; color: var(--lime); font-size: 13px; white-space: nowrap; }
.tips-list { margin: 0; padding-left: 18px; font-size: 14.5px; color: #dedbd2; }
.tips-list li { margin: 0 0 9px; }
.tips-list li:last-child { margin-bottom: 0; }
.tips-list b { color: var(--text); }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .terms code { white-space: normal; } }
