/* =============================================================
   GAME圈 — 前台設計系統
   乾淨（Apple）+ 卡片（Dcard）+ 可愛，Mobile First，亮 / 暗色系
   ============================================================= */

:root,
[data-bs-theme="light"] {
  --gq-bg: #f5f5f7;
  --gq-surface: #ffffff;
  --gq-surface-2: #f9f9fb;
  --gq-surface-3: #f0f0f4;
  --gq-border: rgba(15, 15, 30, 0.07);
  --gq-border-strong: rgba(15, 15, 30, 0.12);
  --gq-text: #1d1d1f;
  --gq-text-2: #3a3a3f;
  --gq-muted: #6e6e76;
  --gq-primary: #6d5df6;
  --gq-primary-rgb: 109, 93, 246;
  --gq-primary-hover: #5b4be6;
  --gq-primary-soft: rgba(109, 93, 246, 0.1);
  --gq-accent: #ff6b9a;
  --gq-accent-soft: rgba(255, 107, 154, 0.12);
  --gq-mint: #22c7a9;
  --gq-sun: #ffb020;
  --gq-danger: #ff4d5e;
  --gq-glass: rgba(255, 255, 255, 0.72);
  --gq-shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.04);
  --gq-shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 6px 24px rgba(20, 20, 40, 0.05);
  --gq-shadow-lg: 0 12px 40px rgba(20, 20, 40, 0.12);
  --gq-grad: linear-gradient(135deg, #7c6cff 0%, #b06cff 55%, #ff7ab0 100%);
  --gq-grad-soft: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(255, 122, 176, 0.12));

  --bs-body-bg: var(--gq-bg);
  --bs-body-color: var(--gq-text);
  --bs-secondary-color: var(--gq-muted);
  --bs-border-color: var(--gq-border);
  --bs-primary: #6d5df6;
  --bs-primary-rgb: 109, 93, 246;
  --bs-link-color: #6d5df6;
  --bs-link-color-rgb: 109, 93, 246;
  --bs-link-hover-color: #5b4be6;
  --bs-link-hover-color-rgb: 91, 75, 230;
  --bs-tertiary-bg: var(--gq-surface-2);
  --bs-secondary-bg: var(--gq-surface-3);
  --bs-emphasis-color: var(--gq-text);
}

[data-bs-theme="dark"] {
  --gq-bg: #0b0b10;
  --gq-surface: #15151c;
  --gq-surface-2: #1b1b24;
  --gq-surface-3: #23232e;
  --gq-border: rgba(255, 255, 255, 0.07);
  --gq-border-strong: rgba(255, 255, 255, 0.13);
  --gq-text: #f3f3f6;
  --gq-text-2: #d6d6de;
  --gq-muted: #9c9cab;
  --gq-primary: #8f82ff;
  --gq-primary-rgb: 143, 130, 255;
  --gq-primary-hover: #a197ff;
  --gq-primary-soft: rgba(143, 130, 255, 0.14);
  --gq-accent-soft: rgba(255, 107, 154, 0.16);
  --gq-glass: rgba(18, 18, 24, 0.72);
  --gq-shadow-sm: none;
  --gq-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --gq-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --gq-grad-soft: linear-gradient(135deg, rgba(143, 130, 255, 0.16), rgba(255, 122, 176, 0.12));

  --bs-body-bg: var(--gq-bg);
  --bs-body-color: var(--gq-text);
  --bs-secondary-color: var(--gq-muted);
  --bs-border-color: var(--gq-border);
  --bs-primary: #8f82ff;
  --bs-primary-rgb: 143, 130, 255;
  --bs-link-color: #a197ff;
  --bs-link-color-rgb: 161, 151, 255;
  --bs-link-hover-color: #bdb5ff;
  --bs-link-hover-color-rgb: 189, 181, 255;
  --bs-tertiary-bg: var(--gq-surface-2);
  --bs-secondary-bg: var(--gq-surface-3);
  --bs-emphasis-color: var(--gq-text);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--gq-bg);
  color: var(--gq-text);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  transition: background-color .2s ease;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
a { text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(var(--gq-primary-rgb), .22); }
img { max-width: 100%; }
.text-muted, .text-secondary { color: var(--gq-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-2 { font-size: .8125rem; }
.tiny { font-size: .75rem; }
.text-gradient { background: var(--gq-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; padding: .5rem 1.05rem; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: .32rem .8rem; font-size: .8125rem; }
.btn-lg { padding: .72rem 1.5rem; }
.btn-primary {
  --bs-btn-bg: var(--gq-primary); --bs-btn-border-color: var(--gq-primary);
  --bs-btn-hover-bg: var(--gq-primary-hover); --bs-btn-hover-border-color: var(--gq-primary-hover);
  --bs-btn-active-bg: var(--gq-primary-hover); --bs-btn-active-border-color: var(--gq-primary-hover);
  --bs-btn-disabled-bg: var(--gq-primary); --bs-btn-disabled-border-color: var(--gq-primary);
  box-shadow: 0 4px 14px rgba(var(--gq-primary-rgb), .28);
}
.btn-gradient { background: var(--gq-grad); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(176, 108, 255, .35); }
.btn-gradient:hover, .btn-gradient:focus { color: #fff; filter: brightness(1.05); }
.btn-soft { background: var(--gq-primary-soft); color: var(--gq-primary); border: 0; }
.btn-soft:hover, .btn-soft.active { background: var(--gq-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--gq-text-2); border: 0; }
.btn-ghost:hover { background: var(--gq-surface-3); color: var(--gq-text); }
.btn-light-2 { background: var(--gq-surface-3); color: var(--gq-text); border: 0; }
.btn-light-2:hover { background: var(--gq-border-strong); color: var(--gq-text); }
.btn-outline-primary { --bs-btn-color: var(--gq-primary); --bs-btn-border-color: var(--gq-primary); --bs-btn-hover-bg: var(--gq-primary); --bs-btn-hover-border-color: var(--gq-primary); --bs-btn-active-bg: var(--gq-primary); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-check:checked + .btn-soft { background: var(--gq-primary); color: #fff; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 14px; border-color: var(--gq-border-strong); background-color: var(--gq-surface);
  padding: .62rem .9rem; color: var(--gq-text);
}
.form-control:focus, .form-select:focus { border-color: var(--gq-primary); box-shadow: 0 0 0 4px rgba(var(--gq-primary-rgb), .15); background-color: var(--gq-surface); color: var(--gq-text); }
.form-control::placeholder { color: var(--gq-muted); opacity: .8; }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.form-check-input:checked { background-color: var(--gq-primary); border-color: var(--gq-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(var(--gq-primary-rgb), .15); border-color: var(--gq-primary); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }
.input-pill { border-radius: 999px !important; }

/* ---------- Header（玻璃效果） ---------- */
.gq-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--gq-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gq-border);
}
.gq-header .navbar { min-height: 60px; padding: .35rem 0; }
.gq-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--gq-text); letter-spacing: -.01em; }
.gq-brand:hover { color: var(--gq-text); }
.gq-brand-logo { width: 34px; height: 34px; flex: none; }
/* 後台上傳的 LOGO（只有圖片，依原圖比例）：手機上限制寬度避免擠掉右邊按鈕 */
.gq-brand-logo.is-custom { object-fit: contain; max-width: 46vw; }
.gq-footer .gq-brand-logo.is-custom { max-width: 70vw; }
.login-logo { max-width: 100%; object-fit: contain; }
.gq-brand-text span { background: var(--gq-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gq-nav .nav-link { color: var(--gq-text-2); font-weight: 600; font-size: .9375rem; padding: .45rem .8rem !important; border-radius: 999px; }
.gq-nav .nav-link:hover { color: var(--gq-text); background: var(--gq-surface-3); }
.gq-nav .nav-link.active { color: var(--gq-primary); background: var(--gq-primary-soft); }
.gq-search { position: relative; max-width: 360px; width: 100%; }
.gq-header .container-xl { flex-wrap: nowrap; }
.gq-brand, .gq-nav .nav-link, .gq-header .btn { white-space: nowrap; }
.gq-nav { flex-wrap: nowrap; flex-shrink: 0; }
.gq-header .gq-search { flex: 1 1 200px; min-width: 150px; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .gq-nav .nav-link { padding: .45rem .6rem !important; }
  .gq-header .gq-brand { margin-right: .5rem !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gq-nav .nav-item:nth-child(n+5) { display: none; }
}
.gq-search .form-control { border-radius: 999px; padding-left: 2.4rem; background: var(--gq-surface-3); border-color: transparent; height: 40px; }
.gq-search .form-control:focus { background: var(--gq-surface); border-color: var(--gq-primary); }
.gq-search > .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--gq-muted); }
.gq-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1050; background: var(--gq-surface); border: 1px solid var(--gq-border); border-radius: 18px; box-shadow: var(--gq-shadow-lg); padding: .4rem; display: none; max-height: 70vh; overflow: auto; }
.gq-suggest.show { display: block; }
.gq-suggest a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 12px; color: var(--gq-text); }
.gq-suggest a:hover, .gq-suggest a.active { background: var(--gq-surface-3); }
.gq-suggest .suggest-label { font-size: .75rem; color: var(--gq-muted); padding: .35rem .6rem .15rem; font-weight: 600; }
.header-icon-btn { position: relative; color: var(--gq-text-2); }
.notify-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gq-danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--gq-surface); }
.notify-dot:empty, .notify-dot[data-count="0"] { display: none; }
.header-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gq-surface); box-shadow: 0 0 0 1px var(--gq-border-strong); }

.dropdown-menu { border-radius: 16px; border: 1px solid var(--gq-border); box-shadow: var(--gq-shadow-lg); padding: .4rem; background: var(--gq-surface); --bs-dropdown-link-color: var(--gq-text); }
.dropdown-item { border-radius: 10px; padding: .5rem .75rem; font-size: .9rem; color: var(--gq-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gq-surface-3); color: var(--gq-text); }
.dropdown-item.active, .dropdown-item:active { background: var(--gq-primary); color: #fff; }
.dropdown-header { font-size: .75rem; }

/* ---------- 手機底部導覽 ---------- */
.gq-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: var(--gq-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--gq-border);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
}
.gq-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; color: var(--gq-muted); font-size: 11px; font-weight: 600; position: relative; }
.gq-bottom-nav a .bi { font-size: 1.35rem; line-height: 1; }
.gq-bottom-nav a.active { color: var(--gq-primary); }
.gq-bottom-nav .bn-post .bn-plus { width: 46px; height: 46px; margin-top: -18px; border-radius: 16px; background: var(--gq-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(176, 108, 255, .45); }
.gq-bottom-nav .bn-post .bn-plus .bi { font-size: 1.5rem; }
.gq-bottom-nav .notify-dot { top: 2px; right: calc(50% - 20px); }

/* ---------- Layout ---------- */
.gq-main { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.gq-sticky { position: sticky; top: 76px; }
.gq-side-nav .nav-link { display: flex; align-items: center; gap: .7rem; color: var(--gq-text-2); font-weight: 600; padding: .55rem .8rem; border-radius: 14px; font-size: .9375rem; }
.gq-side-nav .nav-link .emoji { width: 1.5rem; text-align: center; font-size: 1.1rem; }
.gq-side-nav .nav-link:hover { background: var(--gq-surface); color: var(--gq-text); }
.gq-side-nav .nav-link.active { background: var(--gq-surface); color: var(--gq-primary); box-shadow: var(--gq-shadow-sm); }
.side-title { font-size: .75rem; font-weight: 700; color: var(--gq-muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 .8rem; margin: 1.25rem 0 .5rem; }
.side-game { display: flex; align-items: center; gap: .6rem; padding: .4rem .8rem; border-radius: 12px; color: var(--gq-text-2); font-size: .875rem; font-weight: 500; }
.side-game:hover { background: var(--gq-surface); color: var(--gq-text); }

/* ---------- Card ---------- */
.gq-card { background: var(--gq-surface); border: 1px solid var(--gq-border); border-radius: 20px; box-shadow: var(--gq-shadow-sm); }
.gq-card-body { padding: 1.1rem 1.2rem; }
.gq-card-title { font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .45rem; }
.gq-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem .25rem; }
.gq-section-title { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin: 0; letter-spacing: -.01em; }
.gq-section-head { display: flex; align-items: center; justify-content: space-between; margin: 1.75rem 0 .85rem; }
.gq-section-head:first-child { margin-top: 0; }
.link-more { font-size: .875rem; font-weight: 600; color: var(--gq-muted); }
.link-more:hover { color: var(--gq-primary); }

/* ---------- Dcard 式文章卡片 ---------- */
.post-list { display: flex; flex-direction: column; gap: .75rem; }
.post-card { position: relative; padding: 1rem 1.1rem .7rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
@media (hover: hover) { .post-card:hover { box-shadow: var(--gq-shadow); border-color: var(--gq-border-strong); } }
.post-card .post-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.post-card .z-2, .post-card-foot, .post-card-head a, .post-card .team-box .btn, .post-card .game-chip { position: relative; z-index: 2; }
.post-card-head { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--gq-muted); margin-bottom: .45rem; min-width: 0; }
.post-card-head .author { color: var(--gq-text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--gq-surface-3); flex: none; }
.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 104px; height: 104px; border: 4px solid var(--gq-surface); box-shadow: var(--gq-shadow); }
.dot-sep::before { content: "·"; margin: 0 .15rem; opacity: .6; }
.post-body { display: flex; gap: 1rem; }
.post-body .post-text { flex: 1; min-width: 0; }
.post-title { font-size: 1.05rem; font-weight: 700; line-height: 1.45; margin: 0 0 .3rem; color: var(--gq-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card a.post-link { color: inherit; }
.post-excerpt { font-size: .9rem; color: var(--gq-muted); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.post-thumb { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; background: var(--gq-surface-3); }
@media (min-width: 576px) { .post-thumb { width: 104px; height: 104px; } }
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: .65rem; }
.post-gallery .g-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--gq-surface-3); }
.post-gallery img, .post-gallery video { width: 100%; height: 100%; object-fit: cover; }
.post-gallery .g-more { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.post-video-thumb { position: relative; margin-top: .65rem; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.post-video-thumb video { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.post-video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; text-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.post-card-foot { display: flex; align-items: center; gap: .15rem; margin-top: .55rem; margin-left: -.5rem; }
.act-btn { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; color: var(--gq-muted); font-size: .8125rem; font-weight: 600; padding: .35rem .6rem; border-radius: 999px; line-height: 1; transition: background-color .15s, color .15s, transform .12s; }
.act-btn .bi { font-size: 1rem; }
.act-btn:hover { background: var(--gq-surface-3); color: var(--gq-text); }
.act-btn.active[data-like-post], .act-btn.active[data-like-comment] { color: var(--gq-accent); }
.act-btn.active[data-bookmark] { color: var(--gq-sun); }
.act-btn.pop { animation: gq-pop .35s ease; }
@keyframes gq-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.type-badge { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 700; padding: .18rem .5rem; border-radius: 8px; vertical-align: 2px; margin-right: .3rem; white-space: nowrap; }
.type-discussion { background: rgba(109, 93, 246, .12); color: #6d5df6; }
.type-question { background: rgba(255, 176, 32, .16); color: #c07a00; }
.type-guide { background: rgba(34, 199, 169, .15); color: #0f9b82; }
.type-review { background: rgba(255, 138, 61, .15); color: #d9621a; }
.type-news { background: rgba(0, 153, 255, .13); color: #0a84d6; }
.type-lfg { background: rgba(255, 107, 154, .14); color: #e0457a; }
.type-art { background: rgba(176, 108, 255, .14); color: #9150e6; }
.type-video { background: rgba(255, 77, 94, .13); color: #e0303f; }
.type-poll { background: rgba(0, 184, 212, .14); color: #0095ad; }
[data-bs-theme="dark"] .type-question { color: #ffc75a; }
[data-bs-theme="dark"] .type-guide { color: #4fe0c4; }
[data-bs-theme="dark"] .type-review { color: #ffab73; }
[data-bs-theme="dark"] .type-news { color: #5cb8ff; }
[data-bs-theme="dark"] .type-lfg { color: #ff8fb3; }
[data-bs-theme="dark"] .type-art { color: #c79bff; }
[data-bs-theme="dark"] .type-video { color: #ff7a86; }
[data-bs-theme="dark"] .type-poll { color: #4fd8ec; }
[data-bs-theme="dark"] .type-discussion { color: #a197ff; }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; background: var(--gq-surface-3); color: var(--gq-text-2); font-size: .75rem; font-weight: 600; white-space: nowrap; border: 0; }
a.chip:hover { background: var(--gq-primary-soft); color: var(--gq-primary); }
.chip.active { background: var(--gq-primary); color: #fff; }
.chip-lg { padding: .45rem .95rem; font-size: .875rem; }
.game-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem .12rem .15rem; border-radius: 999px; background: var(--gq-surface-3); color: var(--gq-text-2); font-weight: 600; font-size: .75rem; max-width: 12rem; }
.game-chip img, .game-chip .gi { width: 18px; height: 18px; border-radius: 6px; object-fit: cover; }
.game-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-chip:hover { color: var(--gq-primary); }
.lv-badge { display: inline-block; font-size: .65rem; font-weight: 800; padding: .08rem .38rem; border-radius: 6px; background: var(--gq-grad-soft); color: var(--gq-primary); letter-spacing: .02em; }
.role-badge { font-size: .65rem; font-weight: 700; padding: .08rem .38rem; border-radius: 6px; background: rgba(34, 199, 169, .15); color: #0f9b82; }
.solved-badge { background: rgba(34, 199, 169, .15); color: #0f9b82; font-size: .72rem; font-weight: 700; padding: .18rem .5rem; border-radius: 8px; }
.adult-badge { background: rgba(255, 77, 94, .14); color: var(--gq-danger); font-size: .7rem; font-weight: 800; padding: .15rem .45rem; border-radius: 7px; }
.pin-badge { color: var(--gq-accent); font-size: .75rem; font-weight: 700; }

/* 18+ 模糊 */
.adult-blur { position: relative; overflow: hidden; border-radius: inherit; }
.adult-blur > img, .adult-blur > video, .adult-blur .blur-target { filter: blur(24px) saturate(.6); transform: scale(1.1); }
.adult-blur .blur-mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: #fff; background: rgba(0, 0, 0, .35); font-weight: 700; font-size: .85rem; cursor: pointer; z-index: 3; text-align: center; padding: .5rem; }
.adult-blur.revealed > img, .adult-blur.revealed > video, .adult-blur.revealed .blur-target { filter: none; transform: none; }
.adult-blur.revealed .blur-mask { display: none; }

/* LFG 隊伍盒 */
.team-box { margin-top: .7rem; padding: .75rem .85rem; border-radius: 16px; background: var(--gq-grad-soft); border: 1px solid rgba(var(--gq-primary-rgb), .12); display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.team-box .team-slots { display: flex; gap: 4px; }
.team-box .slot { width: 12px; height: 12px; border-radius: 50%; background: var(--gq-border-strong); }
.team-box .slot.on { background: var(--gq-primary); }
.team-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8125rem; color: var(--gq-text-2); font-weight: 600; }
.team-meta .bi { color: var(--gq-primary); }
.team-card { padding: 1rem 1.1rem; }
.team-card .team-count { font-size: 1.4rem; font-weight: 800; }

/* 投票 */
.poll-box { margin-top: .75rem; }
.poll-option { position: relative; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; background: var(--gq-surface-3); margin-bottom: .5rem; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.poll-option:hover { border-color: rgba(var(--gq-primary-rgb), .35); }
.poll-option .poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--gq-primary-rgb), .16); border-radius: 12px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.poll-option.mine .poll-bar { background: rgba(var(--gq-primary-rgb), .3); }
.poll-option > *:not(.poll-bar) { position: relative; }
.poll-option .poll-pct { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.poll-voted .poll-option { cursor: default; }
.poll-voted .poll-option:hover { border-color: transparent; }

/* ---------- 遊戲卡片 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
@media (min-width: 576px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .game-grid.game-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.game-card { display: block; color: var(--gq-text); border-radius: 20px; overflow: hidden; background: var(--gq-surface); border: 1px solid var(--gq-border); transition: transform .18s ease, box-shadow .18s ease; }
.game-card:hover { color: var(--gq-text); transform: translateY(-3px); box-shadow: var(--gq-shadow-lg); }
.game-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--gq-surface-3); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: .9rem; color: #fff; }
.game-cover-fallback .gc-initial { position: absolute; top: .6rem; right: .8rem; font-size: 3.2rem; font-weight: 900; opacity: .28; line-height: 1; }
.game-cover-fallback .gc-name { font-weight: 800; font-size: 1.05rem; line-height: 1.3; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.game-cover-fallback .gc-name { overflow-wrap: break-word; word-break: normal; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hub-cover .game-cover-fallback { padding: .55rem; }
.hub-cover .game-cover-fallback .gc-name { font-size: .68rem; line-height: 1.25; -webkit-line-clamp: 6; }
@media (min-width: 768px) { .hub-cover .game-cover-fallback .gc-name { font-size: .95rem; } }
.game-cover .rating-pill { position: absolute; top: .6rem; left: .6rem; z-index: 2; }
.game-card-body { padding: .7rem .85rem .85rem; }
.game-card-name { font-weight: 700; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.game-card-meta { font-size: .75rem; color: var(--gq-muted); display: flex; align-items: center; gap: .5rem; margin-top: .2rem; }
.plat-icons { display: inline-flex; gap: .3rem; color: var(--gq-muted); font-size: .85rem; }
.rating-pill { display: inline-flex; align-items: center; gap: .2rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rating-pill .bi { color: #ffc940; }
.stars { color: #ffb020; letter-spacing: 1px; }

/* 橫向捲動列 */
.h-scroll { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 .75rem; padding-bottom: .4rem; margin: 0 -.75rem; padding-left: .75rem; padding-right: .75rem; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: none; }
.h-scroll .game-card { width: 138px; }
@media (min-width: 768px) { .h-scroll .game-card { width: 160px; } }

/* 分頁籤（可橫向捲動） */
.gq-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .15rem 0; }
.gq-tabs::-webkit-scrollbar { display: none; }
.gq-tabs a, .gq-tabs button { flex: none; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .875rem; color: var(--gq-text-2); background: transparent; border: 0; white-space: nowrap; }
.gq-tabs a:hover, .gq-tabs button:hover { background: var(--gq-surface-3); color: var(--gq-text); }
.gq-tabs a.active, .gq-tabs button.active { background: var(--gq-text); color: var(--gq-surface); }
.gq-tabs .count { font-size: .72rem; opacity: .65; margin-left: .2rem; }
.gq-underline-tabs { display: flex; gap: 1.25rem; overflow-x: auto; border-bottom: 1px solid var(--gq-border); scrollbar-width: none; }
.gq-underline-tabs::-webkit-scrollbar { display: none; }
.gq-underline-tabs a { flex: none; padding: .8rem 0; font-weight: 700; color: var(--gq-muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .9375rem; }
.gq-underline-tabs a:hover { color: var(--gq-text); }
.gq-underline-tabs a.active { color: var(--gq-text); border-bottom-color: var(--gq-primary); }

/* ---------- 首頁 Hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 2rem 1.5rem; background: var(--gq-surface); border: 1px solid var(--gq-border); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(176, 108, 255, .35), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(255, 122, 176, .28), transparent 65%); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.hero .hero-search { max-width: 560px; }
.hero .hero-search .form-control { height: 54px; border-radius: 999px; padding-left: 3rem; font-size: 1rem; box-shadow: var(--gq-shadow); border: 1px solid var(--gq-border); }
.hero .hero-search .bi-search { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--gq-muted); font-size: 1.1rem; }
@media (min-width: 768px) { .hero { padding: 3rem 2.75rem; } }
.hero-float { font-size: 2rem; position: absolute; animation: gq-float 5s ease-in-out infinite; opacity: .9; }
@keyframes gq-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }

.welcome-card { border-radius: 24px; padding: 1.25rem 1.35rem; background: var(--gq-grad); color: #fff; position: relative; overflow: hidden; }
.welcome-card::after { content: "🎮"; position: absolute; right: -6px; bottom: -18px; font-size: 5.5rem; opacity: .25; transform: rotate(-12deg); }
.welcome-card a { color: #fff; }

/* ---------- Game Hub ---------- */
.hub-hero { position: relative; border-radius: 28px; overflow: hidden; background: var(--gq-surface); border: 1px solid var(--gq-border); }
.hub-banner { position: relative; height: 150px; overflow: hidden; }
@media (min-width: 768px) { .hub-banner { height: 220px; } }
.hub-banner .hub-banner-img { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(0); }
.hub-banner.is-fallback .hub-banner-img { filter: none; }
.hub-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35)); }
.hub-info { display: flex; gap: 1rem; padding: .85rem 1.1rem 1.1rem; position: relative; z-index: 2; align-items: flex-start; flex-wrap: wrap; }
@media (min-width: 768px) { .hub-info { padding: 1rem 1.75rem 1.5rem; gap: 1.5rem; } }
/* 只有封面往上疊在橫幅上；名稱永遠從橫幅下方開始，長名稱換行也不會蓋到圖片 */
.hub-info .hub-cover { margin-top: calc(-54px - .85rem); }
@media (min-width: 768px) { .hub-info .hub-cover { margin-top: calc(-76px - 1rem); } }
.hub-cover { width: 96px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 4px solid var(--gq-surface); box-shadow: var(--gq-shadow-lg); background: var(--gq-surface-3); flex: none; position: relative; }
.hub-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .hub-cover { width: 140px; } }
.hub-title { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 900; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.hub-title { overflow-wrap: anywhere; }
.hub-title.is-long { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.hub-title.is-xlong { font-size: clamp(1.1rem, 2.1vw, 1.35rem); }
.hub-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .875rem; color: var(--gq-text-2); font-weight: 600; }
.hub-stats .big { font-size: 1.05rem; font-weight: 800; color: var(--gq-text); }
.hub-tabs-wrap { position: sticky; top: 60px; z-index: 1020; background: var(--gq-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); margin: 0 -.75rem; padding: .55rem .75rem; }
.stat-tile { background: var(--gq-surface); border: 1px solid var(--gq-border); border-radius: 18px; padding: .9rem 1rem; }
.stat-tile .v { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.stat-tile .l { font-size: .75rem; color: var(--gq-muted); font-weight: 600; }
.rating-bar { height: 8px; border-radius: 4px; background: var(--gq-surface-3); overflow: hidden; }
.rating-bar > span { display: block; height: 100%; background: var(--gq-sun); border-radius: 4px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: var(--gq-border-strong); cursor: pointer; transition: transform .1s, color .1s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #ffb020; }
.star-input label:active { transform: scale(.9); }

/* ---------- 文章內頁 ---------- */
.post-page-title { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; margin: .4rem 0 .9rem; word-break: break-word; }
.post-content { font-size: 1.0625rem; line-height: 1.85; color: var(--gq-text); word-break: break-word; overflow-wrap: anywhere; }
.post-content p { margin-bottom: 1.1em; }
.post-content h2, .post-content h3, .post-content h4 { font-weight: 800; margin: 1.6em 0 .6em; line-height: 1.4; scroll-margin-top: 90px; }
.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.18rem; }
.post-content h4 { font-size: 1.05rem; }
.post-content ul, .post-content ol { padding-left: 1.4rem; margin-bottom: 1.1em; }
.post-content li { margin-bottom: .3em; }
.post-content blockquote { margin: 1.2em 0; padding: .8rem 1.1rem; border-left: 4px solid var(--gq-primary); background: var(--gq-primary-soft); border-radius: 0 14px 14px 0; color: var(--gq-text-2); }
.post-content code { background: var(--gq-surface-3); color: var(--gq-accent); padding: .12em .4em; border-radius: 6px; font-size: .9em; }
.post-content pre.content-code { background: #16161d; color: #e6e6f0; padding: 1rem 1.1rem; border-radius: 14px; overflow: auto; font-size: .875rem; line-height: 1.6; }
.post-content pre.content-code code { background: none; color: inherit; padding: 0; }
.post-content hr { margin: 2em 0; opacity: .12; }
.post-content .content-figure { margin: 1.2em 0; text-align: center; }
.post-content .content-figure img, .post-content .content-inline-img { border-radius: 14px; max-height: 720px; cursor: zoom-in; }
.post-content .content-embed { margin: 1.2em 0; border-radius: 16px; overflow: hidden; background: #000; }
.post-content a { word-break: break-all; }
.mention { font-weight: 600; }
.spoiler { background: var(--gq-text); color: transparent; border-radius: 4px; padding: 0 .2em; cursor: pointer; transition: all .2s; user-select: none; }
.spoiler.revealed { background: var(--gq-surface-3); color: inherit; user-select: auto; }
.post-media-grid { display: grid; gap: 8px; margin: 1rem 0; grid-template-columns: 1fr; }
.post-media-grid.n2 { grid-template-columns: 1fr 1fr; }
.post-media-grid.n3, .post-media-grid.n4plus { grid-template-columns: 1fr 1fr; }
.post-media-grid .pm-item { border-radius: 16px; overflow: hidden; background: var(--gq-surface-3); }
.post-media-grid .pm-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; max-height: 640px; }
.post-media-grid.n1 .pm-item img { object-fit: contain; max-height: 720px; background: var(--gq-surface-3); }
.post-media-grid video { width: 100%; border-radius: 16px; background: #000; max-height: 640px; }
.post-actions-bar { display: flex; align-items: center; gap: .3rem; padding: .6rem 0; border-top: 1px solid var(--gq-border); border-bottom: 1px solid var(--gq-border); margin: 1.4rem 0; }
.post-actions-bar .act-btn { font-size: .9rem; padding: .5rem .8rem; }
.post-actions-bar .act-btn .bi { font-size: 1.15rem; }
.toc { font-size: .875rem; }
.toc a { display: block; color: var(--gq-muted); padding: .25rem 0 .25rem .75rem; border-left: 2px solid var(--gq-border); }
.toc a:hover { color: var(--gq-primary); border-left-color: var(--gq-primary); }
.toc .lv2 { padding-left: 1.5rem; }
.toc .lv3 { padding-left: 2.25rem; }
.source-box { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; background: var(--gq-surface-3); font-size: .875rem; }

/* ---------- 留言 ---------- */
.comment { display: flex; gap: .7rem; padding: .95rem 0; border-bottom: 1px solid var(--gq-border); }
.comment:last-child { border-bottom: 0; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-head { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--gq-muted); flex-wrap: wrap; }
.comment .c-head .name { color: var(--gq-text); font-weight: 700; }
.comment .c-floor { font-weight: 700; color: var(--gq-muted); }
.comment .c-text { font-size: .9688rem; line-height: 1.7; margin: .3rem 0 .25rem; word-break: break-word; overflow-wrap: anywhere; }
.comment .c-text p:last-child { margin-bottom: 0; }
.comment .c-text p { margin-bottom: .5em; }
.comment .c-img { max-width: 240px; max-height: 240px; border-radius: 12px; margin-top: .4rem; cursor: zoom-in; }
.comment .c-actions { display: flex; align-items: center; gap: .1rem; margin-left: -.55rem; }
.comment .c-actions .act-btn { font-size: .75rem; padding: .3rem .55rem; }
.comment.accepted { background: linear-gradient(90deg, rgba(34, 199, 169, .09), transparent); border-radius: 16px; padding-left: .75rem; padding-right: .75rem; border: 1px solid rgba(34, 199, 169, .25); margin: .5rem 0; }
.comment .replies { margin-top: .4rem; padding-left: .2rem; }
.comment .replies .comment { padding: .6rem 0; border-bottom: 0; }
.comment.is-deleted .c-text { color: var(--gq-muted); font-style: italic; }
.comment-box { position: sticky; bottom: 0; z-index: 5; background: var(--gq-surface); border-top: 1px solid var(--gq-border); padding: .75rem 0 .25rem; }
@media (max-width: 991.98px) { .comment-box { bottom: calc(62px + env(safe-area-inset-bottom)); } }
.comment-box textarea { resize: none; border-radius: 18px; min-height: 44px; max-height: 200px; }
.reply-hint { font-size: .75rem; color: var(--gq-primary); font-weight: 600; }

/* ---------- 個人頁 ---------- */
.profile-cover { height: 140px; border-radius: 24px 24px 0 0; background: var(--gq-grad); background-size: cover; background-position: center; }
@media (min-width: 768px) { .profile-cover { height: 200px; } }
.profile-head { padding: 0 1.2rem 1.2rem; margin-top: -52px; }
.presence { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--gq-surface-3); }
.badge-emoji { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; width: 72px; text-align: center; font-size: .7rem; font-weight: 600; color: var(--gq-text-2); }
.badge-emoji .e { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 16px; background: var(--gq-grad-soft); display: flex; align-items: center; justify-content: center; }
.badge-emoji.locked { opacity: .35; filter: grayscale(1); }

/* ---------- 空狀態 / Skeleton ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gq-muted); }
.empty-state .e { font-size: 3rem; margin-bottom: .5rem; display: block; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; color: var(--gq-text); }
.skeleton { background: linear-gradient(90deg, var(--gq-surface-3) 25%, var(--gq-surface-2) 50%, var(--gq-surface-3) 75%); background-size: 200% 100%; animation: gq-shimmer 1.2s infinite; border-radius: 8px; }
@keyframes gq-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.load-more-sentinel { height: 1px; }
.spinner-dots { display: inline-flex; gap: 5px; }
.spinner-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gq-primary); animation: gq-bounce 1s infinite ease-in-out; }
.spinner-dots span:nth-child(2) { animation-delay: .15s; }
.spinner-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes gq-bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- 編輯器 / 上傳 ---------- */
.editor-card { border-radius: 24px; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 576px) { .type-picker { grid-template-columns: repeat(5, 1fr); } }
.type-picker input { display: none; }
.type-picker label { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .3rem; border-radius: 16px; border: 2px solid var(--gq-border); cursor: pointer; font-size: .8125rem; font-weight: 700; color: var(--gq-text-2); transition: all .15s; background: var(--gq-surface); }
.type-picker label .e { font-size: 1.4rem; }
.type-picker input:checked + label { border-color: var(--gq-primary); background: var(--gq-primary-soft); color: var(--gq-primary); }
.editor-textarea { min-height: 260px; font-size: 1rem; line-height: 1.75; border-radius: 16px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .15rem; padding: .3rem; background: var(--gq-surface-3); border-radius: 14px 14px 0 0; border: 1px solid var(--gq-border-strong); border-bottom: 0; }
.editor-toolbar + .editor-textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.editor-toolbar button { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 10px; color: var(--gq-text-2); }
.editor-toolbar button:hover { background: var(--gq-surface); color: var(--gq-primary); }
.dropzone { border: 2px dashed var(--gq-border-strong); border-radius: 18px; padding: 1.1rem; text-align: center; color: var(--gq-muted); cursor: pointer; transition: all .15s; background: var(--gq-surface-2); }
.dropzone:hover, .dropzone.dragover { border-color: var(--gq-primary); background: var(--gq-primary-soft); color: var(--gq-primary); }
.upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: .75rem; }
.upload-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--gq-surface-3); }
.upload-item img, .upload-item video { width: 100%; height: 100%; object-fit: cover; }
.upload-item .up-progress { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.upload-item .up-progress > span { display: block; height: 100%; width: 0; background: #fff; transition: width .2s; }
.upload-item .up-remove, .upload-item .up-insert { position: absolute; top: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; z-index: 2; }
.upload-item .up-remove { right: 5px; }
.upload-item .up-insert { left: 5px; }
.upload-item.error { outline: 2px solid var(--gq-danger); }
.upload-item .up-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; font-weight: 700; background: rgba(0, 0, 0, .35); }
.game-picker { position: relative; }
.game-picker .picked { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 14px; background: var(--gq-primary-soft); }
.game-picker .picked img, .game-picker .picked .gi { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }

/* ---------- 其他元件 ---------- */
.gq-toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 2000; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
@media (min-width: 992px) { .gq-toast-wrap { bottom: 28px; } }
.gq-toast { pointer-events: auto; background: rgba(28, 28, 34, .92); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; box-shadow: var(--gq-shadow-lg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: gq-toast-in .25s ease; display: flex; align-items: center; gap: .5rem; }
.gq-toast.error { background: rgba(214, 48, 64, .95); }
.gq-toast.success { background: rgba(20, 150, 120, .95); }
@keyframes gq-toast-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-content { border-radius: 24px; border: 1px solid var(--gq-border); background: var(--gq-surface); box-shadow: var(--gq-shadow-lg); }
.modal-header { border-bottom: 0; padding: 1.1rem 1.3rem .4rem; }
.modal-footer { border-top: 0; }
.modal-body { padding: .8rem 1.3rem 1.2rem; }
.lightbox .modal-content { background: transparent; border: 0; box-shadow: none; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.reason-grid input { display: none; }
.reason-grid label { text-align: center; padding: .55rem .2rem; border-radius: 12px; background: var(--gq-surface-3); font-weight: 600; font-size: .8125rem; cursor: pointer; border: 2px solid transparent; }
.reason-grid input:checked + label { border-color: var(--gq-danger); color: var(--gq-danger); background: rgba(255, 77, 94, .08); }
.alert { border-radius: 16px; border: 0; }
.flash-wrap .alert { box-shadow: var(--gq-shadow); }
.announcement-bar { background: var(--gq-grad); color: #fff; font-size: .8125rem; font-weight: 600; text-align: center; padding: .45rem 1rem; }
.announcement-bar a { color: #fff; text-decoration: underline; }
.list-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .2rem; border-radius: 14px; color: var(--gq-text); }
a.list-row:hover { background: var(--gq-surface-3); color: var(--gq-text); }
.rank-num { width: 1.6rem; text-align: center; font-weight: 900; font-size: 1rem; color: var(--gq-muted); flex: none; font-variant-numeric: tabular-nums; }
.rank-num.top1 { color: #ffb020; }
.rank-num.top2 { color: #a0a7b4; }
.rank-num.top3 { color: #d98a4a; }
.game-icon { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: var(--gq-surface-3); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem; overflow: hidden; }
.game-icon.sm { width: 28px; height: 28px; border-radius: 8px; font-size: .75rem; }
.game-icon.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.3rem; }
.deal-card { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; }
.deal-card .price-now { font-size: 1.2rem; font-weight: 800; color: var(--gq-danger); }
.deal-card .price-old { text-decoration: line-through; color: var(--gq-muted); font-size: .8125rem; }
.discount-tag { background: #4c9a2a; color: #fff; font-weight: 800; padding: .2rem .5rem; border-radius: 8px; font-size: .875rem; }
.taxo-card { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-radius: 18px; background: var(--gq-surface); border: 1px solid var(--gq-border); color: var(--gq-text); font-weight: 700; transition: all .15s; }
.taxo-card:hover { color: var(--gq-primary); border-color: rgba(var(--gq-primary-rgb), .35); transform: translateY(-2px); }
.taxo-card .e { font-size: 1.5rem; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--gq-grad-soft); flex: none; }
.gq-footer { border-top: 1px solid var(--gq-border); padding: 2rem 0 2.5rem; color: var(--gq-muted); font-size: .8125rem; margin-top: 2rem; }
.gq-footer a { color: var(--gq-muted); }
.gq-footer a:hover { color: var(--gq-text); }
.gq-footer nav li a { display: inline-block; padding: .15rem 0; }
.side-links { display: flex; flex-wrap: wrap; gap: .1rem .75rem; margin-top: 1.25rem; padding: 0 .5rem; font-size: .75rem; }
.side-links a { color: var(--gq-muted); padding: .15rem 0; }
.side-links a:hover { color: var(--gq-text); }
.footer-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.footer-meta a { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem 0; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--gq-surface-3); font-size: 1.05rem; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--gq-primary-soft); color: var(--gq-primary); }
.theme-toggle .bi { font-size: 1.1rem; }
.onboard-step { max-width: 640px; margin: 0 auto; }
.pick-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick-grid input { display: none; }
.pick-grid label { padding: .5rem .95rem; border-radius: 999px; background: var(--gq-surface-3); font-weight: 600; font-size: .875rem; cursor: pointer; border: 2px solid transparent; user-select: none; }
.pick-grid input:checked + label { background: var(--gq-primary-soft); border-color: var(--gq-primary); color: var(--gq-primary); }
.login-card { max-width: 440px; margin: 2rem auto; text-align: center; border-radius: 28px; padding: 2.5rem 1.75rem; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; padding: .8rem 1rem; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; border-color: #c6c9cc; }
[data-bs-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
.wiki-tree a { display: block; padding: .35rem .7rem; border-radius: 10px; color: var(--gq-text-2); font-size: .9rem; }
.wiki-tree a:hover, .wiki-tree a.active { background: var(--gq-primary-soft); color: var(--gq-primary); }
.wiki-tree .child { padding-left: 1.4rem; }
.static-page { max-width: 760px; margin: 0 auto; }
.static-page h1 { font-weight: 900; letter-spacing: -.02em; }
.static-page h2 { font-weight: 800; font-size: 1.25rem; margin-top: 2rem; }
.static-page p, .static-page li { line-height: 1.85; color: var(--gq-text-2); }

/* ---------- 彩色圖示方塊（取代 emoji） ---------- */
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-size: .95rem; flex: none; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.icon-tile .bi { line-height: 1; }
.icon-tile-lg { width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; }
.icon-tile-sm { width: 22px; height: 22px; border-radius: 7px; font-size: .8rem; }
.tile-blue { background: linear-gradient(135deg, #4aa3ff, #2f7bf5); }
.tile-orange { background: linear-gradient(135deg, #ffa24a, #ff6a2b); }
.tile-pink { background: linear-gradient(135deg, #ff7eb0, #f5487f); }
.tile-purple { background: linear-gradient(135deg, #a58cff, #7c5cf5); }
.tile-green { background: linear-gradient(135deg, #3ddab4, #16b08e); }
.tile-teal { background: linear-gradient(135deg, #3fd0e8, #0aa4c2); }
.tile-yellow { background: linear-gradient(135deg, #ffcd4a, #ffa600); }
.tile-red { background: linear-gradient(135deg, #ff7a7a, #f03e52); }
.tile-indigo { background: linear-gradient(135deg, #7d86ff, #5549e6); }
.tile-gray { background: linear-gradient(135deg, #a3a3b3, #7c7c8c); }
.gq-side-nav .nav-link .icon-tile { margin-right: .1rem; }
.tab-icon { margin-right: .35rem; font-size: .95em; }
.gq-tabs a.active .tab-icon { color: inherit !important; opacity: .95; }
.text-blue { color: #2f7bf5 !important; } .text-orange { color: #ff6a2b !important; } .text-pink { color: #f5487f !important; }
.text-purple { color: #7c5cf5 !important; } .text-green { color: #16b08e !important; } .text-teal { color: #0aa4c2 !important; }
.text-yellow { color: #f2a100 !important; } .text-red { color: #f03e52 !important; } .text-indigo { color: #5549e6 !important; }

/* 漸層預設封面（放在最後以覆蓋 .game-icon 背景） */
.gc-grad-0 { background-image: linear-gradient(135deg, #7c6cff, #b06cff); }
.gc-grad-1 { background-image: linear-gradient(135deg, #ff7ab0, #ffb36b); }
.gc-grad-2 { background-image: linear-gradient(135deg, #22c7a9, #3a8bff); }
.gc-grad-3 { background-image: linear-gradient(135deg, #ff6b6b, #ff3d9a); }
.gc-grad-4 { background-image: linear-gradient(135deg, #3a8bff, #7c6cff); }
.gc-grad-5 { background-image: linear-gradient(135deg, #ffb020, #ff6b6b); }
.gc-grad-6 { background-image: linear-gradient(135deg, #00b8d4, #22c7a9); }
.gc-grad-7 { background-image: linear-gradient(135deg, #5b4be6, #ff7ab0); }

/* 無障礙：減少動態 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 手機分頁按鈕加大（點擊區域至少 40px） */
@media (max-width: 767.98px) {
  .pagination .page-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}

/* 手機：互動按鈕點擊區域至少 36px */
@media (max-width: 767.98px) {
  .act-btn { min-height: 36px; min-width: 36px; justify-content: center; }
  .comment .c-actions .act-btn { min-height: 34px; min-width: 34px; }
}
/* 右欄 grid：避免長內容把卡片撐出欄寬 */
.gq-sticky.d-grid { grid-template-columns: minmax(0, 1fr); }
.gq-sticky.d-grid > * { min-width: 0; }

/* ---------- 匿名發文 / 留言（Anonymity） ---------- */
.author-anon { font-weight: 600; color: var(--gq-text-2); }
.anon-note { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; line-height: 1.3; padding: .1rem .5rem; border-radius: 999px; background: var(--gq-surface-3); color: var(--gq-muted); white-space: nowrap; text-decoration: none; }
.anon-note-mod { background: rgba(255, 176, 32, .14); color: #a86b00; }
.anon-note-mod:hover { color: #8a5800; text-decoration: underline; }
[data-bs-theme="dark"] .anon-note-mod { color: #ffc75a; }
.anon-badge { font-weight: 600; }
.anon-op { background: var(--gq-primary-soft); color: var(--gq-primary); }
.editor-section.anon-box { border: 1px dashed var(--gq-border-strong); border-radius: 14px; padding: .85rem 1rem; transition: border-color .15s, background .15s; }
.editor-section.anon-box.is-on { border-style: solid; border-color: rgba(var(--gq-primary-rgb), .45); background: var(--gq-primary-soft); }
.anon-box-icon { width: 38px; min-width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gq-surface-3); color: var(--gq-text-2); font-size: 1.15rem; }
.anon-box .form-check-label { margin-left: .2rem; }
.anon-box.is-on .anon-box-icon { background: var(--gq-primary); color: #fff; }
.comment-anon-toggle { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: .78rem; color: var(--gq-muted); cursor: pointer; user-select: none; white-space: nowrap; }
.comment-anon-toggle .form-check-input { margin: 0; float: none; cursor: pointer; }
.comment-anon-toggle:has(input:checked) { color: var(--gq-primary); font-weight: 600; }
.comment-anon-toggle.is-disabled { opacity: .55; cursor: not-allowed; }
