/* 2026-12-05 EasyGame 新版色票（docs/design/EasyGame_色票對照.png）：奶油底、深咖啡字、青綠功能色、橘色行動色 */
:root {
  color-scheme: light;
  --eg-blue: #069082;          /* 主要互動色（青綠） */
  --eg-blue-deep: #05766b;
  --eg-teal: #05b9ab;          /* 青綠圖示 */
  --eg-icon: #0f8c80;          /* 標籤圖示（配 #fde9c6） */
  --eg-link: #057a6e;          /* 內文連結（對比 ≥ 4.5） */
  --eg-link-hover: #045c53;
  --eg-link-title: #51210e;
  --eg-ink: #51210e;           /* 所有文字 */
  --eg-muted: #855744;
  --eg-line: #f2e0cd;
  --eg-paper: #fefefe;         /* 頂欄、卡片 */
  --eg-canvas: #fdf4eb;        /* 頁面背景 */
  --eg-panel: #fef9f4;         /* 右側欄面板 */
  --eg-soft: #fde9c6;          /* 標籤、標題列、查看更多 */
  --eg-soft-hover: #fbdcab;
  --eg-mint: #d6f6f0;          /* 選中的選單 */
  --eg-tag: #fde9c6;
  --eg-tag-ink: #51210e;
  --eg-orange: #fd851a;
  --eg-orange-top: #fd9a38;
  --eg-heart: #fe6707;         /* 愛心、火焰 */
  --eg-hero: #edf8f5;          /* 首頁主視覺底 */
  --eg-hero-dot: #92e447;
  --eg-welcome: var(--eg-hero);
  --eg-shadow: 0 10px 28px rgba(120, 62, 22, .08);
  --eg-card-shadow: 0 4px 14px rgba(120, 62, 22, .07);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --eg-blue: #2fc4b6;
  --eg-blue-deep: #5fd8cc;
  --eg-teal: #3fd3c5;
  --eg-icon: #3fd3c5;
  --eg-link: #4fd8ca;
  --eg-link-hover: #8be9df;
  --eg-link-title: #fdf4eb;
  --eg-ink: #fdf4eb;
  --eg-muted: #cfb7a5;
  --eg-line: #43352e;
  --eg-paper: #2c2421;
  --eg-canvas: #211b19;
  --eg-panel: #282120;
  --eg-soft: #45342a;
  --eg-soft-hover: #573f31;
  --eg-mint: #1e3f3a;
  --eg-tag: #3a2c25;
  --eg-tag-ink: #fde9c6;
  --eg-orange: #fd851a;
  --eg-orange-top: #fd9a38;
  --eg-heart: #ff7a2a;
  --eg-hero: #22302c;
  --eg-hero-dot: #5f9a33;
  --eg-welcome: var(--eg-hero);
  --eg-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  --eg-card-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--eg-canvas); color: var(--eg-ink); font-size: 18px; line-height: 1.6; }
body, button, input, select { font-family: Nunito, "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
button, input { font: inherit; }
a { color: var(--eg-link); }
a:hover { color: var(--eg-link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--eg-teal);
  outline-offset: 3px;
}
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 9px 16px; border-radius: 12px; background: var(--eg-paper); }
.skip-link:focus { top: 12px; }

#navbar.site-header { position: sticky; top: 0; z-index: 40; padding: 10px clamp(8px, 1.6vw, 24px) 6px; background: var(--eg-canvas); }
.site-header__inner { max-width: 1480px; min-height: 68px; margin: auto; padding: 8px clamp(12px, 1.6vw, 22px); display: flex; align-items: center; gap: clamp(8px, 1.1vw, 18px); border-radius: 999px; background: var(--eg-paper); box-shadow: var(--eg-shadow); }
.site-brand { display: inline-flex; align-items: center; flex: none; border-radius: 12px; padding: 2px 4px; }
.site-brand img { display: block; width: auto; height: 44px; max-width: none; }
.site-logo--dark { display: none !important; }
:root[data-theme="dark"] .site-logo--light { display: none !important; }
:root[data-theme="dark"] .site-logo--dark { display: block !important; }
:root[lang="zh-Hans"] .site-brand img { width: 110px; height: auto; }
.site-menu-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--eg-canvas); color: var(--eg-ink); cursor: pointer; }
.site-menu-button:hover { background: var(--eg-soft); }
.site-header button:focus-visible, .site-header a:focus-visible { outline-color: var(--eg-teal); }
.site-menu-button__bars, .site-menu-button__bars::before, .site-menu-button__bars::after { display: block; width: 19px; height: 2.5px; border-radius: 2px; background: currentColor; content: ""; }
.site-menu-button__bars { position: relative; }
.site-menu-button__bars::before { position: absolute; top: -6px; }
.site-menu-button__bars::after { position: absolute; top: 6px; }
.site-header__links { display: flex; align-items: center; gap: 2px; min-width: 0; margin-left: auto; padding-left: clamp(8px, 1.2vw, 20px); border-left: 2px solid var(--eg-line); overflow: hidden; white-space: nowrap; }
.site-header__links a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 9px; border-radius: 999px; color: var(--eg-ink); font-size: 18px; font-weight: 800; text-decoration: none; }
.site-header__links a:hover, .site-header__links a:focus-visible { background: var(--eg-canvas); color: var(--eg-ink); }
.site-header__links a[aria-current="page"] { background: var(--eg-mint); color: var(--eg-blue); }
.site-search { display: flex; align-items: center; width: clamp(150px, 14vw, 260px); height: 44px; padding: 3px 4px 3px 18px; border: 2px solid var(--eg-line); border-radius: 999px; background: var(--eg-canvas); }
.site-search:focus-within { border-color: var(--eg-teal); }
.site-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--eg-ink); font-size: 16px; }
.site-search input:focus-visible { outline: none; }
.site-search input::placeholder { color: var(--eg-muted); }
.site-search button { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--eg-teal); cursor: pointer; }
.site-search button:hover { background: var(--eg-mint); }
.site-search button svg { width: 22px; height: 22px; }
.site-theme-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--eg-canvas); color: var(--eg-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.site-theme-toggle:hover { background: var(--eg-soft); }
.site-fav-link { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--eg-soft); color: var(--eg-heart); text-decoration: none; }
.site-fav-link svg { width: 24px; height: 24px; }
.site-fav-link:hover, .site-fav-link:focus-visible { background: var(--eg-soft-hover); color: var(--eg-heart); }
.site-random-link { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--eg-canvas); color: var(--eg-teal); text-decoration: none; }
.site-random-link:hover, .site-random-link:focus-visible { background: var(--eg-mint); color: var(--eg-blue); }
.site-random-link__icon { width: 22px; height: 22px; }
/* 深色模式切換：桌面版在右上角，手機版收進 menu */
.site-menu-theme-item { display: none; }
#main-menu .site-menu-theme { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 7px 11px; border: 0; border-radius: 10px; background: var(--eg-soft); color: var(--eg-ink); font: inherit; font-size: 17px; line-height: 1.35; text-align: left; cursor: pointer; }
#main-menu .site-menu-theme span { font-size: inherit; }
/* gamebar 右側圖示按鈕（♥、全螢幕）：同尺寸、垂直置中 */
/* gamebar 用接近黑的 #222，和遊戲的黑底區分開 */
.site-gamebar.bg-black { background: #222; }
.site-gamebar-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.site-gamebar-btn:hover, .site-gamebar-btn:focus-visible { background: rgba(255,255,255,.14); }
.site-gamebar-btn svg { display: block; width: 24px; height: 24px; transition: fill .15s, stroke .15s, transform .15s; }
.site-gamebar-btn:hover svg { transform: scale(1.1); }
.site-fav-btn svg { fill: none; }
/* 遊戲頁播放區：手機版先顯示封面（圖片 + 點我玩），點了才全螢幕載入遊戲 */
.site-player { position: relative; }
.site-play-cover { display: none; }
#gameFrameWrap.is-playing { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; background: #000; }
#gameFrameWrap.is-playing #gameFrame { height: 100% !important; }
/* 2026-12-04 遊戲載入畫面：iframe 載入前蓋在上面，打品牌、教人用 easygame 搜尋回來 */
.site-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: radial-gradient(circle at 50% 40%, #4a2a18 0%, #120a06 75%); color: #fff; text-align: center; transition: opacity .4s; }
.site-loading.is-done { opacity: 0; pointer-events: none; }
.site-loading__brand { display: flex; align-items: center; gap: 12px; font-size: clamp(30px, 6vw, 52px); font-weight: 900; letter-spacing: .02em; background: linear-gradient(135deg, #fde9c6, #fd9a38); -webkit-background-clip: text; background-clip: text; color: transparent; animation: site-loading-breathe 2s ease-in-out infinite; }
.site-loading__brand img { width: clamp(36px, 6vw, 56px); height: auto; }
.site-loading__bar { width: min(260px, 70%); height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.site-loading__bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #05b9ab, #fd9a38); animation: site-loading-slide 1.2s ease-in-out infinite; }
.site-loading__text { margin: 0; font-size: 15px; opacity: .85; }
@keyframes site-loading-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes site-loading-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (max-width: 767px) {
  #gameFrameWrap.site-player:not(.is-playing) { height: 62vw; min-height: 240px; max-height: 64vh; }
  .site-player:not(.is-playing) .site-play-cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border-radius: 8px 8px 0 0; background: #000; cursor: pointer; }
}
.site-play-cover__bg { position: absolute; inset: -24px; background-position: center; background-size: cover; filter: blur(18px) brightness(.55); transform: scale(1.1); }
.site-play-cover__thumb { position: relative; width: 132px; height: auto; aspect-ratio: 168 / 128; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.site-play-cover__title { position: relative; max-width: 90%; color: #fff; font-size: 18px; font-weight: 800; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-play-cover__btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 30px; border: 0; border-radius: 23px; background: linear-gradient(180deg, #fd9a38, #fd851a); color: #51210e; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); animation: site-play-pulse 1.6s ease-in-out infinite; }
@keyframes site-play-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* 2026-11-20 外連遊戲封面卡：桌機手機都顯示，整張是連結，另開新分頁玩 */
/* 縮小、置中，讓第一屏就看得到下方相關遊戲（增加站內點擊） */
#gameFrameWrap.site-player--ext { height: 320px !important; max-width: 820px; }
#gameFrameWrap.site-player--ext + .site-gamebar { max-width: 820px; }
.site-play-cover.site-play-cover--ext { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; border-radius: 8px 8px 0 0; background: #000; color: #fff; text-decoration: none; cursor: pointer; }
.site-play-cover--ext .site-play-cover__thumb { width: 128px; }
.site-play-cover--ext .site-play-cover__title { font-size: 22px; }
.site-play-cover--ext .site-play-cover__btn { height: 56px; padding: 0 28px 0 10px; border-radius: 28px; gap: 10px; }
.site-play-cover__arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 20px; line-height: 1; }
.site-play-cover__copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.site-play-cover__copy small { font-size: 12px; font-weight: 500; opacity: .85; }
.site-play-cover__plays { position: relative; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.site-play-cover__plays b { font-weight: 800; }
.site-play-cover--ext:hover .site-play-cover__btn, .site-play-cover--ext:focus-visible .site-play-cover__btn { animation: none; transform: scale(1.06); }
/* swf 遊戲：外框與工具列寬度同 swf 寬，小於 800 用 800 */
.site-swf-w > #gameFrameWrap, .site-swf-w > .site-gamebar { max-width: max(var(--gw), 800px); }
/* 兩側廣告貼著遊戲區，間距 20px；swf 遊戲的中欄縮到外框寬，廣告才會貼過來 */
.site-game-row > :first-child:not(.site-game-col) { margin-right: 20px; }
.site-game-row > .site-game-col ~ * { margin-left: 20px; }
.site-game-col.site-swf-w { flex: 0 1 max(var(--gw), 800px); }
/* 2026-12-05 桌機遊戲列用滿整個畫面寬（不受 site-shell 1480 限制），遊戲框 16:9：
   取「畫面寬扣兩側廣告」與「畫面高扣頁首 92 + 工具列 48 + 留白」能放下的最大尺寸。
   swf 有設寬、外連封面、全螢幕、手機不套用 */
@media (min-width: 768px) {
  .site-game-row { margin-inline: calc(50% - 50vw + 16px); }
  .site-game-row > .site-game-col:not(.site-swf-w) { flex: 0 1 calc((100vh - 152px) * 16 / 9); }
  .site-game-col:not(.site-swf-w) > #gameFrameWrap:not(.site-player--ext):not(.is-playing) { height: auto; aspect-ratio: 16 / 9; }
}
/* 遊戲區（相關遊戲）和下方介紹內容保持距離 */
.most-related-games { margin-bottom: 40px; }
@media (max-width: 767px) {
  #gameFrameWrap.site-player--ext { height: 260px !important; }
  .site-play-cover--ext .site-play-cover__thumb { width: 96px; }
  .site-play-cover--ext .site-play-cover__title { font-size: 18px; }
}
/* 遊戲列：手機版標題放不下時，右側按鈕（♥、全螢幕）換到第二排靠右 */
@media (max-width: 767px) {
  div.site-gamebar { height: auto; min-height: 48px; flex-wrap: wrap; }
  div.site-gamebar__title { display: flex; align-items: center; flex: 1 0 auto; max-width: 100%; padding: 6px 12px 6px 0; }
  div.site-gamebar__title img { flex: none; }
  div.site-gamebar__btns { margin-left: auto; }
}
.site-fav-btn.is-active svg { fill: #ff4d6d; stroke: #ff4d6d; }
.site-fav-toast { position: fixed; left: 50%; bottom: 32px; z-index: 10000; transform: translate(-50%, 12px); padding: 10px 18px; border-radius: 999px; background: rgba(20,37,45,.92); color: #fff; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.site-fav-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
/* 2026-11-20 gamebar 好玩／不好玩、分享（views/rating-views.lisp、views/share-views.lisp） */
.site-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-rating { display: inline-flex; align-items: center; gap: 2px; }
.site-rate-btn, .site-share-btn { color: #fff; }
.site-rate-btn { grid-auto-flow: column; gap: 4px; width: auto; min-width: 40px; padding: 0 8px; }
.site-rate-btn svg { width: 22px; height: 22px; }
.site-rate-n { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.site-rate-n:empty { display: none; }
.site-rate-btn[data-vote="up"].is-active { color: #4ade80; }
.site-rate-btn[data-vote="up"].is-active svg { fill: rgba(74,222,128,.25); }
.site-rate-btn[data-vote="down"].is-active { color: #fb7185; }
.site-rate-btn[data-vote="down"].is-active svg { fill: rgba(251,113,133,.25); }
.site-rate-btn[data-vote="up"].is-active svg { animation: site-rate-pop .3s ease-out; }

/* 分享視窗 */
.site-share-dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--eg-line); border-radius: 18px; background: var(--eg-paper); color: var(--eg-ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.site-share-dlg::backdrop { background: rgba(10,25,32,.45); }
.site-share-dlg[open] { animation: site-share-in .16s ease-out; }
.site-share-dlg__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.site-share-dlg__title { flex: 1; margin: 0; font-size: 18px; font-weight: 800; }
.site-share-dlg__close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--eg-line); border-radius: 50%; background: transparent; color: var(--eg-muted); font-size: 15px; cursor: pointer; }
.site-share-dlg__close:hover { color: var(--eg-ink); border-color: var(--eg-blue); }
.site-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; margin: 0; padding: 8px 12px; list-style: none; }
.site-share-plat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; color: var(--eg-ink); font-size: 13px; text-align: center; text-decoration: none; }
.site-share-plat:hover, .site-share-plat:focus-visible { background: var(--eg-soft); color: var(--eg-ink); }
.site-share-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: transform .15s; }
.site-share-plat:hover .site-share-ico { transform: scale(1.08); }
.site-share-ico svg { width: 24px; height: 24px; fill: #fff; }
:root[data-theme="dark"] .site-share-plat:is([data-share-key="x"], [data-share-key="threads"]) .site-share-ico { box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.site-share-name { line-height: 1.2; overflow-wrap: anywhere; }
.site-share-url { display: flex; gap: 8px; padding: 8px 18px 18px; }
.site-share-url input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--eg-line); border-radius: 10px; background: var(--eg-canvas); color: var(--eg-ink); font-size: 14px; }
.site-share-url input:focus { outline: 2px solid var(--eg-blue); outline-offset: 1px; border-color: transparent; }
.site-share-copy { flex: none; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--eg-blue); color: #fff; font-weight: 800; cursor: pointer; }
.site-share-copy:hover { background: var(--eg-blue-deep); }
:root[data-theme="dark"] .site-share-copy { color: #0d1a20; }
@media (max-width: 560px) {
  .site-share-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .site-share-dlg[open] { animation: site-share-rise .2s ease-out; }
  .site-share-url { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* 回報遊戲問題（views/report-views.lisp），外框沿用分享視窗 */
.site-report-btn { color: #fff; }
.site-report-desc { margin: 0; padding: 0 18px 6px; color: var(--eg-muted); font-size: 14px; line-height: 1.5; }
.site-report-reasons { display: grid; gap: 6px; margin: 0; padding: 6px 18px; border: 0; }
.site-report-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--eg-line); border-radius: 10px; font-size: 15px; cursor: pointer; }
.site-report-opt:hover { background: var(--eg-soft); }
.site-report-opt:has(input:checked) { border-color: var(--eg-blue); background: var(--eg-soft); font-weight: 700; }
.site-report-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--eg-blue); }
.site-report-msg { display: block; width: calc(100% - 36px); margin: 6px 18px 0; padding: 10px 12px; border: 1px solid var(--eg-line); border-radius: 10px; background: var(--eg-canvas); color: var(--eg-ink); font: inherit; font-size: 14px; resize: vertical; }
.site-report-msg:focus { outline: 2px solid var(--eg-blue); outline-offset: 1px; border-color: transparent; }
.site-report-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 18px; }
.site-report-cancel { height: 42px; padding: 0 16px; border: 1px solid var(--eg-line); border-radius: 10px; background: transparent; color: var(--eg-ink); font-weight: 700; cursor: pointer; }
.site-report-cancel:hover { background: var(--eg-soft); }
.site-report-actions .site-share-copy:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
  .site-report-actions { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* 還沒評分時的底部提醒 */
.site-rating-reminder { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9990; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: min(560px, calc(100vw - 32px)); padding: 12px 48px 12px 16px; border: 1px solid var(--eg-line); border-radius: 16px; background: var(--eg-paper); color: var(--eg-ink); box-shadow: 0 16px 40px rgba(18,50,60,.22); opacity: 0; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s; }
.site-rating-reminder[hidden] { display: none; }
.site-rating-reminder.is-show { opacity: 1; transform: translate(-50%, 0); }
.site-rating-reminder__title { flex: 1 1 200px; margin: 0; font-size: 16px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.site-rating-reminder__actions { display: flex; gap: 8px; }
.site-rating-reminder__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--eg-line); border-radius: 999px; background: var(--eg-soft); color: var(--eg-ink); font-size: 15px; font-weight: 800; cursor: pointer; }
.site-rating-reminder__btn svg { width: 20px; height: 20px; }
.site-rating-reminder__btn:hover { background: var(--eg-soft-hover); }
.site-rating-reminder__btn[data-vote="up"].is-active { border-color: #16a34a; background: #16a34a; color: #fff; }
.site-rating-reminder__btn[data-vote="down"].is-active { border-color: #e11d48; background: #e11d48; color: #fff; }
.site-rating-reminder__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--eg-muted); font-size: 14px; cursor: pointer; }
.site-rating-reminder__close:hover { background: var(--eg-soft); color: var(--eg-ink); }


@keyframes site-share-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes site-share-rise { from { transform: translateY(24px); } to { transform: none; } }
@keyframes site-rate-pop { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  .site-share-dlg[open], .site-rate-btn svg { animation: none !important; }
  .site-rating-reminder, .site-share-ico { transition: none; }
}
/* header 會員連結：未登入顯示「登入」，登入後由 JS 換成暱稱 */
.site-member-link { display: inline-flex; flex: none; align-items: center; max-width: 160px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--eg-mint); color: var(--eg-blue); font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-member-link:hover, .site-member-link:focus-visible { background: var(--eg-blue); color: var(--eg-paper); }

/* 會員頁面（註冊、登入、忘記密碼、會員中心） */
.site-auth { max-width: 440px; margin: 8px auto 48px; padding: 28px 28px 24px; border: 1px solid var(--eg-line); border-radius: 18px; background: var(--eg-paper); box-shadow: var(--eg-shadow); color: var(--eg-ink); }
.site-auth__title { margin: 0 0 14px; font-size: 26px; font-weight: 800; }
.site-auth__lead { margin: 0 0 18px; color: var(--eg-muted); }
.site-auth__form { display: grid; gap: 16px; margin-bottom: 18px; }
.site-auth__field { display: grid; gap: 6px; }
.site-auth__field > span { font-weight: 700; }
.site-auth__field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--eg-line); border-radius: 12px; background: var(--eg-canvas); color: var(--eg-ink); font-size: 16px; }
.site-auth__field input:focus { outline: 2px solid var(--eg-blue); outline-offset: 1px; border-color: transparent; }
.site-auth__field small { color: var(--eg-muted); font-size: 13px; }
.site-auth__check { display: flex; align-items: flex-start; gap: 10px; color: var(--eg-ink); cursor: pointer; }
.site-auth__check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--eg-blue); }
.site-auth__submit { height: 48px; border: 0; border-radius: 999px; background: var(--eg-blue); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.site-auth__submit:hover { background: var(--eg-blue-deep); }
.site-auth__secondary { height: 40px; padding: 0 16px; border: 1px solid var(--eg-line); border-radius: 10px; background: var(--eg-soft); color: var(--eg-ink); font-weight: 700; cursor: pointer; }
.site-auth__secondary:hover { background: var(--eg-soft-hover); }
.site-auth__inline { margin-bottom: 18px; }
.site-auth__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; color: var(--eg-muted); }
.site-auth__links a { color: var(--eg-link); font-weight: 700; }
.site-auth__error { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #a32020; }
.site-auth__error ul { margin: 0; padding-left: 18px; list-style: disc; }
.site-auth__notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #e6f6ec; color: #17633a; }
:root[data-theme="dark"] .site-auth__error { background: #4a2326; color: #ffc9c9; }
:root[data-theme="dark"] .site-auth__notice { background: #1f4330; color: #bff0d2; }
.site-auth__info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; }
.site-auth__info dt { color: var(--eg-muted); }
.site-auth__info dd { margin: 0; font-weight: 700; word-break: break-all; }
.site-auth__badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-size: 12px; font-weight: 700; }
.site-auth__badge.is-ok { background: #e6f6ec; color: #17633a; }
.site-auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 460px) {
  .site-auth { padding: 22px 16px 18px; border-radius: 14px; }
}
.site-theme-toggle__sun, :root[data-theme="dark"] .site-theme-toggle__moon { display: none; }
:root[data-theme="dark"] .site-theme-toggle__sun { display: inline; font-size: 22px; }

#main-menu { position: fixed; z-index: 52; inset: 0 auto 0 0; left: 0 !important; width: min(360px, 88vw) !important; height: 100dvh !important; padding: 18px 20px 28px !important; overflow-y: auto; border-right: 1px solid var(--eg-line); background: var(--eg-paper) !important; box-shadow: 12px 0 30px rgba(16, 54, 80, .15); transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
#main-menu.is-open { transform: translateX(0); visibility: visible; }
/* Keep the drawer usable while an older cached app.js is still in a browser. */
#main-menu.left-0 { transform: translateX(0); visibility: visible; }
.site-menu-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(60, 28, 10, .38); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.site-menu-backdrop.is-open { opacity: 1; visibility: visible; }
body:has(#main-menu.left-0) .site-menu-backdrop { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.site-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 16px; border-bottom: 1px solid var(--eg-line); }
#main-menu .menu-title { color: var(--eg-ink); font-weight: 900; }
#close-menu-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--eg-soft); color: var(--eg-blue-deep); font-size: 27px; cursor: pointer; }
#main-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 16px; }
#main-menu li { min-width: 0; }
#main-menu li a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 7px 14px; border-radius: 999px; background: var(--eg-canvas); color: var(--eg-ink); font-size: 17px; line-height: 1.35; text-decoration: none; }
#main-menu li a:hover { background: var(--eg-soft); color: var(--eg-ink); }
/* Old rendered HTML can remain in a running Lisp process or Redis cache. */
#main-menu a[href*="gggames.cc"], .site-footer a[href*="gggames.cc"] { display: none !important; }

.site-shell { width: min(100% - 32px, 1480px); margin: 0 auto; padding: 22px 0 48px; }
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 30px; align-items: start; }
.site-main { min-width: 0; }
.site-sidebar { display: grid; gap: 20px; min-width: 0; }
.site-side-panel { padding: 14px 14px 18px; border-radius: 24px; background: var(--eg-panel); box-shadow: var(--eg-shadow); }
.site-side-panel__head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 9px 16px; border-radius: 999px; background: var(--eg-soft); color: var(--eg-ink); font-size: 21px; font-weight: 900; line-height: 1.3; }
.site-side-panel__head svg { flex: none; color: var(--eg-heart); }
.site-side-panel--main .site-side-panel__head svg { color: var(--eg-icon); }
.site-side-panel__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.site-sidebar a.link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 15px; border-radius: 999px; background: var(--eg-tag); color: var(--eg-tag-ink); font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .15s, transform .15s; }
.site-sidebar a.link--ico { gap: 6px; padding-left: 11px; }
.site-cat-ico { flex: none; width: 22px; height: 22px; color: var(--eg-icon); }
.site-sidebar a.link:hover, .site-sidebar a.link:focus-visible { background: var(--eg-soft-hover); color: var(--eg-ink); transform: translateY(-1px); }
.site-breadcrumbs { margin: 0 0 18px; color: var(--eg-muted); font-size: 16px; }
.site-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.site-breadcrumbs a { text-decoration: none; }

.site-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 280px) auto; align-items: center; gap: 12px clamp(12px, 2vw, 28px); overflow: hidden; min-height: 230px; margin-bottom: 26px; padding: 22px clamp(20px, 3vw, 44px) 0; border-radius: 28px; background:
  radial-gradient(ellipse 60% 55% at 12% 118%, rgba(146, 228, 71, .32) 0, transparent 70%),
  radial-gradient(ellipse 45% 50% at 78% 120%, rgba(146, 228, 71, .26) 0, transparent 70%),
  var(--eg-hero); box-shadow: var(--eg-shadow); }
.site-hero::before { position: absolute; top: 22px; left: 14px; width: 34px; height: 46px; background-image: radial-gradient(circle, rgba(253, 133, 26, .45) 2px, transparent 2.5px); background-size: 11px 11px; content: ""; pointer-events: none; }
.site-hero__text { position: relative; z-index: 1; align-self: center; padding-bottom: 22px; }
.site-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--eg-teal); font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; letter-spacing: .01em; }
.site-hero__eyebrow::before { width: 12px; height: 12px; border: 3px solid var(--eg-hero-dot); border-radius: 50%; content: ""; }
.site-hero .site-hero__title { margin: 6px 0 8px; color: var(--eg-ink); font-size: clamp(26px, 2.7vw, 42px); font-weight: 900; line-height: 1.2; letter-spacing: .02em; }
.site-hero__sub { margin: 0; color: var(--eg-ink); font-size: clamp(17px, 1.6vw, 22px); font-weight: 800; }
.site-hero__mascot { align-self: end; width: 100%; max-width: 300px; height: auto; justify-self: center; }
.site-hero__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 22px; }
.site-btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: linear-gradient(180deg, var(--eg-orange-top), var(--eg-orange)); color: #51210e; font-size: 20px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 18px rgba(253, 133, 26, .3); transition: transform .15s, box-shadow .15s; }
.site-btn-cta:hover, .site-btn-cta:focus-visible { color: #51210e; transform: translateY(-2px); box-shadow: 0 12px 22px rgba(253, 133, 26, .36); }
.site-btn-cta svg { flex: none; }
.site-btn-cta svg path[stroke], .site-btn-cta svg circle { fill: var(--eg-orange-top); stroke: var(--eg-orange-top); }
.site-hero__share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--eg-paper); color: var(--eg-ink); font-size: 19px; font-weight: 900; cursor: pointer; box-shadow: var(--eg-card-shadow); }
.site-hero__share svg { color: var(--eg-teal); }
.site-hero__share:hover { background: var(--eg-canvas); }

/* 區塊標題列：標題＋右側「查看更多」 */
.site-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 16px; }
.site-sec-head .block-title { margin: 0; }
.site-more { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--eg-soft); color: var(--eg-ink); font-size: 17px; font-weight: 800; text-decoration: none; }
.site-more:hover, .site-more:focus-visible { background: var(--eg-soft-hover); color: var(--eg-ink); }
.block-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; padding: 0; border: 0; color: var(--eg-ink); font-size: clamp(21px, 2vw, 26px); font-weight: 900; line-height: 1.35; }
.block-title::before { display: block; width: 8px; height: 26px; flex: none; border-radius: 8px; background: var(--eg-teal); content: ""; }
.block-title--hot::before, .block-title--new::before { width: 34px; height: 34px; border-radius: 0; background: var(--eg-heart); -webkit-mask: var(--eg-ico) center / contain no-repeat; mask: var(--eg-ico) center / contain no-repeat; }
.block-title--hot { --eg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 3.2-1.2 5-2.6 6.6C8 10.2 6.5 12 6.5 14.8A5.5 5.5 0 0 0 12 22a5.5 5.5 0 0 0 5.5-5.6c0-2-1-3.6-2-4.7.1 1.5-.5 2.6-1.6 3 .5-3.3-.4-8.3-1.9-12.7Z'/%3E%3C/svg%3E"); }
.block-title--new { --eg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.3l-5.8 3.1 1.1-6.5-4.7-4.6 6.5-.9Z'/%3E%3C/svg%3E"); }
.block-title--new::before { background: var(--eg-orange-top); }
.block-title a { color: var(--eg-link-title); text-decoration: none; }
.block-title a:hover { color: var(--eg-link); }
.site-game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; gap: 16px 14px !important; justify-content: stretch !important; justify-items: stretch !important; place-content: normal !important; }
.site-game-card { min-width: 0; padding: 9px; border: 0; border-radius: 22px; background: var(--eg-paper); box-shadow: var(--eg-card-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.site-game-card:hover, .site-game-card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(120, 62, 22, .14); }
.site-game-card a { display: block; color: var(--eg-link-title); text-decoration: none; }
.site-game-card a > div { width: 100% !important; height: auto !important; aspect-ratio: 1; }
.site-game-card img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.site-game-card > p { display: flex; align-items: center; justify-content: center; width: 100% !important; min-height: 3.5em; margin: 0; padding: 9px 4px 6px; color: var(--eg-link-title); font-size: 16px; font-weight: 800; line-height: 1.4; text-align: center; white-space: normal; }
.site-game-card > p a { color: inherit; }
.site-game-card a > p { color: var(--eg-ink); font-size: 16px; font-weight: 800; }
.ad-rwd-h.bg-gray-300, .ad-rwd-hb.bg-gray-300 { background: transparent !important; }

article { border: 0; border-radius: 24px; background: var(--eg-paper); box-shadow: var(--eg-shadow); }
.site-article { padding: clamp(16px, 2.2vw, 28px); }
.site-article .game-pic { max-width: 100% !important; height: auto; }
.cbox { overflow: hidden; border: 0; border-radius: 24px; background: var(--eg-paper); box-shadow: var(--eg-shadow); }
.cbox-head { padding: 12px 20px; border-bottom: 0; border-radius: 0; background: var(--eg-soft); color: var(--eg-ink); font-weight: 900; }
.cbox-body, .cbox-body-games { background: var(--eg-paper); }
.cbox-body a, .md-text a, .tag, #breadcrumbs a, .site-breadcrumbs a { color: var(--eg-link); }
.md-text h2, .site-shell .block-title-h3 { color: var(--eg-link-title); }
#breadcrumbs { margin-bottom: 18px; border: 1px solid var(--eg-line); background: var(--eg-paper); }
.pagination-ex .page-btn, .pagination .page-btn { border-radius: 999px; background: var(--eg-soft); color: var(--eg-ink); }
.pagination-ex .current-page, .pagination .pagination-currentpage { border-color: var(--eg-blue); background: var(--eg-blue); color: var(--eg-paper); }

.site-footer { margin-top: 20px; border-top: 0; border-radius: 32px 32px 0 0; background: var(--eg-paper); box-shadow: 0 -6px 24px rgba(120, 62, 22, .05); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; width: min(100% - 32px, 1480px); margin: auto; padding: 27px 0; }
.site-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.site-footer__brand a { color: var(--eg-ink); font-weight: 900; text-decoration: none; }
.site-footer__brand img { display: block; width: auto; height: 46px; }
:root[lang="zh-Hans"] .site-footer__brand img { width: 140px; height: auto; }
.site-footer__logo--dark { display: none !important; }
:root[data-theme="dark"] .site-footer__logo--light { display: none !important; }
:root[data-theme="dark"] .site-footer__logo--dark { display: block !important; }
.site-footer__brand span, .site-footer small { color: var(--eg-muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { color: var(--eg-muted); font-size: 15px; text-decoration: none; }
.site-footer nav a:hover { color: var(--eg-link); }
.site-footer__extra { padding: 0 16px 20px; text-align: center; }

.site-shell--game { max-width: 1600px; padding-top: 8px; }
.site-shell--game .site-layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 18px; }
.site-shell--game .site-sidebar { margin-top: 18px; }

/* The legacy game/article markup includes utility colors outside the site components. */
:root[data-theme="dark"] .site-main :is(.bg-white, .bg-gray-50, .bg-gray-100),
:root[data-theme="dark"] .site-shell :is(.bg-white, .bg-gray-50, .bg-gray-100) { background-color: var(--eg-paper) !important; }
:root[data-theme="dark"] .site-shell :is(.bg-gray-200, .bg-gray-300) { background-color: var(--eg-soft) !important; }
:root[data-theme="dark"] .site-shell :is(.text-gray-500, .text-gray-600, .text-gray-700, .text-gray-800, .text-gray-900, .text-neutral-darker, .text-black) { color: var(--eg-ink) !important; }
:root[data-theme="dark"] .site-shell :is(.border-gray-200, .border-gray-300) { border-color: var(--eg-line) !important; }
:root[data-theme="dark"] .site-shell :is(input, textarea, select) { color: var(--eg-ink); background-color: var(--eg-paper); border-color: var(--eg-line); }
:root[data-theme="dark"] .site-footer__extra select { color: var(--eg-ink); background: var(--eg-paper); border: 1px solid var(--eg-line); }
:root[data-theme="dark"] .site-game-card { box-shadow: 0 4px 13px rgba(0, 0, 0, .16); }
:root[data-theme="dark"] .site-menu-backdrop { background: rgba(0, 0, 0, .65); }

@media (max-width: 1199px) {
  .site-layout, .site-shell--game .site-layout { grid-template-columns: minmax(0, 1fr); }
  /* 手機優先索引：側欄的內部連結改排在主內容下方，不要隱藏 */
  .site-sidebar, .site-shell--game .site-sidebar { margin-top: 24px; }
  .site-header__links { flex: 0 1 auto; }
  .site-header__links a { padding-inline: 9px; font-size: 18px; }
}
@media (max-width: 1000px) {
  .site-header__links { display: none; }
  .site-fav-link { display: none; }
  .site-member-link { display: none; }
  .site-theme-toggle { display: none; }
  .site-menu-theme-item { display: list-item; }
  .site-search { margin-left: auto; }
}
@media (max-width: 900px) {
  .site-hero { grid-template-columns: minmax(0, 1fr) minmax(140px, 34%); padding-top: 18px; }
  .site-hero__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; padding: 0 0 20px; }
  .site-hero__mascot { grid-row: 1; grid-column: 2; }
}
@media (max-width: 760px) {
  .site-header { padding: 8px 8px 4px; }
  .site-header__inner { min-height: 60px; border-radius: 22px; }
  .site-brand img { height: 38px; }
  :root[lang="zh-Hans"] .site-brand img { width: 102px; }
  .site-header__links { display: none; }
  .site-search { margin-left: auto; width: min(40vw, 230px); }
  .site-shell { width: min(100% - 24px, 1480px); padding-top: 16px; }
  .site-hero { min-height: 0; border-radius: 22px; padding-inline: 18px; }
  .site-hero__text { padding-bottom: 6px; }
  .site-hero::before { display: none; }
  .site-btn-cta { min-height: 50px; padding: 0 20px; font-size: 18px; }
  .site-hero__share { min-height: 48px; font-size: 17px; }
  .site-sec-head { margin-top: 24px; }
  .site-more { min-height: 38px; padding: 0 14px; font-size: 15px; }
  .site-game-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)) !important; gap: 11px !important; }
}
@media (max-width: 460px) {
  .site-header__inner { gap: 7px; padding: 7px 9px; }
  .site-menu-button { width: 40px; height: 40px; }
  .site-brand { padding: 0; }
  .site-brand img { height: 28px; }
  .site-search { flex: 1 1 auto; width: auto; min-width: 0; }
  :root[lang="zh-Hans"] .site-brand img { width: 98px; }
  .site-search { width: min(33vw, 140px); padding-left: 8px; }
  .site-search input { font-size: 16px; }
  .site-theme-toggle { width: 40px; height: 40px; }
  .site-random-link { width: 40px; height: 40px; }
  .site-hero { grid-template-columns: minmax(0, 1fr) 38%; gap: 6px; padding-inline: 14px; }
  .site-hero .site-hero__title { font-size: 24px; }
  .site-hero__sub { font-size: 15px; }
  .site-hero__actions > * { flex: 1 1 auto; }
  .site-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 350px) {
  .site-header__inner { gap: 5px; }
  .site-brand img { height: 24px; }
  :root[lang="zh-Hans"] .site-brand img { width: 90px; }
  .site-search { width: 28vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #main-menu, .site-menu-backdrop, .site-game-card { transition: none; }
  .site-play-cover__btn { animation: none; }
}
/* 2026-11-20 遊戲頁 h1 旁的收藏鈕、h1 下方的統計列（人次遊玩、好玩比例、評分），和 gamebar 同步 */
.site-game-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-game-head > h1 { flex: 1 1 auto; min-width: 0; margin: 0; }
.site-head-fav { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 16px; border: 1px solid var(--eg-line); border-radius: 19px; background: var(--eg-paper); color: var(--eg-ink); font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.site-head-fav:hover, .site-head-fav:focus-visible { background: var(--eg-soft); }
.site-head-fav svg { width: 20px; height: 20px; }
.site-head-fav.is-active { color: #ff4d6d; border-color: #ff4d6d; }
.site-head-fav.is-active svg { fill: #ff4d6d; }
.site-game-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; color: var(--eg-muted); font-size: 15px; }
.site-game-stat { display: inline-flex; align-items: center; gap: 6px; }
.site-game-stat[hidden] { display: none; }
.site-game-stat b { color: var(--eg-ink); font-weight: 800; }
.site-stat-rate { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--eg-line); border-radius: 17px; background: var(--eg-paper); color: var(--eg-ink); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.site-stat-rate:hover, .site-stat-rate:focus-visible { background: var(--eg-soft); }
.site-stat-rate svg { width: 18px; height: 18px; }
.site-stat-rate[data-vote="up"].is-active { color: #16a34a; border-color: #16a34a; }
.site-stat-rate[data-vote="up"].is-active svg { fill: rgba(22,163,74,.2); }
.site-stat-rate[data-vote="down"].is-active { color: #e11d48; border-color: #e11d48; }
.site-stat-rate[data-vote="down"].is-active svg { fill: rgba(225,29,72,.18); }
@media (max-width: 767px) {
  .site-game-stats { gap: 8px 10px; font-size: 14px; }
  .site-stat-rate { padding: 0 10px; gap: 4px; }
}
