/* BloxFruits guide_unified.css
   Light normalization layer for guide and official-event pages.
   Loaded after page styles so older templates keep their content but share the same frame. */

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(12px, 2.4vw, 24px) 44px;
  min-width: 0;
}

.site-main,
.site-main * {
  box-sizing: border-box;
}

.site-main > .container,
.site-main .guide-page,
.site-main .guide-container {
  width: 100%;
  max-width: 1180px !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-main > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-main > * {
  min-width: 0;
}

.site-main .guide-subnav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-subnav-label {
  flex: 0 0 auto;
  color: #334155;
  font-weight: 800;
}

.site-main .guide-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 999px;
  background: #f8fafc;
  color: #1e3a5f;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-main .guide-subnav a:hover,
.site-main .guide-subnav a.active {
  background: #0f4f96;
  border-color: #0f4f96;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 79, 150, .18);
}

.site-main .card-section,
.site-main .guide-block,
.site-main .guide-theme-entry {
  margin: 18px 0;
}

.site-main .guide-detail-card,
.site-main .guide-block-header,
.site-main .page-subtitle,
.site-main .page-header,
.site-main .seo-hero,
.site-main .hero,
.site-main .fs-hero,
.site-main .guides-hero,
.site-main .skin-fruit-card,
.site-main .guide-note-box {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.site-main .guide-detail-card {
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 20px;
}

.site-main .page-header,
.site-main .seo-hero,
.site-main .hero,
.site-main .fs-hero {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: clamp(18px, 2.6vw, 30px);
}

.site-main .guide-content,
.site-main .seo-section,
.site-main .ranking-section,
.site-main .value-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-detail-card h1,
.site-main .page-title,
.site-main .seo-hero h1,
.site-main .hero h1,
.site-main .fs-hero h1,
.site-main .guides-hero h1 {
  color: #102a56;
  line-height: 1.25;
  letter-spacing: 0;
}

.site-main .fs-hero-title,
.site-main .fs-hero h1.fs-hero-title {
  margin: 0;
  color: #102a56;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.site-main .fs-hero-subtitle,
.site-main .fs-hero-desc,
.site-main .fs-hero-sub {
  margin-top: 6px;
  color: #475569;
  line-height: 1.62;
}

.site-main .guide-detail-card h2,
.site-main .guide-block-title,
.site-main .seo-section-title,
.site-main .category-title {
  color: #102a56;
  line-height: 1.32;
  letter-spacing: 0;
}

.site-main p,
.site-main li,
.site-main td,
.site-main th {
  line-height: 1.72;
}

.site-main p,
.site-main li,
.site-main td,
.site-main th,
.site-main a,
.site-main span,
.site-main strong {
  overflow-wrap: anywhere;
}

.site-main .highlight-box,
.site-main .highlight-blue,
.site-main .highlight-warning,
.site-main .skins-note,
.site-main .note,
.site-main .mini-note,
.site-main .note-box {
  border-radius: 10px;
}

.site-main .highlight-box,
.site-main .highlight-blue,
.site-main .highlight-warning,
.site-main .skins-note,
.site-main .note,
.site-main .mini-note,
.site-main .note-box,
.site-main .guide-note-box {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-main .guide-faq-list,
.site-main .guide-source-list {
  display: grid;
  gap: 12px;
}

.site-main .guide-faq-item {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 12px;
  background: #f8fafc;
}

.site-main .guide-faq-item h3 {
  margin: 0 0 6px;
  color: #102a56;
  font-size: 1.02rem;
  line-height: 1.38;
}

.site-main .guide-faq-item p {
  margin: 0;
}

.site-main .guide-source-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.site-main .guide-source-list li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  background: rgba(248, 250, 252, .9);
}

.site-main .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}

.site-main table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
}

.site-main .skill-table,
.site-main .compare-table,
.site-main .level-table,
.site-main .info-table,
.site-main .dl-table,
.site-main .table-mini,
.site-main .mini-table,
.site-main .tbl {
  width: 100% !important;
  max-width: 100% !important;
}

.site-main th {
  background: #f1f5f9;
  color: #102a56;
  font-weight: 850;
}

.site-main td,
.site-main th {
  border-color: rgba(148, 163, 184, .34);
  vertical-align: top;
}

.site-main .guide-buttons-grid,
.site-main .guide-menu-grid,
.site-main .seo-card-grid,
.site-main .seo-link-grid,
.site-main .pay-grid,
.site-main .guide-grid {
  display: grid;
  gap: 14px;
}

.site-main .guide-buttons-grid,
.site-main .guide-menu-grid,
.site-main .seo-card-grid,
.site-main .seo-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.site-main .rank-list {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-button,
.site-main .guide-card,
.site-main .pay-card,
.site-main .seo-card,
.site-main .seo-link-card,
.site-main .rank-row,
.site-main .card,
.site-main .fruit-rec-card,
.site-main .term-card,
.site-main .update-row,
.site-main .summary-card,
.site-main .lazypack-item,
.site-main .npc-item,
.site-main .item-row {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
  min-width: 0;
}

.site-main .guide-button,
.site-main .guide-card,
.site-main .seo-card,
.site-main .seo-link-card,
.site-main .rank-row,
.site-main .card {
  color: #102a43;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-main .guide-button:hover,
.site-main .guide-card:hover,
.site-main .seo-card:hover,
.site-main .seo-link-card:hover,
.site-main .pay-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .1);
}

.site-main .seo-card,
.site-main .seo-link-card,
.site-main .rank-row,
.site-main .card {
  background: rgba(255, 255, 255, .96);
  padding: clamp(14px, 2vw, 20px);
}

.site-main .rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-main .rank-row > * {
  min-width: 0;
}

.site-main .button-title,
.site-main .guide-title,
.site-main .seo-card-title,
.site-main .fruit-name {
  color: #102a56;
  line-height: 1.35;
}

.site-main .button-desc,
.site-main .guide-desc,
.site-main .seo-card-desc,
.site-main .fruit-sub,
.site-main .page-subtitle,
.site-main .guide-block-desc,
.site-main .section-desc,
.site-main .muted,
.site-main .hero-subtitle {
  color: #475569;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.site-main img {
  max-width: 100%;
  height: auto;
}

.site-main h1,
.site-main h2,
.site-main h3 {
  overflow-wrap: anywhere;
}

.site-main h1 > span {
  color: #64748b !important;
  font-size: .66em !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.site-main code,
.site-main kbd,
.site-main samp {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-main .guide-flow-card,
.site-main .guide-flow-steps,
.site-main .guide-flow-step {
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-flow-step .label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-main .fs-hero,
.site-main .fs-hero__content,
.site-main .hero-header,
.site-main .hero-wrap,
.site-main .item-hero {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.site-main .fs-hero-text,
.site-main .fs-hero__content,
.site-main .hero-title,
.site-main .hero-wrap,
.site-main .item-hero-text,
.site-main .summary-text-wrap,
.site-main .item-name-group,
.site-main .npc-info {
  min-width: 0;
  max-width: 100%;
}

.site-main .fs-hero-icon,
.site-main .hero-img,
.site-main .fruit-icon,
.site-main .item-icon,
.site-main .skin-icon img {
  flex: 0 0 auto;
}

.site-main .tag,
.site-main .chip,
.site-main .rarity-tag,
.site-main .badge,
.site-main .tag-v1,
.site-main .tag-v2,
.site-main .tag-type,
.site-main .tag-rare,
.site-main .tag-common,
.site-main .tag-uncommon,
.site-main .tag-legendary,
.site-main .tag-mythical,
.site-main .tag-beast {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-main .guide-detail-card > a:first-child[href*="guide_"],
.site-main a.back-link,
.site-main a[href*="guide_"][style*="display:inline-block"]:not(.guide-button):not(.guide-card),
.site-main a[href*="guide_"][style*="display: inline-block"]:not(.guide-button):not(.guide-card) {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  margin: 0 0 14px !important;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: #f8fafc;
  color: #1e3a5f !important;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.site-main .guide-detail-card > a:first-child[href*="guide_"]:hover,
.site-main a.back-link:hover,
.site-main a[href*="guide_"][style*="display:inline-block"]:not(.guide-button):not(.guide-card):hover,
.site-main a[href*="guide_"][style*="display: inline-block"]:not(.guide-button):not(.guide-card):hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0f4f96 !important;
}

.site-main .google-auto-placed,
.site-main ins.adsbygoogle {
  max-width: 100% !important;
  overflow: hidden;
}

/* Fruit guide and shared guide layout refinements */
.site-main .guide-detail-card h2 {
  gap: 10px;
  flex-wrap: wrap;
}

.site-main .guide-detail-card h2 .h2-emoji {
  flex: 0 0 auto;
}

.site-main .guide-button,
.site-main .fruit-rec-card,
.site-main .lazypack-item,
.site-main .fruit-type-card,
.site-main .guide-note-box {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.site-main .fruit-rec-grid,
.site-main .fruit-type-grid,
.site-main .lazypack {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-main .fruit-rec-card,
.site-main .fruit-type-card,
.site-main .lazypack-item {
  min-height: 0;
  overflow-wrap: anywhere;
}

.site-main .fruit-table {
  table-layout: fixed;
}

.site-main .fruit-table td,
.site-main .fruit-table th {
  padding: 12px 14px;
}

.site-main .fruit-row {
  min-width: 0;
}

.site-main .fruit-row > div {
  min-width: 0;
}

.site-main.guide-fruits-page {
  --fruit-blue: #0f4f96;
  --fruit-ink: #102a56;
  --fruit-soft: #f8fafc;
}

.site-main.guide-fruits-page .guide-fruits-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .96));
}

.site-main.guide-fruits-page .guide-fruits-hero > * {
  min-width: 0;
}

.site-main.guide-fruits-page .guide-fruits-eyebrow {
  margin: 0 0 8px;
  color: #0f4f96;
  font-weight: 900;
  letter-spacing: 0;
}

.site-main.guide-fruits-page .guide-fruits-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.site-main.guide-fruits-page .guide-fruits-hero-desc {
  margin: 12px 0 0;
  color: #334155;
  font-size: 1.03rem;
}

.site-main.guide-fruits-page .guide-fruits-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-main.guide-fruits-page .guide-fruits-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 150, .25);
  background: #fff;
  color: #0f4f96;
  font-weight: 900;
  text-decoration: none;
}

.site-main.guide-fruits-page .guide-fruits-actions a:hover {
  background: #0f4f96;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 79, 150, .18);
}

.site-main.guide-fruits-page .guide-fruits-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.site-main.guide-fruits-page .guide-fruits-stat {
  padding: 14px 10px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  text-align: center;
}

.site-main.guide-fruits-page .guide-fruits-stat b {
  display: block;
  color: #0f4f96;
  font-size: 1.65rem;
  line-height: 1;
}

.site-main.guide-fruits-page .guide-fruits-stat span {
  display: block;
  margin-top: 6px;
  color: #475569;
  font-weight: 850;
}

.site-main.guide-fruits-page .guide-fruits-updates {
  padding-top: 22px;
}

.site-main.guide-fruits-page .guide-fruits-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.site-main.guide-fruits-page .guide-fruits-section-head h2 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: clamp(1.28rem, 2.6vw, 1.7rem);
}

.site-main.guide-fruits-page .guide-fruits-section-head p {
  margin: 0;
  color: #475569;
}

.site-main.guide-fruits-page .guide-fruits-update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.site-main.guide-fruits-page .guide-fruits-update-card {
  display: grid;
  gap: 7px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: #f8fafc;
  color: #102a43;
  text-decoration: none;
}

.site-main.guide-fruits-page .guide-fruits-update-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 79, 150, .35);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.site-main.guide-fruits-page .guide-fruits-update-card .update-kicker {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 79, 150, .1);
  color: #0f4f96;
  font-size: .78rem;
  font-weight: 900;
}

.site-main.guide-fruits-page .guide-fruits-update-card strong {
  color: #102a56;
  font-size: 1.02rem;
  line-height: 1.35;
}

.site-main.guide-fruits-page .guide-fruits-update-card span:last-child {
  color: #475569;
  line-height: 1.55;
}

.site-main.guide-fruits-page .guide-fruits-update-card.is-blue {
  background: #eef6ff;
}

.site-main.guide-fruits-page .guide-fruits-update-card.is-orange {
  background: #fff7ed;
}

.site-main.guide-fruits-page .guide-fruits-update-card.is-green {
  background: #f0fdf4;
}

.site-main.guide-fruits-page .fruit-picker-section .highlight-box {
  margin-top: 14px;
}

.site-main.guide-fruits-page .fruit-rec-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important;
}

.site-main.guide-fruits-page .fruit-rec-card {
  min-height: 112px;
}

.site-main.guide-fruits-page .lazypack {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

.site-main.guide-fruits-page .lazypack-item {
  text-align: left;
}

.site-main.guide-fruits-page .rarity-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}

.site-main.guide-fruits-page .rarity-legend-item {
  align-items: flex-start;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  background: #f8fafc;
}

@media (max-width: 700px) {
  .site-main {
    padding: 16px 10px 34px;
  }

  .site-main .guide-subnav {
    margin-bottom: 14px;
    padding: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-x: visible;
    white-space: normal;
  }

  .site-main .guide-subnav-label {
    width: 100%;
  }

  .site-main .guide-subnav a {
    white-space: normal;
    max-width: 100%;
  }

  .site-main .guide-flow-steps {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-main .guide-flow-step {
    width: 100%;
    align-items: flex-start;
    border-radius: 12px;
  }

  .site-main .guide-flow-step .label {
    white-space: normal;
  }

  .site-main .guide-flow-arrow {
    display: none;
  }

  .site-main table.skill-table,
  .site-main table,
  .site-main table.compare-table,
  .site-main table.level-table,
  .site-main table.info-table,
  .site-main table.dl-table,
  .site-main table.table-mini,
  .site-main table.tbl,
  .site-main table.mini-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto;
    table-layout: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-main table.skill-table th,
  .site-main table.skill-table td,
  .site-main table.compare-table th,
  .site-main table.compare-table td,
  .site-main table.level-table th,
  .site-main table.level-table td,
  .site-main table.info-table th,
  .site-main table.info-table td,
  .site-main table.dl-table th,
  .site-main table.dl-table td,
  .site-main table.table-mini th,
  .site-main table.table-mini td,
  .site-main table.tbl th,
  .site-main table.tbl td,
  .site-main table.mini-table th,
  .site-main table.mini-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .site-main table.tbl,
  .site-main table.tbl tbody,
  .site-main table.tbl thead,
  .site-main table.tbl tr,
  .site-main table.tbl th,
  .site-main table.tbl td {
    display: block;
    width: 100% !important;
  }

  .site-main table.tbl tr {
    border-bottom: 1px solid rgba(148, 163, 184, .28);
  }

  .site-main table.tbl tr:last-child {
    border-bottom: 0;
  }

  .site-main table.tbl th,
  .site-main table.tbl td {
    border-bottom: 0;
  }

  .site-main .guide-detail-card,
  .site-main .guide-block-header {
    padding: 16px;
  }

  .site-main.guide-fruits-page .guide-fruits-hero {
    grid-template-columns: 1fr;
  }

  .site-main.guide-fruits-page .guide-fruits-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-main.guide-fruits-page .guide-fruits-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .site-main.guide-fruits-page .guide-fruits-hero-desc {
    font-size: .96rem;
  }

  .site-main.guide-fruits-page .guide-fruits-actions a {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-main.guide-fruits-page .fruit-table {
    min-width: 0 !important;
  }

  .site-main.guide-fruits-page .fruit-table,
  .site-main.guide-fruits-page .fruit-table thead,
  .site-main.guide-fruits-page .fruit-table tbody,
  .site-main.guide-fruits-page .fruit-table tr,
  .site-main.guide-fruits-page .fruit-table td {
    display: block;
    width: 100% !important;
  }

  .site-main.guide-fruits-page .fruit-table thead {
    display: none;
  }

  .site-main.guide-fruits-page .fruit-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .site-main.guide-fruits-page .fruit-table td {
    border: 0;
    padding: 12px;
  }

  .site-main.guide-fruits-page .fruit-table td + td {
    border-top: 1px solid rgba(148, 163, 184, .22);
    color: #334155;
  }

  .site-main .guide-detail-card h1,
  .site-main .page-title,
  .site-main .guides-hero h1 {
    font-size: 1.55rem;
  }

  .site-main .guide-detail-card h2,
  .site-main .guide-block-title,
  .site-main .category-title {
    font-size: 1.25rem;
  }

  .site-main .guide-button,
  .site-main .guide-card,
  .site-main .seo-card,
  .site-main .seo-link-card,
  .site-main .rank-row,
  .site-main .card,
  .site-main .pay-card {
    padding: 14px;
  }

  .site-main .fs-hero,
  .site-main .fs-hero__content,
  .site-main .hero-header,
  .site-main .hero-wrap,
  .site-main .item-hero {
    align-items: flex-start;
  }

  .site-main .rank-row {
    align-items: flex-start;
  }

  .site-main .fs-hero-icon,
  .site-main .hero-img,
  .site-main .fruit-icon,
  .site-main .item-icon,
  .site-main .item-hero-icon {
    width: min(88px, 28vw) !important;
    height: auto !important;
  }

  .site-main .guide-detail-card > a:first-child[href*="guide_"],
  .site-main a.back-link,
  .site-main a[href*="guide_"][style*="display:inline-block"]:not(.guide-button):not(.guide-card),
  .site-main a[href*="guide_"][style*="display: inline-block"]:not(.guide-button):not(.guide-card) {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-main.guide-fruits-page .guide-fruits-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-main.guide-fruits-page .guide-fruits-actions a {
    width: 100%;
  }
}

/* Clarity pass for large guide hub pages: reduce visual noise and make long lists scannable. */
.site-main .guide-detail-card > h1 + p,
.site-main .guide-detail-card > h2 + p,
.site-main .section-desc {
  max-width: 78ch;
  color: #334155;
}

.site-main .quick-index,
.site-main .filter-controls {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: rgba(248, 250, 252, .92);
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.site-main .quick-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-main .index-pill,
.site-main .filter-btn,
.site-main .npc-quick-btn {
  min-height: 34px;
  border-radius: 999px;
  line-height: 1.25;
}

.site-main .item-table,
.site-main .sword-table,
.site-main .data-table {
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.site-main .item-table th,
.site-main .sword-table th,
.site-main .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.site-main .item-table td,
.site-main .sword-table td,
.site-main .data-table td,
.site-main .item-table th,
.site-main .sword-table th,
.site-main .data-table th {
  padding: 11px 12px;
}

.site-main .item-table tbody tr,
.site-main .sword-table tbody tr,
.site-main .data-table tbody tr {
  transition: background-color .15s ease, box-shadow .15s ease;
}

.site-main .item-table tbody tr:hover,
.site-main .sword-table tbody tr:hover,
.site-main .data-table tbody tr:hover {
  background: #f8fbff;
}

.site-main .npc-item {
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.site-main .npc-title {
  line-height: 1.35;
}

.site-main .npc-info p {
  margin: 6px 0;
}

.site-main .npc-links {
  margin-top: 10px;
  padding-top: 10px;
}

.site-main .item-row {
  border: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 700px) {
  .site-main .item-table,
  .site-main .item-table thead,
  .site-main .item-table tbody,
  .site-main .item-table tr,
  .site-main .item-table td,
  .site-main .sword-table,
  .site-main .sword-table thead,
  .site-main .sword-table tbody,
  .site-main .sword-table tr,
  .site-main .sword-table td,
  .site-main .data-table,
  .site-main .data-table thead,
  .site-main .data-table tbody,
  .site-main .data-table tr,
  .site-main .data-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-main .item-table,
  .site-main .sword-table,
  .site-main .data-table {
    border-spacing: 0;
  }

  .site-main .item-table thead,
  .site-main .sword-table thead,
  .site-main .data-table thead {
    display: none;
  }

  .site-main .item-table tr,
  .site-main .sword-table tr,
  .site-main .data-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
  }

  .site-main .item-table td,
  .site-main .sword-table td,
  .site-main .data-table td {
    border: 0;
    padding: 12px;
  }

  .site-main .item-table td + td,
  .site-main .sword-table td + td,
  .site-main .data-table td + td {
    border-top: 1px solid rgba(148, 163, 184, .22);
  }

  .site-main .quick-index,
  .site-main .filter-controls {
    padding: 12px;
  }

  .site-main .index-pill,
  .site-main .filter-btn,
  .site-main .npc-quick-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* 2026-07-18: shared premium guide language derived from the Spider guide.
   Page-specific colors remain, while hierarchy, depth and mobile rhythm stay consistent. */
.site-main {
  --guide-premium-navy: #0a234d;
  --guide-premium-blue: #155eef;
  --guide-premium-plum: #831843;
  --guide-premium-soft: #f6f9ff;
}

.site-main .guide-detail-card {
  overflow: hidden;
  border-color: rgba(117, 143, 176, .26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 3%, rgba(91, 33, 182, .045), transparent 24%),
    rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(15, 43, 78, .09);
}

.site-main .guide-detail-card > a:first-child:not(.guide-button):not(.guide-card) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #295a92;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}

.site-main .guide-detail-card > h1:first-of-type {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  background: linear-gradient(135deg, #081d40 0%, #164b8f 58%, #6d28d9 100%);
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.13;
  box-shadow: 0 16px 34px rgba(8, 29, 64, .18);
}

.site-main .guide-detail-card > h1:first-of-type::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90% -12% -90% 50%;
  background: repeating-radial-gradient(circle at 65% 50%, transparent 0 30px, rgba(255, 255, 255, .07) 31px 32px);
  pointer-events: none;
}

.site-main .guide-detail-card > h1:first-of-type a,
.site-main .guide-detail-card > h1:first-of-type span,
.site-main .guide-detail-card > h1:first-of-type small {
  color: inherit;
}

/* Legacy detail pages share the same visual identity as the newer Spider
   guide while keeping each page's existing information architecture. */
.site-main .fs-hero {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 15%, rgba(160, 125, 255, .32), transparent 28%),
    linear-gradient(135deg, #0a2b58 0%, #164f91 54%, #5b21b6 100%);
  color: rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(15, 43, 78, .2);
}

.site-main .fs-hero::before {
  content: "";
  position: absolute;
  inset: -28%;
  background: repeating-radial-gradient(circle at 88% 48%, transparent 0 32px, rgba(255,255,255,.055) 33px 34px);
  pointer-events: none;
}

.site-main .fs-hero > * {
  position: relative;
  z-index: 1;
}

.site-main .fs-hero .fs-hero-icon {
  display: block;
  width: 122px;
  height: 122px;
  object-fit: contain;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 25px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.site-main .fs-hero h1,
.site-main .fs-hero h1 span {
  margin-top: 0;
  color: #fff !important;
}

.site-main .fs-hero .fs-hero-text {
  color: rgba(255,255,255,.88);
  line-height: 1.65;
}

.site-main .fs-hero .tag {
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 5px 13px rgba(0,0,0,.1);
}

.site-main .hero-header,
.site-main .item-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 15%, rgba(160,125,255,.3), transparent 28%),
    linear-gradient(135deg, #0a2b58 0%, #164f91 54%, #5b21b6 100%);
  color: rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(15,43,78,.2);
}

.site-main .hero-header {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px clamp(20px, 4vw, 38px);
  align-items: center;
  text-align: left;
}

.site-main .hero-header .hero-img {
  grid-row: 1 / 4;
  width: 100%;
  max-width: 240px;
  max-height: 220px;
  margin: auto;
  padding: 10px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 28px rgba(0,0,0,.2);
}

.site-main .hero-header .hero-title,
.site-main .hero-header .hero-subtitle,
.site-main .hero-header .hero-title span {
  color: #fff !important;
}

.site-main .hero-header .hero-title {
  align-self: end;
  margin: 0;
}

.site-main .hero-header .hero-subtitle {
  opacity: .82;
}

.site-main .hero-header .hero-tags {
  align-self: start;
}

.site-main .item-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.site-main .item-hero .item-hero-icon {
  width: 108px;
  height: 108px;
  padding: 8px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 13px 26px rgba(0,0,0,.2);
}

.site-main .item-hero .item-hero-text,
.site-main .item-hero .item-hero-text h1,
.site-main .item-hero .item-hero-text h1 span {
  color: #fff !important;
}

.site-main .guide-detail-card > h2,
.site-main .guide-detail-card > section > h2 {
  margin-top: 30px;
  padding: 0 0 11px 13px;
  border-bottom: 1px solid #e5edf7;
  border-left: 5px solid var(--guide-premium-blue);
  color: #102a56;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.site-main .guide-detail-card > h3 {
  margin-top: 22px;
  color: #24486f;
}

.site-main .highlight-box,
.site-main .highlight-blue,
.site-main .highlight-warning,
.site-main .note,
.site-main .mini-note,
.site-main .note-box,
.site-main .guide-note-box {
  padding: clamp(14px, 2vw, 19px);
  border: 1px solid #d7e5f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfdff, #f2f7ff);
  box-shadow: 0 9px 22px rgba(15, 43, 78, .05);
}

.site-main .highlight-warning {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.site-main .table-responsive {
  overflow: auto;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 43, 78, .055);
}

.site-main .table-responsive table {
  margin: 0;
}

.site-main .table-responsive th {
  padding: 12px 14px;
  border-color: #d7e3f1;
  background: linear-gradient(180deg, #edf5ff, #e6f0fb);
  color: #123b70;
}

.site-main .table-responsive td {
  padding: 12px 14px;
  border-color: #e5edf6;
}

.site-main .table-responsive tbody tr:nth-child(even) {
  background: #fbfdff;
}

.site-main .guide-button,
.site-main .guide-card,
.site-main .seo-card,
.site-main .seo-link-card {
  padding: clamp(15px, 2vw, 20px);
  border-color: #d8e5f3;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f5f9ff);
  box-shadow: 0 10px 24px rgba(15, 43, 78, .065);
}

.site-main .guide-button .button-title,
.site-main .guide-card .button-title {
  color: #153e75;
  font-weight: 900;
}

.site-main .guide-button .button-desc,
.site-main .guide-card .button-desc {
  margin-top: 4px;
  color: #607086;
  line-height: 1.55;
}

.site-main .qa > div,
.site-main .guide-faq-item {
  overflow: hidden;
  border: 1px solid #dce7f4;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 19px rgba(15, 43, 78, .045);
}

/* Reusable visual blocks for fruit, weapon, accessory and item guides. */
.site-main .guide-visual-hero {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin: 18px 0 26px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid #d8e6f6;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(115, 167, 255, .22), transparent 34%),
    linear-gradient(135deg, #f7fbff 0%, #edf4ff 54%, #f7f2ff 100%);
  box-shadow: 0 15px 34px rgba(15, 43, 78, .09);
}

.site-main .guide-visual-hero > img {
  width: 100%;
  max-width: 210px;
  max-height: 190px;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(15, 43, 78, .2));
}

.site-main .guide-visual-hero h2,
.site-main .guide-visual-hero h3 {
  margin: 0 0 8px;
  color: #102a56;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.site-main .guide-visual-hero p {
  margin: 0;
  color: #4a617d;
  line-height: 1.75;
}

.site-main .guide-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
}

.site-main .guide-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid #ccdcf0;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #1c4d86;
  font-size: .86rem;
  font-weight: 800;
}

.site-main .guide-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.site-main .guide-item-grid.guide-item-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-main .guide-item-card {
  overflow: hidden;
  padding: 18px;
  border: 1px solid #dce7f4;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f6f9ff);
  box-shadow: 0 10px 24px rgba(15, 43, 78, .065);
}

.site-main .guide-item-card > img {
  display: block;
  width: 100%;
  height: 142px;
  margin: 0 auto 13px;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(15, 43, 78, .14));
}

.site-main .guide-item-card h3 {
  margin: 0 0 7px;
  color: #153e75;
  font-size: 1.06rem;
}

.site-main .guide-item-card p,
.site-main .guide-item-card ul {
  margin: 0;
  color: #52677f;
  line-height: 1.65;
}

.site-main .guide-source-list {
  padding: 16px 18px 16px 38px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #f8fbff;
  line-height: 1.8;
}

.site-main .guide-source-list a {
  color: #1558a6;
  font-weight: 800;
}

@media (max-width: 700px) {
  .site-main .guide-detail-card {
    border-radius: 20px;
  }

  .site-main .fs-hero {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 15px;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .site-main .fs-hero .fs-hero-icon {
    width: 82px;
    height: 82px;
    padding: 7px;
    border-radius: 19px;
  }

  .site-main .fs-hero h1 {
    margin-bottom: 7px;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .site-main .hero-header {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 7px 14px;
    padding: 19px 15px;
    border-radius: 20px;
  }

  .site-main .hero-header .hero-img {
    width: 92px;
    height: 92px;
    padding: 6px;
    border-radius: 18px;
  }

  .site-main .hero-header .hero-title {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .site-main .hero-header .hero-subtitle {
    font-size: .86rem;
  }

  .site-main .item-hero {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 19px 15px;
    border-radius: 20px;
  }

  .site-main .item-hero .item-hero-icon {
    width: 80px;
    height: 80px;
    padding: 6px;
    border-radius: 17px;
  }

  .site-main .item-hero .item-hero-text h1 {
    font-size: clamp(1.35rem, 6.6vw, 1.85rem);
  }

  .site-main .guide-detail-card > h1:first-of-type {
    margin-left: -4px;
    margin-right: -4px;
    padding: 23px 18px;
    border-radius: 19px;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .site-main .guide-detail-card > h2,
  .site-main .guide-detail-card > section > h2 {
    margin-top: 25px;
    padding-left: 10px;
  }

  .site-main .table-responsive th,
  .site-main .table-responsive td {
    padding: 10px 11px;
  }

  .site-main .guide-visual-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-main .guide-visual-hero > img {
    max-width: 150px;
    max-height: 140px;
  }

  .site-main .guide-pill-row {
    justify-content: center;
  }

  .site-main .guide-item-grid {
    grid-template-columns: 1fr;
  }

  .site-main .guide-item-grid.guide-item-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Older guide templates placed metadata before the article hero. On small
   screens, match the newer Spider layout: conclusion first, navigation next. */
@media (max-width: 959.98px) {
  @supports selector(:has(*)) {
    .site-main:has(> .guide-subnav):has(> .guide-meta-block):has(> .card-section :is(.fs-hero, .hero-header, .item-hero)) {
      display: flex;
      flex-direction: column;
    }

    .site-main:has(> .guide-subnav):has(> .guide-meta-block):has(> .card-section :is(.fs-hero, .hero-header, .item-hero)) > * {
      order: 3;
    }

    .site-main:has(> .guide-subnav):has(> .guide-meta-block):has(> .card-section :is(.fs-hero, .hero-header, .item-hero)) > .card-section:has(:is(.fs-hero, .hero-header, .item-hero)) {
      order: 1;
    }

    .site-main:has(> .guide-subnav):has(> .guide-meta-block):has(> .card-section :is(.fs-hero, .hero-header, .item-hero)) > .guide-subnav {
      order: 2;
    }

    .site-main:has(> .guide-subnav):has(> .guide-meta-block):has(> .card-section :is(.fs-hero, .hero-header, .item-hero)) > .guide-meta-block {
      order: 4;
    }
  }
}

/* Public-facing source attribution shared by legacy detail templates. */
.site-main .guide-source-card .guide-detail-card {
  border-color: rgba(124, 92, 255, .2);
  background:
    radial-gradient(circle at 96% 8%, rgba(124, 92, 255, .1), transparent 34%),
    linear-gradient(145deg, #fff 0%, #faf9ff 100%);
}

.site-main .guide-source-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.site-main .guide-source-links a {
  display: flex;
  min-width: 0;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid rgba(92, 65, 204, .2);
  border-radius: 17px;
  background: rgba(255, 255, 255, .88);
  color: #1b2559;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(42, 33, 98, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.site-main .guide-source-links a:hover,
.site-main .guide-source-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(92, 65, 204, .48);
  box-shadow: 0 14px 28px rgba(42, 33, 98, .12);
}

.site-main .guide-source-links span {
  color: #716f88;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.site-main .guide-source-links strong {
  overflow-wrap: anywhere;
  color: #281f68;
  font-size: .96rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .site-main .guide-source-links {
    grid-template-columns: 1fr;
  }

  .site-main .guide-source-links a {
    min-height: 72px;
  }
}

/* ========================================================================== */
/* Spider-style detail system (fruit / fighting style / sword / gun / accessory / item pages) */
/* ========================================================================== */
.guide-detail-page {
  --gd-accent: #7c3aed;
  --gd-accent-strong: #5b21b6;
  --gd-accent-soft: #f5f3ff;
  --gd-hero-start: #17143c;
  --gd-hero-mid: #3b237d;
  --gd-hero-end: #7c3aed;
  --gd-hero-rgb: 124, 58, 237;
}

.guide-detail-page.guide-type-fruit {
  --gd-accent: #b42373;
  --gd-accent-strong: #831843;
  --gd-accent-soft: #fff1f7;
  --gd-hero-start: #21142f;
  --gd-hero-mid: #5b174c;
  --gd-hero-end: #9f1239;
  --gd-hero-rgb: 180, 35, 115;
}

.guide-detail-page.guide-type-sword {
  --gd-accent: #2563eb;
  --gd-accent-strong: #1e3a8a;
  --gd-accent-soft: #eff6ff;
  --gd-hero-start: #0b1738;
  --gd-hero-mid: #173f82;
  --gd-hero-end: #2563eb;
  --gd-hero-rgb: 37, 99, 235;
}

.guide-detail-page.guide-type-gun {
  --gd-accent: #0891b2;
  --gd-accent-strong: #155e75;
  --gd-accent-soft: #ecfeff;
  --gd-hero-start: #082f49;
  --gd-hero-mid: #155e75;
  --gd-hero-end: #0891b2;
  --gd-hero-rgb: 8, 145, 178;
}

.guide-detail-page.guide-type-accessory {
  --gd-accent: #7c3aed;
  --gd-accent-strong: #5b21b6;
  --gd-accent-soft: #f5f3ff;
  --gd-hero-start: #1e1642;
  --gd-hero-mid: #4c2b86;
  --gd-hero-end: #8b5cf6;
  --gd-hero-rgb: 124, 58, 237;
}

.guide-detail-page.guide-type-item {
  --gd-accent: #0f9f78;
  --gd-accent-strong: #066b55;
  --gd-accent-soft: #ecfdf5;
  --gd-hero-start: #063c3a;
  --gd-hero-mid: #08745f;
  --gd-hero-end: #10b981;
  --gd-hero-rgb: 15, 159, 120;
}

.guide-detail-page.guide-type-fighting {
  --gd-accent: #ea580c;
  --gd-accent-strong: #9a3412;
  --gd-accent-soft: #fff7ed;
  --gd-hero-start: #32140d;
  --gd-hero-mid: #8a2d13;
  --gd-hero-end: #f97316;
  --gd-hero-rgb: 234, 88, 12;
}

.guide-detail-page [id] {
  scroll-margin-top: 154px;
}

.guide-detail-page > .gd-section-nav {
  position: sticky;
  top: 78px;
  z-index: 45;
  gap: 9px;
  margin-bottom: 20px;
  border-color: rgba(var(--gd-hero-rgb), .2);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(25, 29, 58, .1);
  backdrop-filter: blur(16px);
}

.guide-detail-page > .gd-section-nav a {
  border-color: rgba(var(--gd-hero-rgb), .18);
  background: rgba(var(--gd-hero-rgb), .055);
  color: var(--gd-accent-strong);
  font-size: .88rem;
  font-weight: 850;
}

.guide-detail-page > .gd-section-nav a:hover,
.guide-detail-page > .gd-section-nav a:focus-visible {
  border-color: rgba(var(--gd-hero-rgb), .48);
  background: var(--gd-accent);
  color: #fff;
}

.guide-detail-page > .gd-section-nav .gd-overview-link {
  margin-left: auto;
  border-color: transparent;
  background: #172554;
  color: #fff;
}

.guide-detail-page > .guide-meta-block {
  overflow: hidden;
  border-color: rgba(var(--gd-hero-rgb), .2);
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 5%, rgba(var(--gd-hero-rgb), .12), transparent 36%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 18px 38px rgba(34, 36, 76, .09);
}

.guide-detail-page > .guide-meta-block .guide-ai-summary {
  border-color: rgba(var(--gd-hero-rgb), .22);
  background: linear-gradient(145deg, var(--gd-accent-soft), #fff);
  color: var(--gd-accent-strong);
}

.guide-detail-page > .guide-meta-block .guide-ai-summary strong,
.guide-detail-page > .guide-meta-block .guide-breadcrumb {
  color: var(--gd-accent-strong);
}

.guide-detail-page > .guide-meta-block .guide-ai-summary a {
  background: var(--gd-accent);
}

.guide-detail-page > .guide-meta-block .guide-meta-tag {
  border-color: rgba(var(--gd-hero-rgb), .22);
  background: rgba(var(--gd-hero-rgb), .08);
  color: var(--gd-accent-strong);
}

.guide-detail-page .gd-intro-section {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guide-detail-page .gd-standard-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin: 0;
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--gd-hero-start) 0%, var(--gd-hero-mid) 55%, var(--gd-hero-end) 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(var(--gd-hero-rgb), .24);
}

.guide-detail-page .gd-standard-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -30%;
  background: repeating-radial-gradient(circle at 87% 46%, transparent 0 31px, rgba(255, 255, 255, .065) 32px 33px);
  pointer-events: none;
}

.guide-detail-page .gd-standard-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -18%;
  right: 17%;
  width: 1px;
  height: 138%;
  transform: rotate(35deg);
  background: rgba(255, 255, 255, .18);
  box-shadow: -74px 0 rgba(255, 255, 255, .075), 74px 0 rgba(255, 255, 255, .075);
  pointer-events: none;
}

.guide-detail-page .hero-header.gd-standard-hero,
.guide-detail-page .fs-hero.gd-standard-hero,
.guide-detail-page .item-hero.gd-standard-hero,
.guide-detail-page .guide-visual-hero.gd-standard-hero,
.guide-detail-page .card-header.gd-standard-hero {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.guide-detail-page .card-header.gd-standard-hero:not(:has(.gd-hero-visual)) {
  grid-template-columns: 1fr;
}

.guide-detail-page .gd-standard-hero > :not(.gd-hero-visual),
.guide-detail-page .gd-standard-hero .fs-hero-text,
.guide-detail-page .gd-standard-hero .hero-copy,
.guide-detail-page .gd-standard-hero .hero-info {
  position: relative;
  z-index: 1;
}

.guide-detail-page .gd-standard-hero h1,
.guide-detail-page .gd-standard-hero .hero-title,
.guide-detail-page .gd-standard-hero h1 span,
.guide-detail-page .gd-standard-hero .hero-subtitle,
.guide-detail-page .gd-standard-hero .fs-hero-subtitle,
.guide-detail-page .gd-standard-hero .fs-hero-desc,
.guide-detail-page .gd-standard-hero .fs-hero-sub,
.guide-detail-page .gd-standard-hero p,
.guide-detail-page .gd-standard-hero .section-desc,
.guide-detail-page .gd-standard-hero .fs-hero-text {
  color: #fff !important;
}

.guide-detail-page .gd-standard-hero h1,
.guide-detail-page .gd-standard-hero .hero-title {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, .24);
}

.guide-detail-page .gd-standard-hero p,
.guide-detail-page .gd-standard-hero .section-desc,
.guide-detail-page .gd-standard-hero .fs-hero-text {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
}

.guide-detail-page .gd-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}

.guide-detail-page .gd-standard-hero img,
.guide-detail-page .gd-hero-visual img {
  display: block;
  width: min(190px, 100%);
  height: 190px;
  margin: 0 auto;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  object-fit: contain;
  filter: drop-shadow(0 18px 21px rgba(0, 0, 0, .36));
}

.guide-detail-page .gd-hero-visual {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  margin: 0;
}

.guide-detail-page .card-header.gd-standard-hero > div:first-child {
  grid-column: 2;
}

.guide-detail-page .card-header.gd-standard-hero:not(:has(.gd-hero-visual)) > div:first-child {
  grid-column: 1;
}

.guide-detail-page .gd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.guide-detail-page .gd-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 13px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.guide-detail-page .gd-hero-actions a:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--gd-accent-strong);
}

.guide-detail-page .gd-hero-actions a:hover,
.guide-detail-page .gd-hero-actions a:focus-visible {
  transform: translateY(-2px);
}

.guide-detail-page .gd-standard-hero .hero-tags,
.guide-detail-page .gd-standard-hero .tag-row {
  position: relative;
  z-index: 1;
}

.guide-detail-page .gd-standard-hero .tag {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.guide-detail-page .gd-content-section:not(.gd-intro-section) {
  border-color: rgba(var(--gd-hero-rgb), .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(29, 37, 72, .07);
}

.guide-detail-page .gd-content-section-alt:not(.gd-intro-section) {
  background: linear-gradient(145deg, #fff 0%, var(--gd-accent-soft) 155%);
}

.guide-detail-page .guide-detail-card {
  border-color: rgba(var(--gd-hero-rgb), .14);
  border-radius: 21px;
}

.guide-detail-page .guide-detail-card h2,
.guide-detail-page .guide-detail-block h2,
.guide-detail-page .card-section > h2 {
  border-left-color: var(--gd-accent);
  color: #172554;
}

.guide-detail-page .highlight-box,
.guide-detail-page .notice-box,
.guide-detail-page .tip-box {
  border-color: rgba(var(--gd-hero-rgb), .22);
  background: var(--gd-accent-soft);
}

.guide-detail-page table thead th,
.guide-detail-page .table-responsive thead th {
  background: var(--gd-accent-soft);
  color: var(--gd-accent-strong);
}

.guide-detail-page a:not(.guide-subnav a):not(.gd-hero-actions a):not(.guide-related-card):not(.pn-card) {
  text-decoration-color: rgba(var(--gd-hero-rgb), .38);
}

body.dark-mode .guide-detail-page > .gd-section-nav,
body.dark-mode .guide-detail-page > .guide-meta-block,
body.dark-mode .guide-detail-page .gd-content-section:not(.gd-intro-section),
body.dark-mode .guide-detail-page .guide-detail-card {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .91);
}

body.dark-mode .guide-detail-page .gd-content-section-alt:not(.gd-intro-section) {
  background: linear-gradient(145deg, rgba(15, 23, 42, .94), rgba(var(--gd-hero-rgb), .12));
}

body.dark-mode .guide-detail-page .guide-detail-card h2,
body.dark-mode .guide-detail-page .guide-detail-block h2,
body.dark-mode .guide-detail-page .card-section > h2 {
  color: #e0e7ff;
}

.guide-detail-page .gd-standard-hero .fs-hero-text h1 {
  display: block;
  word-break: normal;
  overflow-wrap: normal;
}

.guide-detail-page .gd-standard-hero .fs-hero-tag {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin-left: 10px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #dbeafe !important;
  font-size: .43em !important;
  line-height: 1.25;
  vertical-align: middle;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 959.98px) {
  @supports selector(:has(*)) {
    .guide-detail-page {
      display: flex;
      flex-direction: column;
    }

    .guide-detail-page > * {
      order: 3;
    }

    .guide-detail-page > .gd-content-section:has(.gd-standard-hero) {
      order: 1;
    }

    .guide-detail-page > .gd-section-nav {
      order: 2;
    }

    .guide-detail-page > .guide-meta-block {
      order: 4;
    }
  }

  .guide-detail-page > .gd-section-nav {
    top: 70px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .guide-detail-page > .gd-section-nav .guide-subnav-label,
  .guide-detail-page > .gd-section-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .guide-detail-page > .gd-section-nav .guide-subnav-label {
    width: auto;
    min-width: max-content;
  }

  .guide-detail-page > .gd-section-nav .gd-overview-link {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .guide-detail-page .gd-standard-hero,
  .guide-detail-page .hero-header.gd-standard-hero,
  .guide-detail-page .fs-hero.gd-standard-hero,
  .guide-detail-page .item-hero.gd-standard-hero,
  .guide-detail-page .guide-visual-hero.gd-standard-hero,
  .guide-detail-page .card-header.gd-standard-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 26px 62px 25px 20px;
    text-align: left;
  }

  .guide-detail-page .gd-standard-hero img,
  .guide-detail-page .gd-hero-visual img {
    width: 128px;
    height: 128px;
  }

  .guide-detail-page .card-header.gd-standard-hero > div:first-child,
  .guide-detail-page .gd-hero-visual {
    grid-column: 1;
  }

  .guide-detail-page .gd-hero-visual {
    grid-row: auto;
    order: -1;
  }

  .guide-detail-page .gd-standard-hero h1,
  .guide-detail-page .gd-standard-hero .hero-title {
    font-size: clamp(1.48rem, 6.7vw, 1.85rem);
  }

  .guide-detail-page .gd-standard-hero .fs-hero-text h1 {
    display: block;
    word-break: normal;
    overflow-wrap: normal;
  }

  .guide-detail-page .gd-standard-hero .fs-hero-tag {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin-top: 10px;
    margin-left: 0;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #dbeafe !important;
    font-size: .54em !important;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .guide-detail-page .gd-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guide-detail-page .gd-hero-actions a {
    min-width: 0;
    text-align: center;
  }
}

/* 2026-07-22: finish the shared Spider-guide visual language on legacy pages. */
.guide-detail-page .gd-content-section:not(.gd-intro-section) {
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 28px);
}

.guide-detail-page .gd-content-section:not(.gd-intro-section) > .guide-detail-card:only-child {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guide-detail-page .guide-detail-card h2,
.guide-detail-page .guide-detail-block h2,
.guide-detail-page .card-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 13px;
  border-left: 0;
  border-bottom: 1px solid rgba(var(--gd-hero-rgb), .18);
  font-size: clamp(1.25rem, 2.3vw, 1.62rem);
  font-weight: 950;
}

.guide-detail-page .guide-detail-card h2 .h2-emoji {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--gd-hero-rgb), .16);
  border-radius: 13px;
  background: var(--gd-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62);
  font-size: 1.1rem;
}

.guide-detail-page .highlight-box,
.guide-detail-page .highlight-blue,
.guide-detail-page .highlight-warning,
.guide-detail-page .notice-box,
.guide-detail-page .tip-box,
.guide-detail-page .note-box {
  position: relative;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid rgba(var(--gd-hero-rgb), .2);
  border-left: 5px solid var(--gd-accent);
  border-radius: 17px;
  background: linear-gradient(135deg, var(--gd-accent-soft), #fff 82%);
  color: #334155;
  box-shadow: 0 9px 22px rgba(15, 23, 42, .045);
}

.guide-detail-page .skill-table {
  overflow: hidden;
  border: 1px solid rgba(var(--gd-hero-rgb), .18);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.guide-detail-page .skill-table thead th {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(var(--gd-hero-rgb), .2);
  background: linear-gradient(135deg, var(--gd-accent-soft), #fff);
  color: var(--gd-accent-strong);
  font-size: .91rem;
  letter-spacing: .01em;
}

.guide-detail-page .skill-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #e8edf4;
  background: rgba(255, 255, 255, .98);
}

.guide-detail-page .skill-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-detail-page .skill-table tbody tr:hover td {
  background: var(--gd-accent-soft);
}

.guide-detail-page .skill-key {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gd-accent-strong), var(--gd-accent));
  color: #fff !important;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 17px rgba(var(--gd-hero-rgb), .22);
}

.guide-detail-page .summary-card,
.guide-detail-page .item-row,
.guide-detail-page .lazypack-item,
.guide-detail-page .fruit-rec-card,
.guide-detail-page .guide-item-card,
.guide-detail-page .guide-block {
  border-color: rgba(var(--gd-hero-rgb), .16);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--gd-accent-soft));
}

.guide-detail-page .guide-buttons-grid .guide-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 11px;
  align-content: center;
  min-height: 92px;
  padding: 16px 18px;
  border-color: rgba(var(--gd-hero-rgb), .18);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--gd-accent-soft));
}

.guide-detail-page .guide-buttons-grid .button-emoji {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.42rem;
}

.guide-detail-page .guide-buttons-grid .button-title {
  color: var(--gd-accent-strong);
  font-weight: 950;
}

.guide-detail-page .guide-buttons-grid .button-desc {
  font-size: .9rem;
}

.guide-detail-page .guide-source-card .guide-detail-card,
.guide-detail-page #sources.guide-detail-card,
.guide-detail-page .guide-detail-card:has(> h2[id*="source"]) {
  border-color: rgba(var(--gd-hero-rgb), .2);
  background:
    radial-gradient(circle at 96% 2%, rgba(var(--gd-hero-rgb), .1), transparent 32%),
    #fff;
}

.guide-detail-page .guide-source-list li,
.guide-detail-page .guide-source-links a,
.guide-detail-page .it-sources li {
  border-color: rgba(var(--gd-hero-rgb), .15);
  border-radius: 14px;
  background: #f8fafc;
}

.guide-detail-page .guide-source-list a,
.guide-detail-page .guide-source-links a,
.guide-detail-page .it-sources a {
  color: var(--gd-accent-strong);
  font-weight: 850;
}

.guide-detail-page .guide-faq-item,
.guide-detail-page .it-faq details {
  overflow: hidden;
  border: 1px solid rgba(var(--gd-hero-rgb), .16);
  border-radius: 16px;
  background: #fff;
}

.guide-detail-page .guide-faq-item h3,
.guide-detail-page .guide-faq-item summary,
.guide-detail-page .it-faq summary {
  color: var(--gd-accent-strong);
  font-weight: 900;
}

.guide-detail-page .guide-blocks {
  margin: 20px 0;
}

.guide-detail-page .guide-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-detail-page .guide-block {
  margin: 0;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.guide-detail-page .guide-block-title {
  margin-bottom: 10px;
  color: var(--gd-accent-strong);
  font-weight: 950;
}

.guide-detail-page .guide-block-list {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-detail-page .guide-block-list li::marker,
.guide-detail-page .guide-detail-card li::marker {
  color: var(--gd-accent);
  font-weight: 900;
}

@media (max-width: 760px) {
  .guide-detail-page .gd-content-section:not(.gd-intro-section) {
    padding: 16px;
    border-radius: 20px;
  }

  .guide-detail-page .guide-detail-card h2,
  .guide-detail-page .guide-detail-block h2,
  .guide-detail-page .card-section > h2 {
    align-items: flex-start;
    font-size: 1.2rem;
  }

  .guide-detail-page .guide-detail-card h2 .h2-emoji {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .guide-detail-page .guide-blocks-grid {
    grid-template-columns: 1fr;
  }

  .guide-detail-page table.skill-table.gd-skill-cards {
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .guide-detail-page .skill-table.gd-skill-cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .guide-detail-page .skill-table.gd-skill-cards tbody {
    display: grid;
    gap: 13px;
  }

  .guide-detail-page .skill-table.gd-skill-cards tbody tr {
    display: grid;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(var(--gd-hero-rgb), .18);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  }

  .guide-detail-page .skill-table.gd-skill-cards tbody td,
  .guide-detail-page .skill-table.gd-skill-cards tbody td:first-child {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: minmax(86px, .42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
    box-shadow: none;
    overflow-wrap: anywhere;
  }

  .guide-detail-page .skill-table.gd-skill-cards tbody td:last-child {
    border-bottom: 0;
  }

  .guide-detail-page .skill-table.gd-skill-cards tbody td::before {
    content: attr(data-label);
    color: var(--gd-accent-strong);
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.45;
  }

  .guide-detail-page .skill-table.gd-skill-cards tbody td:first-child {
    grid-template-columns: minmax(86px, .42fr) minmax(0, 1fr);
    background: linear-gradient(135deg, var(--gd-accent-soft), #fff);
  }

  .guide-detail-page .skill-table.gd-skill-cards .skill-key {
    justify-self: start;
  }

  .guide-detail-page .guide-buttons-grid .guide-button {
    min-height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-detail-page *,
  .guide-detail-page *::before,
  .guide-detail-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== 2026-10-18 立體化（全站攻略頁）＋ includes/guide_enhance.php 補充區塊 =====
   只加陰影、厚度與按壓回饋，不改各頁原本的底色。補充區塊的小卡用 currentColor 調色，
   不論所在卡片在深色模式是深底或白底都協調。 */
.site-main {
  --bf3d-edge: #d3dfef;
  --bf3d-edge-strong: #b7c9e2;
  --bf3d-shadow: rgba(15, 43, 78, .14);
  --bf3d-hi: rgba(255, 255, 255, .95);
}
body.dark-mode .site-main {
  --bf3d-edge: #0a1322;
  --bf3d-edge-strong: #050b16;
  --bf3d-shadow: rgba(0, 0, 0, .45);
  --bf3d-hi: rgba(255, 255, 255, .07);
}
.site-main .guide-detail-card {
  box-shadow: inset 0 1px 0 var(--bf3d-hi), 0 5px 0 var(--bf3d-edge), 0 22px 44px var(--bf3d-shadow);
}
.site-main .guide-button,
.site-main .guide-card {
  box-shadow: inset 0 1px 0 var(--bf3d-hi), 0 4px 0 var(--bf3d-edge-strong), 0 10px 18px var(--bf3d-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.site-main .guide-button:hover,
.site-main .guide-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 var(--bf3d-hi), 0 7px 0 var(--bf3d-edge-strong), 0 16px 26px var(--bf3d-shadow);
}
.site-main .guide-button:active,
.site-main .guide-card:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 var(--bf3d-hi), 0 1px 0 var(--bf3d-edge-strong), 0 4px 8px var(--bf3d-shadow);
}
.site-main .guide-button .button-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 46px;
  height: 46px;
  line-height: 1;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, currentColor 14%, transparent), 0 3px 8px rgba(15, 43, 78, .16);
}
.site-main .highlight-box {
  box-shadow: inset 0 1px 0 var(--bf3d-hi), 0 4px 0 var(--bf3d-edge), 0 12px 22px var(--bf3d-shadow);
}
.site-main .tag {
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .13), 0 2px 0 rgba(15, 23, 42, .12);
}
.site-main .fs-hero-icon {
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35));
}
.site-main :where(a.bf-term-link) {
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px dotted currentColor;
  border-radius: 4px;
  transition: background .15s;
}
.site-main :where(a.bf-term-link):hover {
  background: rgba(250, 204, 21, .28);
}

.site-main .bf-enrich-card > .bf-enrich-title {
  margin: 4px 0 14px;
}
.site-main .bf-enrich-card > .bf-enrich-title ~ .bf-enrich-title {
  margin-top: 26px;
}
.site-main .bf-enrich-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}
.site-main .bf-enrich-shot,
.site-main .bf-enrich-video {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  box-shadow: 0 4px 0 color-mix(in srgb, currentColor 16%, transparent), 0 12px 22px rgba(15, 23, 42, .14);
}
.site-main .bf-enrich-shot {
  margin: 0;
}
.site-main .bf-enrich-shot img {
  display: block;
  width: 100%;
  height: 180px;
  padding: 8px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(148, 163, 184, .08), rgba(148, 163, 184, .2));
}
.site-main .bf-enrich-shot figcaption {
  padding: 8px 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.4;
}
.site-main .bf-enrich-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  max-width: 820px;
  gap: 18px;
}
.site-main .bf-enrich-video {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.site-main .bf-enrich-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 color-mix(in srgb, currentColor 16%, transparent), 0 18px 28px rgba(15, 23, 42, .18);
}
.site-main .bf-enrich-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.site-main .bf-enrich-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-main .bf-enrich-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 40px;
  border-radius: 12px;
  background: #e11d2a;
  color: #fff;
  font-size: 18px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 0 #9f1239, 0 10px 18px rgba(0, 0, 0, .35);
}
.site-main .bf-enrich-vtext {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}
.site-main .bf-enrich-vtext b {
  font-size: .95rem;
  line-height: 1.35;
}
.site-main .bf-enrich-vtext small,
.site-main .bf-enrich-credit {
  font-size: .8rem;
  opacity: .72;
}
.site-main .bf-enrich-credit {
  margin: 12px 0 2px;
}
.site-main .bf-enrich-sources {
  margin: 0 0 4px;
  padding-left: 1.2em;
  color: inherit;
}
.site-main .bf-enrich > .bf-enrich-card {
  color: #102a43;
}
.site-main .bf-enrich > .bf-enrich-card > .bf-enrich-title {
  color: inherit;
}
body.dark-mode .site-main .bf-enrich > .bf-enrich-card {
  border-color: #2b3c57 !important;
  background: #132036 !important;
  color: #e2e8f0;
}
body.dark-mode .site-main .bf-enrich a:not(.bf-enrich-video) {
  color: #8cc4ff;
}
@media (prefers-reduced-motion: reduce) {
  .site-main .guide-button,
  .site-main .guide-card,
  .site-main .bf-enrich-video {
    transition: none;
  }
  .site-main .guide-button:hover,
  .site-main .guide-card:hover,
  .site-main .guide-button:active,
  .site-main .guide-card:active,
  .site-main .bf-enrich-video:hover {
    transform: none;
  }
}

/* 補充區塊在 main 是 flex 的頁面（例如痛苦果實）不可超出畫面 */
.site-main > .bf-enrich {
  flex: 1 1 100%;
  max-width: 100%;
}
.site-main .bf-enrich-videos {
  max-width: min(820px, 100%);
}
/* 手機：舊頁表格表頭寫死 px 寬度時，最後一欄會被擠成一個字寬；改回自動分配 */
@media (max-width: 720px) {
  .site-main table th[style*="width"],
  .site-main table td[style*="width"] {
    width: auto !important;
  }
}

/* 2026-10-22：深色模式重點框原本是「淺色漸層背景＋淺色字」看不到字；改回 style.css 設計的深底淺字 */
body.dark-mode .site-main .highlight-box,
body.dark-mode .site-main .highlight-blue,
body.dark-mode .site-main .note,
body.dark-mode .site-main .mini-note,
body.dark-mode .site-main .note-box,
body.dark-mode .site-main .guide-note-box {
  border-color: #334155;
  background: #1e293b;
  color: #cbd5e1;
}
body.dark-mode .site-main .highlight-warning {
  border-color: #7c5a1d;
  background: #2a2116;
  color: #f1e3c8;
}
/* 舊版標題區（fs-hero）說明文字放在深色漸層上，原本是灰字看不到 */
.site-main .fs-hero .fs-hero-sub {
  color: rgba(255, 255, 255, .92);
}
.site-main .fs-hero .fs-hero-sub a:not(.tag),
.site-main .fs-hero .fs-hero-sub a.bf-term-link {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .7);
  text-decoration-color: rgba(255, 255, 255, .7);
}
body.dark-mode .site-main :is(.highlight-box, .highlight-blue, .highlight-warning, .note, .mini-note, .note-box, .guide-note-box) :is(p, li, span, strong, b, em, small, div, td, th, ol, ul, h3, h4):not(.tag):not([class*="tag-"]) {
  color: inherit;
}
body.dark-mode .site-main :is(.highlight-box, .highlight-blue, .highlight-warning, .note, .mini-note, .note-box, .guide-note-box) a:not(.tag) {
  color: #8cc4ff;
}
/* 2026-10-23：手機版「快速前往」排在最上面。原本排在標題卡之後，但有些頁的標題卡包含整篇內容，快速前往就掉到頁面最底。 */
@media (max-width: 959.98px) {
  @supports selector(:has(*)) {
    .site-main:has(> .guide-subnav):has(> .guide-meta-block):has(> .card-section :is(.fs-hero, .hero-header, .item-hero)) > .guide-subnav,
    .guide-detail-page > .gd-section-nav {
      order: 0;
    }
  }
}

/* 2026-10-23 手機表格（TEMPLATES 批次提案）
   1) guide_detail_polish.js 產生的手機技能卡（.gd-skill-cards，果實／劍／槍／拳法／道具／配件頁的 skill-table）：
      欄名固定在左邊、內容整欄往下排。原本儲存格是兩欄 grid，格子裡只要有兩個以上的子節點
      （例如「<div>解鎖：熟練度 100</div>說明文字」或「名稱<a>連結</a>文字」），後面的部分就被排進左邊 86px 的欄名欄，
      一行只剩 4 個字（糯米頁說明欄就是這樣）。改成區塊排版後，內容不論有幾個子節點都在右邊同一欄。
   2) 列標題（th scope="row"，例如監獄任務表的「Lv.190」）不換行；全站 td/th 是 overflow-wrap:anywhere，
      會把這種短字拆成「Lv.19／0」。 */
@media (max-width: 760px) {
  .guide-detail-page .skill-table.gd-skill-cards tbody td,
  .guide-detail-page .skill-table.gd-skill-cards tbody td:first-child {
    display: block;
    position: relative;
    min-height: 2.9em;
    padding: 11px 13px 11px calc(13px + 5.4rem);
  }
  .guide-detail-page .skill-table.gd-skill-cards tbody td::before {
    position: absolute;
    left: 13px;
    top: 11px;
    width: 5rem;
  }
}
@media (max-width: 700px) {
  .site-main th[scope="row"] {
    white-space: nowrap;
  }
}
