/* =========================================================
   娛樂城百科 主題樣式 v1.0.0
   行動優先（mobile-first）、無外部字體、無框架
   ========================================================= */

:root {
	--cw-navy: #101b33;
	--cw-navy-2: #1b2b4d;
	--cw-gold: #d4a437;
	--cw-gold-2: #f0c661;
	--cw-ink: #22293a;
	--cw-ink-2: #5b6478;
	--cw-line: #e4e8f0;
	--cw-bg: #f6f8fb;
	--cw-white: #ffffff;
	--cw-green: #1e9e57;
	--cw-red: #d64545;
	--cw-radius: 12px;
	--cw-shadow: 0 2px 10px rgba(16, 27, 51, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: var(--cw-ink);
	background: var(--cw-bg);
	word-break: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cw-navy-2); text-decoration: none; }
a:hover { color: var(--cw-gold); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
table { border-collapse: collapse; width: 100%; }

.cw-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.cw-container-narrow { max-width: 820px; }
/* 手機版左右間距加大（v1.18.2）：16px 貼邊感太重，改 24px 呼吸感 */
@media (max-width: 899px) { .cw-container { padding: 0 24px; } }

/* ---------- 手機版防橫向溢出（v1.18.3） ----------
 * 匯入內文常含固定寬度的 table / div（如 style="width:900px"），
 * 會把整頁撐寬 → 手機瀏覽器整頁縮小 → 看起來「間距貼邊、畫面被拉寬」。
 * 1) 內文元素一律不得超過容器寬；表格改為可橫向捲動
 * 2) 格線卡片允許縮到軌道寬以下（min-width:0，防長字撐寬）
 * 3) 899px 以下整頁鎖橫向溢出（clip 不產生捲動容器；舊瀏覽器退回 hidden） */
.cw-entry-content table { display: block; max-width: 100%; width: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cw-entry-content div, .cw-entry-content figure, .cw-entry-content section, .cw-entry-content p { max-width: 100%; }
.cw-entry-content iframe, .cw-entry-content video, .cw-entry-content embed, .cw-entry-content object { max-width: 100%; }
.cw-grid > *, .cw-grid-sq > *, .cw-casino-grid > * { min-width: 0; }
@media (max-width: 899px) {
	html, body { overflow-x: hidden; overflow-x: clip; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--cw-gold); color: #111; padding: 8px 14px; border-radius: 6px; width: auto; height: auto; clip: auto; }

/* ---------- 按鈕 ---------- */
.cw-btn {
	display: inline-block; padding: 10px 20px; border-radius: 8px;
	font-weight: 700; font-size: 15px; text-align: center;
	transition: transform .12s ease, box-shadow .12s ease; border: 2px solid transparent;
}
.cw-btn:active { transform: scale(.97); }
.cw-btn-gold { background: linear-gradient(135deg, var(--cw-gold), var(--cw-gold-2)); color: #21150a; box-shadow: 0 3px 10px rgba(212, 164, 55, .35); }
.cw-btn-gold:hover { color: #000; box-shadow: 0 5px 16px rgba(212, 164, 55, .5); }
.cw-btn-outline { border-color: var(--cw-navy-2); color: var(--cw-navy-2); background: transparent; }
.cw-btn-outline:hover { background: var(--cw-navy-2); color: #fff; }
.cw-btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cw-btn-ghost:hover { border-color: var(--cw-gold-2); color: var(--cw-gold-2); }
.cw-btn-lg { padding: 14px 28px; font-size: 17px; }
.cw-btn-block { display: block; width: 100%; margin-top: 14px; }

/* ---------- 頁首 ---------- */
.cw-header { background: var(--cw-navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.cw-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.cw-site-title { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 6px; }
.cw-site-title:hover { color: var(--cw-gold-2); }
.cw-logo-mark { color: var(--cw-gold); font-size: 22px; }
.custom-logo { max-height: 44px; width: auto; }

.cw-nav-toggle {
	display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
}
.cw-nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.cw-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cw-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cw-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cw-navy-2); box-shadow: 0 10px 20px rgba(0,0,0,.3); }
.cw-nav.is-open { display: block; }
.cw-menu { list-style: none; margin: 0; padding: 8px 0; }
.cw-menu a { display: block; padding: 12px 20px; color: #e8ecf5; font-weight: 600; }
.cw-menu a:hover { background: rgba(212,164,55,.12); color: var(--cw-gold-2); }
.cw-menu .sub-menu { list-style: none; padding-left: 16px; }

@media (min-width: 900px) {
	.cw-nav-toggle { display: none; }
	.cw-nav { display: block; position: static; background: none; box-shadow: none; }
	.cw-menu { display: flex; gap: 4px; padding: 0; }
	.cw-menu a { padding: 8px 14px; border-radius: 6px; }
	.cw-menu a:hover { background: rgba(255,255,255,.08); }
}

/* ---------- 麵包屑 ---------- */
.cw-breadcrumbs { background: var(--cw-white); border-bottom: 1px solid var(--cw-line); font-size: 13px; }
.cw-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 8px 0; color: var(--cw-ink-2); }
.cw-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 4px; color: #b8c0cf; }
.cw-breadcrumbs a { color: var(--cw-ink-2); }
.cw-breadcrumbs a:hover { color: var(--cw-gold); }
.cw-breadcrumbs [aria-current] { color: var(--cw-navy); font-weight: 600; }

/* ---------- Hero ---------- */
.cw-hero {
	background: radial-gradient(ellipse at 20% -20%, #2a3f6d 0%, var(--cw-navy) 55%);
	color: #fff; padding: 48px 0 40px; text-align: center;
}
.cw-hero-title { font-size: 30px; font-weight: 900; margin-bottom: 10px; letter-spacing: 1px; }
.cw-hero-title::after { content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; background: var(--cw-gold); border-radius: 2px; }
.cw-hero-subtitle { color: #c6cede; max-width: 640px; margin: 0 auto 22px; font-size: 15px; }
.cw-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cw-hero-stats { list-style: none; display: flex; justify-content: center; gap: 28px; margin: 30px 0 0; padding: 0; flex-wrap: wrap; }
.cw-hero-stats li { display: flex; flex-direction: column; }
.cw-hero-stats strong { font-size: 26px; color: var(--cw-gold-2); }
.cw-hero-stats span { font-size: 13px; color: #aab4c8; }

@media (min-width: 900px) {
	.cw-hero { padding: 72px 0 60px; }
	.cw-hero-title { font-size: 42px; }
	.cw-hero-subtitle { font-size: 17px; }
}

/* ---------- 區塊 ---------- */
.cw-section { padding: 36px 0; }
.cw-section-alt { background: var(--cw-white); border-top: 1px solid var(--cw-line); border-bottom: 1px solid var(--cw-line); }
.cw-section-inner { margin-top: 36px; }
.cw-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cw-section-title { font-size: 22px; font-weight: 800; margin: 0; }
.cw-section-more { font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .cw-section { padding: 52px 0; } .cw-section-title { font-size: 26px; } }

/* ---------- 格狀卡片 ---------- */
.cw-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cw-grid-3 { grid-template-columns: repeat(3, 1fr); } .cw-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cw-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.cw-card { background: var(--cw-white); border: 1px solid var(--cw-line); border-radius: var(--cw-radius); overflow: hidden; box-shadow: var(--cw-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.cw-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,27,51,.13); }
.cw-card-thumb { display: block; aspect-ratio: 3/2; background: #eef1f6; }
.cw-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- 卡片圖片：懸停時一道斜光掃過（v1.43.1） ----------
 * 原本只有鄉村風有，使用者要求三種風格都套用，所以搬到共用樣式。
 * 這裡只加視覺效果，不改版面：容器本來就會裁切，::after 也不吃滑鼠事件。 */
.cw-card-thumb, .cw-card-thumb-sq, .cw-game-row-thumb { position: relative; overflow: hidden; }
.cw-card-thumb::after, .cw-card-thumb-sq::after, .cw-game-row-thumb::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.28) 50%, transparent 66%);
	transform: translateX(-130%);
	transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.cw-card:hover .cw-card-thumb::after,
.cw-card:hover .cw-card-thumb-sq::after,
.cw-game-row:hover .cw-game-row-thumb::after { transform: translateX(130%); }
/* 使用者關閉動態效果時不要掃 */
@media (prefers-reduced-motion: reduce) {
	.cw-card-thumb::after, .cw-card-thumb-sq::after, .cw-game-row-thumb::after { display: none; }
}

.cw-card-body { padding: 12px 14px 14px; }
.cw-card-title { font-size: 15px; margin: 0 0 4px; }
.cw-card-title a { color: var(--cw-ink); }
.cw-card-title a:hover { color: var(--cw-gold); }
.cw-card-meta { font-size: 13px; color: var(--cw-ink-2); margin: 0; }

.cw-thumb-ph {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	min-height: 72px; aspect-ratio: 3/2; background: linear-gradient(135deg, #26365c, var(--cw-navy));
	color: var(--cw-gold-2); font-size: 30px; font-weight: 800;
}

/* ---------- 娛樂城排名卡片 ---------- */
.cw-casino-list { display: flex; flex-direction: column; gap: 14px; }
.cw-casino-card {
	position: relative; display: grid; grid-template-columns: 72px 1fr;
	gap: 8px 14px; align-items: center; background: var(--cw-white);
	border: 1px solid var(--cw-line); border-radius: var(--cw-radius);
	padding: 16px; box-shadow: var(--cw-shadow);
}
.cw-rank {
	position: absolute; top: -8px; left: -6px; width: 28px; height: 28px; border-radius: 50%;
	background: var(--cw-navy-2); color: #fff; font-weight: 800; font-size: 14px;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.cw-rank.is-top { background: linear-gradient(135deg, var(--cw-gold), var(--cw-gold-2)); color: #21150a; }
.cw-casino-card-logo { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--cw-line); }
.cw-casino-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.cw-casino-card-logo .cw-thumb-ph { aspect-ratio: 1; min-height: 72px; font-size: 24px; }
.cw-casino-card-title { font-size: 17px; margin: 0 0 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cw-casino-card-title a { color: var(--cw-ink); }
.cw-casino-card-rating { display: flex; align-items: center; gap: 6px; }
.cw-casino-card-bonus { margin: 6px 0 0; font-size: 14px; color: var(--cw-green); font-weight: 600; }
.cw-casino-card-meta { margin: 2px 0 0; font-size: 13px; color: var(--cw-ink-2); }
.cw-casino-card-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.cw-casino-card-actions .cw-btn { flex: 1; padding: 10px 8px; font-size: 14px; }

@media (min-width: 800px) {
	.cw-casino-card { grid-template-columns: 84px 1fr 210px; padding: 18px 20px; }
	.cw-casino-card-logo { width: 84px; height: 84px; }
	.cw-casino-card-actions { grid-column: auto; flex-direction: column; }
	.cw-casino-card-actions .cw-btn { flex: none; }
}

/* ---------- 遊戲條列卡（v1.42.0，遊戲列表的「標準」布局） ---------- */
.cw-game-list { display: flex; flex-direction: column; gap: 12px; }
.cw-game-row {
	position: relative; display: grid; grid-template-columns: 72px 1fr;
	gap: 8px 14px; align-items: center; background: var(--cw-white);
	border: 1px solid var(--cw-line); border-radius: var(--cw-radius);
	padding: 14px; box-shadow: var(--cw-shadow);
}
.cw-game-row-thumb {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
	border: 1px solid var(--cw-line); background: #fff;
}
.cw-game-row-thumb img { height: 100%; width: auto; max-width: none; }
.cw-game-row-thumb .cw-thumb-ph { aspect-ratio: 1; min-height: 72px; font-size: 24px; }
.cw-game-row-title { font-size: 16px; margin: 0 0 2px; line-height: 1.35; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 標題右側的行內徽章（不是疊在縮圖上的絕對定位版本） */
.cw-game-row-title .cw-badge-inline { position: static; font-size: 11px; padding: 2px 8px; }
.cw-game-row-title a { color: var(--cw-ink); }
.cw-game-row-meta { margin: 0; font-size: 13px; color: var(--cw-ink-2); }
.cw-game-row-specs {
	list-style: none; margin: 6px 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.cw-game-row-specs li {
	display: inline-flex; align-items: baseline; gap: 4px;
	background: #f3f5fa; border-radius: 999px; padding: 2px 10px; font-size: 12px;
}
.cw-game-row-specs span { color: var(--cw-ink-2); }
.cw-game-row-specs strong { color: var(--cw-ink); font-weight: 700; }
.cw-game-row-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.cw-game-row-actions .cw-btn { flex: 1; padding: 9px 8px; font-size: 14px; }

@media (min-width: 800px) {
	.cw-game-row { grid-template-columns: 84px 1fr 190px; padding: 16px 20px; }
	.cw-game-row-thumb { width: 84px; height: 84px; }
	.cw-game-row-thumb .cw-thumb-ph { min-height: 84px; }
	.cw-game-row-title { font-size: 17px; }
	.cw-game-row-actions { grid-column: auto; flex-direction: column; }
	.cw-game-row-actions .cw-btn { flex: none; }
}

/* 深色模式 */
html.cw-dark .cw-game-row { background: var(--cw-navy-2); border-color: rgba(255,255,255,.10); }
html.cw-dark .cw-game-row-specs li { background: rgba(255,255,255,.07); }
html.cw-dark .cw-game-row-specs span { color: #a9b6d2; }
html.cw-dark .cw-game-row-specs strong { color: #e8edf7; }

/* ---------- 徽章 / 標籤 ---------- */
.cw-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.cw-badge-cash { background: #fdeeee; color: var(--cw-red); }
.cw-badge-line { background: #e5f5ec; color: #0a9e4e; }
.cw-badge:not([class*=" cw-badge-"]) { background: #eef1f6; color: var(--cw-ink-2); }
.cw-tag { display: inline-block; font-size: 13px; font-weight: 600; background: #eef1f6; color: var(--cw-navy-2); padding: 3px 10px; border-radius: 999px; margin-right: 6px; }
.cw-tag:hover { background: var(--cw-gold); color: #21150a; }
.cw-meta-inline { font-size: 13px; color: var(--cw-ink-2); margin-right: 10px; }

/* ---------- 星級 ---------- */
.cw-stars { position: relative; display: inline-block; line-height: 0; }
.cw-stars svg { display: inline-block; }
.cw-stars-bg { color: #d9dee8; }
.cw-stars-bg svg, .cw-stars-fill svg { fill: currentColor; }
.cw-stars-fill { color: var(--cw-gold); position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.cw-score { font-size: 16px; }
.cw-score-big { font-size: 30px; color: var(--cw-gold-2); }
.cw-score-max { color: var(--cw-ink-2); font-size: 13px; }

/* ---------- 頁面標頭 / 列表 ---------- */
/* 注意：cw-archive 與 cw-container 同掛一個 div，只能設上下 padding，
 * 用捷徑 padding: 28px 0 44px 會把 container 的左右間距蓋成 0（v1.18.3 修正的貼邊主因） */
.cw-archive { padding-top: 28px; padding-bottom: 44px; }
.cw-page-header { margin-bottom: 22px; }
.cw-page-title { font-size: 26px; font-weight: 900; }
.cw-page-desc { color: var(--cw-ink-2); margin: 6px 0 0; max-width: 760px; }
@media (min-width: 900px) { .cw-page-title { font-size: 32px; } }

.cw-filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.cw-filter-tab {
	padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
	background: var(--cw-white); border: 1px solid var(--cw-line); color: var(--cw-ink-2);
}
.cw-filter-tab:hover { border-color: var(--cw-gold); color: var(--cw-gold); }
.cw-filter-tab.is-active { background: var(--cw-navy); border-color: var(--cw-navy); color: var(--cw-gold-2); }

.cw-empty { color: var(--cw-ink-2); background: var(--cw-white); border: 1px dashed var(--cw-line); border-radius: var(--cw-radius); padding: 32px; text-align: center; }

/* ---------- 娛樂城詳情 ---------- */
.cw-casino-hero { background: radial-gradient(ellipse at 15% -30%, #2a3f6d 0%, var(--cw-navy) 60%); color: #fff; padding: 28px 0; }
.cw-casino-hero-inner { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.cw-casino-hero-logo { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(212,164,55,.5); }
.cw-casino-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.cw-casino-hero-logo .cw-thumb-ph { aspect-ratio: 1; min-height: 80px; }
.cw-casino-hero-title { color: #fff; font-size: 24px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cw-casino-hero-rating { display: flex; align-items: center; gap: 8px; }
.cw-casino-hero-bonus { color: var(--cw-gold-2); font-weight: 700; margin: 6px 0 0; }
.cw-casino-hero-cta { grid-column: 1 / -1; }
.cw-casino-hero-cta .cw-btn { width: 100%; }
@media (min-width: 900px) {
	.cw-casino-hero { padding: 40px 0; }
	.cw-casino-hero-inner { grid-template-columns: 100px 1fr auto; }
	.cw-casino-hero-logo { width: 100px; height: 100px; }
	.cw-casino-hero-title { font-size: 30px; }
	.cw-casino-hero-cta { grid-column: auto; }
	.cw-casino-hero-cta .cw-btn { width: auto; }
}

.cw-single-layout { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 48px; } /* 同上：不可用捷徑蓋掉左右間距 */
@media (min-width: 960px) { .cw-single-layout { grid-template-columns: 1fr 320px; align-items: start; } }
.cw-single-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cw-single-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .cw-single-side { position: sticky; top: 76px; } }

.cw-panel { background: var(--cw-white); border: 1px solid var(--cw-line); border-radius: var(--cw-radius); padding: 20px; box-shadow: var(--cw-shadow); }
.cw-panel-title { font-size: 19px; font-weight: 800; border-left: 4px solid var(--cw-gold); padding-left: 10px; margin-bottom: 14px; }

.cw-subratings { display: flex; flex-direction: column; gap: 10px; }
.cw-subrating { display: grid; grid-template-columns: 76px 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
.cw-subrating-bar { height: 8px; background: #edf0f5; border-radius: 999px; overflow: hidden; }
.cw-subrating-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cw-gold), var(--cw-gold-2)); border-radius: 999px; }
.cw-subrating-val { font-weight: 700; text-align: right; }

.cw-proscons { display: grid; gap: 14px; }
@media (min-width: 700px) { .cw-proscons { grid-template-columns: 1fr 1fr; } }
.cw-pros, .cw-cons { border-radius: 10px; padding: 14px 16px; }
.cw-pros { background: #f0faf4; border: 1px solid #cdeeda; }
.cw-cons { background: #fdf3f3; border: 1px solid #f3d3d3; }
.cw-pros h3, .cw-cons h3 { font-size: 15px; margin-bottom: 8px; }
.cw-pros ul, .cw-cons ul { margin: 0; padding-left: 20px; }
.cw-pros li, .cw-cons li { margin: 4px 0; font-size: 14px; }

.cw-typeblocks { display: grid; gap: 14px; }
@media (min-width: 700px) { .cw-typeblocks { grid-template-columns: 1fr 1fr; } }
.cw-typeblock { border: 1px solid var(--cw-line); border-radius: 10px; padding: 14px 16px; background: #fafbfd; }
.cw-typeblock-title { font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cw-typeblock-count { font-size: 12px; color: var(--cw-ink-2); font-weight: 400; white-space: nowrap; }
.cw-typeblock-venues { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cw-typeblock-venues a { display: inline-block; font-size: 13px; font-weight: 600; background: var(--cw-white); border: 1px solid var(--cw-line); border-radius: 999px; padding: 4px 12px; }
.cw-typeblock-venues a:hover { border-color: var(--cw-gold); color: var(--cw-gold); }

.cw-infotable th { text-align: left; color: var(--cw-ink-2); font-weight: 600; padding: 8px 10px 8px 0; width: 104px; vertical-align: top; font-size: 14px; white-space: nowrap; } /* v1.22.1：標題列加寬且不換行（最大中獎倍數） */
.cw-infotable td { padding: 8px 0; font-size: 14px; font-weight: 600; }
.cw-infotable tr + tr { border-top: 1px solid var(--cw-line); }

.cw-sidelist { list-style: none; margin: 0; padding: 0; }
.cw-sidelist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; }
.cw-sidelist li + li { border-top: 1px solid var(--cw-line); }
.cw-sidelist a { font-weight: 600; font-size: 14px; }
.cw-sidelist-score { color: var(--cw-gold); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ---------- 場館頁 ---------- */
.cw-venue-header { display: flex; gap: 14px; align-items: center; }
.cw-venue-logo { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--cw-line); }
.cw-venue-logo img { width: 100%; height: 100%; object-fit: cover; }
.cw-venue-logo .cw-thumb-ph { aspect-ratio: 1; min-height: 72px; font-size: 24px; }

/* ---------- FAQ ---------- */
.cw-faq { display: flex; flex-direction: column; gap: 10px; }
.cw-faq-item { background: var(--cw-white); border: 1px solid var(--cw-line); border-radius: 10px; overflow: hidden; }
.cw-faq-item summary {
	cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; font-size: 15px;
}
.cw-faq-item summary::-webkit-details-marker { display: none; }
.cw-faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--cw-gold); font-size: 20px; font-weight: 800; }
.cw-faq-item[open] summary::after { content: "−"; }
.cw-faq-item[open] summary { border-bottom: 1px solid var(--cw-line); }
.cw-faq-a { padding: 12px 16px; color: var(--cw-ink-2); font-size: 14px; }
.cw-faq-a p { margin: 0; }

/* ---------- 文章 ---------- */
.cw-postlist { display: flex; flex-direction: column; gap: 14px; }
.cw-postrow {
	display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--cw-white);
	border: 1px solid var(--cw-line); border-radius: var(--cw-radius); padding: 14px; box-shadow: var(--cw-shadow);
}
.cw-postrow-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; background: #eef1f6; align-self: start; }
.cw-postrow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cw-postrow-title { font-size: 16px; margin: 0 0 4px; }
.cw-postrow-title a { color: var(--cw-ink); }
.cw-postrow-title a:hover { color: var(--cw-gold); }
.cw-postrow-excerpt { display: none; font-size: 14px; color: var(--cw-ink-2); margin: 0 0 6px; }
.cw-postrow-meta { font-size: 13px; color: var(--cw-ink-2); margin: 0; }
@media (min-width: 700px) {
	.cw-postrow { grid-template-columns: 200px 1fr; padding: 16px; }
	.cw-postrow-title { font-size: 19px; }
	.cw-postrow-excerpt { display: block; }
}

.cw-post-cover, .cw-game-cover { margin: 0 0 20px; border-radius: var(--cw-radius); overflow: hidden; }
.cw-post-tags { margin-top: 24px; }

/* ---------- 內文排版 ---------- */
.cw-entry-content { font-size: 16px; }
.cw-entry-content h2 { font-size: 22px; margin: 1.4em 0 .6em; border-left: 4px solid var(--cw-gold); padding-left: 10px; }
.cw-entry-content h3 { font-size: 18px; margin: 1.2em 0 .5em; }
.cw-entry-content p { margin: 0 0 1em; }
.cw-entry-content img { border-radius: 10px; }
.cw-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.cw-entry-content blockquote { border-left: 4px solid var(--cw-line); margin: 1em 0; padding: 4px 0 4px 16px; color: var(--cw-ink-2); }
.cw-entry-content table th, .cw-entry-content table td { border: 1px solid var(--cw-line); padding: 8px 12px; font-size: 14px; }
.cw-entry-content table th { background: #f3f5f9; }
.cw-featurelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 700px) { .cw-featurelist { grid-template-columns: 1fr 1fr; } }
.cw-featurelist li { background: #fafbfd; border: 1px solid var(--cw-line); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* ---------- 分頁 ---------- */
.pagination, .navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
	padding: 0 12px; border-radius: 8px; background: var(--cw-white); border: 1px solid var(--cw-line);
	font-weight: 700; font-size: 14px; color: var(--cw-ink-2);
}
.page-numbers.current { background: var(--cw-navy); border-color: var(--cw-navy); color: var(--cw-gold-2); }
.page-numbers:hover:not(.current) { border-color: var(--cw-gold); color: var(--cw-gold); }

/* ---------- 搜尋表單 ---------- */
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form .search-field { flex: 1; padding: 10px 14px; border: 1px solid var(--cw-line); border-radius: 8px; font-size: 15px; }
.search-form .search-submit { padding: 10px 18px; border: 0; border-radius: 8px; background: var(--cw-navy); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- 頁尾 ---------- */
.cw-footer { background: var(--cw-navy); color: #aab4c8; margin-top: 48px; padding: 40px 0 20px; font-size: 14px; }
.cw-footer a { color: #c6cede; }
.cw-footer a:hover { color: var(--cw-gold-2); }
/* 手機版：快速導覽與遊戲專區左右並排（v1.21.0），品牌與頁尾選單整行 */
.cw-footer-grid { display: grid; gap: 24px 16px; grid-template-columns: 1fr 1fr; }
.cw-footer-col-brand, .cw-footer-col-menu { grid-column: 1 / -1; }
@media (min-width: 700px) {
	.cw-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
	.cw-footer-col-brand, .cw-footer-col-menu { grid-column: auto; }
}
.cw-footer-brand { color: #fff; font-size: 18px; font-weight: 800; margin: 0 0 8px; }
/* 頁尾 LOGO（v1.45.0）：有設定「網站識別 → LOGO」時取代文字站名 */
.cw-footer-logo { display: inline-block; margin: 0 0 10px; max-width: 240px; line-height: 0; }
.cw-footer-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 56px; }
/* 深色頁尾：深色 LOGO（需要淺色底）自動墊一塊白底，才不會整個看不見 */
.cw-footer-logo.cw-needs-light { background: #fff; padding: 8px 12px; border-radius: 10px; line-height: 0; }
.cw-footer-desc { margin: 0; font-size: 13px; }
.cw-footer-title { color: #fff; font-weight: 700; margin: 0 0 10px; }
.cw-footer-links { list-style: none; margin: 0; padding: 0; }
.cw-footer-links li { margin: 6px 0; }
.cw-footer-disclaimer {
	margin-top: 28px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
	font-size: 12.5px; display: flex; gap: 14px; align-items: center; justify-content: space-between;
}
.cw-footer-disclaimer p { margin: 0; }
.cw-footer-badge {
	flex-shrink: 0; width: 40px; height: 40px; border: 2px solid var(--cw-red); color: var(--cw-red);
	border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.cw-footer-copy { margin-top: 18px; text-align: center; font-size: 12.5px; color: #7c8699; }
.cw-footer-copy p { margin: 0; }

/* ---------- 404 ---------- */
.cw-404 { text-align: center; padding-top: 56px; padding-bottom: 72px; }
.cw-404 .cw-hero-actions { justify-content: center; }
.cw-404 .search-form { margin: 0 auto; }

/* ---------- 留言區 ---------- */
.cw-comments { margin-top: 24px; }
.comment-notes { font-size: 13px; color: var(--cw-ink-2); }
.comment-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comment-form .required { color: var(--cw-red); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--cw-line); border-radius: 8px;
	font-size: 15px; font-family: inherit; background: #fafbfd;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--cw-gold); border-color: var(--cw-gold); }
.comment-form .submit {
	padding: 10px 24px; border: 0; border-radius: 8px; cursor: pointer;
	background: linear-gradient(135deg, var(--cw-gold), var(--cw-gold-2)); color: #21150a; font-weight: 700; font-size: 15px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--cw-line); padding: 14px 0; }
.comment-list .comment-body { font-size: 14px; }
.comment-list .comment-meta { font-size: 13px; color: var(--cw-ink-2); }
.comment-list .reply { font-size: 13px; }
.comment-list .children { list-style: none; padding-left: 24px; }

/* ---------- 遊戲頁按鈕與徽章（v1.1.0） ---------- */
.cw-game-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.cw-badge-new { background: #e5f5ec; color: var(--cw-green); }
.cw-badge-hot { background: #fdeeee; color: var(--cw-red); }
.cw-card-badge {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	font-size: 11px; font-weight: 800; letter-spacing: .5px;
	padding: 3px 9px; border-radius: 999px; color: #fff;
	background: linear-gradient(135deg, #e0483e, #c02b3d); box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.cw-card-badge.is-new { background: linear-gradient(135deg, #1e9e57, #147a41); }
.cw-card { position: relative; }

/* ---------- 空狀態提示（v1.2.0） ---------- */
.cw-empty-admin { text-align: center; padding: 28px 24px; border-style: solid; border-color: #f0d9a0; background: #fffaf0; }
.cw-empty-admin p { margin: 0 0 12px; }
.cw-empty-admin .cw-btn { margin: 0 4px; }
.cw-empty-note { font-size: 12.5px; color: #a08a5a; margin-bottom: 0 !important; }

/* ---------- 返回頂部按鈕（v1.3.0） ---------- */
.cw-backtop {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: linear-gradient(135deg, var(--cw-gold), var(--cw-gold-2)); color: #21150a;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 4px 14px rgba(16, 27, 51, .3);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cw-backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.cw-backtop:hover { box-shadow: 0 6px 18px rgba(212, 164, 55, .5); }
@media (min-width: 900px) { .cw-backtop { right: 28px; bottom: 28px; width: 48px; height: 48px; } }

/* ---------- 遊戲篩選器（v1.7.0） ---------- */
.cw-filter-bar {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
	background: var(--cw-white); border: 1px solid var(--cw-line); border-radius: var(--cw-radius);
	padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--cw-shadow);
}
.cw-filter-field { display: flex; flex-direction: column; gap: 4px; }
.cw-filter-field > span { font-size: 12.5px; font-weight: 700; color: var(--cw-ink-2); }
.cw-filter-select {
	min-width: 150px; padding: 8px 10px; border: 1px solid var(--cw-line); border-radius: 8px;
	font-size: 14px; background: #fafbfd;
}
.cw-filter-clear { font-size: 13px; font-weight: 700; color: var(--cw-red); padding-bottom: 9px; }
@media (max-width: 480px) { .cw-filter-field { flex: 1 1 45%; } .cw-filter-select { min-width: 0; width: 100%; } }

/* ---------- 緊湊方形布局（v1.7.0） ---------- */
.cw-grid-sq { grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .cw-grid-sq { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cw-grid-sq { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
/* 首頁熱門區塊：電腦版一行五列（v1.18.4，蓋過 cw-grid-4／cw-grid-sq 的桌機欄數） */
@media (min-width: 1000px) { .cw-grid-d5 { grid-template-columns: repeat(5, 1fr); } }
.cw-card-thumb-sq { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* 方形圖改「高度包含」（v1.22.0）：圖片高度貼齊方框，過寬的左右置中裁切、不變形（同遊戲詳情頁作法）；直式圖左右留白 */
.cw-card-thumb-sq img { height: 100%; width: auto; max-width: none; flex: none; }
.cw-card-thumb-sq .cw-thumb-ph { aspect-ratio: 1 / 1; }
.cw-card-body-sq { padding: 8px 10px 10px; }
.cw-card-sq .cw-card-title { font-size: 13px; line-height: 1.4; margin: 0 0 2px; }
.cw-card-sq .cw-card-meta { font-size: 11.5px; }
.cw-card-sq .cw-card-badge { font-size: 10px; padding: 2px 7px; }

/* 娛樂城緊湊格 */
.cw-casino-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .cw-casino-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cw-casino-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cw-casino-sq { text-align: center; }
.cw-casino-sq .cw-rank { top: 8px; left: 8px; position: absolute; z-index: 2; }
.cw-casino-sq .cw-card-title { font-size: 14.5px; }
.cw-casino-sq-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 8px; flex-wrap: wrap; }
.cw-btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---------- 前台布局切換（v1.7.0） ---------- */
.cw-views { position: relative; }
.cw-views[data-view="standard"] .cw-layout-compact { display: none; }
.cw-views[data-view="compact"] .cw-layout-standard { display: none; }
.cw-view-toggle {
	display: inline-flex; gap: 0; margin: 0 0 14px; border: 1px solid var(--cw-line);
	border-radius: 10px; overflow: hidden; background: var(--cw-white); box-shadow: var(--cw-shadow);
}
.cw-view-btn {
	appearance: none; border: 0; background: transparent; cursor: pointer;
	padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--cw-ink-2);
	transition: background .15s, color .15s;
}
.cw-view-btn + .cw-view-btn { border-left: 1px solid var(--cw-line); }
.cw-view-btn:hover { background: #f5f6fa; }
.cw-view-btn.is-active { background: var(--cw-gold); color: #fff; }

/* ---------- 自動載入下一頁（v1.8.0） ---------- */
.cw-pagination-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.cw-autoload-status {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 18px 0 6px; color: var(--cw-ink-2); font-size: 13.5px; font-weight: 700;
}
.cw-autoload-status.is-done { color: #9aa3b5; }
.cw-autoload-spinner {
	width: 16px; height: 16px; border: 2px solid var(--cw-line); border-top-color: var(--cw-gold);
	border-radius: 50%; animation: cw-spin .7s linear infinite;
}
@keyframes cw-spin { to { transform: rotate(360deg); } }

/* ---------- 遊戲頁行動按鈕（v1.8.0） ---------- */
.cw-play-card .cw-btn { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
.cw-play-card .cw-btn:last-child { margin-bottom: 0; }
.cw-play-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: var(--cw-white); border-top: 1px solid var(--cw-line);
	box-shadow: 0 -4px 16px rgba(16, 27, 51, .08);
}
.cw-play-bar .cw-btn { flex: 1; text-align: center; padding: 11px 10px; }
@media (min-width: 900px) { .cw-play-bar { display: none; } }
@media (max-width: 899px) {
	.cw-play-card { display: none; }
	body.single-game:has(.cw-play-bar) { padding-bottom: 84px; }
	/* 返回頂部按鈕避開底部固定列（v1.18.2）：有立即遊玩列時整顆上移 */
	body.single-game:has(.cw-play-bar) .cw-backtop { bottom: calc(86px + env(safe-area-inset-bottom)); }
	body.single-game:has(.cw-play-bar) .cw-theme-toggle { bottom: calc(86px + env(safe-area-inset-bottom)); }
	body.single-game:has(.cw-play-bar):has(.cw-backtop.is-visible) .cw-theme-toggle { bottom: calc(140px + env(safe-area-inset-bottom)); }
}

/* ---------- 文字搜尋欄（v1.9.0） ---------- */
.cw-filter-searchbox { display: inline-flex; align-items: stretch; }
.cw-filter-input {
	min-width: 170px; padding: 8px 10px; border: 1px solid var(--cw-line); border-right: 0;
	border-radius: 8px 0 0 8px; font-size: 14px; background: #fafbfd;
}
.cw-filter-input:focus { outline: none; border-color: var(--cw-gold); background: #fff; }
.cw-filter-go {
	appearance: none; border: 1px solid var(--cw-gold); background: var(--cw-gold); color: #fff;
	border-radius: 0 8px 8px 0; padding: 0 12px; font-size: 15px; cursor: pointer;
}
.cw-filter-go:hover { filter: brightness(1.05); }
.cw-casino-search { margin-left: auto; }
.cw-filter-tabs { align-items: center; }
.cw-filter-tabs .cw-filter-clear { padding-bottom: 0; align-self: center; font-size: 13px; font-weight: 700; color: var(--cw-red); }
@media (max-width: 640px) {
	.cw-casino-search { margin-left: 0; width: 100%; }
	.cw-casino-search .cw-filter-input { flex: 1; min-width: 0; }
	.cw-filter-search { flex: 1 1 100%; }
	.cw-filter-search .cw-filter-searchbox { width: 100%; }
	.cw-filter-search .cw-filter-input { flex: 1; min-width: 0; }
}

/* ---------- 篩選列標籤勾選（v1.10.0） ---------- */
.cw-filter-checks { display: inline-flex; gap: 12px; align-items: center; padding: 8px 0; }
.cw-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--cw-ink); cursor: pointer; white-space: nowrap; }
.cw-check input { accent-color: var(--cw-gold); width: 16px; height: 16px; margin: 0; }

/* ---------- 版型徽章：APP / 純USDT / 已關站（v1.12.0） ---------- */
.cw-badge-app { background: #e8ecfb; color: #2f54d6; }
.cw-badge-usdt { background: #fdf5dd; color: #b8860b; }
.cw-badge-closed { background: #fdeaea; color: var(--cw-red); }

/* ---------- 遊戲頁橫幅（v1.13.0，沿用娛樂城 hero） ---------- */
.cw-game-hero-tags { margin: 2px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.cw-hero-tag {
	display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
	background: rgba(255,255,255,.12); color: #dfe6f3; border: 1px solid rgba(255,255,255,.18);
}
.cw-hero-tag:hover { background: rgba(212,164,55,.25); color: var(--cw-gold-2); border-color: rgba(212,164,55,.5); }
.cw-game-hero-cta { display: flex; flex-direction: column; gap: 8px; }
.cw-game-hero-cta .cw-btn { text-align: center; }
@media (max-width: 899px) { .cw-game-hero-cta { flex-direction: row; } .cw-game-hero-cta .cw-btn { flex: 1; } }

/* ---------- 已關站按鈕（v1.16.1） ---------- */
.cw-btn-closed {
	background: #fdeaea; color: var(--cw-red); border: 2px solid rgba(214, 69, 69, .45);
	cursor: default; user-select: none;
}
.cw-btn-closed:active { transform: none; }

/* ---------- 文章上一篇/下一篇（v1.18.1） ---------- */
.cw-post-nav {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 8px;
}
.cw-post-nav-item {
	display: block; padding: 12px 16px; background: var(--cw-white);
	border: 1px solid var(--cw-line); border-radius: var(--cw-radius); box-shadow: var(--cw-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.cw-post-nav-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,27,51,.12); }
.cw-post-nav-next { text-align: right; }
.cw-post-nav-label { display: block; font-size: 12px; font-weight: 700; color: var(--cw-gold); margin-bottom: 2px; }
.cw-post-nav-title {
	display: block; font-size: 14px; font-weight: 700; color: var(--cw-ink);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 560px) { .cw-post-nav { grid-template-columns: 1fr; } .cw-post-nav-next { text-align: left; } }

/* ---------- 區塊標題 emoji 動畫（v1.20.0） ----------
 * 純 CSS、無 JS；使用者系統設定「減少動態效果」時全部停用 */
.cw-emoji { display: inline-block; position: relative; line-height: 1; transform-origin: 50% 60%; }

/* 🔥 火焰晃動＋微光 */
.cw-emoji-fire { animation: cwFlicker 1.2s ease-in-out infinite; }
@keyframes cwFlicker {
	0%, 100% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 3px rgba(255, 140, 0, .55)); }
	25%      { transform: scale(1.08, .94) rotate(2deg); filter: drop-shadow(0 0 8px rgba(255, 165, 60, .9)); }
	50%      { transform: scale(.95, 1.07) rotate(-1deg); filter: drop-shadow(0 0 5px rgba(255, 120, 0, .7)); }
	75%      { transform: scale(1.05, .98) rotate(1.5deg); filter: drop-shadow(0 0 9px rgba(255, 190, 90, .95)); }
}

/* 🏛️ 壓扁 50% 再彈回 100%（果凍式，底部為支點） */
.cw-emoji-bounce { animation: cwSquash 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cwSquash {
	0%, 60%, 100% { transform: scale(1, 1); }
	18%           { transform: scale(1.18, .5); }
	34%           { transform: scale(.94, 1.1); }
	46%           { transform: scale(1.04, .96); }
}

/* 🎰 內部數字滾動：主題內建 Noto 拉霸機圖（跨平台一致）＋視窗位置疊滾動數字捲軸 */
.cw-emoji-slot { position: relative; width: 1.15em; height: 1.05em; vertical-align: -0.12em; }
.cw-emoji-slot .cw-slot-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cw-emoji-slot .cw-reel {
	position: absolute; left: 14%; top: 42%; width: 60%; height: 33%;
	overflow: hidden; background: #fdf8ec; border-radius: 2px; font-style: normal;
	box-shadow: inset 0 2px 3px rgba(60, 30, 0, .35);
}
.cw-emoji-slot .cw-reel::before {
	content: "7 7 7\A 1 4 9\A 3 8 2\A 6 5 1\A 7 7 7";
	position: absolute; left: 0; top: 0; width: 100%;
	white-space: pre; text-align: center;
	font-family: "Courier New", monospace; font-weight: 700; font-size: .21em; line-height: 1.7;
	color: #b3251e;
	animation: cwReel 1.4s linear infinite;
}
@keyframes cwReel {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-80%); } /* 5 行、首尾同行 → 無縫循環 */
}

/* 📖 書頁翻動（覆蓋一張會翻的小書頁） */
.cw-emoji-book { perspective: 90px; }
.cw-emoji-book::after {
	content: ''; position: absolute; left: 50%; top: 16%; width: 34%; height: 58%;
	background: linear-gradient(100deg, #fffdf6 0%, #f1ead8 85%, #e2d9c2 100%);
	border-radius: 1px 3px 3px 1px; box-shadow: 0 0 2px rgba(80, 60, 20, .25);
	transform-origin: left center; backface-visibility: hidden;
	animation: cwPageFlip 2.6s ease-in-out infinite;
}
@keyframes cwPageFlip {
	0%, 12%   { transform: rotateY(0deg); opacity: 0; }
	18%       { transform: rotateY(-15deg); opacity: 1; }
	58%       { transform: rotateY(-150deg); opacity: 1; }
	72%, 100% { transform: rotateY(-175deg); opacity: 0; }
}

/* ❓ 水平旋轉（硬幣式） */
.cw-emoji-flip { animation: cwFlipY 3.6s cubic-bezier(.5, .05, .35, 1) infinite; }
@keyframes cwFlipY {
	0%        { transform: rotateY(0deg); }
	50%, 100% { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.cw-emoji, .cw-emoji::after, .cw-emoji .cw-reel::before { animation: none !important; }
}

/* ---------- 首頁熱門區塊顯示數量（v1.20.1） ----------
 * 伺服器一律輸出最大數量（場館6／遊戲12／文章4），桌機用 CSS 隱藏多出的：
 * 桌機一行五列 → 場館 5、遊戲 10；文章三欄 → 3。手機全部顯示（場館6、遊戲12、文章4） */
@media (min-width: 1000px) {
	.cw-home-venues > *:nth-child(n+6) { display: none; }
	.cw-home-games > *:nth-child(n+11) { display: none; }
}
@media (min-width: 700px) {
	.cw-home-posts > *:nth-child(n+4) { display: none; }
}

/* ---------- 深色模式（v1.21.0，護眼）：內文區維持淺色 ----------
 * 由變數統一換色；html.cw-dark 由頁首腳本依 localStorage 掛上（無閃爍） */
html.cw-dark {
	--cw-bg: #0e1424;
	--cw-white: #182138;
	--cw-ink: #e3e8f3;
	--cw-ink-2: #9aa6bf;
	--cw-line: #28345a;
	--cw-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
html.cw-dark .cw-filter-select,
html.cw-dark .cw-filter-input { background: #121b30; color: var(--cw-ink); }
html.cw-dark .cw-view-btn:hover { background: #202b49; }
html.cw-dark .cw-tag, html.cw-dark .cw-badge:not([class*=" cw-badge-"]) { background: #223052; color: #b9c4dd; }
html.cw-dark .cw-tag:hover { background: var(--cw-gold); color: #21150a; }
html.cw-dark .cw-card-thumb, html.cw-dark .cw-card-thumb-sq { background: #fff; } /* 商標圖維持白底完整顯示 */
/* 內文閱讀區：維持淺色紙感（護眼重點是周圍暗、內文仍清晰） */
html.cw-dark .cw-entry-content {
	background: #f7f9fc; color: #22293a;
	padding: 16px 18px; border-radius: 12px;
}
html.cw-dark .cw-entry-content a { color: #1b56b8; }
html.cw-dark .cw-panel .cw-entry-content { padding: 0; background: transparent; }
html.cw-dark .cw-panel:has(.cw-entry-content) { background: #f7f9fc; color: #22293a; border-color: #dfe5ef; }

/* 主題切換鈕（v1.26.3：移至右下角浮動，位於返回頂部按鈕正上方；SVG 圖示不受平台 emoji 影響）
 * 直徑與返回頂部按鈕相同：手機 44px、桌機 48px */
.cw-theme-toggle {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--cw-line); background: var(--cw-white); color: var(--cw-navy);
	display: flex; align-items: center; justify-content: center; line-height: 1;
	box-shadow: 0 4px 14px rgba(16, 27, 51, .3);
	transition: bottom .25s ease, border-color .15s, color .15s, box-shadow .15s;
}
.cw-theme-toggle:hover { border-color: var(--cw-gold); color: var(--cw-gold); box-shadow: 0 6px 18px rgba(16, 27, 51, .35); }
.cw-theme-toggle .cw-theme-sun { display: none; }
html.cw-dark .cw-theme-toggle { color: var(--cw-gold-2); }
html.cw-dark .cw-theme-toggle .cw-theme-sun { display: block; }
html.cw-dark .cw-theme-toggle .cw-theme-moon { display: none; }
/* 返回頂部出現時（捲動後）自動上移一格，兩顆鈕垂直排列不重疊 */
body:has(.cw-backtop.is-visible) .cw-theme-toggle { bottom: 72px; }
@media (min-width: 900px) {
	.cw-theme-toggle { right: 28px; bottom: 28px; width: 48px; height: 48px; }
	body:has(.cw-backtop.is-visible) .cw-theme-toggle { bottom: 86px; }
}
html.cw-dark .cw-btn-outline { border-color: #6b7ea8; color: #c9d4ea; }
html.cw-dark .cw-btn-outline:hover { background: #2a3757; color: #fff; border-color: #8fa2c9; }
html.cw-dark .cw-btn-closed { background: #3a1f24; border-color: #7c3b3b; color: #f0a0a0; }
/* 深色模式：一般連結提高對比（v1.21.1）——部落格分類、哪裡可以玩等深藍連結在深色底看不清 */
html.cw-dark a { color: #9fb6e4; }
html.cw-dark a:hover { color: var(--cw-gold-2); }
html.cw-dark .cw-entry-content a { color: #1b56b8; } /* 內文淺色紙面內維持深藍連結 */
html.cw-dark .cw-card-title a, html.cw-dark .cw-casino-card-title a, html.cw-dark .cw-postrow-title a { color: var(--cw-ink); }
html.cw-dark .cw-btn-gold { color: #21150a; }
html.cw-dark .cw-btn-gold:hover { color: #000; }

/* ---------- 遊戲詳情：規格表位置（v1.22.0） ----------
 * 手機＝頂欄與內文之間；桌機＝右側欄（同一份輸出、CSS 控制顯示） */
.cw-specs-mobile { display: none; }
@media (max-width: 899px) {
	.cw-specs-mobile { display: block; margin-bottom: 20px; }
	.cw-specs-desktop { display: none; }
}
/* 深色模式：麵包屑對比修正（v1.23.0）——目前頁面用了未換色的 --cw-navy 深字 */
html.cw-dark .cw-breadcrumbs a { color: #9fb6e4; }
html.cw-dark .cw-breadcrumbs a:hover { color: var(--cw-gold-2); }
html.cw-dark .cw-breadcrumbs [aria-current] { color: var(--cw-ink); }
html.cw-dark .cw-breadcrumbs li:not(:last-child)::after { color: #55627f; }
/* 遊戲規格（v1.24.2）：桌機側欄不顯示廠商列（頂欄已有）；特色遊戲綠色勾 */
.cw-specs-desktop .cw-spec-provider { display: none; }
.cw-spec-feature td { color: var(--cw-green); font-weight: 800; font-size: 16px; }
/* CSS 畫的綠勾（v1.25.0）：不受各平台字型/emoji 影響，永遠是綠色 */
.cw-checkmark {
	display: inline-block; width: 13px; height: 7px;
	border-left: 3px solid var(--cw-green); border-bottom: 3px solid var(--cw-green);
	transform: rotate(-45deg) translateY(-2px);
}

/* ---------- 深色模式補正（v1.26.1） ----------
 * 這些元件原本寫死淺色底，深色模式下文字轉亮 → 淺底亮字幾乎看不見。
 * 一律改為深色底＋原色系描邊，維持「綠＝優點、紅＝缺點」的辨識度。 */
html.cw-dark .cw-pros { background: rgba(30, 158, 87, .10); border-color: rgba(30, 158, 87, .38); }
html.cw-dark .cw-cons { background: rgba(214, 69, 69, .10); border-color: rgba(214, 69, 69, .38); }
html.cw-dark .cw-pros h3 { color: #6ee7b7; }
html.cw-dark .cw-cons h3 { color: #fda4af; }
html.cw-dark .cw-pros li, html.cw-dark .cw-cons li { color: var(--cw-ink); }
html.cw-dark .cw-typeblock { background: #1b2540; border-color: var(--cw-line); }
html.cw-dark .cw-typeblock-title a { color: var(--cw-gold-2); }
html.cw-dark .cw-typeblock-venues a { background: #223052; border-color: #33436e; color: #cdd8ee; }
html.cw-dark .cw-typeblock-venues a:hover { border-color: var(--cw-gold); color: var(--cw-gold); }
html.cw-dark .cw-featurelist li { background: #1b2540; border-color: var(--cw-line); color: var(--cw-ink); }
html.cw-dark .cw-empty-admin { background: #2a2416; border-color: #6b5a2b; }
html.cw-dark .cw-view-btn:hover { background: #202b49; }

/* 手機抽屜選單遮罩：預設不顯示（僅科技感風格使用） */
.cw-nav-backdrop { display: none; }

/* ---------- LOGO 底色（v1.28.0） ----------
 * 去背 LOGO：白字 LOGO 自動配深色底、深色 LOGO 配白底（可在娛樂城編輯頁手動指定）。
 * 放在檔案最後以覆蓋深色模式的 `.cw-card-thumb { background:#fff }` 等既有規則。 */
.cw-logo-bg-dark,
html.cw-dark .cw-logo-bg-dark { background: #16213c; }
.cw-logo-bg-light,
html.cw-dark .cw-logo-bg-light { background: #fff; }
/* 深色底的 LOGO 框補一圈細描邊，避免與深色卡片背景糊在一起 */
.cw-card-thumb.cw-logo-bg-dark,
.cw-casino-card-logo.cw-logo-bg-dark,
.cw-casino-hero-logo.cw-logo-bg-dark,
.cw-venue-logo.cw-logo-bg-dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
