:root {
  --primary: #f5821f; --primary-dark: #d96f10; --gold: #f5a623;
  --bg: #eef1f5; --surface: #ffffff; --card: #ffffff; --border: #e2e8f0;
  --header: #0d1b2a; --text: #16202c; --text-muted: #5a6b7b; --link: #1565c0; --radius: 12px;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
       line-height: 1.6; color: var(--text); margin: 0; background: var(--bg); overflow-x: clip; }
a { color: var(--link); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.navbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center;
          justify-content: space-between; height: 64px; padding: 0 24px;
          background: var(--header); box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.navbar-brand img { height: 38px; display: block; }
.nav-links { display: flex; align-items: stretch; gap: 4px; }
.nav-links a { color: #cfd8e3; text-decoration: none; font-weight: 600; font-size: 0.85rem; white-space: nowrap;
               display: flex; align-items: center; height: 64px; padding: 0 11px;
               border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav-links a:hover { color: #fff; border-bottom-color: var(--primary); }
.nav-links a.nav-cta { align-self: center; height: auto; margin-left: 10px; padding: 10px 20px; border-bottom: 0;
                       background: var(--primary); color: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(245,130,31,0.35); }
.nav-links a.nav-cta:hover { background: var(--primary-dark); border-bottom: 0; box-shadow: 0 4px 14px rgba(245,130,31,0.5); }
.nav-close { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
              flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

.hero { padding: 50px 20px 36px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.5rem; margin: 0 0 .6rem; line-height: 1.15; color: var(--text); }
.hero h1 .accent { color: var(--primary); }
.hero p.sub { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0 auto .6rem; }
.byline { color: var(--text-muted); font-size: .9rem; margin: .2rem 0 1.2rem;
          display: inline-flex; align-items: center; gap: 10px; justify-content: center;
          flex-wrap: nowrap; text-align: left; }
.byline a { color: var(--link); text-decoration: none; font-weight: 600; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex: none; }
.author-avatar.initials { display: inline-flex; align-items: center; justify-content: center; background: var(--header);
                          color: #fff; font-weight: 800; font-size: .9rem; }
.trust-strip { margin-top: 1rem; color: var(--text-muted); font-size: 0.85rem; }
.trust-strip span { margin: 0 10px; white-space: nowrap; }

.btn { display: inline-block; text-decoration: none; font-weight: 800; border-radius: 6px; padding: 13px 26px; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; transition: background .15s, transform .1s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

section.content-block { padding: 14px 0 8px; }
h2 { color: var(--text); font-size: 1.55rem; margin: 1.8rem 0 .5rem; }
.toplist-lead { color: var(--text-muted); margin: 0 0 .6rem; }
.placeholder-note { background: #fff8ec; border: 1px solid #f3d9a8; color: #8a5a12;
                    padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin: 0 0 1rem; }
.table-wrapper { overflow-x: visible; }
.toplist-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin: .5rem 0 1rem; }
.toplist-table thead th { text-align: left; padding: .4rem 1rem; color: var(--text-muted); font-size: .72rem;
                          font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.toplist-table tbody tr { background: var(--card); box-shadow: 0 1px 4px rgba(16,32,48,0.08); border-radius: 12px; }
.toplist-table tbody td { padding: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
                          vertical-align: middle; }
.toplist-table tbody td:first-child { border-left: 1px solid var(--border); border-radius: 12px 0 0 12px; }
.toplist-table tbody td:last-child { border-right: 1px solid var(--border); border-radius: 0 12px 12px 0; }
.toplist-row { transition: box-shadow .15s ease, transform .1s; }
.toplist-row:hover { box-shadow: 0 4px 16px rgba(16,32,48,0.14); transform: translateY(-1px); }
.toplist-row.highlight-row td { border-color: var(--primary); border-width: 2px; }
.toplist-row.highlight-row { box-shadow: 0 2px 14px rgba(245,130,31,0.20); }
.toplist-table .col-rank { width: 52px; }
.toplist-table .col-rank strong { display: inline-flex; align-items: center; justify-content: center;
                                  width: 30px; height: 30px; border-radius: 50%; background: #eef2f7;
                                  color: var(--text); font-size: .95rem; font-weight: 800; }
.toplist-row.highlight-row .col-rank strong { background: var(--primary); color: #fff; }
.toplist-table .col-logo { display: flex; align-items: center; gap: 1rem; min-width: 270px; }
.toplist-brand { display: flex; flex-direction: column; line-height: 1.25; }
.toplist-brand strong { color: var(--text); }
.toplist-descriptor { font-size: .78rem; color: var(--text-muted); max-width: 16ch; }
.toplist-bonus { display: inline-block; background: #fff4e6; color: #b45309; border: 1px solid #f3d9a8;
                 font-weight: 800; font-size: .92rem; padding: .34rem .7rem; border-radius: 6px; }
.toplist-rating { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.stars { letter-spacing: 1px; font-size: .95rem; }
.star { color: #d3dae3; }
.star.on { color: var(--gold); }
.score { font-weight: 800; color: var(--text); font-size: 1rem; }
.rating-label { font-size: .72rem; color: var(--text-muted); }
.toplist-table .col-cta { width: 190px; text-align: right; }
.toplist-table .col-cta .btn { white-space: nowrap; box-shadow: 0 0 12px rgba(245,130,31,0.5);
                               animation: ctaGlow 1.9s ease-in-out infinite; }
.toplist-table .col-cta .btn:hover { animation: none; box-shadow: 0 0 24px rgba(245,130,31,0.85); }
@keyframes ctaGlow { 0%,100% { box-shadow: 0 0 8px rgba(245,130,31,0.40); }
                     50% { box-shadow: 0 0 22px rgba(245,130,31,0.85); } }

.initials-avatar { display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 66px;
                   background: var(--header); color: #fff; font-weight: 800; font-size: 1.4rem;
                   border-radius: 8px; letter-spacing: .02em; }
img.toplist-logo { width: 132px; height: 66px; object-fit: contain; background: #fff; padding: 6px 10px;
                   border: 1px solid var(--border); border-radius: 8px; }

.prose p, .prose li { color: #3a4a59; }
.prose h3 { color: var(--text); font-size: 1.02rem; margin: 0 0 .35rem; }
.prose a { color: var(--link); }
.factor-grid, .game-grid { display: block; margin: 1rem 0; }
.factor, .game { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; margin: 0 0 1.15rem; }
.factor h3, .game h3 { margin: 0 0 .25rem; }
.factor p, .game p { margin: 0; font-size: 1rem; color: #3a4a59; }
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0; }
ol.steps li { background: var(--card); border: 1px solid var(--border); border-radius: 10px;
              padding: 12px 16px 12px 52px; margin-bottom: 10px; position: relative; color: #3a4a59; }
ol.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 12px;
                      width: 26px; height: 26px; background: var(--primary); color: #fff; border-radius: 50%;
                      display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
ol.steps li strong { color: var(--text); }
ul.checks { list-style: none; padding: 0; margin: 1rem 0; }
ul.checks li { padding: 8px 0 8px 28px; position: relative; color: #3a4a59; border-bottom: 1px solid var(--border); }
ul.checks li::before { content: "\2713"; position: absolute; left: 2px; color: var(--primary); font-weight: 800; }
ul.checks li a { color: var(--link); text-decoration: none; }
.xlinks { font-size: .85rem; color: var(--text-muted); margin: .6rem 0 0; }
.xlinks a { color: var(--link); }
.data-table { width: 100%; border-collapse: collapse; margin: .8rem 0 .4rem; font-size: .92rem;
              background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table thead th { text-align: left; padding: .7rem .9rem; background: #f3f6f9; color: var(--text-muted);
                       font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.data-table tbody td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfc; }
.tbrand { display: inline-flex; align-items: center; gap: 11px; }
.tbrand strong { color: var(--text); font-size: .98rem; }
.tlogo { height: 40px; width: 88px; object-fit: contain; background: #fff; border: 1px solid var(--border);
         border-radius: 6px; padding: 3px 6px; flex: none; }
.tlogo-i { display: inline-flex; align-items: center; justify-content: center; background: var(--header);
           color: #fff; font-weight: 800; font-size: .85rem; }
.trank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
         border-radius: 50%; background: #eef2f7; font-weight: 800; font-size: .85rem; }
.trating { color: var(--gold); font-weight: 800; font-size: 1.02rem; }
.offer-badge { display: inline-block; background: linear-gradient(135deg, #fff3df, #ffe2bd); color: #a8540a;
               border: 1px solid #f0c071; font-weight: 800; font-size: .95rem; padding: .42rem .8rem;
               border-radius: 7px; box-shadow: 0 1px 3px rgba(245,130,31,0.18); }
.prose a.btn-primary, .data-table a.btn-primary { color: #fff; }
.data-table .tbl-cta { box-shadow: 0 0 10px rgba(245,130,31,0.45); animation: ctaGlow 1.9s ease-in-out infinite; }
.data-table .tbl-cta:hover { animation: none; box-shadow: 0 0 20px rgba(245,130,31,0.8); }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .4rem 1rem; margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--text); padding: .5rem 0; }
.faq-item p { color: #3a4a59; margin: .2rem 0 .8rem; }

/* author hub */
.author-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; text-align: left; }
.author-portrait { width: 130px; height: 130px; border-radius: 50%; background: var(--header); color: #fff;
                   display: inline-flex; align-items: center; justify-content: center; font-size: 2.8rem;
                   font-weight: 800; border: 3px solid var(--primary); flex: none; object-fit: cover; }
.author-hero h1 { font-size: 2rem; margin: 0 0 .3rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1rem 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; color: var(--text-muted); }
.stat strong { display: block; font-size: 1.7rem; color: var(--primary); margin-bottom: 4px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tag-list li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--text); }

footer { background: var(--header); color: #aebccb; padding: 40px 20px; margin-top: 48px; font-size: .9rem; }
footer h4 { color: #fff; margin: 0 0 .6rem; font-size: .95rem; }
footer a { color: #aebccb; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.footer-brand { flex: 1 1 240px; max-width: 320px; }
.footer-logo { height: 40px; display: block; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 .5rem; font-size: .85rem; color: #aebccb; line-height: 1.55; }
.footer-18 { color: #8499ad; font-size: .78rem; }
.footer-col { flex: 0 0 auto; }
.footer-col a { display: block; margin: .35rem 0; font-size: .85rem; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08);
                font-size: .78rem; line-height: 1.5; color: #8499ad; }

@media (max-width: 767px) {
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; align-items: flex-start; gap: 8px;
               padding: 70px 26px; background: var(--header); z-index: 1000; opacity: 0; visibility: hidden;
               pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { font-size: 1.15rem; padding: 8px 0; height: auto; border-bottom: 0; }
  .nav-close { display: block; position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
  .nav-links a.nav-cta { width: 100%; text-align: center; margin-top: 12px; }
  .author-hero { justify-content: center; text-align: center; }

  /* mobile fold: bring the first toplist card into view on landing */
  .hero { padding: 22px 16px 14px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.14; margin-bottom: .4rem; }
  .hero p.sub { font-size: .96rem; margin-bottom: .4rem; }
  .hero .byline { margin: .1rem 0 .5rem; font-size: .82rem; gap: 8px; }
  .hero .byline .author-avatar { width: 32px; height: 32px; }
  .hero .trust-strip { display: none; }
  .toplist-section h2 { margin: .4rem 0 .3rem; font-size: 1.3rem; }
  .toplist-section .toplist-lead { display: none; }   /* hide H2 descriptor on mobile */
  /* push the affiliate disclaimer below the table so card #1 follows the H2 */
  .toplist-section { display: flex; flex-direction: column; }
  .toplist-section .table-wrapper { order: 2; }
  .toplist-section .placeholder-note { order: 3; margin: .6rem 0 0; font-size: .8rem; }
  .toplist-section .xlinks { order: 4; }
  /* compact the mobile toplist card so card #1's CTA lands in the fold */
  .toplist-table tbody tr { padding: .55rem .7rem; margin-bottom: .6rem; }
  .toplist-table tbody td { padding: .2rem 0; }
  .toplist-table .col-metric { display: none; }       /* drop games row on mobile */
  .toplist-table .col-logo { gap: .25rem; }
  .toplist-table .col-cta .btn { margin-top: .2rem; }

  .toplist-table thead { display: none; }
  .toplist-table, .toplist-table tbody, .toplist-table tr, .toplist-table td { display: block; width: 100%; }
  .toplist-table tbody tr { margin-bottom: .8rem; padding: .8rem .85rem; text-align: center; }
  .toplist-table tbody td, .toplist-table tbody td:first-child, .toplist-table tbody td:last-child {
      border: none; border-radius: 0; padding: .35rem 0; text-align: center; }
  .toplist-row.highlight-row td { border: none; }
  .toplist-table .col-logo { flex-direction: column; min-width: 0; gap: .4rem; align-items: center; }
  .toplist-descriptor { max-width: none; }
  .toplist-rating { align-items: center; }
  .initials-avatar, img.toplist-logo { width: 160px; height: 82px; font-size: 1.6rem; }
  .toplist-table .col-cta { width: 100%; text-align: center; }
  .toplist-table .col-cta .btn { display: block; width: 100%; }
  .footer-grid { flex-direction: column; gap: 24px; }

  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .6rem; padding: .4rem .7rem; }
  .data-table td { border: none; padding: .3rem 0; display: flex; justify-content: space-between; gap: 12px; }
  .data-table td::before { content: attr(data-label); color: var(--text-muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
  .data-table td:last-child { display: block; text-align: center; }
  .data-table td:last-child::before { display: none; }
  .data-table .tbl-cta { display: inline-block; width: auto; min-width: 60%; margin-top: .4rem; }
}
