/* Noto Sans Thai (self-hosted variable font, weights 100–900) */
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/assets/fonts/noto-sans-thai-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/assets/fonts/noto-sans-thai-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/assets/fonts/noto-sans-thai-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0f19;
  --surface: #131b2e;
  --surface-2: #1c263f;
  --surface-3: #253354;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #23314e;
  --border-light: rgba(255, 255, 255, 0.08);
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.4);
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --accent-ink: #ffffff;
  --cta: #047857;
  --cta-hover: #065f46;
  --cta-ink: #ffffff;
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --silver: #94a3b8;
  --bronze: #d97706;
  --tag-football: #2563eb;
  --tag-slot: #be185d;
  --tag-casino: #7c3aed;
  --radius: 14px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
  --font: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-2); padding: 8px 16px; z-index: 100; border-radius: 8px; color: #fff; }

/* Header */
.site-header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all .2s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 56px;
  width: auto;
  flex: none;
}
.logo span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .2s;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: #fff;
  background: var(--surface-2);
}

/* Hero Section */
.hero {
  padding: 40px 0 24px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 auto 16px;
  max-width: 900px;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto 20px;
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: .88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-pill strong { color: #fff; }

/* Podium / Top 3 Showcase */
.podium-section {
  margin: 32px 0 44px;
}
.podium-title {
  text-align: center;
  margin-bottom: 24px;
}
.podium-title h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  color: #fff;
  margin-bottom: 6px;
}
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .podium-grid { grid-template-columns: 1fr; }
}

.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.podium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.podium-card.rank-1 {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--surface) 35%);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}
.podium-card.rank-2 {
  border-color: rgba(148, 163, 184, 0.4);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08) 0%, var(--surface) 35%);
}
.podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, var(--surface) 35%);
}

.podium-badge-top {
  align-self: flex-start;
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.podium-card.rank-1 .podium-badge-top {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
}
.podium-card.rank-2 .podium-badge-top {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #0f172a;
  font-weight: 800;
}
.podium-card.rank-3 .podium-badge-top {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-weight: 800;
}

.podium-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.podium-rank-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  flex: none;
}
.podium-card.rank-1 .podium-rank-num { background: linear-gradient(135deg, #f59e0b, #b45309); }
.podium-card.rank-2 .podium-rank-num { background: linear-gradient(135deg, #94a3b8, #475569); }
.podium-card.rank-3 .podium-rank-num { background: linear-gradient(135deg, #d97706, #78350f); }

.podium-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.podium-domain {
  font-size: .85rem;
  color: var(--muted);
  word-break: break-all;
}
.podium-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
}
.stars-gold {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.rating-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.podium-desc {
  color: #cbd5e1;
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.podium-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.podium-features li {
  font-size: .88rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.podium-features li span.icon {
  color: #10b981;
  font-weight: 800;
}
.podium-cta {
  display: block;
  text-align: center;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.podium-cta:hover {
  background: var(--cta-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Category Filter Tabs */
.filter-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 36px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover {
  color: #fff;
  border-color: var(--accent);
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Ranking Cards List */
.brand-grid {
  display: grid;
  gap: 14px;
}
.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 18px;
  align-items: center;
  transition: all .2s ease;
  box-shadow: var(--shadow);
}
.site-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--surface-2);
  transform: translateX(3px);
}
.site-card.top-rank {
  border-left: 4px solid var(--gold);
}
.card-rank {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  flex: none;
}
.site-card:nth-child(1) .card-rank { background: var(--gold); color: #000; border-color: var(--gold); }
.site-card:nth-child(2) .card-rank { background: #cbd5e1; color: #0f172a; border-color: #cbd5e1; }
.site-card:nth-child(3) .card-rank { background: var(--bronze); color: #fff; border-color: var(--bronze); }

.card-main {
  min-width: 0;
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.category-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge-football { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-slot { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-casino { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.card-highlight {
  font-size: .92rem;
  color: #cbd5e1;
  margin: 4px 0 8px;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-tag {
  font-size: .78rem;
  color: var(--muted);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 999px;
}

.card-score {
  text-align: right;
  padding: 0 10px;
}
.score-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: #10b981;
  line-height: 1;
}
.score-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}

.card-action {
  flex: none;
}
.btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  min-width: 130px;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-visit:hover {
  background: var(--cta-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

@media (max-width: 768px) {
  .site-card {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .card-rank { width: 48px; height: 48px; font-size: 1.15rem; }
  .card-score { grid-column: 1 / 2; text-align: center; padding: 0; }
  .card-action { grid-column: 2 / -1; }
  .btn-visit { width: 100%; }
}

/* Comparison Table */
.section-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0;
  box-shadow: var(--shadow);
}
.section-header {
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #fff;
  margin: 0 0 6px;
}
.section-header p {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compare-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: .92rem;
}
.compare-tbl th, .compare-tbl td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-tbl th {
  background: var(--surface-2);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
}
.compare-tbl tbody tr:hover {
  background: var(--surface-2);
}
.compare-tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl-rank-badge {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  text-align: center;
  line-height: 26px;
  font-weight: 800;
  background: var(--surface-3);
  color: #fff;
  font-size: .82rem;
  margin-right: 6px;
}
.tbl-rank-1 { background: var(--gold); color: #000; }
.tbl-rank-2 { background: #cbd5e1; color: #0f172a; }
.tbl-rank-3 { background: var(--bronze); color: #fff; }

/* Article Preview Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 860px) {
  .article-grid { grid-template-columns: 1fr; }
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
  box-shadow: var(--shadow);
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}
.article-card h2, .article-card h3 {
  font-size: 1.18rem;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.4;
}
.article-card p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
  flex-grow: 1;
}
.article-link {
  font-weight: 700;
  font-size: .9rem;
  color: var(--link);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* In-depth Article / Content section */
.rich-content {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
}
.rich-content h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.rich-content h3 {
  font-size: 1.25rem;
  color: #93c5fd;
  margin: 24px 0 10px;
}
.rich-content p {
  margin: 0 0 16px;
}
.rich-content ul, .rich-content ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.rich-content li {
  margin-bottom: 8px;
}
.rich-content strong {
  color: #fff;
}

.info-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.info-banner .info-title {
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.05rem;
}
.info-banner p {
  margin: 0;
  font-size: .95rem;
  color: #cbd5e1;
}

/* Pros and Cons Box */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
@media (max-width: 600px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}
.pro-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 16px;
}
.pro-box h3 {
  color: #10b981;
  margin: 0 0 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.con-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 16px;
}
.con-box h3 {
  color: #f87171;
  margin: 0 0 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pro-box ul, .con-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pro-box li, .con-box li {
  font-size: .88rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* FAQ Accordion */
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: all .2s;
}
details.faq-item[open] {
  border-color: var(--accent);
  background: var(--surface-2);
}
details.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--link);
  transition: transform .2s;
}
details.faq-item[open] summary::after {
  content: "−";
}
details.faq-item p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: .95rem;
  line-height: 1.7;
}

/* Reviews Component */
.review-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 380px 1fr;
  align-items: start;
}
@media (max-width: 860px) {
  .review-wrap { grid-template-columns: 1fr; }
}
.form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .92rem; color: #fff; display: block; margin-bottom: 4px; }
.field-legend { font-weight: 600; font-size: .92rem; color: #fff; padding: 0; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #fff;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 1.8rem; line-height: 1; color: var(--border); cursor: pointer; margin: 0; font-weight: 400; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.hp { position: absolute; left: -9999px; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: .92rem; display: none; }
.msg.ok { display: block; background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.msg.err { display: block; background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.review-list {
  display: grid;
  gap: 12px;
  max-height: 860px;
  overflow-y: auto;
  padding-right: 6px;
}
.review-list::-webkit-scrollbar {
  width: 6px;
}
.review-list::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 4px;
}
.review-list::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}
.review-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.review-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.review-author { font-weight: 700; color: #fff; }
.review-date { color: var(--muted); font-size: .82rem; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.review-for { font-size: .85rem; color: #93c5fd; margin-bottom: 6px; font-weight: 600; }
.review-text { margin: 0; color: #cbd5e1; font-size: .92rem; word-break: break-word; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }

/* Author Box */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 36px 0;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex: none;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}
.author-info h3 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.author-info p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* Article Page Layout */
.article-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  margin: 28px auto;
  max-width: 860px;
  box-shadow: var(--shadow);
}
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 20px 0 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.article-meta { color: var(--muted); font-size: .88rem; margin: 8px 0 24px; }
.toc-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}
.toc-box strong { color: #fff; font-size: 1.05rem; }
.toc-box ol { margin: 10px 0 0; padding-left: 20px; }
.toc-box li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 0;
  color: var(--muted);
  font-size: .9rem;
  background: rgba(11, 15, 25, 0.95);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive: Tablet & Mobile */
@media (max-width: 860px) {
  body { background-attachment: scroll; }

  .site-header .container { min-height: 60px; position: relative; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }

  .section-box { padding: 20px; margin: 28px 0; }
  .card-title { overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .logo { font-size: 1.15rem; }
  .logo-img { height: 46px; }

  .hero { padding: 28px 0 16px; }
  .hero-badge { font-size: .8rem; padding: 6px 12px; line-height: 1.4; }
  .hero p.lead { font-size: 1rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-pill { padding: 8px 10px; font-size: .8rem; flex-direction: column; gap: 2px; text-align: center; justify-content: center; }

  .podium-section { margin: 24px 0 32px; }
  .podium-card { padding: 18px; }
  .podium-name { font-size: 1.2rem; }

  .filter-wrapper { padding: 14px; margin: 28px 0 18px; }
  .tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 0 14px 4px;
    width: calc(100% + 28px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex: none; font-size: .88rem; }

  .site-card { padding: 14px; }
  .site-card:hover { transform: none; }
  .card-title { font-size: 1.05rem; }
  .card-highlight { font-size: .88rem; }

  .section-box { padding: 16px; border-radius: 12px; }
  .compare-tbl { font-size: .85rem; }
  .compare-tbl th, .compare-tbl td { padding: 10px 12px; }

  .btn-visit { white-space: normal; text-align: center; max-width: 100%; }
  .article-card { padding: 18px; }

  .article-page { border-radius: 14px; margin: 16px auto; padding: 20px 16px; }
  .rich-content h1 { font-size: 1.5rem; line-height: 1.35; }
  .rich-content h2 { font-size: 1.3rem; margin-top: 28px; }
  .rich-content h3 { font-size: 1.1rem; }
  .rich-content ul, .rich-content ol { padding-left: 20px; }
  .info-banner { padding: 14px 16px; }

  details.faq-item summary { font-size: .98rem; gap: 12px; }

  .form-box { padding: 16px; }
  input, select, textarea { font-size: 16px; } /* prevent iOS zoom on focus */

  .author-box { flex-direction: column; align-items: center; text-align: center; padding: 20px; }

  .site-footer { margin-top: 40px; padding: 28px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr; }
  .site-card { grid-template-columns: 40px 1fr; gap: 10px; }
  .card-rank { width: 40px; height: 40px; font-size: 1rem; }
}

@media (hover: none) {
  .podium-card:hover, .article-card:hover { transform: none; }
}

/* Comparison Table → stacked cards on mobile */
@media (max-width: 600px) {
  .table-responsive { overflow: visible; border: 0; border-radius: 0; }
  .compare-tbl { min-width: 0; font-size: .9rem; }
  .compare-tbl thead { display: none; }
  .compare-tbl, .compare-tbl tbody { display: block; }
  .compare-tbl tbody { display: grid; gap: 12px; }
  .compare-tbl tr {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
  }
  .compare-tbl tbody tr:hover { background: var(--surface-2); }
  .compare-tbl td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    grid-column: 1 / -1;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    text-align: right;
  }
  .compare-tbl td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    text-align: left;
    flex: none;
    max-width: 45%;
  }
  /* rank + name form the card header */
  .compare-tbl td:nth-child(1), .compare-tbl td:nth-child(2) {
    grid-column: auto;
    display: block;
    text-align: left;
    padding: 0 0 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  .compare-tbl td:nth-child(1)::before, .compare-tbl td:nth-child(2)::before,
  .compare-tbl td:last-child::before { content: none; }
  .compare-tbl td:nth-child(1) .tbl-rank-badge { width: 32px; height: 32px; line-height: 32px; margin: 0; font-size: .95rem; }
  .compare-tbl td:nth-child(2) strong { font-size: 1.02rem; }
  .compare-tbl td:last-child { display: block; padding: 12px 0 0; border-bottom: 0; }
  .compare-tbl td:last-child .btn-visit { display: flex; width: 100%; padding: 10px 12px !important; font-size: .92rem !important; }
  .compare-tbl td:nth-last-child(2) { border-bottom: 0; }
}

/* Ranking Pagination */
#ranking { scroll-margin-top: 80px; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
}
.pagination:empty { display: none; }
.page-btn {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.page-btn:hover:not(:disabled) { color: #fff; border-color: var(--accent); }
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}
.page-btn:disabled { opacity: .4; cursor: default; }
.page-info { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .85rem; }

/* Hero Banner */
.hero-banner {
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) {
  .hero-banner { border-radius: 12px; margin-bottom: 18px; }
}

/* Links inside running text: underline so they don't rely on color alone */
.article-page p a:not([class]), .rich-content p a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-content .article-card h2 {
  font-size: 1.18rem;
  color: #fff;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  line-height: 1.4;
}

/* Provider & Game Showcase */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all .25s ease;
  min-height: 100px;
}
.provider-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
  background: var(--surface-2);
}
.provider-card img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.provider-card span {
  font-size: .82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.game-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.15);
}
.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.game-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  background: var(--surface);
}
.game-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
}
.game-card-meta strong {
  color: #10b981;
}


/* Game Provider Logo Slider */
.providers-section { margin: 8px 0 40px; }
.providers-header { text-align: center; }
.providers-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.providers-track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 8px 0 22px;
  list-style: none;
  animation: providers-scroll 50s linear infinite;
  animation-play-state: paused;
}
/* runs only while on screen (toggled by app.js) */
.providers-marquee.is-active .providers-track { animation-play-state: running; }
.providers-marquee.is-active:hover .providers-track { animation-play-state: paused; }
.providers-track li {
  flex: none;
  border-radius: 16px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform .2s ease;
}
.providers-track li:hover { transform: translateY(-3px); }
.providers-track img { width: 220px; height: 141px; display: block; }
/* track holds two identical sets: shift by one set (+ one gap) for a seamless loop */
@keyframes providers-scroll {
  to { transform: translateX(calc(-50% - 8px)); }
}
@media (max-width: 600px) {
  .providers-track { gap: 12px; animation-duration: 35s; }
  .providers-track img { width: 170px; height: 109px; }
  @keyframes providers-scroll { to { transform: translateX(calc(-50% - 6px)); } }
}
/* reduced-motion users still get the loop, just at half speed (hover still pauses it) */
@media (prefers-reduced-motion: reduce) {
  .providers-track { animation-duration: 100s; }
  .providers-track li { transition: none; }
}
