/* 游戏平台页面的样式（棋桌、首页的新块、登录、账号页、隐私页）。颜色沿用 games.css，棋盘和按钮沿用 xiangqi.css；类名都带 pg-。 */

/* ---------------------------------------------------------------- 小件 */
.pg-ava { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--paper); border: 2.5px solid #000; box-shadow: 0 3px 0 #000; overflow: hidden; }
.pg-ava img { width: 100%; height: 100%; object-fit: cover; }
.pg-ava.logo { background: #faf6ec; }
.pg-ava.logo img { width: 60%; height: 60%; object-fit: contain; }
.pg-ava.mono { font-family: var(--display); font-weight: 900; color: var(--ink); line-height: 1; }
.pg-ava.empty { width: 44px; height: 44px; background: transparent; border: 2.5px dashed var(--muted); box-shadow: none; color: var(--muted); font: 900 20px/1 var(--piece); }
.pg-avawrap { position: relative; flex: none; }
.pg-seat { position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #faf6ec; border: 2px solid #111; font: 900 11px/1 var(--piece); font-style: normal; color: #111; z-index: 1; }
.pg-seat.red { color: var(--xq-red); }
.pg-avawrap .dot { position: absolute; right: -3px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: #5a5d80; border: 2.5px solid var(--bg2); }
.pg-avawrap .dot.on { background: var(--lime); }
.pg-avawrap .dot.away { background: var(--coral); }
.pg-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; font: 800 11px/1 var(--sans); letter-spacing: .02em; padding: 3px 6px; border-radius: 6px; background: var(--sky); color: var(--ink); white-space: nowrap; }
.pg-tag.human { background: #3a3f73; color: var(--text); }
.pg-tag.engine { background: var(--paper); }
.pg-tag.me { background: var(--lime); }
.pg-tag.mia { background: var(--lime); }
.pg-tag.mia::before { content: ""; width: 8px; height: 4px; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.pg-tag.self { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.pg-tag.warn { background: rgba(255, 106, 85, .18); color: var(--coral); }
.pg-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.pg-link:hover { color: var(--text); }
.pg-me { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg2); font-weight: 800; font-size: 14px; text-decoration: none; max-width: 180px; }
.pg-me .pg-ava { border-width: 2px; box-shadow: none; }
.pg-me .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-err { color: var(--coral); font-weight: 800; font-size: 13.5px; margin: 10px 0 0; }
.pg-wide { width: 100%; padding: 13px; font-size: 16px; }
.pg-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 14px; border: 2px solid #000; box-shadow: 3px 4px 0 #000; }
body.pg-offline .xq-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--coral); }

/* ---------------------------------------------------------------- 棋桌 */
.pg-table { --plate: 62px; --gap: 10px; --replay: 40px; --bh: max(380px, calc(100dvh - 56px - 2 * var(--plate) - var(--replay) - 4 * var(--gap) - 40px)); --bw: min(calc(var(--bh) * 0.9053), calc(100vw - 470px));
  display: grid; grid-template-columns: auto minmax(300px, 360px); justify-content: center; gap: 26px; padding: 14px 20px 22px; }
.pg-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; width: calc(var(--bw) + 8px); }
.pg-tablepage.has-eval .pg-col { width: calc(var(--bw) + 32px); }
.pg-boardbox { position: relative; display: flex; gap: 10px; align-items: stretch; }
.pg-boardbox .xq-boardwrap { width: var(--bw); aspect-ratio: 956 / 1056; }
.pg-boardbox .xq-boardwrap svg { width: 100%; height: 100%; display: block; }
.pg-plate { position: relative; display: flex; align-items: center; gap: 11px; height: var(--plate); padding: 0 10px; border-radius: 16px; background: var(--bg2); border: 2px solid #05060d; box-shadow: 0 4px 0 #05060d; min-width: 0; }
.pg-plate.turn { background: #1b2142; box-shadow: 0 4px 0 #05060d, 0 0 0 2px var(--lime); }
.pg-plate.waiting { background: transparent; border-style: dashed; border-color: var(--line); box-shadow: none; }
.pg-plate .id { min-width: 0; flex: 0 1 auto; display: flex; flex-direction: column; gap: 3px; }
.pg-plate .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pg-plate .nm b { font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 2.5em; }
.pg-plate .sub { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.pg-plate .sub .model { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; }
.pg-plate .st { font-size: 12.5px; line-height: 1.3; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-plate .st.me { color: var(--lime); }
.pg-plate .st.away { color: var(--coral); }
/* AI 说的话在牌子里：桌面上是牌子中间的一个小气泡，两行以内，不碰棋盘 */
.pg-plate .say { flex: 1 1 170px; min-width: 60px; align-self: center; max-height: 44px; display: flex; align-items: center; padding: 5px 11px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 13.5px; line-height: 1.38; font-weight: 700; border: 2px solid #000; position: relative; }
.pg-plate .say span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-plate .say::before { content: ""; position: absolute; left: -7px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: inherit; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg); }
.pg-plate .say.none { visibility: hidden; }
.pg-plate .took { display: flex; flex-wrap: wrap; align-content: center; gap: 1px; max-width: 104px; max-height: 34px; overflow: hidden; flex: 0 1 104px; min-width: 0; }
.pg-plate .took i { font: 900 10.5px/15px var(--piece); width: 16px; height: 16px; text-align: center; border-radius: 50%; background: #faf6ec; border: 1px solid #111; color: #111; font-style: normal; }
.pg-plate .took i.red { color: var(--xq-red); }
.pg-plate .xq-clock { margin-left: auto; flex: none; }
.pg-plate.turn .xq-clock { color: var(--ink); background: var(--lime); }
.pg-plate .xq-clock.low { background: var(--coral) !important; color: #1a0703 !important; }
.pg-replay { display: flex; align-items: center; gap: 5px; height: var(--replay); }
.pg-replay button { width: 38px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; padding: 0; color: var(--text); }
.pg-replay button:hover:not(:disabled) { border-color: var(--lime); }
.pg-replay button:disabled { opacity: .35; cursor: default; }
.pg-replay button svg { width: 17px; height: 17px; }
.pg-replay button.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pg-replay input[type=range] { flex: 1; min-width: 40px; accent-color: var(--lime); height: 28px; }
.pg-replay .at { font: 700 12.5px var(--mono); color: var(--muted); min-width: 52px; text-align: right; }

.pg-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-height: calc(100dvh - 56px - 36px); position: sticky; top: 70px; }
.pg-side .xq-feed { flex: 1; min-height: 160px; }
.pg-card { padding: 16px 16px 14px; border-radius: 20px; background: var(--card); border: 2px solid #000; box-shadow: 0 5px 0 #000; }
.pg-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 900; line-height: 1.3; }
.pg-card > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); font-weight: 700; line-height: 1.55; }
.pg-card .act { display: flex; gap: 8px; margin-top: 12px; }
.pg-card .act .xq-btn { flex: 1; padding: 12px; font-size: 15.5px; }
.pg-card .alt { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); font-weight: 700; line-height: 1.5; }
.pg-card .alt a { color: var(--text); }
.pg-accept { border-color: var(--lime); box-shadow: 0 5px 0 #000, 0 0 0 2px var(--lime); }
.pg-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 12px; }
.pg-tabs button { flex: 1; font-weight: 900; font-size: 14px; padding: 8px 6px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.pg-tabs button.on { background: var(--lime); color: var(--ink); box-shadow: 0 2px 0 #000; }
.pg-tabs.sub button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--lime); }
.pg-seatpick { display: flex; gap: 6px; margin: 8px 0 12px; }
.pg-seatpick button { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 900; padding: 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; position: relative; }
.pg-seatpick button .pg-seat { position: static; }
.pg-seatpick button.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.pg-sentence { padding: 12px 14px; border-radius: 13px; background: #0b0d1b; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: #e9e6dc; word-break: break-word; }
.pg-sentence u { text-decoration: none; color: var(--lime); font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
.pg-lock { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 700; line-height: 1.5; }
.pg-lock svg { flex: none; margin-top: 2px; }
.pg-result { padding: 16px; border-radius: 20px; background: var(--paper); color: var(--ink); border: 2.5px solid #000; box-shadow: 0 5px 0 #000; }
.pg-result b { display: block; font: 900 28px/1.1 var(--serif); }
.pg-result span { display: block; margin-top: 4px; font-weight: 800; font-size: 14px; opacity: .75; }
.pg-result .act { display: flex; gap: 8px; margin-top: 12px; }
.pg-result .xq-btn.ghost { color: var(--ink); border-color: rgba(0, 0, 0, .3); }
.pg-offer { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(200, 240, 60, .12); border: 1px solid rgba(200, 240, 60, .5); font-weight: 900; margin-bottom: 10px; }
.pg-offer span { flex: 1; }
.pg-actions { display: flex; gap: 8px; }
.pg-actions .xq-btn { flex: 1; }
.pg-agentline { margin: 0; padding: 0 4px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.pg-agentline a { color: var(--muted); }
.pg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 15, 30, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.pg-bar .xq-btn { flex: 1; padding: 11px 8px; }
.pg-missing { grid-column: 1 / -1; text-align: center; padding: 80px 20px; }
body.pg-focus .pg-side, body.pg-focus .xq-top .xq-topr > :not([data-account]) { display: none; }
body.pg-focus .pg-table { grid-template-columns: auto; }

@media (min-width: 861px) {
  .pg-invite.m, .pg-bar { display: none !important; }
}
@media (max-width: 860px) {
  .pg-hidem { display: none !important; }
  .pg-table { display: block; padding: 8px 0 86px; --plate: 58px; }
  .pg-col { gap: 8px; width: auto !important; }
  .pg-plate .sub .model { max-width: 46vw; }
  .pg-actions { display: none; }
  .pg-col > .pg-plate, .pg-col > .pg-card, .pg-col > .pg-replay { margin: 0 12px; }
  .pg-col > .pg-plate.hasinvite { display: none; }
  .pg-boardbox { padding: 0; }
  .pg-boardbox .xq-boardwrap { width: 100%; border-radius: 0; box-shadow: 0 0 0 3px #05060d; }
  .pg-boardbox .xq-eval { position: absolute; left: 2px; top: 6px; bottom: 6px; width: 8px; z-index: 2; }
  /* 手机上牌子两行：上面名字和钟，下面状态；刚说了话时下面那行换成说的话 */
  .pg-plate { height: auto; min-height: var(--plate); padding: 7px 10px; flex-wrap: wrap; row-gap: 2px; }
  .pg-plate .id { flex: 1 1 0; }
  .pg-plate .took { display: none; }
  .pg-plate .say { display: none; }
  .pg-plate.saying .say { display: flex; order: 5; flex: 1 1 100%; max-height: 42px; margin-left: 55px; font-size: 13px; padding: 4px 10px; }
  .pg-plate.saying .say::before { left: 14px; top: -6px; margin-top: 0; border-left: 2px solid #000; border-bottom: 0; border-top: 2px solid #000; transform: rotate(45deg); }
  .pg-side { position: static; max-height: none; padding: 16px 12px 0; }
  .pg-side .pg-invite:not(.m) { display: none !important; }
  .pg-side .xq-feed { max-height: 60vh; }
  .xq-top .xq-title .xq-state { display: none; }
}

/* ---------------------------------------------------------------- 弹窗（登录） */
.pg-dim { position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 13, .74); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.pg-modal { position: relative; width: min(440px, 100%); padding: 24px 22px 20px; border-radius: 24px; background: var(--card); border: 2.5px solid #000; box-shadow: 0 8px 0 #000; }
.pg-modal h2 { margin: 0 34px 6px 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
.pg-modal > p { margin: 0 0 16px; font-size: 14px; color: var(--muted); font-weight: 700; line-height: 1.6; }
.pg-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.pg-auth { display: flex; flex-direction: column; gap: 10px; }
.pg-authbtn { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; font-size: 16px; padding: 13px; border-radius: 14px; border: 2px solid #000; box-shadow: 0 4px 0 #000; cursor: pointer; background: var(--card2); color: var(--text); }
.pg-authbtn.go { background: var(--lime); color: var(--ink); }
.pg-authbtn:disabled { opacity: .6; cursor: default; }
.pg-fine { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pg-fine a { color: var(--text); }
.pg-field { display: block; margin-bottom: 14px; }
.pg-field span { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.pg-field input, .pg-field select { width: 100%; font: 800 16px var(--sans); color: var(--text); padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: #0b0d1b; }
.pg-avas { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 16px; max-width: 560px; }
.pg-avas button { aspect-ratio: 1; padding: 0; border-radius: 50%; border: 2px solid #000; background: var(--paper); cursor: pointer; overflow: hidden; }
.pg-avas button img { width: 100%; height: 100%; object-fit: cover; }
.pg-avas button.on { outline: 3px solid var(--lime); outline-offset: 2px; }
@media (max-width: 480px) { .pg-avas { grid-template-columns: repeat(4, 1fr); gap: 10px; } }

/* ---------------------------------------------------------------- 首页的新块 */
.pg-hero { max-width: 1240px; margin: 0 auto; padding: 26px max(20px, env(safe-area-inset-right)) 18px max(20px, env(safe-area-inset-left)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(100dvh - 56px - 40px); }
.pg-cta { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.pg-big { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 18px 22px 18px 16px; border-radius: 18px; border: 2.5px solid #000; background: var(--lime); color: var(--ink); box-shadow: 0 6px 0 #000; transition: transform .08s, box-shadow .08s; }
.pg-big:active { transform: translateY(5px); box-shadow: 0 1px 0 #000; }
.pg-big .xq-seal { width: 52px; height: 52px; font-size: 29px; box-shadow: 0 3px 0 #000; }
.pg-big b { display: block; font-size: 26px; font-weight: 900; line-height: 1.15; }
.pg-big small { display: block; font-size: 14px; font-weight: 700; color: rgba(11, 12, 22, .68); line-height: 1.4; margin-top: 2px; }
.pg-big .arr { margin-left: auto; font-size: 28px; font-weight: 900; }
.pg-row { display: flex; gap: 10px; }
.pg-row .xq-btn { flex: 1; padding: 13px 14px; font-size: 16px; }
.pg-self { margin-top: 18px; max-width: 460px; font-size: 14px; color: var(--muted); }
.pg-self summary { cursor: pointer; font-weight: 800; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.pg-self summary::-webkit-details-marker { display: none; }
.pg-self summary::after { content: "›"; font-size: 18px; line-height: 1; transition: transform .15s; }
.pg-self[open] summary::after { transform: rotate(90deg); }
.pg-self .xq-copy { margin-top: 10px; }
.pg-tv { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.pg-tv .cap { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 13.5px; font-weight: 800; color: var(--muted); min-width: 0; }
.pg-tv .cap .live { flex: none; font-family: var(--display); font-size: 11.5px; letter-spacing: .1em; padding: 4px 8px; border-radius: 7px; background: var(--card2); color: var(--text); }
.pg-tv .cap .live.on { background: var(--coral); color: #1a0703; }
.pg-tv .cap .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-tv .cap a { margin-left: auto; color: var(--text); flex: none; }
.pg-tv .frame { border-radius: 22px; border: 3px solid #000; box-shadow: 8px 9px 0 var(--lime), 8px 9px 0 3px #000; overflow: hidden; background: var(--paper); display: block; }
.pg-tv .frame svg { display: block; width: 100%; height: auto; }
.pg-tvplate { display: flex; align-items: center; gap: 10px; margin: 8px 4px; font-weight: 900; min-width: 0; }
.pg-tvplate .pg-ava { border-width: 2px; box-shadow: 0 2px 0 #000; }
.pg-tvplate .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-tvplate small { font-weight: 700; color: var(--muted); font-size: 12.5px; flex: none; }
.pg-tvsay { margin: 12px 4px 0; padding: 11px 15px; border-radius: 14px; border: 2px solid #000; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.5; box-shadow: 3px 4px 0 #000; min-height: 48px; }
.pg-tvsay b { margin-right: 4px; }
.pg-block { max-width: 1240px; margin: 0 auto; padding: 30px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); }
.pg-block > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.pg-block h2 { margin: 0; font: 900 30px/1.1 var(--sans); }
.pg-block > header p { flex-basis: 100%; margin: 0; font-size: 14.5px; color: var(--muted); font-weight: 700; }
.pg-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 14px; }
.pg-rec { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 18px 20px 14px; border-radius: 20px; background: var(--card); border: 2px solid #000; box-shadow: 0 5px 0 #000; }
.pg-rec .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pg-rec .who.r { flex-direction: row-reverse; text-align: right; }
.pg-rec .who b { display: block; font-size: 16px; line-height: 1.25; font-weight: 900; }
.pg-rec .who small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pg-rec .score { font: 900 40px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.pg-rec .score i { font-style: normal; color: var(--muted); padding: 0 6px; }
.pg-rec .score .w { color: var(--lime); }
.pg-rec .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.pg-rec .meta a { color: var(--text); font-weight: 900; text-decoration: none; }
.pg-rec .meta a:hover { text-decoration: underline; }
.pg-pills { display: flex; gap: 4px; }
.pg-pills span { font: 800 11px/1 var(--sans); padding: 4px 6px; border-radius: 6px; background: var(--bg2); color: var(--text); border: 1px solid var(--line); }
.pg-pills span.w { background: rgba(200, 240, 60, .16); border-color: rgba(200, 240, 60, .55); }
.pg-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.pg-game { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 12px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; }
.pg-game:hover { border-color: var(--lime); }
.pg-game .mb { border-radius: 12px; overflow: hidden; }
.pg-game .mb svg { display: block; width: 100%; height: auto; }
.pg-game b { font-size: 14.5px; line-height: 1.35; font-weight: 900; padding: 0 4px; }
.pg-game small { font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 0 4px; }
.pg-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; padding: 18px 22px; border-radius: 20px; border: 2px dashed rgba(200, 240, 60, .5); background: rgba(200, 240, 60, .05); }
.pg-strip b { font-size: 19px; font-weight: 900; }
.pg-strip span { font-size: 13.5px; color: var(--muted); font-weight: 700; flex-basis: 100%; }
.pg-lobby { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pg-lt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.pg-lt .mb { width: 64px; flex: none; border-radius: 8px; overflow: hidden; }
.pg-lt .mb svg { display: block; width: 100%; height: auto; }
.pg-lt > span { min-width: 0; flex: 1; }
.pg-lt > .xq-btn { flex: none; min-width: 0; }
.pg-lt b { display: block; font-size: 14.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-lt small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pg-empty { color: var(--muted); font-weight: 700; font-size: 14.5px; padding: 14px 4px; }
@media (max-width: 860px) {
  .pg-hero { grid-template-columns: 1fr; gap: 26px; min-height: 0; padding-top: 18px; }
  .pg-big b { font-size: 23px; }
  .pg-tv { max-width: none; }
  .pg-rec { padding: 14px 14px 12px; gap: 8px 10px; }
  .pg-rec .score { font-size: 32px; }
  .pg-rec .who b { font-size: 14px; }
  .pg-block h2 { font-size: 25px; }
  .pg-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- 账号页、个人页、隐私页 */
.pg-account { max-width: 1000px; margin: 0 auto; padding: 26px 20px 60px; }
.pg-who { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pg-who h1 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.2; }
.pg-who p { margin: 2px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.pg-acct-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.pg-acct-tabs button { padding: 10px 14px; font-weight: 900; font-size: 15px; color: var(--muted); border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.pg-acct-tabs button.on { color: var(--text); border-color: var(--lime); }
.pg-list { display: flex; flex-direction: column; gap: 8px; }
.pg-gamerow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.pg-gamerow:hover { border-color: var(--lime); }
.pg-gamerow .vs { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-gamerow .out { flex: none; font-weight: 900; font-size: 13px; padding: 4px 9px; border-radius: 8px; background: var(--bg2); }
.pg-gamerow .out.win { background: var(--lime); color: var(--ink); }
.pg-gamerow .out.loss { background: rgba(255, 106, 85, .2); color: var(--coral); }
.pg-gamerow small { color: var(--muted); font-weight: 700; font-size: 12.5px; flex: none; }
.pg-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pg-agent { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.pg-agent > span:nth-child(2) { min-width: 0; flex: 1; }
.pg-agent b { display: block; font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-agent small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pg-agent .rec { flex: none; text-align: right; font: 900 17px/1.2 var(--display); }
.pg-agent .rec small { font-family: var(--sans); }
.pg-agent .tools { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pg-keybox { padding: 18px; border-radius: 20px; background: var(--card); border: 2px solid #000; box-shadow: 0 5px 0 #000; margin-bottom: 18px; }
.pg-keybox h2 { margin: 0 0 4px; font-size: 19px; font-weight: 900; }
.pg-keybox > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); font-weight: 700; line-height: 1.55; }
.pg-key { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #0b0d1b; border: 1px solid rgba(200, 240, 60, .6); font: 700 13.5px var(--mono); color: var(--lime); word-break: break-all; }
.pg-key .xq-btn { margin-left: auto; flex: none; }
.pg-code { margin-top: 12px; }
.pg-code > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 800; margin-bottom: 5px; }
.pg-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.pg-form .full { grid-column: 1 / -1; }
.pg-danger { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pg-danger h3 { margin: 0 0 6px; font-size: 16px; }
.pg-danger p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.pg-doc { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; font-size: 16px; line-height: 1.75; }
.pg-doc h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.pg-doc h2 { font-size: 20px; margin: 30px 0 8px; }
.pg-doc p, .pg-doc li { color: #dcd9cf; }
.pg-doc .muted { color: var(--muted); font-size: 14px; }
.pg-doc a { color: var(--lime); }
@media (max-width: 860px) {
  .pg-agents, .pg-form { grid-template-columns: 1fr; }
}
