/* 子比游戏中心 */
.zgc { --p: #7048e8; --p2: #9775fa; --ps: rgba(112, 72, 232, .1); --line: rgba(128, 128, 128, .16); max-width: 960px; margin: 0 auto 20px; }
.zgc img { margin: 0; }
.zgc-ico { vertical-align: -.15em; overflow: visible; }
.icon-but-game-center .zgc-ico { width: 1em !important; height: 1em !important; }
.zgc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.zgc-head-ico { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--ps); flex: none; }
.zgc-head .zgc-title { margin: 0 0 2px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.zgc-head p { margin: 0; opacity: .6; font-size: 13px; }
.zgc .zib-widget { padding: 16px; margin-bottom: 16px; }
.zgc-loading, .zgc-empty { text-align: center; padding: 18px 10px; opacity: .55; font-size: 13px; }
.zgc-off { text-align: center; padding: 50px 16px !important; }
.zgc-off-ico { display: inline-flex; width: 104px; height: 104px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ps); margin-bottom: 14px; }
.zgc-off b { display: block; font-size: 16px; }
.zgc-center { text-align: center; }

/* 按钮 */
.zgc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 18px; border: 0; border-radius: 8px; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff !important; font-size: 14px; cursor: pointer; line-height: 1.4; transition: opacity .15s; text-decoration: none !important; }
.zgc-btn:hover { opacity: .9; }
.zgc-btn:disabled { opacity: .5; cursor: default; }
.zgc-btn.is-ghost { background: var(--ps); color: var(--p) !important; }
.zgc-btn.is-sm { padding: 4px 12px; font-size: 13px; }
.zgc-btn.is-off { background: rgba(128, 128, 128, .15); color: #999 !important; }
.dark-theme .zgc-btn.is-ghost { color: #b197fc !important; }

/* 大厅 */
.zgc-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 0; }
.zgc-game { display: flex; gap: 14px; align-items: center; color: inherit !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.zgc-game:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(112, 72, 232, .15); }
.zgc-game-art { flex: none; width: 76px; height: 76px; border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; background: #bbada0; }
.zgc-game-art span { display: flex; align-items: center; justify-content: center; border-radius: 5px; font-weight: 800; color: #fff; font-size: 16px; background: #f2b179; }
.zgc-game-art span:nth-child(2) { background: #f59563; } .zgc-game-art span:nth-child(3) { background: #f67c5f; } .zgc-game-art span:nth-child(4) { background: #edc22e; }
.zgc-game-art.is-go { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 5px; background: #e8c37a; }
.zgc-game-art.is-go i { width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #666, #111); }
.zgc-game-art.is-go i.w { background: radial-gradient(circle at 35% 30%, #fff, #ccc); }
.zgc-game-info b { font-size: 17px; }
.zgc-game-info p { margin: 4px 0 8px; font-size: 12.5px; opacity: .6; }
.zgc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.zgc-tags span { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: var(--ps); color: var(--p); }
.zgc-tags span:empty { display: none; }
.dark-theme .zgc-tags span { color: #b197fc; }
.zgc-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.zgc-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.zgc-card-head b { font-size: 15px; }
.zgc-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: rgba(128, 128, 128, .1); }
.zgc-tabs button { border: 0; background: none; padding: 3px 12px; border-radius: 6px; font-size: 12.5px; cursor: pointer; color: inherit; opacity: .7; }
.zgc-tabs button.on { background: var(--main-bg-color, #fff); opacity: 1; color: var(--p); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.zgc-rank { list-style: none; margin: 0; padding: 0; }
.zgc-rank li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.zgc-rank li:last-child { border-bottom: 0; }
.zgc-rank a { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit !important; }
.zgc-rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zgc-rank b { font-size: 15px; color: var(--p); white-space: nowrap; }
.zgc-rank small { font-size: 11px; opacity: .6; font-weight: normal; margin-left: 2px; }
.zgc-rank-n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(128, 128, 128, .12); flex: none; }
.zgc-rank-n.is-1 { background: #fcc419; color: #fff; } .zgc-rank-n.is-2 { background: #adb5bd; color: #fff; } .zgc-rank-n.is-3 { background: #e8590c; color: #fff; }
.zgc-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ps); }
.zgc-av.is-ai svg { width: 22px !important; height: 22px !important; }
.zgc-room-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: inherit !important; }
.zgc-room-row:last-child { border-bottom: 0; }
.zgc-room-row > span:not(.zgc-av) { flex: 1; display: flex; flex-direction: column; }
.zgc-room-row em { font-style: normal; font-size: 12px; opacity: .6; }
.zgc-room-row em.is-hot, .is-hot { color: var(--p) !important; opacity: 1; font-weight: 600; }
.zgc-room-row i { font-style: normal; opacity: .4; font-size: 20px; }

/* 顶栏 */
.zgc-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.zgc-bar b { font-size: 17px; }
.zgc-bar span { width: 80px; }
.zgc-back { width: 80px; color: var(--p) !important; font-size: 14px; }
.zgc-hint { margin: 10px 0 0; font-size: 12px; opacity: .55; text-align: center; }

/* 2048 */
.zgc-2048-wrap { max-width: 460px; margin: 0 auto; }
.zgc-2048-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.zgc-score { flex: 1; text-align: center; padding: 6px; border-radius: 10px; background: var(--ps); }
.zgc-score small { display: block; font-size: 11px; opacity: .65; }
.zgc-score b { font-size: 20px; color: var(--p); }
.zgc-2048 { position: relative; touch-action: none; user-select: none; }
.zgc-2048-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; border-radius: 12px; background: #bbada0; aspect-ratio: 1; }
.zgc-cell { border-radius: 8px; background: rgba(238, 228, 218, .35); }
/* 方块：外层负责位置（平滑滑动），内层负责颜色和出现 / 合并动画 */
.zgc-tiles { position: absolute; inset: 0; pointer-events: none; }
.zgc-tile { position: absolute; top: 10px; left: 10px; width: calc((100% - 50px) / 4); height: calc((100% - 50px) / 4); transform: translate(calc(var(--c, 0) * (100% + 10px)), calc(var(--r, 0) * (100% + 10px))); transition: transform .11s ease-in-out; will-change: transform; }
.zgc-tile span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; font-size: clamp(18px, 7vw, 34px); color: #776e65; background: #eee4da; }
.zgc-tile.is-new span { animation: zgcAppear .16s ease .02s backwards; }
.zgc-tile.is-merge { z-index: 2; }
.zgc-tile.is-merge span { animation: zgcMerge .2s ease; }
@keyframes zgcAppear { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes zgcMerge { 0% { transform: scale(1); } 45% { transform: scale(1.2); } 100% { transform: scale(1); } }
.zgc-tile.v4 span { background: #ede0c8; }
.zgc-tile.v8 span { background: #f2b179; color: #fff; } .zgc-tile.v16 span { background: #f59563; color: #fff; } .zgc-tile.v32 span { background: #f67c5f; color: #fff; } .zgc-tile.v64 span { background: #f65e3b; color: #fff; }
.zgc-tile.v128 span, .zgc-tile.v256 span, .zgc-tile.v512 span { color: #fff; font-size: clamp(16px, 6vw, 28px); }
.zgc-tile.v128 span { background: #edcf72; box-shadow: 0 0 10px rgba(243, 215, 116, .4); } .zgc-tile.v256 span { background: #edcc61; box-shadow: 0 0 12px rgba(243, 215, 116, .5); } .zgc-tile.v512 span { background: #edc850; box-shadow: 0 0 14px rgba(243, 215, 116, .55); }
.zgc-tile.v1024 span, .zgc-tile.v2048 span { color: #fff; font-size: clamp(14px, 5vw, 22px); background: #edc53f; box-shadow: 0 0 16px rgba(243, 215, 116, .6); }
.zgc-tile.v2048 span { background: #edc22e; box-shadow: 0 0 22px rgba(237, 194, 46, .8); }
.zgc-tile.v4096 span, .zgc-tile.big span { background: #7048e8; color: #fff; font-size: clamp(12px, 4.4vw, 20px); box-shadow: 0 0 18px rgba(112, 72, 232, .5); }
.zgc-score { position: relative; }
.zgc-score .s-add { position: absolute; left: 0; right: 0; top: 12px; font-style: normal; font-weight: 700; color: var(--p); opacity: 0; pointer-events: none; }
.zgc-score .s-add.go { animation: zgcAdd .7s ease-out; }
@keyframes zgcAdd { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-26px); } }
@media (prefers-reduced-motion: reduce) { .zgc-tile { transition: none; } .zgc-tile span { animation: none !important; } }
.zgc-2048-over { position: absolute; inset: 0; z-index: 5; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255, 255, 255, .78); color: #333; text-align: center; }
.zgc-2048-over[hidden] { display: none; }
.zgc-2048-over b { font-size: 26px; }
.zgc-2048-over p { margin: 0 0 6px; }

/* 五子棋大厅 */
.zgc-go-modes { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 720px) { .zgc-go-modes { grid-template-columns: 1fr; } }
.zgc-search { margin-bottom: 8px; }
.zgc-sub { font-size: 12px; opacity: .55; margin: 4px 0; }
.zgc-user { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.zgc-user:last-child { border-bottom: 0; }
.zgc-user > span:not(.zgc-av) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zgc-user em { font-style: normal; font-size: 11px; padding: 0 7px; line-height: 17px; border-radius: 10px; color: #dc2626; background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .25); white-space: nowrap; }
.zgc-user.is-blocked .zgc-av, .zgc-user.is-blocked > span { opacity: .45; filter: grayscale(1); }
.zgc-ai-card { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.zgc-ai-card b { font-size: 16px; }
.zgc-ai-card p { margin: 0 0 6px; font-size: 12.5px; opacity: .6; }
.zgc-ai-art { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--ps); }

/* 对局 */
.zgc-match { max-width: 640px; margin: 0 auto; }
.zgc-players { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.zgc-player { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 2px solid transparent; background: rgba(128, 128, 128, .06); min-width: 0; transition: border-color .2s; }
.zgc-player:last-child { flex-direction: row-reverse; text-align: right; }
.zgc-player.is-turn { border-color: var(--p); background: var(--ps); }
.zgc-player > div { min-width: 0; display: flex; flex-direction: column; }
.zgc-player b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zgc-player span { font-size: 12px; opacity: .75; display: inline-flex; align-items: center; gap: 4px; }
.zgc-player:last-child span { justify-content: flex-end; }
.zgc-player em { font-style: normal; color: var(--p); font-weight: 700; }
.zgc-player .zgc-stone { position: static; width: 12px; height: 12px; transform: none; }
.zgc-vs { font-weight: 800; color: var(--p); opacity: .7; flex: none; }
.zgc-status { text-align: center; margin-bottom: 10px; font-size: 14px; min-height: 21px; }
.zgc-go-wrap { position: relative; }
.zgc-go { --n: 15; display: grid; grid-template-columns: repeat(var(--n), 1fr); aspect-ratio: 1; padding: 2.2%; border-radius: 10px; background: linear-gradient(135deg, #f0d293, #dcb066); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 20px rgba(0, 0, 0, .12); }
.zgc-pt { position: relative; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; aspect-ratio: 1; }
.zgc-pt:before, .zgc-pt:after { content: ""; position: absolute; background: rgba(60, 40, 10, .55); }
.zgc-pt:before { left: 0; right: 0; top: 50%; height: 1px; }
.zgc-pt:after { top: 0; bottom: 0; left: 50%; width: 1px; }
.zgc-pt.l:before { left: 50%; } .zgc-pt.r:before { right: 50%; } .zgc-pt.t:after { top: 50%; } .zgc-pt.b:after { bottom: 50%; }
.zgc-pt.star > :first-child:not(.zgc-stone), .zgc-pt.star:empty { background: radial-gradient(circle, rgba(60, 40, 10, .7) 0 13%, transparent 15%); }
.zgc-stone { position: absolute; z-index: 1; left: 50%; top: 50%; width: 86%; height: 86%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); display: inline-block; }
.zgc-stone.b { background: radial-gradient(circle at 35% 30%, #666, #111 70%); }
.zgc-stone.w { background: radial-gradient(circle at 35% 30%, #fff, #d4d4d4 75%); }
.zgc-pt.is-last .zgc-stone:after { content: ""; position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); border-radius: 50%; background: #e03131; }
.zgc-pt.is-win .zgc-stone { box-shadow: 0 0 0 2px #7048e8, 0 0 10px rgba(112, 72, 232, .8); }
.zgc-pt:not([data-s="b"]):not([data-s="w"]):hover:before { background: rgba(112, 72, 232, .8); height: 2px; }
.zgc-go-mask { position: absolute; inset: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .32); color: #fff; font-size: 16px; font-weight: 600; }
.zgc-go-mask[hidden] { display: none; }
.zgc-match-btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }

/* 其他页面的邀请提示 */
#zgc-inv-box { position: fixed; right: 16px; bottom: 16px; z-index: 100060; display: flex; flex-direction: column; gap: 10px; width: 290px; max-width: calc(100vw - 32px); }
.zgc-inv-card { padding: 12px 14px; border-radius: 14px; background: var(--main-bg-color, #fff); color: var(--main-color, #333); box-shadow: 0 12px 32px rgba(15, 23, 42, .22); border: 1px solid rgba(112, 72, 232, .25); animation: zgcIn .2s ease; }
@keyframes zgcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.zgc-inv-top { display: flex; align-items: center; gap: 10px; }
.zgc-inv-top > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zgc-inv-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zgc-inv-top span { font-size: 12.5px; opacity: .65; }
.zgc-inv-top .zgc-av { width: 40px; height: 40px; }
.zgc-inv-x { border: 0; background: none; font-size: 20px; line-height: 1; opacity: .4; cursor: pointer; color: inherit; }
.zgc-inv-btns { display: flex; gap: 8px; margin-top: 10px; }
.zgc-inv-btns .zgc-btn { flex: 1; padding: 6px 10px; }
#zgc-inv-box .zgc-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: linear-gradient(135deg, #7048e8, #9775fa); color: #fff !important; cursor: pointer; }
#zgc-inv-box .zgc-btn.is-ghost { background: rgba(112, 72, 232, .1); color: #7048e8 !important; }
#zgc-inv-box .zgc-av { border-radius: 50%; object-fit: cover; flex: none; }

.zgc a { text-decoration: none !important; }

.zgc-levels { display: flex; gap: 8px; }
.zgc-levels .zgc-btn { min-width: 76px; }

/* ---------------- 绿色游戏 ---------------- */
.zgc-green { --g: #12b886; --gs: rgba(18, 184, 134, .1); }
.zgc-head-ico.is-green, .zgc-off-ico.is-green { background: var(--gs, rgba(18, 184, 134, .1)); }
.zgc-btn.is-green { background: linear-gradient(135deg, #12b886, #38d9a9); }
.zgc-btn.is-green-ghost { background: rgba(18, 184, 134, .1); color: #0ca678 !important; }
.zgc-back.is-green { color: #0ca678 !important; }
.zgc-gtotal { color: #f59f00; font-weight: 700; }
.zgc-gtopic { font-size: 13px; font-weight: 600; margin: 14px 0 8px; color: #0ca678; }
.zgc-glevels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.zgc-glevel { border: 0; border-radius: 12px; padding: 10px 4px 8px; background: rgba(18, 184, 134, .1); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; transition: transform .12s; }
.zgc-glevel:hover:not(:disabled) { transform: translateY(-2px); }
.zgc-glevel b { font-size: 18px; color: #087f5b; }
.dark-theme .zgc-glevel b { color: #63e6be; }
.zgc-glevel.is-cur { box-shadow: 0 0 0 2px #12b886; }
.zgc-glevel.is-locked { background: rgba(128, 128, 128, .1); cursor: default; }
.zgc-glevel.is-locked b { font-size: 15px; }
.zgc-gstars { font-size: 12px; letter-spacing: 1px; }
.zgc-gstars i { font-style: normal; color: rgba(128, 128, 128, .35); }
.zgc-gstars i.on { color: #fcc419; }
.zgc-gstars.is-big { font-size: 34px; margin: 6px 0; }
.zgc-gplay { max-width: 420px; margin: 0 auto; }
.zgc-gbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.zgc-gbar b { font-size: 14px; }
.zgc-gcount { font-size: 13px; opacity: .6; min-width: 50px; text-align: right; }
.zgc-gprog { height: 6px; border-radius: 6px; background: rgba(18, 184, 134, .12); overflow: hidden; margin-bottom: 18px; }
.zgc-gprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #12b886, #38d9a9); transition: width .3s; }
.zgc-gq { text-align: center; font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: 1px; }
.zgc-ga { margin: 12px auto 4px; width: 60%; min-height: 56px; border-radius: 12px; border: 2px dashed rgba(18, 184, 134, .45); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #0ca678; transition: background .2s, border-color .2s; }
.zgc-ga.is-right { background: rgba(18, 184, 134, .12); border-style: solid; border-color: #12b886; }
.zgc-ga.is-wrong { background: rgba(250, 82, 82, .1); border-style: solid; border-color: #fa5252; color: #fa5252; animation: zgcShake .3s; }
@keyframes zgcShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.zgc-gfb { text-align: center; min-height: 24px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.zgc-gfb .is-right { color: #12b886; } .zgc-gfb .is-wrong { color: #fa5252; }
.zgc-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zgc-pad button { border: 0; border-radius: 12px; padding: 14px 0; font-size: 22px; font-weight: 700; background: rgba(128, 128, 128, .1); color: inherit; cursor: pointer; transition: transform .08s, background .15s; touch-action: manipulation; }
.zgc-pad button:active { transform: scale(.95); }
.zgc-pad button.is-ok { background: linear-gradient(135deg, #12b886, #38d9a9); color: #fff; font-size: 18px; }
.zgc-pad button.is-del { font-size: 20px; }
.zgc-gresult { max-width: 420px; margin: 0 auto; text-align: center; padding: 28px 16px !important; }
.zgc-gresult b { font-size: 18px; }
.zgc-gresult p { margin: 0 0 6px; opacity: .7; }
.zgc-gbig { font-size: 56px; line-height: 1.2; }

/* 顶部右侧按钮：返回用户中心、切换游戏中心 / 绿色游戏 */
.zgc-head-text { flex: 1; min-width: 0; }
.zgc-head-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.zgc-head-btn { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 13px; white-space: nowrap; background: rgba(128, 128, 128, .1); color: inherit !important; transition: opacity .15s; }
.zgc-head-btn:hover { opacity: .8; }
.zgc-head-btn.is-green { background: rgba(18, 184, 134, .12); color: #0ca678 !important; }
.zgc-head-btn.is-purple { background: rgba(112, 72, 232, .1); color: #7048e8 !important; }
.zgc-off-ico.is-teen { background: rgba(18, 184, 134, .1); }
@media (max-width: 560px) { .zgc-head { flex-wrap: wrap; } .zgc-head-btns { width: 100%; justify-content: flex-start; } }

/* 青少年模式关闭多人游戏时的提示 */
.zgc-multi-off { opacity: 1; padding: 26px 10px; }
.zgc-multi-off > div:last-child { opacity: .7; font-size: 14px; }
.zgc-teen-ico { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(18, 184, 134, .1); margin-bottom: 10px; }

/* ---------------- 大厅卡片：贪吃蛇 / 扫雷 ---------------- */
.zgc-game-art.is-snake { position: relative; display: block; background: linear-gradient(135deg, #e5dbff, #d0bfff); }
.zgc-game-art.is-snake i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #9775fa; top: 42px; }
.zgc-game-art.is-snake i:nth-child(1) { left: 10px; background: #b197fc; } .zgc-game-art.is-snake i:nth-child(2) { left: 22px; } .zgc-game-art.is-snake i:nth-child(3) { left: 34px; top: 34px; background: #845ef7; }
.zgc-game-art.is-snake i.h { left: 42px; top: 24px; width: 20px; height: 20px; background: #7048e8; box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .08); }
.zgc-game-art.is-snake b { position: absolute; right: 9px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, .7); animation: zgcFruit 1.4s ease-in-out infinite; }
@keyframes zgcFruit { 50% { transform: scale(1.25); } }
.zgc-game-art.is-mines { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; background: #adb5bd; }
.zgc-game-art.is-mines span { background: #e9ecef; color: #1c7ed6; font-size: 12px; border-radius: 3px; }
.zgc-game-art.is-mines span:nth-child(3) { color: #2f9e44; } .zgc-game-art.is-mines span:nth-child(5) { color: #e03131; }
.zgc-game-art.is-mines span.o, .zgc-game-art.is-mines span.f { background: #ced4da; font-size: 11px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }

/* ---------------- 贪吃蛇 ---------------- */
.zgc-snake-wrap { max-width: 560px; margin: 0 auto; }
.zgc-snake { position: relative; display: flex; justify-content: center; touch-action: none; user-select: none; }
.zgc-snake canvas { display: block; border-radius: 12px; box-shadow: 0 4px 18px rgba(112, 72, 232, .12); }
.zgc-snake.is-shake canvas { animation: zgcShake2 .4s; }
@keyframes zgcShake2 { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(6px, -2px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
.zgc-snake-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.zgc-snake-over.on { opacity: 1; pointer-events: auto; }
.zgc-snake-panel { text-align: center; padding: 20px 26px; border-radius: 14px; background: rgba(255, 255, 255, .9); color: #333; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); backdrop-filter: blur(4px); animation: zgcIn .2s ease; }
.zgc-snake-panel b { display: block; font-size: 20px; margin-bottom: 4px; }
.zgc-snake-panel p { margin: 0 0 10px; font-size: 13px; opacity: .75; }
.zgc-dpad { display: none; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 48px); gap: 8px; justify-content: center; margin-top: 14px; }
.zgc-dpad button { border: 0; border-radius: 12px; background: rgba(112, 72, 232, .12); color: #7048e8; font-size: 18px; touch-action: manipulation; }
.zgc-dpad button:active { background: rgba(112, 72, 232, .25); }
.zgc-dpad [data-d="up"] { grid-column: 2; } .zgc-dpad [data-d="left"] { grid-column: 1; grid-row: 2; } .zgc-dpad [data-d="down"] { grid-column: 2; grid-row: 2; } .zgc-dpad [data-d="right"] { grid-column: 3; grid-row: 2; }
@media (hover: none), (max-width: 640px) { .zgc-dpad { display: grid; } }

/* ---------------- 扫雷 ---------------- */
.zgc-mines-wrap { max-width: 620px; margin: 0 auto; }
.zgc-mlv { display: flex; gap: 8px; margin-bottom: 12px; }
.zgc-mlv button { flex: 1; border: 0; border-radius: 10px; padding: 7px 4px; background: rgba(128, 128, 128, .1); color: inherit; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.zgc-mlv button small { font-size: 11px; font-weight: normal; opacity: .6; }
.zgc-mlv button.on { background: var(--ps); color: var(--p); box-shadow: inset 0 0 0 2px var(--p); }
.zgc-mbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(128, 128, 128, .08); font-size: 15px; }
.zgc-mbar b { font-variant-numeric: tabular-nums; min-width: 40px; display: inline-block; }
.zgc-mtime { text-align: right; }
.zgc-mface { border: 0; background: var(--main-bg-color, #fff); width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: transform .1s; }
.zgc-mface:active { transform: scale(.9); }
.zgc-mboard-wrap { display: flex; justify-content: center; overflow-x: auto; }
.zgc-mboard { --w: 9; display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 2px; width: min(100%, calc(var(--w) * 36px)); padding: 6px; border-radius: 10px; background: #adb5bd; user-select: none; -webkit-touch-callout: none; }
.zgc-mc { aspect-ratio: 1; border: 0; padding: 0; margin: 0; border-radius: 4px; background: linear-gradient(145deg, #f1f3f5, #dee2e6); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); cursor: pointer; font-weight: 800; font-size: clamp(10px, 3.4vw, 17px); line-height: 1; color: transparent; display: flex; align-items: center; justify-content: center; transition: background .12s, transform .1s; }
.zgc-mc:not(.is-open):hover { background: #fff; }
.zgc-mc:not(.is-open):active { transform: scale(.92); }
.zgc-mc.is-open { background: #f8f9fa; box-shadow: none; cursor: default; animation: zgcOpen .22s ease backwards; }
@keyframes zgcOpen { from { transform: scale(.4); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.zgc-mc.n1 { color: #1c7ed6; } .zgc-mc.n2 { color: #2f9e44; } .zgc-mc.n3 { color: #e03131; } .zgc-mc.n4 { color: #5f3dc4; }
.zgc-mc.n5 { color: #c92a2a; } .zgc-mc.n6 { color: #0c8599; } .zgc-mc.n7 { color: #212529; } .zgc-mc.n8 { color: #868e96; }
.zgc-mc.is-flag { color: inherit; animation: zgcFlag .25s cubic-bezier(.3, 1.6, .5, 1); }
.zgc-mc.is-flag.is-auto { animation: zgcFlag .3s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes zgcFlag { from { transform: scale(.2) rotate(-25deg); } to { transform: scale(1) rotate(0); } }
.zgc-mc.is-hint { animation: zgcHint .35s; }
@keyframes zgcHint { 50% { background: #ffe066; } }
.zgc-mc.is-mine { background: #ffe3e3; color: inherit; animation: zgcMine .3s ease backwards; }
@keyframes zgcMine { from { transform: scale(1.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.zgc-mc.is-boom { background: #fa5252; color: inherit; animation: zgcBoom .5s ease; }
@keyframes zgcBoom { 0% { transform: scale(1); } 30% { transform: scale(1.6); box-shadow: 0 0 0 6px rgba(250, 82, 82, .4); } 100% { transform: scale(1); } }
.zgc-mc.is-wrong { background: #fff3bf; color: inherit; }
.zgc-mboard.is-lost { animation: zgcShake2 .45s; }
.zgc-mboard.is-won { box-shadow: 0 0 0 3px #51cf66, 0 0 24px rgba(81, 207, 102, .45); transition: box-shadow .4s; }
.zgc-mtools { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.zgc-mmode { flex: none; border: 0; border-radius: 20px; padding: 6px 14px; background: rgba(128, 128, 128, .1); color: inherit; cursor: pointer; font-size: 14px; }
.zgc-mmode.on { background: rgba(250, 82, 82, .12); color: #e03131; }
.zgc-mtip { font-size: 12px; opacity: .55; }
.zgc-mresult { text-align: center; margin-top: 12px; }
.zgc-mresult:empty { display: none; }
.zgc-mresult b { display: block; font-size: 16px; margin-bottom: 6px; }
.zgc-mresult p { margin: 0 0 8px; font-size: 13px; }
.dark-theme .zgc-mc { background: linear-gradient(145deg, #495057, #343a40); }
.dark-theme .zgc-mc.is-open { background: #212529; }
.dark-theme .zgc-mboard { background: #1a1d20; }
@media (prefers-reduced-motion: reduce) { .zgc-mc, .zgc-snake canvas, .zgc-mboard { animation: none !important; } }

/* ---------------- 中国象棋 ---------------- */
.zgc-gtag { font-size: 11px; font-weight: normal; padding: 0 6px; border-radius: 8px; background: var(--ps); color: var(--p); vertical-align: 1px; }
.zgc-game-art.is-xq { display: flex; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, #f3d9a4, #e0b46c); padding: 6px; }
.zgc-game-art.is-xq .zgc-xq-pc { position: static; transform: none; width: 32px; height: 32px; font-size: 17px; }
.zgc-ai-art.is-xq { background: linear-gradient(135deg, #f3d9a4, #e0b46c); }
.zgc-ai-art.is-xq .zgc-xq-pc { position: static; transform: none; width: 46px; height: 46px; font-size: 24px; }
.zgc-xq-match { max-width: 560px; position: relative; }
.zgc-xq-box { max-width: 480px; margin: 0 auto; }
.zgc-xq { position: relative; aspect-ratio: 9 / 10; border-radius: 10px; background: linear-gradient(135deg, #f3d9a4, #dfb06a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 6px 20px rgba(0, 0, 0, .14); user-select: none; cursor: pointer; }
.zgc-xq-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.zgc-xq-marks, .zgc-xq-pieces { position: absolute; inset: 0; pointer-events: none; }
.zgc-xq-pc { position: absolute; width: 10.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: KaiTi, STKaiti, "Kaiti SC", serif; font-weight: 700; font-size: clamp(14px, 4.6vw, 26px); line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #f1dcb2 70%, #d9b679); box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 0 0 3.5px currentColor; transition: left .3s ease, top .3s ease, transform .15s; }
.zgc-xq-pc.is-r { color: #c92a2a; } .zgc-xq-pc.is-b { color: #212529; }
.zgc-xq-pc.is-moving { z-index: 3; transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 8px 16px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 0 0 3.5px currentColor; }
.zgc-xq-pc.is-sel { transform: translate(-50%, -58%) scale(1.08); box-shadow: 0 8px 14px rgba(0, 0, 0, .35), 0 0 0 3px rgba(112, 72, 232, .6), inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 0 0 3.5px currentColor; z-index: 2; }
.zgc-xq-pc.is-check { animation: zgcCheck .8s ease-in-out infinite; }
@keyframes zgcCheck { 50% { box-shadow: 0 0 0 5px rgba(250, 82, 82, .55), 0 0 18px rgba(250, 82, 82, .7), inset 0 0 0 3.5px currentColor; } }
.zgc-xq-dot { position: absolute; width: 3.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(112, 72, 232, .75); box-shadow: 0 0 0 3px rgba(112, 72, 232, .2); animation: zgcAppear .15s ease; }
.zgc-xq-dot.is-cap { width: 11.5%; background: none; box-shadow: 0 0 0 3px rgba(250, 82, 82, .75); }
.zgc-xq-last { position: absolute; width: 11.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px dashed rgba(112, 72, 232, .55); border-radius: 50%; }
.zgc-xq-mask { position: absolute; left: 16px; right: 16px; top: 120px; bottom: 70px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .32); color: #fff; font-size: 16px; font-weight: 600; }
.zgc-xq-mask[hidden] { display: none; }
.zgc-xq-check { color: #e03131 !important; animation: zgcPulse .8s ease-in-out infinite; }
@keyframes zgcPulse { 50% { opacity: .55; } }
.zgc-xq-mini { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #f1dcb2; box-shadow: inset 0 0 0 2px currentColor; }
.zgc-xq-mini.is-r { color: #c92a2a; } .zgc-xq-mini.is-b { color: #212529; }

/* 绿色游戏：科目切换 + 英语四选一 */
.zgc-gtabs { display: flex; gap: 8px; margin-bottom: 12px; }
.zgc-gtabs button { flex: 1; border: 0; border-radius: 12px; padding: 11px 0; font-size: 15px; font-weight: 700; cursor: pointer; background: rgba(128, 128, 128, .1); color: inherit; transition: background .2s, color .2s, box-shadow .2s; }
.zgc-gtabs button.is-on { background: linear-gradient(135deg, #12b886, #38d9a9); color: #fff; box-shadow: 0 6px 16px rgba(18, 184, 134, .25); }
.zgc-etip { text-align: center; font-size: 14px; opacity: .65; margin-bottom: 6px; }
.zgc-eq { text-align: center; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.zgc-eq.is-in { animation: zgcEnIn .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes zgcEnIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.zgc-ebig { font-size: clamp(26px, 8vw, 38px); font-weight: 800; line-height: 1.25; word-break: break-word; }
.zgc-ebig.is-emoji { font-size: 72px; line-height: 1.1; }
.zgc-ebig.is-zh { color: #0ca678; }
.zgc-espell { font-size: 30px; font-weight: 800; letter-spacing: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.zgc-espell u { text-decoration: none; color: #0ca678; border-bottom: 3px solid #12b886; padding: 0 2px; }
.zgc-esay { border: 0; border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer; background: rgba(18, 184, 134, .12); color: #0ca678; }
.zgc-esay:active { transform: scale(.95); }
.zgc-eopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zgc-eopts button { position: relative; border: 2px solid transparent; border-radius: 14px; padding: 14px 10px 14px 30px; min-height: 56px; font-size: 17px; font-weight: 700; cursor: pointer; background: rgba(128, 128, 128, .1); color: inherit; transition: transform .1s, background .2s, border-color .2s; touch-action: manipulation; word-break: break-word; }
.zgc-eopts button em { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; opacity: .45; }
@media (hover: hover) and (pointer: fine) { .zgc-eopts button:hover:not(:disabled) { background: rgba(18, 184, 134, .12); } }
.zgc-eopts button { -webkit-tap-highlight-color: transparent; outline: none; }
.zgc-eopts button:active:not(:disabled) { transform: scale(.97); }
.zgc-eopts button:disabled { cursor: default; opacity: .55; }
.zgc-eopts button.is-right { opacity: 1; background: rgba(18, 184, 134, .14); border-color: #12b886; color: #0ca678; animation: zgcPop .3s; }
.zgc-eopts button.is-wrong { opacity: 1; background: rgba(250, 82, 82, .1); border-color: #fa5252; color: #fa5252; animation: zgcShake .3s; }
.zgc-eopts.is-letters button { font-size: 26px; font-family: ui-monospace, Menlo, Consolas, monospace; }
@keyframes zgcPop { 50% { transform: scale(1.05); } }

/* 对局双方：执子方 + 剩余时间（时间做成小标签，不会挤成两行） */
.zgc-player .zgc-pside { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; opacity: 1; margin-top: 2px; }
.zgc-player .zgc-ptag { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; opacity: .75; }
.zgc-player .zgc-left { flex: none; white-space: nowrap; font-size: 11.5px; line-height: 1; padding: 3px 7px; border-radius: 10px; background: var(--p); color: #fff !important; font-variant-numeric: tabular-nums; }
.zgc-player:last-child .zgc-pside { justify-content: flex-end; }
@media (max-width: 560px) {
  .zgc-players { gap: 6px; align-items: stretch; }
  .zgc-player, .zgc-player:last-child { flex-direction: column; text-align: center; gap: 4px; padding: 8px 6px; }
  .zgc-player > div { align-items: center; width: 100%; }
  .zgc-player b { max-width: 100%; }
  .zgc-player .zgc-pside, .zgc-player:last-child .zgc-pside { justify-content: center; min-height: 18px; }
  .zgc-vs { align-self: center; font-size: 13px; }
}

/* ---------------- 记忆翻牌 ---------------- */
.zgc-game-art.is-memory { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px; background: linear-gradient(135deg, #ffe8cc, #ffd8a8); }
.zgc-game-art.is-memory span { border-radius: 6px; background: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }
.zgc-game-art.is-memory span.b { background: linear-gradient(135deg, #9775fa, #7048e8); }
.zgc-mem-wrap { max-width: 520px; margin: 0 auto; }
.zgc-mem { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; perspective: 900px; }
.zgc-mcard { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; touch-action: manipulation; animation: zgcMcIn .4s var(--d, 0ms) both cubic-bezier(.2, .9, .3, 1.2); }
@keyframes zgcMcIn { from { opacity: 0; transform: translateY(12px) scale(.85); } to { opacity: 1; transform: none; } }
.zgc-mcard-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, .8, .3, 1.15); }
.zgc-mcard.is-open .zgc-mcard-in, .zgc-mcard.is-done .zgc-mcard-in { transform: rotateY(180deg); }
.zgc-mcard-back, .zgc-mcard-face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; }
.zgc-mcard-back { background: linear-gradient(135deg, #9775fa, #7048e8); box-shadow: 0 3px 8px rgba(112, 72, 232, .25); }
.zgc-mcard-back:before { content: ''; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); }
.zgc-mcard:hover:not(.is-open):not(.is-done) .zgc-mcard-back { filter: brightness(1.08); }
.zgc-mcard-face { transform: rotateY(180deg); background: var(--main-bg-color, #fff); box-shadow: inset 0 0 0 2px rgba(112, 72, 232, .25), 0 3px 8px rgba(0, 0, 0, .08); font-size: clamp(24px, 8vw, 40px); }
.zgc-mem[style*="--cols:5"] .zgc-mcard-face { font-size: clamp(20px, 6.5vw, 34px); }
.dark-theme .zgc-mcard-face { background: #2b2c30; }
.zgc-mcard.is-miss .zgc-mcard-face { box-shadow: inset 0 0 0 2px #fa5252; animation: zgcShake .3s; }
.zgc-mcard.is-done { cursor: default; }
.zgc-mcard.is-done .zgc-mcard-face { box-shadow: inset 0 0 0 2px #12b886; animation: zgcMcDone .45s ease; }
.zgc-mcard.is-done .zgc-mcard-in { transition: transform .45s, opacity .4s .5s; }
@keyframes zgcMcDone { 0% { transform: rotateY(180deg) scale(1); } 45% { transform: rotateY(180deg) scale(1.12); } 100% { transform: rotateY(180deg) scale(1); } }
.zgc-mem.is-won .zgc-mcard { animation: zgcMcWin .6s calc(var(--d, 0ms) * .6) both; }
@keyframes zgcMcWin { 40% { transform: translateY(-8px) rotate(-3deg); } 70% { transform: translateY(2px); } 100% { transform: none; } }

/* ---------------- 井字棋 ---------------- */
.zgc-game-art.is-ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 8px; background: linear-gradient(135deg, #e7f5ff, #d0ebff); }
.zgc-game-art.is-ttt span { border-radius: 4px; background: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; color: transparent; }
.zgc-game-art.is-ttt span.x { color: #7048e8; } .zgc-game-art.is-ttt span.o { color: #f76707; }
.zgc-ai-art.is-ttt { gap: 2px; font-size: 26px; font-weight: 900; }
.zgc-ai-art.is-ttt .x { color: #7048e8; } .zgc-ai-art.is-ttt .o { color: #f76707; }
.zgc-ttt-match { max-width: 460px; margin: 0 auto; }
.zgc-ttt-box { position: relative; max-width: 340px; margin: 6px auto 12px; }
.zgc-ttt { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 18px; background: rgba(128, 128, 128, .1); }
.zgc-tc { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--main-bg-color, #fff); padding: 12%; cursor: default; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); transition: background .15s, transform .1s; touch-action: manipulation; position: relative; }
.dark-theme .zgc-tc { background: #2b2c30; }
.zgc-ttt.is-can .zgc-tc.is-empty { cursor: pointer; }
.zgc-ttt.is-can .zgc-tc.is-empty:hover { background: rgba(112, 72, 232, .07); }
.zgc-ttt.is-can[data-me="o"] .zgc-tc.is-empty:hover { background: rgba(247, 103, 7, .07); }
.zgc-ttt.is-can .zgc-tc.is-empty:active { transform: scale(.95); }
.zgc-tc svg { width: 100%; height: 100%; display: block; fill: none; stroke-linecap: round; stroke-width: 12; }
.zgc-tx { stroke: #7048e8; } .zgc-to { stroke: #f76707; }
.zgc-tc.is-new .zgc-tx path { stroke-dasharray: 70; stroke-dashoffset: 70; animation: zgcDraw .22s ease-out forwards; }
.zgc-tc.is-new .zgc-tx path + path { animation-delay: .16s; }
.zgc-tc.is-new .zgc-to circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: zgcDraw .38s ease-out forwards; transform-origin: center; transform: rotate(-90deg); }
@keyframes zgcDraw { to { stroke-dashoffset: 0; } }
.zgc-tc.is-last { box-shadow: 0 0 0 2px rgba(112, 72, 232, .25), 0 2px 6px rgba(0, 0, 0, .06); }
.zgc-ttt.is-over .zgc-tc:not(.is-win) svg { opacity: .35; transition: opacity .4s .3s; }
.zgc-tc.is-win { animation: zgcPop .4s .25s; }
.zgc-tline { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; overflow: visible; }
.zgc-tline line { stroke-width: 10; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; opacity: 0; }
.zgc-tline.is-on line { opacity: .9; animation: zgcDraw .45s .15s ease-out forwards; }
.zgc-tline.is-x line { stroke: #7048e8; } .zgc-tline.is-o line { stroke: #f76707; }
.zgc-ttt-mini { font-style: normal; font-weight: 900; font-size: 12px; line-height: 1; }
.zgc-ttt-mini.is-x { color: #7048e8; } .zgc-ttt-mini.is-o { color: #f76707; }
.zgc-ttt-box .zgc-go-mask { border-radius: 18px; }
.zgc-ttt-score { text-align: center; font-size: 13px; opacity: .75; margin-top: 8px; }
.zgc-ttt-score:empty { display: none; }

.zgc-mresult .zgc-msg b { display: inline; font-size: inherit; margin: 0; }

/* 一局结束后的积分提示 */
.zgc-ptoast { position: fixed; left: 50%; bottom: 24px; z-index: 99999; transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.zgc-ptoast.is-show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.zgc-ptoast-in { display: flex; align-items: center; gap: 12px; padding: 12px 38px 12px 14px; border-radius: 16px; background: var(--main-bg-color, #fff); color: var(--main-color, #333); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); position: relative; border-left: 4px solid #adb5bd; }
.dark-theme .zgc-ptoast-in { background: #2b2c30; color: #e6e6e6; }
.zgc-ptoast-in > b { flex: none; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.zgc-ptoast-in.is-gain { border-left-color: #12b886; } .zgc-ptoast-in.is-gain > b { color: #0ca678; }
.zgc-ptoast-in.is-lost { border-left-color: #fa5252; } .zgc-ptoast-in.is-lost > b { color: #fa5252; }
.zgc-ptoast.is-show .zgc-ptoast-in > b { animation: zgcPop .5s .25s; }
.zgc-ptoast-in div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; }
.zgc-ptoast-in em { font-style: normal; font-size: 12.5px; color: #f08c00; }
.zgc-ptoast-in i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 18px; opacity: .4; cursor: pointer; padding: 4px; }
@media (max-width: 560px) { .zgc-ptoast { bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* ---------------- 国际象棋 ---------------- */
.zgc-game-art.is-chess { display: flex; align-items: center; justify-content: center; gap: 2px; background: repeating-conic-gradient(#ebd5b3 0 25%, #b58863 0 50%) 0 0 / 50% 50%; }
.zgc-game-art.is-chess .zgc-chpc { position: static; width: auto; height: auto; font-size: 34px; transform: none; }
.zgc-ai-art.is-chess .zgc-chpc { position: static; width: auto; height: auto; font-size: 40px; transform: none; }
.zgc-chess-match, .zgc-wq-match { max-width: 560px; margin: 0 auto; }
.zgc-bwrap { position: relative; margin: 6px auto 12px; }
.zgc-chess { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.zgc-chsq { position: absolute; width: 12.5%; height: 12.5%; background: #ebd5b3; }
.zgc-chsq.is-d { background: #b58863; }
.zgc-chsq small { position: absolute; font-size: clamp(8px, 2vw, 11px); font-weight: 700; font-style: normal; line-height: 1; color: rgba(0, 0, 0, .45); }
.zgc-chsq small.rk { left: 3px; top: 3px; } .zgc-chsq small.fl { right: 3px; bottom: 3px; }
.zgc-chmarks, .zgc-chpcs { position: absolute; inset: 0; pointer-events: none; }
.zgc-chlast, .zgc-chsel, .zgc-chdot { position: absolute; width: 12.5%; height: 12.5%; }
.zgc-chlast { background: rgba(255, 212, 59, .5); }
.zgc-chlast.is-from { background: rgba(255, 212, 59, .3); }
.zgc-chsel { background: rgba(112, 72, 232, .35); }
.zgc-chdot:after { content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(112, 72, 232, .55); }
.zgc-chdot.is-cap:after { width: 86%; height: 86%; background: none; border: 4px solid rgba(112, 72, 232, .55); box-sizing: border-box; }
.zgc-chpc { position: absolute; width: 12.5%; height: 12.5%; display: flex; align-items: center; justify-content: center; font-size: clamp(26px, 9.5vw, 54px); line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols2", "Arial Unicode MS", serif; z-index: 1; }
.zgc-chpc.is-w { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000, 1px 1px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 0 3px 4px rgba(0, 0, 0, .35); }
.zgc-chpc.is-b { color: #1e1e1e; text-shadow: 0 0 1px #fff, 0 3px 4px rgba(0, 0, 0, .35); }
.zgc-chpc.is-moving { transition: left .28s cubic-bezier(.3, .8, .3, 1), top .28s cubic-bezier(.3, .8, .3, 1); z-index: 3; }
.zgc-chpc.is-check { background: radial-gradient(circle, rgba(250, 82, 82, .85) 0, rgba(250, 82, 82, .35) 45%, transparent 70%); animation: zgcPop .4s; }
.zgc-chpromo { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0, 0, 0, .45); color: #fff; }
.zgc-chpromo[hidden] { display: none; }
.zgc-chpromo div { display: flex; gap: 8px; }
.zgc-chpromo button { position: static; width: 64px; height: 64px; border: 0; border-radius: 12px; background: #ebd5b3; cursor: pointer; font-size: 44px; animation: zgcPop .3s; }
.zgc-chmini { font-style: normal; font-size: 14px; line-height: 1; }
.zgc-chmini.is-w { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000; } .zgc-chmini.is-b { color: #222; }

/* ---------------- 围棋 ---------------- */
.zgc-game-art.is-wq { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px; background: linear-gradient(135deg, #f0d293, #dcb066); }
.zgc-game-art.is-wq .zgc-stone, .zgc-ai-art.is-wq .zgc-stone { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 1; }
.zgc-ai-art.is-wq { display: flex; gap: 4px; padding: 14px; background: linear-gradient(135deg, #f0d293, #dcb066); }
.zgc-ai-art.is-wq .zgc-stone { width: 34px; }
.zgc-wq .zgc-go { cursor: default; }
.zgc-wq.is-can .zgc-pt { cursor: pointer; }
.zgc-wq:not(.is-can) .zgc-pt:hover:before { background: rgba(60, 40, 10, .55); height: 1px; }
.zgc-wq .zgc-pt.is-last .zgc-stone { animation: zgcWqDrop .22s cubic-bezier(.3, 1.4, .5, 1); }
.zgc-wq .zgc-pt.is-last .zgc-stone:after { width: 30%; height: 30%; background: none; border: 2px solid #e03131; box-sizing: border-box; }
@keyframes zgcWqDrop { from { transform: translate(-50%, -50%) scale(1.3); opacity: .4; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.zgc-stone.is-gone { animation: zgcWqGone .4s forwards; }
@keyframes zgcWqGone { to { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }
.zgc-terr { position: absolute; z-index: 1; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); border-radius: 2px; animation: zgcPop .3s; }
.zgc-terr.b { background: rgba(0, 0, 0, .7); }
.zgc-terr.w { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.zgc-wq-caps { display: block; font-size: 12px; opacity: .6; margin-top: 2px; }
.zgc-wq-score { margin-top: 4px; font-size: 14px; }
.zgc-game-art.is-chess .zgc-chpc { background: none !important; box-shadow: none !important; border-radius: 0; padding: 0; min-width: 0; }

/* 谁可以邀请我 */
.zgc-who { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: normal; white-space: nowrap; }
.zgc-who span { opacity: .6; }
.zgc-who select { height: 28px; padding: 0 22px 0 8px; font-size: 12.5px; border-radius: 8px; border: 1px solid rgba(128, 128, 128, .25); background-color: transparent; color: inherit; max-width: 130px; cursor: pointer; }
@media (max-width: 420px) { .zgc-who span { display: none; } }
.zgc-setbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.zgc-setbar .zgc-who span { display: inline; }

/* 谁可以邀请我：小齿轮 + 弹出菜单 */
.zgc-who { position: relative; display: inline-flex; }
.zgc-who-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .55; cursor: pointer; transition: opacity .2s, background .2s, transform .3s; }
.zgc-who-btn:hover { opacity: .9; background: rgba(128, 128, 128, .12); }
.zgc-who-btn:active { transform: rotate(45deg); }
.zgc-who-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 210px; padding: 8px; border-radius: 12px; background: var(--main-bg-color, #fff); color: var(--main-color, #333); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: zgcPopIn .18s ease-out; transform-origin: top right; }
.dark-theme .zgc-who-pop { background: #2b2c30; color: #e6e6e6; }
@keyframes zgcPopIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.zgc-who-pop b { display: block; font-size: 12px; font-weight: 600; opacity: .6; padding: 4px 8px 6px; }
.zgc-who-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.zgc-who-pop button:hover { background: rgba(112, 72, 232, .08); }
.zgc-who-pop button i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(128, 128, 128, .4); box-sizing: border-box; }
.zgc-who-pop button.is-on { color: #7048e8; font-weight: 600; }
.zgc-who-pop button.is-on i { border: 5px solid #7048e8; }

/* 和棋 */
.zgc-draw-note { margin-top: 6px; font-size: 13px; opacity: .75; }
.zgc-draw-note.is-ask { opacity: 1; display: inline-block; padding: 6px 12px; border-radius: 10px; background: rgba(247, 103, 7, .1); color: #e8590c; font-weight: 600; animation: zgcPop .4s; }

/* 围棋：死子 */
.zgc-wq .zgc-pt.is-dead .zgc-stone { opacity: .45; }
.zgc-wq .zgc-pt.is-dead .zgc-stone:before { content: '×'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: 1.1em; font-weight: 900; line-height: 1; color: #e03131; opacity: 1; }
.zgc-wq .zgc-pt.is-dead { cursor: pointer; }
.zgc-wq-mark { font-size: 12.5px; opacity: .7; margin-top: 4px; }

/* 首页「对战邀请」下拉框 */
.zgc-who-full { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: normal; white-space: nowrap; }
.zgc-who-full span { opacity: .6; }
.zgc-who-full select { height: 30px; padding: 0 22px 0 8px; font-size: 13px; border-radius: 8px; border: 1px solid rgba(128, 128, 128, .25); background-color: transparent; color: inherit; max-width: 140px; cursor: pointer; }
/* 邀请页：像手机系统「设置」那样的灰色圆角图标 */
.zgc-who-btn { width: 30px; height: 30px; border-radius: 8px; opacity: 1; background: linear-gradient(180deg, #a5a5ab, #6e6e75) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
.zgc-who-btn:hover { opacity: 1; filter: brightness(1.08); }
.zgc-who-btn:active { transform: scale(.92); }
.zgc-who-btn svg { transition: transform .4s; }
.zgc-who-btn:hover svg { transform: rotate(60deg); }

/* 邀请页：纯齿轮图标（和私信设置一样） */
.zgc-who-btn { width: 30px; height: 30px; border-radius: 50%; background: transparent !important; box-shadow: none; color: inherit; opacity: .7; filter: none; }
.zgc-who-btn:hover { opacity: 1; background: rgba(128, 128, 128, .12) !important; filter: none; }
.zgc-who-btn:hover svg { transform: rotate(45deg); }
.zgc-who-btn svg { transition: transform .3s; }

/* 历史记录 */
.zgc-head-btn.is-hist { }
.zgc-hgame { height: 30px; padding: 0 22px 0 8px; font-size: 13px; border-radius: 8px; border: 1px solid rgba(128, 128, 128, .25); background-color: transparent; color: inherit; max-width: 130px; }
.zgc-hrow { border-bottom: 1px solid rgba(128, 128, 128, .12); }
.zgc-hrow:last-child { border-bottom: 0; }
.zgc-hmain { display: flex; align-items: center; gap: 10px; padding: 11px 2px; }
.zgc-hrow.has-snap .zgc-hmain { cursor: pointer; }
.zgc-hrow.has-snap .zgc-hmain:hover { background: rgba(112, 72, 232, .04); }
.zgc-hico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(128, 128, 128, .08); }
.zgc-htext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zgc-htext b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zgc-htext b small { font-weight: normal; opacity: .65; font-size: 12.5px; margin-left: 4px; }
.zgc-htext span { font-size: 12px; opacity: .55; line-height: 1.5; }
.zgc-hside { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.zgc-hres { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 10px; }
.zgc-hres.is-win { background: rgba(18, 184, 134, .14); color: #0ca678; }
.zgc-hres.is-lose { background: rgba(250, 82, 82, .12); color: #f03e3e; }
.zgc-hres.is-draw { background: rgba(112, 72, 232, .12); color: #7048e8; }
.zgc-hres.is-abort { background: rgba(128, 128, 128, .14); color: #868e96; }
.zgc-hres.is-score { background: rgba(247, 103, 7, .12); color: #e8590c; }
.zgc-hside em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.zgc-hside em.is-up { color: #0ca678; } .zgc-hside em.is-down { color: #f03e3e; }
.zgc-harr { flex: none; font-size: 20px; opacity: .35; transition: transform .2s; }
.zgc-hrow.is-open .zgc-harr { transform: rotate(90deg); }
.zgc-hsnap { padding: 4px 0 14px; animation: zgcPopIn .2s ease-out; }
.zgc-snapbox { max-width: 380px; margin: 0 auto; pointer-events: none; }
.zgc-snapbox.is-ttt { max-width: 240px; }
.zgc-hmore { text-align: center; margin-top: 10px; }
.zgc-hmore:empty { display: none; }
.zgc-hadmin b { display: block; margin-bottom: 8px; font-size: 14px; }
.zgc-hfound { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.zgc-hpick { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 20px; background: rgba(112, 72, 232, .08); color: inherit; font-size: 13px; }
.zgc-hpick .zgc-av, .zgc-hwho .zgc-av { width: 24px; height: 24px; }
.zgc-hwho { display: inline-flex; align-items: center; gap: 6px; }
.zgc-hme { font-size: 12px; font-weight: normal; margin-left: 6px; }
.zgc-snap2048 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border-radius: 10px; background: #bbada0; max-width: 260px; margin: 0 auto; }
.zgc-snap2048 i { aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 18px; background: rgba(238, 228, 218, .35); color: #776e65; }
.zgc-snap2048 i.t2 { background: #eee4da; } .zgc-snap2048 i.t4 { background: #ede0c8; }
.zgc-snap2048 i.t8 { background: #f2b179; color: #fff; } .zgc-snap2048 i.t16 { background: #f59563; color: #fff; }
.zgc-snap2048 i.t32 { background: #f67c5f; color: #fff; } .zgc-snap2048 i.t64 { background: #f65e3b; color: #fff; }
.zgc-snap2048 i.t128, .zgc-snap2048 i.t256, .zgc-snap2048 i.t512 { background: #edcf72; color: #fff; font-size: 15px; }
.zgc-snap2048 i.t1024, .zgc-snap2048 i.t2048, .zgc-snap2048 i.t4096 { background: #edc22e; color: #fff; font-size: 13px; }
.zgc-hadmin[hidden] { display: none !important; }

/* 井字棋：手机端修正（格子固定正方形、不受主题按钮样式影响、点按后不留高亮） */
.zgc-ttt { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.zgc-tc { -webkit-appearance: none; appearance: none; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important; line-height: 0; font-size: 0; outline: none !important; -webkit-tap-highlight-color: transparent; overflow: hidden; }
.zgc-tc:before { content: ''; display: block; padding-top: 100%; }
.zgc-tc svg { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; }
.zgc-tc:focus, .zgc-tc:focus-visible { outline: none !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.zgc-tc.is-last, .zgc-tc.is-last:focus { box-shadow: 0 0 0 2px rgba(112, 72, 232, .25), 0 2px 6px rgba(0, 0, 0, .06); }
.zgc-ttt.is-can .zgc-tc.is-empty:hover, .zgc-ttt.is-can[data-me="o"] .zgc-tc.is-empty:hover { background: var(--main-bg-color, #fff); }
.dark-theme .zgc-ttt.is-can .zgc-tc.is-empty:hover { background: #2b2c30; }
@media (hover: hover) and (pointer: fine) {
  .zgc-ttt.is-can .zgc-tc.is-empty:hover { background: rgba(112, 72, 232, .07); }
  .zgc-ttt.is-can[data-me="o"] .zgc-tc.is-empty:hover { background: rgba(247, 103, 7, .07); }
}
.zgc-tc.is-new .zgc-to path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: zgcDraw .38s ease-out forwards; }
.zgc-tc.is-win { animation: zgcTttWin .45s .25s; }
@keyframes zgcTttWin { 50% { transform: scale(1.06); } }
@media (max-width: 560px) {
  .zgc-ttt-box { max-width: min(320px, 46vh); }
  .zgc-ttt { gap: 6px; padding: 6px; border-radius: 14px; }
  .zgc-tc { border-radius: 10px; }
}
@media (max-width: 560px) { .zgc-tline { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); } }
.zgc-htext b small .zgc-hopp { color: #7048e8; font-weight: 600; text-decoration: none; padding: 2px 0; }
.zgc-htext b small .zgc-hopp:hover { text-decoration: underline; }

/* 遮罩只盖住棋盘，不再挡住下面的「取消邀请」等按钮 */
.zgc-xq-wrap { position: relative; }
.zgc-xq-wrap .zgc-xq-mask { left: 0; right: 0; top: 0; bottom: 0; }
.zgc-match-btns { position: relative; z-index: 6; }

/* 对局里对手的昵称：可点，跳到 TA 的主页 */
.zgc-player .zgc-pname { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(112, 72, 232, .5); padding-bottom: 1px; }
.zgc-player .zgc-pname:hover { color: #7048e8; border-bottom-style: solid; }
.zgc-player b a.zgc-pname { color: #7048e8 !important; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; border: 0; }

/* ===== 1.4.0：对方卡片「···」菜单 ===== */
.zgc-player { position: relative; }
.zgc-opp-more { position: absolute; top: 3px; right: 5px; z-index: 2; height: 18px; min-width: 24px; padding: 0 5px; border: 0; border-radius: 9px; background: rgba(128, 128, 128, .14); color: inherit; font-size: 13px; font-weight: 800; line-height: 18px; letter-spacing: 1px; cursor: pointer; opacity: .75; }
.zgc-opp-more:hover, .zgc-opp-more:focus-visible { opacity: 1; background: rgba(112, 72, 232, .16); color: #7048e8; }
.zgc-player:last-child .zgc-opp-more { right: auto; left: 5px; }
.zgc-player:first-child:has(.zgc-opp-more) { padding-right: 32px; }
.zgc-player:last-child:has(.zgc-opp-more) { padding-left: 32px; }
.zgc-opp-pop { position: absolute; z-index: 100050; min-width: 150px; padding: 6px; border-radius: 12px; background: var(--main-bg-color, #fff); color: var(--main-color, #333); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: zgcPopIn .16s ease-out; transform-origin: top right; }
.dark-theme .zgc-opp-pop { background: #2b2c30; color: #e6e6e6; }
.zgc-opp-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
.zgc-opp-pop button i { font-style: normal; width: 18px; text-align: center; }
.zgc-opp-pop button:hover { background: rgba(112, 72, 232, .08); }
.zgc-opp-pop button.is-danger { color: #f03e3e; }
.zgc-opp-pop button.is-danger:hover { background: rgba(250, 82, 82, .1); }
@media (max-width: 560px) {
  .zgc-player:last-child .zgc-opp-more { left: auto; right: 4px; }
  .zgc-player:first-child:has(.zgc-opp-more), .zgc-player:last-child:has(.zgc-opp-more) { padding-left: 6px; padding-right: 6px; padding-top: 14px; }
  .zgc-opp-pop button { padding: 11px 12px; font-size: 15px; }
}

/* ===== 1.4.0：被吃掉的棋子（棋盘上下各一栏） ===== */
.zgc-caps { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 6px auto; padding: 5px 9px; border-radius: 10px; background: rgba(128, 128, 128, .07); box-sizing: border-box; }
.zgc-caps.is-xq { max-width: 480px; }
.zgc-caps-lbl { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: .75; white-space: nowrap; }
.zgc-caps-lbl b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(250, 82, 82, .14); color: #f03e3e; font-size: 11px; line-height: 18px; text-align: center; box-sizing: border-box; }
.zgc-caps-list { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.zgc-caps-none { font-style: normal; font-size: 12px; opacity: .45; }
.zgc-cap { display: inline-flex; align-items: center; gap: 1px; }
.zgc-cap-xq { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: KaiTi, STKaiti, "Kaiti SC", serif; font-weight: 700; font-size: 13px; line-height: 1; background: radial-gradient(circle at 35% 30%, #fffaf0, #f1dcb2 70%, #d9b679); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), inset 0 0 0 1.5px currentColor; }
.zgc-cap-xq.is-r { color: #c92a2a; } .zgc-cap-xq.is-b { color: #212529; }
.zgc-cap-ch { font-size: 21px; line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols2", "Arial Unicode MS", serif; }
.zgc-cap-ch.is-w { color: #fff; text-shadow: 0 0 1px #000, 1px 1px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333; }
.zgc-cap-ch.is-b { color: #1e1e1e; text-shadow: 0 0 1px #fff; }
.dark-theme .zgc-cap-ch.is-b { color: #111; text-shadow: 0 0 1px #fff, 0 0 2px rgba(255, 255, 255, .6); }
.zgc-snapbox .zgc-caps { margin: 6px 0; }
@media (max-width: 560px) {
  .zgc-caps { gap: 6px; min-height: 28px; padding: 4px 7px; margin: 5px auto; }
  .zgc-caps-lbl { font-size: 11px; }
  .zgc-caps-list { gap: 3px 5px; }
  .zgc-cap-xq { width: 19px; height: 19px; font-size: 11.5px; }
  .zgc-cap-ch { font-size: 18px; }
}

/* ===== 1.4.0：历史记录用时、举报 ===== */
.zgc-htext .zgc-hdur { display: block; opacity: 1; font-size: inherit; white-space: nowrap; }
.zgc-hrep-bar { margin: 2px 0 10px; font-size: 12px; text-align: center; color: rgba(128, 128, 128, .95); }
.zgc-hrep { margin-left: 4px; color: #7048e8 !important; font-weight: 600; text-decoration: none; cursor: pointer; }
.zgc-hrep:hover { text-decoration: underline; }

/* ===== 1.5.0：棋谱回放 ===== */
.zgc-hrp { font-style: normal; display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: rgba(112, 72, 232, .1); color: #7048e8; font-size: 11px; font-weight: 600; line-height: 17px; vertical-align: 1px; }
.zgc-rp { --s1: #343a40; --s2: #adb5bd; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; outline: none; padding: 2px 0 6px; }
.zgc-rp[data-g="xiangqi"] { --s1: #e03131; --s2: #343a40; }
.zgc-rp[data-g="chess"] { --s1: #adb5bd; --s2: #343a40; }
.zgc-rp[data-g="ttt"] { --s1: #7048e8; --s2: #f76707; }
.dark-theme .zgc-rp[data-g="gomoku"], .dark-theme .zgc-rp[data-g="weiqi"] { --s2: #e9ecef; --s1: #868e96; }
.dark-theme .zgc-rp[data-g="chess"] { --s1: #e9ecef; --s2: #868e96; }
.dark-theme .zgc-rp[data-g="xiangqi"] { --s2: #adb5bd; }
.zgc-rp .is-s1 { --sc: var(--s1); } .zgc-rp .is-s2 { --sc: var(--s2); }
.zgc-rp-main { min-width: 0; }
.zgc-rp-main .zgc-snapbox { max-width: 400px; }
.zgc-rp-main .zgc-snapbox.is-ttt { max-width: 240px; }
.zgc-rp-main .zgc-caps { max-width: 400px; }
.zgc-rp-ctl { display: flex; justify-content: center; gap: 8px; margin: 10px 0 6px; }
.zgc-rp-ctl button { width: 38px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: rgba(128, 128, 128, .1); color: inherit; cursor: pointer; padding: 0; }
.zgc-rp-ctl button svg { width: 16px; height: 16px; fill: currentColor; }
.zgc-rp-ctl button.is-main { width: 52px; background: #7048e8; color: #fff; }
.zgc-rp-ctl button:hover:not(:disabled) { background: rgba(112, 72, 232, .16); }
.zgc-rp-ctl button.is-main:hover { background: #5f3dc4; }
.zgc-rp-ctl button:disabled { opacity: .35; cursor: default; }
.zgc-rp-range { --pct: 100%; --trk: rgba(128, 128, 128, .28); --ring: #fff; display: block; width: 100%; max-width: 400px; height: 26px; margin: 2px auto 4px; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.dark-theme .zgc-rp-range { --trk: rgba(255, 255, 255, .2); --ring: #2b2c30; }
.zgc-rp-range:focus { outline: none; }
.zgc-rp-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #7048e8 0, #7048e8 var(--pct), var(--trk) var(--pct), var(--trk) 100%); }
.zgc-rp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #7048e8; border: 3px solid var(--ring); box-shadow: 0 1px 5px rgba(0, 0, 0, .35); box-sizing: border-box; transition: transform .12s; }
.zgc-rp-range:active::-webkit-slider-thumb, .zgc-rp-range:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
.zgc-rp-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--trk); }
.zgc-rp-range::-moz-range-progress { height: 6px; border-radius: 3px; background: #7048e8; }
.zgc-rp-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #7048e8; border: 3px solid var(--ring); box-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .zgc-rp-range { height: 32px; } .zgc-rp-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; } .zgc-rp-range::-moz-range-thumb { width: 18px; height: 18px; } }
.zgc-rp-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 24px; font-size: 13px; text-align: center; }
.zgc-rp-now em { font-style: normal; opacity: .6; font-size: 12px; }
.zgc-rp-note { color: #7048e8; }
.zgc-rp-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sc, #999); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.zgc-rp-panel { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.zgc-rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zgc-rp-stat { padding: 9px 10px; border-radius: 10px; background: rgba(128, 128, 128, .06); border-top: 3px solid var(--sc); min-width: 0; }
.zgc-rp-sname { display: flex; align-items: center; gap: 5px; min-width: 0; margin-bottom: 6px; }
.zgc-rp-sname b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zgc-rp-sname small { flex: none; font-size: 11px; opacity: .6; }
.zgc-rp-stat dl { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.zgc-rp-stat dl div { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.zgc-rp-stat dt { opacity: .6; font-weight: normal; white-space: nowrap; }
.zgc-rp-stat dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.zgc-rp-stat dd a { color: #7048e8; }
.zgc-rp-ttl { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.zgc-rp-ttl small { font-weight: normal; font-size: 11.5px; opacity: .55; }
@media (max-width: 760px) {
  .zgc-rp { grid-template-columns: 1fr; gap: 12px; }
  .zgc-rp-ctl button { width: 44px; height: 40px; }
  .zgc-rp-ctl button.is-main { width: 60px; }
}
.zgc-hsnap > .zgc-caps { max-width: 380px; margin-left: auto; margin-right: auto; }

/* 大厅分页（电脑端每页 9 个游戏，排行榜跟着切换） */
.zgc-game[hidden], .zgc-boards > [hidden], .zgc-pg-dots[hidden] { display: none !important; }
.zgc-pager { display: flex; align-items: center; gap: 10px; }
.zgc-pager .zgc-games { flex: 1; min-width: 0; align-content: start; }
.zgc-pg-btn { display: none; flex: none; width: 34px; height: 72px; padding: 0; border: 0; border-radius: 12px; background: var(--ps); color: var(--p); font-size: 26px; line-height: 1; cursor: pointer; align-items: center; justify-content: center; transition: background .15s, transform .15s, opacity .15s; }
.zgc-pg-btn:hover:not(:disabled) { background: var(--p); color: #fff; transform: scale(1.06); }
.zgc-pg-btn:disabled { opacity: .3; cursor: default; }
.dark-theme .zgc-pg-btn { color: #b197fc; }
.zgc-pager.is-paged .zgc-pg-btn { display: inline-flex; }
.zgc-pager.is-paged .zgc-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zgc-pg-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.zgc-pg-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(128, 128, 128, .3); cursor: pointer; transition: width .2s, background .2s; }
.zgc-pg-dots button.on { width: 22px; background: var(--p); }
.zgc-pg-dots span { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.zgc-games.is-slide-l, .zgc-boards.is-slide-l { animation: zgc-slide-l .28s ease-out; }
.zgc-games.is-slide-r, .zgc-boards.is-slide-r { animation: zgc-slide-r .28s ease-out; }
@keyframes zgc-slide-l { from { opacity: 0; transform: translateX(28px); } }
@keyframes zgc-slide-r { from { opacity: 0; transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .zgc-games, .zgc-boards { animation: none !important; } }

/* 涉嫌作弊 */
.zgc-hres.is-cheat { background: #ffe3e3 !important; color: #c92a2a !important; font-weight: 700; white-space: nowrap; }
.dark-theme .zgc-hres.is-cheat { background: rgba(224, 49, 49, .2) !important; color: #ff8787 !important; }
.zgc-hrow:has(.is-cheat) { box-shadow: inset 3px 0 0 #e03131; }
.zgc-cheat-note { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #fff5f5; color: #c92a2a; font-size: 13px; line-height: 1.6; font-weight: normal; }
.dark-theme .zgc-cheat-note { background: rgba(224, 49, 49, .15); color: #ff8787; }
.zgc-hone { font-weight: normal; font-size: 12px; opacity: .75; }

/* 玩法说明（可折叠）：五子棋、中国象棋、国际象棋、围棋、飞行棋共用，和斗兽棋同一个样式 */
.zgc-rules { --ra: 112, 72, 232; margin: 14px auto 0; max-width: 520px; border-radius: 12px; background: rgba(var(--ra), .07); border: 1px solid rgba(var(--ra), .25); font-size: 13px; text-align: left; }
.zgc-rules.is-gomoku, .zgc-rules.is-weiqi { --ra: 196, 140, 60; }
.zgc-rules.is-xiangqi { --ra: 201, 42, 42; }
.zgc-rules.is-chess { --ra: 141, 100, 60; }
.zgc-rules.is-ludo { --ra: 112, 72, 232; }
.zgc-go-modes + .zgc-rules, .zgc-go-modes ~ .zgc-rules { max-width: none; margin: 0 0 16px; }
.zgc-rules summary { cursor: pointer; padding: 9px 14px; font-weight: 600; list-style: none; }
.zgc-rules summary::-webkit-details-marker { display: none; }
.zgc-rules summary::after { content: "›"; float: right; transition: transform .2s; opacity: .6; }
.zgc-rules[open] summary::after { transform: rotate(90deg); }
.zgc-rules-in { padding: 0 14px 12px; }
.zgc-rules ul { margin: 8px 0 0; padding-left: 0; list-style: none; line-height: 1.75; }
.zgc-rules li { position: relative; padding-left: 14px; }
.zgc-rules li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--ra)); opacity: .7; }
.zgc-rchips { display: flex; flex-wrap: wrap; gap: 6px; }
.zgc-rchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 12px; line-height: 1.3; }
.zgc-rchip > b { font-weight: 700; }
.zgc-rchip > i:not(.zgc-stone):not(.zl-rdot) { font-style: normal; opacity: .6; }
.zgc-rchip .zgc-stone { position: static; transform: none; width: 16px; height: 16px; }
.zgc-rchip .zgc-cap-xq { width: 22px; height: 22px; font-size: 13px; }
.zgc-rchip .zgc-cap-xq + .zgc-cap-xq { margin-left: -6px; }
.zgc-rglyph { font-size: 20px; line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols2", "Arial Unicode MS", serif; }
.zl-rdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -2px; box-shadow: 0 0 0 1.5px #fff; }
.dark-theme .zgc-rchip { background: rgba(255, 255, 255, .08); }
@media (max-width: 560px) { .zgc-rchip { font-size: 11.5px; } }

/* ---------- 多人对局的和棋提议（三人 / 四人象棋、三人国际象棋共用） ---------- */
.zgc-mdraw { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 8px auto 2px; max-width: 560px; padding: 8px 12px; border-radius: 12px; background: rgba(112, 72, 232, .08); border: 1px solid rgba(112, 72, 232, .25); font-size: 13px; animation: zgcMdIn .2s ease; }
.zgc-mdraw[hidden] { display: none !important; }
.zgc-mdraw-t { flex: 1; min-width: 180px; }
.zgc-mdraw-t em { font-style: normal; opacity: .65; font-size: 12px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.zgc-mdraw-who { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.zgc-mdraw-who i { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 6px; background: rgba(128, 128, 128, .16); }
.zgc-mdraw-who i.is-ok { background: #d3f9d8; color: #2b8a3e; }
.zgc-mdraw-acts { display: flex; gap: 6px; }
@keyframes zgcMdIn { from { opacity: 0; transform: translateY(-4px); } }

/* 看对方棋子的落点（悬停 / 手机上点一下）：双人中国象棋、国际象棋、四人象棋共用 */
.zgc-xq-dot.is-peek { background: rgba(247, 103, 7, .85); box-shadow: 0 0 0 3px rgba(247, 103, 7, .2); }
.zgc-xq-dot.is-peek.is-cap { background: none; box-shadow: 0 0 0 3px rgba(247, 103, 7, .85); outline: 2px dashed rgba(255, 255, 255, .6); outline-offset: -3px; border-radius: 50%; }
.zgc-xq-peek { position: absolute; width: 11.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 3px #f76707; background: rgba(247, 103, 7, .12); }
.zgc-chsel.is-peek { background: rgba(247, 103, 7, .3); }
.zgc-chdot.is-peek:after { background: rgba(247, 103, 7, .75); }
.zgc-chdot.is-peek.is-cap:after { background: none; border: 4px dashed rgba(247, 103, 7, .85); }
.zgc-peektag { position: absolute; z-index: 9 !important; transform: translate(-50%, calc(-100% - 22px)); z-index: 7; pointer-events: none; padding: 3px 9px; border-radius: 8px; background: rgba(33, 37, 41, .86); color: #fff; font-size: 12px; line-height: 1.5; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); animation: zgcPeekIn .12s ease; }
@keyframes zgcPeekIn { from { opacity: 0; } }
.zgc-peektag.is-below { transform: translate(-50%, 22px); }

/* 多人游戏玩家条、等候区里的昵称链接和「···」（查看此用户 / 举报） */
.zgc a.zgc-pname.is-m { color: inherit !important; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: rgba(112, 72, 232, .6); text-underline-offset: 3px; }
.zgc a.zgc-pname.is-m:hover { color: #7048e8 !important; }
.zgc-opp-more.is-m { top: auto; bottom: 3px; right: 4px; left: auto; height: 16px; min-width: 22px; line-height: 16px; font-size: 12px; padding: 0 4px; }
.zl-ws { position: relative; }
.zl-ws .zgc-opp-more.is-m { top: 4px; bottom: auto; right: 4px; }

/* 深色模式：国际象棋人机卡片的国王换成白棋，黑棋在深色背景上看不清 */
.dark-theme .zgc-ai-art.is-chess .zgc-chpc.is-b { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000, 1px 1px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 0 3px 4px rgba(0, 0, 0, .35); }

/* 棋类对局上方的「已开局 N 分钟」 */
.zgc-elapsed { display: flex; align-items: center; justify-content: center; gap: 4px; margin: -2px auto 8px; font-size: 12.5px; opacity: .72; font-variant-numeric: tabular-nums; }
.zgc-elapsed i { font-style: normal; font-size: 13px; }
.zgc-elapsed b { color: var(--theme-color, #7048e8); font-weight: 700; }
.zgc-elapsed[hidden] { display: none !important; }

/* 没登录时的登录卡片 */
.zgc-login { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0 !important; overflow: hidden; border-radius: 16px; }
.zgc-login-main { padding: 40px 28px; text-align: center; background: linear-gradient(160deg, rgba(112, 72, 232, .1), rgba(177, 151, 252, .04)); }
.zgc-login-ico { display: inline-flex; width: 116px; height: 116px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(112, 72, 232, .1); box-shadow: 0 0 0 10px rgba(112, 72, 232, .05); margin-bottom: 16px; }
.zgc-login-t { font-size: 20px; font-weight: 700; }
.zgc-login-d { margin: 8px auto 20px; max-width: 320px; font-size: 13.5px; line-height: 1.7; opacity: .65; }
.zgc-login-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.zgc-login-btns .zgc-btn { min-width: 128px; padding: 10px 22px; font-size: 15px; font-weight: 600; }
.zgc-login-f { list-style: none; margin: 0; padding: 32px 26px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.zgc-login-f li { display: flex; gap: 12px; align-items: flex-start; }
.zgc-login-f i { flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(112, 72, 232, .1); font-style: normal; font-size: 20px; }
.zgc-login-f b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.zgc-login-f span { display: block; font-size: 12.5px; line-height: 1.6; opacity: .6; }
@media (max-width: 767px) {
  .zgc-login { grid-template-columns: 1fr; }
  .zgc-login-main { padding: 30px 18px 24px; }
  .zgc-login-f { padding: 20px 18px 24px; gap: 14px; border-top: 1px solid rgba(128, 128, 128, .12); }
}

/* ================= 横屏玩（手机）：大富翁、烽火守城共用 ================= */
.zgc-land-btn { display: none; align-items: center; gap: 3px; border: 0; border-radius: 14px; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.6; background: rgba(128, 128, 128, .14); color: inherit; cursor: pointer; white-space: nowrap; }
.zgc-land-btn svg { width: 15px; height: 15px; }
@media (max-width: 767px), (pointer: coarse) and (max-width: 1100px) { .zgc-land-btn { display: inline-flex; } }
.zgc-land.is-land .zgc-land-btn { display: none !important; }
.zgc-land-x { display: none; }
html.zgc-noscroll, html.zgc-noscroll body { overflow: hidden !important; overscroll-behavior: none; }
.zgc-land.is-land { position: fixed !important; z-index: 100000; top: 0; left: 0; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; max-width: none !important; box-sizing: border-box; overflow: hidden; background: var(--main-bg-color, #fff); }
.dark-theme .zgc-land.is-land { background: var(--main-bg-color, #232428); }
.zgc-land.is-land.is-rot { transform-origin: 0 0; transform: translateX(100vw) rotate(90deg); }
.zgc-land.is-land > .zgc-land-x { display: inline-flex; align-items: center; position: absolute; top: 6px; right: 6px; z-index: 60; border: 0; border-radius: 16px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; background: rgba(128, 128, 128, .18); color: inherit; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.zgc-land-toast { position: absolute; left: 50%; top: 10px; z-index: 70; max-width: 80%; transform: translateX(-50%); padding: 7px 16px; border-radius: 20px; background: rgba(30, 30, 40, .85); color: #fff; font-size: 13px; line-height: 1.5; text-align: center; pointer-events: none; opacity: 0; }
.zgc-land-toast.is-bad { background: rgba(176, 42, 42, .9); }
.zgc-land-toast.is-go { animation: zgcLandToast 3s ease forwards; }
@keyframes zgcLandToast { 0% { opacity: 0; transform: translate(-50%, -8px); } 8% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* 涉嫌作弊等待审核：只暂停这一个游戏 */
.zgc-game.is-paused { position: relative; }
.zgc-game.is-paused .zgc-game-art { filter: grayscale(.7); opacity: .7; }
.zgc-paused { position: absolute; left: 8px; top: 8px; z-index: 3; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #fff; background: #e8590c; box-shadow: 0 2px 6px rgba(232, 89, 12, .35); }

/* 管理员：下载回放文件 */
.zgc-hdl-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(128, 128, 128, .25); }
.zgc-hdl-bar small { font-size: 12px; opacity: .55; }
