:root {
  --xq-ink: #33261d;
  --xq-muted: #806e5b;
  --xq-paper: #fffaf1;
  --xq-line: rgba(106, 76, 43, .15);
  --xq-red: #cf4a3b;
  --xq-red-dark: #982e27;
  --xq-green: #15886f;
  --xq-purple: #845fc5;
  --xq-blue: #4e86d9;
  --xq-gold: #d29a36;
  --xq-page: min(1160px, calc(100% - 40px));
  color: var(--xq-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, #fffaf2 0%, #fff0e7 52%, #f4f8ef 100%); color: var(--xq-ink); font-size: 19px; line-height: 1.65; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.xq-header { width: var(--xq-page); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--xq-line); }
.xq-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.xq-brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 15px; color: #fff7e8; background: linear-gradient(145deg, #e96650, #a8342a); box-shadow: 0 7px 17px rgba(166, 52, 42, .2); font: 900 28px Georgia, serif; }
.xq-brand strong, .xq-brand small { display: block; }
.xq-brand strong { font: 800 20px Georgia, "Noto Serif TC", serif; }
.xq-brand small { margin-top: 2px; color: var(--xq-muted); font-size: 14px; letter-spacing: .06em; }
.xq-header-actions { display: flex; align-items: center; gap: 20px; color: var(--xq-muted); font-size: 15px; font-weight: 700; }
.xq-header-actions a { text-decoration: none; color: var(--xq-red-dark); }
.xq-connection { display: inline-flex; align-items: center; gap: 7px; }
.xq-connection i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #d3a44e; box-shadow: 0 0 0 3px rgba(211, 164, 78, .15); }
.xq-connection.online i { background: #27a27e; box-shadow: 0 0 0 3px rgba(39, 162, 126, .14); }
.xq-connection.offline i { background: #cf4a3b; box-shadow: 0 0 0 3px rgba(207, 74, 59, .14); }
.xq-main { width: var(--xq-page); min-height: calc(100vh - 148px); margin: 0 auto; padding: 26px 0 48px; }
.xq-loading { min-height: 55vh; display: grid; place-content: center; justify-items: center; color: var(--xq-muted); }
.xq-loading h1 { margin: 0; color: var(--xq-ink); font-size: clamp(25px, 4vw, 36px); line-height: 1.2; text-align: center; }
.xq-loading p:first-of-type { max-width: 680px; margin: 10px 0 20px; text-align: center; }
.xq-loading p:last-child { margin: 12px 0 0; }
.xq-spinner { width: 27px; height: 27px; border: 3px solid #eadcc5; border-top-color: var(--xq-red); border-radius: 50%; animation: xqspin .8s linear infinite; }
@keyframes xqspin { to { transform: rotate(360deg); } }
.xq-app { max-width: 100%; }
.xq-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 14px 0 22px; }
.xq-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--xq-red-dark); font-size: 15px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.xq-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--xq-gold); border-radius: 4px; }
.xq-page-head h1 { margin: 8px 0 4px; font: 800 clamp(29px, 4vw, 42px)/1.15 Georgia, "Noto Serif TC", serif; letter-spacing: -.03em; }
.xq-page-head p { margin: 0; color: var(--xq-muted); font-size: 16px; }
.xq-profile-chip { display: flex; align-items: center; gap: 10px; padding: 9px 13px 9px 9px; border: 1px solid var(--xq-line); border-radius: 17px; background: rgba(255, 253, 248, .84); box-shadow: 0 7px 20px rgba(95, 64, 34, .06); }
.xq-avatar { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border: 1.5px solid rgba(207, 74, 59, .55); border-radius: 50%; color: var(--xq-red-dark); background: linear-gradient(145deg, #fff8e6, #f4d9a5); font: 800 23px Georgia, serif; }
.xq-profile-chip strong, .xq-profile-chip small { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xq-profile-chip strong { font-size: 16px; }
.xq-profile-chip small { margin-top: 2px; color: var(--xq-muted); font-size: 13px; }
.xq-tabs { display: flex; gap: 6px; padding: 5px; margin: 0 0 22px; border: 1px solid var(--xq-line); border-radius: 18px; background: rgba(255, 253, 248, .77); }
.xq-tab { flex: 1; min-height: 42px; border: 0; border-radius: 13px; background: transparent; color: var(--xq-muted); font-size: 16px; font-weight: 800; cursor: pointer; }
.xq-tab:hover { color: var(--xq-ink); background: rgba(244, 229, 204, .5); }
.xq-tab.active { color: #fff; background: linear-gradient(135deg, #d95a46, #a8372d); box-shadow: 0 5px 13px rgba(168, 55, 45, .2); }
.xq-grid { display: grid; gap: 15px; }
.xq-home-grid { grid-template-columns: minmax(0, 1.16fr) minmax(270px, .84fr); align-items: stretch; }
.xq-card { padding: 20px; border: 1px solid var(--xq-line); border-radius: 21px; background: rgba(255, 253, 248, .9); box-shadow: 0 12px 28px rgba(88, 58, 31, .065); }
.xq-match-card { position: relative; overflow: hidden; min-height: 248px; padding: clamp(22px, 4vw, 34px); border-color: rgba(207, 74, 59, .28); background: linear-gradient(140deg, #ffedc5, #ffd6b7 55%, #ffbe9b); }
.xq-match-card::after { content: "帥"; position: absolute; right: 24px; bottom: -50px; color: rgba(181, 67, 50, .08); font: 900 207px Georgia, serif; pointer-events: none; }
.xq-match-card h2 { position: relative; z-index: 1; margin: 8px 0 6px; font: 800 clamp(25px, 3.4vw, 36px)/1.15 Georgia, "Noto Serif TC", serif; }
.xq-match-card p { position: relative; z-index: 1; max-width: 430px; margin: 0 0 22px; color: #71553e; font-size: 16px; line-height: 1.7; }
.xq-match-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.xq-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(112, 75, 39, .13); border-radius: 99px; background: rgba(255, 251, 241, .76); color: #5c4934; font-size: 14px; font-weight: 800; }
.xq-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; font-size: 16px; font-weight: 850; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.xq-button:hover { transform: translateY(-1px); filter: brightness(1.02); }
.xq-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.xq-button-primary { position: relative; z-index: 1; color: #fffaf3; background: linear-gradient(135deg, #d95845, #a33229); box-shadow: 0 6px 15px rgba(153, 48, 39, .2); }
.xq-button-secondary { color: var(--xq-red-dark); border-color: rgba(166, 57, 47, .19); background: #fffaf1; }
.xq-button-green { color: #fff; background: linear-gradient(135deg, #20a681, #087b62); box-shadow: 0 6px 15px rgba(8, 123, 98, .17); }
.xq-button-quiet { color: var(--xq-muted); border-color: var(--xq-line); background: rgba(255, 253, 248, .9); }
.xq-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xq-action-tile { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 15px; border: 1px solid var(--xq-line); border-radius: 17px; background: rgba(255, 253, 248, .92); text-align: left; box-shadow: 0 7px 18px rgba(88, 58, 31, .05); cursor: pointer; }
.xq-action-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(88, 58, 31, .09); }
.xq-action-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: white; background: var(--xq-green); font-size: 19px; font-weight: 900; }
.xq-action-tile:nth-child(2) .xq-action-icon { background: var(--xq-red); }
.xq-action-tile:nth-child(3) .xq-action-icon { color: #694810; background: #f0cb74; }
.xq-action-tile:nth-child(4) .xq-action-icon { background: var(--xq-blue); }
.xq-action-tile:nth-child(5) .xq-action-icon { background: var(--xq-purple); }
.xq-action-tile:nth-child(6) .xq-action-icon { color: #684a13; background: #f5d872; }
.xq-action-tile strong { font: 800 17px Georgia, "Noto Serif TC", serif; }
.xq-stack { display: grid; gap: 15px; }
.xq-announcement { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border: 1px solid rgba(210, 154, 54, .28); border-radius: 15px; background: #fff7de; color: #635234; font-size: 15px; line-height: 1.6; }
.xq-announcement b { color: var(--xq-red-dark); }
.xq-ad-box { min-height: 86px; display: grid; place-items: center; margin: 18px 0 0; padding: 13px; border: 1px dashed rgba(123, 101, 75, .22); border-radius: 14px; color: #927f68; background: rgba(255, 253, 248, .48); font-size: 13px; letter-spacing: .08em; }
.xq-section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.xq-section-title h2 { margin: 0; font: 800 21px Georgia, "Noto Serif TC", serif; }
.xq-section-title p { margin: 0; color: var(--xq-muted); font-size: 14px; }
.xq-turn-meta { display: grid; justify-items: end; gap: 2px; min-width: 58px; line-height: 1.1; text-align: right; }
.xq-turn-move { color: var(--xq-muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.xq-turn-countdown { color: var(--xq-red-dark); font: 850 18px ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.xq-form { display: grid; gap: 15px; }
.xq-field { display: grid; gap: 7px; color: var(--xq-muted); font-size: 15px; font-weight: 750; }
.xq-field input, .xq-field select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--xq-line); border-radius: 12px; outline: none; color: var(--xq-ink); background: #fffdf8; }
.xq-field input:focus, .xq-field select:focus { border-color: rgba(207, 74, 59, .52); box-shadow: 0 0 0 3px rgba(207, 74, 59, .1); }
.xq-room-code { letter-spacing: .26em; font: 800 25px ui-monospace, SFMono-Regular, Menlo, monospace !important; text-align: center; }
.xq-inline { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.xq-note { margin: 0; color: var(--xq-muted); font-size: 14px; line-height: 1.7; }
.xq-alert { margin: 12px 0 0; padding: 11px 13px; border: 1px solid rgba(196, 66, 53, .18); border-radius: 12px; color: #8a3027; background: #fff0e8; font-size: 15px; line-height: 1.5; }
.xq-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; border: 1px dashed var(--xq-line); border-radius: 17px; color: var(--xq-muted); background: rgba(255, 253, 248, .54); text-align: center; }
.xq-empty b { color: var(--xq-ink); font: 800 18px Georgia, "Noto Serif TC", serif; }
.xq-table-wrap { overflow: auto; }
.xq-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xq-table th, .xq-table td { padding: 12px 10px; border-bottom: 1px solid var(--xq-line); text-align: left; white-space: nowrap; }
.xq-table th { color: var(--xq-muted); font-size: 13px; letter-spacing: .05em; }
.xq-table tr:last-child td { border-bottom: 0; }
.xq-badge { display: inline-flex; padding: 3px 8px; border-radius: 99px; font-size: 13px; font-weight: 850; }
.xq-badge.win { color: #17785f; background: #e4f6eb; }
.xq-badge.draw { color: #886011; background: #fff2c9; }
.xq-badge.loss { color: #a73a31; background: #ffebe6; }
.xq-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.xq-setting-card { padding: 18px; border: 1px solid var(--xq-line); border-radius: 18px; background: rgba(255, 253, 248, .9); }
.xq-setting-card h2 { margin: 0 0 13px; font: 800 19px Georgia, "Noto Serif TC", serif; }
.xq-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xq-option { min-height: 40px; padding: 7px; border: 1px solid var(--xq-line); border-radius: 11px; color: var(--xq-muted); background: #fffdf8; font-size: 14px; font-weight: 750; cursor: pointer; }
.xq-option.selected { border-color: rgba(207, 74, 59, .43); color: var(--xq-red-dark); background: #fff0e8; box-shadow: inset 0 0 0 1px rgba(207, 74, 59, .12); }
.xq-avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.xq-avatar-option { min-height: 47px; border-radius: 50%; font: 800 22px Georgia, serif; }
.xq-theme-option { min-height: 56px; display: grid; align-content: center; gap: 4px; }
.xq-theme-dot { height: 14px; border-radius: 20px; background: linear-gradient(90deg, #b56b31, #f2bf62); }
.xq-theme-option[data-theme="bamboo"] .xq-theme-dot { background: linear-gradient(90deg, #365d3b, #d5e5ae); }
.xq-theme-option[data-theme="celadon"] .xq-theme-dot { background: linear-gradient(90deg, #416c82, #c4e0ed); }
.xq-theme-option[data-theme="sakura"] .xq-theme-dot { background: linear-gradient(90deg, #8c5243, #f2c8b4); }
.xq-theme-option[data-theme="midnight"] .xq-theme-dot { background: linear-gradient(90deg, #26252b, #d9c78f); }
.xq-theme-option[data-theme="ivory"] .xq-theme-dot { background: linear-gradient(90deg, #796343, #f0dfbd); }
.xq-switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--xq-ink); font-size: 15px; font-weight: 750; }
.xq-switch-row input { width: 19px; height: 19px; accent-color: var(--xq-green); }
.xq-game { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 16px; }
.xq-game-board-card { min-width: 0; padding: 15px; border: 1px solid rgba(109, 69, 29, .24); border-radius: 22px; background: linear-gradient(145deg, #f8e7c1, #eabc71); box-shadow: 0 18px 40px rgba(89, 56, 22, .13); }
.xq-game-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.xq-player { display: flex; align-items: center; gap: 8px; min-width: 0; }
.xq-player .xq-avatar { width: 35px; height: 35px; flex-basis: 35px; font-size: 19px; }
.xq-player strong, .xq-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xq-player strong { max-width: 150px; font-size: 15px; }
.xq-player small { color: #80694f; font-size: 12px; }
.xq-clock { padding: 6px 10px; border: 1px solid rgba(106, 76, 43, .16); border-radius: 99px; background: rgba(255, 250, 241, .82); font: 750 17px ui-monospace, SFMono-Regular, Menlo, monospace; }
.xq-clock.active { color: #a42e26; box-shadow: 0 0 0 2px rgba(207, 74, 59, .13); }
.xq-board-wrap { width: min(100%, 570px); margin: 0 auto; }
.xq-board { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; filter: drop-shadow(0 5px 4px rgba(81, 48, 13, .17)); }
.xq-board-frame { fill: url(#frameGradient); stroke: var(--board-stroke, #985522); stroke-width: 8; }
.xq-board-face { fill: url(#boardGradient); stroke: var(--board-inner, #fff0c9); stroke-width: 2; }
.xq-board-grid { fill: none; stroke: var(--board-grid, #70451f); stroke-width: 1.7; }
.xq-board-river { fill: var(--board-river, #f2d08e); }
.xq-river-label { fill: var(--board-ink, #744a25); font: 700 17px Georgia, "Noto Serif TC", serif; letter-spacing: 4px; }
.xq-piece { cursor: pointer; }
.xq-piece circle { fill: url(#pieceGradient); stroke-width: 2.2; filter: drop-shadow(0 2px 2px rgba(60, 35, 15, .22)); }
.xq-piece.red circle { stroke: #a62b23; }
.xq-piece.black circle { stroke: #493020; }
.xq-piece.red text { fill: #a62b23; }
.xq-piece.black text { fill: #493020; }
.xq-piece text { font: 900 22px Georgia, "Noto Serif TC", serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.xq-piece.selected circle { stroke: #17876c; stroke-width: 4; }
.xq-last-move { fill: rgba(50, 156, 121, .23); stroke: rgba(18, 116, 83, .65); stroke-width: 1.5; }
.xq-legal-dot { fill: rgba(26, 133, 99, .5); stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; pointer-events: none; }
.xq-game-info { display: grid; gap: 13px; }
.xq-game-panel { padding: 15px; border: 1px solid var(--xq-line); border-radius: 17px; background: rgba(255, 253, 248, .92); box-shadow: 0 8px 20px rgba(88, 58, 31, .055); }
.xq-game-status { margin: 0; color: var(--xq-muted); font-size: 14px; line-height: 1.55; }
.xq-game-status.warn { color: #9a3229; font-weight: 800; }
.xq-game-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.xq-game-actions .xq-button { min-height: 38px; padding: 7px 8px; font-size: 14px; }
.xq-move-list { max-height: 195px; overflow: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; margin-top: 9px; color: var(--xq-muted); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.xq-modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(40, 30, 22, .48); backdrop-filter: blur(4px); }
.xq-modal { width: min(430px, 100%); padding: 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #fffaf1; box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.xq-modal h2 { margin: 0 0 8px; font: 800 25px Georgia, "Noto Serif TC", serif; }
.xq-modal p { color: var(--xq-muted); font-size: 16px; line-height: 1.7; }
.xq-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.xq-ad-slot { width: min(728px, var(--xq-page)); margin: 0 auto 1em; padding: 0; }
.xq-ad-slot .adsbygoogle { display: block; width: 100%; min-height: 90px; }
.xq-ad-label { margin-bottom: 6px; color: var(--xq-muted); font-size: 13px; line-height: 1.4; text-align: center; }
.xq-footer { width: var(--xq-page); min-height: 70px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: auto; border-top: 1px solid var(--xq-line); color: var(--xq-muted); font-size: 14px; }
.xq-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.xq-footer a { text-decoration: none; }
.xq-toast { position: fixed; z-index: 30; left: 50%; bottom: 22px; width: max-content; max-width: calc(100vw - 32px); padding: 11px 15px; border-radius: 12px; color: white; background: rgba(48, 39, 31, .94); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 15px; transform: translateX(-50%); }
.xq-page-settings, .xq-page-records, .xq-page-leaderboard, .xq-page-friends { max-width: 900px; margin: auto; }
.xq-records-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xq-result { font-weight: 850; }
.xq-rank-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-bottom: 13px; padding: 16px; border-radius: 16px; color: #68470e; background: linear-gradient(125deg, #fff1b5, #ffda70); }
.xq-rank-card strong { display: block; font: 800 23px Georgia, "Noto Serif TC", serif; }
.xq-rank-card small { color: #766038; }
.xq-warning { margin: 10px 0; padding: 10px 12px; border-radius: 12px; color: #8c2f26; background: #fff0e8; font-size: 14px; }
.xq-game-over { margin: 0; padding: 12px; border: 1px solid rgba(207, 74, 59, .2); border-radius: 13px; color: #8e3028; background: #fff0e8; font-size: 16px; font-weight: 850; }
@media (max-width: 800px) {
  :root { --xq-page: min(100% - 28px, 660px); }
  .xq-home-grid { grid-template-columns: 1fr; }
  .xq-game { grid-template-columns: minmax(0, 1fr); }
  .xq-game-info { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .xq-game-info .xq-game-panel:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) { body { font-size: 18px; } }
@media (max-width: 560px) {
  :root { --xq-page: calc(100% - 24px); }
  .xq-header { min-height: 66px; }
  .xq-brand-mark { width: 39px; height: 39px; border-radius: 13px; font-size: 25px; }
  .xq-brand strong { font-size: 17px; }
  .xq-brand small { font-size: 12px; }
  .xq-header-actions { gap: 10px; font-size: 13px; }
  .xq-header-actions a { max-width: 104px; text-align: right; }
  .xq-main { padding-top: 15px; }
  .xq-page-head { align-items: center; margin: 8px 0 14px; }
  .xq-page-head h1 { font-size: 29px; }
  .xq-page-head p { max-width: 220px; font-size: 14px; }
  .xq-profile-chip { padding: 5px; border-radius: 50%; }
  .xq-profile-chip > span:last-child { display: none; }
  .xq-tabs { position: sticky; z-index: 5; top: 0; gap: 3px; margin: 0 -4px 13px; padding: 4px; background: rgba(255, 250, 241, .95); backdrop-filter: blur(9px); }
  .xq-tab { min-height: 39px; font-size: 14px; }
  .xq-card { padding: 15px; border-radius: 17px; }
  .xq-match-card { min-height: 220px; padding: 20px; }
  .xq-match-card::after { right: 0; bottom: -38px; font-size: 166px; }
  .xq-match-card p { max-width: 280px; font-size: 15px; }
  .xq-action-grid { gap: 9px; }
  .xq-action-tile { min-height: 95px; padding: 12px; }
  .xq-action-tile strong { font-size: 15px; }
  .xq-settings-grid { grid-template-columns: 1fr; }
  .xq-game-board-card { padding: 8px; border-radius: 16px; }
  .xq-game-head { gap: 5px; }
  .xq-clock { padding: 5px 7px; font-size: 14px; }
  .xq-player strong { max-width: 92px; font-size: 13px; }
  .xq-player .xq-avatar { width: 31px; height: 31px; flex-basis: 31px; }
  .xq-board-wrap { width: 100%; }
  .xq-game-info { grid-template-columns: 1fr; }
  .xq-game-info .xq-game-panel:first-child { grid-column: auto; }
  .xq-footer { padding: 13px 0 calc(13px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.xq-seo-copy { width: var(--xq-page); margin: 0 auto 24px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--xq-line); border-radius: 21px; color: var(--xq-ink); background: rgba(255, 253, 248, .9); box-shadow: 0 12px 28px rgba(88, 58, 31, .055); }
.xq-seo-copy h2 { margin: 0 0 10px; font: 800 clamp(21px, 2.8vw, 27px)/1.25 Georgia, "Noto Serif TC", serif; }
.xq-seo-copy .xq-seo-subheading { margin-top: 25px; }
.xq-seo-copy p, .xq-seo-copy li { color: var(--xq-muted); font-size: 15px; line-height: 1.8; }
.xq-seo-intro { max-width: 850px; margin: 0; }
.xq-seo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.xq-seo-grid article { padding: 16px; border: 1px solid var(--xq-line); border-radius: 15px; background: #fffaf2; }
.xq-seo-grid h3 { margin: 0 0 7px; font: 800 17px Georgia, "Noto Serif TC", serif; }
.xq-seo-grid p { margin: 0; font-size: 14px; }
.xq-seo-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xq-seo-toc a { padding: 7px 12px; border: 1px solid var(--xq-line); border-radius: 99px; color: var(--xq-red-dark); background: #fffaf2; font-size: 14px; font-weight: 800; text-decoration: none; }
.xq-seo-toc a:hover, .xq-seo-toc a:focus-visible { border-color: rgba(166, 95, 46, .5); text-decoration: underline; text-underline-offset: 3px; }
.xq-seo-copy ol { display: grid; gap: 6px; margin: 0; padding-left: 1.35em; }
.xq-seo-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.xq-seo-links a { color: var(--xq-red-dark); font-size: 14px; font-weight: 800; text-underline-offset: 3px; }
.xq-seo-grid.xq-seo-rules { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.xq-seo-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.xq-seo-faq details { padding: 16px; border: 1px solid var(--xq-line); border-radius: 15px; background: #fffaf2; }
.xq-seo-faq summary { color: var(--xq-ink); font-size: 15px; font-weight: 800; line-height: 1.55; cursor: pointer; text-underline-offset: 3px; }
.xq-seo-faq summary:focus-visible { outline: 3px solid rgba(166, 95, 46, .35); outline-offset: 4px; border-radius: 3px; }
.xq-seo-faq p { margin: 10px 0 0; font-size: 14px; }
.xq-seo-maintained { margin: 18px 0 0; font-size: 13px !important; }
@media (max-width: 800px) { .xq-seo-grid { grid-template-columns: 1fr; } .xq-seo-faq { grid-template-columns: 1fr; } }
