/* 星布谷地攻略圖鑑。字級照 foreclosure-backend/page/DESIGN_TOKENS.md；自訂類別一律 pl- 前綴，不碰共用外殼的 Tailwind 類別 */
.pl-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.6;
}
@media (min-width: 640px) { .pl-main { padding: 32px 24px 64px; } }

.pl-crumbs { font-size: 14px; line-height: 20px; color: #6b7280; margin-bottom: 16px; }
.pl-crumbs a { color: #2563eb; text-decoration: none; }
.pl-crumbs a:hover { text-decoration: underline; }

.pl-h1 { font-size: 30px; line-height: 36px; font-weight: 700; margin: 0 0 8px; color: #111827; }
.pl-h2 { font-size: 20px; line-height: 28px; font-weight: 700; margin: 32px 0 12px; color: #111827; }
.pl-h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin: 20px 0 8px; color: #111827; }
.pl-lead { font-size: 16px; line-height: 1.7; color: #374151; margin: 0 0 16px; max-width: 56rem; }
.pl-en { font-size: 14px; line-height: 20px; color: #6b7280; margin: -4px 0 16px; }
.pl-en-inline { display: block; font-size: 12px; line-height: 16px; color: #6b7280; }
.pl-note { font-size: 12px; color: #6b7280; }
.pl-link { color: #2563eb; text-decoration: none; }
.pl-link:hover { text-decoration: underline; }
.pl-back { margin-top: 32px; font-size: 14px; }

.pl-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0 8px; }
@media (min-width: 640px) { .pl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-card { display: block; padding: 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pl-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37, 99, 235, .08); }
.pl-card-title { display: block; font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; }
.pl-card-meta { display: block; font-size: 14px; line-height: 20px; color: #6b7280; margin-top: 4px; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pl-chips a { display: inline-block; padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #1f2937; font-size: 14px; line-height: 20px; text-decoration: none; }
.pl-chips a:hover { border-color: #93c5fd; color: #2563eb; }

.pl-list { margin: 0; padding-left: 1.25rem; }
.pl-list li { margin: 4px 0; }
@media (min-width: 768px) { .pl-list-cols { columns: 2; column-gap: 32px; } }

.pl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 16px 0 8px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
@media (min-width: 768px) { .pl-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pl-facts dt { font-size: 12px; line-height: 16px; color: #6b7280; }
.pl-facts dd { margin: 2px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; }

.pl-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 16px 0 12px; }
.pl-filter-item { display: flex; flex-direction: column; font-size: 12px; line-height: 16px; color: #6b7280; gap: 4px; }
.pl-filter-grow { flex: 1 1 220px; }
.pl-filter input { font-size: 16px; line-height: 24px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #111827; }
.pl-empty { margin: 16px 0; font-size: 14px; color: #6b7280; text-align: center; }
.pl-filter-count { font-size: 14px; color: #6b7280; padding-bottom: 8px; }

.pl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.pl-table { width: 100%; min-width: 560px; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.pl-table th { text-align: left; font-weight: 600; color: #374151; background: #f9fafb; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.pl-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: top; word-break: break-word; }
.pl-table tbody tr:last-child td { border-bottom: 0; }
/* 從別頁連到某一列（#f-、#o-）時標出那一列 */
.pl-table tbody tr:target td { background: #fef9c3; }
.pl-c-name { width: 28%; }
.pl-c-app { width: 14%; }
.pl-c-taste { width: 12%; }
.pl-c-slot { width: 64px; }
.pl-c-qty { width: 80px; }
.pl-c-rank { width: 96px; }
.pl-table-mats { min-width: 360px; }
.pl-table-species { min-width: 640px; }
.pl-table-colors { min-width: 480px; }

.pl-tag { display: inline-block; font-size: 12px; line-height: 16px; padding: 1px 6px; border-radius: 6px; background: #fef3c7; color: #92400e; vertical-align: 1px; }
.pl-rank { display: inline-block; font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #4b5563; white-space: nowrap; }
.pl-rank-1 { background: #e0f2fe; color: #075985; }
.pl-rank-2 { background: #ede9fe; color: #5b21b6; }
.pl-rank-3 { background: #fef3c7; color: #92400e; }

/* 手機：料理表只留料理名與材料（器具可用上方篩選、單頁也有），其餘表格不橫滑 */
@media (max-width: 639px) {
  .pl-hide-sm { display: none; }
  .pl-table-recipes, .pl-table-species, .pl-table-colors, .pl-table-mats { min-width: 0; }
  .pl-table-colors .pl-c-name { width: 38%; }
  .pl-table-colors .pl-c-rank { width: 72px; }
  .pl-table-recipes .pl-c-name { width: 40%; }
  .pl-table-species .pl-c-name { width: 24%; }
}

/* 篩選按鈕組（不用原生 select：手機會跳系統選單、字級不受控） */
.pl-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-seg button { font: inherit; font-size: 14px; line-height: 20px; padding: 5px 12px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #374151; cursor: pointer; }
.pl-seg button:hover { border-color: #93c5fd; }
.pl-seg button[aria-pressed="true"] { background: #1e40af; border-color: #1e40af; color: #fff; }

/* 品質（料理材料的紫色、金色） */
.pl-tier { display: inline-block; font-size: 12px; line-height: 16px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.pl-tier-purple { background: #ede9fe; color: #5b21b6; }
.pl-tier-gold { background: #fef3c7; color: #92400e; }

/* 材料格「哪些可以放」 */
.pl-opts { margin-top: 6px; font-size: 14px; }
.pl-opts summary { cursor: pointer; color: #2563eb; width: fit-content; }
.pl-opts-list { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.pl-opts-list a { color: #2563eb; text-decoration: none; }
.pl-opts-list a:hover { text-decoration: underline; }

/* 生物總覽 */
.pl-c-where { width: 24%; }
.pl-c-time { width: 10%; }
.pl-c-weather { width: 12%; }
.pl-c-season { width: 16%; }
.pl-c-tier { width: 72px; }
.pl-table-creatures { min-width: 640px; }
.pl-show-sm { display: none; }
/* 兌換碼 */
.pl-table-codes { min-width: 640px; }
.pl-c-code { width: 30%; }
.pl-c-exp { width: 150px; }
/* 複製鈕有圖示＋固定寬（已複製 88＋6＋兌換 54，加左右留白 24＋餘裕）；英文 Copied 94＋6＋Redeem 80 */
.pl-c-act { width: 188px; }
html[lang="en"] .pl-c-act { width: 214px; }
.pl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 600; color: #111827; word-break: break-all; }
.pl-code-act { white-space: nowrap; text-align: right; }
.pl-btn { display: inline-block; font: inherit; font-size: 14px; line-height: 20px; padding: 5px 12px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #374151; cursor: pointer; text-decoration: none; }
.pl-btn + .pl-btn { margin-left: 6px; }
.pl-btn:hover { border-color: #93c5fd; }
.pl-btn-primary { background: #1e40af; border-color: #1e40af; color: #fff; }
.pl-btn-primary:hover { background: #1d4ed8; }
.pl-new { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 12px; line-height: 16px; }
.pl-codes-count { font-size: 14px; color: #374151; margin: 0 0 12px; }
/* 有設 display 的元素，hidden 屬性會被蓋掉，要明寫 */
.pl-new[hidden], .pl-codes-count[hidden], #pl-expired[hidden] { display: none; }

/* 作物 */
.pl-c-days, .pl-c-rounds { width: 64px; }
.pl-c-price { width: 104px; }
.pl-c-src { width: 22%; }
.pl-table-crops { min-width: 720px; }
.pl-narrow { max-width: 720px; }
.pl-table-variants { min-width: 0; }
.pl-table-variants .pl-c-name { width: auto; }
.pl-table-variants .pl-c-tier { width: 96px; }
.pl-table-variants .pl-c-price { width: 112px; }

@media (max-width: 639px) {
  .pl-show-sm { display: block; }
  .pl-table-crops { min-width: 0; }
  .pl-table-codes { min-width: 0; }
  .pl-table-codes .pl-c-code { width: 46%; }
  .pl-table-codes td { padding-left: 10px; padding-right: 10px; }
  .pl-code { font-size: 13px; letter-spacing: -0.2px; }
  .pl-table-codes .pl-c-act { width: 76px; }
  html[lang="en"] .pl-table-codes .pl-c-act { width: 96px; }
  html[lang="en"] .pl-table-codes .pl-c-code { width: 40%; }
  .pl-code-act .pl-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 4px 8px; }
  .pl-btn + .pl-btn { margin: 6px 0 0; }
  .pl-table-crops .pl-c-name { width: 34%; }
  .pl-table-crops .pl-c-price { width: auto; }
  .pl-table-creatures { min-width: 0; }
  .pl-table-creatures .pl-c-name { width: 36%; }
  .pl-table-creatures .pl-c-where { width: 34%; }
  .pl-table-creatures .pl-c-season { width: 30%; }
  /* 手機：篩選標題放左邊、按鈕接在同一列，少佔一半高度 */
  .pl-filter { gap: 8px; }
  .pl-filter-seg { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; }
  .pl-filter-seg > span { flex: 0 0 2.5em; }
  .pl-seg { gap: 4px; }
  .pl-seg button { padding: 3px 10px; }
}

/* 友鄰 */
.pl-gifts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pl-gifts li { white-space: nowrap; }
.pl-gift-kind { margin-left: 4px; font-size: 12px; color: #6b7280; }
.pl-table-neighbors .pl-c-name { width: 20%; }
.pl-table-neighbors .pl-c-dislike { width: 24%; }
.pl-table-gifts .pl-c-name { width: 30%; }
.pl-c-kind { width: 96px; }
.pl-c-lv { width: 96px; }
.pl-reward-line { margin: 0 0 8px; font-size: 15px; line-height: 24px; color: #1f2937; }
.pl-show-sm { display: none; }
.pl-dislike-sm { margin: 6px 0 0; font-size: 13px; color: #6b7280; }
@media (max-width: 639px) {
  .pl-table-neighbors, .pl-table-gifts, .pl-table-bond { min-width: 0; }
  .pl-show-sm { display: block; }
  .pl-table-neighbors .pl-c-name { width: 30%; }
  .pl-gifts li { white-space: normal; }
  .pl-table-gifts .pl-c-name { width: 38%; }
  .pl-c-kind { width: 64px; }
  .pl-c-lv { width: 76px; }
}

/* 家具 */
.pl-chip-n { margin-left: 6px; font-size: 12px; color: #6b7280; }
.pl-c-fsrc { width: 30%; }
.pl-table-furniture .pl-c-name { width: 34%; }
@media (max-width: 639px) {
  .pl-table-furniture, .pl-table-fset { min-width: 0; }
  .pl-table-furniture .pl-c-name { width: 38%; }
  .pl-table-furniture .pl-c-fsrc { width: 30%; }
  .pl-table-fset .pl-c-name { width: 50%; }
}

/* 服裝 */
.pl-c-n { width: 64px; }
.pl-show-sm-inline { display: none; }
.pl-table-osets .pl-c-name { width: 18%; }
.pl-table-osets .pl-c-fsrc { width: 18%; }
.pl-table-outfits .pl-c-name { width: 40%; }
.pl-table-outfits .pl-en-inline:empty { display: none; }
@media (max-width: 639px) {
  .pl-table-osets, .pl-table-outfits { min-width: 0; }
  .pl-show-sm-inline { display: inline; }
  .pl-table-osets .pl-c-name { width: 34%; }
  .pl-table-outfits .pl-c-name { width: 56%; }
}

/* ===== 視覺元素（2026-12-06 改版：分類色、線條圖示、出現條件、色票、價格長條、材料格）===== */

/* 分類色：淺底＋深字，對比都過 4.5 */
.pl-cat-codes { --cat: #a16207; --cat-bg: #fef9c3; }
.pl-cat-recipes { --cat: #c2410c; --cat-bg: #ffedd5; }
.pl-cat-neighbors { --cat: #be185d; --cat-bg: #fce7f3; }
.pl-cat-fish { --cat: #1d4ed8; --cat-bg: #dbeafe; }
.pl-cat-insects { --cat: #15803d; --cat-bg: #dcfce7; }
.pl-cat-beachcombing { --cat: #0f766e; --cat-bg: #ccfbf1; }
.pl-cat-flowers { --cat: #a21caf; --cat-bg: #fae8ff; }
.pl-cat-furniture { --cat: #92400e; --cat-bg: #f5e9dc; }
.pl-cat-outfits { --cat: #6d28d9; --cat-bg: #ede9fe; }
.pl-cat-crops { --cat: #4d7c0f; --cat-bg: #ecfccb; }

.pl-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }

/* 頁首：分類圖示徽章＋標題 */
.pl-hero { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.pl-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cat-bg); color: var(--cat); font-size: 28px; flex: none; }
.pl-hero .pl-h1 { margin: 0; }
.pl-hero .pl-en { margin: 2px 0 0; }
.pl-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* 首頁分類卡 */
.pl-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 8px; }
@media (min-width: 768px) { .pl-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-hub-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; text-decoration: none; color: #111827; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pl-hub-card:hover { transform: translateY(-2px); border-color: var(--cat); box-shadow: 0 6px 18px rgba(17, 24, 39, .08); }
.pl-hub-card .pl-badge { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }
.pl-hub-title { font-size: 17px; line-height: 24px; font-weight: 700; }
.pl-hub-num { font-size: 28px; line-height: 32px; font-weight: 800; color: var(--cat); letter-spacing: -0.5px; }
.pl-hub-num small { font-size: 14px; font-weight: 600; margin-left: 2px; }
.pl-hub-wide { grid-column: 1 / -1; background: linear-gradient(135deg, #fffbeb, #fef9c3); border-color: #fde68a; }
@media (min-width: 768px) { .pl-hub-wide { flex-direction: row; align-items: center; gap: 16px; } }
.pl-hub-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-hub-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px dashed #d97706; color: #92400e; }

/* 標籤（圖示＋字）；預設值淡化、例外條件上色 */
.pl-ctag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 13px; line-height: 20px; white-space: nowrap; }
.pl-ctag-muted { color: #6b7280; padding-left: 0; }
.pl-ctag-day { background: #fef3c7; color: #92400e; }
.pl-ctag-night { background: #e0e7ff; color: #3730a3; }
.pl-ctag-rain { background: #dbeafe; color: #1e40af; }
.pl-ctag-snow { background: #e0f2fe; color: #075985; }

/* 季節四格 */
.pl-seasons { display: inline-grid; grid-template-columns: repeat(4, auto); gap: 3px; }
.pl-seasons span { min-width: 24px; padding: 1px 4px; border-radius: 6px; font-size: 12px; line-height: 18px; text-align: center; background: #f3f4f6; color: #d1d5db; }
.pl-seasons .on.s0 { background: #fce7f3; color: #be185d; }
.pl-seasons .on.s1 { background: #dcfce7; color: #15803d; }
.pl-seasons .on.s2 { background: #ffedd5; color: #c2410c; }
.pl-seasons .on.s3 { background: #e0f2fe; color: #0369a1; }
.pl-seasons.all .on { background: #f3f4f6; color: #6b7280; }

/* 篩選按鈕帶圖示 */
.pl-seg button .pl-i { margin-right: 3px; }

/* 單頁：出現條件 */
.pl-cond { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; }
@media (min-width: 768px) { .pl-cond { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pl-tile { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; }
.pl-tile-h { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: #6b7280; margin-bottom: 8px; }
.pl-tile-h .pl-i { font-size: 15px; color: var(--cat); }
.pl-tile-v { font-size: 18px; line-height: 26px; font-weight: 700; color: #111827; }
.pl-tile-sub { font-size: 13px; line-height: 18px; color: #6b7280; margin-top: 2px; }
.pl-tile-wide { grid-column: 1 / -1; }
.pl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pl-duo span, .pl-trio span { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; border-radius: 8px; font-size: 13px; background: #f3f4f6; color: #d1d5db; }
.pl-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pl-duo .on.d { background: #fef3c7; color: #92400e; }
.pl-duo .on.n { background: #e0e7ff; color: #3730a3; }
.pl-trio .on { background: #e0f2fe; color: #075985; }
.pl-tile .pl-seasons { display: grid; width: 100%; }
.pl-tile .pl-seasons span { padding: 6px 0; font-size: 13px; }

/* 尺寸條 */
.pl-bar { position: relative; height: 10px; border-radius: 999px; background: #f3f4f6; margin: 10px 0 4px; }
.pl-bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--cat); opacity: .85; }

/* 小標題前加圖示 */
.pl-h2i { display: flex; align-items: center; gap: 8px; }
.pl-h2i .pl-i { color: var(--cat, #6b7280); font-size: 20px; }

/* 鮮花色票 */
.pl-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
@media (min-width: 640px) { .pl-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pl-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pl-sw { padding: 14px 12px 12px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; text-align: center; }
.pl-dot { display: block; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pl-sw-name { font-size: 15px; line-height: 20px; font-weight: 700; }
.pl-sw-en { font-size: 12px; line-height: 16px; color: #6b7280; }
.pl-stars { margin-top: 6px; font-size: 13px; color: #d97706; letter-spacing: 1px; min-height: 18px; }
.pl-stars .base { color: #9ca3af; letter-spacing: 0; font-size: 12px; }
.pl-src { display: flex; justify-content: center; gap: 6px; margin-top: 6px; color: #6b7280; font-size: 15px; }

/* 作物價格長條 */
.pl-prices { display: grid; gap: 8px; margin: 12px 0; max-width: 760px; }
.pl-price { display: grid; grid-template-columns: 9.5em 1fr 6.5em; align-items: center; gap: 10px; font-size: 14px; }
.pl-price-name { line-height: 18px; }
.pl-price-name small { display: block; font-size: 12px; color: #6b7280; }
.pl-price-track { position: relative; height: 22px; border-radius: 6px; background: #f3f4f6; }
.pl-price-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.pl-price-track i.lo { background: #d9f99d; }
.pl-price-track i.hi { background: #84cc16; }
.pl-price.t-purple .pl-price-track i.hi { background: #a855f7; }
.pl-price.t-purple .pl-price-track i.lo { background: #e9d5ff; }
.pl-price.t-gold .pl-price-track i.hi { background: #f59e0b; }
.pl-price.t-gold .pl-price-track i.lo { background: #fde68a; }
.pl-price-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 639px) { .pl-price { grid-template-columns: 7.5em 1fr 6.6em; font-size: 13px; } }

/* 料理：材料格 */
.pl-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.pl-slot { position: relative; padding: 14px 12px 12px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; text-align: center; }
.pl-slot-n { position: absolute; top: 8px; left: 10px; font-size: 11px; color: #9ca3af; }
.pl-slot-q { position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 700; color: #374151; }
.pl-slot-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cat-bg); color: var(--cat); font-size: 24px; margin: 4px 0 8px; }
.pl-slot-ic.t-purple { background: #f3e8ff; color: #7e22ce; box-shadow: 0 0 0 2px #c084fc; }
.pl-slot-ic.t-gold { background: #fef3c7; color: #b45309; box-shadow: 0 0 0 2px #fbbf24; }
.pl-slot-label { font-size: 15px; line-height: 20px; font-weight: 700; }
.pl-slot .pl-opts { text-align: left; margin-top: 6px; }
.pl-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.pl-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 13px; line-height: 18px; }
.pl-pill b { font-weight: 600; color: #6b7280; margin-right: 2px; }

/* 標籤字用 CSS 畫（data-l），DOM 只留真正的值，搜尋引擎不會讀到沒亮的格子 */
.pl-seasons span::before { content: attr(data-l); }
.pl-duo span::after, .pl-trio span::after { content: attr(data-l); }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-sm-tags { display: none; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 639px) { .pl-sm-tags.pl-show-sm { display: flex; } }
.pl-seg button { display: inline-flex; align-items: center; white-space: nowrap; }
.pl-price-track i.lo { border-radius: 6px 0 0 6px; }
.pl-price-track i.hi { border-radius: 0 6px 6px 0; }
@media (max-width: 639px) {
  .pl-table-creatures .pl-c-name { width: 34%; }
  .pl-table-creatures .pl-c-where { width: 30%; }
  .pl-table-creatures .pl-c-season { width: 36%; }
  .pl-table-creatures .pl-seasons { gap: 2px; }
  .pl-table-creatures .pl-seasons span { min-width: 20px; padding: 1px 0; font-size: 11px; }
}

/* 鮮花總覽：顏色名前的小色點 */
.pl-cdots { line-height: 1.9; }
.pl-cdot-item { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; white-space: nowrap; }
.pl-cdot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ==================== 12/06 改版 G～J（友鄰頁、家具服裝大表、全站搜尋、兌換碼） ==================== */.pl-cat-other { --cat: #4b5563; --cat-bg: #f3f4f6; }

/* ---------- G 友鄰頁 ---------- */
/* 頭像：名字首字＋專屬色（不用立繪） */
.pl-ava { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ava); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.pl-ava-lg { width: 56px; height: 56px; font-size: 26px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px color-mix(in srgb, var(--ava) 35%, transparent); }
.pl-ava-sm { width: 22px; height: 22px; font-size: 12px; margin: -2px 6px -2px -6px; }
.pl-chips-ava a { display: inline-flex; align-items: center; }

/* 禮物卡（依種類排，種類＝分類色＋圖示） */
.pl-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0 8px; }
.pl-gcard { display: flex; gap: 12px; padding: 14px; border: 1px solid #e5e7eb; border-top: 3px solid var(--cat); border-radius: 12px; background: #fff; }
.pl-gcard-i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--cat-bg); color: var(--cat); font-size: 22px; }
.pl-gcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.pl-gcard-kind { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--cat); }
.pl-gcard-name { font-size: 16px; line-height: 22px; font-weight: 700; color: #111827; }
.pl-gcard-how { font-size: 13px; line-height: 19px; color: #4b5563; }
.pl-gcard-mats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.pl-gcard-mats-h { font-size: 12px; color: #6b7280; }
.pl-gcard-mats .pl-pill { padding: 2px 8px; font-size: 12px; }
.pl-gcards-no .pl-gcard { background: #fafafa; border-top-color: #d1d5db; }
.pl-gcards-no .pl-gcard-name { color: #4b5563; }
.pl-h2-mute .pl-i { color: #6b7280; }

/* 親密度階梯 */
.pl-steps-head { display: flex; gap: 12px; margin: 10px 0 4px; font-size: 12px; line-height: 16px; color: #6b7280; }
/* 「親密度」欄名留給螢幕閱讀器（圓圈就是級數）；英文字長會撞到第二欄 */
.pl-steps-head span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-steps-head span:last-child { margin-left: 48px; }
.pl-steps { list-style: none; padding: 0; margin: 0 0 8px; max-width: 720px; }
.pl-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 0 10px; }
.pl-step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 50%; bottom: -50%; width: 2px; background: color-mix(in srgb, var(--cat) 30%, #fff); }
.pl-step-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--cat-bg); color: var(--cat); border: 2px solid var(--cat); font-size: 16px; font-weight: 800; position: relative; z-index: 1; }
.pl-step:last-child .pl-step-n { background: var(--cat); color: #fff; }
.pl-step-body { display: block; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; flex: 1; min-width: 0; }
/* 圓圈已經是級數，「1 級」字樣留給螢幕閱讀器與搜尋引擎 */
.pl-step-lv { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-step-task { font-size: 15px; line-height: 22px; color: #111827; }

/* ---------- H 家具、服裝大表 ---------- */
/* 取得方式件數長條（按一下＝篩選） */
.pl-sbars { display: grid; gap: 4px; margin: 14px 0 6px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; max-width: 720px; }
.pl-sbar { display: grid; grid-template-columns: 9.5em 1fr 3.2em; align-items: center; gap: 10px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; font: inherit; color: #1f2937; cursor: pointer; text-align: left; }
html[lang="en"] .pl-sbar { grid-template-columns: 11.5em 1fr 3.2em; }
.pl-sbar:hover { background: #f9fafb; }
.pl-sbar[aria-pressed="true"] { background: var(--cat-bg); }
.pl-sbar-l { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sbar-l .pl-i { color: var(--cat); font-size: 16px; }
.pl-sbar-t { height: 10px; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.pl-sbar-t span { display: block; height: 100%; border-radius: 999px; background: var(--cat); opacity: .75; }
.pl-sbar[aria-pressed="true"] .pl-sbar-t span { opacity: 1; }
.pl-sbar-n { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .pl-sbar { grid-template-columns: 7.5em 1fr 2.6em; gap: 8px; }
  html[lang="en"] .pl-sbar { grid-template-columns: 9em 1fr 2.6em; }
  .pl-sbar-l { font-size: 13px; }
}

/* 表格先列 50 件 */
.pl-capped tbody tr:nth-child(n+51) { display: none; }
.pl-showall { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 8px 0 0; padding: 10px; border: 1px dashed #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: #1e40af; cursor: pointer; }
.pl-showall:hover { background: #eff6ff; border-color: #93c5fd; }
.pl-showall[hidden] { display: none; }
.pl-row-hit td { background: #fef9c3; transition: background .6s; }

/* 取得方式欄、名稱欄的圖示 */
.pl-src-ic { display: inline-flex; gap: 3px; margin-right: 6px; color: var(--cat); font-size: 15px; vertical-align: -2px; }
.pl-name-i { display: flex; gap: 8px; align-items: flex-start; }
.pl-name-i > .pl-i { color: var(--cat); font-size: 17px; margin-top: 3px; }
.pl-seg button .pl-i { margin-right: 4px; }

/* ---------- I 全站搜尋框 ---------- */
.pl-search { position: relative; margin: 16px 0 4px; max-width: 640px; }
.pl-search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 2px solid #d1d5db; border-radius: 14px; background: #fff; color: #6b7280; font-size: 20px; transition: border-color .15s, box-shadow .15s; }
.pl-search-box:focus-within { border-color: #2563eb; box-shadow: 0 0 0 4px #dbeafe; color: #2563eb; }
.pl-search-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; line-height: 24px; padding: 12px 0; color: #111827; }
.pl-search-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(17, 24, 39, .14); max-height: 70vh; overflow-y: auto; }
.pl-search-list[hidden] { display: none; }
.pl-search-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #111827; text-decoration: none; }
.pl-search-list a:hover, .pl-search-list .is-sel a { background: #f3f4f6; }
.pl-search-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--cat-bg); color: var(--cat); font-size: 17px; }
.pl-search-n { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-search-n mark { background: #fef08a; color: inherit; border-radius: 3px; padding: 0 1px; }
.pl-search-t { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--cat); }
.pl-search-none { padding: 8px 10px; font-size: 13px; color: #6b7280; }

/* ---------- J 兌換碼 ---------- */
.pl-soon { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.pl-row-soon td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.pl-btn-copy { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pl-btn-copy .pl-ic-done { display: none; }
.pl-btn-copy.is-copied { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.pl-btn-copy.is-copied .pl-ic-copy { display: none; }
.pl-btn-copy.is-copied .pl-ic-done { display: inline; }
/* 複製鈕固定寬（複製↔已複製不跳動）；手機欄窄，平常不放圖示，複製後只顯示打勾 */
.pl-btn-copy { min-width: 88px; }
html[lang="en"] .pl-btn-copy { min-width: 94px; }
@media (max-width: 639px) {
  .pl-code-act .pl-btn-copy { display: flex; min-width: 0; }
  .pl-btn-copy .pl-ic-copy { display: none; }
  .pl-btn-copy.is-copied .pl-ic-done { font-size: 20px; }
  .pl-btn-copy.is-copied .pl-btn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
