/* ============================================
   台灣娛樂城評測網 — Component Styles
   ============================================ */

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-text);
}

.article-hero {
  margin: var(--space-6) 0 var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure {
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.article-figure figcaption {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
}

.site-logo img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--color-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.main-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold);
  background: var(--color-gold-soft);
}

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown__toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown__toggle:hover,
.nav-dropdown.open .nav-dropdown__toggle {
  color: var(--color-gold);
  background: var(--color-gold-soft);
}

.nav-dropdown.open .nav-dropdown__toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.active {
  color: var(--color-gold);
  background: var(--color-gold-soft);
}

.nav-dropdown__group {
  padding: var(--space-3) var(--space-4) var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.nav-dropdown__group:first-child {
  padding-top: var(--space-1);
}

/* Desktop: open dropdown on hover / keyboard focus (touch keeps tap-to-toggle) */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown:hover .nav-dropdown__toggle,
  .nav-dropdown:focus-within .nav-dropdown__toggle {
    color: var(--color-gold);
    background: var(--color-gold-soft);
  }

  .nav-dropdown:hover .nav-dropdown__toggle::after,
  .nav-dropdown:focus-within .nav-dropdown__toggle::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 800px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: var(--space-4);
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height var(--transition-base),
                opacity var(--transition-base),
                visibility var(--transition-base);
  }

  .nav-dropdown.open .nav-dropdown__menu {
    /* height is set inline by JS to the submenu's exact scrollHeight (smooth open + close) */
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown__menu a {
    padding: var(--space-2) var(--space-4);
    color: var(--color-text-muted);
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-gold);
  color: var(--color-white) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-gold-muted);
  color: var(--color-white) !important;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

/* Hamburger → X morph (3 lines at y=6/12/18 collapse to center) */
.mobile-menu-btn svg line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-btn[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 800px) {
  .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height));   /* fallback */
    max-height: calc(100dvh - var(--header-height));  /* dynamic viewport — accounts for mobile URL bar */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition-base),
                transform var(--transition-base),
                visibility var(--transition-base);
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: var(--space-3) var(--space-4);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-cta {
    margin-top: var(--space-2);
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .nav-dropdown__menu,
  .mobile-menu-btn svg line {
    transition: none;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 46vw, 560px);
  padding-top: clamp(var(--space-12), 6vw, var(--space-16));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-16));
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #f5e0d5 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 249, 250, 0.98) 0%, rgba(248, 249, 250, 0.95) 30%, rgba(248, 249, 250, 0.72) 46%, rgba(248, 249, 250, 0) 68%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.12) 60%, rgba(15, 23, 42, 0.10) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(28, 25, 23, 0.12);
  pointer-events: none;
  z-index: 3;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 590px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gold-soft);
  color: var(--color-gold-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
  line-height: var(--leading-snug);
}

.hero h1 em {
  color: var(--color-gold);
  font-style: normal;
}

.hero p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 560px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-start;
    min-height: 680px;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(248, 249, 250, 0.98) 0%, rgba(248, 249, 250, 0.93) 38%, rgba(248, 249, 250, 0.62) 62%, rgba(15, 23, 42, 0.12) 100%),
      linear-gradient(90deg, rgba(248, 249, 250, 0.72) 0%, rgba(248, 249, 250, 0.18) 100%);
  }

  .hero-media img {
    object-position: 68% center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero p {
    max-width: 34rem;
    font-size: var(--text-base);
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero-actions .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
  background: var(--color-gold-muted);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ── Bombastic CTA Animation ── */
@keyframes bombastic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0); }
}

@keyframes bombastic-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes bombastic-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.btn-bombastic {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-bright) 25%, #fb923c 50%, var(--color-gold-bright) 75%, var(--color-gold) 100%);
  background-size: 200% auto;
  animation: bombastic-pulse 2.2s ease-in-out infinite, bombastic-shimmer 3.5s linear infinite, bombastic-bounce 2s ease-in-out infinite;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-bombastic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  animation: bombastic-shimmer 2.5s linear infinite;
  pointer-events: none;
}

.btn-bombastic:hover {
  background: linear-gradient(90deg, var(--color-gold-muted) 0%, var(--color-gold) 25%, #ea580c 50%, var(--color-gold) 75%, var(--color-gold-muted) 100%);
  background-size: 200% auto;
  transform: translateY(-2px) scale(1.03);
}

/* ── Cards ── */
.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.card-body {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* ── Review Cards ── */
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.review-card:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.review-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold-soft) 0%, #ffedd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-gold);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
}

.review-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.review-card__meta {
  flex: 1;
  min-width: 0;
}

.review-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.review-card__type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review-card__score {
  text-align: right;
  flex-shrink: 0;
}

.review-card__score-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.review-card__score-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.review-card__body {
  flex: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

.review-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.review-card__feature {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gold-soft);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold-muted);
  border: 1px solid rgba(234, 88, 12, 0.10);
}

.review-card__feature svg {
  width: 12px;
  height: 12px;
  color: var(--color-gold-bright);
  stroke-width: 3;
  flex-shrink: 0;
}

.review-card__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: auto;
}

.review-card__pros-cons h5 {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.review-card__pros-cons ul {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.review-card__pros-cons li {
  padding: var(--space-1) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.review-card__pros-cons li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.review-card__pros li::before {
  background: var(--color-green);
}

.review-card__cons {
  opacity: 0.7;
}

.review-card__cons h5 {
  color: var(--color-text-muted);
}

.review-card__cons ul {
  color: var(--color-text-placeholder);
}

.review-card__cons li::before {
  background: var(--color-red);
  width: 4px;
  height: 4px;
}

.review-card__footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface-warm);
  margin-top: auto;
}

.review-card__footer .btn {
  flex: 1;
  justify-content: center;
}

.review-card__footer .btn-primary {
  flex: 1.4;
  font-weight: 700;
}

@media (max-width: 640px) {
  .review-card__pros-cons {
    grid-template-columns: 1fr;
  }

  .review-card__footer {
    flex-direction: row;
  }
}

/* ── Score Badge ── */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.score-badge--excellent {
  background: var(--color-green-soft);
  color: var(--color-green);
}

.score-badge--good {
  background: var(--color-blue-soft);
  color: var(--color-blue);
}

.score-badge--average {
  background: var(--color-gold-soft);
  color: var(--color-gold-muted);
}

.score-badge--poor {
  background: var(--color-red-soft);
  color: var(--color-red);
}

/* ── Star Rating ── */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold-bright);
}

.star-rating svg {
  width: 18px;
  height: 18px;
}

.star-rating--sm svg {
  width: 14px;
  height: 14px;
}

/* ── Info Table ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.info-table th,
.info-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.info-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  width: 160px;
  background: var(--color-surface);
}

.info-table td {
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-4);
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 0;
    background: transparent;
  }

  .info-table td {
    padding-top: var(--space-1);
  }
}

/* ── Rating Bar ── */
.rating-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.rating-bar__label {
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 80px;
  color: var(--color-text-secondary);
}

.rating-bar__track {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.rating-bar__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  min-width: 32px;
  text-align: right;
}

/* ── Sticky Tab Bar ── */
.tab-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

.tab-bar__scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.tab-bar__scroll::-webkit-scrollbar {
  display: none;
}

.tab-bar__btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.tab-bar__btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold-bright);
  background: var(--color-gold-soft);
}

.tab-bar__btn.active {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb__sep {
  color: var(--color-text-placeholder);
  font-size: var(--text-xs);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-gold);
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item.open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}

.faq-item__answer p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Contact Form ── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-red);
  margin-left: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-placeholder);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-red);
  margin-top: var(--space-2);
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: var(--color-red);
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: var(--space-6);
  background: var(--color-green-soft);
  border: 1px solid var(--color-green);
  border-radius: var(--radius-lg);
  text-align: center;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--color-green);
  margin-bottom: var(--space-2);
}

.form-success p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ── CTA Band ── */
.cta-band {
  position: relative;
  padding: var(--space-10) var(--space-8);
  background: linear-gradient(135deg, var(--color-surface-warm) 0%, var(--color-gold-soft) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin-bottom: var(--space-4);
}

.cta-band p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-text);
  color: var(--color-text-placeholder);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.site-footer a {
  color: var(--color-text-placeholder);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .site-logo {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-placeholder);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col li {
  font-size: var(--text-sm);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
}

.footer-bottom a {
  margin-left: var(--space-6);
}

@media (max-width: 768px) {
  .cta-band {
    padding: var(--space-16) var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-bottom a {
    margin-left: 0;
  }
}

/* ── Decorative Elements ── */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.deco-circle--gold {
  background: radial-gradient(circle, var(--color-gold-soft) 0%, transparent 70%);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tag / Pill ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.tag--gold {
  background: var(--color-gold-soft);
  color: var(--color-gold-muted);
}

.tag--green {
  background: var(--color-green-soft);
  color: var(--color-green);
}

.tag--red {
  background: var(--color-red-soft);
  color: var(--color-red);
}

.tag--blue {
  background: var(--color-blue-soft);
  color: var(--color-blue);
}

/* ── Alert Box ── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-style: italic;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: none;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.alert--warning {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: var(--color-gold-muted);
}

.alert--warning::before {
  background: var(--color-gold-bright);
}

.alert--danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: var(--color-red);
}

.alert--danger::before {
  background: var(--color-red);
}

.alert--info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--color-blue);
}

.alert--info::before {
  background: var(--color-blue);
}

.alert svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Content Page Layout ── */
.content-page {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.content-page h1 {
  margin-bottom: var(--space-6);
}

.content-page h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.content-page h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.content-page p {
  margin-bottom: var(--space-4);
}

.content-page ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.content-page ul li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.content-page ol {
  list-style: decimal;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.content-page ol li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── Contact Page Grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info__item svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__item h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-info__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Promo Table ── */
.promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.promo-table th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

.promo-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

.promo-table tr:hover td {
  background: var(--color-surface-warm);
}

/* ── Methodology Cards ── */
.method-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.method-card:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-md);
}

.method-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
}

.method-card__content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.method-card__content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ── Scam Warning Card ── */
.scam-card {
  display: flex;
  flex-direction: column;
  background: var(--color-red-soft);
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.scam-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: var(--shadow-md);
}

.scam-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.scam-card__header svg {
  width: 24px;
  height: 24px;
  color: var(--color-red);
  flex-shrink: 0;
}

.scam-card__header h3 {
  font-size: var(--text-xl);
  color: var(--color-red);
  margin-bottom: 0;
}

.scam-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  flex: 1;
  margin-bottom: 0;
}

.scam-card .mt-4 {
  margin-top: var(--space-4);
}

/* ── Rank Number ── */
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}

.rank-number--1 {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: var(--color-white);
}

.rank-number--2 {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: var(--color-white);
}

.rank-number--3 {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  color: var(--color-white);
}

.rank-number--other {
  background: var(--color-surface);
  color: var(--color-text-muted);
}

/* ============================================
   Editorial / Guide Components
   ============================================ */

/* ── In-page Table of Contents ── */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-12);
}

.toc__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-4);
}

ol.toc__list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  column-gap: var(--space-10);
}

@media (min-width: 720px) {
  .toc__list {
    columns: 2;
  }
}

.toc__list li {
  counter-increment: toc;
  break-inside: avoid;
  margin-bottom: var(--space-3);
}

.toc__list a {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}

.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gold);
  flex-shrink: 0;
}

.toc__list a:hover {
  color: var(--color-gold);
}

/* ── Editorial Voice Block ── */
.editor-say {
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.editor-say p {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

.editor-say p:last-child {
  margin-bottom: 0;
}

.editor-say__by {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Worked Example Box ── */
.example {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.example__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-2);
}

.example .calc-figure {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-gold-muted);
}

/* ── Social-proof Quote ── */
.voice {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}

.voice__src {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.voice p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ── Wagering (流水) Calculator ── */
.calc {
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.calc__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.calc__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.calc__field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.calc__field input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.calc__field input:focus {
  outline: none;
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.calc__out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.calc__box {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.calc__box .k {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.calc__box .v {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-2);
  line-height: 1.1;
}

.calc__box--hot .v {
  color: var(--color-gold);
}

.calc__note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 560px) {
  .calc {
    padding: var(--space-6);
  }

  .calc__grid,
  .calc__out {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Champion Ranking Grid (homepage 年度推薦排行)
   ============================================ */
.champion-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
  align-items: stretch;
}

/* Champion occupies the wider left column across both rows */
.champion-grid > .review-card--champion {
  grid-row: 1 / span 2;
}

/* Rank medal — sits at the start of the existing header flex row */
.review-card__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}

/* #1 champion emphasis: gold frame, glow, depth */
.review-card--champion {
  position: relative;
  border-color: var(--color-gold-bright);
  border-width: 2px;
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(249, 115, 22, 0.10);
  background: linear-gradient(180deg, rgba(254, 247, 205, 0.55) 0%, var(--color-bg-elevated) 160px);
}

.review-card--champion:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 0 5px rgba(249, 115, 22, 0.16);
}

.review-card--champion .review-card__name {
  font-size: var(--text-2xl);
}

.review-card--champion .review-card__score-value {
  font-size: var(--text-3xl);
}

.review-card--champion .review-card__rank {
  width: 40px;
  height: 40px;
  font-size: var(--text-base);
}

.champion-ribbon {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .champion-grid {
    grid-template-columns: 1fr;
  }

  .champion-grid > .review-card--champion {
    grid-row: auto;
  }

  .review-card--champion .review-card__name {
    font-size: var(--text-xl);
  }
}

/* ============================================
   Ranking Leaderboard — homepage 推薦排行 + casino-reviews #top
   #1 champion spotlight + responsive grid of #2–#5
   ============================================ */
.ranking-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

/* ── Offer card (shared base, used by #2–#5) ── */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.offer-card:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.offer-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* inline rank medal at the start of the head row (reuses .rank-number colours) */
.offer-card__head > .rank-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}

.offer-card__meta {
  min-width: 0;
}

.offer-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: var(--leading-snug);
}

.offer-card__type {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.offer-card__score {
  margin-left: auto;
  flex-shrink: 0;
  text-align: center;
}

.offer-card__score b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.1;
}

.offer-card__score span {
  font-size: 0.625rem;
  color: var(--color-text-muted);
}

/* feature pills reuse .review-card__feature styling; drop the wrapper margin */
.offer-card .review-card__features {
  margin: 0;
}

/* bonus list — gold-check bullets (same accent as .top-pick__why-list) */
.offer-card__bonuses {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.offer-card__bonuses li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}

.offer-card__bonuses li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-gold-soft);
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.18);
}

.offer-card__bonuses li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(-45deg);
}

.offer-card__footer {
  margin-top: auto;
  padding-top: var(--space-1);
}

.offer-card__footer .btn {
  width: 100%;
}

/* ── Champion (#1) — bigger, gold-framed, two-column body ── */
.offer-card--champion {
  gap: var(--space-5);
  border-width: 2px;
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(249, 115, 22, 0.10);
  background: linear-gradient(180deg, rgba(254, 247, 205, 0.55) 0%, var(--color-bg-elevated) 200px);
}

.offer-card--champion:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 5px rgba(249, 115, 22, 0.16);
}

.offer-card--champion .top-pick__badge {
  margin-bottom: 0;
}

.offer-card--champion .review-card__logo {
  width: 64px;
  height: 64px;
  font-size: var(--text-2xl);
}

.offer-card--champion .offer-card__name {
  font-size: var(--text-2xl);
}

.offer-card--champion .offer-card__score b {
  font-size: var(--text-3xl);
}

.offer-champion__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.offer-champion__col-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.offer-champion__col--bonus {
  padding-left: var(--space-6);
  border-left: 1px solid var(--color-border-light);
}

@media (max-width: 1024px) {
  .offer-champion__split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .offer-champion__col--bonus {
    padding-left: 0;
    padding-top: var(--space-5);
    border-left: none;
    border-top: 1px solid var(--color-border-light);
  }
}

@media (max-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .offer-card--champion .offer-card__name {
    font-size: var(--text-xl);
  }
}

/* ============================================
   Ranking Hero — casino-reviews top-pick + sidebar
   ============================================ */
.ranking-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;   /* ≈ 62% / 38% */
  gap: var(--space-8);
  align-items: stretch;
}

/* MAIN — let the spotlight card fill the full grid-cell height */
.ranking-hero__main {
  display: flex;
  flex-direction: column;
}

/* MAIN — top-pick spotlight (reuses review-card tokens, not the class) */
.top-pick {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-gold-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.top-pick__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-gold-muted);
  margin-bottom: var(--space-4);
}

.top-pick__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.top-pick__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-5);
}

.top-pick__actions .btn {
  flex: 1;
  justify-content: center;
}

.top-pick .review-card__features {
  margin-bottom: 0;
}

/* "為什麼是本榜冠軍" highlights — fills the spotlight card body */
.top-pick__why {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}

.top-pick__why-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.top-pick__why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.top-pick__why-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}

/* gold check accent to match the champion theme */
.top-pick__why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-gold-soft);
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.18);
}

.top-pick__why-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(-45deg);
}

/* SIDE — sticky, de-emphasized intro + methodology */
.ranking-hero__side {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  align-self: start;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.ranking-hero__intro p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.ranking-hero__intro p:last-child {
  margin-bottom: 0;
}

.ranking-hero__method-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

/* Compact weighting rows (replaces the 6 full-width alert boxes) */
.weight-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.weight-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.weight-list__k {
  color: var(--color-text-secondary);
}

.weight-list__v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-gold);
}

/* mini proportional bar, width driven by inline --w */
.weight-list__bar {
  grid-column: 1 / -1;
  order: 3;
  height: 4px;
  width: var(--w);
  margin-top: var(--space-1);
  background: var(--color-gold-bright);
  border-radius: var(--radius-full);
  opacity: 0.55;
}

.weight-list__bar--hi {
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-gold));
  opacity: 1;
}

@media (max-width: 768px) {
  .ranking-hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ranking-hero__side {
    position: static;
    top: auto;
  }
}

/* ============================================
   Leaderboard — homepage 年度推薦排行 rows
   ============================================ */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* row grid: medal | logo | name+tags | score | bonus | CTA */
.lb-row {
  position: relative;
  min-width: 0;   /* flex item of .leaderboard — allow shrinking below grid intrinsic width */
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto minmax(220px, 280px) auto;
  align-items: center;
  gap: var(--space-5);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: all var(--transition-base);
}

.lb-row:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.lb-row > .rank-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: var(--text-base);
  box-shadow: var(--shadow-sm);
}

.lb-row .review-card__logo {
  width: 52px;
  height: 52px;
  font-size: var(--text-xl);
}

.lb-row__main {
  min-width: 0;
}

.lb-row__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: var(--leading-snug);
}

.lb-row__type {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.lb-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.lb-row__tags span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 1px var(--space-3);
  white-space: nowrap;
}

/* score block — number + proportional bar (width via inline --score) */
.lb-row__score {
  text-align: center;
  min-width: 88px;
}

.lb-row__score b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.1;
}

.lb-row__score span {
  font-size: 0.625rem;
  color: var(--color-text-muted);
}

.lb-row__bar {
  display: block;
  height: 5px;
  margin-top: var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lb-row__bar::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--score, 0%);
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-gold));
  border-radius: var(--radius-full);
}

/* bonus highlights — gold-check bullets (same recipe as .offer-card__bonuses) */
.lb-row__bonus {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-border-light);
}

.lb-row__bonus li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}

.lb-row__bonus li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-gold-soft);
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.18);
}

.lb-row__bonus li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(-45deg);
}

.lb-row__cta .btn {
  white-space: nowrap;
}

/* champion (#1) — gold frame, soft tint, top ribbon */
.lb-row--champion {
  border-width: 2px;
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(249, 115, 22, 0.10);
  background: linear-gradient(90deg, rgba(254, 247, 205, 0.45) 0%, var(--color-bg-elevated) 320px);
  padding-top: var(--space-8);
}

.lb-row--champion:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 5px rgba(249, 115, 22, 0.16);
}

.lb-row__ribbon {
  position: absolute;
  top: 0;
  left: var(--space-6);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-white);
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-bright));
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  box-shadow: var(--shadow-md);
}

.lb-row--champion .lb-row__name {
  font-size: var(--text-xl);
}

/* tablet: bonus list drops to a second line under the main columns */
@media (max-width: 1024px) {
  .lb-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    row-gap: var(--space-4);
  }

  .lb-row__bonus {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
  }

  /* keep the CTA in the first row, right-aligned */
  .lb-row__cta {
    grid-row: 1;
    grid-column: 5;
  }
}

/* mobile: stacked compact card */
@media (max-width: 640px) {
  .lb-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: var(--space-5);
  }

  .lb-row--champion {
    padding-top: var(--space-8);
  }

  .lb-row > .rank-number {
    width: 30px;
    height: 30px;
    font-size: var(--text-sm);
  }

  .lb-row .review-card__logo {
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
  }

  .lb-row__score {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: var(--space-3);
    text-align: left;
  }

  .lb-row__score b {
    font-size: var(--text-xl);
  }

  .lb-row__bar {
    margin-top: 0;
  }

  .lb-row__bonus {
    padding-top: 0;
    border-top: none;
  }

  .lb-row__cta {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .lb-row__cta .btn {
    width: 100%;
  }
}

/* ── Top-5 Recommendation Card (injected by js/top5-card.js) ── */
.top5-card {
  margin: var(--space-8) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.top5-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.top5-card__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
  margin: 0;
}

.top5-card__title::before {
  content: "🏆";
  font-size: 1em;
  line-height: 1;
}

.top5-card__badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
}

.top5-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* row grid: medal | logo | name+highlight | score | CTA */
.top5-card__row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  grid-template-areas: "rank logo info score cta";
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s ease;
}

.top5-card__row:last-child {
  border-bottom: none;
}

.top5-card__row:hover {
  background: var(--color-surface-warm);
}

.top5-card__row--first {
  background: linear-gradient(90deg, var(--color-gold-soft), transparent 70%);
}

.top5-card__row > .rank-number {
  grid-area: rank;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.top5-card__logo {
  grid-area: logo;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold-soft) 0%, #ffedd5 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
}

.top5-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.top5-card__info {
  grid-area: info;
  min-width: 0;
}

.top5-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.top5-card__highlight {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  margin-top: 2px;
}

.top5-card__score {
  grid-area: score;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-gold-soft);
  border: 1px solid #fed7aa;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-gold-muted);
  white-space: nowrap;
}

.top5-card__cta {
  grid-area: cta;
}

.top5-card__cta .btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.top5-card__footer {
  display: block;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold-muted);
  background: var(--color-surface-warm);
  transition: background 0.15s ease, color 0.15s ease;
}

.top5-card__footer:hover {
  background: var(--color-gold-soft);
  color: var(--color-gold);
}

@media (max-width: 640px) {
  .top5-card__row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "rank logo info score"
      "cta  cta  cta  cta";
    padding: var(--space-3) var(--space-4);
  }

  .top5-card__cta .btn {
    width: 100%;
  }
}
