@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Noto+Serif+TC:wght@400;500;700;900&family=Cinzel:wght@600;800&display=swap');

:root {
  --paper: #f4ecd8;
  --paper-dark: #e8dfc2;
  --ink: #1a1a1a;
  --ink-soft: #2b2b2b;
  --muted: #6b6257;
  --accent: #8b0000;
  --accent-soft: #b03a2e;
  --rule: #1a1a1a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(139, 0, 0, 0.04) 0, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.05) 0, transparent 40%),
    var(--paper);
  color: var(--ink);
  font-family: var(--user-font, "Noto Serif TC"), Georgia, "Times New Roman", serif;
  line-height: var(--body-line-height, 1.65);
  min-height: 100vh;
}

/* ===== Masthead ===== */
.masthead {
  border-bottom: 5px double var(--rule);
  padding: 12px 32px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--paper-dark), var(--paper));
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  text-transform: uppercase;
}
.masthead-top .today-date { font-weight: 700; color: var(--ink); }
.masthead-top .badge-new {
  background: var(--accent);
  color: var(--paper);
  padding: 2px 10px;
  font-family: "Cinzel", monospace;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 11px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}
.title {
  font-family: "Cinzel", "Playfair Display", "Noto Serif TC", serif;
  font-size: var(--paper-title-size, clamp(30px, 4.8vw, 52px));
  font-weight: 900;
  letter-spacing: 4px;
  margin: 6px 0 6px;
  line-height: 1.05;
}
/* v6.3: two-line title (中文 + 英文) so it doesn't collide with the
   left-floating weather block. Each span is a block-level row. */
.title .title-line { display: block; }
.title .title-en {
  font-size: 0.58em;      /* English row ~58% of main title size */
  letter-spacing: 5px;
  font-style: italic;
  font-weight: 800;
  opacity: 0.88;
  margin-top: 2px;
}
.tagline {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 2px;
}
.nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  letter-spacing: 1px;
}
.nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#update-btn {
  background: var(--paper);
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 7px 18px;
  font-family: "Cinzel", inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 var(--accent);
  transition: all 0.12s;
}
#update-btn:hover {
  background: var(--accent);
  color: var(--paper);
  transform: rotate(-1.5deg) translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(139, 0, 0, 0.5);
}
#update-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0%, 100% { background: var(--paper); }
  50% { background: var(--paper-dark); }
}

/* Progress under the update button */
.update-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.progress-track {
  width: 120px;
  height: 2px;
  background: rgba(139, 0, 0, 0.12);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 10px,
    var(--accent-soft) 10px 20px
  );
  transition: width 0.4s ease;
  animation: slide 1s linear infinite;
}
.progress-bar.err { background: #666; animation: none; }
@keyframes slide {
  from { background-position: 0 0; }
  to   { background-position: 20px 0; }
}
.progress-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  height: 12px;
  min-width: 60px;
  text-align: center;
}

main { max-width: var(--paper-max-width, 1180px); margin: 0 auto; padding: 28px 32px 48px; }

/* ===== Headline ===== */
.headline {
  text-align: center;
  padding-top: 12px;
}
.headline h2 {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  border-top: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  padding: 20px 12px;
  margin: 0;
  position: relative;
}
.headline h2::before,
.headline h2::after {
  content: "✦";
  color: var(--accent);
  margin: 0 16px;
  font-size: 0.7em;
  vertical-align: middle;
}
.headline .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 1px;
}

/* ===== Digest ===== */
.digest {
  margin: 32px auto 36px;
  max-width: 820px;
  padding: 20px 28px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.4);
  position: relative;
}
.digest::before {
  content: "社 論";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--paper);
  padding: 0 10px;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--accent);
}
.digest .markdown {
  font-family: inherit;
  background: transparent;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.digest h3 {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 18px 0 8px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 4px;
}
.digest h3:first-child { margin-top: 0; }
.digest h4 {
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}
.digest ul {
  padding-left: 22px;
  margin: 6px 0 12px;
}
.digest li {
  margin: 4px 0;
  list-style-type: "✦  ";
}
.digest strong { color: var(--accent); }
.commentary strong { color: var(--accent); font-weight: 700; }
.commentary { line-height: 1.75; white-space: pre-line; }
.digest .markdown { white-space: pre-line; }

/* ===== Items / Columns ===== */
.items-title {
  display: flex; align-items: center; gap: 18px;
  font-family: "Cinzel", serif;
  letter-spacing: 6px;
  font-size: 16px;
  margin: 40px 0 20px;
  color: var(--accent);
}
/* 兩側細線改成 flex 填空：線只長在字的兩旁，永遠不會壓到字（舊版絕對定位 30% 會蓋到長標題） */
.items-title::before,
.items-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.columns {
  column-count: var(--layout-columns, 2);
  column-gap: var(--col-gap, 36px);
  column-rule: 1px solid var(--rule);
}
@media (max-width: 780px) {
  .columns { column-count: 1; }
}

/* ===== Category groups (F4) ===== */
.cat-group {
  margin: 30px 0;
  padding-top: 12px;
  border-top: 2px solid var(--group-color, var(--rule));
}
.cat-heading {
  font-family: "Cinzel", "Playfair Display", serif;
  letter-spacing: 6px;
  font-size: 18px;
  color: var(--group-color, var(--accent));
  text-transform: uppercase;
  text-align: center;
  margin: 6px 0 18px;
  position: relative;
}
.cat-heading span {
  background: var(--paper);
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.cat-heading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--group-color, var(--rule));
  opacity: 0.6;
  z-index: 0;
}
.cat-heading .cat-count {
  font-family: "Cinzel", monospace;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  background: var(--paper);
  position: relative;
  z-index: 1;
  padding: 0 6px;
}
.cat-group .item h3 { font-size: var(--item-title-size, 19px); }
.cat-group .item { padding: var(--item-padding, 14px) 0; }

body.is-preview { pointer-events: auto; }
body.is-preview main { padding: 16px 24px 40px; }
.paper.preview-mode .headline h2 { font-size: 30px; padding: 14px 8px; }

.item {
  break-inside: avoid;
  border-bottom: 1px dashed var(--rule);
  padding: 14px 0 var(--item-gap, 16px);
  display: block;
}
.item:last-child { border-bottom: none; }
.item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.score {
  background: var(--score-low, var(--ink));
  color: var(--paper);
  padding: 2px 8px;
  font-weight: 900;
  font-family: "Cinzel", monospace;
  font-size: 12px;
  letter-spacing: 0;
}
.score.mid  { background: var(--score-mid,  #2e5d7a); }
.score.high { background: var(--score-high, var(--accent)); }
.source { font-weight: 700; color: var(--ink-soft); }
.cat {
  border: 1px solid var(--muted);
  padding: 1px 6px;
  font-size: 10px;
}
.item h3 {
  margin: 6px 0;
  font-size: 19px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  line-height: 1.3;
}
.item-thumb {
  display: block;
  margin: 4px 0 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-dark);
  filter: sepia(0.15) contrast(1.02);
}
.item-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.item-thumb:hover img { transform: scale(1.03); }
.item a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom;
  background-size: 0 2px;
  transition: background-size 0.2s, color 0.2s;
}
.item a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}
.commentary {
  font-size: 14px;
  white-space: pre-wrap;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}
.commentary strong { color: var(--accent); }
.raw {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}

/* ===== Welcome ===== */
.welcome {
  text-align: center;
  padding: 56px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.welcome h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 12px;
}
.welcome ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 560px;
  margin: 24px auto;
}
.welcome li {
  border-bottom: 1px dashed var(--rule);
  padding: 6px 0;
}
.welcome li::before { content: "✦ "; color: var(--accent); }

/* ===== History ===== */
.history-toolbar {
  max-width: 860px;
  margin: 0 auto 16px;
  text-align: right;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  font-family: "Cinzel", inherit;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--accent); color: var(--paper); }

.history-list {
  list-style: none;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
}
.history-list li {
  display: grid;
  grid-template-columns: 140px 1fr auto 28px;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  font-variant-numeric: tabular-nums;
}
.history-list li.empty { opacity: 0.55; }
.history-list .edate {
  font-family: "Cinzel", monospace;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 1px;
}
.history-list .ehead { font-weight: 600; }
.history-list .ecount {
  color: var(--muted);
  font-size: 13px;
  min-width: 60px;
  text-align: right;
}
.history-list a { color: var(--ink); text-decoration: none; }
.history-list a:hover { color: var(--accent); }
.row-del { margin: 0; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  border-radius: 2px;
  padding: 0;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.live-tag {
  background: var(--accent);
  color: var(--paper);
  padding: 1px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-left: 8px;
}
.empty-day {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-day h2 { font-family: "Playfair Display", serif; }

/* item topics */
.topics { margin-top: 6px; }
.topics .tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  margin-right: 4px;
  margin-top: 2px;
  border: 1px solid var(--muted);
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

/* ===== Sources ===== */
.sources-page { max-width: 1200px; margin: 0 auto; }
.sources-page h2 {
  font-family: "Playfair Display", serif;
  text-align: center;
  letter-spacing: 2px;
}
.sources-actions {
  text-align: center;
  margin: 24px 0;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 20px;
  font-family: "Cinzel", inherit;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent); }
.sources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
}
.sources-table th, .sources-table td {
  border-bottom: 1px solid var(--rule);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;  /* 所有 cell 強制單行,避免狀態/啟用按鈕被擠到下一行 */
}
.sources-table th { background: var(--paper-dark); letter-spacing: 2px; font-size: 12px; }
.sources-table .type-generated { color: var(--accent); font-weight: 700; }
.sources-table .source-name {
  border-bottom: 1px dotted var(--muted);
  cursor: help;
  white-space: nowrap;
}
/* URL cell:過長截斷而非換行,避免整列被撐爆 */
.sources-table td a {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.toggle-form { display: inline; }
.toggle-btn {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.toggle-btn.enabled { background: var(--ink); color: var(--paper); }
.toggle-btn:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* checkbox 樣式的啟用開關(批次儲存模式) */
.toggle-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.toggle-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-check .toggle-check-label {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  transition: all 0.15s;
}
.toggle-check.is-on .toggle-check-label {
  background: #2e5d7a;       /* 啟用 → 藍底白字(沿用報紙 score-mid 藍) */
  color: var(--paper);
  border-color: #2e5d7a;
}
.toggle-check:hover .toggle-check-label {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
/* 已啟用狀態 hover:保留藍色基底,稍亮表示「再點會關閉」 */
.toggle-check.is-on:hover .toggle-check-label {
  background: #3d7aa0;
  border-color: #3d7aa0;
}

/* 失效來源標記(只剩 emoji,hover 看原因) */
.source-broken {
  display: inline-block;
  font-size: 16px;
  cursor: help;
  white-space: nowrap;
}

/* 底部儲存列 */
.sources-save-bar {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 14px 8px;
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.sources-dirty-hint {
  margin-right: auto;
  color: var(--accent);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 1px;
}
.sources-save-bar .btn-primary[disabled],
.sources-save-bar .btn-secondary[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.btn-secondary:hover:not([disabled]) {
  background: var(--ink);
  color: var(--paper);
}

/* ===== Add Source ===== */
.add-source-form {
  max-width: 640px;
  margin: 32px auto;
  padding: 24px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.4);
}
.add-source-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}
.add-source-form input[type="text"],
.add-source-form input[type="url"],
.add-source-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
}
.add-source-form textarea { min-height: 240px; font-family: "Consolas", monospace; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin-top: -10px; margin-bottom: 16px; }
.code-preview {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px;
  font-family: "Consolas", monospace;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-x: auto;
  border-radius: 2px;
  margin: 10px 0;
  max-height: 360px;
  overflow-y: auto;
}
.flash {
  padding: 10px 16px;
  margin: 12px 0;
  border: 1px solid;
}
.flash.ok { border-color: #2e7d32; color: #2e7d32; background: #e8f5e9; }
.flash.err { border-color: var(--accent); color: var(--accent); background: #fff2f0; }

/* ===== Footer ===== */
footer {
  border-top: 3px double var(--rule);
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 48px;
}

/* ===== Overlay / loading ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(244, 236, 216, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  text-align: center;
}
.loading-overlay.active { display: flex; }
.loading-overlay .spell {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--accent);
  letter-spacing: 4px;
  animation: float 2s ease-in-out infinite;
}
.loading-overlay .hint {
  margin-top: 16px;
  max-width: 420px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(-8px); opacity: 1; }
}

.muted { color: var(--muted); }

/* ===== Settings ===== */
.settings-page { max-width: 860px; margin: 0 auto; }
.settings-form fieldset {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.4);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.settings-form legend {
  padding: 0 12px;
  font-family: "Cinzel", serif;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 3px;
}
.settings-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 13px;
}
.settings-form label.check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
}
.settings-form select,
.settings-form input[type="text"],
.settings-form input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
}
.settings-form input[type="color"] {
  width: 64px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
}
.color-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.color-row > div { flex: 0 0 auto; }
.settings-form h4 {
  margin: 24px 0 8px;
  letter-spacing: 2px;
  font-family: "Cinzel", serif;
  color: var(--ink-soft);
}
.reco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}
.reco-table th, .reco-table td {
  border-bottom: 1px dashed var(--rule);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
.reco-table th {
  background: var(--paper-dark);
  letter-spacing: 2px;
  font-size: 11px;
}
.reco-table code {
  font-family: "Consolas", monospace;
  font-size: 12px;
}
.copy-cmd {
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 8px;
  display: inline-block;
  user-select: all;
}
.copy-cmd:hover { background: var(--accent); }
.settings-actions {
  text-align: center;
  margin: 32px 0 48px;
}

/* ===== GM Debug ===== */
.gm-page { max-width: 1100px; margin: 0 auto; }
.gm-page h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 2px;
  text-align: center;
}
.gm-picker {
  text-align: center;
  margin: 16px 0 8px;
}
.gm-picker select {
  padding: 6px 12px;
  font-family: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 14px;
}
.gm-stats {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.gm-reset-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px dashed var(--accent);
  background: rgba(139, 0, 0, 0.04);
}

.gm-bg-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.45);
  margin: 0 auto 14px;
  max-width: 720px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.gm-bg-banner.idle {
  border-color: var(--muted);
  opacity: 0.75;
}
.gm-bg-banner.working {
  border-color: var(--accent);
  background: rgba(139, 0, 0, 0.05);
}
.gm-bg-banner .bg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.gm-bg-banner .bg-dot.active {
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
.gm-bg-banner .bg-msg { flex: 1; }
.gm-commentary.empty {
  color: var(--muted);
  font-style: italic;
  border-left-color: var(--muted);
  opacity: 0.7;
}
.gm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gm-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.35);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.gm-row.is-dup {
  opacity: 0.55;
  background: repeating-linear-gradient(
    45deg,
    rgba(139, 0, 0, 0.04) 0 8px,
    transparent 8px 16px
  );
}
.gm-img {
  background: var(--paper-dark);
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gm-img .muted { font-size: 12px; letter-spacing: 1px; }
.gm-body { min-width: 0; }
.gm-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.gm-head .gm-id {
  font-family: "Cinzel", monospace;
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
}
.gm-head .gm-score b { color: var(--accent); }
.gm-head .gm-cat {
  border: 1px solid var(--muted);
  padding: 1px 6px;
}
.gm-head .gm-src { font-weight: 700; color: var(--ink-soft); }
.gm-head .gm-dup-tag {
  background: var(--accent);
  color: var(--paper);
  padding: 1px 6px;
  font-weight: 800;
}
.gm-head .gm-time {
  margin-left: auto;
  font-family: "Cinzel", monospace;
  font-size: 10px;
}
.gm-body h4 {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  margin: 4px 0 4px;
  font-size: 18px;
}
.gm-body h4 a { color: var(--ink); text-decoration: none; }
.gm-body h4 a:hover { color: var(--accent); }
.gm-url {
  font-size: 11px;
  margin-bottom: 6px;
  word-break: break-all;
}
.gm-url a { color: var(--muted); text-decoration: none; }
.gm-url a:hover { color: var(--accent); }
.gm-raw {
  margin: 6px 0;
  font-size: 12px;
}
.gm-raw summary {
  cursor: pointer;
  color: var(--muted);
  letter-spacing: 1px;
  font-size: 11px;
}
.gm-raw pre {
  background: rgba(0, 0, 0, 0.04);
  border-left: 2px solid var(--muted);
  padding: 8px 10px;
  font-family: "Consolas", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  margin: 6px 0;
  max-height: 180px;
  overflow: auto;
}
.gm-commentary {
  font-size: 13px;
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin: 6px 0;
  white-space: pre-line;
}
.gm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--muted);
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost.danger { color: #8b0000; }
.btn-ghost.danger:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: wait;
}
.gm-status {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.gm-status.working { color: var(--accent); animation: pulse 1.6s infinite; }
.gm-status.ok { color: #2e7d32; }
.gm-status.err { color: var(--accent); }
@media (max-width: 760px) {
  .gm-row { grid-template-columns: 1fr; }
  .gm-img { max-width: 240px; }
}

/* ===== Layout editor ===== */
.layout-page {
  display: grid;
  grid-template-columns: minmax(360px, 480px) 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8px;
}
.layout-form h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.layout-form fieldset {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.4);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.layout-form legend {
  padding: 0 10px;
  font-family: "Cinzel", serif;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 13px;
}
.layout-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink);
}
.theme-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.theme-presets button { font-size: 13px; padding: 6px 12px; }
.layout-form .color-row { margin-bottom: 10px; }
.layout-form label.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}
.layout-form select,
.layout-form input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  margin-top: 4px;
}
.cat-editor {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.cat-editor li {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
}
.cat-editor li:last-child { border-bottom: none; }
.cat-editor .move-up,
.cat-editor .move-down {
  background: transparent;
  border: 1px solid var(--muted);
  cursor: pointer;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.cat-editor .move-up:hover,
.cat-editor .move-down:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-editor input[type="color"] {
  width: 32px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.cat-editor input.cat-label {
  flex: 0 0 110px;
  padding: 4px 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: inherit;
  font-size: 13px;
}
.cat-editor .cat-key {
  flex: 1;
  font-family: "Consolas", monospace;
  font-size: 11px;
}
.cat-editor .check-inline {
  font-size: 11px;
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
}
.layout-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  flex-wrap: wrap;
}
.layout-actions > .save-indicator {
  margin-right: auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", monospace;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  border: 1px dashed var(--muted);
  border-radius: 3px;
}
.save-indicator.saving { color: var(--accent); border-color: var(--accent); }
.save-indicator.ok { color: #2e7d32; border-color: #2e7d32; }
.save-indicator.err { color: var(--accent); border-color: var(--accent); }

/* v6.3.1 — uniform button sizing within layout action row */
.layout-actions > .btn-primary,
.layout-actions > .btn-secondary,
.layout-actions form > .btn-ghost,
.layout-actions > a {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}
.layout-actions form { display: inline-flex; }
.layout-preview {
  position: sticky;
  top: 12px;
  height: calc(100vh - 30px);
}
#preview-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  border: 1px dashed var(--rule);
}
@media (max-width: 960px) {
  .layout-page { grid-template-columns: 1fr; }
  .layout-preview { position: static; height: 60vh; }
}

/* ===== Trends ===== */
.trends-page { max-width: 900px; margin: 0 auto; }
.trends-page .sub-title {
  font-family: "Cinzel", serif;
  letter-spacing: 4px;
  color: var(--accent);
  margin: 36px 0 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}
.persistent-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.persistent-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  background: rgba(139, 0, 0, 0.06);
}
.persistent-list .days {
  font-family: "Cinzel", monospace;
  color: var(--muted);
  font-size: 12px;
}
.topic-cloud {
  line-height: 2.4;
  padding: 20px 12px;
  text-align: center;
}
.cloud-tag {
  display: inline-block;
  margin: 4px 8px;
  color: var(--ink-soft);
  font-weight: 700;
  font-family: "Playfair Display", "Noto Serif TC", serif;
}
.cloud-tag sub {
  color: var(--accent);
  font-size: 60%;
  margin-left: 2px;
}
.tag.big {
  border: none;
  background: var(--accent);
  color: var(--paper);
  padding: 3px 10px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: none;
}

/* ===== Auto-update Banner ===== */
.auto-update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: var(--paper);
  padding: 16px 32px;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
  z-index: 1000;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auto-update-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.auto-update-text {
  font-size: 14px;
  letter-spacing: 1px;
  font-family: "Noto Serif TC", serif;
  flex: 1;
  text-align: center;
}

#auto-update-countdown {
  font-weight: 900;
  font-size: 18px;
  font-family: "Cinzel", monospace;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.cancel-auto-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  font-family: "Noto Serif TC", serif;
}

.cancel-auto-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.cancel-auto-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Commentary Loading Animation ===== */
.commentary-pending {
  color: #999;
  font-style: italic;
  font-size: 0.9em;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.writing-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ddd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* New item flash animation when commentary appears */
@keyframes item-flash {
  0% {
    background: transparent;
    box-shadow: none;
  }
  15% {
    background: rgba(255, 240, 100, 0.4);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.5);
  }
  30% {
    background: rgba(255, 240, 100, 0.2);
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

.item-newly-revealed {
  animation: item-flash 1.5s ease-out;
}

/* ===== Magic Page Reveal Overlay ===== */
.magic-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 45%,
    rgba(255, 215, 60, 0.92) 0%,
    rgba(190, 80, 0, 0.88) 28%,
    rgba(100, 0, 0, 0.92) 55%,
    rgba(0, 0, 0, 0.97) 100%);
  animation: magic-overlay-life 2.2s ease-out forwards;
}

@keyframes magic-overlay-life {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  65%  { opacity: 1; }
  100% { opacity: 0; }
}

.magic-reveal-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.magic-reveal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 220, 80, 0.8);
  transform: translate(-50%, -50%);
  animation: magic-ring 2.2s ease-out forwards;
  box-shadow: 0 0 40px rgba(255, 180, 0, 0.5), inset 0 0 40px rgba(255, 180, 0, 0.2);
}

@keyframes magic-ring {
  0%   { width: 0; height: 0; opacity: 1; }
  50%  { width: 70vmin; height: 70vmin; opacity: 0.6; }
  100% { width: 130vmin; height: 130vmin; opacity: 0; }
}

.magic-reveal-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: magic-text-life 2.2s ease-out forwards;
}

@keyframes magic-text-life {
  0%   { opacity: 0; transform: scale(0.6) translateY(16px); }
  18%  { opacity: 1; transform: scale(1.06) translateY(0); }
  65%  { opacity: 1; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(0.97); }
}

.magic-reveal-title {
  font-family: "Cinzel", serif;
  font-size: clamp(22px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 5px;
  color: rgba(255, 235, 120, 1);
  text-shadow:
    0 0 15px rgba(255, 200, 0, 1),
    0 0 35px rgba(255, 140, 0, 0.8),
    0 0 70px rgba(200, 60, 0, 0.5);
}

.magic-reveal-sub {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(13px, 2.5vw, 18px);
  letter-spacing: 3px;
  color: rgba(255, 215, 140, 0.9);
  text-shadow: 0 0 12px rgba(255, 160, 0, 0.7);
}

/* ===== View Toggle ===== */
.view-toggle {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.view-toggle .toggle-btn {
  padding: 8px 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-toggle .toggle-btn:hover {
  background: var(--paper-dark);
}

.view-toggle .toggle-btn.active {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  font-weight: 600;
}

/* ===== Source Group View ===== */
.source-group {
  margin-bottom: 36px;
  page-break-inside: avoid;
}

.source-heading {
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 24px 0 16px;
  padding: 0;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.source-count {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.source-editorial {
  background: var(--paper-dark);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 12px 0 18px 0;
  font-size: var(--source-editorial-size, 14px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
}

.source-editorial p { margin: 8px 0; }
.source-editorial p:first-child { margin-top: 0; }
.source-editorial p:last-child { margin-bottom: 0; }

/* ===== 標題① masthead 天氣方塊 ===== */
.masthead { position: relative; }
.masthead-top .issue-no { font-weight: 700; color: var(--ink); }
.masthead-weather {
  position: absolute;
  left: 24px;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px 18px;
  max-width: 340px;
  text-align: left;
}
.masthead-weather .mw-icon {
  width: 78px; height: 78px; object-fit: contain;
  flex-shrink: 0;
}
.masthead-weather .mw-text { display: flex; flex-direction: column; line-height: 1.28; }
.masthead-weather .mw-city { font-family: "Cinzel", serif; font-weight: 800; font-size: 21px; color: var(--ink); }
.masthead-weather .mw-date { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.masthead-weather .mw-cond { font-size: 18px; font-weight: 700; color: var(--accent); margin-top: 3px; }
@media (max-width: 980px) {
  .masthead-weather { position: static; max-width: none; margin: 12px auto 0; justify-content: center; }
}

/* === Prompts editor & tester (v6.0) === */
.prompts-page { max-width: 1400px; margin: 0 auto; padding: 0 20px 60px; }
.prompts-page h2 { font-family: 'Playfair Display', serif; font-size: 32px; text-align: center;
  letter-spacing: 8px; margin: 24px 0; border-bottom: 2px double var(--ink); padding-bottom: 12px; }

.prompts-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 0; }
.prompts-tab { display: inline-block; padding: 8px 16px; text-decoration: none;
  color: var(--ink); border: 1px solid var(--ink); border-bottom: none;
  background: transparent; font-size: 14px; transform: translateY(1px); }
.prompts-tab:hover { background: rgba(0,0,0,0.05); }
.prompts-tab.is-active { background: var(--ink); color: var(--paper); font-weight: 700; }

.prompts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .prompts-layout { grid-template-columns: 1fr; } }

.prompts-editor, .prompts-tester { border: 1px solid var(--ink); padding: 14px; background: var(--paper); }

.prompts-hd { display: flex; justify-content: space-between; align-items: center;
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700;
  margin-bottom: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }

.prompts-file { font-family: 'Courier New', monospace; font-size: 13px; color: var(--muted); font-weight: normal; }
.prompts-saved { color: #2e7d3a; font-size: 13px; font-weight: 700; }

#prompt-text { width: 100%; min-height: 320px; font-family: 'Courier New', monospace;
  font-size: 13px; padding: 10px; border: 1px solid var(--ink); background: #ffffff;
  color: #1a1a1a; resize: vertical; line-height: 1.5;
  caret-color: #1a1a1a; -webkit-text-fill-color: #1a1a1a; }
#prompt-text::placeholder { color: #8a8a8a; }

.prompts-vars { margin: 8px 0; font-size: 12px; color: var(--muted); }
.prompts-vars code { background: #ede8d8; padding: 2px 6px; margin-right: 4px;
  font-family: 'Courier New', monospace; font-size: 12px; border-radius: 2px; }

.prompts-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

.prompts-samples { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.prompts-sample { display: block; padding: 10px 12px; border: 1px solid var(--ink);
  background: #fdfcf6; cursor: pointer; transition: background 0.15s; }
.prompts-sample:hover { background: #f5f0e0; }
.prompts-sample.is-selected { background: #ede8d8; border-width: 2px; padding: 9px 11px; }
.prompts-sample input[type="radio"] { display: none; }
.prompts-sample-label { font-weight: 700; font-size: 13px; color: #8a2f1d; margin-bottom: 4px; }
.prompts-sample-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: #1a1a1a; }
.prompts-sample-meta { font-size: 11px; color: #555555; margin-bottom: 4px; }
.prompts-sample-meta .badge-cat,
.prompts-sample-meta .badge-src,
.prompts-sample-meta .badge-score { display: inline-block; padding: 1px 6px;
  background: rgba(0,0,0,0.05); margin-right: 4px; border-radius: 2px; }
.prompts-sample-summary { font-size: 12px; color: #444444; line-height: 1.4; }

.prompts-run-btn { width: 100%; margin-bottom: 14px; padding: 12px; font-size: 15px; }

.prompts-result-wrap { margin-top: 8px; }
.prompts-stats { font-family: 'Courier New', monospace; font-size: 12px; color: #555555; font-weight: normal; }
.prompts-result { padding: 12px; background: #ffffff; border: 1px solid var(--ink);
  white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', monospace;
  font-size: 13px; line-height: 1.5; max-height: 400px; overflow-y: auto;
  color: #1a1a1a; -webkit-text-fill-color: #1a1a1a; }

.prompts-rendered { margin-top: 10px; font-size: 12px; }
.prompts-rendered summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.prompts-rendered pre { padding: 10px; background: #f5f0e0; border: 1px dashed var(--muted);
  font-family: 'Courier New', monospace; font-size: 11px; white-space: pre-wrap;
  max-height: 300px; overflow-y: auto; }

/* === Blog pick page (v6.0) === */
.blogpick-page { max-width: 1400px; margin: 0 auto; padding: 0 20px 60px; }
.blogpick-page h2 { font-family: 'Playfair Display', serif; font-size: 32px; text-align: center;
  letter-spacing: 8px; margin: 24px 0 8px; border-bottom: 2px double var(--ink); padding-bottom: 12px; }

.blogpick-controls { display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; margin: 16px 0 18px; padding: 12px; border: 1px solid var(--ink);
  background: rgba(0,0,0,0.02); }
.blogpick-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.blogpick-filter label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.blogpick-filter input { width: 60px; padding: 4px 6px; border: 1px solid var(--ink);
  background: var(--paper); font-family: inherit; }
.blogpick-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.blogpick-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .blogpick-layout { grid-template-columns: 1fr; } }

.blogpick-candidates, .blogpick-result-wrap { border: 1px solid var(--ink);
  padding: 14px; background: var(--paper); }

.blogpick-list { list-style: none; padding: 0; margin: 0; max-height: 600px; overflow-y: auto; }
.blogpick-item { position: relative; display: block; padding: 12px 14px 12px 50px;
  border-bottom: 1px dashed var(--rule); transition: background 0.15s; }
.blogpick-item:hover { background: rgba(0,0,0,0.03); }
.blogpick-item.is-picked { background: rgba(139, 0, 0, 0.08);
  border-left: 4px solid var(--accent); padding-left: 46px; }

.blogpick-idx { position: absolute; left: 12px; top: 14px; font-family: 'Cinzel', serif;
  font-weight: 800; font-size: 18px; color: var(--accent); width: 28px; text-align: center; }

.blogpick-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px;
  display: flex; gap: 6px; flex-wrap: wrap; }
.blogpick-meta .badge-cat,
.blogpick-meta .badge-score,
.blogpick-meta .badge-date { display: inline-block; padding: 1px 6px;
  background: rgba(0,0,0,0.05); border-radius: 2px; }

.blogpick-title { display: block; font-weight: 700; font-size: 15px;
  color: var(--ink); text-decoration: none; margin-bottom: 4px; line-height: 1.4; }
.blogpick-title:hover { color: var(--accent); }

.blogpick-summary { font-size: 12px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blogpick-result { min-height: 200px; padding: 8px 0; }
.blogpick-result pre { padding: 14px; background: #fdfcf6; border: 1px solid var(--ink);
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.6;
  white-space: pre-wrap; word-wrap: break-word; color: var(--ink); }

.blogpick-picked { margin-top: 16px; padding: 14px; border: 2px solid var(--accent);
  background: rgba(139, 0, 0, 0.04); }
.blogpick-picked .blogpick-item { padding-left: 50px; border: none; }

/* === Blog write extension (v6.2) === */
.blogpick-write-actions { display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--rule); }

.blogpick-post-wrap { margin-top: 18px; padding: 14px; border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.5); }

.blogpick-post-text { width: 100%; min-height: 320px; padding: 14px;
  font-family: 'Noto Serif TC', Georgia, serif; font-size: 15px; line-height: 1.75;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  resize: vertical; white-space: pre-wrap; }

.blogpick-post-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.blogpick-post-actions { display: flex; gap: 10px; align-items: center;
  margin-top: 10px; flex-wrap: wrap; }

/* === v6.4: 候選卡片可點 + 中文解讀 + 心得 meta === */
.blogpick-item.is-clickable { cursor: pointer; user-select: none; }
.blogpick-item.is-clickable:hover { background: rgba(139, 0, 0, 0.06); }
.blogpick-item.is-clickable:focus-visible { outline: 2px solid var(--accent);
  outline-offset: -2px; }
/* 標題連結還是要能點開外部頁,鼠標細微區分 */
.blogpick-item.is-clickable .blogpick-title { cursor: pointer; }
.blogpick-item.is-clickable .blogpick-title:hover { text-decoration: underline; }

.blogpick-commentary { font-size: 13px; color: var(--ink); line-height: 1.6;
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; }

.blogpick-post-meta { font-size: 12px; color: var(--muted); padding: 6px 0 10px;
  border-bottom: 1px dashed var(--rule); margin-bottom: 10px; }
.blogpick-post-meta a { color: var(--accent); }

/* === v6.4: 社論頁面 === */
.editorial-page { max-width: 1200px; margin: 0 auto; padding: 12px 0; }
.editorial-page h2 { font-family: 'Cinzel', serif; font-weight: 700;
  letter-spacing: 4px; font-size: 28px; margin: 0 0 8px; }

.editorial-controls { display: flex; justify-content: space-between;
  align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.editorial-filter { display: flex; gap: 14px; align-items: center; }
.editorial-filter label { font-size: 13px; color: var(--muted);
  display: inline-flex; gap: 6px; align-items: center; }
.editorial-filter input { width: 64px; padding: 4px 6px;
  border: 1px solid var(--ink); background: var(--paper); }
.editorial-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.editorial-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px;
  margin-top: 14px; }
@media (max-width: 900px) { .editorial-layout { grid-template-columns: 1fr; } }

.editorial-source { border: 1px solid var(--ink); padding: 14px;
  background: var(--paper); align-self: start; position: sticky; top: 10px; }
.editorial-source-stats { font-size: 13px; line-height: 1.8;
  padding: 10px 0; border-bottom: 1px dashed var(--rule); margin-bottom: 8px; }
.editorial-source-stats strong { color: var(--accent); font-size: 15px; }
.editorial-source-detail { margin-top: 8px; font-size: 12px; }
.editorial-source-detail > summary { cursor: pointer; padding: 4px 0;
  font-weight: 600; color: var(--ink); }
.editorial-pre { font-family: 'Courier New', monospace; font-size: 11px;
  line-height: 1.6; padding: 8px; background: #fdfcf6; border: 1px solid var(--rule);
  max-height: 280px; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word;
  color: var(--ink); }

.editorial-result-wrap { border: 2px solid var(--accent); padding: 14px;
  background: rgba(255, 255, 255, 0.55); }
.editorial-text { width: 100%; min-height: 540px; padding: 18px;
  font-family: 'Noto Serif TC', Georgia, serif; font-size: 15px; line-height: 1.85;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  resize: vertical; white-space: pre-wrap; }
.editorial-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.editorial-result-actions { display: flex; gap: 10px; align-items: center;
  margin-top: 10px; flex-wrap: wrap; }

/* ========== v7-reader:雲端讀者互動(來源過濾 / 趨勢實驗室 / VIP 情報官) ========== */

/* 讀者工具列 */
.reader-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 14px 16px 0; }
.reader-bar button { cursor: pointer; font-family: inherit; font-size: 14px;
  padding: 8px 18px; border: 1px solid var(--rule); background: var(--paper-dark);
  color: var(--ink); border-radius: 2px; transition: background .15s, transform .1s; }
.reader-bar button:hover { transform: translateY(-1px); }
.reader-vip-btn { background: var(--accent) !important; color: #fff !important;
  border-color: var(--accent) !important; letter-spacing: 1px; font-weight: 700; }
.reader-vip-btn:hover { background: var(--accent-soft) !important; }

/* 遮罩 + 卡片 */
.reader-overlay { position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: flex-start; justify-content: center; padding: 6vh 16px;
  background: rgba(0, 0, 0, 0.45); overflow-y: auto; }
.reader-overlay[hidden] { display: none; }
.reader-card { background: var(--paper); color: var(--ink); width: 100%;
  max-width: 540px; border: 2px solid var(--rule); box-shadow: 0 10px 40px rgba(0,0,0,.3);
  padding: 22px 24px; }
.reader-card-head { display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--rule); padding-bottom: 10px; margin-bottom: 12px; }
.reader-card-head h3 { margin: 0; font-size: 20px; }
.reader-close { cursor: pointer; background: none; border: none; font-size: 20px;
  color: var(--muted); line-height: 1; }
.reader-close:hover { color: var(--accent); }
.reader-card-sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.reader-card-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.reader-mini-btn { cursor: pointer; font-family: inherit; font-size: 13px;
  padding: 5px 14px; border: 1px solid var(--rule); background: var(--paper-dark);
  color: var(--ink); border-radius: 2px; }
.reader-mini-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 來源勾選清單 */
.reader-source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  max-height: 50vh; overflow-y: auto; }
.reader-source-item { display: flex; align-items: center; gap: 8px; font-size: 14px;
  padding: 4px 2px; cursor: pointer; }
.reader-source-item input { width: 16px; height: 16px; accent-color: var(--accent); }

/* VIP 情報官 */
.reader-vip-card { max-width: 580px; }
.reader-vip-pitch { font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.reader-vip-pitch strong { color: var(--accent); }
.reader-vip-flow { list-style: none; padding: 0; margin: 0 0 14px;
  border-left: 3px solid var(--accent); }
.reader-vip-flow li { padding: 6px 0 6px 14px; font-size: 14px; color: var(--ink-soft); }
.reader-vip-examples { background: var(--paper-dark); padding: 12px 14px;
  border: 1px dashed var(--rule); }
.reader-vip-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.reader-vip-form label { display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.reader-vip-form input, .reader-vip-form textarea { font-family: inherit; font-size: 14px;
  padding: 9px 11px; border: 1px solid var(--rule); background: #fff; color: var(--ink);
  font-weight: 400; resize: vertical; }
.reader-vip-submit { cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700;
  letter-spacing: 1px; padding: 11px; border: none; background: var(--accent); color: #fff; }
.reader-vip-submit:hover { background: var(--accent-soft); }
.reader-vip-receipt { text-align: center; padding: 18px 8px; }
.vip-receipt-title { font-size: 18px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.vip-receipt-body { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }

/* 趨勢實驗室 */
.trend-lab { max-width: 1180px; margin: 28px auto 0; padding: 22px 20px;
  border-top: 5px double var(--rule); }
.trend-lab-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.trend-lab-head h2 { margin: 0; font-size: 24px; }
.trend-lab-tag { font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 2px; }
.trend-lab-sub { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.trend-lab-block { margin-bottom: 18px; }
.trend-lab-block h3 { font-size: 15px; margin: 0 0 10px; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: 5px; }
.trend-persistent { list-style: none; padding: 0; margin: 0; display: flex;
  flex-wrap: wrap; gap: 10px; }
.trend-persistent li { display: flex; align-items: center; gap: 6px; }
.trend-persistent .days { font-size: 12px; color: var(--muted); }

/* v8-trendjobs:趨勢實驗室職業觀點切換 */
.trend-jobs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.trend-job-tab { cursor: pointer; font-family: inherit; font-size: 14px;
  padding: 7px 16px; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper-dark); color: var(--ink-soft); transition: all .15s; }
.trend-job-tab:hover { color: var(--ink); border-color: var(--accent); }
.trend-job-tab.is-active { background: var(--accent); color: #fff;
  border-color: var(--accent); font-weight: 700; }
.trend-job-panels { position: relative; }
.trend-job-panel { display: none; animation: trendFade .25s ease; }
.trend-job-panel.is-active { display: block; }
@keyframes trendFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.trend-job-brief { font-size: 16px; line-height: 1.85; color: var(--ink);
  background: var(--paper-dark); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 3px 3px 0; }
.trend-job-brief p { margin: 0 0 .8em; }
.trend-job-brief p:last-child { margin-bottom: 0; }
.trend-job-meta { font-size: 12px; color: var(--muted); margin: 10px 2px 0; text-align: right; }
.trend-data { margin-top: 20px; }
.trend-data > summary { cursor: pointer; font-size: 14px; color: var(--ink-soft);
  font-weight: 700; padding: 6px 0; border-top: 1px solid var(--rule); }
.trend-data > summary:hover { color: var(--accent); }
.trend-data[open] > summary { margin-bottom: 14px; }

@media (max-width: 600px) {
  .reader-source-list { grid-template-columns: 1fr; }
  .trend-jobs { gap: 6px; }
  .trend-job-tab { font-size: 13px; padding: 6px 12px; }
}


/* ============================================================
   v8-dualview — 雙版切換(AI科技 / 今日世界)2026-05-27
   ============================================================ */

/* 版面切換 tab bar */
.edition-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 0 4px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 18px;
}
.edition-tab {
  background: none;
  border: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  padding: 7px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: .5px;
  transition: color .15s, border-color .15s;
}
.edition-tab:hover { color: var(--ink); }
.edition-tab.is-active {
  color: var(--ink);
  border-color: var(--rule);
  border-bottom-color: var(--paper);
  background: var(--paper);
  margin-bottom: -2px;
}

/* 版面容器 show/hide */
.edition-view { display: none; }
.edition-view.is-active { display: block; }

/* 各版定位副標(tab 下方、大標題上方的 strap line) */
.view-intro {
  text-align: center;
  font-family: "Noto Serif TC", serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 auto;
  padding: 2px 16px 14px;
  letter-spacing: 0.3px;
}
@media (max-width: 640px) {
  .view-intro { font-size: 13px; padding-bottom: 10px; }
}

/* ─── 世界版清單 ─── */
.world-intro {
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.world-intro h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.world-intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.world-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.world-item {
  background: var(--paper-dark);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
}
.world-item-head {
  margin-bottom: 5px;
}
.world-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
}
.world-item h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 7px;
}
.world-item h4 a {
  color: var(--ink);
  text-decoration: none;
}
.world-item h4 a:hover { text-decoration: underline; }
.world-brief {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.world-brief p { margin: 3px 0; }

@media (max-width: 640px) {
  .edition-tab { font-size: 13px; padding: 6px 14px; }
  .world-list { grid-template-columns: 1fr; }
}

/* ============================================================
   v8-dualview-2 — 三版切換修正 + 幕僚情報佔位 2026-05-27
   ============================================================ */

/* 世界版:附圖版型 */
.world-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.world-item-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}
.world-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-item-body { flex: 1; min-width: 0; }

/* 世界版評論三行換行 */
.world-brief p { margin: 2px 0; }
.world-brief strong { color: var(--ink); }

/* 世界版大標 */
.world-intro h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

/* ─── 幕僚情報 佔位 ─── */
.staff-coming {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}
.staff-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 18px;
}
.staff-coming h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink);
}
.staff-coming p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 12px;
}
.staff-sub { font-size: 14px !important; color: var(--muted) !important; }
.staff-cta { margin-top: 24px; }
.staff-tag {
  display: inline-block;
  background: var(--paper-dark);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .5px;
}

@media (max-width: 640px) {
  .world-item-thumb { width: 72px; height: 52px; }
  .staff-coming h2 { font-size: 20px; }
}

/* ============================================================
   v8-dualview-3 — 世界版卡片改為 AI 版相同版型 2026-05-27
   ============================================================ */

/* 覆寫舊的 flex-row 世界版版型,改成與 AI .item 相同的垂直卡片 */
.world-item {
  display: block;            /* 取消 flex-row */
  background: var(--paper-dark);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}
.world-item-thumb {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: unset;
  border-radius: 0;
}
.world-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.world-item-body {
  padding: 12px 14px 14px;
}
.world-item-head { margin-bottom: 6px; }
.world-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
}
.world-item h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}
.world-item h4 a { color: var(--ink); text-decoration: none; }
.world-item h4 a:hover { text-decoration: underline; }
.world-brief { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.world-brief p { margin: 3px 0; }
.world-brief strong { color: var(--ink); }

/* 世界版用相同欄數 grid */
.world-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .world-list { grid-template-columns: 1fr; }
  .world-item-thumb { height: 140px; }
}

/* ============================================================
   v8-dualview-4 — 提示詞頁三分區側邊欄 2026-05-27
   ============================================================ */
.prompts-page {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 16px;
}
.prompts-page h2 {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}
.prompts-sidebar {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prompts-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.prompts-section { display: flex; flex-direction: column; gap: 2px; }
.prompts-tabs { display: none; }   /* 舊 flat tabs 隱藏 */
.prompts-tab {
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .12s, color .12s;
}
.prompts-tab:hover { background: var(--paper-dark); color: var(--ink); }
.prompts-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.prompts-new {
  font-size: 10px;
  color: var(--muted);
  vertical-align: super;
}
.prompts-layout {
  grid-column: 2;
  grid-row: 2;
}
@media (max-width: 800px) {
  .prompts-page { grid-template-columns: 1fr; }
  .prompts-sidebar { grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .prompts-section { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
  .prompts-section-label { border-bottom: none; margin-bottom: 0; }
  .prompts-layout { grid-row: 3; }
}

/* ════════════════════════════════════════════════════
   The Indie Gazette — 雙軸版型(技能樹 + 靈感牆)
   ════════════════════════════════════════════════════ */

/* 報頭淡入淡出輪替資訊條(N2→N4) */
.masthead-rotator {
  flex: 1;
  position: relative;
  height: 15px;
  margin: 0 14px;
  text-transform: none;
}
.masthead-rotator .rot-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead-rotator .rot-msg.is-active { opacity: 1; }

/* 軸別導言 */
.gz-axis-intro {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  max-width: 720px;
  margin: -6px auto 26px;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 技能樹:欄目網格 ===== */
.gz-tree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-bottom: 8px;
}
.gz-column {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--col-color, var(--accent));
  background: rgba(255, 255, 255, 0.35);
  padding: 14px 18px 18px;
}
.gz-column.is-soliciting {
  border-style: dashed;
  border-top-style: solid;
  background: transparent;
  opacity: 0.82;
}
.gz-col-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule);
  font-family: "Playfair Display", "Noto Serif TC", serif;
}
.gz-col-name {
  font-size: 21px;
  font-weight: 900;
  color: var(--col-color, var(--ink));
  letter-spacing: 1px;
}
.gz-col-count {
  font-family: "Cinzel", monospace;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  color: var(--paper);
  background: var(--col-color, var(--ink));
  padding: 2px 9px;
}
.gz-col-flag {
  font-style: italic;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  border: 1px dashed var(--muted);
  padding: 2px 9px;
}

/* 能力梯度小節 */
.gz-level { margin-bottom: 6px; }
.gz-level-label {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--col-color, var(--accent));
  margin: 14px 0 8px;
  padding-left: 2px;
  border-left: 3px solid var(--col-color, var(--accent));
  padding: 2px 0 2px 8px;
}
.gz-empty,
.gz-soliciting-note {
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
}

/* ===== 靈感牆:橫切卡片牆 ===== */
.gz-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.gz-wall-empty { text-align: center; }

/* ===== 報導卡片(雙軸共用)===== */
.gz-card {
  border-bottom: 1px dashed var(--rule);
  padding: 12px 0 14px;
  margin-bottom: 4px;
}
.gz-level .gz-card:last-child,
.gz-column .gz-card:last-child { border-bottom: none; }
.gz-wall .gz-card {
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0 0 12px;
  background: rgba(255, 255, 255, 0.35);
}
.gz-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-dark);
  filter: sepia(0.16) contrast(1.02);
  margin-bottom: 8px;
}
.gz-wall .gz-thumb { border: none; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.gz-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gz-thumb:hover img { transform: scale(1.03); }
.gz-wall .gz-card-body { padding: 0 14px; }
.gz-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 8px 0 5px;
}
.gz-channel { font-weight: 700; color: var(--ink-soft); }
.gz-tool {
  border: 1px solid var(--muted);
  padding: 1px 6px;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.gz-title {
  margin: 4px 0 3px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
}
.gz-title a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom;
  background-size: 0 2px;
  transition: background-size 0.2s, color 0.2s;
}
.gz-title a:hover { color: var(--accent); background-size: 100% 2px; }
.gz-subtitle {
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 7px;
  line-height: 1.4;
}
.gz-threeq {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 10px;
  font-size: 13px;
  line-height: 1.55;
}
.gz-threeq dt {
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}
.gz-threeq dd { margin: 0; color: var(--ink-soft); }

@media (max-width: 600px) {
  .gz-tree { grid-template-columns: 1fr; }
  .gz-threeq { grid-template-columns: 1fr; gap: 1px; }
  .gz-threeq dt { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   v0.3 三分頁：導航、免費資源輪播、玩家評價卡
   ═══════════════════════════════════════════════════════════ */

/* ── 三分頁導航：主分頁大、次要功能小 ── */
.nav-tabs { align-items: center; flex-wrap: wrap; }
.nav-tabs .tab {
  font-family: "Cinzel", "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 14px 3px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s, color .18s;
}
.nav-tabs .tab:hover { border-bottom-color: var(--accent-soft); }
.nav-tabs .tab.is-on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-sep {
  width: 1px; height: 18px; margin: 0 6px;
  background: var(--rule); opacity: .35;
}
.nav-tabs .nav-minor {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 4px 7px;
  text-decoration: none;
}
.nav-tabs .nav-minor:hover { color: var(--accent); text-decoration: underline; }

/* ── 免費資源輪播 ── */
.fb-hero {
  position: relative;
  margin: 0 0 26px;
  border: 2px solid var(--rule);
  background: var(--paper-dark);
  overflow: hidden;
}
.fb-strip { position: relative; aspect-ratio: 16 / 6.4; min-height: 220px; }
.fb-slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease;
  text-decoration: none; color: inherit;
}
.fb-slide.is-on { opacity: 1; visibility: visible; }
.fb-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.fb-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 22px 16px;
  background: linear-gradient(to top, rgba(12, 10, 8, .92) 12%, rgba(12, 10, 8, .72) 48%, transparent 100%);
  color: #f4ecd8;
}
.fb-src {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  padding: 2px 9px; margin-bottom: 6px;
  border: 1px solid rgba(244, 236, 216, .5);
  background: rgba(0, 0, 0, .35);
}
.fb-src-epic { border-color: #7bb0ff; color: #cfe3ff; }
.fb-src-steam { border-color: #6fa8c9; color: #d6ecf8; }
.fb-src-itchio { border-color: #ff7a86; color: #ffd9dd; }
.fb-src-polyhaven { border-color: #86d49a; color: #d8f5df; }
.fb-title {
  margin: 0 0 3px;
  font-size: 25px; font-weight: 800; line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.fb-note { margin: 0; font-size: 13px; opacity: .9; }
.fb-left { color: #ffd98a; }
.fb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 58px;
  border: none; cursor: pointer;
  background: rgba(12, 10, 8, .42);
  color: #f4ecd8; font-size: 26px; line-height: 1;
  transition: background .15s;
}
.fb-arrow:hover { background: rgba(12, 10, 8, .75); }
.fb-prev { left: 0; }
.fb-next { right: 0; }
.fb-dots {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; justify-content: center; gap: 6px;
}
.fb-dot {
  width: 8px; height: 8px; padding: 0;
  border: 1px solid rgba(244, 236, 216, .75);
  background: transparent; border-radius: 50%; cursor: pointer;
}
.fb-dot.is-on { background: #f4ecd8; }
.fb-caption {
  margin: 0; padding: 5px 10px;
  font-size: 11px; letter-spacing: 1px; text-align: center;
  color: var(--muted); background: var(--paper);
  border-top: 1px solid var(--rule);
}
.fb-dead { padding: 18px 20px; font-size: 13px; color: var(--muted); }
.fb-dead p { margin: 0; line-height: 1.7; }

/* ── 玩家評價卡 ── */
.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.tk-card {
  border: 1px solid var(--rule);
  background: rgba(255, 253, 245, .5);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tk-thumb { display: block; line-height: 0; border-bottom: 1px solid var(--rule); }
.tk-thumb img { width: 100%; display: block; filter: saturate(.9) contrast(1.03); }
.tk-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 5px; }
.tk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tk-name { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.tk-name a { color: var(--ink); text-decoration: none; }
.tk-name a:hover { color: var(--accent); text-decoration: underline; }
.tk-score {
  flex: none;
  font-family: "Cinzel", serif; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 1px 7px; border: 1px solid var(--muted); color: var(--muted); white-space: nowrap;
}
.tk-score.is-good { border-color: #2e5d3a; color: #2e5d3a; }
.tk-score.is-bad { border-color: var(--accent); color: var(--accent); }
.tk-genres { margin: 0; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.tk-take {
  margin: 4px 0 0;
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px;
  font-size: 13px; line-height: 1.55;
}
.tk-take dt {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-align: right; white-space: nowrap; padding-top: 2px;
}
.tk-take dt.is-loved { color: #2e5d3a; }
.tk-take dt.is-hated { color: var(--accent); }
.tk-take dt.is-lesson { color: #6b4c8a; }
.tk-take dd { margin: 0; color: var(--ink-soft); }
.tk-foot {
  margin: 7px 0 0; padding-top: 6px;
  border-top: 1px dotted var(--rule);
  font-size: 10px; letter-spacing: 1px; color: var(--muted);
}

/* ── 空區塊提示：講清楚為什麼空，不要只留一片白 ── */
.gz-empty-box {
  margin: 0 0 28px; padding: 16px 18px;
  border: 1px dashed var(--rule);
  background: rgba(255, 253, 245, .4);
  font-size: 13px; line-height: 1.7; color: var(--muted);
}

/* ── AI 工具頁的預告條 ── */
.ai-notice {
  margin: 0 0 20px; padding: 12px 16px;
  border-left: 4px solid #6b4c8a;
  background: rgba(107, 76, 138, .07);
  font-size: 13px; line-height: 1.75; color: var(--ink-soft);
}
.wf-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 1px 7px; margin: 0 1px;
}
.wf-untested { border: 1px solid var(--muted); color: var(--muted); }
.wf-verified { border: 1px solid #2e5d3a; color: #2e5d3a; background: rgba(46, 93, 58, .08); }

.gz-tree-art { margin-top: 4px; }

@media (max-width: 700px) {
  .fb-strip { aspect-ratio: 16 / 10; min-height: 190px; }
  .fb-title { font-size: 19px; }
  .tk-grid { grid-template-columns: 1fr; }
  .nav-tabs .tab { font-size: 15px; padding: 4px 9px 3px; letter-spacing: 2px; }
}

/* 欄標題的篇數徽章：原本緊貼著欄名（看起來像 Unity6），拉開並降低視覺重量 */
.gz-col-title .gz-count {
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 10px;
  vertical-align: 2px;
  opacity: .7;
}

/* 影片被作者下架後，YouTube 還是會回一張 120x90 的灰色佔位圖。
   HTTP 是 200，所以 onerror 抓不到 —— 得靠尺寸判斷（見 app.js 的 hideDeadThumbs）。*/
.gz-card.is-dead { display: none; }

/* ── v0.4 官方預告片框（特價卡、玩家評價卡共用） ── */
.tr-box {
  position: relative; line-height: 0; cursor: pointer;
  aspect-ratio: 460 / 215; background: #1c1814;
  border-bottom: 1px solid var(--rule); overflow: hidden;
}
.tr-poster { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.03); }
.tr-play {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border: 1px solid rgba(244, 236, 216, .8);
  background: rgba(12, 10, 8, .62); color: #f4ecd8; cursor: pointer;
  font-size: 12px; letter-spacing: 1px; line-height: 1.2;
}
.tr-box:hover .tr-play { background: rgba(140, 30, 30, .85); }
.tr-icon { font-size: 11px; }
.tr-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tr-box.is-playing .tr-play { opacity: 0; transition: opacity .2s; }
.tr-box.is-full { aspect-ratio: 16 / 9; cursor: default; }
.tr-box.is-full .tr-video { object-fit: contain; }
.tr-box.is-full .tr-poster, .tr-box.is-full .tr-play { display: none; }
.tr-box.is-failed { cursor: default; display: flex; align-items: center; justify-content: center; }
.tr-fail { margin: 0; padding: 12px; line-height: 1.6; font-size: 12px; color: #e8dcc4; text-align: center; }
.tr-fail a { color: #ffd98a; }

/* ── v0.4 特價卡 ── */
.dl-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dl-card {
  border: 1px solid var(--rule);
  background: rgba(255, 253, 245, .5);
  display: flex; flex-direction: column; overflow: hidden;
}
.dl-body { padding: 9px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.dl-price { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; }
.dl-off {
  font-family: "Cinzel", serif; font-weight: 700; font-size: 13px;
  padding: 0 6px; background: #2e5d3a; color: #f4ecd8;
}
.dl-now { font-size: 17px; color: var(--ink); }
.dl-was { font-size: 12px; color: var(--muted); }
.dl-low { margin: 0; font-size: 11px; letter-spacing: .5px; color: var(--muted); }
.dl-low.is-low { color: var(--accent); font-weight: 700; }
.est { border-bottom: 1px dotted var(--muted); cursor: help; }


/* ═══════════ v0.4b 版面區塊標頭（取代 items-title）═══════════
   報紙的版頭做法：上粗線＋細線、小欄名、大標題、一句說明、下細線。 */
.sec-head {
  margin: 48px 0 18px;
  padding: 8px 0 10px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2px 22px;
  position: relative;
}
.sec-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--ink);
}
.sec-kicker {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: "Cinzel", "Noto Serif TC", serif;
  font-size: 11px; font-weight: 800; letter-spacing: 4px;
  color: var(--accent);
}
.sec-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-weight: 900; font-size: 30px; line-height: 1.15; letter-spacing: 2px;
  color: var(--ink);
}
.sec-sub {
  margin: 0; justify-self: end; max-width: 46em;
  text-align: right; font-size: 13px; line-height: 1.6;
  font-style: italic; color: var(--muted);
}
.sec-foot { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.sec-foot a { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-title { font-size: 24px; }
  .sec-sub { justify-self: start; text-align: left; }
}

/* ── 分頁 ── */
.pg-item[hidden] { display: none !important; }
.dl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; }
.vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; align-items: start; }
@media (max-width: 1100px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .dl-grid, .vc-grid { grid-template-columns: 1fr; } }
.pg-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
  margin: 10px 0 8px;
}
.pg-bar button {
  font: inherit; font-size: 13px; cursor: pointer;
  min-width: 34px; padding: 4px 10px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
.pg-bar button:hover { background: rgba(26, 26, 26, .08); }
.pg-bar .pg-num.is-on { background: var(--ink); color: var(--paper); }
.pg-info { margin-left: 10px; font-size: 12px; color: var(--muted); }

/* ── 玩家原聲（引言） ── */
.vq { margin: 6px 0 0; padding: 8px 10px 7px; border-left: 3px solid #2e5d3a; background: rgba(46, 93, 58, .05); }
.vq-neg { border-left-color: var(--accent); background: rgba(139, 0, 0, .045); }
.vq-tag { margin: 0 0 3px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #2e5d3a; }
.vq-neg .vq-tag { color: var(--accent); }
.vq-text {
  font-size: 13px; line-height: 1.65; color: var(--ink-soft);
  white-space: pre-line; overflow-wrap: anywhere;
}
.vq-text.is-long:not(.is-open) {
  max-height: 6.6em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.vq-more {
  margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--accent); text-decoration: underline;
}
.vq-meta { margin-top: 4px; font-size: 11px; color: var(--muted); letter-spacing: .5px; }

.fb-src-fab { border-color: #e6e6e6; color: #ffffff; }

/* ═══════════ 玩法雷達 ═══════════ */
.radar-lead { margin: 18px 0 10px; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.lens-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.lens-nav a {
  padding: 3px 12px; border: 1px solid var(--ink); color: var(--ink);
  text-decoration: none; font-size: 13px; letter-spacing: 1px;
}
.lens-nav a:hover { background: var(--ink); color: var(--paper); }
.lens, .sec-head[id] { scroll-margin-top: 12px; }
.lens-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 18px; border-bottom: 1px solid var(--rule); }
.ls { padding: 6px 16px 12px; border-right: 1px solid var(--rule); }
.ls:last-child { border-right: 0; }
.ls b {
  display: block; font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: 30px; font-weight: 900; color: var(--accent); line-height: 1.2;
}
.ls span { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.lens-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; }
.lens-h {
  margin: 0 0 10px; padding-bottom: 4px;
  font-size: 14px; font-weight: 900; letter-spacing: 2px;
  border-bottom: 1px dotted var(--rule);
}
.lens-voice .lens-h ~ .lens-h { margin-top: 22px; }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg { border: 1px solid var(--rule); background: rgba(255, 253, 245, .5); }
.lg-meta { padding: 6px 8px 7px; display: flex; flex-direction: column; gap: 2px; }
.lg-name { font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--ink); text-decoration: none; }
.lg-name:hover { color: var(--accent); text-decoration: underline; }
.lg-num { font-size: 11px; color: var(--muted); }
.wish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wish { padding: 2px 0 8px 12px; border-left: 3px solid #6b4c8a; border-bottom: 1px dotted var(--rule); }
.wish-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.wish-src { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.wish-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); font-style: italic; }
@media (max-width: 900px) {
  .lens-body { grid-template-columns: 1fr; }
  .lens-stats { grid-template-columns: 1fr; }
  .ls { border-right: 0; border-bottom: 1px dotted var(--rule); }
}


/* ═══════════════════════════════════════════════════════════════
   v0.4c「動態平台」層（2026-10-03 作者：別當成網頁，要前所未有的觀賞與瀏覽體驗）
   搭配 static/platform.js。特效取自 NPG 設計模板：
   Motion_Effect5 跑馬燈、Motion_Effect9 捲動進場、Glow_Effect3 游標光暈、Glow_Effect5 背景光團。
   ⚠ 刻意沒寫 prefers-reduced-motion：作者的 Windows 關了動畫效果，寫了他就什麼都看不到。
   ═══════════════════════════════════════════════════════════════ */
body { overflow-x: clip; }
:root {
  --stage: #17120d;
  --stage-2: #241b13;
  --gold: #f2c14e;
  --paper-on-dark: #f4ecd8;
}

/* ── 捲動進場 ── */
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.9,.3,1), transform .7s cubic-bezier(.2,.9,.3,1); }
html.js .rv.in { opacity: 1; transform: none; }

/* ── 游標光暈 ── */
.glow { position: relative; }
.glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 193, 78, .20), transparent 62%);
}
.glow:hover::after { opacity: 1; }

/* ── 快訊跑馬燈 ── */
.ticker {
  display: flex; align-items: stretch;
  margin: 10px 0 0; background: var(--stage); color: var(--paper-on-dark);
  border-top: 2px solid var(--gold); border-bottom: 1px solid #000;
  font-size: 13px; line-height: 1;
}
.ticker[hidden] { display: none; }
.ticker-tag {
  flex: none; display: flex; align-items: center; padding: 0 14px;
  background: var(--accent); color: #fff; font-weight: 900; letter-spacing: 4px;
  position: relative;
}
.ticker-tag::after {
  content: ""; position: absolute; right: -8px; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.ticker-band {
  flex: 1; overflow: hidden; padding: 9px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 18px; white-space: nowrap;
  animation: gzTicker 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes gzTicker { to { transform: translateX(-50%); } }
.tk-item { color: var(--paper-on-dark); text-decoration: none; }
.tk-item:hover { color: var(--gold); text-decoration: underline; }
.tk-k { display: inline-block; margin-right: 7px; padding: 2px 6px; font-size: 11px; letter-spacing: 1px; }
.tk-off { background: #2e5d3a; color: #e9f5ec; }
.tk-free { background: var(--gold); color: #1a1208; }
.tk-wish { background: #6b4c8a; color: #f1e9fb; }
.tk-radar { border: 1px solid var(--gold); color: var(--gold); }
.tk-sep { color: #6e5a43; font-style: normal; font-size: 9px; }

/* ── 橫向換頁共用 ── */
.hs-track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
  align-items: flex-start;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-track.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.hs-page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hs-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.hs-ctrl button { font: inherit; cursor: pointer; }
.hs-prev, .hs-next {
  min-width: 42px; height: 38px; padding: 0 12px;
  border: 1px solid currentColor; background: transparent; color: inherit; font-size: 18px;
  transition: background .2s, color .2s, transform .15s;
}
.hs-prev:hover, .hs-next:hover { transform: translateY(-1px); }
.hs-dots { display: flex; gap: 8px; }
.hs-dot { width: 26px; height: 6px; padding: 0; border: 0; background: rgba(244, 236, 216, .25); transition: background .3s, width .3s; }
.hs-dot.is-on { width: 46px; background: var(--gold); }
.hs-info { font-size: 12px; letter-spacing: 1px; opacity: .75; min-width: 5em; }

/* ── 特價劇場：獨立的全寬深色舞台 ── */
.stage {
  margin: 56px calc(50% - 50vw) 10px;
  padding: 34px 0 30px;
  color: var(--paper-on-dark);
  background:
    radial-gradient(600px 300px at var(--b1x, 15%) 0%, rgba(192, 57, 43, .28), transparent 70%),
    radial-gradient(700px 360px at var(--b2x, 85%) 100%, rgba(242, 193, 78, .14), transparent 70%),
    var(--stage);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  animation: gzStageGlow 18s ease-in-out infinite alternate;
  position: relative;
}
@property --b1x { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
@property --b2x { syntax: '<percentage>'; inherits: false; initial-value: 85%; }
@keyframes gzStageGlow { to { --b1x: 70%; --b2x: 25%; } }
.stage-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.stage-kicker { display: block; font-family: "Cinzel", "Noto Serif TC", serif; font-size: 11px; font-weight: 800; letter-spacing: 5px; color: var(--gold); }
.stage-title { margin: 4px 0 0; font-family: "Noto Serif TC", serif; font-size: 34px; font-weight: 900; letter-spacing: 3px; color: #fff; }
.stage-sub { margin: 0; text-align: right; font-size: 13px; line-height: 1.7; color: #b9a98c; font-style: italic; }
.dl-page { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 2px; }
.deals-stage .dl-card {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(242, 193, 78, .28);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.deals-stage .dl-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.deals-stage .tk-name a { color: #fff; }
.deals-stage .dl-now { color: #fff; }
.deals-stage .dl-was, .deals-stage .dl-low, .deals-stage .tk-genres, .deals-stage .tk-foot { color: #a8977b; }
.deals-stage .dl-low.is-low { color: var(--gold); }
.deals-stage .tk-foot { border-top-color: rgba(242, 193, 78, .2); }
.deals-stage .tr-box { border-bottom-color: rgba(242, 193, 78, .25); }
.deals-stage .hs-ctrl { color: var(--paper-on-dark); }
.deals-stage .hs-prev:hover, .deals-stage .hs-next:hover { background: var(--gold); color: #1a1208; }
@media (max-width: 1100px) { .dl-page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dl-page { grid-template-columns: 1fr; }
  .stage-head { flex-direction: column; align-items: flex-start; }
  .stage-sub { text-align: left; }
  .stage-title { font-size: 26px; }
}

/* ── 玩家原聲閱讀器 ── */
.reader { margin-top: 6px; }
.rd-slide {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0;
  border: 1px solid var(--ink); background: rgba(255, 253, 245, .55);
}
.rd-media { border-right: 1px solid var(--ink); display: flex; flex-direction: column; }
.rd-media .tr-box { border-bottom: 1px solid var(--ink); }
.rd-img { width: 100%; display: block; border-bottom: 1px solid var(--ink); }
.rd-facts { padding: 14px 18px 16px; }
.rd-name { display: block; font-size: 24px; font-weight: 900; line-height: 1.2; color: var(--ink); text-decoration: none; }
.rd-name:hover { color: var(--accent); }
.rd-meta { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.rd-meta b.is-good { color: #2e5d3a; } .rd-meta b.is-bad { color: var(--accent); }
.rd-outline { margin: 14px 0 0; padding: 12px 14px 12px 34px; background: var(--stage); color: var(--paper-on-dark); font-size: 14px; line-height: 1.75; }
.rd-outline li::marker { color: var(--gold); font-weight: 900; }
.rd-outline li + li { margin-top: 4px; }
.rd-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); font-style: italic; }
.rd-body { padding: 16px 20px; max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
.rd-h { margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: 3px; }
.rd-h.is-pro { color: #2e5d3a; } .rd-h.is-con { color: var(--accent); margin-top: 16px; }
.rd-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rp { padding: 8px 12px 8px 14px; border-left: 4px solid #2e5d3a; background: rgba(46, 93, 58, .06); }
.rp-con { border-left-color: var(--accent); background: rgba(139, 0, 0, .05); }
.rp-point { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.rp-detail { margin: 3px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.rp-ev { margin-top: 5px; }
.rp-ev summary { cursor: pointer; font-size: 12px; color: var(--accent); list-style: none; }
.rp-ev summary::-webkit-details-marker { display: none; }
.rp-ev summary::before { content: "▸ "; }
.rp-ev[open] summary::before { content: "▾ "; }
.rp-q { margin: 6px 0 0; padding: 7px 10px; background: rgba(255, 253, 245, .9); border: 1px dotted var(--rule); font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); overflow-wrap: anywhere; }
.rp-q-text { white-space: pre-line; }
.rp-q-tag { display: inline-block; margin-right: 6px; font-size: 11px; font-weight: 800; }
.rp-q-tag.is-up { color: #2e5d3a; } .rp-q-tag.is-down { color: var(--accent); }
.rp-q-tag { margin-right: 4px; }
.rp-q-meta { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.rd-wait { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.rd-raw { margin-top: 16px; }
.rd-raw > summary { cursor: pointer; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.rd-ctrl { flex-wrap: wrap; color: var(--ink); }
.rd-ctrl .hs-prev, .rd-ctrl .hs-next { font-size: 14px; letter-spacing: 1px; }
.rd-ctrl .hs-prev:hover, .rd-ctrl .hs-next:hover { background: var(--ink); color: var(--paper); }
.hs-strip { display: flex; gap: 6px; overflow-x: auto; max-width: min(720px, 70vw); padding: 4px 2px; scrollbar-width: none; }
.hs-strip::-webkit-scrollbar { display: none; }
.hs-thumb { flex: none; width: 68px; height: 32px; padding: 0; border: 2px solid transparent; background: var(--paper-dark); opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-thumb:hover { opacity: .9; }
.hs-thumb.is-on { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.reader .hs-info { color: var(--muted); }
@media (max-width: 900px) {
  .rd-slide { grid-template-columns: 1fr; }
  .rd-media { border-right: 0; border-bottom: 1px solid var(--ink); }
  .rd-body { max-height: none; }
}

/* ── 工坊：彩色分頁書架 ── */
.ws-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.ws-tab {
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 2px solid var(--c); border-bottom: 0;
  background: transparent; color: var(--c); font-weight: 900; letter-spacing: 1px;
  transition: background .2s, color .2s, transform .2s;
}
.ws-tab:hover { transform: translateY(-2px); }
.ws-tab.is-on { background: var(--c); color: #fff; }
.ws-tab-n { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.ws-tab.is-on .ws-tab-n { background: rgba(255, 255, 255, .22); }
.ws-shelf {
  display: none;
  border-top: 6px solid var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 5%, transparent));
  padding: 16px 18px 20px;
}
.ws-shelf.is-on { display: block; animation: gzShelfIn .45s cubic-bezier(.2,.9,.3,1); }
@keyframes gzShelfIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ws-shelf-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.ws-shelf-head h3 { margin: 0; font-size: 26px; font-weight: 900; color: var(--c); letter-spacing: 2px; }
.ws-shelf-head > span { font-size: 12px; color: var(--muted); }
.ws-arrows { margin-left: auto; display: flex; gap: 6px; }
.ws-arrows button { font: inherit; cursor: pointer; width: 36px; height: 32px; border: 1px solid var(--c); background: transparent; color: var(--c); font-size: 18px; }
.ws-arrows button:hover { background: var(--c); color: #fff; }
.ws-row {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: minmax(250px, 23%); gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: thin;
}
.ws-card { scroll-snap-align: start; display: flex; flex-direction: column; background: rgba(255, 253, 245, .85); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--rule)); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ws-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .14); }
.ws-card.is-dead { display: none; }
.ws-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #222; }
.ws-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ws-card:hover .ws-thumb img { transform: scale(1.05); }
.ws-level { position: absolute; left: 8px; top: 8px; padding: 1px 7px; font-size: 11px; font-weight: 800; background: var(--c); color: #fff; }
.ws-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.ws-ch { font-family: "Cinzel", serif; font-size: 10px; letter-spacing: 2px; color: var(--c); font-weight: 800; }
.ws-title { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-title a { color: var(--ink); text-decoration: none; }
.ws-title a:hover { color: var(--c); }
.ws-hook { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ws-more summary { cursor: pointer; font-size: 11px; color: var(--c); }
.ws-more p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.ws-more b { margin-right: 6px; color: var(--c); }
@media (max-width: 700px) { .ws-row { grid-auto-columns: 78%; grid-template-rows: auto; } }

/* 雷達：數字欄位等寬，數的時候不跳動 */
.ls b { font-variant-numeric: tabular-nums; }


/* ═══════════ v0.4d（2026-10-04）第一版版頭、三版對齊、全報統一頁碼與編號 ═══════════ */

/* 特價劇場的深色底照樣滿版，但裡面的內容寬度跟報紙內文欄一樣（main：1180 − 左右各 32），
   第一版、第二版、第三版的左右邊才會切在同一條線上。 */
.stage-inner { max-width: var(--paper-max-width, 1180px); padding: 0 32px; }

/* 第一版：限時免費輪播 */
.fb-wrap { margin: 0; }
.fb-wrap .fb-hero { margin: 0; border: 1px solid var(--ink); }
.fb-wrap .sec-foot { margin-top: 2px; }
.fb-ctrl .hs-dot { width: 18px; background: rgba(26, 18, 8, .16); }
.fb-ctrl .hs-dot.is-on { width: 34px; background: var(--accent); }
.fb-ctrl .hs-prev:hover, .fb-ctrl .hs-next:hover { background: var(--ink); color: var(--paper); }
.fb-meta { padding-left: 26px; }

/* 控制列：左右箭頭＋圓點／縮圖置中，頁碼固定靠右對齊內容邊。用格線排，中間再寬也不會壓到頁碼。 */
.hs-ctrl {
  display: grid; grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center; gap: 12px;
}
.hs-ctrl > .hs-prev { grid-column: 2; }
.hs-ctrl > .hs-dots, .hs-ctrl > .hs-strip { grid-column: 3; }
.hs-ctrl > .hs-next { grid-column: 4; }
.hs-ctrl > .folio { grid-column: 5; justify-self: end; }
.hs-strip { max-width: min(600px, 56vw); }

/* 頁碼 folio：報紙版面角落那種頁碼。「PAGE」小字＋大號現在頁＋斜線總頁數，底下一條細線。 */
.folio {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 0 2px 3px; border-bottom: 1px solid currentColor;
  font-family: "Cinzel", "Noto Serif TC", serif; line-height: 1;
  white-space: nowrap; overflow: hidden;
}
.folio::before {
  content: "PAGE"; font-size: 9px; font-weight: 800; letter-spacing: 3px; opacity: .6;
}
.folio-n {
  display: inline-block; font-size: 30px; font-weight: 900; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  animation: gzFolioIn .45s cubic-bezier(.2, .8, .2, 1);
}
.folio-t { font-size: 13px; font-weight: 700; letter-spacing: 1px; opacity: .55; }
@keyframes gzFolioIn { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.fb-ctrl .folio, .rd-ctrl .folio { color: var(--ink); }
.fb-ctrl .folio-n, .rd-ctrl .folio-n { color: var(--accent); }
.deals-stage .folio { color: var(--paper-on-dark); }
.deals-stage .folio-n { color: var(--gold); }

/* 每一篇的編號：卡片左上角一枚「No.07」小牌，閱讀器則放在遊戲名上面 */
.dl-card { position: relative; }
.no-badge {
  position: absolute; top: 8px; left: 8px; z-index: 4; pointer-events: none;
  padding: 3px 8px 2px; background: rgba(16, 12, 8, .82);
  border: 1px solid rgba(242, 193, 78, .55);
  font-family: "Cinzel", serif; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: rgba(244, 236, 216, .75); line-height: 1.3;
}
.no-badge b { margin-left: 2px; font-size: 14px; font-weight: 900; color: var(--gold); }
.fb-slide .no-badge { top: 14px; left: 14px; padding: 5px 11px 4px; font-size: 11px; }
.fb-slide .no-badge b { font-size: 20px; }
.no-badge.is-ink {
  position: static; display: inline-block; margin-bottom: 6px;
  background: transparent; border: 0; border-bottom: 2px solid var(--accent); padding: 0 0 1px;
  color: var(--muted);
}
.no-badge.is-ink b { color: var(--accent); font-size: 18px; }

@media (max-width: 640px) {
  /* 手機上 main 仍是左右 32，這裡跟著，不另縮 */
  .hs-ctrl { grid-template-columns: auto 1fr auto; }
  .hs-ctrl > .hs-prev { grid-column: 1; }
  .hs-ctrl > .hs-dots, .hs-ctrl > .hs-strip { grid-column: 2; justify-self: center; max-width: 100%; }
  .hs-ctrl > .hs-next { grid-column: 3; }
  .hs-ctrl > .folio { grid-column: 1 / -1; justify-self: center; }
}
/* 舊的圓點是疊在圖上的小圓圈，現在搬到控制列，跟其他兩版用同一種長條點 */
.fb-ctrl .fb-dots { position: static; }
.fb-ctrl .fb-dot { height: 6px; border: 0; border-radius: 0; }
.gazette > .sec-head:first-child { margin-top: 14px; }


/* ═══════════ 彩蛋（static/eggs.js）═══════════ */
.masthead .title { user-select: none; cursor: default; }
.masthead .title.egg-tap .title-zh { animation: eggTap .18s ease-out; }
@keyframes eggTap { 50% { transform: scale(1.015); } }

.egg-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9999;
  padding: 10px 18px; background: var(--stage, #17120d); color: var(--paper-on-dark, #f4ecd8);
  border: 1px solid var(--gold, #f2c14e); font-size: 14px; letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: eggToastIn .35s cubic-bezier(.2, .8, .2, 1);
  transition: opacity .5s, transform .5s;
}
.egg-toast.is-out { opacity: 0; transform: translate(-50%, 12px); }
@keyframes eggToastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ① 活報紙：報頭的字像剛印上去的墨，慢慢暈開又收回 */
.egg-live .masthead .title-zh { animation: eggInk 3.2s ease-in-out infinite alternate; }
.egg-live .masthead .title-en { animation: eggInkEn 3.2s ease-in-out infinite alternate; }
@keyframes eggInk {
  from { text-shadow: 0 0 0 rgba(26, 18, 8, 0); filter: blur(0); letter-spacing: inherit; }
  60% { text-shadow: 0 0 6px rgba(26, 18, 8, .55), 0 0 18px rgba(139, 0, 0, .35); filter: blur(.4px); }
  to { text-shadow: 0 0 10px rgba(26, 18, 8, .7), 0 0 34px rgba(139, 0, 0, .45); filter: blur(.9px); }
}
@keyframes eggInkEn { to { text-shadow: 0 0 8px rgba(139, 0, 0, .5); } }
.egg-live .tr-box { box-shadow: 0 0 0 1px var(--gold, #f2c14e), 0 0 22px rgba(242, 193, 78, .35); }

/* ② 像素印刷機：Game Boy 四色＋掃描線＋像素字 */
.egg-8bit .masthead, .egg-8bit main, .egg-8bit body > footer { filter: url(#egg-gb); }
.egg-8bit body, .egg-8bit button, .egg-8bit h1, .egg-8bit h2, .egg-8bit h3, .egg-8bit h4,
.egg-8bit .title-line, .egg-8bit .sec-title, .egg-8bit .stage-title, .egg-8bit .folio, .egg-8bit .no-badge {
  font-family: "Press Start 2P", "DotGothic16", monospace !important;
}
.egg-8bit .title-zh, .egg-8bit .sec-title, .egg-8bit .stage-title, .egg-8bit .rd-name { font-family: "DotGothic16", monospace !important; }
.egg-8bit img, .egg-8bit video { image-rendering: pixelated; }
.egg-8bit * { border-radius: 0 !important; }
.egg-8bit body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(15, 56, 15, .16) 0 1px, transparent 1px 3px);
}
.egg-lives {
  position: fixed; top: 14px; right: 16px; z-index: 9999;
  padding: 8px 12px; background: #0f380f; color: #9bbc0f; border: 3px solid #9bbc0f;
  font-family: "Press Start 2P", "DotGothic16", monospace; font-size: 12px;
  box-shadow: 4px 4px 0 #306230;
  animation: eggLives 1s steps(2, end) infinite;
}
.egg-lives span { color: #8bac0f; margin-right: 6px; }
@keyframes eggLives { 50% { color: #306230; } }
.egg-8bit body, .egg-8bit html { background: #9bbc0f !important; }
.ls-trend { font-style: normal; font-weight: 700; color: var(--accent); }

/* ── 玩法雷達：專題歸納三欄（lens_digest.py）── */
.lens-brain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 8px; border: 1px solid var(--ink); background: rgba(255, 253, 245, .55); }
.lb-col { padding: 14px 16px 16px; border-right: 1px solid var(--rule); min-width: 0; }
.lb-col:last-child { border-right: 0; }
.lb-h { margin: 0 0 10px; font-size: 15px; font-weight: 900; letter-spacing: 2px; display: flex; flex-direction: column; gap: 2px; }
.lb-h span { font-size: 11px; font-weight: 400; letter-spacing: .5px; color: var(--muted); font-style: italic; }
.lb-love .lb-h { color: #2e5d3a; } .lb-trap .lb-h { color: var(--accent); } .lb-ask .lb-h { color: #6b4f9c; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-item { padding: 8px 10px 8px 12px; border-left: 4px solid #2e5d3a; background: rgba(46, 93, 58, .06); }
.lb-trap .lb-item { border-left-color: var(--accent); background: rgba(139, 0, 0, .05); }
.lb-ask .lb-item { border-left-color: #6b4f9c; background: rgba(107, 79, 156, .06); }
.lb-point { margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.lb-detail { margin: 3px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.lb-meta { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.lb-note { margin: 0 0 18px; font-size: 11px; color: var(--muted); font-style: italic; text-align: right; }
@media (max-width: 1000px) { .lens-brain { grid-template-columns: 1fr; } .lb-col { border-right: 0; border-bottom: 1px solid var(--rule); } }
.lb-more { margin-top: 8px; } .lb-more > summary { cursor: pointer; font-size: 12px; color: var(--muted); letter-spacing: 1px; } .lb-more .lb-list { margin-top: 8px; }

/* ── NPG標記插件：作者親手標的教學、研究專案頁（2026-10-05） ── */
.ws-pick { position: absolute; right: 8px; top: 8px; padding: 1px 7px; font-size: 11px; font-weight: 800; background: #8b0000; color: #fff; letter-spacing: .04em; }
.ws-card.is-pick { border-color: color-mix(in srgb, #8b0000 55%, var(--rule)); }
.ws-note { margin: 0 0 4px; font-size: 12px; line-height: 1.55; color: #8b0000; font-weight: 600; }

.rs-list { display: grid; gap: 22px; margin-top: 18px; }
.rs-proj { border: 1px solid var(--rule); background: rgba(255, 253, 245, .7); padding: 16px 18px; }
.rs-proj h3 { margin: 0 0 4px; font-size: 20px; }
.rs-proj .rs-meta { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.rs-marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rs-mark { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding-top: 10px; border-top: 1px dashed var(--rule); }
.rs-mark img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.rs-mark a { color: var(--ink); font-weight: 700; text-decoration: none; }
.rs-mark a:hover { text-decoration: underline; }
.rs-note { margin: 4px 0 0; font-size: 13px; color: #8b0000; }
.rs-sel { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); border-left: 3px solid var(--rule); padding-left: 8px; }
.rs-when { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .rs-mark { grid-template-columns: 1fr; } .rs-mark img { width: 100%; } }

/* ═══════════ v0.4g（2026-10-05）清單翻頁、編輯版工具 ═══════════ */
.flip { margin-bottom: 0; }
.flip > li[hidden] { display: none !important; }
.flip-in-r { animation: flipInR .35s cubic-bezier(.2, .8, .2, 1); }
.flip-in-l { animation: flipInL .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes flipInR { from { opacity: 0; transform: translateX(28px); } }
@keyframes flipInL { from { opacity: 0; transform: translateX(-28px); } }
.flip-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 8px 0 4px; color: var(--ink); }
.flip-ctrl[hidden] { display: none; }
.flip-ctrl button {
  width: 30px; height: 28px; padding: 0; font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit; transition: background .2s, color .2s;
}
.flip-ctrl button:hover { background: var(--ink); color: var(--paper); }
.flip-ctrl .folio { padding-bottom: 2px; }
.flip-ctrl .folio::before { content: none; }
.flip-ctrl .folio-n { font-size: 18px; color: var(--accent); }
.flip-ctrl .folio-t { font-size: 11px; }
.lb-trap .flip-ctrl .folio-n { color: var(--accent); }
.lb-love .flip-ctrl .folio-n { color: #2e5d3a; }
.lb-ask .flip-ctrl .folio-n { color: #6b4f9c; }
.lens-brain { margin-top: 18px; }

/* 編輯版 */
.ed-flag {
  position: fixed; left: 14px; bottom: 14px; z-index: 900;
  padding: 6px 12px; font-size: 12px; letter-spacing: 1px; text-decoration: none;
  background: var(--paper); color: var(--accent); border: 1px dashed var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.ed-flag:hover { background: var(--accent); color: #fff; }
blockquote.vq[data-rid], li.wish[data-rid], blockquote.rp-q[data-rid], li.lb-item[data-ins], li.rp[data-pt] { position: relative; }
.ed-x {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  padding: 2px 7px; font: inherit; font-size: 11px; letter-spacing: .5px; cursor: pointer;
  border: 1px solid rgba(139, 0, 0, .45); background: rgba(255, 253, 245, .92); color: var(--accent);
  opacity: 0; transition: opacity .15s;
}
*:hover > .ed-x { opacity: 1; }
.ed-x:hover { background: var(--accent); color: #fff; }
.ed-toast button { margin-left: 10px; font: inherit; font-size: 13px; cursor: pointer; background: var(--gold, #f2c14e); color: #1a1208; border: 0; padding: 2px 10px; }

/* ── 編輯版：勾選遊戲開新專題（editor.js）── */
.lg { position: relative; }
.pick-box {
  position: absolute; top: 6px; left: 6px; z-index: 5; display: flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 5px; font-size: 11px; letter-spacing: 1px; cursor: pointer;
  background: rgba(16, 12, 8, .78); color: #f4ecd8; border: 1px solid rgba(242, 193, 78, .5);
  opacity: 0; transition: opacity .15s;
}
.lg:hover .pick-box, .lg.is-picked .pick-box { opacity: 1; }
.pick-box input { margin: 0; accent-color: var(--gold, #f2c14e); width: 14px; height: 14px; cursor: pointer; }
.lg.is-picked { outline: 3px solid var(--gold, #f2c14e); outline-offset: -1px; }
.pick-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 950;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: calc(100vw - 32px);
  padding: 10px 14px; background: var(--stage, #17120d); color: var(--paper-on-dark, #f4ecd8);
  border: 1px solid var(--gold, #f2c14e); box-shadow: 0 12px 34px rgba(0, 0, 0, .4); font-size: 13px;
  animation: eggToastIn .3s cubic-bezier(.2, .8, .2, 1);
}
.pick-bar[hidden] { display: none; }
.pick-n { font-weight: 800; color: var(--gold, #f2c14e); letter-spacing: 1px; }
.pick-bar input, .pick-bar select { font: inherit; padding: 5px 8px; border: 1px solid rgba(242, 193, 78, .5); background: #0f0c08; color: #f4ecd8; }
.pick-bar input { width: 16em; }
.pick-bar button { font: inherit; cursor: pointer; padding: 5px 12px; border: 0; background: var(--gold, #f2c14e); color: #1a1208; font-weight: 700; }
.pick-bar .pick-clear { background: transparent; color: #f4ecd8; border: 1px solid rgba(244, 236, 216, .4); padding: 5px 9px; }
.pick-or { opacity: .7; }
.lens-nav a.is-custom { color: #6b4f9c; }
.lens-busy { margin: -6px 0 14px; padding: 8px 12px; font-size: 13px; background: rgba(107, 79, 156, .08); border-left: 4px solid #6b4f9c; color: var(--ink-soft); }

/* ═══════════ v0.4i（2026-10-07）破口評分、遊戲標籤、逐款原聲、繁中譯 ═══════════ */
.lens-stats { grid-template-columns: 1fr 1fr 1.1fr 1.5fr; }
.ls-sep { font-style: normal; margin: 0 6px; opacity: .35; font-weight: 400; }
.ls-gap { display: flex; flex-direction: column; gap: 2px; }
.gap-total small { font-size: 14px; opacity: .5; margin-left: 2px; }
.gap-total.gap-hi { color: #2e7d32; } .gap-total.gap-mid { color: #b8860b; } .gap-total.gap-lo { color: var(--muted); }
.beta { font-style: normal; font-size: 9px; letter-spacing: 1px; padding: 0 4px; border: 1px solid currentColor; vertical-align: 2px; }
.gap-verdict { font-size: 12px; color: var(--ink); }
.gap-bars { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.gap-bars li { display: grid; grid-template-columns: 4.5em 1fr 2em; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); cursor: help; }
.gap-bars li.is-off { opacity: .45; }
.gb-bar { height: 6px; background: rgba(26, 18, 8, .1); position: relative; }
.gb-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b8860b, #2e7d32); }
.gb-n { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .lens-stats { grid-template-columns: 1fr 1fr; } }

.gtag { display: inline-block; margin-right: 4px; padding: 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  color: #6b4f9c; background: rgba(107, 79, 156, .1); border: 1px solid rgba(107, 79, 156, .3); vertical-align: 1px; }
.gtag.is-all { color: #fff; background: #2e5d3a; border-color: #2e5d3a; cursor: help; }
.lb-trap .gtag:not(.is-all) { color: var(--accent); background: rgba(139, 0, 0, .07); border-color: rgba(139, 0, 0, .25); }
.lb-trap .gtag.is-all { background: var(--accent); border-color: var(--accent); }

.zh-tr { display: block; margin-top: 6px; padding: 6px 10px; background: rgba(46, 93, 58, .06); border-left: 3px solid #2e5d3a;
  font-size: 13.5px; line-height: 1.7; color: var(--ink); white-space: pre-line; }
.zh-tr.is-long { max-height: 9.5em; overflow: hidden; }
.vq-text.is-open ~ .zh-tr.is-long { max-height: none; }
.zh-tag { display: inline-block; margin-right: 6px; font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #2e5d3a; }
.wish-zh { margin: 4px 0 2px; font-size: 13px; }

.lens-h small { font-size: 11px; font-weight: 400; letter-spacing: .5px; color: var(--muted); margin-left: 6px; }
.lv-name { margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.lv-name .no-badge { margin: 0 4px 0 0; }
.lg.is-current { outline: 3px solid var(--accent); outline-offset: -1px; box-shadow: 0 6px 18px rgba(139, 0, 0, .22); }
.lg.is-picked.is-current { outline-color: var(--gold, #f2c14e); }
.flip > [hidden] { display: none !important; }
.ls-gap .gap-total { font-size: 38px; line-height: 1; }
.ls-gap .gap-total span { font-size: inherit; }
.gap-verdict { font-style: normal; font-weight: 900; font-size: 15px; letter-spacing: 2px; color: var(--ink); }
.gap-bars li { grid-template-columns: 5.2em 1fr 2em; white-space: nowrap; }

/* ── 第三版：遊戲深評（2026-10-16b 改對開翻頁）──
   左頁固定：預告片＋標題＋導言；右頁一章一頁（deep.js 量高度、太長切「續」頁）。整版不出捲軸。
   --dr-h＝右頁內文區高度；字比舊版大一號（內文 16px）。 */
.dr { --dr-h: 560px; }
.dr-page { border: 1px solid var(--ink); background: rgba(255, 253, 245, .55); }
.dr-spread { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: stretch; }
.dr-hero { border-right: 3px double var(--ink); display: flex; flex-direction: column; min-width: 0; }
.dr-hero-media { background: #111; border-bottom: 1px solid var(--ink); }
.dr-hero-media > * { width: 100%; display: block; }
.dr-hero-text { padding: 14px 20px 16px; }
.dr-kicker { margin: 0; font-size: 12.5px; letter-spacing: 1px; color: var(--muted); }
.dr-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11.5px; border: 1px solid var(--ink); }
.dr-badge.is-upd { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.dr-headline { margin: 8px 0 8px; font-family: "Playfair Display", "Noto Serif TC", serif; font-size: 26px; font-weight: 900; line-height: 1.32; }
.dr-deck { margin: 0; font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); }
.dr-verdict { margin: 10px 0 0; font-size: 16px; font-weight: 800; color: var(--accent); }
.dr-facts { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.dr-srcline { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.dr-srcline span { padding: 0 6px; border: 1px dotted var(--rule); }
.dr-srcline .is-pending { border-style: dashed; color: var(--accent); }

/* 右頁：目錄 → 內文 → 翻頁列 */
.dr-book { display: flex; flex-direction: column; min-width: 0; }
.dr-toc { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 22px 8px; border-bottom: 1px solid var(--ink); }
.dr-toc button { font: inherit; font-size: 13px; padding: 3px 9px 3px 4px; cursor: pointer; border: 1px solid var(--rule);
  background: transparent; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.dr-toc button span { font-family: "Cinzel", "Noto Serif TC", serif; font-size: 11px; padding: 0 5px; background: var(--ink); color: var(--paper); }
.dr-toc button:hover { background: rgba(0, 0, 0, .06); }
.dr-toc button.is-on { background: var(--ink); color: var(--paper); }
.dr-toc button.is-on span { background: var(--accent); }
.dr-stage { position: relative; height: var(--dr-h); overflow: hidden; }
.dr-ch { display: none; position: absolute; inset: 0; padding: 16px 26px 10px; overflow: hidden; }
.dr-ch.is-on { display: block; animation: drIn .28s ease; }
.dr-stage.is-measure .dr-ch { display: block; visibility: hidden; animation: none; }
.dr-ch.is-tall { overflow-y: auto; scrollbar-width: thin; }       /* 單一條目就超過一頁：逼不得已才捲 */
@keyframes drIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.dr-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 22px 10px; border-top: 1px solid var(--ink); }
.dr-pager button { font: inherit; font-size: 14px; font-weight: 800; padding: 6px 16px; cursor: pointer;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.dr-pager button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.dr-pager button:disabled { opacity: .3; cursor: default; }
.dr-pager .dr-next { background: var(--ink); color: var(--paper); }
.dr-pager .dr-next.is-last::after { content: "（下一款）"; font-weight: 400; font-size: 12px; }
.dr-pno { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.dr-pno b { font-family: "Playfair Display", serif; font-size: 20px; color: var(--ink); }

.dr-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.dr-h span { font-family: "Cinzel", "Noto Serif TC", serif; font-size: 13px; color: var(--paper); background: var(--ink); padding: 1px 8px; letter-spacing: 0; }
.dr-h em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.dr-h.is-pro { color: #2e5d3a; } .dr-h.is-pro span { background: #2e5d3a; }
.dr-h.is-con { color: var(--accent); } .dr-h.is-con span { background: var(--accent); }
.dr-p { margin: 0 0 10px; font-size: 16px; line-height: 1.85; color: var(--ink); }
.dr-lead { font-size: 16.5px; }
.dr-players { color: var(--ink-soft); font-size: 15px; }
.dr-loop { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 4px 0 12px; padding: 0; list-style: none; counter-reset: lp; }
.dr-loop li { counter-increment: lp; padding: 5px 11px; background: var(--stage, #222); color: var(--paper-on-dark, #f4ecd8); font-size: 14px; }
.dr-loop li::before { content: counter(lp) " "; color: var(--gold, #d4a24c); font-weight: 900; }
.dr-shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.dr-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 1px solid var(--ink); background: #111; }
.dr-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-content: start; }
.dr-sys { padding: 10px 14px; border-left: 3px solid var(--ink); background: rgba(0, 0, 0, .03); }
.dr-sys-name { margin: 0 0 4px; font-weight: 900; font-size: 17px; }
.dr-sys .dr-p { font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.dr-refs { margin: 0; }
.dr-li { position: relative; padding: 2px 0 12px 18px; margin-bottom: 10px; border-bottom: 1px dashed var(--rule); font-size: 15.5px; line-height: 1.85; }
.dr-li:last-child { border-bottom: 0; }
.dr-li::before { content: "◆"; position: absolute; left: 0; top: 4px; font-size: 10px; color: var(--ink); }
.dr-li.is-pro::before { color: #2e5d3a; } .dr-li.is-con::before { color: var(--accent); } .dr-li.is-gold::before { color: #b8862b; }
.dr-li b { display: block; font-size: 17px; margin-bottom: 2px; color: var(--ink); }
.dr-video a { color: var(--ink); } .dr-video span { color: var(--muted); font-size: 13px; }
.dr-ref { display: inline-block; margin: 0 2px; padding: 0 5px; font-size: 11px; line-height: 1.6; vertical-align: 2px;
  color: var(--accent); border: 1px solid currentColor; text-decoration: none; white-space: nowrap; }
.dr-ref:hover { background: var(--accent); color: var(--paper); }
.dr-ref-guide, .dr-ref-wiki, .dr-ref-pcgw { color: #2c4f7c; } .dr-ref-guide:hover, .dr-ref-wiki:hover, .dr-ref-pcgw:hover { background: #2c4f7c; }
.dr-ref-review { color: #2e5d3a; } .dr-ref-review:hover { background: #2e5d3a; }
.dr-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-content: start; }
.dr-gallery.is-community { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dr-gallery figure { margin: 0; }
.dr-gallery a, .dr-shots a { display: block; cursor: zoom-in; position: relative; }
.dr-gallery a:hover img, .dr-shots a:hover img { outline: 3px solid var(--accent); outline-offset: -3px; }
.dr-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border: 1px solid var(--ink); background: #111; }
.dr-gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-cap { margin: 4px 0 6px; font-size: 13px; line-height: 1.8; color: var(--muted); }

/* 燈箱：點任何一張圖 → 全螢幕看大圖，左右切換、下方縮圖列 */
html.dr-lb-open { overflow: hidden; }
.dr-lb { position: fixed; inset: 0; z-index: 400; background: rgba(10, 8, 6, .94); display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr) auto; align-items: center; }
.dr-lb[hidden] { display: none; }
.dr-lb .lb-fig { grid-column: 2; grid-row: 1; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 8px; min-height: 0; }
.dr-lb .lb-fig img { max-width: 100%; max-height: calc(100% - 34px); object-fit: contain; box-shadow: 0 8px 40px rgba(0, 0, 0, .6); background: #111; }
.dr-lb figcaption { margin-top: 10px; color: #e9e1cf; font-size: 14px; letter-spacing: 1px; text-align: center; }
.dr-lb button { font: inherit; cursor: pointer; border: 0; background: transparent; color: #f4ecd8; }
.dr-lb .lb-prev, .dr-lb .lb-next { grid-row: 1; font-size: 54px; line-height: 1; height: 120px; opacity: .7; }
.dr-lb .lb-prev { grid-column: 1; } .dr-lb .lb-next { grid-column: 3; }
.dr-lb .lb-prev:hover, .dr-lb .lb-next:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
.dr-lb .lb-x { position: absolute; top: 12px; right: 16px; font-size: 26px; z-index: 1; opacity: .8; }
.dr-lb .lb-x:hover { opacity: 1; color: var(--gold, #f2c14e); }
.dr-lb .lb-strip { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; justify-content: safe center; overflow-x: auto; padding: 10px 16px 16px; scrollbar-width: thin; }
.dr-lb .lb-strip button { flex: none; padding: 0; opacity: .5; border: 2px solid transparent; }
.dr-lb .lb-strip button.is-on { opacity: 1; border-color: var(--gold, #f2c14e); }
.dr-lb .lb-strip img { height: 56px; width: auto; display: block; }

/* 評測願望清單：第三版最下面一整條，三欄 */
.dr-wish { margin-top: 22px; border: 2px solid var(--ink); background: var(--paper); }
.dr-wish-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 12px 20px 10px; border-bottom: 3px double var(--ink); }
.dr-wish-head h4 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: 3px; }
.dr-wish-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dr-wish-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
.dr-wish-cols > * { padding: 14px 18px 16px; min-width: 0; }
.dr-wish-cols > * + * { border-left: 1px solid var(--ink); }
.dr-wish-cols h5 { margin: 0 0 8px; font-size: 15px; font-weight: 900; letter-spacing: 2px; }
.dr-wish-note { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.dr-wish-form { display: flex; flex-direction: column; gap: 9px; }
.dr-wish-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px; gap: 8px; }
.dr-wish-row > label:first-child { grid-column: 1 / -1; }
.dr-wish-row > label { min-width: 0; }
.dr-wish-row input, .dr-wish-row select { width: 100%; box-sizing: border-box; }
.dr-wish-form label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; }
.dr-wish-form em { font-style: normal; color: var(--accent); font-weight: 400; }
.dr-wish-form input:not([type]), .dr-wish-form input[type=text], .dr-wish-form select {
  font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--ink); background: #fffdf5; color: var(--ink); min-width: 0; }
.dr-asp { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dr-asp legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.dr-asp label { flex-direction: row; font-weight: 400; cursor: pointer; }
.dr-asp input { position: absolute; opacity: 0; pointer-events: none; }
.dr-asp span { display: inline-block; padding: 4px 10px; font-size: 13px; border: 1px solid var(--ink); background: #fffdf5; }
.dr-asp input:checked + span { background: var(--ink); color: var(--paper); }
.dr-asp input:focus-visible + span { outline: 2px solid var(--accent); }
.dr-wish-form button[type=submit], .dr-run { font: inherit; font-size: 14px; font-weight: 800; padding: 7px; cursor: pointer; border: 2px solid var(--accent); background: var(--accent); color: var(--paper); }
.dr-run { width: 100%; margin-top: 8px; background: transparent; color: var(--accent); font-weight: 700; font-size: 13px; }
.dr-run:disabled { opacity: .7; cursor: default; }
.dr-wish-msg { margin: 0; min-height: 1em; font-size: 13px; color: #2e5d3a; }
.dr-wish-msg.is-bad { color: var(--accent); }
.dr-cand-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.dr-cand-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 9px;
  align-items: center; border: 1px solid var(--ink); background: #fffdf5; }
.dr-cand-list img { grid-row: 1 / 3; width: 92px; height: 43px; object-fit: cover; display: block; }
.dr-cand-list .c-name { align-self: end; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-cand-list .c-meta { align-self: start; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-cand-list .c-add { grid-column: 3; grid-row: 1 / 3; align-self: stretch; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  border: 0; border-left: 1px solid var(--ink); padding: 0 10px; background: transparent; color: var(--accent); white-space: nowrap; }
.dr-cand-list .c-add:hover:not(:disabled) { background: var(--accent); color: var(--paper); }
.dr-cand-list .is-added { opacity: .55; }
.dr-cand-list .is-empty { grid-column: 1 / -1; border: 0; background: none; color: var(--muted); font-size: 13px; }
.dr-wish-list { margin: 0; padding: 0 0 0 20px; font-size: 13.5px; }
.dr-wish-list li { position: relative; padding: 4px 20px 6px 0; border-bottom: 1px dotted var(--rule); }
.dr-wish-list .w-name { display: block; font-weight: 800; }
.dr-wish-list .w-name small { margin-left: 5px; font-weight: 400; color: var(--muted); }
.dr-wish-list .w-votes { margin-left: 6px; font-style: normal; font-size: 11.5px; padding: 0 5px; background: var(--accent); color: var(--paper); }
.dr-wish-list .w-st { font-size: 12px; color: var(--muted); }
.dr-wish-list .is-written .w-st { color: #2e5d3a; } .dr-wish-list .is-failed .w-st, .dr-wish-list .w-why { color: var(--accent); }
.dr-wish-list .w-why { display: block; font-size: 12px; }
.dr-wish-list .w-del { position: absolute; right: 0; top: 4px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.dr-wish-list .is-empty { list-style: none; color: var(--muted); }
.dr-queue .dr-wish-note { margin-top: 12px; }
.dr-demand { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dr-demand li { display: grid; grid-template-columns: 8.5em 1fr 2em; align-items: center; gap: 6px; font-size: 12.5px; }
.dr-demand i { height: 8px; background: var(--accent); }
.dr-demand b { text-align: right; }
.dr-wish-stat { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 1000px) {
  .dr-spread { grid-template-columns: minmax(0, 1fr); }
  .dr-hero { border-right: 0; border-bottom: 3px double var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dr-hero-media { border-bottom: 0; border-right: 1px solid var(--ink); display: flex; align-items: center; }
  .dr-wish-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dr-queue { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--ink); }
  .dr-gallery, .dr-gallery.is-community { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dr { --dr-h: 620px; }
  .dr-hero { grid-template-columns: 1fr; }
  .dr-hero-media { border-right: 0; border-bottom: 1px solid var(--ink); }
  .dr-systems, .dr-shots { grid-template-columns: 1fr; }
  .dr-gallery, .dr-gallery.is-community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr-ch { padding: 12px 16px 8px; }
  .dr-toc, .dr-pager { padding-left: 14px; padding-right: 14px; }
  .dr-wish-cols, .dr-wish-row { grid-template-columns: minmax(0, 1fr); }
  .dr-wish-cols > * + * { border-left: 0; border-top: 1px solid var(--ink); }
  .dr-lb { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}
/* 清單分頁（精選候選、排程清單） */
.dr-cand-list li[hidden], .dr-wish-list li[hidden] { display: none; }
.dr-lpager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.dr-lpager[hidden] { display: none; }
.dr-lpager b { color: var(--ink); font-size: 14px; }
.dr-lpager button { font: inherit; font-size: 16px; line-height: 1; width: 30px; height: 26px; cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.dr-lpager button:hover { background: var(--ink); color: var(--paper); }


/* ===== 玩法演化誌（10-16，原玩法雷達）：持續推進的議題標示 ===== */
.evo-head { margin: 18px 0 8px; padding: 18px 20px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); background: linear-gradient(90deg, rgba(139,0,0,.05), transparent 60%); }
.evo-kicker { margin: 0; font-size: 13px; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.evo-title { margin: 6px 0 6px; font-size: 30px; letter-spacing: 4px; }
.evo-sub { margin: 0 0 12px; font-size: 15px; line-height: 1.85; color: var(--ink-soft); max-width: 62em; }
.evo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.evo-steps li { position: relative; padding: 10px 14px 10px 14px; border-top: 3px solid var(--rule); font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.evo-steps li b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.evo-steps li.is-live { border-top-color: var(--accent); }
.evo-steps li.is-beta { border-top-color: #b8860b; }
.evo-steps li.is-next { border-top-style: dashed; opacity: .8; }
.evo-steps li.is-next b::after { content: ' · 籌備中'; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.evo-line { margin: -6px 0 14px; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.evo-line b { color: var(--accent); }
.evo-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; animation: evo-pulse 1.8s ease-out infinite; }
@keyframes evo-pulse { 0% { box-shadow: 0 0 0 0 rgba(139,0,0,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(139,0,0,0); } }
.rp-ev-wait { margin: 8px 0; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) { .evo-steps { grid-template-columns: 1fr 1fr; } .evo-title { font-size: 24px; } }

/* ===== 第三版章節色（10-16，作者色票）：每章一色，點下去整顆換成該章的顏色 ===== */
.dr-toc button { border-left: 3px solid var(--ch, var(--rule)); transition: background .18s, color .18s, transform .18s; }
.dr-toc button span { background: var(--ch, var(--ink)); color: var(--ch-ink, var(--paper)); }
.dr-toc button:hover { background: color-mix(in srgb, var(--ch, #000) 12%, transparent); }
.dr-toc button.is-on { background: var(--ch, var(--ink)); color: var(--ch-ink, var(--paper)); border-color: var(--ch, var(--ink));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--ch, #000) 45%, transparent); transform: translateY(-1px); }
.dr-toc button.is-on span { background: color-mix(in srgb, var(--ch-ink, #fff) 22%, transparent); color: var(--ch-ink, var(--paper)); }
.dr-ch .dr-h { border-bottom: 2px solid var(--ch, transparent); padding-bottom: 6px; }
.dr-ch .dr-h span { background: var(--ch, var(--ink)); color: var(--ch-ink, var(--paper)); }

/* ===== 深評固定網址與獨立文章頁（10-16）===== */
.dr-perma { margin: 6px 0 0; font-size: 13px; }
.dr-perma a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
/* 分享四顆鈕（2026-10-25）：只有「深度夠」的文章才出現，見 deep_review._shareable */
.dr-share { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: middle; }
.dr-sh { font: inherit; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; cursor: pointer;
         border: 1px solid currentColor; background: transparent; color: var(--accent); text-decoration: none; }
.dr-sh:hover { background: var(--accent); color: #fff; }
.dr-sh-line:hover { background: #06C755; border-color: #06C755; }
.dr-sh-x:hover { background: #000; border-color: #000; }
.dr-sh-fb:hover { background: #1877F2; border-color: #1877F2; }
.dr-sh.is-done { background: var(--accent); color: #fff; }
/* 讀者來函（2026-10-25）：只在 /deep/<appid>/ 固定網址頁，先審後刊 */
.dr-letters { max-width: 760px; margin: 36px auto 10px; padding: 0 16px; }
.dr-letters h4 { font-size: 20px; letter-spacing: 2px; border-bottom: 2px solid currentColor; padding-bottom: 6px; margin: 0 0 8px; }
.dr-lt-note { font-size: 13px; opacity: .75; margin: 0 0 14px; }
.dr-lt { border-bottom: 1px solid rgba(127,127,127,.3); padding: 12px 0; }
.dr-lt-who { font-size: 12px; opacity: .7; }
.dr-lt-body { white-space: pre-wrap; line-height: 1.8; margin: 4px 0 0; }
.dr-lt-form { display: grid; gap: 8px; margin-top: 16px; }
.dr-lt-form input, .dr-lt-form textarea { font: inherit; padding: 8px 10px; border: 1px solid rgba(127,127,127,.5);
  background: transparent; color: inherit; width: 100%; box-sizing: border-box; }
.dr-lt-form button { justify-self: start; font: inherit; padding: 8px 20px; cursor: pointer; background: var(--accent); color: #fff; border: 0; }
.dr-lt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dr-lt-msg { font-size: 13px; }
.reader.dr.is-single .hs-track { transform: none !important; }
.dr-more { margin: 28px 0 10px; border-top: 2px solid var(--ink); padding-top: 12px; }
.dr-more h4 { margin: 0 0 8px; font-size: 18px; letter-spacing: 2px; }
.dr-more ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.dr-more li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dotted var(--rule); font-size: 14px; }
.dr-more li span { color: var(--ink-soft); font-size: 12px; }
@media (max-width: 760px) { .dr-more ul { columns: 1; } }

/* 總編輯室入口（10-16：作者找不到付印鈕）*/
.nav-minor.nav-newsroom { font-weight: 700; color: var(--accent); border: 1px solid currentColor; padding: 3px 10px; }
.nav-minor.nav-newsroom.is-on, .nav-minor.nav-newsroom:hover { background: var(--accent); color: var(--paper); }

/* ===== 頁底（2026-12-03 作者定稿格式）＋創刊會員募集頁 ===== */
footer.site-foot { letter-spacing: .5px; line-height: 1.9; }
footer.site-foot p { margin: 2px 0; }
footer.site-foot .sf-name { font-size: 14px; letter-spacing: 3px; color: var(--ink, #1a1a1a); font-weight: 700; }
footer.site-foot .sf-label { display: block; font-size: 11px; letter-spacing: 2px; opacity: .8; }
footer.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer.site-foot a:hover { color: var(--accent); }
footer.site-foot .sf-join { font-weight: 700; }
.support-page .sp-body { max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; line-height: 1.9; }
.support-page .sp-body h2 { font-size: 20px; margin: 28px 0 8px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.support-page .sp-body li { margin: 6px 0; }

/* 工坊：沒有縮圖的卡（GitHub 以外的消息）用文字封面，不留一格黑 */
.ws-cover { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 16px; text-decoration: none;
  background: linear-gradient(135deg, var(--c, #444) 0%, #141414 85%); color: #fff; }
.ws-cover-src { font-size: 11px; letter-spacing: 2px; opacity: .75; text-transform: uppercase; }
.ws-cover-t { font-size: 15px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ws-card:hover .ws-cover { filter: brightness(1.15); }
