/* 游戏中心 · 纸本留白
 * 与主站重构方向一致：暖纸底、墨色字、朱砂点缀、细线分隔、大量留白。
 * 不引入外部字体与图片依赖。
 */
:root {
  --paper: #f4f1e8;
  --paper-2: #efeade;
  --paper-3: #e7e0d2;
  --ink: #1d1b17;
  --ink-soft: #5d584e;
  --ink-faint: #8b8476;
  --line: rgba(29, 27, 23, 0.13);
  --line-strong: rgba(29, 27, 23, 0.24);
  --rust: #a8432e;
  --rust-deep: #7d2f21;
  --sage: #6a7b67;
  --gold: #b08a52;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 620px at 12% -10%, rgba(255, 255, 255, 0.72), transparent 60%),
    radial-gradient(900px 500px at 88% 8%, rgba(176, 138, 82, 0.10), transparent 65%),
    repeating-linear-gradient(0deg, rgba(29, 27, 23, 0.012) 0 1px, transparent 1px 3px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(168, 67, 46, 0.18); }

.wrap { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

/* ---------------- 顶栏 ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 241, 232, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--rust); color: #f7ead2;
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 19px; letter-spacing: 0.12em; }
.brand-text small { font-size: 9px; letter-spacing: 0.28em; color: var(--ink-faint); text-transform: uppercase; }

.top-nav { display: flex; gap: 22px; font-size: 13px; color: var(--ink-soft); }
.top-nav a { position: relative; padding: 4px 0; }
.top-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--rust); transition: right .25s ease;
}
.top-nav a:hover { color: var(--ink); }
.top-nav a:hover::after { right: 0; }

.head-search { margin-left: auto; position: relative; width: 258px; }
.head-search input {
  width: 100%; height: 38px; padding: 0 38px 0 34px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink); outline: none;
  transition: border-color .2s, background .2s;
}
.head-search input:focus { border-color: var(--line-strong); background: #fffdf7; }
.head-search input::placeholder { color: var(--ink-faint); }
.head-search .s-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: .5;
}
.head-search kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px;
}
.account {
  display: flex; align-items: center; gap: 9px; flex: none;
  font-size: 13px; color: var(--ink-soft);
}
.account .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--paper-2);
  font-family: var(--serif); font-size: 13px;
}
.account .login-link { color: var(--rust); border-bottom: 1px solid rgba(168, 67, 46, .35); }

/* ---------------- 通用区块 ---------------- */
main { padding-bottom: 80px; }
/* ---------------- 房号进入 ---------------- */
.room-enter { margin-top: 22px; }
.room-enter-main {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px;
  background: #fbf8f0;
}
.room-enter-text { display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.room-enter-text b { font-size: 14px; letter-spacing: .02em; }
.room-enter-text span { font-size: 11.5px; color: var(--ink-faint); }
.room-enter-form { display: flex; gap: 8px; }
.room-enter-form input {
  width: 104px; padding: 9px 10px; text-align: center;
  font-family: var(--mono); font-size: 16px; letter-spacing: 4px;
  background: #fffdf7; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); outline: none;
}
.room-enter-form input:focus { border-color: var(--line-strong); }
.room-enter-form button {
  appearance: none; cursor: pointer; padding: 9px 18px; font-size: 13px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--ink); color: #f7f3e8; transition: .18s;
}
.room-enter-form button:hover { background: #36322a; }
.room-enter-msg { flex-basis: 100%; margin: 0; font-size: 12px; color: #a05a2c; }
.room-enter-msg[hidden] { display: none; }

.section { margin-top: 64px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.26em; color: var(--ink-faint);
  text-transform: uppercase; margin-bottom: 6px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--rust); }
.section-title { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .04em; margin: 0; }
.section-note { font-size: 12px; color: var(--ink-faint); }
.section-link { font-size: 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.section-link:hover { color: var(--rust); border-color: rgba(168, 67, 46, .5); }

/* ---------------- 首页 Hero ---------------- */
.hero { display: grid; grid-template-columns: 1.58fr .82fr; gap: 18px; margin-top: 34px; }
.hero-main {
  position: relative; min-height: 430px; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--line);
  background: var(--paper-3);
  isolation: isolate;
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero-main:hover img { transform: scale(1.035); }
.hero-main .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 14, 0.06) 0%, rgba(20, 18, 14, .12) 46%, rgba(20, 18, 14, .78) 100%);
}
.hero-main .badge {
  position: absolute; left: 26px; top: 24px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 2px;
  background: rgba(247, 234, 210, .92); color: var(--rust-deep);
  font-size: 11px; letter-spacing: .16em;
}
.hero-copy { position: absolute; left: 34px; right: 34px; bottom: 30px; color: #f8f3e7; }
.hero-copy .no { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; opacity: .72; }
.hero-copy h1 {
  font-family: var(--serif); font-size: 46px; line-height: 1.15;
  font-weight: 600; letter-spacing: .06em; margin: 8px 0 10px;
}
.hero-copy p { margin: 0; max-width: 520px; font-size: 13px; color: rgba(248, 243, 231, .8); }
.hero-copy .actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 22px;
  background: #f7ead2; color: #2a2119; border: 0; border-radius: 2px;
  font-size: 13px; letter-spacing: .1em; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-play:hover { background: #fff; transform: translateY(-1px); }
.btn-play svg { width: 13px; height: 13px; }
.hero-meta { font-size: 11px; letter-spacing: .12em; color: rgba(248, 243, 231, .58); }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.mini-card {
  position: relative; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--line); background: var(--paper-2);
  min-height: 205px;
}
.mini-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.mini-card:hover img { transform: scale(1.05); }
.mini-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 21, 17, .74) 0%, rgba(24, 21, 17, .28) 58%, rgba(24, 21, 17, .05) 100%);
}
.mini-card .copy { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #f8f3e7; }
.mini-card .copy small { font-size: 10px; letter-spacing: .2em; opacity: .6; }
.mini-card .copy b { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .05em; margin: 4px 0 4px; }
.mini-card .copy span { font-size: 12px; color: rgba(248, 243, 231, .68); }

/* ---------------- 精选卡 ---------------- */
.shelf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shelf-card { display: flex; flex-direction: column; min-width: 0; }
.shelf-card .pic {
  position: relative; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper-3);
}
.shelf-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.shelf-card:hover .pic img { transform: scale(1.04); }
.shelf-card .pic .type {
  position: absolute; left: 12px; top: 12px;
  background: rgba(244, 241, 232, .9); padding: 3px 8px;
  font-size: 10px; letter-spacing: .12em; color: var(--ink-soft);
}
.shelf-card .body { padding: 14px 2px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shelf-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 3px; letter-spacing: .04em; }
.shelf-card p { margin: 0; font-size: 12px; color: var(--ink-soft); }
.shelf-card .arrow { color: var(--ink-faint); transition: transform .2s, color .2s; margin-top: 4px; }
.shelf-card:hover .arrow { transform: translateX(3px); color: var(--rust); }

/* ---------------- 分类与列表 ---------------- */
.browse-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; padding-bottom: 4px; }
.filter-chip {
  border: 1px solid transparent; background: transparent;
  padding: 6px 13px; border-radius: 2px; cursor: pointer;
  font-size: 12px; color: var(--ink-soft);
  transition: color .2s, background .2s, border-color .2s;
}
.filter-chip:hover { color: var(--ink); border-color: var(--line); }
.filter-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-chip em { font-style: normal; font-family: var(--mono); font-size: 10px; opacity: .55; margin-left: 5px; }

.result-bar {
  display: none; align-items: center; justify-content: space-between;
  margin: 12px 0 4px; font-size: 12px; color: var(--ink-soft);
}
.result-bar.show { display: flex; }
.result-bar button { background: none; border: 0; color: var(--rust); cursor: pointer; font-size: 12px; }

.game-list { border-top: 1px solid var(--line); margin-top: 14px; }
.game-row {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) 190px 34px;
  gap: 24px; align-items: center;
  padding: 18px 6px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.game-row:hover { background: rgba(255, 255, 255, .38); }
.game-row .thumb {
  overflow: hidden; border-radius: 3px; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--paper-3);
}
.game-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.game-row:hover .thumb img { transform: scale(1.05); }
.game-row .title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-row h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; letter-spacing: .04em; }
.game-row .desc { font-size: 12px; color: var(--ink-soft); margin: 5px 0 9px; max-width: 620px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10px; letter-spacing: .08em; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 2px 7px; border-radius: 2px;
}
.tag.rust { color: var(--rust); border-color: rgba(168, 67, 46, .3); }
.tag.sage { color: var(--sage); border-color: rgba(106, 123, 103, .35); }
.row-meta { font-size: 11px; color: var(--ink-faint); text-align: right; line-height: 1.9; }
.row-meta b { display: block; font-family: var(--serif); font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.row-go {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--ink-soft); transition: background .2s, color .2s, border-color .2s;
}
.game-row:hover .row-go { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.row-go svg { width: 12px; height: 12px; }

.empty-state {
  text-align: center; padding: 70px 20px; border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
}
.empty-state b { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------------- 待接入区 ---------------- */
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slot {
  display: flex; gap: 20px; align-items: center;
  padding: 24px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(239, 234, 222, .36));
}
.slot .glyph {
  flex: none; width: 62px; height: 62px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--serif); font-size: 20px; color: var(--ink-soft);
}
.slot h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 5px; font-weight: 600; }
.slot p { margin: 0; font-size: 12px; color: var(--ink-soft); }
.slot .soon { margin-left: auto; font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); white-space: nowrap; }

/* ---------------- 页脚 ---------------- */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 30px 0 44px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  font-size: 12px; color: var(--ink-faint);
}
.site-foot b { font-family: var(--serif); color: var(--ink-soft); font-weight: 600; letter-spacing: .08em; }
.site-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--rust); }

/* ---------------- 播放页 ---------------- */
.play-page { height: 100vh; overflow: hidden; --ad-h: 92px; }
.play-head {
  height: 64px; display: flex; align-items: center; gap: 18px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, .92); backdrop-filter: blur(12px);
  position: relative; z-index: 20;
}
.back-link { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); }
.back-link:hover { color: var(--rust); }
.play-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.play-title b { font-family: var(--serif); font-size: 19px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-title .tiny { font-size: 10px; letter-spacing: .16em; color: var(--ink-faint); }
.play-head .spacer { flex: 1; }
.head-btn {
  height: 32px; padding: 0 12px; border: 1px solid var(--line);
  background: transparent; border-radius: 2px; font-size: 12px; color: var(--ink-soft);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.head-btn:hover { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,.5); }

.play-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  height: calc(100vh - 64px);
}
.frame-wrap { position: relative; background: #17140f; min-width: 0; display: flex; flex-direction: column; }
.frame-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #17140f; }

/* 播放页外层广告条：高度固定，任何素材/网络异常都保留占位，不塌陷 */
.ad-slot {
  flex: 0 0 var(--ad-h); height: var(--ad-h); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #ece6d8; border-bottom: 1px solid var(--line); position: relative;
}
.ad-slot[hidden] { display: none; }
.ad-slot a, .ad-slot .ad-creative {
  display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; overflow: hidden;
}
.ad-slot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ad-slot .ad-note {
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  color: var(--ink-faint); text-transform: uppercase;
}
.frame-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #17140f; color: rgba(248, 243, 231, .55); font-size: 12px; letter-spacing: .2em;
  transition: opacity .35s; z-index: 2;
}
.frame-loading.gone { opacity: 0; pointer-events: none; }
.frame-loading .dot {
  width: 34px; height: 34px; border: 1px solid rgba(248,243,231,.25);
  border-top-color: rgba(248,243,231,.7); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-aside {
  border-left: 1px solid var(--line); overflow-y: auto;
  background: var(--paper); padding: 22px 22px 40px;
}
.aside-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
.aside-title { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .05em; margin: 16px 0 4px; }
.aside-tagline { font-size: 12px; color: var(--rust); letter-spacing: .06em; margin-bottom: 12px; }
.aside-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.meta-list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.meta-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.meta-row span { color: var(--ink-faint); }
.meta-row b { font-weight: 500; color: var(--ink-soft); text-align: right; }

.panel-block { margin-top: 26px; }
.panel-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; letter-spacing: .22em; color: var(--ink-faint);
  text-transform: uppercase; margin-bottom: 12px;
}
.panel-title::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-cell { background: var(--paper); padding: 11px 12px; }
.stat-cell b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.stat-cell span { font-size: 10px; letter-spacing: .12em; color: var(--ink-faint); }
.login-note {
  font-size: 12px; color: var(--ink-soft); border: 1px dashed var(--line-strong);
  padding: 13px 14px; border-radius: 3px; line-height: 1.7;
}
.login-note a { color: var(--rust); border-bottom: 1px solid rgba(168, 67, 46, .35); }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: .08em; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft);
}
.badge.got { border-color: rgba(176, 138, 82, .5); color: var(--gold); background: rgba(176, 138, 82, .07); }
.badge.locked { opacity: .45; }

.rank-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 8px;
}
.rank-tabs a {
  font-size: 12px; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-soft); text-decoration: none; transition: .16s;
}
.rank-tabs a:hover { border-color: var(--line-strong); color: var(--ink); }
.rank-tabs a.on { background: var(--ink); border-color: var(--ink); color: #f7f3e8; }

.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px;
}
.rank-item .no { font-family: var(--mono); color: var(--ink-faint); font-size: 11px; }
.rank-item .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .num { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

.recent-list { display: flex; flex-direction: column; }
.recent-item {
  display: grid; grid-template-columns: 22px minmax(0,1fr) auto auto; gap: 9px;
  align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px;
}
.recent-res {
  font-family: var(--mono); font-size: 11px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 2px; line-height: 17px;
}
.recent-res.win { color: var(--sage); border-color: var(--sage); }
.recent-res.loss { color: var(--rust); border-color: var(--rust); }
.recent-res.draw { color: var(--ink-faint); }
.recent-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-time, .recent-dur { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); }

.license-note {
  margin-top: 18px; padding: 12px 13px; border-left: 2px solid var(--sage);
  background: rgba(106, 123, 103, .06); font-size: 11px; color: var(--ink-soft); line-height: 1.7;
}
.license-note.warn { border-color: var(--rust); background: rgba(168, 67, 46, .06); }

.soon-stage {
  height: 100%; display: grid; place-items: center; padding: 30px;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(176, 138, 82, .1), transparent 70%),
    #17140f;
  color: #f8f3e7;
}
.soon-stage .inner { max-width: 460px; text-align: center; }
.soon-stage .glyph {
  width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center;
  border: 1px solid rgba(248,243,231,.25); border-radius: 50%;
  font-family: var(--serif); font-size: 26px;
}
.soon-stage h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 0 0 10px; letter-spacing: .06em; }
.soon-stage p { margin: 0; font-size: 13px; color: rgba(248,243,231,.62); line-height: 1.8; }

.leak-mark {
  position: fixed; right: 14px; bottom: 10px; z-index: 50;
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .22); pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* ---------------- 排行榜页 ---------------- */
.rank-page { padding-bottom: 80px; }
.rank-hero { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.rank-hero h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: .08em; margin: 0 0 8px; }
.rank-hero p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.rank-table { border-top: 1px solid var(--line); margin-top: 26px; }
.rank-row {
  display: grid; grid-template-columns: 52px minmax(0,1fr) 90px 100px 110px;
  gap: 18px; align-items: center;
  padding: 15px 8px; border-bottom: 1px solid var(--line);
  font-size: 13px; transition: background .2s;
}
.rank-row:hover { background: rgba(255,255,255,.4); }
.rank-row.head { font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); padding: 10px 8px; }
.rank-row .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.rank-row .name { font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.rank-row .val { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mini-card { min-height: 210px; }
  .game-row { grid-template-columns: 120px minmax(0,1fr) 34px; }
  .game-row .row-meta { display: none; }
  .top-nav { display: none; }
  .play-body { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 820px) {
  .head-inner { height: 64px; gap: 14px; }
  .head-search { width: 180px; }
  .account .name { display: none; }
  .shelf-row { grid-template-columns: 1fr; }
  .shelf-card .pic { aspect-ratio: 16 / 9; }
  .slot-grid { grid-template-columns: 1fr; }
  .game-row { grid-template-columns: 96px minmax(0,1fr) 30px; gap: 15px; padding: 14px 4px; }
  .game-row h3 { font-size: 18px; }
  .game-row .desc { display: none; }
  .play-page { --ad-h: 64px; }
  .play-body { display: block; height: calc(100vh - 64px); position: relative; overflow: hidden; }
  .frame-wrap { height: 100%; }
  .play-aside {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw);
    transform: translateX(102%); transition: transform .3s ease;
    box-shadow: -20px 0 50px rgba(20,18,14,.18); z-index: 10;
  }
  .play-aside.open { transform: translateX(0); }
  .play-head { gap: 10px; padding: 0 14px; }
  .play-title b { font-size: 16px; }
  .play-title .tiny { display: none; }
  .rank-row { grid-template-columns: 40px minmax(0,1fr) 70px 80px; }
  .rank-row .played { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .head-search { display: none; }
  .hero-main { min-height: 340px; }
  .hero-copy { left: 20px; right: 20px; bottom: 22px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-side { grid-template-columns: 1fr; }
  .section { margin-top: 44px; }
  .site-foot { flex-direction: column; }
}
